Imported Upstream version 1.6.9p17
[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 SELINUX
822 BAMAN
823 LCMAN
824 SEMAN
825 mansectsu
826 mansectform
827 mansrcdir
828 NOEXECFILE
829 NOEXECDIR
830 noexec_file
831 INSTALL_NOEXEC
832 DONT_LEAK_PATH_INFO
833 timedir
834 timeout
835 password_timeout
836 sudo_umask
837 passprompt
838 long_otp_prompt
839 lecture
840 logfac
841 goodpri
842 badpri
843 loglen
844 ignore_dot
845 mail_no_user
846 mail_no_host
847 mail_no_perms
848 mailto
849 mailsub
850 badpass_message
851 fqdn
852 runas_default
853 env_editor
854 passwd_tries
855 tty_tickets
856 insults
857 root_sudo
858 path_info
859 EGREPPROG
860 CC
861 ac_ct_CC
862 EXEEXT
863 OBJEXT
864 CPP
865 build
866 build_cpu
867 build_vendor
868 build_os
869 host
870 host_cpu
871 host_vendor
872 host_os
873 target
874 target_cpu
875 target_vendor
876 target_os
877 SED
878 GREP
879 EGREP
880 LN_S
881 ECHO
882 AR
883 RANLIB
884 STRIP
885 DSYMUTIL
886 NMEDIT
887 UNAMEPROG
888 TRPROG
889 NROFFPROG
890 YACC
891 YFLAGS
892 LIBOBJS
893 ALLOCA
894 KRB5CONFIG
895 LTLIBOBJS'
896 ac_subst_files=''
897       ac_precious_vars='build_alias
898 host_alias
899 target_alias
900 CC
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
905 CPP
906 YACC
907 YFLAGS'
908
909
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
929
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
955
956 ac_prev=
957 ac_dashdash=
958 for ac_option
959 do
960   # If the previous option needs an argument, assign it.
961   if test -n "$ac_prev"; then
962     eval $ac_prev=\$ac_option
963     ac_prev=
964     continue
965   fi
966
967   case $ac_option in
968   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969   *)    ac_optarg=yes ;;
970   esac
971
972   # Accept the important Cygnus configure options, so we can diagnose typos.
973
974   case $ac_dashdash$ac_option in
975   --)
976     ac_dashdash=yes ;;
977
978   -bindir | --bindir | --bindi | --bind | --bin | --bi)
979     ac_prev=bindir ;;
980   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981     bindir=$ac_optarg ;;
982
983   -build | --build | --buil | --bui | --bu)
984     ac_prev=build_alias ;;
985   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986     build_alias=$ac_optarg ;;
987
988   -cache-file | --cache-file | --cache-fil | --cache-fi \
989   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990     ac_prev=cache_file ;;
991   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993     cache_file=$ac_optarg ;;
994
995   --config-cache | -C)
996     cache_file=config.cache ;;
997
998   -datadir | --datadir | --datadi | --datad)
999     ac_prev=datadir ;;
1000   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001     datadir=$ac_optarg ;;
1002
1003   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004   | --dataroo | --dataro | --datar)
1005     ac_prev=datarootdir ;;
1006   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008     datarootdir=$ac_optarg ;;
1009
1010   -disable-* | --disable-*)
1011     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012     # Reject names that are not valid shell variable names.
1013     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015    { (exit 1); exit 1; }; }
1016     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017     eval enable_$ac_feature=no ;;
1018
1019   -docdir | --docdir | --docdi | --doc | --do)
1020     ac_prev=docdir ;;
1021   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022     docdir=$ac_optarg ;;
1023
1024   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025     ac_prev=dvidir ;;
1026   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027     dvidir=$ac_optarg ;;
1028
1029   -enable-* | --enable-*)
1030     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034    { (exit 1); exit 1; }; }
1035     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036     eval enable_$ac_feature=\$ac_optarg ;;
1037
1038   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040   | --exec | --exe | --ex)
1041     ac_prev=exec_prefix ;;
1042   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044   | --exec=* | --exe=* | --ex=*)
1045     exec_prefix=$ac_optarg ;;
1046
1047   -gas | --gas | --ga | --g)
1048     # Obsolete; use --with-gas.
1049     with_gas=yes ;;
1050
1051   -help | --help | --hel | --he | -h)
1052     ac_init_help=long ;;
1053   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054     ac_init_help=recursive ;;
1055   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056     ac_init_help=short ;;
1057
1058   -host | --host | --hos | --ho)
1059     ac_prev=host_alias ;;
1060   -host=* | --host=* | --hos=* | --ho=*)
1061     host_alias=$ac_optarg ;;
1062
1063   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064     ac_prev=htmldir ;;
1065   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066   | --ht=*)
1067     htmldir=$ac_optarg ;;
1068
1069   -includedir | --includedir | --includedi | --included | --include \
1070   | --includ | --inclu | --incl | --inc)
1071     ac_prev=includedir ;;
1072   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073   | --includ=* | --inclu=* | --incl=* | --inc=*)
1074     includedir=$ac_optarg ;;
1075
1076   -infodir | --infodir | --infodi | --infod | --info | --inf)
1077     ac_prev=infodir ;;
1078   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079     infodir=$ac_optarg ;;
1080
1081   -libdir | --libdir | --libdi | --libd)
1082     ac_prev=libdir ;;
1083   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084     libdir=$ac_optarg ;;
1085
1086   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087   | --libexe | --libex | --libe)
1088     ac_prev=libexecdir ;;
1089   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090   | --libexe=* | --libex=* | --libe=*)
1091     libexecdir=$ac_optarg ;;
1092
1093   -localedir | --localedir | --localedi | --localed | --locale)
1094     ac_prev=localedir ;;
1095   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096     localedir=$ac_optarg ;;
1097
1098   -localstatedir | --localstatedir | --localstatedi | --localstated \
1099   | --localstate | --localstat | --localsta | --localst | --locals)
1100     ac_prev=localstatedir ;;
1101   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103     localstatedir=$ac_optarg ;;
1104
1105   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106     ac_prev=mandir ;;
1107   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108     mandir=$ac_optarg ;;
1109
1110   -nfp | --nfp | --nf)
1111     # Obsolete; use --without-fp.
1112     with_fp=no ;;
1113
1114   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115   | --no-cr | --no-c | -n)
1116     no_create=yes ;;
1117
1118   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120     no_recursion=yes ;;
1121
1122   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124   | --oldin | --oldi | --old | --ol | --o)
1125     ac_prev=oldincludedir ;;
1126   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129     oldincludedir=$ac_optarg ;;
1130
1131   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132     ac_prev=prefix ;;
1133   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134     prefix=$ac_optarg ;;
1135
1136   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137   | --program-pre | --program-pr | --program-p)
1138     ac_prev=program_prefix ;;
1139   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141     program_prefix=$ac_optarg ;;
1142
1143   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144   | --program-suf | --program-su | --program-s)
1145     ac_prev=program_suffix ;;
1146   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148     program_suffix=$ac_optarg ;;
1149
1150   -program-transform-name | --program-transform-name \
1151   | --program-transform-nam | --program-transform-na \
1152   | --program-transform-n | --program-transform- \
1153   | --program-transform | --program-transfor \
1154   | --program-transfo | --program-transf \
1155   | --program-trans | --program-tran \
1156   | --progr-tra | --program-tr | --program-t)
1157     ac_prev=program_transform_name ;;
1158   -program-transform-name=* | --program-transform-name=* \
1159   | --program-transform-nam=* | --program-transform-na=* \
1160   | --program-transform-n=* | --program-transform-=* \
1161   | --program-transform=* | --program-transfor=* \
1162   | --program-transfo=* | --program-transf=* \
1163   | --program-trans=* | --program-tran=* \
1164   | --progr-tra=* | --program-tr=* | --program-t=*)
1165     program_transform_name=$ac_optarg ;;
1166
1167   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168     ac_prev=pdfdir ;;
1169   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170     pdfdir=$ac_optarg ;;
1171
1172   -psdir | --psdir | --psdi | --psd | --ps)
1173     ac_prev=psdir ;;
1174   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175     psdir=$ac_optarg ;;
1176
1177   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178   | -silent | --silent | --silen | --sile | --sil)
1179     silent=yes ;;
1180
1181   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182     ac_prev=sbindir ;;
1183   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184   | --sbi=* | --sb=*)
1185     sbindir=$ac_optarg ;;
1186
1187   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189   | --sharedst | --shareds | --shared | --share | --shar \
1190   | --sha | --sh)
1191     ac_prev=sharedstatedir ;;
1192   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195   | --sha=* | --sh=*)
1196     sharedstatedir=$ac_optarg ;;
1197
1198   -site | --site | --sit)
1199     ac_prev=site ;;
1200   -site=* | --site=* | --sit=*)
1201     site=$ac_optarg ;;
1202
1203   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204     ac_prev=srcdir ;;
1205   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206     srcdir=$ac_optarg ;;
1207
1208   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209   | --syscon | --sysco | --sysc | --sys | --sy)
1210     ac_prev=sysconfdir ;;
1211   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213     sysconfdir=$ac_optarg ;;
1214
1215   -target | --target | --targe | --targ | --tar | --ta | --t)
1216     ac_prev=target_alias ;;
1217   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218     target_alias=$ac_optarg ;;
1219
1220   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221     verbose=yes ;;
1222
1223   -version | --version | --versio | --versi | --vers | -V)
1224     ac_init_version=: ;;
1225
1226   -with-* | --with-*)
1227     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228     # Reject names that are not valid shell variable names.
1229     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230       { echo "$as_me: error: invalid package name: $ac_package" >&2
1231    { (exit 1); exit 1; }; }
1232     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233     eval with_$ac_package=\$ac_optarg ;;
1234
1235   -without-* | --without-*)
1236     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       { echo "$as_me: error: invalid package name: $ac_package" >&2
1240    { (exit 1); exit 1; }; }
1241     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242     eval with_$ac_package=no ;;
1243
1244   --x)
1245     # Obsolete; use --with-x.
1246     with_x=yes ;;
1247
1248   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249   | --x-incl | --x-inc | --x-in | --x-i)
1250     ac_prev=x_includes ;;
1251   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253     x_includes=$ac_optarg ;;
1254
1255   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257     ac_prev=x_libraries ;;
1258   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260     x_libraries=$ac_optarg ;;
1261
1262   -*) { echo "$as_me: error: unrecognized option: $ac_option
1263 Try \`$0 --help' for more information." >&2
1264    { (exit 1); exit 1; }; }
1265     ;;
1266
1267   *=*)
1268     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269     # Reject names that are not valid shell variable names.
1270     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1271       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1272    { (exit 1); exit 1; }; }
1273     eval $ac_envvar=\$ac_optarg
1274     export $ac_envvar ;;
1275
1276   *)
1277     # FIXME: should be removed in autoconf 3.0.
1278     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282     ;;
1283
1284   esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289   { echo "$as_me: error: missing argument to $ac_option" >&2
1290    { (exit 1); exit 1; }; }
1291 fi
1292
1293 # Be sure to have absolute directory names.
1294 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295                 datadir sysconfdir sharedstatedir localstatedir includedir \
1296                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297                 libdir localedir mandir
1298 do
1299   eval ac_val=\$$ac_var
1300   case $ac_val in
1301     [\\/$]* | ?:[\\/]* )  continue;;
1302     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303   esac
1304   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1305    { (exit 1); exit 1; }; }
1306 done
1307
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1314
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317   if test "x$build_alias" = x; then
1318     cross_compiling=maybe
1319     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320     If a cross compiler is detected then cross compile mode will be used." >&2
1321   elif test "x$build_alias" != "x$host_alias"; then
1322     cross_compiling=yes
1323   fi
1324 fi
1325
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329 test "$silent" = yes && exec 6>/dev/null
1330
1331
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335   { echo "$as_me: error: Working directory cannot be determined" >&2
1336    { (exit 1); exit 1; }; }
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338   { echo "$as_me: error: pwd does not report name of working directory" >&2
1339    { (exit 1); exit 1; }; }
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344   ac_srcdir_defaulted=yes
1345   # Try the directory containing this script, then the parent directory.
1346   ac_confdir=`$as_dirname -- "$0" ||
1347 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348          X"$0" : 'X\(//\)[^/]' \| \
1349          X"$0" : 'X\(//\)$' \| \
1350          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1351 echo X"$0" |
1352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\/\)[^/].*/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\).*/{
1365             s//\1/
1366             q
1367           }
1368           s/.*/./; q'`
1369   srcdir=$ac_confdir
1370   if test ! -r "$srcdir/$ac_unique_file"; then
1371     srcdir=..
1372   fi
1373 else
1374   ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1379    { (exit 1); exit 1; }; }
1380 fi
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 ac_abs_confdir=`(
1383         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1384    { (exit 1); exit 1; }; }
1385         pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388   srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_env_${ac_var}_value=\$${ac_var}
1399   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407   # Omit some internal or obsolete options to make the list less imposing.
1408   # This message is too long to be a string in the A/UX 3.1 sh.
1409   cat <<_ACEOF
1410 \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1411
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE.  See below for descriptions of some of the useful variables.
1416
1417 Defaults for the options are specified in brackets.
1418
1419 Configuration:
1420   -h, --help              display this help and exit
1421       --help=short        display options specific to this package
1422       --help=recursive    display the short help of all the included packages
1423   -V, --version           display version information and exit
1424   -q, --quiet, --silent   do not print \`checking...' messages
1425       --cache-file=FILE   cache test results in FILE [disabled]
1426   -C, --config-cache      alias for \`--cache-file=config.cache'
1427   -n, --no-create         do not create output files
1428       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1429
1430 Installation directories:
1431   --prefix=PREFIX         install architecture-independent files in PREFIX
1432                           [$ac_default_prefix]
1433   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1434                           [PREFIX]
1435
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440
1441 For better control, use the options below.
1442
1443 Fine tuning of the installation directories:
1444   --bindir=DIR           user executables [EPREFIX/bin]
1445   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1446   --libexecdir=DIR       program executables [EPREFIX/libexec]
1447   --sysconfdir=DIR       read-only single-machine data [etc]
1448   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1449   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1450   --libdir=DIR           object code libraries [EPREFIX/lib]
1451   --includedir=DIR       C header files [PREFIX/include]
1452   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1453   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1454   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1455   --infodir=DIR          info documentation [DATAROOTDIR/info]
1456   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1457   --mandir=DIR           man documentation [DATAROOTDIR/man]
1458   --docdir=DIR           documentation root [DATAROOTDIR/doc/sudo]
1459   --htmldir=DIR          html documentation [DOCDIR]
1460   --dvidir=DIR           dvi documentation [DOCDIR]
1461   --pdfdir=DIR           pdf documentation [DOCDIR]
1462   --psdir=DIR            ps documentation [DOCDIR]
1463 _ACEOF
1464
1465   cat <<\_ACEOF
1466
1467 System types:
1468   --build=BUILD     configure for building on BUILD [guessed]
1469   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1470   --target=TARGET   configure for building compilers for TARGET [HOST]
1471 _ACEOF
1472 fi
1473
1474 if test -n "$ac_init_help"; then
1475   case $ac_init_help in
1476      short | recursive ) echo "Configuration of sudo 1.6.9:";;
1477    esac
1478   cat <<\_ACEOF
1479
1480 Optional Features:
1481   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1482   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1483   --disable-authentication
1484                           Do not require authentication by default
1485   --disable-root-mailer   Don't run the mailer as root, run as the user
1486   --disable-setreuid      Don't try to use the setreuid() function
1487   --disable-setresuid     Don't try to use the setresuid() function
1488   --disable-shadow        Never use shadow passwords
1489   --disable-root-sudo     Don't allow root to run sudo
1490   --enable-log-host       Log the hostname in the log file
1491   --enable-noargs-shell   If sudo is given no arguments run a shell
1492   --enable-shell-sets-home
1493                           set $HOME to target user in shell mode
1494   --disable-path-info     Print 'command not allowed' not 'command not found'
1495   --enable-static[=PKGS]  build static libraries [default=no]
1496   --enable-shared[=PKGS]  build shared libraries [default=yes]
1497   --enable-fast-install[=PKGS]
1498                           optimize for fast installation [default=yes]
1499   --disable-libtool-lock  avoid locking (might break parallel builds)
1500   --disable-sia           Disable SIA on Digital UNIX
1501   --disable-pam-session   Disable PAM session support
1502
1503 Optional Packages:
1504   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1505   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1506   --with-otp-only         deprecated
1507   --with-alertmail        deprecated
1508   --with-CC               C compiler to use
1509   --with-rpath            pass -R flag in addition to -L for lib paths
1510   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1511   --with-incpath          additional places to look for include files
1512   --with-libpath          additional places to look for libraries
1513   --with-libraries        additional libraries to link with
1514   --with-devel            add development options
1515   --with-efence           link with -lefence for malloc() debugging
1516   --with-csops            add CSOps standard options
1517   --without-passwd        don't use passwd/shadow file for authentication
1518   --with-skey=DIR         enable S/Key support
1519   --with-opie=DIR         enable OPIE support
1520   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1521   --with-SecurID[=DIR]    enable SecurID support
1522   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1523   --with-kerb4[=DIR]      enable Kerberos IV support
1524   --with-kerb5[=DIR]      enable Kerberos V support
1525   --with-aixauth          enable AIX general authentication support
1526   --with-pam              enable PAM support
1527   --with-AFS              enable AFS support
1528   --with-DCE              enable DCE support
1529   --with-logincap         enable BSD login class support
1530   --with-bsdauth          enable BSD authentication support
1531   --with-project          enable Solaris project support
1532   --without-lecture       don't print lecture for first-time sudoer
1533   --with-logging          log via syslog, file, or both
1534   --with-logfac           syslog facility to log with (default is "local2")
1535   --with-goodpri          syslog priority for commands (def is "notice")
1536   --with-badpri           syslog priority for failures (def is "alert")
1537   --with-logpath          path to the sudo log file
1538   --with-loglen           maximum length of a log file line (default is 80)
1539   --with-ignore-dot       ignore '.' in the PATH
1540   --without-mail-if-no-user do not send mail if user not in sudoers
1541   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1542   --with-mail-if-noperms  send mail if user not allowed to run command
1543   --with-mailto           who should get sudo mail (default is "root")
1544   --with-mailsubject      subject of sudo mail
1545   --with-passprompt       default password prompt
1546   --with-badpass-message  message the user sees when the password is wrong
1547   --with-fqdn             expect fully qualified hosts in sudoers
1548   --with-timedir          path to the sudo timestamp dir
1549   --with-sendmail=path    set path to sendmail
1550   --without-sendmail      do not send mail at all
1551   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1552   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1553   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1554   --with-umask            umask with which the prog should run (default is 022)
1555   --without-umask         Preserves the umask of the user invoking sudo.
1556   --with-runas-default    User to run commands as (default is "root")
1557   --with-exempt=group     no passwd needed for users in this group
1558   --with-editor=path      Default editor for visudo (defaults to vi)
1559   --with-env-editor       Use the environment variable EDITOR for visudo
1560   --with-passwd-tries     number of tries to enter password (default is 3)
1561   --with-timeout          minutes before sudo asks for passwd again (def is 5 minutes)
1562   --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1563   --with-tty-tickets      use a different ticket file for each tty
1564   --with-insults          insult the user for entering an incorrect password
1565   --with-all-insults      include all the sudo insult sets
1566   --with-classic-insults  include the insults from the "classic" sudo
1567   --with-csops-insults    include CSOps insults
1568   --with-hal-insults      include 2001-like insults
1569   --with-goons-insults    include the insults from the "Goon Show"
1570   --with-ldap[=DIR]       enable LDAP support
1571   --with-ldap-conf-file   path to LDAP configuration file
1572   --with-ldap-secret-file path to LDAP secret password file
1573   --with-pc-insults       replace politically incorrect insults with less offensive ones
1574   --with-secure-path      override the user's path with a built-in one
1575   --without-interfaces    don't try to read the ip addr of ether interfaces
1576   --with-stow             properly handle GNU stow packaging
1577   --with-selinux          enable SELinux support
1578   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1579   --with-pic              try to use only PIC/non-PIC objects [default=use
1580                           both]
1581   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1582
1583 Some influential environment variables:
1584   CC          C compiler command
1585   CFLAGS      C compiler flags
1586   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587               nonstandard directory <lib dir>
1588   LIBS        libraries to pass to the linker, e.g. -l<library>
1589   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590               you have headers in a nonstandard directory <include dir>
1591   CPP         C preprocessor
1592   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1593               the first program found out of: `bison -y', `byacc', `yacc'.
1594   YFLAGS      The list of arguments that will be passed by default to $YACC.
1595               This script will default YFLAGS to the empty string to avoid a
1596               default value of `-d' given by some make applications.
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 _ACEOF
1602 ac_status=$?
1603 fi
1604
1605 if test "$ac_init_help" = "recursive"; then
1606   # If there are subdirs, report their specific --help.
1607   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608     test -d "$ac_dir" || continue
1609     ac_builddir=.
1610
1611 case "$ac_dir" in
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *)
1614   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1615   # A ".." for each directory in $ac_dir_suffix.
1616   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1617   case $ac_top_builddir_sub in
1618   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620   esac ;;
1621 esac
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1626
1627 case $srcdir in
1628   .)  # We are building in place.
1629     ac_srcdir=.
1630     ac_top_srcdir=$ac_top_builddir_sub
1631     ac_abs_top_srcdir=$ac_pwd ;;
1632   [\\/]* | ?:[\\/]* )  # Absolute name.
1633     ac_srcdir=$srcdir$ac_dir_suffix;
1634     ac_top_srcdir=$srcdir
1635     ac_abs_top_srcdir=$srcdir ;;
1636   *) # Relative name.
1637     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638     ac_top_srcdir=$ac_top_build_prefix$srcdir
1639     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 esac
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642
1643     cd "$ac_dir" || { ac_status=$?; continue; }
1644     # Check for guested configure.
1645     if test -f "$ac_srcdir/configure.gnu"; then
1646       echo &&
1647       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648     elif test -f "$ac_srcdir/configure"; then
1649       echo &&
1650       $SHELL "$ac_srcdir/configure" --help=recursive
1651     else
1652       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653     fi || ac_status=$?
1654     cd "$ac_pwd" || { ac_status=$?; break; }
1655   done
1656 fi
1657
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1660   cat <<\_ACEOF
1661 sudo configure 1.6.9
1662 generated by GNU Autoconf 2.61
1663
1664 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1665 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1666 This configure script is free software; the Free Software Foundation
1667 gives unlimited permission to copy, distribute and modify it.
1668 _ACEOF
1669   exit
1670 fi
1671 cat >config.log <<_ACEOF
1672 This file contains any messages produced by compilers while
1673 running configure, to aid debugging if configure makes a mistake.
1674
1675 It was created by sudo $as_me 1.6.9, which was
1676 generated by GNU Autoconf 2.61.  Invocation command line was
1677
1678   $ $0 $@
1679
1680 _ACEOF
1681 exec 5>>config.log
1682 {
1683 cat <<_ASUNAME
1684 ## --------- ##
1685 ## Platform. ##
1686 ## --------- ##
1687
1688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693
1694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1696
1697 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1698 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1701 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1702 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1703 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1704
1705 _ASUNAME
1706
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710   IFS=$as_save_IFS
1711   test -z "$as_dir" && as_dir=.
1712   echo "PATH: $as_dir"
1713 done
1714 IFS=$as_save_IFS
1715
1716 } >&5
1717
1718 cat >&5 <<_ACEOF
1719
1720
1721 ## ----------- ##
1722 ## Core tests. ##
1723 ## ----------- ##
1724
1725 _ACEOF
1726
1727
1728 # Keep a trace of the command line.
1729 # Strip out --no-create and --no-recursion so they do not pile up.
1730 # Strip out --silent because we don't want to record it for future runs.
1731 # Also quote any args containing shell meta-characters.
1732 # Make two passes to allow for proper duplicate-argument suppression.
1733 ac_configure_args=
1734 ac_configure_args0=
1735 ac_configure_args1=
1736 ac_must_keep_next=false
1737 for ac_pass in 1 2
1738 do
1739   for ac_arg
1740   do
1741     case $ac_arg in
1742     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744     | -silent | --silent | --silen | --sile | --sil)
1745       continue ;;
1746     *\'*)
1747       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748     esac
1749     case $ac_pass in
1750     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751     2)
1752       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753       if test $ac_must_keep_next = true; then
1754         ac_must_keep_next=false # Got value, back to normal.
1755       else
1756         case $ac_arg in
1757           *=* | --config-cache | -C | -disable-* | --disable-* \
1758           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760           | -with-* | --with-* | -without-* | --without-* | --x)
1761             case "$ac_configure_args0 " in
1762               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763             esac
1764             ;;
1765           -* ) ac_must_keep_next=true ;;
1766         esac
1767       fi
1768       ac_configure_args="$ac_configure_args '$ac_arg'"
1769       ;;
1770     esac
1771   done
1772 done
1773 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1775
1776 # When interrupted or exit'd, cleanup temporary files, and complete
1777 # config.log.  We remove comments because anyway the quotes in there
1778 # would cause problems or look ugly.
1779 # WARNING: Use '\'' to represent an apostrophe within the trap.
1780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781 trap 'exit_status=$?
1782   # Save into config.log some information that might help in debugging.
1783   {
1784     echo
1785
1786     cat <<\_ASBOX
1787 ## ---------------- ##
1788 ## Cache variables. ##
1789 ## ---------------- ##
1790 _ASBOX
1791     echo
1792     # The following way of writing the cache mishandles newlines in values,
1793 (
1794   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795     eval ac_val=\$$ac_var
1796     case $ac_val in #(
1797     *${as_nl}*)
1798       case $ac_var in #(
1799       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801       esac
1802       case $ac_var in #(
1803       _ | IFS | as_nl) ;; #(
1804       *) $as_unset $ac_var ;;
1805       esac ;;
1806     esac
1807   done
1808   (set) 2>&1 |
1809     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1810     *${as_nl}ac_space=\ *)
1811       sed -n \
1812         "s/'\''/'\''\\\\'\'''\''/g;
1813           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814       ;; #(
1815     *)
1816       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817       ;;
1818     esac |
1819     sort
1820 )
1821     echo
1822
1823     cat <<\_ASBOX
1824 ## ----------------- ##
1825 ## Output variables. ##
1826 ## ----------------- ##
1827 _ASBOX
1828     echo
1829     for ac_var in $ac_subst_vars
1830     do
1831       eval ac_val=\$$ac_var
1832       case $ac_val in
1833       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834       esac
1835       echo "$ac_var='\''$ac_val'\''"
1836     done | sort
1837     echo
1838
1839     if test -n "$ac_subst_files"; then
1840       cat <<\_ASBOX
1841 ## ------------------- ##
1842 ## File substitutions. ##
1843 ## ------------------- ##
1844 _ASBOX
1845       echo
1846       for ac_var in $ac_subst_files
1847       do
1848         eval ac_val=\$$ac_var
1849         case $ac_val in
1850         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851         esac
1852         echo "$ac_var='\''$ac_val'\''"
1853       done | sort
1854       echo
1855     fi
1856
1857     if test -s confdefs.h; then
1858       cat <<\_ASBOX
1859 ## ----------- ##
1860 ## confdefs.h. ##
1861 ## ----------- ##
1862 _ASBOX
1863       echo
1864       cat confdefs.h
1865       echo
1866     fi
1867     test "$ac_signal" != 0 &&
1868       echo "$as_me: caught signal $ac_signal"
1869     echo "$as_me: exit $exit_status"
1870   } >&5
1871   rm -f core *.core core.conftest.* &&
1872     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1873     exit $exit_status
1874 ' 0
1875 for ac_signal in 1 2 13 15; do
1876   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1877 done
1878 ac_signal=0
1879
1880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1881 rm -f -r conftest* confdefs.h
1882
1883 # Predefined preprocessor variables.
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_NAME "$PACKAGE_NAME"
1887 _ACEOF
1888
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_STRING "$PACKAGE_STRING"
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1907 _ACEOF
1908
1909
1910 # Let the site file select an alternate cache file if it wants to.
1911 # Prefer explicitly selected file to automatically selected ones.
1912 if test -n "$CONFIG_SITE"; then
1913   set x "$CONFIG_SITE"
1914 elif test "x$prefix" != xNONE; then
1915   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1916 else
1917   set x "$ac_default_prefix/share/config.site" \
1918         "$ac_default_prefix/etc/config.site"
1919 fi
1920 shift
1921 for ac_site_file
1922 do
1923   if test -r "$ac_site_file"; then
1924     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1925 echo "$as_me: loading site script $ac_site_file" >&6;}
1926     sed 's/^/| /' "$ac_site_file" >&5
1927     . "$ac_site_file"
1928   fi
1929 done
1930
1931 if test -r "$cache_file"; then
1932   # Some versions of bash will fail to source /dev/null (special
1933   # files actually), so we avoid doing that.
1934   if test -f "$cache_file"; then
1935     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1936 echo "$as_me: loading cache $cache_file" >&6;}
1937     case $cache_file in
1938       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939       *)                      . "./$cache_file";;
1940     esac
1941   fi
1942 else
1943   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1944 echo "$as_me: creating cache $cache_file" >&6;}
1945   >$cache_file
1946 fi
1947
1948 # Check that the precious variables saved in the cache have kept the same
1949 # value.
1950 ac_cache_corrupted=false
1951 for ac_var in $ac_precious_vars; do
1952   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953   eval ac_new_set=\$ac_env_${ac_var}_set
1954   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955   eval ac_new_val=\$ac_env_${ac_var}_value
1956   case $ac_old_set,$ac_new_set in
1957     set,)
1958       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960       ac_cache_corrupted=: ;;
1961     ,set)
1962       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964       ac_cache_corrupted=: ;;
1965     ,);;
1966     *)
1967       if test "x$ac_old_val" != "x$ac_new_val"; then
1968         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1969 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1970         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1971 echo "$as_me:   former value:  $ac_old_val" >&2;}
1972         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1973 echo "$as_me:   current value: $ac_new_val" >&2;}
1974         ac_cache_corrupted=:
1975       fi;;
1976   esac
1977   # Pass precious variables to config.status.
1978   if test "$ac_new_set" = set; then
1979     case $ac_new_val in
1980     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1981     *) ac_arg=$ac_var=$ac_new_val ;;
1982     esac
1983     case " $ac_configure_args " in
1984       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1985       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1986     esac
1987   fi
1988 done
1989 if $ac_cache_corrupted; then
1990   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1991 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1993 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1994    { (exit 1); exit 1; }; }
1995 fi
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021 ac_ext=c
2022 ac_cpp='$CPP $CPPFLAGS'
2023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026
2027
2028 ac_config_headers="$ac_config_headers config.h pathnames.h"
2029
2030 { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
2031 echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
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
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089 timeout=5
2090 password_timeout=5
2091 sudo_umask=0022
2092 passprompt="Password:"
2093 long_otp_prompt=off
2094 lecture=once
2095 logfac=local2
2096 goodpri=notice
2097 badpri=alert
2098 loglen=80
2099 ignore_dot=off
2100 mail_no_user=on
2101 mail_no_host=off
2102 mail_no_perms=off
2103 mailto=root
2104 mailsub='*** SECURITY information for %h ***'
2105 badpass_message='Sorry, try again.'
2106 fqdn=off
2107 runas_default=root
2108 env_editor=off
2109 passwd_tries=3
2110 tty_tickets=off
2111 insults=off
2112 root_sudo=on
2113 path_info=on
2114 INSTALL_NOEXEC=
2115 PROGS="sudo visudo"
2116 : ${MANTYPE='man'}
2117 : ${mansrcdir='.'}
2118 : ${SUDOERS_MODE='0440'}
2119 : ${SUDOERS_UID='0'}
2120 : ${SUDOERS_GID='0'}
2121 DEV="#"
2122 SELINUX="#"
2123 BAMAN='.\" '
2124 LCMAN='.\" '
2125 SEMAN='.\" '
2126 AUTH_OBJS=
2127 AUTH_REG=
2128 AUTH_EXCL=
2129 AUTH_EXCL_DEF=
2130 AUTH_DEF=passwd
2131
2132 CHECKSHADOW=true
2133 shadow_defs=
2134 shadow_funcs=
2135 shadow_libs=
2136 shadow_libs_optional=
2137
2138 if test X"$prefix" = X"NONE"; then
2139     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2140 else
2141     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2142 fi
2143 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2144 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2145 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2146
2147
2148
2149 # Check whether --with-otp-only was given.
2150 if test "${with_otp_only+set}" = set; then
2151   withval=$with_otp_only; case $with_otp_only in
2152     yes)        with_passwd="no"
2153                 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2154 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2155                 ;;
2156 esac
2157 fi
2158
2159
2160
2161 # Check whether --with-alertmail was given.
2162 if test "${with_alertmail+set}" = set; then
2163   withval=$with_alertmail; case $with_alertmail in
2164     *)          with_mailto="$with_alertmail"
2165                 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2166 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2167                 ;;
2168 esac
2169 fi
2170
2171
2172
2173
2174 # Check whether --with-CC was given.
2175 if test "${with_CC+set}" = set; then
2176   withval=$with_CC; case $with_CC in
2177     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2178 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2179    { (exit 1); exit 1; }; }
2180                 ;;
2181     no)         { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2182 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2183    { (exit 1); exit 1; }; }
2184                 ;;
2185     *)          CC=$with_CC
2186                 ;;
2187 esac
2188 fi
2189
2190
2191
2192 # Check whether --with-rpath was given.
2193 if test "${with_rpath+set}" = set; then
2194   withval=$with_rpath; case $with_rpath in
2195     yes|no)     ;;
2196     *)          { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2197 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2198    { (exit 1); exit 1; }; }
2199                 ;;
2200 esac
2201 fi
2202
2203
2204
2205 # Check whether --with-blibpath was given.
2206 if test "${with_blibpath+set}" = set; then
2207   withval=$with_blibpath; case $with_blibpath in
2208     yes|no)     ;;
2209     *)          { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2210 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2211                 ;;
2212 esac
2213 fi
2214
2215
2216
2217 # Check whether --with-incpath was given.
2218 if test "${with_incpath+set}" = set; then
2219   withval=$with_incpath; case $with_incpath in
2220     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2221 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2222    { (exit 1); exit 1; }; }
2223                 ;;
2224     no)         { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2225 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2226    { (exit 1); exit 1; }; }
2227                 ;;
2228     *)          { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2229 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2230                 for i in ${with_incpath}; do
2231                     CPPFLAGS="${CPPFLAGS} -I${i}"
2232                 done
2233                 ;;
2234 esac
2235 fi
2236
2237
2238
2239 # Check whether --with-libpath was given.
2240 if test "${with_libpath+set}" = set; then
2241   withval=$with_libpath; case $with_libpath in
2242     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2243 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2244    { (exit 1); exit 1; }; }
2245                 ;;
2246     no)         { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2247 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2248    { (exit 1); exit 1; }; }
2249                 ;;
2250     *)          { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2251 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2252                 ;;
2253 esac
2254 fi
2255
2256
2257
2258 # Check whether --with-libraries was given.
2259 if test "${with_libraries+set}" = set; then
2260   withval=$with_libraries; case $with_libraries in
2261     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2262 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2263    { (exit 1); exit 1; }; }
2264                 ;;
2265     no)         { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2266 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2267    { (exit 1); exit 1; }; }
2268                 ;;
2269     *)          { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2270 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2271                 ;;
2272 esac
2273 fi
2274
2275
2276
2277 # Check whether --with-devel was given.
2278 if test "${with_devel+set}" = set; then
2279   withval=$with_devel; case $with_devel in
2280     yes)        { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2281 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2282                 PROGS="${PROGS} testsudoers"
2283                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2284                 DEV=""
2285                 ;;
2286     no)         ;;
2287     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2288 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2289                 ;;
2290 esac
2291 fi
2292
2293
2294
2295 # Check whether --with-efence was given.
2296 if test "${with_efence+set}" = set; then
2297   withval=$with_efence; case $with_efence in
2298     yes)        { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2299 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2300                 LIBS="${LIBS} -lefence"
2301                 if test -f /usr/local/lib/libefence.a; then
2302                     with_libpath="${with_libpath} /usr/local/lib"
2303                 fi
2304                 ;;
2305     no)         ;;
2306     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2307 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2308                 ;;
2309 esac
2310 fi
2311
2312
2313
2314 # Check whether --with-csops was given.
2315 if test "${with_csops+set}" = set; then
2316   withval=$with_csops; case $with_csops in
2317     yes)        { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2318 echo "$as_me: Adding CSOps standard options" >&6;}
2319                 CHECKSIA=false
2320                 with_ignore_dot=yes
2321                 insults=on
2322                 with_classic_insults=yes
2323                 with_csops_insults=yes
2324                 with_env_editor=yes
2325                 : ${mansectsu='8'}
2326                 : ${mansectform='5'}
2327                 ;;
2328     no)         ;;
2329     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2330 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2331                 ;;
2332 esac
2333 fi
2334
2335
2336
2337 # Check whether --with-passwd was given.
2338 if test "${with_passwd+set}" = set; then
2339   withval=$with_passwd; case $with_passwd in
2340     yes|no)     { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2341 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2342                 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2343 echo "${ECHO_T}$with_passwd" >&6; }
2344                 AUTH_DEF=""
2345                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2346                 ;;
2347     *)          { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2348 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2349    { (exit 1); exit 1; }; }
2350                 ;;
2351 esac
2352 fi
2353
2354
2355
2356 # Check whether --with-skey was given.
2357 if test "${with_skey+set}" = set; then
2358   withval=$with_skey; case $with_skey in
2359     no)         with_skey=""
2360                 ;;
2361     *)          cat >>confdefs.h <<\_ACEOF
2362 #define HAVE_SKEY 1
2363 _ACEOF
2364
2365                 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2366 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2367                 { echo "$as_me:$LINENO: result: yes" >&5
2368 echo "${ECHO_T}yes" >&6; }
2369                 AUTH_REG="$AUTH_REG S/Key"
2370                 ;;
2371 esac
2372 fi
2373
2374
2375
2376 # Check whether --with-opie was given.
2377 if test "${with_opie+set}" = set; then
2378   withval=$with_opie; case $with_opie in
2379     no)         with_opie=""
2380                 ;;
2381     *)          cat >>confdefs.h <<\_ACEOF
2382 #define HAVE_OPIE 1
2383 _ACEOF
2384
2385                 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2386 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2387                 { echo "$as_me:$LINENO: result: yes" >&5
2388 echo "${ECHO_T}yes" >&6; }
2389                 AUTH_REG="$AUTH_REG NRL_OPIE"
2390                 ;;
2391 esac
2392 fi
2393
2394
2395
2396 # Check whether --with-long-otp-prompt was given.
2397 if test "${with_long_otp_prompt+set}" = set; then
2398   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2399     yes)        cat >>confdefs.h <<\_ACEOF
2400 #define LONG_OTP_PROMPT 1
2401 _ACEOF
2402
2403                 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2404 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2405                 { echo "$as_me:$LINENO: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6; }
2407                 long_otp_prompt=on
2408                 ;;
2409     no)         long_otp_prompt=off
2410                 ;;
2411     *)          { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2412 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2413    { (exit 1); exit 1; }; }
2414                 ;;
2415 esac
2416 fi
2417
2418
2419
2420 # Check whether --with-SecurID was given.
2421 if test "${with_SecurID+set}" = set; then
2422   withval=$with_SecurID; case $with_SecurID in
2423     no)         with_SecurID="";;
2424     *)          cat >>confdefs.h <<\_ACEOF
2425 #define HAVE_SECURID 1
2426 _ACEOF
2427
2428                 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2429 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2430                 { echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6; }
2432                 AUTH_EXCL="$AUTH_EXCL SecurID"
2433                 ;;
2434 esac
2435 fi
2436
2437
2438
2439 # Check whether --with-fwtk was given.
2440 if test "${with_fwtk+set}" = set; then
2441   withval=$with_fwtk; case $with_fwtk in
2442     no)         with_fwtk="";;
2443     *)          cat >>confdefs.h <<\_ACEOF
2444 #define HAVE_FWTK 1
2445 _ACEOF
2446
2447                 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2448 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2449                 { echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6; }
2451                 AUTH_EXCL="$AUTH_EXCL FWTK"
2452                 ;;
2453 esac
2454 fi
2455
2456
2457
2458 # Check whether --with-kerb4 was given.
2459 if test "${with_kerb4+set}" = set; then
2460   withval=$with_kerb4; case $with_kerb4 in
2461     no)         with_kerb4="";;
2462     *)          { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2463 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2464                 { echo "$as_me:$LINENO: result: yes" >&5
2465 echo "${ECHO_T}yes" >&6; }
2466                 AUTH_REG="$AUTH_REG kerb4"
2467                 ;;
2468 esac
2469 fi
2470
2471
2472
2473 # Check whether --with-kerb5 was given.
2474 if test "${with_kerb5+set}" = set; then
2475   withval=$with_kerb5; case $with_kerb5 in
2476     no)         with_kerb5="";;
2477     *)          { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2478 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2479                 { echo "$as_me:$LINENO: result: yes" >&5
2480 echo "${ECHO_T}yes" >&6; }
2481                 AUTH_REG="$AUTH_REG kerb5"
2482                 ;;
2483 esac
2484 fi
2485
2486
2487
2488 # Check whether --with-aixauth was given.
2489 if test "${with_aixauth+set}" = set; then
2490   withval=$with_aixauth; case $with_aixauth in
2491     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2492     no)         ;;
2493     *)          { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2494 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2495    { (exit 1); exit 1; }; }
2496                 ;;
2497 esac
2498 fi
2499
2500
2501
2502 # Check whether --with-pam was given.
2503 if test "${with_pam+set}" = set; then
2504   withval=$with_pam; case $with_pam in
2505     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
2506     no)         ;;
2507     *)          { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2508 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2509    { (exit 1); exit 1; }; }
2510                 ;;
2511 esac
2512 fi
2513
2514
2515
2516 # Check whether --with-AFS was given.
2517 if test "${with_AFS+set}" = set; then
2518   withval=$with_AFS; case $with_AFS in
2519     yes)        cat >>confdefs.h <<\_ACEOF
2520 #define HAVE_AFS 1
2521 _ACEOF
2522
2523                 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2524 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2525                 { echo "$as_me:$LINENO: result: yes" >&5
2526 echo "${ECHO_T}yes" >&6; }
2527                 AUTH_REG="$AUTH_REG AFS"
2528                 ;;
2529     no)         ;;
2530     *)          { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2531 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2532    { (exit 1); exit 1; }; }
2533                 ;;
2534 esac
2535 fi
2536
2537
2538
2539 # Check whether --with-DCE was given.
2540 if test "${with_DCE+set}" = set; then
2541   withval=$with_DCE; case $with_DCE in
2542     yes)        cat >>confdefs.h <<\_ACEOF
2543 #define HAVE_DCE 1
2544 _ACEOF
2545
2546                 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2547 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2548                 { echo "$as_me:$LINENO: result: yes" >&5
2549 echo "${ECHO_T}yes" >&6; }
2550                 AUTH_REG="$AUTH_REG DCE"
2551                 ;;
2552     no)         ;;
2553     *)          { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2554 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2555    { (exit 1); exit 1; }; }
2556                 ;;
2557 esac
2558 fi
2559
2560
2561
2562 # Check whether --with-logincap was given.
2563 if test "${with_logincap+set}" = set; then
2564   withval=$with_logincap; case $with_logincap in
2565     yes|no)     ;;
2566     *)          { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2567 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2568    { (exit 1); exit 1; }; }
2569                 ;;
2570 esac
2571 fi
2572
2573
2574
2575 # Check whether --with-bsdauth was given.
2576 if test "${with_bsdauth+set}" = set; then
2577   withval=$with_bsdauth; case $with_bsdauth in
2578     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2579     no)         ;;
2580     *)          { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2581 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2582    { (exit 1); exit 1; }; }
2583                 ;;
2584 esac
2585 fi
2586
2587
2588
2589 # Check whether --with-project was given.
2590 if test "${with_project+set}" = set; then
2591   withval=$with_project; case $with_project in
2592     yes|no)     ;;
2593     no) ;;
2594     *)          { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2595 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2596    { (exit 1); exit 1; }; }
2597                 ;;
2598 esac
2599 fi
2600
2601
2602 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2603 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2604
2605 # Check whether --with-lecture was given.
2606 if test "${with_lecture+set}" = set; then
2607   withval=$with_lecture; case $with_lecture in
2608     yes|short|always)   lecture=once
2609                 ;;
2610     no|none|never)      lecture=never
2611                 ;;
2612     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2613 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2614    { (exit 1); exit 1; }; }
2615                 ;;
2616 esac
2617 fi
2618
2619 if test "$lecture" = "once"; then
2620     { echo "$as_me:$LINENO: result: yes" >&5
2621 echo "${ECHO_T}yes" >&6; }
2622 else
2623     cat >>confdefs.h <<\_ACEOF
2624 #define NO_LECTURE 1
2625 _ACEOF
2626
2627     { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2629 fi
2630
2631 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2632 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2633
2634 # Check whether --with-logging was given.
2635 if test "${with_logging+set}" = set; then
2636   withval=$with_logging; case $with_logging in
2637     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2638 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2639    { (exit 1); exit 1; }; }
2640                 ;;
2641     no)         { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2642 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2643    { (exit 1); exit 1; }; }
2644                 ;;
2645     syslog)     cat >>confdefs.h <<\_ACEOF
2646 #define LOGGING SLOG_SYSLOG
2647 _ACEOF
2648
2649                 { echo "$as_me:$LINENO: result: syslog" >&5
2650 echo "${ECHO_T}syslog" >&6; }
2651                 ;;
2652     file)       cat >>confdefs.h <<\_ACEOF
2653 #define LOGGING SLOG_FILE
2654 _ACEOF
2655
2656                 { echo "$as_me:$LINENO: result: file" >&5
2657 echo "${ECHO_T}file" >&6; }
2658                 ;;
2659     both)       cat >>confdefs.h <<\_ACEOF
2660 #define LOGGING SLOG_BOTH
2661 _ACEOF
2662
2663                 { echo "$as_me:$LINENO: result: both" >&5
2664 echo "${ECHO_T}both" >&6; }
2665                 ;;
2666     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2667 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2668    { (exit 1); exit 1; }; }
2669                 ;;
2670 esac
2671 else
2672   cat >>confdefs.h <<\_ACEOF
2673 #define LOGGING SLOG_SYSLOG
2674 _ACEOF
2675  { echo "$as_me:$LINENO: result: syslog" >&5
2676 echo "${ECHO_T}syslog" >&6; }
2677 fi
2678
2679
2680 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2681 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2682
2683 # Check whether --with-logfac was given.
2684 if test "${with_logfac+set}" = set; then
2685   withval=$with_logfac; case $with_logfac in
2686     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2687 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2688    { (exit 1); exit 1; }; }
2689                 ;;
2690     no)         { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2691 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2692    { (exit 1); exit 1; }; }
2693                 ;;
2694     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
2695                 ;;
2696     *)          { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2697 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2698    { (exit 1); exit 1; }; }
2699                 ;;
2700 esac
2701 fi
2702
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define LOGFAC "$logfac"
2706 _ACEOF
2707
2708 { echo "$as_me:$LINENO: result: $logfac" >&5
2709 echo "${ECHO_T}$logfac" >&6; }
2710
2711 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2712 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2713
2714 # Check whether --with-goodpri was given.
2715 if test "${with_goodpri+set}" = set; then
2716   withval=$with_goodpri; case $with_goodpri in
2717     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2718 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2719    { (exit 1); exit 1; }; }
2720                 ;;
2721     no)         { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2722 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2723    { (exit 1); exit 1; }; }
2724                 ;;
2725     alert|crit|debug|emerg|err|info|notice|warning)
2726                 goodpri=$with_goodpri
2727                 ;;
2728     *)          { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2729 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2730    { (exit 1); exit 1; }; }
2731                 ;;
2732 esac
2733 fi
2734
2735
2736 cat >>confdefs.h <<_ACEOF
2737 #define PRI_SUCCESS "$goodpri"
2738 _ACEOF
2739
2740 { echo "$as_me:$LINENO: result: $goodpri" >&5
2741 echo "${ECHO_T}$goodpri" >&6; }
2742
2743 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2744 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2745
2746 # Check whether --with-badpri was given.
2747 if test "${with_badpri+set}" = set; then
2748   withval=$with_badpri; case $with_badpri in
2749     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2750 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2751    { (exit 1); exit 1; }; }
2752                 ;;
2753     no)         { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2754 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2755    { (exit 1); exit 1; }; }
2756                 ;;
2757     alert|crit|debug|emerg|err|info|notice|warning)
2758                 badpri=$with_badpri
2759                 ;;
2760     *)          { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2761 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2762    { (exit 1); exit 1; }; }
2763                 ;;
2764 esac
2765 fi
2766
2767
2768 cat >>confdefs.h <<_ACEOF
2769 #define PRI_FAILURE "$badpri"
2770 _ACEOF
2771
2772 { echo "$as_me:$LINENO: result: $badpri" >&5
2773 echo "${ECHO_T}$badpri" >&6; }
2774
2775
2776 # Check whether --with-logpath was given.
2777 if test "${with_logpath+set}" = set; then
2778   withval=$with_logpath; case $with_logpath in
2779     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2780 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2781    { (exit 1); exit 1; }; }
2782                 ;;
2783     no)         { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2784 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2785    { (exit 1); exit 1; }; }
2786                 ;;
2787 esac
2788 fi
2789
2790
2791 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2792 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2793
2794 # Check whether --with-loglen was given.
2795 if test "${with_loglen+set}" = set; then
2796   withval=$with_loglen; case $with_loglen in
2797     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2798 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2799    { (exit 1); exit 1; }; }
2800                 ;;
2801     no)         { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2802 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2803    { (exit 1); exit 1; }; }
2804                 ;;
2805     [0-9]*)     loglen=$with_loglen
2806                 ;;
2807     *)          { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2808 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2809    { (exit 1); exit 1; }; }
2810                 ;;
2811 esac
2812 fi
2813
2814
2815 cat >>confdefs.h <<_ACEOF
2816 #define MAXLOGFILELEN $loglen
2817 _ACEOF
2818
2819 { echo "$as_me:$LINENO: result: $loglen" >&5
2820 echo "${ECHO_T}$loglen" >&6; }
2821
2822 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2823 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2824
2825 # Check whether --with-ignore-dot was given.
2826 if test "${with_ignore_dot+set}" = set; then
2827   withval=$with_ignore_dot; case $with_ignore_dot in
2828     yes)        ignore_dot=on
2829                 ;;
2830     no)         ignore_dot=off
2831                 ;;
2832     *)          { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2833 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2834    { (exit 1); exit 1; }; }
2835                 ;;
2836 esac
2837 fi
2838
2839 if test "$ignore_dot" = "on"; then
2840     cat >>confdefs.h <<\_ACEOF
2841 #define IGNORE_DOT_PATH 1
2842 _ACEOF
2843
2844     { echo "$as_me:$LINENO: result: yes" >&5
2845 echo "${ECHO_T}yes" >&6; }
2846 else
2847     { echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6; }
2849 fi
2850
2851 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2852 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2853
2854 # Check whether --with-mail-if-no-user was given.
2855 if test "${with_mail_if_no_user+set}" = set; then
2856   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2857     yes)        mail_no_user=on
2858                 ;;
2859     no)         mail_no_user=off
2860                 ;;
2861     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2862 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2863    { (exit 1); exit 1; }; }
2864                 ;;
2865 esac
2866 fi
2867
2868 if test "$mail_no_user" = "on"; then
2869     cat >>confdefs.h <<\_ACEOF
2870 #define SEND_MAIL_WHEN_NO_USER 1
2871 _ACEOF
2872
2873     { echo "$as_me:$LINENO: result: yes" >&5
2874 echo "${ECHO_T}yes" >&6; }
2875 else
2876     { echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6; }
2878 fi
2879
2880 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2881 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2882
2883 # Check whether --with-mail-if-no-host was given.
2884 if test "${with_mail_if_no_host+set}" = set; then
2885   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2886     yes)        mail_no_host=on
2887                 ;;
2888     no)         mail_no_host=off
2889                 ;;
2890     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2891 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2892    { (exit 1); exit 1; }; }
2893                 ;;
2894 esac
2895 fi
2896
2897 if test "$mail_no_host" = "on"; then
2898     cat >>confdefs.h <<\_ACEOF
2899 #define SEND_MAIL_WHEN_NO_HOST 1
2900 _ACEOF
2901
2902     { echo "$as_me:$LINENO: result: yes" >&5
2903 echo "${ECHO_T}yes" >&6; }
2904 else
2905     { echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6; }
2907 fi
2908
2909 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2910 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2911
2912 # Check whether --with-mail-if-noperms was given.
2913 if test "${with_mail_if_noperms+set}" = set; then
2914   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2915     yes)        mail_noperms=on
2916                 ;;
2917     no)         mail_noperms=off
2918                 ;;
2919     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2920 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2921    { (exit 1); exit 1; }; }
2922                 ;;
2923 esac
2924 fi
2925
2926 if test "$mail_noperms" = "on"; then
2927     cat >>confdefs.h <<\_ACEOF
2928 #define SEND_MAIL_WHEN_NOT_OK 1
2929 _ACEOF
2930
2931     { echo "$as_me:$LINENO: result: yes" >&5
2932 echo "${ECHO_T}yes" >&6; }
2933 else
2934     { echo "$as_me:$LINENO: result: no" >&5
2935 echo "${ECHO_T}no" >&6; }
2936 fi
2937
2938 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2939 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
2940
2941 # Check whether --with-mailto was given.
2942 if test "${with_mailto+set}" = set; then
2943   withval=$with_mailto; case $with_mailto in
2944     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2945 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2946    { (exit 1); exit 1; }; }
2947                 ;;
2948     no)         { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2949 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2950    { (exit 1); exit 1; }; }
2951                 ;;
2952     *)          mailto=$with_mailto
2953                 ;;
2954 esac
2955 fi
2956
2957
2958 cat >>confdefs.h <<_ACEOF
2959 #define MAILTO "$mailto"
2960 _ACEOF
2961
2962 { echo "$as_me:$LINENO: result: $mailto" >&5
2963 echo "${ECHO_T}$mailto" >&6; }
2964
2965
2966 # Check whether --with-mailsubject was given.
2967 if test "${with_mailsubject+set}" = set; then
2968   withval=$with_mailsubject; case $with_mailsubject in
2969     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2970 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2971    { (exit 1); exit 1; }; }
2972                 ;;
2973     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2974 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2975                 ;;
2976     *)          mailsub="$with_mailsubject"
2977                 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
2978 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
2979                 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
2980 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
2981                 ;;
2982 esac
2983 fi
2984
2985
2986 cat >>confdefs.h <<_ACEOF
2987 #define MAILSUBJECT "$mailsub"
2988 _ACEOF
2989
2990
2991 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
2992 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
2993
2994 # Check whether --with-passprompt was given.
2995 if test "${with_passprompt+set}" = set; then
2996   withval=$with_passprompt; case $with_passprompt in
2997     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
2998 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2999    { (exit 1); exit 1; }; }
3000                 ;;
3001     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
3002 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
3003                 ;;
3004     *)          passprompt="$with_passprompt"
3005 esac
3006 fi
3007
3008 { echo "$as_me:$LINENO: result: $passprompt" >&5
3009 echo "${ECHO_T}$passprompt" >&6; }
3010
3011 cat >>confdefs.h <<_ACEOF
3012 #define PASSPROMPT "$passprompt"
3013 _ACEOF
3014
3015
3016 { echo "$as_me:$LINENO: checking for bad password message" >&5
3017 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
3018
3019 # Check whether --with-badpass-message was given.
3020 if test "${with_badpass_message+set}" = set; then
3021   withval=$with_badpass_message; case $with_badpass_message in
3022     yes)        { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3023 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3024    { (exit 1); exit 1; }; }
3025                 ;;
3026     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3027 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3028                 ;;
3029     *)          badpass_message="$with_badpass_message"
3030                 ;;
3031 esac
3032 fi
3033
3034
3035 cat >>confdefs.h <<_ACEOF
3036 #define INCORRECT_PASSWORD "$badpass_message"
3037 _ACEOF
3038
3039 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3040 echo "${ECHO_T}$badpass_message" >&6; }
3041
3042 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3043 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3044
3045 # Check whether --with-fqdn was given.
3046 if test "${with_fqdn+set}" = set; then
3047   withval=$with_fqdn; case $with_fqdn in
3048     yes)        fqdn=on
3049                 ;;
3050     no)         fqdn=off
3051                 ;;
3052     *)          { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3053 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3054    { (exit 1); exit 1; }; }
3055                 ;;
3056 esac
3057 fi
3058
3059 if test "$fqdn" = "on"; then
3060     cat >>confdefs.h <<\_ACEOF
3061 #define FQDN 1
3062 _ACEOF
3063
3064     { echo "$as_me:$LINENO: result: yes" >&5
3065 echo "${ECHO_T}yes" >&6; }
3066 else
3067     { echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6; }
3069 fi
3070
3071
3072 # Check whether --with-timedir was given.
3073 if test "${with_timedir+set}" = set; then
3074   withval=$with_timedir; case $with_timedir in
3075     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3076 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3077    { (exit 1); exit 1; }; }
3078                 ;;
3079     no)         { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3080 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3081    { (exit 1); exit 1; }; }
3082                 ;;
3083 esac
3084 fi
3085
3086
3087
3088 # Check whether --with-sendmail was given.
3089 if test "${with_sendmail+set}" = set; then
3090   withval=$with_sendmail; case $with_sendmail in
3091     yes)        with_sendmail=""
3092                 ;;
3093     no)         ;;
3094     *)          cat >>confdefs.h <<EOF
3095 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3096 EOF
3097
3098                 ;;
3099 esac
3100 fi
3101
3102
3103
3104 # Check whether --with-sudoers-mode was given.
3105 if test "${with_sudoers_mode+set}" = set; then
3106   withval=$with_sudoers_mode; case $with_sudoers_mode in
3107     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3108 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3109    { (exit 1); exit 1; }; }
3110                 ;;
3111     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3112 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3113    { (exit 1); exit 1; }; }
3114                 ;;
3115     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
3116                 ;;
3117     0*)         SUDOERS_MODE=$with_sudoers_mode
3118                 ;;
3119     *)          { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3120 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3121    { (exit 1); exit 1; }; }
3122                 ;;
3123 esac
3124 fi
3125
3126
3127
3128 # Check whether --with-sudoers-uid was given.
3129 if test "${with_sudoers_uid+set}" = set; then
3130   withval=$with_sudoers_uid; case $with_sudoers_uid in
3131     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3132 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3133    { (exit 1); exit 1; }; }
3134                 ;;
3135     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3136 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3137    { (exit 1); exit 1; }; }
3138                 ;;
3139     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
3140                 ;;
3141     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3142 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3143    { (exit 1); exit 1; }; }
3144                 ;;
3145 esac
3146 fi
3147
3148
3149
3150 # Check whether --with-sudoers-gid was given.
3151 if test "${with_sudoers_gid+set}" = set; then
3152   withval=$with_sudoers_gid; case $with_sudoers_gid in
3153     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3154 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3155    { (exit 1); exit 1; }; }
3156                 ;;
3157     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3158 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3159    { (exit 1); exit 1; }; }
3160                 ;;
3161     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
3162                 ;;
3163     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3164 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3165    { (exit 1); exit 1; }; }
3166                 ;;
3167 esac
3168 fi
3169
3170
3171 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3172 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3173
3174 # Check whether --with-umask was given.
3175 if test "${with_umask+set}" = set; then
3176   withval=$with_umask; case $with_umask in
3177     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3178 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3179    { (exit 1); exit 1; }; }
3180                 ;;
3181     no)         sudo_umask=0777
3182                 ;;
3183     [0-9]*)     sudo_umask=$with_umask
3184                 ;;
3185     *)          { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3186 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3187    { (exit 1); exit 1; }; }
3188                 ;;
3189 esac
3190 fi
3191
3192
3193 cat >>confdefs.h <<_ACEOF
3194 #define SUDO_UMASK $sudo_umask
3195 _ACEOF
3196
3197 if test "$sudo_umask" = "0777"; then
3198     { echo "$as_me:$LINENO: result: user" >&5
3199 echo "${ECHO_T}user" >&6; }
3200 else
3201     { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3202 echo "${ECHO_T}$sudo_umask" >&6; }
3203 fi
3204
3205 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3206 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3207
3208 # Check whether --with-runas-default was given.
3209 if test "${with_runas_default+set}" = set; then
3210   withval=$with_runas_default; case $with_runas_default in
3211     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3212 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3213    { (exit 1); exit 1; }; }
3214                 ;;
3215     no)         { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3216 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3217    { (exit 1); exit 1; }; }
3218                 ;;
3219     *)          runas_default="$with_runas_default"
3220                 ;;
3221 esac
3222 fi
3223
3224
3225 cat >>confdefs.h <<_ACEOF
3226 #define RUNAS_DEFAULT "$runas_default"
3227 _ACEOF
3228
3229 { echo "$as_me:$LINENO: result: $runas_default" >&5
3230 echo "${ECHO_T}$runas_default" >&6; }
3231
3232
3233 # Check whether --with-exempt was given.
3234 if test "${with_exempt+set}" = set; then
3235   withval=$with_exempt; case $with_exempt in
3236     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3237 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3238    { (exit 1); exit 1; }; }
3239                 ;;
3240     no)         { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3241 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3242    { (exit 1); exit 1; }; }
3243                 ;;
3244     *)
3245 cat >>confdefs.h <<_ACEOF
3246 #define EXEMPTGROUP "$with_exempt"
3247 _ACEOF
3248
3249                 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3250 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3251                 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3252 echo "${ECHO_T}$with_exempt" >&6; }
3253                 ;;
3254 esac
3255 fi
3256
3257
3258 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3259 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3260
3261 # Check whether --with-editor was given.
3262 if test "${with_editor+set}" = set; then
3263   withval=$with_editor; case $with_editor in
3264     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3265 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3266    { (exit 1); exit 1; }; }
3267                 ;;
3268     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3269 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3270    { (exit 1); exit 1; }; }
3271                 ;;
3272     *)
3273 cat >>confdefs.h <<_ACEOF
3274 #define EDITOR "$with_editor"
3275 _ACEOF
3276
3277                 { echo "$as_me:$LINENO: result: $with_editor" >&5
3278 echo "${ECHO_T}$with_editor" >&6; }
3279                 ;;
3280 esac
3281 else
3282   cat >>confdefs.h <<\_ACEOF
3283 #define EDITOR _PATH_VI
3284 _ACEOF
3285  { echo "$as_me:$LINENO: result: vi" >&5
3286 echo "${ECHO_T}vi" >&6; }
3287 fi
3288
3289
3290 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3291 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3292
3293 # Check whether --with-env-editor was given.
3294 if test "${with_env_editor+set}" = set; then
3295   withval=$with_env_editor; case $with_env_editor in
3296     yes)        env_editor=on
3297                 ;;
3298     no)         env_editor=off
3299                 ;;
3300     *)          { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3301 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3302    { (exit 1); exit 1; }; }
3303                 ;;
3304 esac
3305 fi
3306
3307 if test "$env_editor" = "on"; then
3308     cat >>confdefs.h <<\_ACEOF
3309 #define ENV_EDITOR 1
3310 _ACEOF
3311
3312     { echo "$as_me:$LINENO: result: yes" >&5
3313 echo "${ECHO_T}yes" >&6; }
3314 else
3315     { echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6; }
3317 fi
3318
3319 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3320 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3321
3322 # Check whether --with-passwd-tries was given.
3323 if test "${with_passwd_tries+set}" = set; then
3324   withval=$with_passwd_tries; case $with_passwd_tries in
3325     yes)        ;;
3326     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3327 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3328    { (exit 1); exit 1; }; }
3329                 ;;
3330     [1-9]*)     passwd_tries=$with_passwd_tries
3331                 ;;
3332     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3333 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3334    { (exit 1); exit 1; }; }
3335                 ;;
3336 esac
3337 fi
3338
3339
3340 cat >>confdefs.h <<_ACEOF
3341 #define TRIES_FOR_PASSWORD $passwd_tries
3342 _ACEOF
3343
3344 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3345 echo "${ECHO_T}$passwd_tries" >&6; }
3346
3347 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3348 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3349
3350 # Check whether --with-timeout was given.
3351 if test "${with_timeout+set}" = set; then
3352   withval=$with_timeout; case $with_timeout in
3353     yes)        ;;
3354     no)         timeout=0
3355                 ;;
3356     [0-9]*)     timeout=$with_timeout
3357                 ;;
3358     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3359 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3360    { (exit 1); exit 1; }; }
3361                 ;;
3362 esac
3363 fi
3364
3365
3366 cat >>confdefs.h <<_ACEOF
3367 #define TIMEOUT $timeout
3368 _ACEOF
3369
3370 { echo "$as_me:$LINENO: result: $timeout" >&5
3371 echo "${ECHO_T}$timeout" >&6; }
3372
3373 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3374 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3375
3376 # Check whether --with-password-timeout was given.
3377 if test "${with_password_timeout+set}" = set; then
3378   withval=$with_password_timeout; case $with_password_timeout in
3379     yes)        ;;
3380     no)         password_timeout=0
3381                 ;;
3382     [0-9]*)     password_timeout=$with_password_timeout
3383                 ;;
3384     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3385 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3386    { (exit 1); exit 1; }; }
3387                 ;;
3388 esac
3389 fi
3390
3391
3392 cat >>confdefs.h <<_ACEOF
3393 #define PASSWORD_TIMEOUT $password_timeout
3394 _ACEOF
3395
3396 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3397 echo "${ECHO_T}$password_timeout" >&6; }
3398
3399 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3400 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3401
3402 # Check whether --with-tty-tickets was given.
3403 if test "${with_tty_tickets+set}" = set; then
3404   withval=$with_tty_tickets; case $with_tty_tickets in
3405     yes)        tty_tickets=on
3406                 ;;
3407     no)         tty_tickets=off
3408                 ;;
3409     *)          { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3410 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3411    { (exit 1); exit 1; }; }
3412                 ;;
3413 esac
3414 fi
3415
3416 if test "$tty_tickets" = "on"; then
3417     cat >>confdefs.h <<\_ACEOF
3418 #define USE_TTY_TICKETS 1
3419 _ACEOF
3420
3421     { echo "$as_me:$LINENO: result: yes" >&5
3422 echo "${ECHO_T}yes" >&6; }
3423 else
3424     { echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6; }
3426 fi
3427
3428 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3429 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3430
3431 # Check whether --with-insults was given.
3432 if test "${with_insults+set}" = set; then
3433   withval=$with_insults; case $with_insults in
3434     yes)        insults=on
3435                 with_classic_insults=yes
3436                 with_csops_insults=yes
3437                 ;;
3438     no)         insults=off
3439                 ;;
3440     *)          { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3441 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3442    { (exit 1); exit 1; }; }
3443                 ;;
3444 esac
3445 fi
3446
3447 if test "$insults" = "on"; then
3448     cat >>confdefs.h <<\_ACEOF
3449 #define USE_INSULTS 1
3450 _ACEOF
3451
3452     { echo "$as_me:$LINENO: result: yes" >&5
3453 echo "${ECHO_T}yes" >&6; }
3454 else
3455     { echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6; }
3457 fi
3458
3459
3460 # Check whether --with-all-insults was given.
3461 if test "${with_all_insults+set}" = set; then
3462   withval=$with_all_insults; case $with_all_insults in
3463     yes)        with_classic_insults=yes
3464                 with_csops_insults=yes
3465                 with_hal_insults=yes
3466                 with_goons_insults=yes
3467                 ;;
3468     no)         ;;
3469     *)          { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3470 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3471    { (exit 1); exit 1; }; }
3472                 ;;
3473 esac
3474 fi
3475
3476
3477
3478 # Check whether --with-classic-insults was given.
3479 if test "${with_classic_insults+set}" = set; then
3480   withval=$with_classic_insults; case $with_classic_insults in
3481     yes)        cat >>confdefs.h <<\_ACEOF
3482 #define CLASSIC_INSULTS 1
3483 _ACEOF
3484
3485                 ;;
3486     no)         ;;
3487     *)          { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3488 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3489    { (exit 1); exit 1; }; }
3490                 ;;
3491 esac
3492 fi
3493
3494
3495
3496 # Check whether --with-csops-insults was given.
3497 if test "${with_csops_insults+set}" = set; then
3498   withval=$with_csops_insults; case $with_csops_insults in
3499     yes)        cat >>confdefs.h <<\_ACEOF
3500 #define CSOPS_INSULTS 1
3501 _ACEOF
3502
3503                 ;;
3504     no)         ;;
3505     *)          { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3506 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3507    { (exit 1); exit 1; }; }
3508                 ;;
3509 esac
3510 fi
3511
3512
3513
3514 # Check whether --with-hal-insults was given.
3515 if test "${with_hal_insults+set}" = set; then
3516   withval=$with_hal_insults; case $with_hal_insults in
3517     yes)        cat >>confdefs.h <<\_ACEOF
3518 #define HAL_INSULTS 1
3519 _ACEOF
3520
3521                 ;;
3522     no)         ;;
3523     *)          { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3524 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3525    { (exit 1); exit 1; }; }
3526                 ;;
3527 esac
3528 fi
3529
3530
3531
3532 # Check whether --with-goons-insults was given.
3533 if test "${with_goons_insults+set}" = set; then
3534   withval=$with_goons_insults; case $with_goons_insults in
3535     yes)        cat >>confdefs.h <<\_ACEOF
3536 #define GOONS_INSULTS 1
3537 _ACEOF
3538
3539                 ;;
3540     no)         ;;
3541     *)          { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3542 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3543    { (exit 1); exit 1; }; }
3544                 ;;
3545 esac
3546 fi
3547
3548
3549
3550 # Check whether --with-ldap was given.
3551 if test "${with_ldap+set}" = set; then
3552   withval=$with_ldap; case $with_ldap in
3553     no)         with_ldap="";;
3554     *)          cat >>confdefs.h <<\_ACEOF
3555 #define HAVE_LDAP 1
3556 _ACEOF
3557
3558                 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3559 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3560                 { echo "$as_me:$LINENO: result: yes" >&5
3561 echo "${ECHO_T}yes" >&6; }
3562                 ;;
3563 esac
3564 fi
3565
3566
3567 # Check whether --with-ldap-conf-file was given.
3568 if test "${with_ldap_conf_file+set}" = set; then
3569   withval=$with_ldap_conf_file;
3570 cat >>confdefs.h <<_ACEOF
3571 #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3572 _ACEOF
3573
3574 fi
3575
3576
3577 # Check whether --with-ldap-secret-file was given.
3578 if test "${with_ldap_secret_file+set}" = set; then
3579   withval=$with_ldap_secret_file;
3580 cat >>confdefs.h <<_ACEOF
3581 #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
3582 _ACEOF
3583
3584 fi
3585
3586
3587
3588 # Check whether --with-pc-insults was given.
3589 if test "${with_pc_insults+set}" = set; then
3590   withval=$with_pc_insults; case $with_pc_insults in
3591     yes)        cat >>confdefs.h <<\_ACEOF
3592 #define PC_INSULTS 1
3593 _ACEOF
3594
3595                 ;;
3596     no)         ;;
3597     *)          { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3598 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3599    { (exit 1); exit 1; }; }
3600                 ;;
3601 esac
3602 fi
3603
3604
3605 if test "$insults" = "on"; then
3606     { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3607 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3608     i=""
3609     test "$with_goons_insults" = "yes" && i="goons ${i}"
3610     test "$with_hal_insults" = "yes" && i="hal ${i}"
3611     test "$with_csops_insults" = "yes" && i="csops ${i}"
3612     test "$with_classic_insults" = "yes" && i="classic ${i}"
3613     { echo "$as_me:$LINENO: result: $i" >&5
3614 echo "${ECHO_T}$i" >&6; }
3615 fi
3616
3617 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3618 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3619
3620 # Check whether --with-secure-path was given.
3621 if test "${with_secure_path+set}" = set; then
3622   withval=$with_secure_path; case $with_secure_path in
3623     yes)        cat >>confdefs.h <<_ACEOF
3624 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3625 _ACEOF
3626
3627                 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3628 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3629                 ;;
3630     no)         { echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6; }
3632                 ;;
3633     *)          cat >>confdefs.h <<_ACEOF
3634 #define SECURE_PATH "$with_secure_path"
3635 _ACEOF
3636
3637                 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3638 echo "${ECHO_T}$with_secure_path" >&6; }
3639                 ;;
3640 esac
3641 else
3642   { echo "$as_me:$LINENO: result: no" >&5
3643 echo "${ECHO_T}no" >&6; }
3644 fi
3645
3646
3647 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3648 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3649
3650 # Check whether --with-interfaces was given.
3651 if test "${with_interfaces+set}" = set; then
3652   withval=$with_interfaces; case $with_interfaces in
3653     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3654 echo "${ECHO_T}yes" >&6; }
3655                 ;;
3656     no)         cat >>confdefs.h <<\_ACEOF
3657 #define STUB_LOAD_INTERFACES 1
3658 _ACEOF
3659
3660                 { echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6; }
3662                 ;;
3663     *)          { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3664 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3665    { (exit 1); exit 1; }; }
3666                 ;;
3667 esac
3668 else
3669   { echo "$as_me:$LINENO: result: yes" >&5
3670 echo "${ECHO_T}yes" >&6; }
3671 fi
3672
3673
3674 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3675 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3676
3677 # Check whether --with-stow was given.
3678 if test "${with_stow+set}" = set; then
3679   withval=$with_stow; case $with_stow in
3680     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3681 echo "${ECHO_T}yes" >&6; }
3682                 cat >>confdefs.h <<\_ACEOF
3683 #define USE_STOW 1
3684 _ACEOF
3685
3686                 ;;
3687     no)         { echo "$as_me:$LINENO: result: no" >&5
3688 echo "${ECHO_T}no" >&6; }
3689                 ;;
3690     *)          { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3691 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3692    { (exit 1); exit 1; }; }
3693                 ;;
3694 esac
3695 else
3696   { echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6; }
3698 fi
3699
3700
3701
3702 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3703 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3704 # Check whether --enable-authentication was given.
3705 if test "${enable_authentication+set}" = set; then
3706   enableval=$enable_authentication;  case "$enableval" in
3707     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3708 echo "${ECHO_T}yes" >&6; }
3709                 ;;
3710     no)         { echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6; }
3712                 cat >>confdefs.h <<\_ACEOF
3713 #define NO_AUTHENTICATION 1
3714 _ACEOF
3715
3716                 ;;
3717     *)          { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3719                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3720 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3721                 ;;
3722   esac
3723
3724 else
3725   { echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6; }
3727 fi
3728
3729
3730 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3731 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3732 # Check whether --enable-root-mailer was given.
3733 if test "${enable_root_mailer+set}" = set; then
3734   enableval=$enable_root_mailer;  case "$enableval" in
3735     yes)        { echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6; }
3737                 ;;
3738     no)         { echo "$as_me:$LINENO: result: yes" >&5
3739 echo "${ECHO_T}yes" >&6; }
3740                 cat >>confdefs.h <<\_ACEOF
3741 #define NO_ROOT_MAILER 1
3742 _ACEOF
3743
3744                 ;;
3745     *)          { echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6; }
3747                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3748 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3749                 ;;
3750   esac
3751
3752 else
3753   { echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6; }
3755 fi
3756
3757
3758 # Check whether --enable-setreuid was given.
3759 if test "${enable_setreuid+set}" = set; then
3760   enableval=$enable_setreuid;  case "$enableval" in
3761     no)         SKIP_SETREUID=yes
3762                 ;;
3763     *)          ;;
3764   esac
3765
3766 fi
3767
3768
3769 # Check whether --enable-setresuid was given.
3770 if test "${enable_setresuid+set}" = set; then
3771   enableval=$enable_setresuid;  case "$enableval" in
3772     no)         SKIP_SETRESUID=yes
3773                 ;;
3774     *)          ;;
3775   esac
3776
3777 fi
3778
3779
3780 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3781 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3782 # Check whether --enable-shadow was given.
3783 if test "${enable_shadow+set}" = set; then
3784   enableval=$enable_shadow;  case "$enableval" in
3785     yes)        { echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6; }
3787                 ;;
3788     no)         { echo "$as_me:$LINENO: result: yes" >&5
3789 echo "${ECHO_T}yes" >&6; }
3790                 CHECKSHADOW="false"
3791                 ;;
3792     *)          { echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6; }
3794                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3795 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3796                 ;;
3797   esac
3798
3799 else
3800   { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3802 fi
3803
3804
3805 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3806 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3807 # Check whether --enable-root-sudo was given.
3808 if test "${enable_root_sudo+set}" = set; then
3809   enableval=$enable_root_sudo;  case "$enableval" in
3810     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3811 echo "${ECHO_T}yes" >&6; }
3812                 ;;
3813     no)         cat >>confdefs.h <<\_ACEOF
3814 #define NO_ROOT_SUDO 1
3815 _ACEOF
3816
3817                 { echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6; }
3819                 root_sudo=off
3820                 ;;
3821     *)          { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3822 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3823    { (exit 1); exit 1; }; }
3824                 ;;
3825   esac
3826
3827 else
3828   { echo "$as_me:$LINENO: result: yes" >&5
3829 echo "${ECHO_T}yes" >&6; }
3830 fi
3831
3832
3833 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3834 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3835 # Check whether --enable-log-host was given.
3836 if test "${enable_log_host+set}" = set; then
3837   enableval=$enable_log_host;  case "$enableval" in
3838     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3839 echo "${ECHO_T}yes" >&6; }
3840                 cat >>confdefs.h <<\_ACEOF
3841 #define HOST_IN_LOG 1
3842 _ACEOF
3843
3844                 ;;
3845     no)         { echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6; }
3847                 ;;
3848     *)          { echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6; }
3850                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3851 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3852                 ;;
3853   esac
3854
3855 else
3856   { echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6; }
3858 fi
3859
3860
3861 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3862 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
3863 # Check whether --enable-noargs-shell was given.
3864 if test "${enable_noargs_shell+set}" = set; then
3865   enableval=$enable_noargs_shell;  case "$enableval" in
3866     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3867 echo "${ECHO_T}yes" >&6; }
3868                 cat >>confdefs.h <<\_ACEOF
3869 #define SHELL_IF_NO_ARGS 1
3870 _ACEOF
3871
3872                 ;;
3873     no)         { echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6; }
3875                 ;;
3876     *)          { echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6; }
3878                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3879 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3880                 ;;
3881   esac
3882
3883 else
3884   { echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6; }
3886 fi
3887
3888
3889 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3890 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
3891 # Check whether --enable-shell-sets-home was given.
3892 if test "${enable_shell_sets_home+set}" = set; then
3893   enableval=$enable_shell_sets_home;  case "$enableval" in
3894     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3895 echo "${ECHO_T}yes" >&6; }
3896                 cat >>confdefs.h <<\_ACEOF
3897 #define SHELL_SETS_HOME 1
3898 _ACEOF
3899
3900                 ;;
3901     no)         { echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6; }
3903                 ;;
3904     *)          { echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6; }
3906                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3907 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3908                 ;;
3909   esac
3910
3911 else
3912   { echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6; }
3914 fi
3915
3916
3917 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3918 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
3919 # Check whether --enable-path_info was given.
3920 if test "${enable_path_info+set}" = set; then
3921   enableval=$enable_path_info;  case "$enableval" in
3922     yes)        { echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6; }
3924                 ;;
3925     no)         { echo "$as_me:$LINENO: result: yes" >&5
3926 echo "${ECHO_T}yes" >&6; }
3927                 cat >>confdefs.h <<\_ACEOF
3928 #define DONT_LEAK_PATH_INFO 1
3929 _ACEOF
3930
3931                 path_info=off
3932                 ;;
3933     *)          { echo "$as_me:$LINENO: result: no" >&5
3934 echo "${ECHO_T}no" >&6; }
3935                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3936 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
3937                 ;;
3938   esac
3939
3940 else
3941   { echo "$as_me:$LINENO: result: no" >&5
3942 echo "${ECHO_T}no" >&6; }
3943 fi
3944
3945
3946
3947 # Check whether --with-selinux was given.
3948 if test "${with_selinux+set}" = set; then
3949   withval=$with_selinux; case $with_selinux in
3950     yes)        cat >>confdefs.h <<\_ACEOF
3951 #define HAVE_SELINUX 1
3952 _ACEOF
3953
3954                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
3955                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
3956                 PROGS="${PROGS} sesh"
3957                 SELINUX=""
3958                 SEMAN=""
3959                 ;;
3960     no)         ;;
3961     *)          { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
3962 echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
3963    { (exit 1); exit 1; }; }
3964                 ;;
3965 esac
3966 fi
3967
3968
3969 # Extract the first word of "egrep", so it can be a program name with args.
3970 set dummy egrep; ac_word=$2
3971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3973 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   if test -n "$EGREPPROG"; then
3977   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984   for ac_exec_ext in '' $ac_executable_extensions; do
3985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986     ac_cv_prog_EGREPPROG="egrep"
3987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988     break 2
3989   fi
3990 done
3991 done
3992 IFS=$as_save_IFS
3993
3994 fi
3995 fi
3996 EGREPPROG=$ac_cv_prog_EGREPPROG
3997 if test -n "$EGREPPROG"; then
3998   { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
3999 echo "${ECHO_T}$EGREPPROG" >&6; }
4000 else
4001   { echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6; }
4003 fi
4004
4005
4006 if test -z "$EGREPPROG"; then
4007     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
4008 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
4009    { (exit 1); exit 1; }; }
4010 fi
4011
4012 if test "$with_devel" != "yes"; then
4013     ac_cv_prog_cc_g=no
4014 fi
4015
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021 if test -n "$ac_tool_prefix"; then
4022   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4023 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4026 if test "${ac_cv_prog_CC+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   if test -n "$CC"; then
4030   ac_cv_prog_CC="$CC" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037   for ac_exec_ext in '' $ac_executable_extensions; do
4038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041     break 2
4042   fi
4043 done
4044 done
4045 IFS=$as_save_IFS
4046
4047 fi
4048 fi
4049 CC=$ac_cv_prog_CC
4050 if test -n "$CC"; then
4051   { echo "$as_me:$LINENO: result: $CC" >&5
4052 echo "${ECHO_T}$CC" >&6; }
4053 else
4054   { echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6; }
4056 fi
4057
4058
4059 fi
4060 if test -z "$ac_cv_prog_CC"; then
4061   ac_ct_CC=$CC
4062   # Extract the first word of "gcc", so it can be a program name with args.
4063 set dummy gcc; ac_word=$2
4064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   if test -n "$ac_ct_CC"; then
4070   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075   IFS=$as_save_IFS
4076   test -z "$as_dir" && as_dir=.
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079     ac_cv_prog_ac_ct_CC="gcc"
4080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081     break 2
4082   fi
4083 done
4084 done
4085 IFS=$as_save_IFS
4086
4087 fi
4088 fi
4089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4090 if test -n "$ac_ct_CC"; then
4091   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4092 echo "${ECHO_T}$ac_ct_CC" >&6; }
4093 else
4094   { echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6; }
4096 fi
4097
4098   if test "x$ac_ct_CC" = x; then
4099     CC=""
4100   else
4101     case $cross_compiling:$ac_tool_warned in
4102 yes:)
4103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4104 whose name does not start with the host triplet.  If you think this
4105 configuration is useful to you, please write to autoconf@gnu.org." >&5
4106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4107 whose name does not start with the host triplet.  If you think this
4108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111     CC=$ac_ct_CC
4112   fi
4113 else
4114   CC="$ac_cv_prog_CC"
4115 fi
4116
4117 if test -z "$CC"; then
4118           if test -n "$ac_tool_prefix"; then
4119     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4123 if test "${ac_cv_prog_CC+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   if test -n "$CC"; then
4127   ac_cv_prog_CC="$CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132   IFS=$as_save_IFS
4133   test -z "$as_dir" && as_dir=.
4134   for ac_exec_ext in '' $ac_executable_extensions; do
4135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136     ac_cv_prog_CC="${ac_tool_prefix}cc"
4137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138     break 2
4139   fi
4140 done
4141 done
4142 IFS=$as_save_IFS
4143
4144 fi
4145 fi
4146 CC=$ac_cv_prog_CC
4147 if test -n "$CC"; then
4148   { echo "$as_me:$LINENO: result: $CC" >&5
4149 echo "${ECHO_T}$CC" >&6; }
4150 else
4151   { echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6; }
4153 fi
4154
4155
4156   fi
4157 fi
4158 if test -z "$CC"; then
4159   # Extract the first word of "cc", so it can be a program name with args.
4160 set dummy cc; ac_word=$2
4161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4163 if test "${ac_cv_prog_CC+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   if test -n "$CC"; then
4167   ac_cv_prog_CC="$CC" # Let the user override the test.
4168 else
4169   ac_prog_rejected=no
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175   for ac_exec_ext in '' $ac_executable_extensions; do
4176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178        ac_prog_rejected=yes
4179        continue
4180      fi
4181     ac_cv_prog_CC="cc"
4182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183     break 2
4184   fi
4185 done
4186 done
4187 IFS=$as_save_IFS
4188
4189 if test $ac_prog_rejected = yes; then
4190   # We found a bogon in the path, so make sure we never use it.
4191   set dummy $ac_cv_prog_CC
4192   shift
4193   if test $# != 0; then
4194     # We chose a different compiler from the bogus one.
4195     # However, it has the same basename, so the bogon will be chosen
4196     # first if we set CC to just the basename; use the full file name.
4197     shift
4198     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4199   fi
4200 fi
4201 fi
4202 fi
4203 CC=$ac_cv_prog_CC
4204 if test -n "$CC"; then
4205   { echo "$as_me:$LINENO: result: $CC" >&5
4206 echo "${ECHO_T}$CC" >&6; }
4207 else
4208   { echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6; }
4210 fi
4211
4212
4213 fi
4214 if test -z "$CC"; then
4215   if test -n "$ac_tool_prefix"; then
4216   for ac_prog in cl.exe
4217   do
4218     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 set dummy $ac_tool_prefix$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_CC+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   if test -n "$CC"; then
4226   ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247   { echo "$as_me:$LINENO: result: $CC" >&5
4248 echo "${ECHO_T}$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 "$CC" && break
4256   done
4257 fi
4258 if test -z "$CC"; then
4259   ac_ct_CC=$CC
4260   for ac_prog in cl.exe
4261 do
4262   # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   if test -n "$ac_ct_CC"; then
4270   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275   IFS=$as_save_IFS
4276   test -z "$as_dir" && as_dir=.
4277   for ac_exec_ext in '' $ac_executable_extensions; do
4278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279     ac_cv_prog_ac_ct_CC="$ac_prog"
4280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281     break 2
4282   fi
4283 done
4284 done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4292 echo "${ECHO_T}$ac_ct_CC" >&6; }
4293 else
4294   { echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6; }
4296 fi
4297
4298
4299   test -n "$ac_ct_CC" && break
4300 done
4301
4302   if test "x$ac_ct_CC" = x; then
4303     CC=""
4304   else
4305     case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4308 whose name does not start with the host triplet.  If you think this
4309 configuration is useful to you, please write to autoconf@gnu.org." >&5
4310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4311 whose name does not start with the host triplet.  If you think this
4312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4313 ac_tool_warned=yes ;;
4314 esac
4315     CC=$ac_ct_CC
4316   fi
4317 fi
4318
4319 fi
4320
4321
4322 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4323 See \`config.log' for more details." >&5
4324 echo "$as_me: error: no acceptable C compiler found in \$PATH
4325 See \`config.log' for more details." >&2;}
4326    { (exit 1); exit 1; }; }
4327
4328 # Provide some information about the compiler.
4329 echo "$as_me:$LINENO: checking for C compiler version" >&5
4330 ac_compiler=`set X $ac_compile; echo $2`
4331 { (ac_try="$ac_compiler --version >&5"
4332 case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337   (eval "$ac_compiler --version >&5") 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }
4341 { (ac_try="$ac_compiler -v >&5"
4342 case "(($ac_try" in
4343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344   *) ac_try_echo=$ac_try;;
4345 esac
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347   (eval "$ac_compiler -v >&5") 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); }
4351 { (ac_try="$ac_compiler -V >&5"
4352 case "(($ac_try" in
4353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354   *) ac_try_echo=$ac_try;;
4355 esac
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357   (eval "$ac_compiler -V >&5") 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }
4361
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368
4369 int
4370 main ()
4371 {
4372
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 ac_clean_files_save=$ac_clean_files
4378 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4379 # Try to create an executable without -o first, disregard a.out.
4380 # It will help us diagnose broken compilers, and finding out an intuition
4381 # of exeext.
4382 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4383 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4384 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4385 #
4386 # List of possible output files, starting from the most likely.
4387 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4388 # only as a last resort.  b.out is created by i960 compilers.
4389 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4390 #
4391 # The IRIX 6 linker writes into existing files which may not be
4392 # executable, retaining their permissions.  Remove them first so a
4393 # subsequent execution test works.
4394 ac_rmfiles=
4395 for ac_file in $ac_files
4396 do
4397   case $ac_file in
4398     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4399     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4400   esac
4401 done
4402 rm -f $ac_rmfiles
4403
4404 if { (ac_try="$ac_link_default"
4405 case "(($ac_try" in
4406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407   *) ac_try_echo=$ac_try;;
4408 esac
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410   (eval "$ac_link_default") 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; then
4414   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4415 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4416 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4417 # so that the user can short-circuit this test for compilers unknown to
4418 # Autoconf.
4419 for ac_file in $ac_files ''
4420 do
4421   test -f "$ac_file" || continue
4422   case $ac_file in
4423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4424         ;;
4425     [ab].out )
4426         # We found the default executable, but exeext='' is most
4427         # certainly right.
4428         break;;
4429     *.* )
4430         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4431         then :; else
4432            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4433         fi
4434         # We set ac_cv_exeext here because the later test for it is not
4435         # safe: cross compilers may not add the suffix if given an `-o'
4436         # argument, so we may need to know it at that point already.
4437         # Even if this section looks crufty: it has the advantage of
4438         # actually working.
4439         break;;
4440     * )
4441         break;;
4442   esac
4443 done
4444 test "$ac_cv_exeext" = no && ac_cv_exeext=
4445
4446 else
4447   ac_file=''
4448 fi
4449
4450 { echo "$as_me:$LINENO: result: $ac_file" >&5
4451 echo "${ECHO_T}$ac_file" >&6; }
4452 if test -z "$ac_file"; then
4453   echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4457 See \`config.log' for more details." >&5
4458 echo "$as_me: error: C compiler cannot create executables
4459 See \`config.log' for more details." >&2;}
4460    { (exit 77); exit 77; }; }
4461 fi
4462
4463 ac_exeext=$ac_cv_exeext
4464
4465 # Check that the compiler produces executables we can run.  If not, either
4466 # the compiler is broken, or we cross compile.
4467 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4468 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4469 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4470 # If not cross compiling, check that we can run a simple program.
4471 if test "$cross_compiling" != yes; then
4472   if { ac_try='./$ac_file'
4473   { (case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478   (eval "$ac_try") 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); }; }; then
4482     cross_compiling=no
4483   else
4484     if test "$cross_compiling" = maybe; then
4485         cross_compiling=yes
4486     else
4487         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4488 If you meant to cross compile, use \`--host'.
4489 See \`config.log' for more details." >&5
4490 echo "$as_me: error: cannot run C compiled programs.
4491 If you meant to cross compile, use \`--host'.
4492 See \`config.log' for more details." >&2;}
4493    { (exit 1); exit 1; }; }
4494     fi
4495   fi
4496 fi
4497 { echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6; }
4499
4500 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4501 ac_clean_files=$ac_clean_files_save
4502 # Check that the compiler produces executables we can run.  If not, either
4503 # the compiler is broken, or we cross compile.
4504 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4505 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4506 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4507 echo "${ECHO_T}$cross_compiling" >&6; }
4508
4509 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4510 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4511 if { (ac_try="$ac_link"
4512 case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517   (eval "$ac_link") 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }; then
4521   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4522 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4523 # work properly (i.e., refer to `conftest.exe'), while it won't with
4524 # `rm'.
4525 for ac_file in conftest.exe conftest conftest.*; do
4526   test -f "$ac_file" || continue
4527   case $ac_file in
4528     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4529     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4530           break;;
4531     * ) break;;
4532   esac
4533 done
4534 else
4535   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4536 See \`config.log' for more details." >&5
4537 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4538 See \`config.log' for more details." >&2;}
4539    { (exit 1); exit 1; }; }
4540 fi
4541
4542 rm -f conftest$ac_cv_exeext
4543 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4544 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4545
4546 rm -f conftest.$ac_ext
4547 EXEEXT=$ac_cv_exeext
4548 ac_exeext=$EXEEXT
4549 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4550 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4551 if test "${ac_cv_objext+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h.  */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h.  */
4560
4561 int
4562 main ()
4563 {
4564
4565   ;
4566   return 0;
4567 }
4568 _ACEOF
4569 rm -f conftest.o conftest.obj
4570 if { (ac_try="$ac_compile"
4571 case "(($ac_try" in
4572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573   *) ac_try_echo=$ac_try;;
4574 esac
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576   (eval "$ac_compile") 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; then
4580   for ac_file in conftest.o conftest.obj conftest.*; do
4581   test -f "$ac_file" || continue;
4582   case $ac_file in
4583     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4584     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4585        break;;
4586   esac
4587 done
4588 else
4589   echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4593 See \`config.log' for more details." >&5
4594 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4595 See \`config.log' for more details." >&2;}
4596    { (exit 1); exit 1; }; }
4597 fi
4598
4599 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4600 fi
4601 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4602 echo "${ECHO_T}$ac_cv_objext" >&6; }
4603 OBJEXT=$ac_cv_objext
4604 ac_objext=$OBJEXT
4605 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4606 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4607 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h.  */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h.  */
4616
4617 int
4618 main ()
4619 {
4620 #ifndef __GNUC__
4621        choke me
4622 #endif
4623
4624   ;
4625   return 0;
4626 }
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (ac_try="$ac_compile"
4630 case "(($ac_try" in
4631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632   *) ac_try_echo=$ac_try;;
4633 esac
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635   (eval "$ac_compile") 2>conftest.er1
4636   ac_status=$?
4637   grep -v '^ *+' conftest.er1 >conftest.err
4638   rm -f conftest.er1
4639   cat conftest.err >&5
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); } && {
4642          test -z "$ac_c_werror_flag" ||
4643          test ! -s conftest.err
4644        } && test -s conftest.$ac_objext; then
4645   ac_compiler_gnu=yes
4646 else
4647   echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650         ac_compiler_gnu=no
4651 fi
4652
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4655
4656 fi
4657 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4659 GCC=`test $ac_compiler_gnu = yes && echo yes`
4660 ac_test_CFLAGS=${CFLAGS+set}
4661 ac_save_CFLAGS=$CFLAGS
4662 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4663 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_cc_g+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   ac_save_c_werror_flag=$ac_c_werror_flag
4668    ac_c_werror_flag=yes
4669    ac_cv_prog_cc_g=no
4670    CFLAGS="-g"
4671    cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677
4678 int
4679 main ()
4680 {
4681
4682   ;
4683   return 0;
4684 }
4685 _ACEOF
4686 rm -f conftest.$ac_objext
4687 if { (ac_try="$ac_compile"
4688 case "(($ac_try" in
4689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690   *) ac_try_echo=$ac_try;;
4691 esac
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693   (eval "$ac_compile") 2>conftest.er1
4694   ac_status=$?
4695   grep -v '^ *+' conftest.er1 >conftest.err
4696   rm -f conftest.er1
4697   cat conftest.err >&5
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); } && {
4700          test -z "$ac_c_werror_flag" ||
4701          test ! -s conftest.err
4702        } && test -s conftest.$ac_objext; then
4703   ac_cv_prog_cc_g=yes
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708         CFLAGS=""
4709       cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715
4716 int
4717 main ()
4718 {
4719
4720   ;
4721   return 0;
4722 }
4723 _ACEOF
4724 rm -f conftest.$ac_objext
4725 if { (ac_try="$ac_compile"
4726 case "(($ac_try" in
4727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728   *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731   (eval "$ac_compile") 2>conftest.er1
4732   ac_status=$?
4733   grep -v '^ *+' conftest.er1 >conftest.err
4734   rm -f conftest.er1
4735   cat conftest.err >&5
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); } && {
4738          test -z "$ac_c_werror_flag" ||
4739          test ! -s conftest.err
4740        } && test -s conftest.$ac_objext; then
4741   :
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746         ac_c_werror_flag=$ac_save_c_werror_flag
4747          CFLAGS="-g"
4748          cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h.  */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h.  */
4754
4755 int
4756 main ()
4757 {
4758
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 rm -f conftest.$ac_objext
4764 if { (ac_try="$ac_compile"
4765 case "(($ac_try" in
4766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767   *) ac_try_echo=$ac_try;;
4768 esac
4769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4770   (eval "$ac_compile") 2>conftest.er1
4771   ac_status=$?
4772   grep -v '^ *+' conftest.er1 >conftest.err
4773   rm -f conftest.er1
4774   cat conftest.err >&5
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); } && {
4777          test -z "$ac_c_werror_flag" ||
4778          test ! -s conftest.err
4779        } && test -s conftest.$ac_objext; then
4780   ac_cv_prog_cc_g=yes
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785
4786 fi
4787
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 fi
4790
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795    ac_c_werror_flag=$ac_save_c_werror_flag
4796 fi
4797 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4798 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4799 if test "$ac_test_CFLAGS" = set; then
4800   CFLAGS=$ac_save_CFLAGS
4801 elif test $ac_cv_prog_cc_g = yes; then
4802   if test "$GCC" = yes; then
4803     CFLAGS="-g -O2"
4804   else
4805     CFLAGS="-g"
4806   fi
4807 else
4808   if test "$GCC" = yes; then
4809     CFLAGS="-O2"
4810   else
4811     CFLAGS=
4812   fi
4813 fi
4814 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4815 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4816 if test "${ac_cv_prog_cc_c89+set}" = set; then
4817   echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819   ac_cv_prog_cc_c89=no
4820 ac_save_CC=$CC
4821 cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h.  */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h.  */
4827 #include <stdarg.h>
4828 #include <stdio.h>
4829 #include <sys/types.h>
4830 #include <sys/stat.h>
4831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4832 struct buf { int x; };
4833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4834 static char *e (p, i)
4835      char **p;
4836      int i;
4837 {
4838   return p[i];
4839 }
4840 static char *f (char * (*g) (char **, int), char **p, ...)
4841 {
4842   char *s;
4843   va_list v;
4844   va_start (v,p);
4845   s = g (p, va_arg (v,int));
4846   va_end (v);
4847   return s;
4848 }
4849
4850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4851    function prototypes and stuff, but not '\xHH' hex character constants.
4852    These don't provoke an error unfortunately, instead are silently treated
4853    as 'x'.  The following induces an error, until -std is added to get
4854    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4855    array size at least.  It's necessary to write '\x00'==0 to get something
4856    that's true only with -std.  */
4857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4858
4859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4860    inside strings and character constants.  */
4861 #define FOO(x) 'x'
4862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4863
4864 int test (int i, double x);
4865 struct s1 {int (*f) (int a);};
4866 struct s2 {int (*f) (double a);};
4867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4868 int argc;
4869 char **argv;
4870 int
4871 main ()
4872 {
4873 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4874   ;
4875   return 0;
4876 }
4877 _ACEOF
4878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4879         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4880 do
4881   CC="$ac_save_CC $ac_arg"
4882   rm -f conftest.$ac_objext
4883 if { (ac_try="$ac_compile"
4884 case "(($ac_try" in
4885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886   *) ac_try_echo=$ac_try;;
4887 esac
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889   (eval "$ac_compile") 2>conftest.er1
4890   ac_status=$?
4891   grep -v '^ *+' conftest.er1 >conftest.err
4892   rm -f conftest.er1
4893   cat conftest.err >&5
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); } && {
4896          test -z "$ac_c_werror_flag" ||
4897          test ! -s conftest.err
4898        } && test -s conftest.$ac_objext; then
4899   ac_cv_prog_cc_c89=$ac_arg
4900 else
4901   echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4903
4904
4905 fi
4906
4907 rm -f core conftest.err conftest.$ac_objext
4908   test "x$ac_cv_prog_cc_c89" != "xno" && break
4909 done
4910 rm -f conftest.$ac_ext
4911 CC=$ac_save_CC
4912
4913 fi
4914 # AC_CACHE_VAL
4915 case "x$ac_cv_prog_cc_c89" in
4916   x)
4917     { echo "$as_me:$LINENO: result: none needed" >&5
4918 echo "${ECHO_T}none needed" >&6; } ;;
4919   xno)
4920     { echo "$as_me:$LINENO: result: unsupported" >&5
4921 echo "${ECHO_T}unsupported" >&6; } ;;
4922   *)
4923     CC="$CC $ac_cv_prog_cc_c89"
4924     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4925 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4926 esac
4927
4928
4929 ac_ext=c
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934
4935
4936 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4937 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4938 if test "${ac_cv_search_strerror+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   ac_func_search_save_LIBS=$LIBS
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948
4949 /* Override any GCC internal prototype to avoid an error.
4950    Use char because int might match the return type of a GCC
4951    builtin and then its argument prototype would still apply.  */
4952 #ifdef __cplusplus
4953 extern "C"
4954 #endif
4955 char strerror ();
4956 int
4957 main ()
4958 {
4959 return strerror ();
4960   ;
4961   return 0;
4962 }
4963 _ACEOF
4964 for ac_lib in '' cposix; do
4965   if test -z "$ac_lib"; then
4966     ac_res="none required"
4967   else
4968     ac_res=-l$ac_lib
4969     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4970   fi
4971   rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (ac_try="$ac_link"
4973 case "(($ac_try" in
4974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975   *) ac_try_echo=$ac_try;;
4976 esac
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978   (eval "$ac_link") 2>conftest.er1
4979   ac_status=$?
4980   grep -v '^ *+' conftest.er1 >conftest.err
4981   rm -f conftest.er1
4982   cat conftest.err >&5
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); } && {
4985          test -z "$ac_c_werror_flag" ||
4986          test ! -s conftest.err
4987        } && test -s conftest$ac_exeext &&
4988        $as_test_x conftest$ac_exeext; then
4989   ac_cv_search_strerror=$ac_res
4990 else
4991   echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994
4995 fi
4996
4997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4998       conftest$ac_exeext
4999   if test "${ac_cv_search_strerror+set}" = set; then
5000   break
5001 fi
5002 done
5003 if test "${ac_cv_search_strerror+set}" = set; then
5004   :
5005 else
5006   ac_cv_search_strerror=no
5007 fi
5008 rm conftest.$ac_ext
5009 LIBS=$ac_func_search_save_LIBS
5010 fi
5011 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5012 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5013 ac_res=$ac_cv_search_strerror
5014 if test "$ac_res" != no; then
5015   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5016
5017 fi
5018
5019 ac_ext=c
5020 ac_cpp='$CPP $CPPFLAGS'
5021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5024 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5025 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5026 # On Suns, sometimes $CPP names a directory.
5027 if test -n "$CPP" && test -d "$CPP"; then
5028   CPP=
5029 fi
5030 if test -z "$CPP"; then
5031   if test "${ac_cv_prog_CPP+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034       # Double quotes because CPP needs to be expanded
5035     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5036     do
5037       ac_preproc_ok=false
5038 for ac_c_preproc_warn_flag in '' yes
5039 do
5040   # Use a header file that comes with gcc, so configuring glibc
5041   # with a fresh cross-compiler works.
5042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043   # <limits.h> exists even on freestanding compilers.
5044   # On the NeXT, cc -E runs the code through the compiler's parser,
5045   # not just through cpp. "Syntax error" is here to catch this case.
5046   cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h.  */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h.  */
5052 #ifdef __STDC__
5053 # include <limits.h>
5054 #else
5055 # include <assert.h>
5056 #endif
5057                      Syntax error
5058 _ACEOF
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5060 case "(($ac_try" in
5061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062   *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066   ac_status=$?
5067   grep -v '^ *+' conftest.er1 >conftest.err
5068   rm -f conftest.er1
5069   cat conftest.err >&5
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); } >/dev/null && {
5072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5073          test ! -s conftest.err
5074        }; then
5075   :
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080   # Broken: fails on valid input.
5081 continue
5082 fi
5083
5084 rm -f conftest.err conftest.$ac_ext
5085
5086   # OK, works on sane cases.  Now check whether nonexistent headers
5087   # can be detected and how.
5088   cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h.  */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h.  */
5094 #include <ac_nonexistent.h>
5095 _ACEOF
5096 if { (ac_try="$ac_cpp conftest.$ac_ext"
5097 case "(($ac_try" in
5098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099   *) ac_try_echo=$ac_try;;
5100 esac
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5103   ac_status=$?
5104   grep -v '^ *+' conftest.er1 >conftest.err
5105   rm -f conftest.er1
5106   cat conftest.err >&5
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); } >/dev/null && {
5109          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5110          test ! -s conftest.err
5111        }; then
5112   # Broken: success on invalid input.
5113 continue
5114 else
5115   echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5117
5118   # Passes both tests.
5119 ac_preproc_ok=:
5120 break
5121 fi
5122
5123 rm -f conftest.err conftest.$ac_ext
5124
5125 done
5126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127 rm -f conftest.err conftest.$ac_ext
5128 if $ac_preproc_ok; then
5129   break
5130 fi
5131
5132     done
5133     ac_cv_prog_CPP=$CPP
5134
5135 fi
5136   CPP=$ac_cv_prog_CPP
5137 else
5138   ac_cv_prog_CPP=$CPP
5139 fi
5140 { echo "$as_me:$LINENO: result: $CPP" >&5
5141 echo "${ECHO_T}$CPP" >&6; }
5142 ac_preproc_ok=false
5143 for ac_c_preproc_warn_flag in '' yes
5144 do
5145   # Use a header file that comes with gcc, so configuring glibc
5146   # with a fresh cross-compiler works.
5147   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148   # <limits.h> exists even on freestanding compilers.
5149   # On the NeXT, cc -E runs the code through the compiler's parser,
5150   # not just through cpp. "Syntax error" is here to catch this case.
5151   cat >conftest.$ac_ext <<_ACEOF
5152 /* confdefs.h.  */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h.  */
5157 #ifdef __STDC__
5158 # include <limits.h>
5159 #else
5160 # include <assert.h>
5161 #endif
5162                      Syntax error
5163 _ACEOF
5164 if { (ac_try="$ac_cpp conftest.$ac_ext"
5165 case "(($ac_try" in
5166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167   *) ac_try_echo=$ac_try;;
5168 esac
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5171   ac_status=$?
5172   grep -v '^ *+' conftest.er1 >conftest.err
5173   rm -f conftest.er1
5174   cat conftest.err >&5
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); } >/dev/null && {
5177          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5178          test ! -s conftest.err
5179        }; then
5180   :
5181 else
5182   echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5184
5185   # Broken: fails on valid input.
5186 continue
5187 fi
5188
5189 rm -f conftest.err conftest.$ac_ext
5190
5191   # OK, works on sane cases.  Now check whether nonexistent headers
5192   # can be detected and how.
5193   cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h.  */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h.  */
5199 #include <ac_nonexistent.h>
5200 _ACEOF
5201 if { (ac_try="$ac_cpp conftest.$ac_ext"
5202 case "(($ac_try" in
5203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204   *) ac_try_echo=$ac_try;;
5205 esac
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5208   ac_status=$?
5209   grep -v '^ *+' conftest.er1 >conftest.err
5210   rm -f conftest.er1
5211   cat conftest.err >&5
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); } >/dev/null && {
5214          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5215          test ! -s conftest.err
5216        }; then
5217   # Broken: success on invalid input.
5218 continue
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223   # Passes both tests.
5224 ac_preproc_ok=:
5225 break
5226 fi
5227
5228 rm -f conftest.err conftest.$ac_ext
5229
5230 done
5231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5232 rm -f conftest.err conftest.$ac_ext
5233 if $ac_preproc_ok; then
5234   :
5235 else
5236   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5237 See \`config.log' for more details." >&5
5238 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5239 See \`config.log' for more details." >&2;}
5240    { (exit 1); exit 1; }; }
5241 fi
5242
5243 ac_ext=c
5244 ac_cpp='$CPP $CPPFLAGS'
5245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248
5249
5250 ac_aux_dir=
5251 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5252   if test -f "$ac_dir/install-sh"; then
5253     ac_aux_dir=$ac_dir
5254     ac_install_sh="$ac_aux_dir/install-sh -c"
5255     break
5256   elif test -f "$ac_dir/install.sh"; then
5257     ac_aux_dir=$ac_dir
5258     ac_install_sh="$ac_aux_dir/install.sh -c"
5259     break
5260   elif test -f "$ac_dir/shtool"; then
5261     ac_aux_dir=$ac_dir
5262     ac_install_sh="$ac_aux_dir/shtool install -c"
5263     break
5264   fi
5265 done
5266 if test -z "$ac_aux_dir"; then
5267   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5268 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5269    { (exit 1); exit 1; }; }
5270 fi
5271
5272 # These three variables are undocumented and unsupported,
5273 # and are intended to be withdrawn in a future Autoconf release.
5274 # They can cause serious problems if a builder's source tree is in a directory
5275 # whose full name contains unusual characters.
5276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5278 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5279
5280
5281 # Make sure we can run config.sub.
5282 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5283   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5284 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5285    { (exit 1); exit 1; }; }
5286
5287 { echo "$as_me:$LINENO: checking build system type" >&5
5288 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5289 if test "${ac_cv_build+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   ac_build_alias=$build_alias
5293 test "x$ac_build_alias" = x &&
5294   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5295 test "x$ac_build_alias" = x &&
5296   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5297 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5298    { (exit 1); exit 1; }; }
5299 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5300   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5301 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5302    { (exit 1); exit 1; }; }
5303
5304 fi
5305 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5306 echo "${ECHO_T}$ac_cv_build" >&6; }
5307 case $ac_cv_build in
5308 *-*-*) ;;
5309 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5310 echo "$as_me: error: invalid value of canonical build" >&2;}
5311    { (exit 1); exit 1; }; };;
5312 esac
5313 build=$ac_cv_build
5314 ac_save_IFS=$IFS; IFS='-'
5315 set x $ac_cv_build
5316 shift
5317 build_cpu=$1
5318 build_vendor=$2
5319 shift; shift
5320 # Remember, the first character of IFS is used to create $*,
5321 # except with old shells:
5322 build_os=$*
5323 IFS=$ac_save_IFS
5324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5325
5326
5327 { echo "$as_me:$LINENO: checking host system type" >&5
5328 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5329 if test "${ac_cv_host+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   if test "x$host_alias" = x; then
5333   ac_cv_host=$ac_cv_build
5334 else
5335   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5336     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5337 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5338    { (exit 1); exit 1; }; }
5339 fi
5340
5341 fi
5342 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5343 echo "${ECHO_T}$ac_cv_host" >&6; }
5344 case $ac_cv_host in
5345 *-*-*) ;;
5346 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5347 echo "$as_me: error: invalid value of canonical host" >&2;}
5348    { (exit 1); exit 1; }; };;
5349 esac
5350 host=$ac_cv_host
5351 ac_save_IFS=$IFS; IFS='-'
5352 set x $ac_cv_host
5353 shift
5354 host_cpu=$1
5355 host_vendor=$2
5356 shift; shift
5357 # Remember, the first character of IFS is used to create $*,
5358 # except with old shells:
5359 host_os=$*
5360 IFS=$ac_save_IFS
5361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5362
5363
5364 { echo "$as_me:$LINENO: checking target system type" >&5
5365 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
5366 if test "${ac_cv_target+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   if test "x$target_alias" = x; then
5370   ac_cv_target=$ac_cv_host
5371 else
5372   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5373     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
5374 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
5375    { (exit 1); exit 1; }; }
5376 fi
5377
5378 fi
5379 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5380 echo "${ECHO_T}$ac_cv_target" >&6; }
5381 case $ac_cv_target in
5382 *-*-*) ;;
5383 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
5384 echo "$as_me: error: invalid value of canonical target" >&2;}
5385    { (exit 1); exit 1; }; };;
5386 esac
5387 target=$ac_cv_target
5388 ac_save_IFS=$IFS; IFS='-'
5389 set x $ac_cv_target
5390 shift
5391 target_cpu=$1
5392 target_vendor=$2
5393 shift; shift
5394 # Remember, the first character of IFS is used to create $*,
5395 # except with old shells:
5396 target_os=$*
5397 IFS=$ac_save_IFS
5398 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5399
5400
5401 # The aliases save the names the user supplied, while $host etc.
5402 # will get canonicalized.
5403 test -n "$target_alias" &&
5404   test "$program_prefix$program_suffix$program_transform_name" = \
5405     NONENONEs,x,x, &&
5406   program_prefix=${target_alias}-
5407 # Check whether --enable-static was given.
5408 if test "${enable_static+set}" = set; then
5409   enableval=$enable_static; p=${PACKAGE-default}
5410     case $enableval in
5411     yes) enable_static=yes ;;
5412     no) enable_static=no ;;
5413     *)
5414      enable_static=no
5415       # Look at the argument we got.  We use all the common list separators.
5416       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5417       for pkg in $enableval; do
5418         IFS="$lt_save_ifs"
5419         if test "X$pkg" = "X$p"; then
5420           enable_static=yes
5421         fi
5422       done
5423       IFS="$lt_save_ifs"
5424       ;;
5425     esac
5426 else
5427   enable_static=no
5428 fi
5429
5430
5431
5432 # Check whether --enable-shared was given.
5433 if test "${enable_shared+set}" = set; then
5434   enableval=$enable_shared; p=${PACKAGE-default}
5435     case $enableval in
5436     yes) enable_shared=yes ;;
5437     no) enable_shared=no ;;
5438     *)
5439       enable_shared=no
5440       # Look at the argument we got.  We use all the common list separators.
5441       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5442       for pkg in $enableval; do
5443         IFS="$lt_save_ifs"
5444         if test "X$pkg" = "X$p"; then
5445           enable_shared=yes
5446         fi
5447       done
5448       IFS="$lt_save_ifs"
5449       ;;
5450     esac
5451 else
5452   enable_shared=yes
5453 fi
5454
5455
5456 # Check whether --enable-fast-install was given.
5457 if test "${enable_fast_install+set}" = set; then
5458   enableval=$enable_fast_install; p=${PACKAGE-default}
5459     case $enableval in
5460     yes) enable_fast_install=yes ;;
5461     no) enable_fast_install=no ;;
5462     *)
5463       enable_fast_install=no
5464       # Look at the argument we got.  We use all the common list separators.
5465       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5466       for pkg in $enableval; do
5467         IFS="$lt_save_ifs"
5468         if test "X$pkg" = "X$p"; then
5469           enable_fast_install=yes
5470         fi
5471       done
5472       IFS="$lt_save_ifs"
5473       ;;
5474     esac
5475 else
5476   enable_fast_install=yes
5477 fi
5478
5479
5480 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5481 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5482 if test "${lt_cv_path_SED+set}" = set; then
5483   echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485   # Loop through the user's path and test for sed and gsed.
5486 # Then use that list of sed's as ones to test for truncation.
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5489 do
5490   IFS=$as_save_IFS
5491   test -z "$as_dir" && as_dir=.
5492   for lt_ac_prog in sed gsed; do
5493     for ac_exec_ext in '' $ac_executable_extensions; do
5494       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5495         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5496       fi
5497     done
5498   done
5499 done
5500 IFS=$as_save_IFS
5501 lt_ac_max=0
5502 lt_ac_count=0
5503 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5504 # along with /bin/sed that truncates output.
5505 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5506   test ! -f $lt_ac_sed && continue
5507   cat /dev/null > conftest.in
5508   lt_ac_count=0
5509   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5510   # Check for GNU sed and select it if it is found.
5511   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5512     lt_cv_path_SED=$lt_ac_sed
5513     break
5514   fi
5515   while true; do
5516     cat conftest.in conftest.in >conftest.tmp
5517     mv conftest.tmp conftest.in
5518     cp conftest.in conftest.nl
5519     echo >>conftest.nl
5520     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5521     cmp -s conftest.out conftest.nl || break
5522     # 10000 chars as input seems more than enough
5523     test $lt_ac_count -gt 10 && break
5524     lt_ac_count=`expr $lt_ac_count + 1`
5525     if test $lt_ac_count -gt $lt_ac_max; then
5526       lt_ac_max=$lt_ac_count
5527       lt_cv_path_SED=$lt_ac_sed
5528     fi
5529   done
5530 done
5531
5532 fi
5533
5534 SED=$lt_cv_path_SED
5535
5536 { echo "$as_me:$LINENO: result: $SED" >&5
5537 echo "${ECHO_T}$SED" >&6; }
5538
5539 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5540 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5541 if test "${ac_cv_path_GREP+set}" = set; then
5542   echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544   # Extract the first word of "grep ggrep" to use in msg output
5545 if test -z "$GREP"; then
5546 set dummy grep ggrep; ac_prog_name=$2
5547 if test "${ac_cv_path_GREP+set}" = set; then
5548   echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550   ac_path_GREP_found=false
5551 # Loop through the user's path and test for each of PROGNAME-LIST
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5554 do
5555   IFS=$as_save_IFS
5556   test -z "$as_dir" && as_dir=.
5557   for ac_prog in grep ggrep; do
5558   for ac_exec_ext in '' $ac_executable_extensions; do
5559     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5560     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5561     # Check for GNU ac_path_GREP and select it if it is found.
5562   # Check for GNU $ac_path_GREP
5563 case `"$ac_path_GREP" --version 2>&1` in
5564 *GNU*)
5565   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5566 *)
5567   ac_count=0
5568   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5569   while :
5570   do
5571     cat "conftest.in" "conftest.in" >"conftest.tmp"
5572     mv "conftest.tmp" "conftest.in"
5573     cp "conftest.in" "conftest.nl"
5574     echo 'GREP' >> "conftest.nl"
5575     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5576     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5577     ac_count=`expr $ac_count + 1`
5578     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5579       # Best one so far, save it but keep looking for a better one
5580       ac_cv_path_GREP="$ac_path_GREP"
5581       ac_path_GREP_max=$ac_count
5582     fi
5583     # 10*(2^10) chars as input seems more than enough
5584     test $ac_count -gt 10 && break
5585   done
5586   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5587 esac
5588
5589
5590     $ac_path_GREP_found && break 3
5591   done
5592 done
5593
5594 done
5595 IFS=$as_save_IFS
5596
5597
5598 fi
5599
5600 GREP="$ac_cv_path_GREP"
5601 if test -z "$GREP"; then
5602   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5603 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5604    { (exit 1); exit 1; }; }
5605 fi
5606
5607 else
5608   ac_cv_path_GREP=$GREP
5609 fi
5610
5611
5612 fi
5613 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5614 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5615  GREP="$ac_cv_path_GREP"
5616
5617
5618 { echo "$as_me:$LINENO: checking for egrep" >&5
5619 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5620 if test "${ac_cv_path_EGREP+set}" = set; then
5621   echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5624    then ac_cv_path_EGREP="$GREP -E"
5625    else
5626      # Extract the first word of "egrep" to use in msg output
5627 if test -z "$EGREP"; then
5628 set dummy egrep; ac_prog_name=$2
5629 if test "${ac_cv_path_EGREP+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   ac_path_EGREP_found=false
5633 # Loop through the user's path and test for each of PROGNAME-LIST
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5636 do
5637   IFS=$as_save_IFS
5638   test -z "$as_dir" && as_dir=.
5639   for ac_prog in egrep; do
5640   for ac_exec_ext in '' $ac_executable_extensions; do
5641     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5642     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5643     # Check for GNU ac_path_EGREP and select it if it is found.
5644   # Check for GNU $ac_path_EGREP
5645 case `"$ac_path_EGREP" --version 2>&1` in
5646 *GNU*)
5647   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5648 *)
5649   ac_count=0
5650   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5651   while :
5652   do
5653     cat "conftest.in" "conftest.in" >"conftest.tmp"
5654     mv "conftest.tmp" "conftest.in"
5655     cp "conftest.in" "conftest.nl"
5656     echo 'EGREP' >> "conftest.nl"
5657     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5658     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5659     ac_count=`expr $ac_count + 1`
5660     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5661       # Best one so far, save it but keep looking for a better one
5662       ac_cv_path_EGREP="$ac_path_EGREP"
5663       ac_path_EGREP_max=$ac_count
5664     fi
5665     # 10*(2^10) chars as input seems more than enough
5666     test $ac_count -gt 10 && break
5667   done
5668   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5669 esac
5670
5671
5672     $ac_path_EGREP_found && break 3
5673   done
5674 done
5675
5676 done
5677 IFS=$as_save_IFS
5678
5679
5680 fi
5681
5682 EGREP="$ac_cv_path_EGREP"
5683 if test -z "$EGREP"; then
5684   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5685 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5686    { (exit 1); exit 1; }; }
5687 fi
5688
5689 else
5690   ac_cv_path_EGREP=$EGREP
5691 fi
5692
5693
5694    fi
5695 fi
5696 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5697 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5698  EGREP="$ac_cv_path_EGREP"
5699
5700
5701
5702 # Check whether --with-gnu-ld was given.
5703 if test "${with_gnu_ld+set}" = set; then
5704   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5705 else
5706   with_gnu_ld=no
5707 fi
5708
5709 ac_prog=ld
5710 if test "$GCC" = yes; then
5711   # Check if gcc -print-prog-name=ld gives a path.
5712   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5713 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5714   case $host in
5715   *-*-mingw*)
5716     # gcc leaves a trailing carriage return which upsets mingw
5717     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5718   *)
5719     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5720   esac
5721   case $ac_prog in
5722     # Accept absolute paths.
5723     [\\/]* | ?:[\\/]*)
5724       re_direlt='/[^/][^/]*/\.\./'
5725       # Canonicalize the pathname of ld
5726       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5727       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5728         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5729       done
5730       test -z "$LD" && LD="$ac_prog"
5731       ;;
5732   "")
5733     # If it fails, then pretend we aren't using GCC.
5734     ac_prog=ld
5735     ;;
5736   *)
5737     # If it is relative, then search for the first ld in PATH.
5738     with_gnu_ld=unknown
5739     ;;
5740   esac
5741 elif test "$with_gnu_ld" = yes; then
5742   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5743 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5744 else
5745   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5746 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5747 fi
5748 if test "${lt_cv_path_LD+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   if test -z "$LD"; then
5752   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5753   for ac_dir in $PATH; do
5754     IFS="$lt_save_ifs"
5755     test -z "$ac_dir" && ac_dir=.
5756     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5757       lt_cv_path_LD="$ac_dir/$ac_prog"
5758       # Check to see if the program is GNU ld.  I'd rather use --version,
5759       # but apparently some variants of GNU ld only accept -v.
5760       # Break only if it was the GNU/non-GNU ld that we prefer.
5761       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5762       *GNU* | *'with BFD'*)
5763         test "$with_gnu_ld" != no && break
5764         ;;
5765       *)
5766         test "$with_gnu_ld" != yes && break
5767         ;;
5768       esac
5769     fi
5770   done
5771   IFS="$lt_save_ifs"
5772 else
5773   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5774 fi
5775 fi
5776
5777 LD="$lt_cv_path_LD"
5778 if test -n "$LD"; then
5779   { echo "$as_me:$LINENO: result: $LD" >&5
5780 echo "${ECHO_T}$LD" >&6; }
5781 else
5782   { echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6; }
5784 fi
5785 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5786 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5787    { (exit 1); exit 1; }; }
5788 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5789 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5790 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5794 case `$LD -v 2>&1 </dev/null` in
5795 *GNU* | *'with BFD'*)
5796   lt_cv_prog_gnu_ld=yes
5797   ;;
5798 *)
5799   lt_cv_prog_gnu_ld=no
5800   ;;
5801 esac
5802 fi
5803 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5804 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5805 with_gnu_ld=$lt_cv_prog_gnu_ld
5806
5807
5808 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5809 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5810 if test "${lt_cv_ld_reload_flag+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   lt_cv_ld_reload_flag='-r'
5814 fi
5815 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5816 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5817 reload_flag=$lt_cv_ld_reload_flag
5818 case $reload_flag in
5819 "" | " "*) ;;
5820 *) reload_flag=" $reload_flag" ;;
5821 esac
5822 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5823 case $host_os in
5824   darwin*)
5825     if test "$GCC" = yes; then
5826       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5827     else
5828       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5829     fi
5830     ;;
5831 esac
5832
5833 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5834 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5835 if test "${lt_cv_path_NM+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   if test -n "$NM"; then
5839   # Let the user override the test.
5840   lt_cv_path_NM="$NM"
5841 else
5842   lt_nm_to_check="${ac_tool_prefix}nm"
5843   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5844     lt_nm_to_check="$lt_nm_to_check nm"
5845   fi
5846   for lt_tmp_nm in $lt_nm_to_check; do
5847     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5848     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5849       IFS="$lt_save_ifs"
5850       test -z "$ac_dir" && ac_dir=.
5851       tmp_nm="$ac_dir/$lt_tmp_nm"
5852       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5853         # Check to see if the nm accepts a BSD-compat flag.
5854         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5855         #   nm: unknown option "B" ignored
5856         # Tru64's nm complains that /dev/null is an invalid object file
5857         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5858         */dev/null* | *'Invalid file or object type'*)
5859           lt_cv_path_NM="$tmp_nm -B"
5860           break
5861           ;;
5862         *)
5863           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5864           */dev/null*)
5865             lt_cv_path_NM="$tmp_nm -p"
5866             break
5867             ;;
5868           *)
5869             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5870             continue # so that we can try to find one that supports BSD flags
5871             ;;
5872           esac
5873           ;;
5874         esac
5875       fi
5876     done
5877     IFS="$lt_save_ifs"
5878   done
5879   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5880 fi
5881 fi
5882 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5883 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5884 NM="$lt_cv_path_NM"
5885
5886 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5887 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5888 LN_S=$as_ln_s
5889 if test "$LN_S" = "ln -s"; then
5890   { echo "$as_me:$LINENO: result: yes" >&5
5891 echo "${ECHO_T}yes" >&6; }
5892 else
5893   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5894 echo "${ECHO_T}no, using $LN_S" >&6; }
5895 fi
5896
5897 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5898 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5899 if test "${lt_cv_deplibs_check_method+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   lt_cv_file_magic_cmd='$MAGIC_CMD'
5903 lt_cv_file_magic_test_file=
5904 lt_cv_deplibs_check_method='unknown'
5905 # Need to set the preceding variable on all platforms that support
5906 # interlibrary dependencies.
5907 # 'none' -- dependencies not supported.
5908 # `unknown' -- same as none, but documents that we really don't know.
5909 # 'pass_all' -- all dependencies passed with no checks.
5910 # 'test_compile' -- check by making test program.
5911 # 'file_magic [[regex]]' -- check by looking for files in library path
5912 # which responds to the $file_magic_cmd with a given extended regex.
5913 # If you have `file' or equivalent on your system and you're not sure
5914 # whether `pass_all' will *always* work, you probably want this one.
5915
5916 case $host_os in
5917 aix[4-9]*)
5918   lt_cv_deplibs_check_method=pass_all
5919   ;;
5920
5921 beos*)
5922   lt_cv_deplibs_check_method=pass_all
5923   ;;
5924
5925 bsdi[45]*)
5926   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5927   lt_cv_file_magic_cmd='/usr/bin/file -L'
5928   lt_cv_file_magic_test_file=/shlib/libc.so
5929   ;;
5930
5931 cygwin*)
5932   # func_win32_libid is a shell function defined in ltmain.sh
5933   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5934   lt_cv_file_magic_cmd='func_win32_libid'
5935   ;;
5936
5937 mingw* | pw32*)
5938   # Base MSYS/MinGW do not provide the 'file' command needed by
5939   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5940   # unless we find 'file', for example because we are cross-compiling.
5941   if ( file / ) >/dev/null 2>&1; then
5942     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5943     lt_cv_file_magic_cmd='func_win32_libid'
5944   else
5945     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5946     lt_cv_file_magic_cmd='$OBJDUMP -f'
5947   fi
5948   ;;
5949
5950 darwin* | rhapsody*)
5951   lt_cv_deplibs_check_method=pass_all
5952   ;;
5953
5954 freebsd* | dragonfly*)
5955   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5956     case $host_cpu in
5957     i*86 )
5958       # Not sure whether the presence of OpenBSD here was a mistake.
5959       # Let's accept both of them until this is cleared up.
5960       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5961       lt_cv_file_magic_cmd=/usr/bin/file
5962       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5963       ;;
5964     esac
5965   else
5966     lt_cv_deplibs_check_method=pass_all
5967   fi
5968   ;;
5969
5970 gnu*)
5971   lt_cv_deplibs_check_method=pass_all
5972   ;;
5973
5974 hpux10.20* | hpux11*)
5975   lt_cv_file_magic_cmd=/usr/bin/file
5976   case $host_cpu in
5977   ia64*)
5978     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5979     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5980     ;;
5981   hppa*64*)
5982     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]'
5983     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5984     ;;
5985   *)
5986     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5987     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5988     ;;
5989   esac
5990   ;;
5991
5992 interix[3-9]*)
5993   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5994   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5995   ;;
5996
5997 irix5* | irix6* | nonstopux*)
5998   case $LD in
5999   *-32|*"-32 ") libmagic=32-bit;;
6000   *-n32|*"-n32 ") libmagic=N32;;
6001   *-64|*"-64 ") libmagic=64-bit;;
6002   *) libmagic=never-match;;
6003   esac
6004   lt_cv_deplibs_check_method=pass_all
6005   ;;
6006
6007 # This must be Linux ELF.
6008 linux* | k*bsd*-gnu)
6009   lt_cv_deplibs_check_method=pass_all
6010   ;;
6011
6012 netbsd*)
6013   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6014     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6015   else
6016     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6017   fi
6018   ;;
6019
6020 newos6*)
6021   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6022   lt_cv_file_magic_cmd=/usr/bin/file
6023   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6024   ;;
6025
6026 nto-qnx*)
6027   lt_cv_deplibs_check_method=unknown
6028   ;;
6029
6030 openbsd*)
6031   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6032     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6033   else
6034     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6035   fi
6036   ;;
6037
6038 osf3* | osf4* | osf5*)
6039   lt_cv_deplibs_check_method=pass_all
6040   ;;
6041
6042 rdos*)
6043   lt_cv_deplibs_check_method=pass_all
6044   ;;
6045
6046 solaris*)
6047   lt_cv_deplibs_check_method=pass_all
6048   ;;
6049
6050 sysv4 | sysv4.3*)
6051   case $host_vendor in
6052   motorola)
6053     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]'
6054     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6055     ;;
6056   ncr)
6057     lt_cv_deplibs_check_method=pass_all
6058     ;;
6059   sequent)
6060     lt_cv_file_magic_cmd='/bin/file'
6061     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6062     ;;
6063   sni)
6064     lt_cv_file_magic_cmd='/bin/file'
6065     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6066     lt_cv_file_magic_test_file=/lib/libc.so
6067     ;;
6068   siemens)
6069     lt_cv_deplibs_check_method=pass_all
6070     ;;
6071   pc)
6072     lt_cv_deplibs_check_method=pass_all
6073     ;;
6074   esac
6075   ;;
6076
6077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6078   lt_cv_deplibs_check_method=pass_all
6079   ;;
6080 esac
6081
6082 fi
6083 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6084 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6085 file_magic_cmd=$lt_cv_file_magic_cmd
6086 deplibs_check_method=$lt_cv_deplibs_check_method
6087 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6088
6089
6090
6091
6092 # If no C compiler was specified, use CC.
6093 LTCC=${LTCC-"$CC"}
6094
6095 # If no C compiler flags were specified, use CFLAGS.
6096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6097
6098 # Allow CC to be a program name with arguments.
6099 compiler=$CC
6100
6101 # Check whether --enable-libtool-lock was given.
6102 if test "${enable_libtool_lock+set}" = set; then
6103   enableval=$enable_libtool_lock;
6104 fi
6105
6106 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6107
6108 # Some flags need to be propagated to the compiler or linker for good
6109 # libtool support.
6110 case $host in
6111 ia64-*-hpux*)
6112   # Find out which ABI we are using.
6113   echo 'int i;' > conftest.$ac_ext
6114   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115   (eval $ac_compile) 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); }; then
6119     case `/usr/bin/file conftest.$ac_objext` in
6120     *ELF-32*)
6121       HPUX_IA64_MODE="32"
6122       ;;
6123     *ELF-64*)
6124       HPUX_IA64_MODE="64"
6125       ;;
6126     esac
6127   fi
6128   rm -rf conftest*
6129   ;;
6130 *-*-irix6*)
6131   # Find out which ABI we are using.
6132   echo '#line 6132 "configure"' > conftest.$ac_ext
6133   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134   (eval $ac_compile) 2>&5
6135   ac_status=$?
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); }; then
6138    if test "$lt_cv_prog_gnu_ld" = yes; then
6139     case `/usr/bin/file conftest.$ac_objext` in
6140     *32-bit*)
6141       LD="${LD-ld} -melf32bsmip"
6142       ;;
6143     *N32*)
6144       LD="${LD-ld} -melf32bmipn32"
6145       ;;
6146     *64-bit*)
6147       LD="${LD-ld} -melf64bmip"
6148       ;;
6149     esac
6150    else
6151     case `/usr/bin/file conftest.$ac_objext` in
6152     *32-bit*)
6153       LD="${LD-ld} -32"
6154       ;;
6155     *N32*)
6156       LD="${LD-ld} -n32"
6157       ;;
6158     *64-bit*)
6159       LD="${LD-ld} -64"
6160       ;;
6161     esac
6162    fi
6163   fi
6164   rm -rf conftest*
6165   ;;
6166
6167 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6168 s390*-*linux*|sparc*-*linux*)
6169   # Find out which ABI we are using.
6170   echo 'int i;' > conftest.$ac_ext
6171   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172   (eval $ac_compile) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; then
6176     case `/usr/bin/file conftest.o` in
6177     *32-bit*)
6178       case $host in
6179         x86_64-*kfreebsd*-gnu)
6180           LD="${LD-ld} -m elf_i386_fbsd"
6181           ;;
6182         x86_64-*linux*)
6183           LD="${LD-ld} -m elf_i386"
6184           ;;
6185         ppc64-*linux*|powerpc64-*linux*)
6186           LD="${LD-ld} -m elf32ppclinux"
6187           ;;
6188         s390x-*linux*)
6189           LD="${LD-ld} -m elf_s390"
6190           ;;
6191         sparc64-*linux*)
6192           LD="${LD-ld} -m elf32_sparc"
6193           ;;
6194       esac
6195       ;;
6196     *64-bit*)
6197       case $host in
6198         x86_64-*kfreebsd*-gnu)
6199           LD="${LD-ld} -m elf_x86_64_fbsd"
6200           ;;
6201         x86_64-*linux*)
6202           LD="${LD-ld} -m elf_x86_64"
6203           ;;
6204         ppc*-*linux*|powerpc*-*linux*)
6205           LD="${LD-ld} -m elf64ppc"
6206           ;;
6207         s390*-*linux*)
6208           LD="${LD-ld} -m elf64_s390"
6209           ;;
6210         sparc*-*linux*)
6211           LD="${LD-ld} -m elf64_sparc"
6212           ;;
6213       esac
6214       ;;
6215     esac
6216   fi
6217   rm -rf conftest*
6218   ;;
6219
6220 *-*-sco3.2v5*)
6221   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6222   SAVE_CFLAGS="$CFLAGS"
6223   CFLAGS="$CFLAGS -belf"
6224   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6225 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6226 if test "${lt_cv_cc_needs_belf+set}" = set; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229   ac_ext=c
6230 ac_cpp='$CPP $CPPFLAGS'
6231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6234
6235      cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h.  */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h.  */
6241
6242 int
6243 main ()
6244 {
6245
6246   ;
6247   return 0;
6248 }
6249 _ACEOF
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (ac_try="$ac_link"
6252 case "(($ac_try" in
6253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254   *) ac_try_echo=$ac_try;;
6255 esac
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257   (eval "$ac_link") 2>conftest.er1
6258   ac_status=$?
6259   grep -v '^ *+' conftest.er1 >conftest.err
6260   rm -f conftest.er1
6261   cat conftest.err >&5
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); } && {
6264          test -z "$ac_c_werror_flag" ||
6265          test ! -s conftest.err
6266        } && test -s conftest$ac_exeext &&
6267        $as_test_x conftest$ac_exeext; then
6268   lt_cv_cc_needs_belf=yes
6269 else
6270   echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273         lt_cv_cc_needs_belf=no
6274 fi
6275
6276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6277       conftest$ac_exeext conftest.$ac_ext
6278      ac_ext=c
6279 ac_cpp='$CPP $CPPFLAGS'
6280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6283
6284 fi
6285 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6286 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6287   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6288     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6289     CFLAGS="$SAVE_CFLAGS"
6290   fi
6291   ;;
6292 sparc*-*solaris*)
6293   # Find out which ABI we are using.
6294   echo 'int i;' > conftest.$ac_ext
6295   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296   (eval $ac_compile) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; then
6300     case `/usr/bin/file conftest.o` in
6301     *64-bit*)
6302       case $lt_cv_prog_gnu_ld in
6303       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6304       *)
6305         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6306           LD="${LD-ld} -64"
6307         fi
6308         ;;
6309       esac
6310       ;;
6311     esac
6312   fi
6313   rm -rf conftest*
6314   ;;
6315
6316
6317 esac
6318
6319 need_locks="$enable_libtool_lock"
6320
6321
6322
6323 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6324 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6325 if test "${ac_cv_header_stdc+set}" = set; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
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 <stdlib.h>
6335 #include <stdarg.h>
6336 #include <string.h>
6337 #include <float.h>
6338
6339 int
6340 main ()
6341 {
6342
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext
6348 if { (ac_try="$ac_compile"
6349 case "(($ac_try" in
6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351   *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354   (eval "$ac_compile") 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } && {
6361          test -z "$ac_c_werror_flag" ||
6362          test ! -s conftest.err
6363        } && test -s conftest.$ac_objext; then
6364   ac_cv_header_stdc=yes
6365 else
6366   echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369         ac_cv_header_stdc=no
6370 fi
6371
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373
6374 if test $ac_cv_header_stdc = yes; then
6375   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6376   cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h.  */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h.  */
6382 #include <string.h>
6383
6384 _ACEOF
6385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6386   $EGREP "memchr" >/dev/null 2>&1; then
6387   :
6388 else
6389   ac_cv_header_stdc=no
6390 fi
6391 rm -f conftest*
6392
6393 fi
6394
6395 if test $ac_cv_header_stdc = yes; then
6396   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6397   cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h.  */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h.  */
6403 #include <stdlib.h>
6404
6405 _ACEOF
6406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6407   $EGREP "free" >/dev/null 2>&1; then
6408   :
6409 else
6410   ac_cv_header_stdc=no
6411 fi
6412 rm -f conftest*
6413
6414 fi
6415
6416 if test $ac_cv_header_stdc = yes; then
6417   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6418   if test "$cross_compiling" = yes; then
6419   :
6420 else
6421   cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h.  */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h.  */
6427 #include <ctype.h>
6428 #include <stdlib.h>
6429 #if ((' ' & 0x0FF) == 0x020)
6430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6432 #else
6433 # define ISLOWER(c) \
6434                    (('a' <= (c) && (c) <= 'i') \
6435                      || ('j' <= (c) && (c) <= 'r') \
6436                      || ('s' <= (c) && (c) <= 'z'))
6437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6438 #endif
6439
6440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6441 int
6442 main ()
6443 {
6444   int i;
6445   for (i = 0; i < 256; i++)
6446     if (XOR (islower (i), ISLOWER (i))
6447         || toupper (i) != TOUPPER (i))
6448       return 2;
6449   return 0;
6450 }
6451 _ACEOF
6452 rm -f conftest$ac_exeext
6453 if { (ac_try="$ac_link"
6454 case "(($ac_try" in
6455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456   *) ac_try_echo=$ac_try;;
6457 esac
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459   (eval "$ac_link") 2>&5
6460   ac_status=$?
6461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6463   { (case "(($ac_try" in
6464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465   *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468   (eval "$ac_try") 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; }; then
6472   :
6473 else
6474   echo "$as_me: program exited with status $ac_status" >&5
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6477
6478 ( exit $ac_status )
6479 ac_cv_header_stdc=no
6480 fi
6481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6482 fi
6483
6484
6485 fi
6486 fi
6487 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6488 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6489 if test $ac_cv_header_stdc = yes; then
6490
6491 cat >>confdefs.h <<\_ACEOF
6492 #define STDC_HEADERS 1
6493 _ACEOF
6494
6495 fi
6496
6497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6508                   inttypes.h stdint.h unistd.h
6509 do
6510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h.  */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h.  */
6522 $ac_includes_default
6523
6524 #include <$ac_header>
6525 _ACEOF
6526 rm -f conftest.$ac_objext
6527 if { (ac_try="$ac_compile"
6528 case "(($ac_try" in
6529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530   *) ac_try_echo=$ac_try;;
6531 esac
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533   (eval "$ac_compile") 2>conftest.er1
6534   ac_status=$?
6535   grep -v '^ *+' conftest.er1 >conftest.err
6536   rm -f conftest.er1
6537   cat conftest.err >&5
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); } && {
6540          test -z "$ac_c_werror_flag" ||
6541          test ! -s conftest.err
6542        } && test -s conftest.$ac_objext; then
6543   eval "$as_ac_Header=yes"
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548         eval "$as_ac_Header=no"
6549 fi
6550
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 fi
6553 ac_res=`eval echo '${'$as_ac_Header'}'`
6554                { echo "$as_me:$LINENO: result: $ac_res" >&5
6555 echo "${ECHO_T}$ac_res" >&6; }
6556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6557   cat >>confdefs.h <<_ACEOF
6558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6559 _ACEOF
6560
6561 fi
6562
6563 done
6564
6565
6566
6567 for ac_header in dlfcn.h
6568 do
6569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6571   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 fi
6576 ac_res=`eval echo '${'$as_ac_Header'}'`
6577                { echo "$as_me:$LINENO: result: $ac_res" >&5
6578 echo "${ECHO_T}$ac_res" >&6; }
6579 else
6580   # Is the header compilable?
6581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589 $ac_includes_default
6590 #include <$ac_header>
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (ac_try="$ac_compile"
6594 case "(($ac_try" in
6595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596   *) ac_try_echo=$ac_try;;
6597 esac
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599   (eval "$ac_compile") 2>conftest.er1
6600   ac_status=$?
6601   grep -v '^ *+' conftest.er1 >conftest.err
6602   rm -f conftest.er1
6603   cat conftest.err >&5
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); } && {
6606          test -z "$ac_c_werror_flag" ||
6607          test ! -s conftest.err
6608        } && test -s conftest.$ac_objext; then
6609   ac_header_compiler=yes
6610 else
6611   echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614         ac_header_compiler=no
6615 fi
6616
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6619 echo "${ECHO_T}$ac_header_compiler" >&6; }
6620
6621 # Is the header present?
6622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h.  */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h.  */
6630 #include <$ac_header>
6631 _ACEOF
6632 if { (ac_try="$ac_cpp conftest.$ac_ext"
6633 case "(($ac_try" in
6634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635   *) ac_try_echo=$ac_try;;
6636 esac
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6639   ac_status=$?
6640   grep -v '^ *+' conftest.er1 >conftest.err
6641   rm -f conftest.er1
6642   cat conftest.err >&5
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); } >/dev/null && {
6645          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6646          test ! -s conftest.err
6647        }; then
6648   ac_header_preproc=yes
6649 else
6650   echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653   ac_header_preproc=no
6654 fi
6655
6656 rm -f conftest.err conftest.$ac_ext
6657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6658 echo "${ECHO_T}$ac_header_preproc" >&6; }
6659
6660 # So?  What about this header?
6661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6662   yes:no: )
6663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6667     ac_header_preproc=yes
6668     ;;
6669   no:yes:* )
6670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6682
6683     ;;
6684 esac
6685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   eval "$as_ac_Header=\$ac_header_preproc"
6691 fi
6692 ac_res=`eval echo '${'$as_ac_Header'}'`
6693                { echo "$as_me:$LINENO: result: $ac_res" >&5
6694 echo "${ECHO_T}$ac_res" >&6; }
6695
6696 fi
6697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6698   cat >>confdefs.h <<_ACEOF
6699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6700 _ACEOF
6701
6702 fi
6703
6704 done
6705
6706
6707 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6708 # find the maximum length of command line arguments
6709 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6710 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6711 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714     i=0
6715   teststring="ABCD"
6716
6717   case $build_os in
6718   msdosdjgpp*)
6719     # On DJGPP, this test can blow up pretty badly due to problems in libc
6720     # (any single argument exceeding 2000 bytes causes a buffer overrun
6721     # during glob expansion).  Even if it were fixed, the result of this
6722     # check would be larger than it should be.
6723     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6724     ;;
6725
6726   gnu*)
6727     # Under GNU Hurd, this test is not required because there is
6728     # no limit to the length of command line arguments.
6729     # Libtool will interpret -1 as no limit whatsoever
6730     lt_cv_sys_max_cmd_len=-1;
6731     ;;
6732
6733   cygwin* | mingw*)
6734     # On Win9x/ME, this test blows up -- it succeeds, but takes
6735     # about 5 minutes as the teststring grows exponentially.
6736     # Worse, since 9x/ME are not pre-emptively multitasking,
6737     # you end up with a "frozen" computer, even though with patience
6738     # the test eventually succeeds (with a max line length of 256k).
6739     # Instead, let's just punt: use the minimum linelength reported by
6740     # all of the supported platforms: 8192 (on NT/2K/XP).
6741     lt_cv_sys_max_cmd_len=8192;
6742     ;;
6743
6744   amigaos*)
6745     # On AmigaOS with pdksh, this test takes hours, literally.
6746     # So we just punt and use a minimum line length of 8192.
6747     lt_cv_sys_max_cmd_len=8192;
6748     ;;
6749
6750   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6751     # This has been around since 386BSD, at least.  Likely further.
6752     if test -x /sbin/sysctl; then
6753       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6754     elif test -x /usr/sbin/sysctl; then
6755       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6756     else
6757       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6758     fi
6759     # And add a safety zone
6760     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6761     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6762     ;;
6763
6764   interix*)
6765     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6766     lt_cv_sys_max_cmd_len=196608
6767     ;;
6768
6769   osf*)
6770     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6771     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6772     # nice to cause kernel panics so lets avoid the loop below.
6773     # First set a reasonable default.
6774     lt_cv_sys_max_cmd_len=16384
6775     #
6776     if test -x /sbin/sysconfig; then
6777       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6778         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6779       esac
6780     fi
6781     ;;
6782   sco3.2v5*)
6783     lt_cv_sys_max_cmd_len=102400
6784     ;;
6785   sysv5* | sco5v6* | sysv4.2uw2*)
6786     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6787     if test -n "$kargmax"; then
6788       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6789     else
6790       lt_cv_sys_max_cmd_len=32768
6791     fi
6792     ;;
6793   *)
6794     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6795     if test -n "$lt_cv_sys_max_cmd_len"; then
6796       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6797       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6798     else
6799       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6800       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6801                = "XX$teststring") >/dev/null 2>&1 &&
6802               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6803               lt_cv_sys_max_cmd_len=$new_result &&
6804               test $i != 17 # 1/2 MB should be enough
6805       do
6806         i=`expr $i + 1`
6807         teststring=$teststring$teststring
6808       done
6809       teststring=
6810       # Add a significant safety factor because C++ compilers can tack on massive
6811       # amounts of additional arguments before passing them to the linker.
6812       # It appears as though 1/2 is a usable value.
6813       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6814     fi
6815     ;;
6816   esac
6817
6818 fi
6819
6820 if test -n $lt_cv_sys_max_cmd_len ; then
6821   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6822 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6823 else
6824   { echo "$as_me:$LINENO: result: none" >&5
6825 echo "${ECHO_T}none" >&6; }
6826 fi
6827
6828
6829
6830
6831
6832 # Check for command to grab the raw symbol name followed by C symbol from nm.
6833 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6834 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6835 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838
6839 # These are sane defaults that work on at least a few old systems.
6840 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6841
6842 # Character class describing NM global symbol codes.
6843 symcode='[BCDEGRST]'
6844
6845 # Regexp to match symbols that can be accessed directly from C.
6846 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6847
6848 # Transform an extracted symbol line into a proper C declaration
6849 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6850
6851 # Transform an extracted symbol line into symbol name and symbol address
6852 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'"
6853
6854 # Define system-specific variables.
6855 case $host_os in
6856 aix*)
6857   symcode='[BCDT]'
6858   ;;
6859 cygwin* | mingw* | pw32*)
6860   symcode='[ABCDGISTW]'
6861   ;;
6862 hpux*) # Its linker distinguishes data from code symbols
6863   if test "$host_cpu" = ia64; then
6864     symcode='[ABCDEGRST]'
6865   fi
6866   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6867   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'"
6868   ;;
6869 linux* | k*bsd*-gnu)
6870   if test "$host_cpu" = ia64; then
6871     symcode='[ABCDGIRSTW]'
6872     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6873     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'"
6874   fi
6875   ;;
6876 irix* | nonstopux*)
6877   symcode='[BCDEGRST]'
6878   ;;
6879 osf*)
6880   symcode='[BCDEGQRST]'
6881   ;;
6882 solaris*)
6883   symcode='[BDRT]'
6884   ;;
6885 sco3.2v5*)
6886   symcode='[DT]'
6887   ;;
6888 sysv4.2uw2*)
6889   symcode='[DT]'
6890   ;;
6891 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6892   symcode='[ABDT]'
6893   ;;
6894 sysv4)
6895   symcode='[DFNSTU]'
6896   ;;
6897 esac
6898
6899 # Handle CRLF in mingw tool chain
6900 opt_cr=
6901 case $build_os in
6902 mingw*)
6903   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6904   ;;
6905 esac
6906
6907 # If we're using GNU nm, then use its standard symbol codes.
6908 case `$NM -V 2>&1` in
6909 *GNU* | *'with BFD'*)
6910   symcode='[ABCDGIRSTW]' ;;
6911 esac
6912
6913 # Try without a prefix undercore, then with it.
6914 for ac_symprfx in "" "_"; do
6915
6916   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6917   symxfrm="\\1 $ac_symprfx\\2 \\2"
6918
6919   # Write the raw and C identifiers.
6920   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6921
6922   # Check to see that the pipe works correctly.
6923   pipe_works=no
6924
6925   rm -f conftest*
6926   cat > conftest.$ac_ext <<EOF
6927 #ifdef __cplusplus
6928 extern "C" {
6929 #endif
6930 char nm_test_var;
6931 void nm_test_func(){}
6932 #ifdef __cplusplus
6933 }
6934 #endif
6935 int main(){nm_test_var='a';nm_test_func();return(0);}
6936 EOF
6937
6938   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939   (eval $ac_compile) 2>&5
6940   ac_status=$?
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); }; then
6943     # Now try to grab the symbols.
6944     nlist=conftest.nm
6945     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6946   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6947   ac_status=$?
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); } && test -s "$nlist"; then
6950       # Try sorting and uniquifying the output.
6951       if sort "$nlist" | uniq > "$nlist"T; then
6952         mv -f "$nlist"T "$nlist"
6953       else
6954         rm -f "$nlist"T
6955       fi
6956
6957       # Make sure that we snagged all the symbols we need.
6958       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6959         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6960           cat <<EOF > conftest.$ac_ext
6961 #ifdef __cplusplus
6962 extern "C" {
6963 #endif
6964
6965 EOF
6966           # Now generate the symbol file.
6967           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6968
6969           cat <<EOF >> conftest.$ac_ext
6970 #if defined (__STDC__) && __STDC__
6971 # define lt_ptr_t void *
6972 #else
6973 # define lt_ptr_t char *
6974 # define const
6975 #endif
6976
6977 /* The mapping between symbol names and symbols. */
6978 const struct {
6979   const char *name;
6980   lt_ptr_t address;
6981 }
6982 lt_preloaded_symbols[] =
6983 {
6984 EOF
6985           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6986           cat <<\EOF >> conftest.$ac_ext
6987   {0, (lt_ptr_t) 0}
6988 };
6989
6990 #ifdef __cplusplus
6991 }
6992 #endif
6993 EOF
6994           # Now try linking the two files.
6995           mv conftest.$ac_objext conftstm.$ac_objext
6996           lt_save_LIBS="$LIBS"
6997           lt_save_CFLAGS="$CFLAGS"
6998           LIBS="conftstm.$ac_objext"
6999           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7000           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7001   (eval $ac_link) 2>&5
7002   ac_status=$?
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7005             pipe_works=yes
7006           fi
7007           LIBS="$lt_save_LIBS"
7008           CFLAGS="$lt_save_CFLAGS"
7009         else
7010           echo "cannot find nm_test_func in $nlist" >&5
7011         fi
7012       else
7013         echo "cannot find nm_test_var in $nlist" >&5
7014       fi
7015     else
7016       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7017     fi
7018   else
7019     echo "$progname: failed program was:" >&5
7020     cat conftest.$ac_ext >&5
7021   fi
7022   rm -rf conftest* conftst*
7023
7024   # Do not use the global_symbol_pipe unless it works.
7025   if test "$pipe_works" = yes; then
7026     break
7027   else
7028     lt_cv_sys_global_symbol_pipe=
7029   fi
7030 done
7031
7032 fi
7033
7034 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7035   lt_cv_sys_global_symbol_to_cdecl=
7036 fi
7037 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7038   { echo "$as_me:$LINENO: result: failed" >&5
7039 echo "${ECHO_T}failed" >&6; }
7040 else
7041   { echo "$as_me:$LINENO: result: ok" >&5
7042 echo "${ECHO_T}ok" >&6; }
7043 fi
7044
7045 { echo "$as_me:$LINENO: checking for objdir" >&5
7046 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7047 if test "${lt_cv_objdir+set}" = set; then
7048   echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050   rm -f .libs 2>/dev/null
7051 mkdir .libs 2>/dev/null
7052 if test -d .libs; then
7053   lt_cv_objdir=.libs
7054 else
7055   # MS-DOS does not allow filenames that begin with a dot.
7056   lt_cv_objdir=_libs
7057 fi
7058 rmdir .libs 2>/dev/null
7059 fi
7060 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7061 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7062 objdir=$lt_cv_objdir
7063
7064
7065
7066
7067
7068 case $host_os in
7069 aix3*)
7070   # AIX sometimes has problems with the GCC collect2 program.  For some
7071   # reason, if we set the COLLECT_NAMES environment variable, the problems
7072   # vanish in a puff of smoke.
7073   if test "X${COLLECT_NAMES+set}" != Xset; then
7074     COLLECT_NAMES=
7075     export COLLECT_NAMES
7076   fi
7077   ;;
7078 esac
7079
7080 # Sed substitution that helps us do robust quoting.  It backslashifies
7081 # metacharacters that are still active within double-quoted strings.
7082 Xsed='sed -e 1s/^X//'
7083 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7084
7085 # Same as above, but do not quote variable references.
7086 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7087
7088 # Sed substitution to delay expansion of an escaped shell variable in a
7089 # double_quote_subst'ed string.
7090 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7091
7092 # Sed substitution to avoid accidental globbing in evaled expressions
7093 no_glob_subst='s/\*/\\\*/g'
7094
7095 # Constants:
7096 rm="rm -f"
7097
7098 # Global variables:
7099 default_ofile=libtool
7100 can_build_shared=yes
7101
7102 # All known linkers require a `.a' archive for static linking (except MSVC,
7103 # which needs '.lib').
7104 libext=a
7105 ltmain="$ac_aux_dir/ltmain.sh"
7106 ofile="$default_ofile"
7107 with_gnu_ld="$lt_cv_prog_gnu_ld"
7108
7109 if test -n "$ac_tool_prefix"; then
7110   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}ar; ac_word=$2
7112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7114 if test "${ac_cv_prog_AR+set}" = set; then
7115   echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117   if test -n "$AR"; then
7118   ac_cv_prog_AR="$AR" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123   IFS=$as_save_IFS
7124   test -z "$as_dir" && as_dir=.
7125   for ac_exec_ext in '' $ac_executable_extensions; do
7126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127     ac_cv_prog_AR="${ac_tool_prefix}ar"
7128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129     break 2
7130   fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 AR=$ac_cv_prog_AR
7138 if test -n "$AR"; then
7139   { echo "$as_me:$LINENO: result: $AR" >&5
7140 echo "${ECHO_T}$AR" >&6; }
7141 else
7142   { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_AR"; then
7149   ac_ct_AR=$AR
7150   # Extract the first word of "ar", so it can be a program name with args.
7151 set dummy ar; ac_word=$2
7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7155   echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157   if test -n "$ac_ct_AR"; then
7158   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165   for ac_exec_ext in '' $ac_executable_extensions; do
7166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167     ac_cv_prog_ac_ct_AR="ar"
7168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7178 if test -n "$ac_ct_AR"; then
7179   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7180 echo "${ECHO_T}$ac_ct_AR" >&6; }
7181 else
7182   { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7184 fi
7185
7186   if test "x$ac_ct_AR" = x; then
7187     AR="false"
7188   else
7189     case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7192 whose name does not start with the host triplet.  If you think this
7193 configuration is useful to you, please write to autoconf@gnu.org." >&5
7194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7195 whose name does not start with the host triplet.  If you think this
7196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7197 ac_tool_warned=yes ;;
7198 esac
7199     AR=$ac_ct_AR
7200   fi
7201 else
7202   AR="$ac_cv_prog_AR"
7203 fi
7204
7205 if test -n "$ac_tool_prefix"; then
7206   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_prog_RANLIB+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   if test -n "$RANLIB"; then
7214   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221   for ac_exec_ext in '' $ac_executable_extensions; do
7222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228 done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 RANLIB=$ac_cv_prog_RANLIB
7234 if test -n "$RANLIB"; then
7235   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7236 echo "${ECHO_T}$RANLIB" >&6; }
7237 else
7238   { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7240 fi
7241
7242
7243 fi
7244 if test -z "$ac_cv_prog_RANLIB"; then
7245   ac_ct_RANLIB=$RANLIB
7246   # Extract the first word of "ranlib", so it can be a program name with args.
7247 set dummy ranlib; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   if test -n "$ac_ct_RANLIB"; then
7254   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261   for ac_exec_ext in '' $ac_executable_extensions; do
7262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263     ac_cv_prog_ac_ct_RANLIB="ranlib"
7264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268 done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7274 if test -n "$ac_ct_RANLIB"; then
7275   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7276 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7277 else
7278   { echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6; }
7280 fi
7281
7282   if test "x$ac_ct_RANLIB" = x; then
7283     RANLIB=":"
7284   else
7285     case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7288 whose name does not start with the host triplet.  If you think this
7289 configuration is useful to you, please write to autoconf@gnu.org." >&5
7290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7291 whose name does not start with the host triplet.  If you think this
7292 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7293 ac_tool_warned=yes ;;
7294 esac
7295     RANLIB=$ac_ct_RANLIB
7296   fi
7297 else
7298   RANLIB="$ac_cv_prog_RANLIB"
7299 fi
7300
7301 if test -n "$ac_tool_prefix"; then
7302   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}strip; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_prog_STRIP+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   if test -n "$STRIP"; then
7310   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317   for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324 done
7325 IFS=$as_save_IFS
7326
7327 fi
7328 fi
7329 STRIP=$ac_cv_prog_STRIP
7330 if test -n "$STRIP"; then
7331   { echo "$as_me:$LINENO: result: $STRIP" >&5
7332 echo "${ECHO_T}$STRIP" >&6; }
7333 else
7334   { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7336 fi
7337
7338
7339 fi
7340 if test -z "$ac_cv_prog_STRIP"; then
7341   ac_ct_STRIP=$STRIP
7342   # Extract the first word of "strip", so it can be a program name with args.
7343 set dummy strip; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7347   echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349   if test -n "$ac_ct_STRIP"; then
7350   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357   for ac_exec_ext in '' $ac_executable_extensions; do
7358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359     ac_cv_prog_ac_ct_STRIP="strip"
7360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364 done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7370 if test -n "$ac_ct_STRIP"; then
7371   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7372 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7373 else
7374   { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7376 fi
7377
7378   if test "x$ac_ct_STRIP" = x; then
7379     STRIP=":"
7380   else
7381     case $cross_compiling:$ac_tool_warned in
7382 yes:)
7383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7384 whose name does not start with the host triplet.  If you think this
7385 configuration is useful to you, please write to autoconf@gnu.org." >&5
7386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7387 whose name does not start with the host triplet.  If you think this
7388 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7389 ac_tool_warned=yes ;;
7390 esac
7391     STRIP=$ac_ct_STRIP
7392   fi
7393 else
7394   STRIP="$ac_cv_prog_STRIP"
7395 fi
7396
7397
7398 old_CC="$CC"
7399 old_CFLAGS="$CFLAGS"
7400
7401 # Set sane defaults for various variables
7402 test -z "$AR" && AR=ar
7403 test -z "$AR_FLAGS" && AR_FLAGS=cru
7404 test -z "$AS" && AS=as
7405 test -z "$CC" && CC=cc
7406 test -z "$LTCC" && LTCC=$CC
7407 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7408 test -z "$DLLTOOL" && DLLTOOL=dlltool
7409 test -z "$LD" && LD=ld
7410 test -z "$LN_S" && LN_S="ln -s"
7411 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7412 test -z "$NM" && NM=nm
7413 test -z "$SED" && SED=sed
7414 test -z "$OBJDUMP" && OBJDUMP=objdump
7415 test -z "$RANLIB" && RANLIB=:
7416 test -z "$STRIP" && STRIP=:
7417 test -z "$ac_objext" && ac_objext=o
7418
7419 # Determine commands to create old-style static archives.
7420 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7421 old_postinstall_cmds='chmod 644 $oldlib'
7422 old_postuninstall_cmds=
7423
7424 if test -n "$RANLIB"; then
7425   case $host_os in
7426   openbsd*)
7427     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7428     ;;
7429   *)
7430     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7431     ;;
7432   esac
7433   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7434 fi
7435
7436 for cc_temp in $compiler""; do
7437   case $cc_temp in
7438     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7439     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7440     \-*) ;;
7441     *) break;;
7442   esac
7443 done
7444 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7445
7446
7447 # Only perform the check for file, if the check method requires it
7448 case $deplibs_check_method in
7449 file_magic*)
7450   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7451     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7452 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7453 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   case $MAGIC_CMD in
7457 [\\/*] |  ?:[\\/]*)
7458   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7459   ;;
7460 *)
7461   lt_save_MAGIC_CMD="$MAGIC_CMD"
7462   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7463   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7464   for ac_dir in $ac_dummy; do
7465     IFS="$lt_save_ifs"
7466     test -z "$ac_dir" && ac_dir=.
7467     if test -f $ac_dir/${ac_tool_prefix}file; then
7468       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7469       if test -n "$file_magic_test_file"; then
7470         case $deplibs_check_method in
7471         "file_magic "*)
7472           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7473           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7474           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7475             $EGREP "$file_magic_regex" > /dev/null; then
7476             :
7477           else
7478             cat <<EOF 1>&2
7479
7480 *** Warning: the command libtool uses to detect shared libraries,
7481 *** $file_magic_cmd, produces output that libtool cannot recognize.
7482 *** The result is that libtool may fail to recognize shared libraries
7483 *** as such.  This will affect the creation of libtool libraries that
7484 *** depend on shared libraries, but programs linked with such libtool
7485 *** libraries will work regardless of this problem.  Nevertheless, you
7486 *** may want to report the problem to your system manager and/or to
7487 *** bug-libtool@gnu.org
7488
7489 EOF
7490           fi ;;
7491         esac
7492       fi
7493       break
7494     fi
7495   done
7496   IFS="$lt_save_ifs"
7497   MAGIC_CMD="$lt_save_MAGIC_CMD"
7498   ;;
7499 esac
7500 fi
7501
7502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7503 if test -n "$MAGIC_CMD"; then
7504   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7505 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7506 else
7507   { echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6; }
7509 fi
7510
7511 if test -z "$lt_cv_path_MAGIC_CMD"; then
7512   if test -n "$ac_tool_prefix"; then
7513     { echo "$as_me:$LINENO: checking for file" >&5
7514 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7515 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   case $MAGIC_CMD in
7519 [\\/*] |  ?:[\\/]*)
7520   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7521   ;;
7522 *)
7523   lt_save_MAGIC_CMD="$MAGIC_CMD"
7524   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7525   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7526   for ac_dir in $ac_dummy; do
7527     IFS="$lt_save_ifs"
7528     test -z "$ac_dir" && ac_dir=.
7529     if test -f $ac_dir/file; then
7530       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7531       if test -n "$file_magic_test_file"; then
7532         case $deplibs_check_method in
7533         "file_magic "*)
7534           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7535           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7536           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7537             $EGREP "$file_magic_regex" > /dev/null; then
7538             :
7539           else
7540             cat <<EOF 1>&2
7541
7542 *** Warning: the command libtool uses to detect shared libraries,
7543 *** $file_magic_cmd, produces output that libtool cannot recognize.
7544 *** The result is that libtool may fail to recognize shared libraries
7545 *** as such.  This will affect the creation of libtool libraries that
7546 *** depend on shared libraries, but programs linked with such libtool
7547 *** libraries will work regardless of this problem.  Nevertheless, you
7548 *** may want to report the problem to your system manager and/or to
7549 *** bug-libtool@gnu.org
7550
7551 EOF
7552           fi ;;
7553         esac
7554       fi
7555       break
7556     fi
7557   done
7558   IFS="$lt_save_ifs"
7559   MAGIC_CMD="$lt_save_MAGIC_CMD"
7560   ;;
7561 esac
7562 fi
7563
7564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7565 if test -n "$MAGIC_CMD"; then
7566   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7567 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7568 else
7569   { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7571 fi
7572
7573   else
7574     MAGIC_CMD=:
7575   fi
7576 fi
7577
7578   fi
7579   ;;
7580 esac
7581
7582
7583   case $host_os in
7584     rhapsody* | darwin*)
7585     if test -n "$ac_tool_prefix"; then
7586   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   if test -n "$DSYMUTIL"; then
7594   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601   for ac_exec_ext in '' $ac_executable_extensions; do
7602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7614 if test -n "$DSYMUTIL"; then
7615   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7616 echo "${ECHO_T}$DSYMUTIL" >&6; }
7617 else
7618   { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7620 fi
7621
7622
7623 fi
7624 if test -z "$ac_cv_prog_DSYMUTIL"; then
7625   ac_ct_DSYMUTIL=$DSYMUTIL
7626   # Extract the first word of "dsymutil", so it can be a program name with args.
7627 set dummy dsymutil; ac_word=$2
7628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7631   echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633   if test -n "$ac_ct_DSYMUTIL"; then
7634   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641   for ac_exec_ext in '' $ac_executable_extensions; do
7642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651 fi
7652 fi
7653 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7654 if test -n "$ac_ct_DSYMUTIL"; then
7655   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7656 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7657 else
7658   { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7660 fi
7661
7662   if test "x$ac_ct_DSYMUTIL" = x; then
7663     DSYMUTIL=":"
7664   else
7665     case $cross_compiling:$ac_tool_warned in
7666 yes:)
7667 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7668 whose name does not start with the host triplet.  If you think this
7669 configuration is useful to you, please write to autoconf@gnu.org." >&5
7670 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7671 whose name does not start with the host triplet.  If you think this
7672 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7673 ac_tool_warned=yes ;;
7674 esac
7675     DSYMUTIL=$ac_ct_DSYMUTIL
7676   fi
7677 else
7678   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7679 fi
7680
7681     if test -n "$ac_tool_prefix"; then
7682   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7683 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7686 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689   if test -n "$NMEDIT"; then
7690   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697   for ac_exec_ext in '' $ac_executable_extensions; do
7698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704 done
7705 IFS=$as_save_IFS
7706
7707 fi
7708 fi
7709 NMEDIT=$ac_cv_prog_NMEDIT
7710 if test -n "$NMEDIT"; then
7711   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7712 echo "${ECHO_T}$NMEDIT" >&6; }
7713 else
7714   { echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6; }
7716 fi
7717
7718
7719 fi
7720 if test -z "$ac_cv_prog_NMEDIT"; then
7721   ac_ct_NMEDIT=$NMEDIT
7722   # Extract the first word of "nmedit", so it can be a program name with args.
7723 set dummy nmedit; ac_word=$2
7724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7727   echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729   if test -n "$ac_ct_NMEDIT"; then
7730   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735   IFS=$as_save_IFS
7736   test -z "$as_dir" && as_dir=.
7737   for ac_exec_ext in '' $ac_executable_extensions; do
7738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7739     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741     break 2
7742   fi
7743 done
7744 done
7745 IFS=$as_save_IFS
7746
7747 fi
7748 fi
7749 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7750 if test -n "$ac_ct_NMEDIT"; then
7751   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7752 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7753 else
7754   { echo "$as_me:$LINENO: result: no" >&5
7755 echo "${ECHO_T}no" >&6; }
7756 fi
7757
7758   if test "x$ac_ct_NMEDIT" = x; then
7759     NMEDIT=":"
7760   else
7761     case $cross_compiling:$ac_tool_warned in
7762 yes:)
7763 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7764 whose name does not start with the host triplet.  If you think this
7765 configuration is useful to you, please write to autoconf@gnu.org." >&5
7766 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7767 whose name does not start with the host triplet.  If you think this
7768 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7769 ac_tool_warned=yes ;;
7770 esac
7771     NMEDIT=$ac_ct_NMEDIT
7772   fi
7773 else
7774   NMEDIT="$ac_cv_prog_NMEDIT"
7775 fi
7776
7777
7778     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7779 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7780 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   lt_cv_apple_cc_single_mod=no
7784       if test -z "${LT_MULTI_MODULE}"; then
7785    # By default we will add the -single_module flag. You can override
7786    # by either setting the environment variable LT_MULTI_MODULE
7787    # non-empty at configure time, or by adding -multi_module to the
7788    # link flags.
7789    echo "int foo(void){return 1;}" > conftest.c
7790    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7791      -dynamiclib ${wl}-single_module conftest.c
7792    if test -f libconftest.dylib; then
7793      lt_cv_apple_cc_single_mod=yes
7794      rm -rf libconftest.dylib*
7795    fi
7796    rm conftest.c
7797       fi
7798 fi
7799 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7800 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7801     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7802 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7803 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806   lt_cv_ld_exported_symbols_list=no
7807       save_LDFLAGS=$LDFLAGS
7808       echo "_main" > conftest.sym
7809       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7810       cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h.  */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h.  */
7816
7817 int
7818 main ()
7819 {
7820
7821   ;
7822   return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (ac_try="$ac_link"
7827 case "(($ac_try" in
7828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829   *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832   (eval "$ac_link") 2>conftest.er1
7833   ac_status=$?
7834   grep -v '^ *+' conftest.er1 >conftest.err
7835   rm -f conftest.er1
7836   cat conftest.err >&5
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); } && {
7839          test -z "$ac_c_werror_flag" ||
7840          test ! -s conftest.err
7841        } && test -s conftest$ac_exeext &&
7842        $as_test_x conftest$ac_exeext; then
7843   lt_cv_ld_exported_symbols_list=yes
7844 else
7845   echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848         lt_cv_ld_exported_symbols_list=no
7849 fi
7850
7851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7852       conftest$ac_exeext conftest.$ac_ext
7853    LDFLAGS="$save_LDFLAGS"
7854
7855 fi
7856 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7857 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7858     case $host_os in
7859     rhapsody* | darwin1.[0123])
7860       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7861     darwin1.*)
7862      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7863     darwin*)
7864       # if running on 10.5 or later, the deployment target defaults
7865       # to the OS version, if on x86, and 10.4, the deployment
7866       # target defaults to 10.4. Don't you love it?
7867       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7868    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7869      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7870    10.[012]*)
7871      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7872    10.*)
7873      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7874       esac
7875     ;;
7876   esac
7877     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7878       _lt_dar_single_mod='$single_module'
7879     fi
7880     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7881       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7882     else
7883       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7884     fi
7885     if test "$DSYMUTIL" != ":"; then
7886       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7887     else
7888       _lt_dsymutil=
7889     fi
7890     ;;
7891   esac
7892
7893
7894 enable_dlopen=no
7895 enable_win32_dll=no
7896
7897 # Check whether --enable-libtool-lock was given.
7898 if test "${enable_libtool_lock+set}" = set; then
7899   enableval=$enable_libtool_lock;
7900 fi
7901
7902 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7903
7904
7905 # Check whether --with-pic was given.
7906 if test "${with_pic+set}" = set; then
7907   withval=$with_pic; pic_mode="$withval"
7908 else
7909   pic_mode=default
7910 fi
7911
7912 test -z "$pic_mode" && pic_mode=default
7913
7914 # Use C for the default configuration in the libtool script
7915 tagname=
7916 lt_save_CC="$CC"
7917 ac_ext=c
7918 ac_cpp='$CPP $CPPFLAGS'
7919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7922
7923
7924 # Source file extension for C test sources.
7925 ac_ext=c
7926
7927 # Object file extension for compiled C test sources.
7928 objext=o
7929 objext=$objext
7930
7931 # Code to be used in simple compile tests
7932 lt_simple_compile_test_code="int some_variable = 0;"
7933
7934 # Code to be used in simple link tests
7935 lt_simple_link_test_code='int main(){return(0);}'
7936
7937
7938 # If no C compiler was specified, use CC.
7939 LTCC=${LTCC-"$CC"}
7940
7941 # If no C compiler flags were specified, use CFLAGS.
7942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7943
7944 # Allow CC to be a program name with arguments.
7945 compiler=$CC
7946
7947
7948 # save warnings/boilerplate of simple test code
7949 ac_outfile=conftest.$ac_objext
7950 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7952 _lt_compiler_boilerplate=`cat conftest.err`
7953 $rm conftest*
7954
7955 ac_outfile=conftest.$ac_objext
7956 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7958 _lt_linker_boilerplate=`cat conftest.err`
7959 $rm -r conftest*
7960
7961
7962 ## CAVEAT EMPTOR:
7963 ## There is no encapsulation within the following macros, do not change
7964 ## the running order or otherwise move them around unless you know exactly
7965 ## what you are doing...
7966
7967 lt_prog_compiler_no_builtin_flag=
7968
7969 if test "$GCC" = yes; then
7970   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7971
7972
7973 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7974 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7975 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7976   echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978   lt_cv_prog_compiler_rtti_exceptions=no
7979   ac_outfile=conftest.$ac_objext
7980    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7981    lt_compiler_flag="-fno-rtti -fno-exceptions"
7982    # Insert the option either (1) after the last *FLAGS variable, or
7983    # (2) before a word containing "conftest.", or (3) at the end.
7984    # Note that $ac_compile itself does not contain backslashes and begins
7985    # with a dollar sign (not a hyphen), so the echo should work correctly.
7986    # The option is referenced via a variable to avoid confusing sed.
7987    lt_compile=`echo "$ac_compile" | $SED \
7988    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7989    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7990    -e 's:$: $lt_compiler_flag:'`
7991    (eval echo "\"\$as_me:7991: $lt_compile\"" >&5)
7992    (eval "$lt_compile" 2>conftest.err)
7993    ac_status=$?
7994    cat conftest.err >&5
7995    echo "$as_me:7995: \$? = $ac_status" >&5
7996    if (exit $ac_status) && test -s "$ac_outfile"; then
7997      # The compiler can only warn and ignore the option if not recognized
7998      # So say no if there are warnings other than the usual output.
7999      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8000      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8001      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8002        lt_cv_prog_compiler_rtti_exceptions=yes
8003      fi
8004    fi
8005    $rm conftest*
8006
8007 fi
8008 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8009 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8010
8011 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8012     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8013 else
8014     :
8015 fi
8016
8017 fi
8018
8019 lt_prog_compiler_wl=
8020 lt_prog_compiler_pic=
8021 lt_prog_compiler_static=
8022
8023 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8024 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8025
8026   if test "$GCC" = yes; then
8027     lt_prog_compiler_wl='-Wl,'
8028     lt_prog_compiler_static='-static'
8029
8030     case $host_os in
8031       aix*)
8032       # All AIX code is PIC.
8033       if test "$host_cpu" = ia64; then
8034         # AIX 5 now supports IA64 processor
8035         lt_prog_compiler_static='-Bstatic'
8036       fi
8037       ;;
8038
8039     amigaos*)
8040       # FIXME: we need at least 68020 code to build shared libraries, but
8041       # adding the `-m68020' flag to GCC prevents building anything better,
8042       # like `-m68040'.
8043       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8044       ;;
8045
8046     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8047       # PIC is the default for these OSes.
8048       ;;
8049
8050     mingw* | cygwin* | pw32* | os2*)
8051       # This hack is so that the source file can tell whether it is being
8052       # built for inclusion in a dll (and should export symbols for example).
8053       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8054       # (--disable-auto-import) libraries
8055       lt_prog_compiler_pic='-DDLL_EXPORT'
8056       ;;
8057
8058     darwin* | rhapsody*)
8059       # PIC is the default on this platform
8060       # Common symbols not allowed in MH_DYLIB files
8061       lt_prog_compiler_pic='-fno-common'
8062       ;;
8063
8064     interix[3-9]*)
8065       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8066       # Instead, we relocate shared libraries at runtime.
8067       ;;
8068
8069     msdosdjgpp*)
8070       # Just because we use GCC doesn't mean we suddenly get shared libraries
8071       # on systems that don't support them.
8072       lt_prog_compiler_can_build_shared=no
8073       enable_shared=no
8074       ;;
8075
8076     sysv4*MP*)
8077       if test -d /usr/nec; then
8078         lt_prog_compiler_pic=-Kconform_pic
8079       fi
8080       ;;
8081
8082     hpux*)
8083       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8084       # not for PA HP-UX.
8085       case $host_cpu in
8086       hppa*64*|ia64*)
8087         # +Z the default
8088         ;;
8089       *)
8090         lt_prog_compiler_pic='-fPIC'
8091         ;;
8092       esac
8093       ;;
8094
8095     *)
8096       lt_prog_compiler_pic='-fPIC'
8097       ;;
8098     esac
8099   else
8100     # PORTME Check for flag to pass linker flags through the system compiler.
8101     case $host_os in
8102     aix*)
8103       lt_prog_compiler_wl='-Wl,'
8104       if test "$host_cpu" = ia64; then
8105         # AIX 5 now supports IA64 processor
8106         lt_prog_compiler_static='-Bstatic'
8107       else
8108         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8109       fi
8110       ;;
8111       darwin*)
8112         # PIC is the default on this platform
8113         # Common symbols not allowed in MH_DYLIB files
8114        case $cc_basename in
8115          xlc*)
8116          lt_prog_compiler_pic='-qnocommon'
8117          lt_prog_compiler_wl='-Wl,'
8118          ;;
8119        esac
8120        ;;
8121
8122     mingw* | cygwin* | pw32* | os2*)
8123       # This hack is so that the source file can tell whether it is being
8124       # built for inclusion in a dll (and should export symbols for example).
8125       lt_prog_compiler_pic='-DDLL_EXPORT'
8126       ;;
8127
8128     hpux9* | hpux10* | hpux11*)
8129       lt_prog_compiler_wl='-Wl,'
8130       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8131       # not for PA HP-UX.
8132       case $host_cpu in
8133       hppa*64*|ia64*)
8134         # +Z the default
8135         ;;
8136       *)
8137         lt_prog_compiler_pic='+Z'
8138         ;;
8139       esac
8140       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8141       lt_prog_compiler_static='${wl}-a ${wl}archive'
8142       ;;
8143
8144     irix5* | irix6* | nonstopux*)
8145       lt_prog_compiler_wl='-Wl,'
8146       # PIC (with -KPIC) is the default.
8147       lt_prog_compiler_static='-non_shared'
8148       ;;
8149
8150     newsos6)
8151       lt_prog_compiler_pic='-KPIC'
8152       lt_prog_compiler_static='-Bstatic'
8153       ;;
8154
8155     linux* | k*bsd*-gnu)
8156       case $cc_basename in
8157       icc* | ecc*)
8158         lt_prog_compiler_wl='-Wl,'
8159         lt_prog_compiler_pic='-KPIC'
8160         lt_prog_compiler_static='-static'
8161         ;;
8162       pgcc* | pgf77* | pgf90* | pgf95*)
8163         # Portland Group compilers (*not* the Pentium gcc compiler,
8164         # which looks to be a dead project)
8165         lt_prog_compiler_wl='-Wl,'
8166         lt_prog_compiler_pic='-fpic'
8167         lt_prog_compiler_static='-Bstatic'
8168         ;;
8169       ccc*)
8170         lt_prog_compiler_wl='-Wl,'
8171         # All Alpha code is PIC.
8172         lt_prog_compiler_static='-non_shared'
8173         ;;
8174       *)
8175         case `$CC -V 2>&1 | sed 5q` in
8176         *Sun\ C*)
8177           # Sun C 5.9
8178           lt_prog_compiler_pic='-KPIC'
8179           lt_prog_compiler_static='-Bstatic'
8180           lt_prog_compiler_wl='-Wl,'
8181           ;;
8182         *Sun\ F*)
8183           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8184           lt_prog_compiler_pic='-KPIC'
8185           lt_prog_compiler_static='-Bstatic'
8186           lt_prog_compiler_wl=''
8187           ;;
8188         esac
8189         ;;
8190       esac
8191       ;;
8192
8193     osf3* | osf4* | osf5*)
8194       lt_prog_compiler_wl='-Wl,'
8195       # All OSF/1 code is PIC.
8196       lt_prog_compiler_static='-non_shared'
8197       ;;
8198
8199     rdos*)
8200       lt_prog_compiler_static='-non_shared'
8201       ;;
8202
8203     solaris*)
8204       lt_prog_compiler_pic='-KPIC'
8205       lt_prog_compiler_static='-Bstatic'
8206       case $cc_basename in
8207       f77* | f90* | f95*)
8208         lt_prog_compiler_wl='-Qoption ld ';;
8209       *)
8210         lt_prog_compiler_wl='-Wl,';;
8211       esac
8212       ;;
8213
8214     sunos4*)
8215       lt_prog_compiler_wl='-Qoption ld '
8216       lt_prog_compiler_pic='-PIC'
8217       lt_prog_compiler_static='-Bstatic'
8218       ;;
8219
8220     sysv4 | sysv4.2uw2* | sysv4.3*)
8221       lt_prog_compiler_wl='-Wl,'
8222       lt_prog_compiler_pic='-KPIC'
8223       lt_prog_compiler_static='-Bstatic'
8224       ;;
8225
8226     sysv4*MP*)
8227       if test -d /usr/nec ;then
8228         lt_prog_compiler_pic='-Kconform_pic'
8229         lt_prog_compiler_static='-Bstatic'
8230       fi
8231       ;;
8232
8233     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8234       lt_prog_compiler_wl='-Wl,'
8235       lt_prog_compiler_pic='-KPIC'
8236       lt_prog_compiler_static='-Bstatic'
8237       ;;
8238
8239     unicos*)
8240       lt_prog_compiler_wl='-Wl,'
8241       lt_prog_compiler_can_build_shared=no
8242       ;;
8243
8244     uts4*)
8245       lt_prog_compiler_pic='-pic'
8246       lt_prog_compiler_static='-Bstatic'
8247       ;;
8248
8249     *)
8250       lt_prog_compiler_can_build_shared=no
8251       ;;
8252     esac
8253   fi
8254
8255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8256 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8257
8258 #
8259 # Check to make sure the PIC flag actually works.
8260 #
8261 if test -n "$lt_prog_compiler_pic"; then
8262
8263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8265 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   lt_cv_prog_compiler_pic_works=no
8269   ac_outfile=conftest.$ac_objext
8270    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8271    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8272    # Insert the option either (1) after the last *FLAGS variable, or
8273    # (2) before a word containing "conftest.", or (3) at the end.
8274    # Note that $ac_compile itself does not contain backslashes and begins
8275    # with a dollar sign (not a hyphen), so the echo should work correctly.
8276    # The option is referenced via a variable to avoid confusing sed.
8277    lt_compile=`echo "$ac_compile" | $SED \
8278    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280    -e 's:$: $lt_compiler_flag:'`
8281    (eval echo "\"\$as_me:8281: $lt_compile\"" >&5)
8282    (eval "$lt_compile" 2>conftest.err)
8283    ac_status=$?
8284    cat conftest.err >&5
8285    echo "$as_me:8285: \$? = $ac_status" >&5
8286    if (exit $ac_status) && test -s "$ac_outfile"; then
8287      # The compiler can only warn and ignore the option if not recognized
8288      # So say no if there are warnings other than the usual output.
8289      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8290      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8291      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8292        lt_cv_prog_compiler_pic_works=yes
8293      fi
8294    fi
8295    $rm conftest*
8296
8297 fi
8298 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8299 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8300
8301 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8302     case $lt_prog_compiler_pic in
8303      "" | " "*) ;;
8304      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8305      esac
8306 else
8307     lt_prog_compiler_pic=
8308      lt_prog_compiler_can_build_shared=no
8309 fi
8310
8311 fi
8312 case $host_os in
8313   # For platforms which do not support PIC, -DPIC is meaningless:
8314   *djgpp*)
8315     lt_prog_compiler_pic=
8316     ;;
8317   *)
8318     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8319     ;;
8320 esac
8321
8322 #
8323 # Check to make sure the static flag actually works.
8324 #
8325 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8326 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8327 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8328 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8329   echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331   lt_cv_prog_compiler_static_works=no
8332    save_LDFLAGS="$LDFLAGS"
8333    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8334    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8335    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8336      # The linker can only warn and ignore the option if not recognized
8337      # So say no if there are warnings
8338      if test -s conftest.err; then
8339        # Append any errors to the config.log.
8340        cat conftest.err 1>&5
8341        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8342        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8343        if diff conftest.exp conftest.er2 >/dev/null; then
8344          lt_cv_prog_compiler_static_works=yes
8345        fi
8346      else
8347        lt_cv_prog_compiler_static_works=yes
8348      fi
8349    fi
8350    $rm -r conftest*
8351    LDFLAGS="$save_LDFLAGS"
8352
8353 fi
8354 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8355 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8356
8357 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8358     :
8359 else
8360     lt_prog_compiler_static=
8361 fi
8362
8363
8364 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8366 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   lt_cv_prog_compiler_c_o=no
8370    $rm -r conftest 2>/dev/null
8371    mkdir conftest
8372    cd conftest
8373    mkdir out
8374    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8375
8376    lt_compiler_flag="-o out/conftest2.$ac_objext"
8377    # Insert the option either (1) after the last *FLAGS variable, or
8378    # (2) before a word containing "conftest.", or (3) at the end.
8379    # Note that $ac_compile itself does not contain backslashes and begins
8380    # with a dollar sign (not a hyphen), so the echo should work correctly.
8381    lt_compile=`echo "$ac_compile" | $SED \
8382    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8384    -e 's:$: $lt_compiler_flag:'`
8385    (eval echo "\"\$as_me:8385: $lt_compile\"" >&5)
8386    (eval "$lt_compile" 2>out/conftest.err)
8387    ac_status=$?
8388    cat out/conftest.err >&5
8389    echo "$as_me:8389: \$? = $ac_status" >&5
8390    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8391    then
8392      # The compiler can only warn and ignore the option if not recognized
8393      # So say no if there are warnings
8394      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8395      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8396      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8397        lt_cv_prog_compiler_c_o=yes
8398      fi
8399    fi
8400    chmod u+w . 2>&5
8401    $rm conftest*
8402    # SGI C++ compiler will create directory out/ii_files/ for
8403    # template instantiation
8404    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8405    $rm out/* && rmdir out
8406    cd ..
8407    rmdir conftest
8408    $rm conftest*
8409
8410 fi
8411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8413
8414
8415 hard_links="nottested"
8416 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8417   # do not overwrite the value of need_locks provided by the user
8418   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8420   hard_links=yes
8421   $rm conftest*
8422   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8423   touch conftest.a
8424   ln conftest.a conftest.b 2>&5 || hard_links=no
8425   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8426   { echo "$as_me:$LINENO: result: $hard_links" >&5
8427 echo "${ECHO_T}$hard_links" >&6; }
8428   if test "$hard_links" = no; then
8429     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8431     need_locks=warn
8432   fi
8433 else
8434   need_locks=no
8435 fi
8436
8437 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8439
8440   runpath_var=
8441   allow_undefined_flag=
8442   enable_shared_with_static_runtimes=no
8443   archive_cmds=
8444   archive_expsym_cmds=
8445   old_archive_From_new_cmds=
8446   old_archive_from_expsyms_cmds=
8447   export_dynamic_flag_spec=
8448   whole_archive_flag_spec=
8449   thread_safe_flag_spec=
8450   hardcode_libdir_flag_spec=
8451   hardcode_libdir_flag_spec_ld=
8452   hardcode_libdir_separator=
8453   hardcode_direct=no
8454   hardcode_minus_L=no
8455   hardcode_shlibpath_var=unsupported
8456   link_all_deplibs=unknown
8457   hardcode_automatic=no
8458   module_cmds=
8459   module_expsym_cmds=
8460   always_export_symbols=no
8461   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8462   # include_expsyms should be a list of space-separated symbols to be *always*
8463   # included in the symbol list
8464   include_expsyms=
8465   # exclude_expsyms can be an extended regexp of symbols to exclude
8466   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8467   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8468   # as well as any symbol that contains `d'.
8469   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8470   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8471   # platforms (ab)use it in PIC code, but their linkers get confused if
8472   # the symbol is explicitly referenced.  Since portable code cannot
8473   # rely on this symbol name, it's probably fine to never include it in
8474   # preloaded symbol tables.
8475   # Exclude shared library initialization/finalization symbols.
8476   extract_expsyms_cmds=
8477   # Just being paranoid about ensuring that cc_basename is set.
8478   for cc_temp in $compiler""; do
8479   case $cc_temp in
8480     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8481     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8482     \-*) ;;
8483     *) break;;
8484   esac
8485 done
8486 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8487
8488   case $host_os in
8489   cygwin* | mingw* | pw32*)
8490     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8491     # When not using gcc, we currently assume that we are using
8492     # Microsoft Visual C++.
8493     if test "$GCC" != yes; then
8494       with_gnu_ld=no
8495     fi
8496     ;;
8497   interix*)
8498     # we just hope/assume this is gcc and not c89 (= MSVC++)
8499     with_gnu_ld=yes
8500     ;;
8501   openbsd*)
8502     with_gnu_ld=no
8503     ;;
8504   esac
8505
8506   ld_shlibs=yes
8507   if test "$with_gnu_ld" = yes; then
8508     # If archive_cmds runs LD, not CC, wlarc should be empty
8509     wlarc='${wl}'
8510
8511     # Set some defaults for GNU ld with shared library support. These
8512     # are reset later if shared libraries are not supported. Putting them
8513     # here allows them to be overridden if necessary.
8514     runpath_var=LD_RUN_PATH
8515     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8516     export_dynamic_flag_spec='${wl}--export-dynamic'
8517     # ancient GNU ld didn't support --whole-archive et. al.
8518     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8519         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8520       else
8521         whole_archive_flag_spec=
8522     fi
8523     supports_anon_versioning=no
8524     case `$LD -v 2>/dev/null` in
8525       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8526       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8527       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8528       *\ 2.11.*) ;; # other 2.11 versions
8529       *) supports_anon_versioning=yes ;;
8530     esac
8531
8532     # See if GNU ld supports shared libraries.
8533     case $host_os in
8534     aix[3-9]*)
8535       # On AIX/PPC, the GNU linker is very broken
8536       if test "$host_cpu" != ia64; then
8537         ld_shlibs=no
8538         cat <<EOF 1>&2
8539
8540 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8541 *** to be unable to reliably create shared libraries on AIX.
8542 *** Therefore, libtool is disabling shared libraries support.  If you
8543 *** really care for shared libraries, you may want to modify your PATH
8544 *** so that a non-GNU linker is found, and then restart.
8545
8546 EOF
8547       fi
8548       ;;
8549
8550     amigaos*)
8551       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)'
8552       hardcode_libdir_flag_spec='-L$libdir'
8553       hardcode_minus_L=yes
8554
8555       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8556       # that the semantics of dynamic libraries on AmigaOS, at least up
8557       # to version 4, is to share data among multiple programs linked
8558       # with the same dynamic library.  Since this doesn't match the
8559       # behavior of shared libraries on other platforms, we can't use
8560       # them.
8561       ld_shlibs=no
8562       ;;
8563
8564     beos*)
8565       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8566         allow_undefined_flag=unsupported
8567         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8568         # support --undefined.  This deserves some investigation.  FIXME
8569         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8570       else
8571         ld_shlibs=no
8572       fi
8573       ;;
8574
8575     cygwin* | mingw* | pw32*)
8576       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8577       # as there is no search path for DLLs.
8578       hardcode_libdir_flag_spec='-L$libdir'
8579       allow_undefined_flag=unsupported
8580       always_export_symbols=no
8581       enable_shared_with_static_runtimes=yes
8582       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8583
8584       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8585         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8586         # If the export-symbols file already is a .def file (1st line
8587         # is EXPORTS), use it as is; otherwise, prepend...
8588         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8589           cp $export_symbols $output_objdir/$soname.def;
8590         else
8591           echo EXPORTS > $output_objdir/$soname.def;
8592           cat $export_symbols >> $output_objdir/$soname.def;
8593         fi~
8594         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8595       else
8596         ld_shlibs=no
8597       fi
8598       ;;
8599
8600     interix[3-9]*)
8601       hardcode_direct=no
8602       hardcode_shlibpath_var=no
8603       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8604       export_dynamic_flag_spec='${wl}-E'
8605       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8606       # Instead, shared libraries are loaded at an image base (0x10000000 by
8607       # default) and relocated if they conflict, which is a slow very memory
8608       # consuming and fragmenting process.  To avoid this, we pick a random,
8609       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8610       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8611       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8612       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'
8613       ;;
8614
8615     gnu* | linux* | k*bsd*-gnu)
8616       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8617         tmp_addflag=
8618         case $cc_basename,$host_cpu in
8619         pgcc*)                          # Portland Group C compiler
8620           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'
8621           tmp_addflag=' $pic_flag'
8622           ;;
8623         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8624           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'
8625           tmp_addflag=' $pic_flag -Mnomain' ;;
8626         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8627           tmp_addflag=' -i_dynamic' ;;
8628         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8629           tmp_addflag=' -i_dynamic -nofor_main' ;;
8630         ifc* | ifort*)                  # Intel Fortran compiler
8631           tmp_addflag=' -nofor_main' ;;
8632         esac
8633         case `$CC -V 2>&1 | sed 5q` in
8634         *Sun\ C*)                       # Sun C 5.9
8635           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'
8636           tmp_sharedflag='-G' ;;
8637         *Sun\ F*)                       # Sun Fortran 8.3
8638           tmp_sharedflag='-G' ;;
8639         *)
8640           tmp_sharedflag='-shared' ;;
8641         esac
8642         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8643
8644         if test $supports_anon_versioning = yes; then
8645           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8646   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8647   $echo "local: *; };" >> $output_objdir/$libname.ver~
8648           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8649         fi
8650       else
8651         ld_shlibs=no
8652       fi
8653       ;;
8654
8655     netbsd*)
8656       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8657         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8658         wlarc=
8659       else
8660         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8662       fi
8663       ;;
8664
8665     solaris*)
8666       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8667         ld_shlibs=no
8668         cat <<EOF 1>&2
8669
8670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8671 *** create shared libraries on Solaris systems.  Therefore, libtool
8672 *** is disabling shared libraries support.  We urge you to upgrade GNU
8673 *** binutils to release 2.9.1 or newer.  Another option is to modify
8674 *** your PATH or compiler configuration so that the native linker is
8675 *** used, and then restart.
8676
8677 EOF
8678       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8679         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8680         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8681       else
8682         ld_shlibs=no
8683       fi
8684       ;;
8685
8686     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8687       case `$LD -v 2>&1` in
8688         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8689         ld_shlibs=no
8690         cat <<_LT_EOF 1>&2
8691
8692 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8693 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8694 *** is disabling shared libraries support.  We urge you to upgrade GNU
8695 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8696 *** your PATH or compiler configuration so that the native linker is
8697 *** used, and then restart.
8698
8699 _LT_EOF
8700         ;;
8701         *)
8702           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8703             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8704             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8705             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8706           else
8707             ld_shlibs=no
8708           fi
8709         ;;
8710       esac
8711       ;;
8712
8713     sunos4*)
8714       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8715       wlarc=
8716       hardcode_direct=yes
8717       hardcode_shlibpath_var=no
8718       ;;
8719
8720     *)
8721       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8722         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8724       else
8725         ld_shlibs=no
8726       fi
8727       ;;
8728     esac
8729
8730     if test "$ld_shlibs" = no; then
8731       runpath_var=
8732       hardcode_libdir_flag_spec=
8733       export_dynamic_flag_spec=
8734       whole_archive_flag_spec=
8735     fi
8736   else
8737     # PORTME fill in a description of your system's linker (not GNU ld)
8738     case $host_os in
8739     aix3*)
8740       allow_undefined_flag=unsupported
8741       always_export_symbols=yes
8742       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'
8743       # Note: this linker hardcodes the directories in LIBPATH if there
8744       # are no directories specified by -L.
8745       hardcode_minus_L=yes
8746       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8747         # Neither direct hardcoding nor static linking is supported with a
8748         # broken collect2.
8749         hardcode_direct=unsupported
8750       fi
8751       ;;
8752
8753     aix[4-9]*)
8754       if test "$host_cpu" = ia64; then
8755         # On IA64, the linker does run time linking by default, so we don't
8756         # have to do anything special.
8757         aix_use_runtimelinking=no
8758         exp_sym_flag='-Bexport'
8759         no_entry_flag=""
8760       else
8761         # If we're using GNU nm, then we don't want the "-C" option.
8762         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8763         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8764           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'
8765         else
8766           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'
8767         fi
8768         aix_use_runtimelinking=no
8769
8770         # Test if we are trying to use run time linking or normal
8771         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8772         # need to do runtime linking.
8773         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8774           for ld_flag in $LDFLAGS; do
8775           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8776             aix_use_runtimelinking=yes
8777             break
8778           fi
8779           done
8780           ;;
8781         esac
8782
8783         exp_sym_flag='-bexport'
8784         no_entry_flag='-bnoentry'
8785       fi
8786
8787       # When large executables or shared objects are built, AIX ld can
8788       # have problems creating the table of contents.  If linking a library
8789       # or program results in "error TOC overflow" add -mminimal-toc to
8790       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8791       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8792
8793       archive_cmds=''
8794       hardcode_direct=yes
8795       hardcode_libdir_separator=':'
8796       link_all_deplibs=yes
8797
8798       if test "$GCC" = yes; then
8799         case $host_os in aix4.[012]|aix4.[012].*)
8800         # We only want to do this on AIX 4.2 and lower, the check
8801         # below for broken collect2 doesn't work under 4.3+
8802           collect2name=`${CC} -print-prog-name=collect2`
8803           if test -f "$collect2name" && \
8804            strings "$collect2name" | grep resolve_lib_name >/dev/null
8805           then
8806           # We have reworked collect2
8807           :
8808           else
8809           # We have old collect2
8810           hardcode_direct=unsupported
8811           # It fails to find uninstalled libraries when the uninstalled
8812           # path is not listed in the libpath.  Setting hardcode_minus_L
8813           # to unsupported forces relinking
8814           hardcode_minus_L=yes
8815           hardcode_libdir_flag_spec='-L$libdir'
8816           hardcode_libdir_separator=
8817           fi
8818           ;;
8819         esac
8820         shared_flag='-shared'
8821         if test "$aix_use_runtimelinking" = yes; then
8822           shared_flag="$shared_flag "'${wl}-G'
8823         fi
8824       else
8825         # not using gcc
8826         if test "$host_cpu" = ia64; then
8827         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8828         # chokes on -Wl,-G. The following line is correct:
8829           shared_flag='-G'
8830         else
8831           if test "$aix_use_runtimelinking" = yes; then
8832             shared_flag='${wl}-G'
8833           else
8834             shared_flag='${wl}-bM:SRE'
8835           fi
8836         fi
8837       fi
8838
8839       # It seems that -bexpall does not export symbols beginning with
8840       # underscore (_), so it is better to generate a list of symbols to export.
8841       always_export_symbols=yes
8842       if test "$aix_use_runtimelinking" = yes; then
8843         # Warning - without using the other runtime loading flags (-brtl),
8844         # -berok will link without error, but may produce a broken library.
8845         allow_undefined_flag='-berok'
8846        # Determine the default libpath from the value encoded in an empty executable.
8847        cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h.  */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h.  */
8853
8854 int
8855 main ()
8856 {
8857
8858   ;
8859   return 0;
8860 }
8861 _ACEOF
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (ac_try="$ac_link"
8864 case "(($ac_try" in
8865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866   *) ac_try_echo=$ac_try;;
8867 esac
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869   (eval "$ac_link") 2>conftest.er1
8870   ac_status=$?
8871   grep -v '^ *+' conftest.er1 >conftest.err
8872   rm -f conftest.er1
8873   cat conftest.err >&5
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); } && {
8876          test -z "$ac_c_werror_flag" ||
8877          test ! -s conftest.err
8878        } && test -s conftest$ac_exeext &&
8879        $as_test_x conftest$ac_exeext; then
8880
8881 lt_aix_libpath_sed='
8882     /Import File Strings/,/^$/ {
8883         /^0/ {
8884             s/^0  *\(.*\)$/\1/
8885             p
8886         }
8887     }'
8888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889 # Check for a 64-bit object if we didn't find anything.
8890 if test -z "$aix_libpath"; then
8891   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 fi
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897
8898 fi
8899
8900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8901       conftest$ac_exeext conftest.$ac_ext
8902 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8903
8904        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8905         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"
8906        else
8907         if test "$host_cpu" = ia64; then
8908           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8909           allow_undefined_flag="-z nodefs"
8910           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"
8911         else
8912          # Determine the default libpath from the value encoded in an empty executable.
8913          cat >conftest.$ac_ext <<_ACEOF
8914 /* confdefs.h.  */
8915 _ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h.  */
8919
8920 int
8921 main ()
8922 {
8923
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8930 case "(($ac_try" in
8931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932   *) ac_try_echo=$ac_try;;
8933 esac
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935   (eval "$ac_link") 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } && {
8942          test -z "$ac_c_werror_flag" ||
8943          test ! -s conftest.err
8944        } && test -s conftest$ac_exeext &&
8945        $as_test_x conftest$ac_exeext; then
8946
8947 lt_aix_libpath_sed='
8948     /Import File Strings/,/^$/ {
8949         /^0/ {
8950             s/^0  *\(.*\)$/\1/
8951             p
8952         }
8953     }'
8954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8955 # Check for a 64-bit object if we didn't find anything.
8956 if test -z "$aix_libpath"; then
8957   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8958 fi
8959 else
8960   echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963
8964 fi
8965
8966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8967       conftest$ac_exeext conftest.$ac_ext
8968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8969
8970          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8971           # Warning - without using the other run time loading flags,
8972           # -berok will link without error, but may produce a broken library.
8973           no_undefined_flag=' ${wl}-bernotok'
8974           allow_undefined_flag=' ${wl}-berok'
8975           # Exported symbols can be pulled into shared objects from archives
8976           whole_archive_flag_spec='$convenience'
8977           archive_cmds_need_lc=yes
8978           # This is similar to how AIX traditionally builds its shared libraries.
8979           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'
8980         fi
8981       fi
8982       ;;
8983
8984     amigaos*)
8985       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)'
8986       hardcode_libdir_flag_spec='-L$libdir'
8987       hardcode_minus_L=yes
8988       # see comment about different semantics on the GNU ld section
8989       ld_shlibs=no
8990       ;;
8991
8992     bsdi[45]*)
8993       export_dynamic_flag_spec=-rdynamic
8994       ;;
8995
8996     cygwin* | mingw* | pw32*)
8997       # When not using gcc, we currently assume that we are using
8998       # Microsoft Visual C++.
8999       # hardcode_libdir_flag_spec is actually meaningless, as there is
9000       # no search path for DLLs.
9001       hardcode_libdir_flag_spec=' '
9002       allow_undefined_flag=unsupported
9003       # Tell ltmain to make .lib files, not .a files.
9004       libext=lib
9005       # Tell ltmain to make .dll files, not .so files.
9006       shrext_cmds=".dll"
9007       # FIXME: Setting linknames here is a bad hack.
9008       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9009       # The linker will automatically build a .lib file if we build a DLL.
9010       old_archive_From_new_cmds='true'
9011       # FIXME: Should let the user specify the lib program.
9012       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9013       fix_srcfile_path='`cygpath -w "$srcfile"`'
9014       enable_shared_with_static_runtimes=yes
9015       ;;
9016
9017     darwin* | rhapsody*)
9018       case $host_os in
9019         rhapsody* | darwin1.[012])
9020          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9021          ;;
9022        *) # Darwin 1.3 on
9023          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9024            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9025          else
9026            case ${MACOSX_DEPLOYMENT_TARGET} in
9027              10.[012])
9028                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9029                ;;
9030              10.*)
9031                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9032                ;;
9033            esac
9034          fi
9035          ;;
9036       esac
9037       archive_cmds_need_lc=no
9038       hardcode_direct=no
9039       hardcode_automatic=yes
9040       hardcode_shlibpath_var=unsupported
9041       whole_archive_flag_spec=''
9042       link_all_deplibs=yes
9043     if test "$GCC" = yes ; then
9044         output_verbose_link_cmd='echo'
9045         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9046         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9047         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9048         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9049     else
9050       case $cc_basename in
9051         xlc*)
9052          output_verbose_link_cmd='echo'
9053          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9054          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9055           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9056          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}'
9057           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}'
9058           ;;
9059        *)
9060          ld_shlibs=no
9061           ;;
9062       esac
9063     fi
9064       ;;
9065
9066     dgux*)
9067       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068       hardcode_libdir_flag_spec='-L$libdir'
9069       hardcode_shlibpath_var=no
9070       ;;
9071
9072     freebsd1*)
9073       ld_shlibs=no
9074       ;;
9075
9076     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9077     # support.  Future versions do this automatically, but an explicit c++rt0.o
9078     # does not break anything, and helps significantly (at the cost of a little
9079     # extra space).
9080     freebsd2.2*)
9081       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9082       hardcode_libdir_flag_spec='-R$libdir'
9083       hardcode_direct=yes
9084       hardcode_shlibpath_var=no
9085       ;;
9086
9087     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9088     freebsd2*)
9089       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9090       hardcode_direct=yes
9091       hardcode_minus_L=yes
9092       hardcode_shlibpath_var=no
9093       ;;
9094
9095     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9096     freebsd* | dragonfly*)
9097       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9098       hardcode_libdir_flag_spec='-R$libdir'
9099       hardcode_direct=yes
9100       hardcode_shlibpath_var=no
9101       ;;
9102
9103     hpux9*)
9104       if test "$GCC" = yes; then
9105         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'
9106       else
9107         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'
9108       fi
9109       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110       hardcode_libdir_separator=:
9111       hardcode_direct=yes
9112
9113       # hardcode_minus_L: Not really in the search PATH,
9114       # but as the default location of the library.
9115       hardcode_minus_L=yes
9116       export_dynamic_flag_spec='${wl}-E'
9117       ;;
9118
9119     hpux10*)
9120       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9121         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9122       else
9123         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9124       fi
9125       if test "$with_gnu_ld" = no; then
9126         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9127         hardcode_libdir_separator=:
9128
9129         hardcode_direct=yes
9130         export_dynamic_flag_spec='${wl}-E'
9131
9132         # hardcode_minus_L: Not really in the search PATH,
9133         # but as the default location of the library.
9134         hardcode_minus_L=yes
9135       fi
9136       ;;
9137
9138     hpux11*)
9139       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9140         case $host_cpu in
9141         hppa*64*)
9142           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9143           ;;
9144         ia64*)
9145           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9146           ;;
9147         *)
9148           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9149           ;;
9150         esac
9151       else
9152         case $host_cpu in
9153         hppa*64*)
9154           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9155           ;;
9156         ia64*)
9157           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9158           ;;
9159         *)
9160           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9161           ;;
9162         esac
9163       fi
9164       if test "$with_gnu_ld" = no; then
9165         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166         hardcode_libdir_separator=:
9167
9168         case $host_cpu in
9169         hppa*64*|ia64*)
9170           hardcode_libdir_flag_spec_ld='+b $libdir'
9171           hardcode_direct=no
9172           hardcode_shlibpath_var=no
9173           ;;
9174         *)
9175           hardcode_direct=yes
9176           export_dynamic_flag_spec='${wl}-E'
9177
9178           # hardcode_minus_L: Not really in the search PATH,
9179           # but as the default location of the library.
9180           hardcode_minus_L=yes
9181           ;;
9182         esac
9183       fi
9184       ;;
9185
9186     irix5* | irix6* | nonstopux*)
9187       if test "$GCC" = yes; then
9188         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'
9189       else
9190         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'
9191         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9192       fi
9193       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194       hardcode_libdir_separator=:
9195       link_all_deplibs=yes
9196       ;;
9197
9198     netbsd*)
9199       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9200         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9201       else
9202         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9203       fi
9204       hardcode_libdir_flag_spec='-R$libdir'
9205       hardcode_direct=yes
9206       hardcode_shlibpath_var=no
9207       ;;
9208
9209     newsos6)
9210       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9211       hardcode_direct=yes
9212       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9213       hardcode_libdir_separator=:
9214       hardcode_shlibpath_var=no
9215       ;;
9216
9217     openbsd*)
9218       if test -f /usr/libexec/ld.so; then
9219         hardcode_direct=yes
9220         hardcode_shlibpath_var=no
9221         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9222           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9223           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9224           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9225           export_dynamic_flag_spec='${wl}-E'
9226         else
9227           case $host_os in
9228            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9229              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9230              hardcode_libdir_flag_spec='-R$libdir'
9231              ;;
9232            *)
9233              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9234              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9235              ;;
9236           esac
9237         fi
9238       else
9239         ld_shlibs=no
9240       fi
9241       ;;
9242
9243     os2*)
9244       hardcode_libdir_flag_spec='-L$libdir'
9245       hardcode_minus_L=yes
9246       allow_undefined_flag=unsupported
9247       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'
9248       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9249       ;;
9250
9251     osf3*)
9252       if test "$GCC" = yes; then
9253         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9254         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'
9255       else
9256         allow_undefined_flag=' -expect_unresolved \*'
9257         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'
9258       fi
9259       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9260       hardcode_libdir_separator=:
9261       ;;
9262
9263     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9264       if test "$GCC" = yes; then
9265         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9266         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'
9267         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9268       else
9269         allow_undefined_flag=' -expect_unresolved \*'
9270         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'
9271         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9272         $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'
9273
9274         # Both c and cxx compiler support -rpath directly
9275         hardcode_libdir_flag_spec='-rpath $libdir'
9276       fi
9277       hardcode_libdir_separator=:
9278       ;;
9279
9280     solaris*)
9281       no_undefined_flag=' -z text'
9282       if test "$GCC" = yes; then
9283         wlarc='${wl}'
9284         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9285         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9286           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9287       else
9288         wlarc=''
9289         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9290         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9291         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9292       fi
9293       hardcode_libdir_flag_spec='-R$libdir'
9294       hardcode_shlibpath_var=no
9295       case $host_os in
9296       solaris2.[0-5] | solaris2.[0-5].*) ;;
9297       *)
9298         # The compiler driver will combine and reorder linker options,
9299         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9300         # but is careful enough not to reorder.
9301         # Supported since Solaris 2.6 (maybe 2.5.1?)
9302         if test "$GCC" = yes; then
9303           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9304         else
9305           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9306         fi
9307         ;;
9308       esac
9309       link_all_deplibs=yes
9310       ;;
9311
9312     sunos4*)
9313       if test "x$host_vendor" = xsequent; then
9314         # Use $CC to link under sequent, because it throws in some extra .o
9315         # files that make .init and .fini sections work.
9316         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9317       else
9318         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9319       fi
9320       hardcode_libdir_flag_spec='-L$libdir'
9321       hardcode_direct=yes
9322       hardcode_minus_L=yes
9323       hardcode_shlibpath_var=no
9324       ;;
9325
9326     sysv4)
9327       case $host_vendor in
9328         sni)
9329           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330           hardcode_direct=yes # is this really true???
9331         ;;
9332         siemens)
9333           ## LD is ld it makes a PLAMLIB
9334           ## CC just makes a GrossModule.
9335           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9336           reload_cmds='$CC -r -o $output$reload_objs'
9337           hardcode_direct=no
9338         ;;
9339         motorola)
9340           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9342         ;;
9343       esac
9344       runpath_var='LD_RUN_PATH'
9345       hardcode_shlibpath_var=no
9346       ;;
9347
9348     sysv4.3*)
9349       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350       hardcode_shlibpath_var=no
9351       export_dynamic_flag_spec='-Bexport'
9352       ;;
9353
9354     sysv4*MP*)
9355       if test -d /usr/nec; then
9356         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357         hardcode_shlibpath_var=no
9358         runpath_var=LD_RUN_PATH
9359         hardcode_runpath_var=yes
9360         ld_shlibs=yes
9361       fi
9362       ;;
9363
9364     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9365       no_undefined_flag='${wl}-z,text'
9366       archive_cmds_need_lc=no
9367       hardcode_shlibpath_var=no
9368       runpath_var='LD_RUN_PATH'
9369
9370       if test "$GCC" = yes; then
9371         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9372         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9373       else
9374         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9375         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9376       fi
9377       ;;
9378
9379     sysv5* | sco3.2v5* | sco5v6*)
9380       # Note: We can NOT use -z defs as we might desire, because we do not
9381       # link with -lc, and that would cause any symbols used from libc to
9382       # always be unresolved, which means just about no library would
9383       # ever link correctly.  If we're not using GNU ld we use -z text
9384       # though, which does catch some bad symbols but isn't as heavy-handed
9385       # as -z defs.
9386       no_undefined_flag='${wl}-z,text'
9387       allow_undefined_flag='${wl}-z,nodefs'
9388       archive_cmds_need_lc=no
9389       hardcode_shlibpath_var=no
9390       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9391       hardcode_libdir_separator=':'
9392       link_all_deplibs=yes
9393       export_dynamic_flag_spec='${wl}-Bexport'
9394       runpath_var='LD_RUN_PATH'
9395
9396       if test "$GCC" = yes; then
9397         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9399       else
9400         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9401         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402       fi
9403       ;;
9404
9405     uts4*)
9406       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407       hardcode_libdir_flag_spec='-L$libdir'
9408       hardcode_shlibpath_var=no
9409       ;;
9410
9411     *)
9412       ld_shlibs=no
9413       ;;
9414     esac
9415   fi
9416
9417 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9418 echo "${ECHO_T}$ld_shlibs" >&6; }
9419 test "$ld_shlibs" = no && can_build_shared=no
9420
9421 #
9422 # Do we need to explicitly link libc?
9423 #
9424 case "x$archive_cmds_need_lc" in
9425 x|xyes)
9426   # Assume -lc should be added
9427   archive_cmds_need_lc=yes
9428
9429   if test "$enable_shared" = yes && test "$GCC" = yes; then
9430     case $archive_cmds in
9431     *'~'*)
9432       # FIXME: we may have to deal with multi-command sequences.
9433       ;;
9434     '$CC '*)
9435       # Test whether the compiler implicitly links with -lc since on some
9436       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9437       # to ld, don't add -lc before -lgcc.
9438       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9439 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9440       $rm conftest*
9441       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9442
9443       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9444   (eval $ac_compile) 2>&5
9445   ac_status=$?
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); } 2>conftest.err; then
9448         soname=conftest
9449         lib=conftest
9450         libobjs=conftest.$ac_objext
9451         deplibs=
9452         wl=$lt_prog_compiler_wl
9453         pic_flag=$lt_prog_compiler_pic
9454         compiler_flags=-v
9455         linker_flags=-v
9456         verstring=
9457         output_objdir=.
9458         libname=conftest
9459         lt_save_allow_undefined_flag=$allow_undefined_flag
9460         allow_undefined_flag=
9461         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9462   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }
9466         then
9467           archive_cmds_need_lc=no
9468         else
9469           archive_cmds_need_lc=yes
9470         fi
9471         allow_undefined_flag=$lt_save_allow_undefined_flag
9472       else
9473         cat conftest.err 1>&5
9474       fi
9475       $rm conftest*
9476       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9477 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9478       ;;
9479     esac
9480   fi
9481   ;;
9482 esac
9483
9484 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9486 library_names_spec=
9487 libname_spec='lib$name'
9488 soname_spec=
9489 shrext_cmds=".so"
9490 postinstall_cmds=
9491 postuninstall_cmds=
9492 finish_cmds=
9493 finish_eval=
9494 shlibpath_var=
9495 shlibpath_overrides_runpath=unknown
9496 version_type=none
9497 dynamic_linker="$host_os ld.so"
9498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9499
9500 if test "$GCC" = yes; then
9501   case $host_os in
9502     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9503     *) lt_awk_arg="/^libraries:/" ;;
9504   esac
9505   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9506   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9507     # if the path contains ";" then we assume it to be the separator
9508     # otherwise default to the standard path separator (i.e. ":") - it is
9509     # assumed that no part of a normal pathname contains ";" but that should
9510     # okay in the real world where ";" in dirpaths is itself problematic.
9511     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9512   else
9513     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9514   fi
9515   # Ok, now we have the path, separated by spaces, we can step through it
9516   # and add multilib dir if necessary.
9517   lt_tmp_lt_search_path_spec=
9518   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9519   for lt_sys_path in $lt_search_path_spec; do
9520     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9521       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9522     else
9523       test -d "$lt_sys_path" && \
9524         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9525     fi
9526   done
9527   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9528 BEGIN {RS=" "; FS="/|\n";} {
9529   lt_foo="";
9530   lt_count=0;
9531   for (lt_i = NF; lt_i > 0; lt_i--) {
9532     if ($lt_i != "" && $lt_i != ".") {
9533       if ($lt_i == "..") {
9534         lt_count++;
9535       } else {
9536         if (lt_count == 0) {
9537           lt_foo="/" $lt_i lt_foo;
9538         } else {
9539           lt_count--;
9540         }
9541       }
9542     }
9543   }
9544   if (lt_foo != "") { lt_freq[lt_foo]++; }
9545   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9546 }'`
9547   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9548 else
9549   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9550 fi
9551 need_lib_prefix=no
9552 hardcode_into_libs=no
9553
9554 # when you set need_version to no, make sure it does not cause -set_version
9555 # flags to be left without arguments
9556 need_version=no
9557
9558 case $host_os in
9559 aix3*)
9560   version_type=linux
9561   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9562   shlibpath_var=LIBPATH
9563
9564   # AIX 3 has no versioning support, so we append a major version to the name.
9565   soname_spec='${libname}${release}${shared_ext}$major'
9566   ;;
9567
9568 aix[4-9]*)
9569   version_type=linux
9570   need_lib_prefix=no
9571   need_version=no
9572   hardcode_into_libs=yes
9573   if test "$host_cpu" = ia64; then
9574     # AIX 5 supports IA64
9575     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9576     shlibpath_var=LD_LIBRARY_PATH
9577   else
9578     # With GCC up to 2.95.x, collect2 would create an import file
9579     # for dependence libraries.  The import file would start with
9580     # the line `#! .'.  This would cause the generated library to
9581     # depend on `.', always an invalid library.  This was fixed in
9582     # development snapshots of GCC prior to 3.0.
9583     case $host_os in
9584       aix4 | aix4.[01] | aix4.[01].*)
9585       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9586            echo ' yes '
9587            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9588         :
9589       else
9590         can_build_shared=no
9591       fi
9592       ;;
9593     esac
9594     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9595     # soname into executable. Probably we can add versioning support to
9596     # collect2, so additional links can be useful in future.
9597     if test "$aix_use_runtimelinking" = yes; then
9598       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9599       # instead of lib<name>.a to let people know that these are not
9600       # typical AIX shared libraries.
9601       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602     else
9603       # We preserve .a as extension for shared libraries through AIX4.2
9604       # and later when we are not doing run time linking.
9605       library_names_spec='${libname}${release}.a $libname.a'
9606       soname_spec='${libname}${release}${shared_ext}$major'
9607     fi
9608     shlibpath_var=LIBPATH
9609   fi
9610   ;;
9611
9612 amigaos*)
9613   library_names_spec='$libname.ixlibrary $libname.a'
9614   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9615   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'
9616   ;;
9617
9618 beos*)
9619   library_names_spec='${libname}${shared_ext}'
9620   dynamic_linker="$host_os ld.so"
9621   shlibpath_var=LIBRARY_PATH
9622   ;;
9623
9624 bsdi[45]*)
9625   version_type=linux
9626   need_version=no
9627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9628   soname_spec='${libname}${release}${shared_ext}$major'
9629   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9630   shlibpath_var=LD_LIBRARY_PATH
9631   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9632   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9633   # the default ld.so.conf also contains /usr/contrib/lib and
9634   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9635   # libtool to hard-code these into programs
9636   ;;
9637
9638 cygwin* | mingw* | pw32*)
9639   version_type=windows
9640   shrext_cmds=".dll"
9641   need_version=no
9642   need_lib_prefix=no
9643
9644   case $GCC,$host_os in
9645   yes,cygwin* | yes,mingw* | yes,pw32*)
9646     library_names_spec='$libname.dll.a'
9647     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9648     postinstall_cmds='base_file=`basename \${file}`~
9649       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9650       dldir=$destdir/`dirname \$dlpath`~
9651       test -d \$dldir || mkdir -p \$dldir~
9652       $install_prog $dir/$dlname \$dldir/$dlname~
9653       chmod a+x \$dldir/$dlname'
9654     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9655       dlpath=$dir/\$dldll~
9656        $rm \$dlpath'
9657     shlibpath_overrides_runpath=yes
9658
9659     case $host_os in
9660     cygwin*)
9661       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9662       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9663       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9664       ;;
9665     mingw*)
9666       # MinGW DLLs use traditional 'lib' prefix
9667       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9668       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9669       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9670         # It is most probably a Windows format PATH printed by
9671         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9672         # path with ; separators, and with drive letters. We can handle the
9673         # drive letters (cygwin fileutils understands them), so leave them,
9674         # especially as we might pass files found there to a mingw objdump,
9675         # which wouldn't understand a cygwinified path. Ahh.
9676         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9677       else
9678         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9679       fi
9680       ;;
9681     pw32*)
9682       # pw32 DLLs use 'pw' prefix rather than 'lib'
9683       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9684       ;;
9685     esac
9686     ;;
9687
9688   *)
9689     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9690     ;;
9691   esac
9692   dynamic_linker='Win32 ld.exe'
9693   # FIXME: first we should search . and the directory the executable is in
9694   shlibpath_var=PATH
9695   ;;
9696
9697 darwin* | rhapsody*)
9698   dynamic_linker="$host_os dyld"
9699   version_type=darwin
9700   need_lib_prefix=no
9701   need_version=no
9702   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9703   soname_spec='${libname}${release}${major}$shared_ext'
9704   shlibpath_overrides_runpath=yes
9705   shlibpath_var=DYLD_LIBRARY_PATH
9706   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9707
9708   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9709   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9710   ;;
9711
9712 dgux*)
9713   version_type=linux
9714   need_lib_prefix=no
9715   need_version=no
9716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9717   soname_spec='${libname}${release}${shared_ext}$major'
9718   shlibpath_var=LD_LIBRARY_PATH
9719   ;;
9720
9721 freebsd1*)
9722   dynamic_linker=no
9723   ;;
9724
9725 freebsd* | dragonfly*)
9726   # DragonFly does not have aout.  When/if they implement a new
9727   # versioning mechanism, adjust this.
9728   if test -x /usr/bin/objformat; then
9729     objformat=`/usr/bin/objformat`
9730   else
9731     case $host_os in
9732     freebsd[123]*) objformat=aout ;;
9733     *) objformat=elf ;;
9734     esac
9735   fi
9736   version_type=freebsd-$objformat
9737   case $version_type in
9738     freebsd-elf*)
9739       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9740       need_version=no
9741       need_lib_prefix=no
9742       ;;
9743     freebsd-*)
9744       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9745       need_version=no
9746       ;;
9747   esac
9748   shlibpath_var=LD_LIBRARY_PATH
9749   case $host_os in
9750   freebsd2*)
9751     shlibpath_overrides_runpath=yes
9752     ;;
9753   freebsd3.[01]* | freebsdelf3.[01]*)
9754     shlibpath_overrides_runpath=yes
9755     hardcode_into_libs=yes
9756     ;;
9757   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9758   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9759     shlibpath_overrides_runpath=no
9760     hardcode_into_libs=yes
9761     ;;
9762   *) # from 4.6 on, and DragonFly
9763     shlibpath_overrides_runpath=yes
9764     hardcode_into_libs=yes
9765     ;;
9766   esac
9767   ;;
9768
9769 gnu*)
9770   version_type=linux
9771   need_lib_prefix=no
9772   need_version=no
9773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9774   soname_spec='${libname}${release}${shared_ext}$major'
9775   shlibpath_var=LD_LIBRARY_PATH
9776   hardcode_into_libs=yes
9777   ;;
9778
9779 hpux9* | hpux10* | hpux11*)
9780   # Give a soname corresponding to the major version so that dld.sl refuses to
9781   # link against other versions.
9782   version_type=sunos
9783   need_lib_prefix=no
9784   need_version=no
9785   case $host_cpu in
9786   ia64*)
9787     shrext_cmds='.so'
9788     hardcode_into_libs=yes
9789     dynamic_linker="$host_os dld.so"
9790     shlibpath_var=LD_LIBRARY_PATH
9791     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793     soname_spec='${libname}${release}${shared_ext}$major'
9794     if test "X$HPUX_IA64_MODE" = X32; then
9795       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9796     else
9797       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9798     fi
9799     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9800     ;;
9801    hppa*64*)
9802      shrext_cmds='.sl'
9803      hardcode_into_libs=yes
9804      dynamic_linker="$host_os dld.sl"
9805      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9806      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9807      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808      soname_spec='${libname}${release}${shared_ext}$major'
9809      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9810      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9811      ;;
9812    *)
9813     shrext_cmds='.sl'
9814     dynamic_linker="$host_os dld.sl"
9815     shlibpath_var=SHLIB_PATH
9816     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818     soname_spec='${libname}${release}${shared_ext}$major'
9819     ;;
9820   esac
9821   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9822   postinstall_cmds='chmod 555 $lib'
9823   ;;
9824
9825 interix[3-9]*)
9826   version_type=linux
9827   need_lib_prefix=no
9828   need_version=no
9829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9830   soname_spec='${libname}${release}${shared_ext}$major'
9831   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9832   shlibpath_var=LD_LIBRARY_PATH
9833   shlibpath_overrides_runpath=no
9834   hardcode_into_libs=yes
9835   ;;
9836
9837 irix5* | irix6* | nonstopux*)
9838   case $host_os in
9839     nonstopux*) version_type=nonstopux ;;
9840     *)
9841         if test "$lt_cv_prog_gnu_ld" = yes; then
9842                 version_type=linux
9843         else
9844                 version_type=irix
9845         fi ;;
9846   esac
9847   need_lib_prefix=no
9848   need_version=no
9849   soname_spec='${libname}${release}${shared_ext}$major'
9850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9851   case $host_os in
9852   irix5* | nonstopux*)
9853     libsuff= shlibsuff=
9854     ;;
9855   *)
9856     case $LD in # libtool.m4 will add one of these switches to LD
9857     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9858       libsuff= shlibsuff= libmagic=32-bit;;
9859     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9860       libsuff=32 shlibsuff=N32 libmagic=N32;;
9861     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9862       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9863     *) libsuff= shlibsuff= libmagic=never-match;;
9864     esac
9865     ;;
9866   esac
9867   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9868   shlibpath_overrides_runpath=no
9869   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9870   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9871   hardcode_into_libs=yes
9872   ;;
9873
9874 # No shared lib support for Linux oldld, aout, or coff.
9875 linux*oldld* | linux*aout* | linux*coff*)
9876   dynamic_linker=no
9877   ;;
9878
9879 # This must be Linux ELF.
9880 linux* | k*bsd*-gnu)
9881   version_type=linux
9882   need_lib_prefix=no
9883   need_version=no
9884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885   soname_spec='${libname}${release}${shared_ext}$major'
9886   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9887   shlibpath_var=LD_LIBRARY_PATH
9888   shlibpath_overrides_runpath=no
9889   # This implies no fast_install, which is unacceptable.
9890   # Some rework will be needed to allow for fast_install
9891   # before this can be enabled.
9892   hardcode_into_libs=yes
9893
9894   # Append ld.so.conf contents to the search path
9895   if test -f /etc/ld.so.conf; then
9896     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' ' '`
9897     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9898   fi
9899
9900   # We used to test for /lib/ld.so.1 and disable shared libraries on
9901   # powerpc, because MkLinux only supported shared libraries with the
9902   # GNU dynamic linker.  Since this was broken with cross compilers,
9903   # most powerpc-linux boxes support dynamic linking these days and
9904   # people can always --disable-shared, the test was removed, and we
9905   # assume the GNU/Linux dynamic linker is in use.
9906   dynamic_linker='GNU/Linux ld.so'
9907   ;;
9908
9909 netbsd*)
9910   version_type=sunos
9911   need_lib_prefix=no
9912   need_version=no
9913   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9915     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9916     dynamic_linker='NetBSD (a.out) ld.so'
9917   else
9918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9919     soname_spec='${libname}${release}${shared_ext}$major'
9920     dynamic_linker='NetBSD ld.elf_so'
9921   fi
9922   shlibpath_var=LD_LIBRARY_PATH
9923   shlibpath_overrides_runpath=yes
9924   hardcode_into_libs=yes
9925   ;;
9926
9927 newsos6)
9928   version_type=linux
9929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930   shlibpath_var=LD_LIBRARY_PATH
9931   shlibpath_overrides_runpath=yes
9932   ;;
9933
9934 nto-qnx*)
9935   version_type=linux
9936   need_lib_prefix=no
9937   need_version=no
9938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939   soname_spec='${libname}${release}${shared_ext}$major'
9940   shlibpath_var=LD_LIBRARY_PATH
9941   shlibpath_overrides_runpath=yes
9942   ;;
9943
9944 openbsd*)
9945   version_type=sunos
9946   sys_lib_dlsearch_path_spec="/usr/lib"
9947   need_lib_prefix=no
9948   need_version=no
9949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9950   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9951   shlibpath_var=LD_LIBRARY_PATH
9952   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9953     case $host_os in
9954       openbsd2.[89] | openbsd2.[89].*)
9955         shlibpath_overrides_runpath=no
9956         ;;
9957       *)
9958         shlibpath_overrides_runpath=yes
9959         ;;
9960       esac
9961   else
9962     shlibpath_overrides_runpath=yes
9963   fi
9964   ;;
9965
9966 os2*)
9967   libname_spec='$name'
9968   shrext_cmds=".dll"
9969   need_lib_prefix=no
9970   library_names_spec='$libname${shared_ext} $libname.a'
9971   dynamic_linker='OS/2 ld.exe'
9972   shlibpath_var=LIBPATH
9973   ;;
9974
9975 osf3* | osf4* | osf5*)
9976   version_type=osf
9977   need_lib_prefix=no
9978   need_version=no
9979   soname_spec='${libname}${release}${shared_ext}$major'
9980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981   shlibpath_var=LD_LIBRARY_PATH
9982   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9983   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9984   ;;
9985
9986 rdos*)
9987   dynamic_linker=no
9988   ;;
9989
9990 solaris*)
9991   version_type=linux
9992   need_lib_prefix=no
9993   need_version=no
9994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995   soname_spec='${libname}${release}${shared_ext}$major'
9996   shlibpath_var=LD_LIBRARY_PATH
9997   shlibpath_overrides_runpath=yes
9998   hardcode_into_libs=yes
9999   # ldd complains unless libraries are executable
10000   postinstall_cmds='chmod +x $lib'
10001   ;;
10002
10003 sunos4*)
10004   version_type=sunos
10005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10006   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10007   shlibpath_var=LD_LIBRARY_PATH
10008   shlibpath_overrides_runpath=yes
10009   if test "$with_gnu_ld" = yes; then
10010     need_lib_prefix=no
10011   fi
10012   need_version=no
10013   ;;
10014
10015 sysv4 | sysv4.3*)
10016   version_type=linux
10017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018   soname_spec='${libname}${release}${shared_ext}$major'
10019   shlibpath_var=LD_LIBRARY_PATH
10020   case $host_vendor in
10021     sni)
10022       shlibpath_overrides_runpath=no
10023       need_lib_prefix=no
10024       export_dynamic_flag_spec='${wl}-Blargedynsym'
10025       runpath_var=LD_RUN_PATH
10026       ;;
10027     siemens)
10028       need_lib_prefix=no
10029       ;;
10030     motorola)
10031       need_lib_prefix=no
10032       need_version=no
10033       shlibpath_overrides_runpath=no
10034       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10035       ;;
10036   esac
10037   ;;
10038
10039 sysv4*MP*)
10040   if test -d /usr/nec ;then
10041     version_type=linux
10042     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10043     soname_spec='$libname${shared_ext}.$major'
10044     shlibpath_var=LD_LIBRARY_PATH
10045   fi
10046   ;;
10047
10048 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10049   version_type=freebsd-elf
10050   need_lib_prefix=no
10051   need_version=no
10052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10053   soname_spec='${libname}${release}${shared_ext}$major'
10054   shlibpath_var=LD_LIBRARY_PATH
10055   hardcode_into_libs=yes
10056   if test "$with_gnu_ld" = yes; then
10057     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10058     shlibpath_overrides_runpath=no
10059   else
10060     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10061     shlibpath_overrides_runpath=yes
10062     case $host_os in
10063       sco3.2v5*)
10064         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10065         ;;
10066     esac
10067   fi
10068   sys_lib_dlsearch_path_spec='/usr/lib'
10069   ;;
10070
10071 uts4*)
10072   version_type=linux
10073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074   soname_spec='${libname}${release}${shared_ext}$major'
10075   shlibpath_var=LD_LIBRARY_PATH
10076   ;;
10077
10078 *)
10079   dynamic_linker=no
10080   ;;
10081 esac
10082 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10083 echo "${ECHO_T}$dynamic_linker" >&6; }
10084 test "$dynamic_linker" = no && can_build_shared=no
10085
10086 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10087   echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10090 fi
10091
10092 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10093 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10094   echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10097 fi
10098
10099 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10100
10101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10102 if test "$GCC" = yes; then
10103   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10104 fi
10105
10106 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10107 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10108 hardcode_action=
10109 if test -n "$hardcode_libdir_flag_spec" || \
10110    test -n "$runpath_var" || \
10111    test "X$hardcode_automatic" = "Xyes" ; then
10112
10113   # We can hardcode non-existent directories.
10114   if test "$hardcode_direct" != no &&
10115      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10116      # have to relink, otherwise we might link with an installed library
10117      # when we should be linking with a yet-to-be-installed one
10118      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10119      test "$hardcode_minus_L" != no; then
10120     # Linking always hardcodes the temporary library directory.
10121     hardcode_action=relink
10122   else
10123     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10124     hardcode_action=immediate
10125   fi
10126 else
10127   # We cannot hardcode anything, or else we can only hardcode existing
10128   # directories.
10129   hardcode_action=unsupported
10130 fi
10131 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10132 echo "${ECHO_T}$hardcode_action" >&6; }
10133
10134 if test "$hardcode_action" = relink; then
10135   # Fast installation is not supported
10136   enable_fast_install=no
10137 elif test "$shlibpath_overrides_runpath" = yes ||
10138      test "$enable_shared" = no; then
10139   # Fast installation is not necessary
10140   enable_fast_install=needless
10141 fi
10142
10143 striplib=
10144 old_striplib=
10145 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10146 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10147 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10148   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10149   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10150   { echo "$as_me:$LINENO: result: yes" >&5
10151 echo "${ECHO_T}yes" >&6; }
10152 else
10153 # FIXME - insert some real tests, host_os isn't really good enough
10154   case $host_os in
10155    darwin*)
10156        if test -n "$STRIP" ; then
10157          striplib="$STRIP -x"
10158          old_striplib="$STRIP -S"
10159          { echo "$as_me:$LINENO: result: yes" >&5
10160 echo "${ECHO_T}yes" >&6; }
10161        else
10162   { echo "$as_me:$LINENO: result: no" >&5
10163 echo "${ECHO_T}no" >&6; }
10164 fi
10165        ;;
10166    *)
10167   { echo "$as_me:$LINENO: result: no" >&5
10168 echo "${ECHO_T}no" >&6; }
10169     ;;
10170   esac
10171 fi
10172
10173 if test "x$enable_dlopen" != xyes; then
10174   enable_dlopen=unknown
10175   enable_dlopen_self=unknown
10176   enable_dlopen_self_static=unknown
10177 else
10178   lt_cv_dlopen=no
10179   lt_cv_dlopen_libs=
10180
10181   case $host_os in
10182   beos*)
10183     lt_cv_dlopen="load_add_on"
10184     lt_cv_dlopen_libs=
10185     lt_cv_dlopen_self=yes
10186     ;;
10187
10188   mingw* | pw32*)
10189     lt_cv_dlopen="LoadLibrary"
10190     lt_cv_dlopen_libs=
10191    ;;
10192
10193   cygwin*)
10194     lt_cv_dlopen="dlopen"
10195     lt_cv_dlopen_libs=
10196    ;;
10197
10198   darwin*)
10199   # if libdl is installed we need to link against it
10200     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10201 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10202 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   ac_check_lib_save_LIBS=$LIBS
10206 LIBS="-ldl  $LIBS"
10207 cat >conftest.$ac_ext <<_ACEOF
10208 /* confdefs.h.  */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h.  */
10213
10214 /* Override any GCC internal prototype to avoid an error.
10215    Use char because int might match the return type of a GCC
10216    builtin and then its argument prototype would still apply.  */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 char dlopen ();
10221 int
10222 main ()
10223 {
10224 return dlopen ();
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233   *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236   (eval "$ac_link") 2>conftest.er1
10237   ac_status=$?
10238   grep -v '^ *+' conftest.er1 >conftest.err
10239   rm -f conftest.er1
10240   cat conftest.err >&5
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } && {
10243          test -z "$ac_c_werror_flag" ||
10244          test ! -s conftest.err
10245        } && test -s conftest$ac_exeext &&
10246        $as_test_x conftest$ac_exeext; then
10247   ac_cv_lib_dl_dlopen=yes
10248 else
10249   echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10251
10252         ac_cv_lib_dl_dlopen=no
10253 fi
10254
10255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10256       conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10258 fi
10259 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10260 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10261 if test $ac_cv_lib_dl_dlopen = yes; then
10262   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10263 else
10264
10265     lt_cv_dlopen="dyld"
10266     lt_cv_dlopen_libs=
10267     lt_cv_dlopen_self=yes
10268
10269 fi
10270
10271    ;;
10272
10273   *)
10274     { echo "$as_me:$LINENO: checking for shl_load" >&5
10275 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10276 if test "${ac_cv_func_shl_load+set}" = set; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10287 #define shl_load innocuous_shl_load
10288
10289 /* System header to define __stub macros and hopefully few prototypes,
10290     which can conflict with char shl_load (); below.
10291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10292     <limits.h> exists even on freestanding compilers.  */
10293
10294 #ifdef __STDC__
10295 # include <limits.h>
10296 #else
10297 # include <assert.h>
10298 #endif
10299
10300 #undef shl_load
10301
10302 /* Override any GCC internal prototype to avoid an error.
10303    Use char because int might match the return type of a GCC
10304    builtin and then its argument prototype would still apply.  */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 char shl_load ();
10309 /* The GNU C library defines this for functions which it implements
10310     to always fail with ENOSYS.  Some functions are actually named
10311     something starting with __ and the normal name is an alias.  */
10312 #if defined __stub_shl_load || defined __stub___shl_load
10313 choke me
10314 #endif
10315
10316 int
10317 main ()
10318 {
10319 return shl_load ();
10320   ;
10321   return 0;
10322 }
10323 _ACEOF
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (ac_try="$ac_link"
10326 case "(($ac_try" in
10327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328   *) ac_try_echo=$ac_try;;
10329 esac
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331   (eval "$ac_link") 2>conftest.er1
10332   ac_status=$?
10333   grep -v '^ *+' conftest.er1 >conftest.err
10334   rm -f conftest.er1
10335   cat conftest.err >&5
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); } && {
10338          test -z "$ac_c_werror_flag" ||
10339          test ! -s conftest.err
10340        } && test -s conftest$ac_exeext &&
10341        $as_test_x conftest$ac_exeext; then
10342   ac_cv_func_shl_load=yes
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347         ac_cv_func_shl_load=no
10348 fi
10349
10350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10351       conftest$ac_exeext conftest.$ac_ext
10352 fi
10353 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10354 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10355 if test $ac_cv_func_shl_load = yes; then
10356   lt_cv_dlopen="shl_load"
10357 else
10358   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10359 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10360 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10361   echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363   ac_check_lib_save_LIBS=$LIBS
10364 LIBS="-ldld  $LIBS"
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h.  */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h.  */
10371
10372 /* Override any GCC internal prototype to avoid an error.
10373    Use char because int might match the return type of a GCC
10374    builtin and then its argument prototype would still apply.  */
10375 #ifdef __cplusplus
10376 extern "C"
10377 #endif
10378 char shl_load ();
10379 int
10380 main ()
10381 {
10382 return shl_load ();
10383   ;
10384   return 0;
10385 }
10386 _ACEOF
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (ac_try="$ac_link"
10389 case "(($ac_try" in
10390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391   *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394   (eval "$ac_link") 2>conftest.er1
10395   ac_status=$?
10396   grep -v '^ *+' conftest.er1 >conftest.err
10397   rm -f conftest.er1
10398   cat conftest.err >&5
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); } && {
10401          test -z "$ac_c_werror_flag" ||
10402          test ! -s conftest.err
10403        } && test -s conftest$ac_exeext &&
10404        $as_test_x conftest$ac_exeext; then
10405   ac_cv_lib_dld_shl_load=yes
10406 else
10407   echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410         ac_cv_lib_dld_shl_load=no
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10414       conftest$ac_exeext conftest.$ac_ext
10415 LIBS=$ac_check_lib_save_LIBS
10416 fi
10417 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10418 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10419 if test $ac_cv_lib_dld_shl_load = yes; then
10420   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10421 else
10422   { echo "$as_me:$LINENO: checking for dlopen" >&5
10423 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10424 if test "${ac_cv_func_dlopen+set}" = set; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427   cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h.  */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h.  */
10433 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10435 #define dlopen innocuous_dlopen
10436
10437 /* System header to define __stub macros and hopefully few prototypes,
10438     which can conflict with char dlopen (); below.
10439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10440     <limits.h> exists even on freestanding compilers.  */
10441
10442 #ifdef __STDC__
10443 # include <limits.h>
10444 #else
10445 # include <assert.h>
10446 #endif
10447
10448 #undef dlopen
10449
10450 /* Override any GCC internal prototype to avoid an error.
10451    Use char because int might match the return type of a GCC
10452    builtin and then its argument prototype would still apply.  */
10453 #ifdef __cplusplus
10454 extern "C"
10455 #endif
10456 char dlopen ();
10457 /* The GNU C library defines this for functions which it implements
10458     to always fail with ENOSYS.  Some functions are actually named
10459     something starting with __ and the normal name is an alias.  */
10460 #if defined __stub_dlopen || defined __stub___dlopen
10461 choke me
10462 #endif
10463
10464 int
10465 main ()
10466 {
10467 return dlopen ();
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (ac_try="$ac_link"
10474 case "(($ac_try" in
10475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476   *) ac_try_echo=$ac_try;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479   (eval "$ac_link") 2>conftest.er1
10480   ac_status=$?
10481   grep -v '^ *+' conftest.er1 >conftest.err
10482   rm -f conftest.er1
10483   cat conftest.err >&5
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } && {
10486          test -z "$ac_c_werror_flag" ||
10487          test ! -s conftest.err
10488        } && test -s conftest$ac_exeext &&
10489        $as_test_x conftest$ac_exeext; then
10490   ac_cv_func_dlopen=yes
10491 else
10492   echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495         ac_cv_func_dlopen=no
10496 fi
10497
10498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10499       conftest$ac_exeext conftest.$ac_ext
10500 fi
10501 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10502 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10503 if test $ac_cv_func_dlopen = yes; then
10504   lt_cv_dlopen="dlopen"
10505 else
10506   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10507 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10508 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10509   echo $ECHO_N "(cached) $ECHO_C" >&6
10510 else
10511   ac_check_lib_save_LIBS=$LIBS
10512 LIBS="-ldl  $LIBS"
10513 cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h.  */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h.  */
10519
10520 /* Override any GCC internal prototype to avoid an error.
10521    Use char because int might match the return type of a GCC
10522    builtin and then its argument prototype would still apply.  */
10523 #ifdef __cplusplus
10524 extern "C"
10525 #endif
10526 char dlopen ();
10527 int
10528 main ()
10529 {
10530 return dlopen ();
10531   ;
10532   return 0;
10533 }
10534 _ACEOF
10535 rm -f conftest.$ac_objext conftest$ac_exeext
10536 if { (ac_try="$ac_link"
10537 case "(($ac_try" in
10538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539   *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542   (eval "$ac_link") 2>conftest.er1
10543   ac_status=$?
10544   grep -v '^ *+' conftest.er1 >conftest.err
10545   rm -f conftest.er1
10546   cat conftest.err >&5
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); } && {
10549          test -z "$ac_c_werror_flag" ||
10550          test ! -s conftest.err
10551        } && test -s conftest$ac_exeext &&
10552        $as_test_x conftest$ac_exeext; then
10553   ac_cv_lib_dl_dlopen=yes
10554 else
10555   echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10557
10558         ac_cv_lib_dl_dlopen=no
10559 fi
10560
10561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562       conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10564 fi
10565 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10566 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10567 if test $ac_cv_lib_dl_dlopen = yes; then
10568   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10569 else
10570   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10571 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10572 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575   ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-lsvld  $LIBS"
10577 cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h.  */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h.  */
10583
10584 /* Override any GCC internal prototype to avoid an error.
10585    Use char because int might match the return type of a GCC
10586    builtin and then its argument prototype would still apply.  */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 char dlopen ();
10591 int
10592 main ()
10593 {
10594 return dlopen ();
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603   *) ac_try_echo=$ac_try;;
10604 esac
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606   (eval "$ac_link") 2>conftest.er1
10607   ac_status=$?
10608   grep -v '^ *+' conftest.er1 >conftest.err
10609   rm -f conftest.er1
10610   cat conftest.err >&5
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } && {
10613          test -z "$ac_c_werror_flag" ||
10614          test ! -s conftest.err
10615        } && test -s conftest$ac_exeext &&
10616        $as_test_x conftest$ac_exeext; then
10617   ac_cv_lib_svld_dlopen=yes
10618 else
10619   echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622         ac_cv_lib_svld_dlopen=no
10623 fi
10624
10625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626       conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10628 fi
10629 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10630 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10631 if test $ac_cv_lib_svld_dlopen = yes; then
10632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10633 else
10634   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10635 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10636 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10637   echo $ECHO_N "(cached) $ECHO_C" >&6
10638 else
10639   ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-ldld  $LIBS"
10641 cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h.  */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h.  */
10647
10648 /* Override any GCC internal prototype to avoid an error.
10649    Use char because int might match the return type of a GCC
10650    builtin and then its argument prototype would still apply.  */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 char dld_link ();
10655 int
10656 main ()
10657 {
10658 return dld_link ();
10659   ;
10660   return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (ac_try="$ac_link"
10665 case "(($ac_try" in
10666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667   *) ac_try_echo=$ac_try;;
10668 esac
10669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670   (eval "$ac_link") 2>conftest.er1
10671   ac_status=$?
10672   grep -v '^ *+' conftest.er1 >conftest.err
10673   rm -f conftest.er1
10674   cat conftest.err >&5
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); } && {
10677          test -z "$ac_c_werror_flag" ||
10678          test ! -s conftest.err
10679        } && test -s conftest$ac_exeext &&
10680        $as_test_x conftest$ac_exeext; then
10681   ac_cv_lib_dld_dld_link=yes
10682 else
10683   echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686         ac_cv_lib_dld_dld_link=no
10687 fi
10688
10689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10690       conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10692 fi
10693 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10694 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10695 if test $ac_cv_lib_dld_dld_link = yes; then
10696   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10697 fi
10698
10699
10700 fi
10701
10702
10703 fi
10704
10705
10706 fi
10707
10708
10709 fi
10710
10711
10712 fi
10713
10714     ;;
10715   esac
10716
10717   if test "x$lt_cv_dlopen" != xno; then
10718     enable_dlopen=yes
10719   else
10720     enable_dlopen=no
10721   fi
10722
10723   case $lt_cv_dlopen in
10724   dlopen)
10725     save_CPPFLAGS="$CPPFLAGS"
10726     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10727
10728     save_LDFLAGS="$LDFLAGS"
10729     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10730
10731     save_LIBS="$LIBS"
10732     LIBS="$lt_cv_dlopen_libs $LIBS"
10733
10734     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10735 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10736 if test "${lt_cv_dlopen_self+set}" = set; then
10737   echo $ECHO_N "(cached) $ECHO_C" >&6
10738 else
10739           if test "$cross_compiling" = yes; then :
10740   lt_cv_dlopen_self=cross
10741 else
10742   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10743   lt_status=$lt_dlunknown
10744   cat > conftest.$ac_ext <<EOF
10745 #line 10745 "configure"
10746 #include "confdefs.h"
10747
10748 #if HAVE_DLFCN_H
10749 #include <dlfcn.h>
10750 #endif
10751
10752 #include <stdio.h>
10753
10754 #ifdef RTLD_GLOBAL
10755 #  define LT_DLGLOBAL           RTLD_GLOBAL
10756 #else
10757 #  ifdef DL_GLOBAL
10758 #    define LT_DLGLOBAL         DL_GLOBAL
10759 #  else
10760 #    define LT_DLGLOBAL         0
10761 #  endif
10762 #endif
10763
10764 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10765    find out it does not work in some platform. */
10766 #ifndef LT_DLLAZY_OR_NOW
10767 #  ifdef RTLD_LAZY
10768 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10769 #  else
10770 #    ifdef DL_LAZY
10771 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10772 #    else
10773 #      ifdef RTLD_NOW
10774 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10775 #      else
10776 #        ifdef DL_NOW
10777 #          define LT_DLLAZY_OR_NOW      DL_NOW
10778 #        else
10779 #          define LT_DLLAZY_OR_NOW      0
10780 #        endif
10781 #      endif
10782 #    endif
10783 #  endif
10784 #endif
10785
10786 #ifdef __cplusplus
10787 extern "C" void exit (int);
10788 #endif
10789
10790 void fnord() { int i=42;}
10791 int main ()
10792 {
10793   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10794   int status = $lt_dlunknown;
10795
10796   if (self)
10797     {
10798       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10799       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10800       /* dlclose (self); */
10801     }
10802   else
10803     puts (dlerror ());
10804
10805     exit (status);
10806 }
10807 EOF
10808   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10809   (eval $ac_link) 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10813     (./conftest; exit; ) >&5 2>/dev/null
10814     lt_status=$?
10815     case x$lt_status in
10816       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10817       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10818       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10819     esac
10820   else :
10821     # compilation failed
10822     lt_cv_dlopen_self=no
10823   fi
10824 fi
10825 rm -fr conftest*
10826
10827
10828 fi
10829 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10830 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10831
10832     if test "x$lt_cv_dlopen_self" = xyes; then
10833       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10834       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10835 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10836 if test "${lt_cv_dlopen_self_static+set}" = set; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839           if test "$cross_compiling" = yes; then :
10840   lt_cv_dlopen_self_static=cross
10841 else
10842   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10843   lt_status=$lt_dlunknown
10844   cat > conftest.$ac_ext <<EOF
10845 #line 10845 "configure"
10846 #include "confdefs.h"
10847
10848 #if HAVE_DLFCN_H
10849 #include <dlfcn.h>
10850 #endif
10851
10852 #include <stdio.h>
10853
10854 #ifdef RTLD_GLOBAL
10855 #  define LT_DLGLOBAL           RTLD_GLOBAL
10856 #else
10857 #  ifdef DL_GLOBAL
10858 #    define LT_DLGLOBAL         DL_GLOBAL
10859 #  else
10860 #    define LT_DLGLOBAL         0
10861 #  endif
10862 #endif
10863
10864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10865    find out it does not work in some platform. */
10866 #ifndef LT_DLLAZY_OR_NOW
10867 #  ifdef RTLD_LAZY
10868 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10869 #  else
10870 #    ifdef DL_LAZY
10871 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10872 #    else
10873 #      ifdef RTLD_NOW
10874 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10875 #      else
10876 #        ifdef DL_NOW
10877 #          define LT_DLLAZY_OR_NOW      DL_NOW
10878 #        else
10879 #          define LT_DLLAZY_OR_NOW      0
10880 #        endif
10881 #      endif
10882 #    endif
10883 #  endif
10884 #endif
10885
10886 #ifdef __cplusplus
10887 extern "C" void exit (int);
10888 #endif
10889
10890 void fnord() { int i=42;}
10891 int main ()
10892 {
10893   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10894   int status = $lt_dlunknown;
10895
10896   if (self)
10897     {
10898       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10899       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10900       /* dlclose (self); */
10901     }
10902   else
10903     puts (dlerror ());
10904
10905     exit (status);
10906 }
10907 EOF
10908   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909   (eval $ac_link) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10913     (./conftest; exit; ) >&5 2>/dev/null
10914     lt_status=$?
10915     case x$lt_status in
10916       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10917       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10918       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10919     esac
10920   else :
10921     # compilation failed
10922     lt_cv_dlopen_self_static=no
10923   fi
10924 fi
10925 rm -fr conftest*
10926
10927
10928 fi
10929 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10930 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10931     fi
10932
10933     CPPFLAGS="$save_CPPFLAGS"
10934     LDFLAGS="$save_LDFLAGS"
10935     LIBS="$save_LIBS"
10936     ;;
10937   esac
10938
10939   case $lt_cv_dlopen_self in
10940   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10941   *) enable_dlopen_self=unknown ;;
10942   esac
10943
10944   case $lt_cv_dlopen_self_static in
10945   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10946   *) enable_dlopen_self_static=unknown ;;
10947   esac
10948 fi
10949
10950
10951 # Report which library types will actually be built
10952 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10953 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10954 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10955 echo "${ECHO_T}$can_build_shared" >&6; }
10956
10957 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10958 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10959 test "$can_build_shared" = "no" && enable_shared=no
10960
10961 # On AIX, shared libraries and static libraries use the same namespace, and
10962 # are all built from PIC.
10963 case $host_os in
10964 aix3*)
10965   test "$enable_shared" = yes && enable_static=no
10966   if test -n "$RANLIB"; then
10967     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10968     postinstall_cmds='$RANLIB $lib'
10969   fi
10970   ;;
10971
10972 aix[4-9]*)
10973   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10974     test "$enable_shared" = yes && enable_static=no
10975   fi
10976     ;;
10977 esac
10978 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10979 echo "${ECHO_T}$enable_shared" >&6; }
10980
10981 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10982 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10983 # Make sure either enable_shared or enable_static is yes.
10984 test "$enable_shared" = yes || enable_static=yes
10985 { echo "$as_me:$LINENO: result: $enable_static" >&5
10986 echo "${ECHO_T}$enable_static" >&6; }
10987
10988 # The else clause should only fire when bootstrapping the
10989 # libtool distribution, otherwise you forgot to ship ltmain.sh
10990 # with your package, and you will get complaints that there are
10991 # no rules to generate ltmain.sh.
10992 if test -f "$ltmain"; then
10993   # See if we are running on zsh, and set the options which allow our commands through
10994   # without removal of \ escapes.
10995   if test -n "${ZSH_VERSION+set}" ; then
10996     setopt NO_GLOB_SUBST
10997   fi
10998   # Now quote all the things that may contain metacharacters while being
10999   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11000   # variables and quote the copies for generation of the libtool script.
11001   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11002     SED SHELL STRIP \
11003     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11004     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11005     deplibs_check_method reload_flag reload_cmds need_locks \
11006     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11007     lt_cv_sys_global_symbol_to_c_name_address \
11008     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11009     old_postinstall_cmds old_postuninstall_cmds \
11010     compiler \
11011     CC \
11012     LD \
11013     lt_prog_compiler_wl \
11014     lt_prog_compiler_pic \
11015     lt_prog_compiler_static \
11016     lt_prog_compiler_no_builtin_flag \
11017     export_dynamic_flag_spec \
11018     thread_safe_flag_spec \
11019     whole_archive_flag_spec \
11020     enable_shared_with_static_runtimes \
11021     old_archive_cmds \
11022     old_archive_from_new_cmds \
11023     predep_objects \
11024     postdep_objects \
11025     predeps \
11026     postdeps \
11027     compiler_lib_search_path \
11028     compiler_lib_search_dirs \
11029     archive_cmds \
11030     archive_expsym_cmds \
11031     postinstall_cmds \
11032     postuninstall_cmds \
11033     old_archive_from_expsyms_cmds \
11034     allow_undefined_flag \
11035     no_undefined_flag \
11036     export_symbols_cmds \
11037     hardcode_libdir_flag_spec \
11038     hardcode_libdir_flag_spec_ld \
11039     hardcode_libdir_separator \
11040     hardcode_automatic \
11041     module_cmds \
11042     module_expsym_cmds \
11043     lt_cv_prog_compiler_c_o \
11044     fix_srcfile_path \
11045     exclude_expsyms \
11046     include_expsyms; do
11047
11048     case $var in
11049     old_archive_cmds | \
11050     old_archive_from_new_cmds | \
11051     archive_cmds | \
11052     archive_expsym_cmds | \
11053     module_cmds | \
11054     module_expsym_cmds | \
11055     old_archive_from_expsyms_cmds | \
11056     export_symbols_cmds | \
11057     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11058     postinstall_cmds | postuninstall_cmds | \
11059     old_postinstall_cmds | old_postuninstall_cmds | \
11060     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11061       # Double-quote double-evaled strings.
11062       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11063       ;;
11064     *)
11065       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11066       ;;
11067     esac
11068   done
11069
11070   case $lt_echo in
11071   *'\$0 --fallback-echo"')
11072     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11073     ;;
11074   esac
11075
11076 cfgfile="${ofile}T"
11077   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11078   $rm -f "$cfgfile"
11079   { echo "$as_me:$LINENO: creating $ofile" >&5
11080 echo "$as_me: creating $ofile" >&6;}
11081
11082   cat <<__EOF__ >> "$cfgfile"
11083 #! $SHELL
11084
11085 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11086 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11087 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11088 #
11089 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11090 # Free Software Foundation, Inc.
11091 #
11092 # This file is part of GNU Libtool:
11093 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11094 #
11095 # This program is free software; you can redistribute it and/or modify
11096 # it under the terms of the GNU General Public License as published by
11097 # the Free Software Foundation; either version 2 of the License, or
11098 # (at your option) any later version.
11099 #
11100 # This program is distributed in the hope that it will be useful, but
11101 # WITHOUT ANY WARRANTY; without even the implied warranty of
11102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11103 # General Public License for more details.
11104 #
11105 # You should have received a copy of the GNU General Public License
11106 # along with this program; if not, write to the Free Software
11107 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11108 #
11109 # As a special exception to the GNU General Public License, if you
11110 # distribute this file as part of a program that contains a
11111 # configuration script generated by Autoconf, you may include it under
11112 # the same distribution terms that you use for the rest of that program.
11113
11114 # A sed program that does not truncate output.
11115 SED=$lt_SED
11116
11117 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11118 Xsed="$SED -e 1s/^X//"
11119
11120 # The HP-UX ksh and POSIX shell print the target directory to stdout
11121 # if CDPATH is set.
11122 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11123
11124 # The names of the tagged configurations supported by this script.
11125 available_tags=
11126
11127 # ### BEGIN LIBTOOL CONFIG
11128
11129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11130
11131 # Shell to use when invoking shell scripts.
11132 SHELL=$lt_SHELL
11133
11134 # Whether or not to build shared libraries.
11135 build_libtool_libs=$enable_shared
11136
11137 # Whether or not to build static libraries.
11138 build_old_libs=$enable_static
11139
11140 # Whether or not to add -lc for building shared libraries.
11141 build_libtool_need_lc=$archive_cmds_need_lc
11142
11143 # Whether or not to disallow shared libs when runtime libs are static
11144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11145
11146 # Whether or not to optimize for fast installation.
11147 fast_install=$enable_fast_install
11148
11149 # The host system.
11150 host_alias=$host_alias
11151 host=$host
11152 host_os=$host_os
11153
11154 # The build system.
11155 build_alias=$build_alias
11156 build=$build
11157 build_os=$build_os
11158
11159 # An echo program that does not interpret backslashes.
11160 echo=$lt_echo
11161
11162 # The archiver.
11163 AR=$lt_AR
11164 AR_FLAGS=$lt_AR_FLAGS
11165
11166 # A C compiler.
11167 LTCC=$lt_LTCC
11168
11169 # LTCC compiler flags.
11170 LTCFLAGS=$lt_LTCFLAGS
11171
11172 # A language-specific compiler.
11173 CC=$lt_compiler
11174
11175 # Is the compiler the GNU C compiler?
11176 with_gcc=$GCC
11177
11178 # An ERE matcher.
11179 EGREP=$lt_EGREP
11180
11181 # The linker used to build libraries.
11182 LD=$lt_LD
11183
11184 # Whether we need hard or soft links.
11185 LN_S=$lt_LN_S
11186
11187 # A BSD-compatible nm program.
11188 NM=$lt_NM
11189
11190 # A symbol stripping program
11191 STRIP=$lt_STRIP
11192
11193 # Used to examine libraries when file_magic_cmd begins "file"
11194 MAGIC_CMD=$MAGIC_CMD
11195
11196 # Used on cygwin: DLL creation program.
11197 DLLTOOL="$DLLTOOL"
11198
11199 # Used on cygwin: object dumper.
11200 OBJDUMP="$OBJDUMP"
11201
11202 # Used on cygwin: assembler.
11203 AS="$AS"
11204
11205 # The name of the directory that contains temporary libtool files.
11206 objdir=$objdir
11207
11208 # How to create reloadable object files.
11209 reload_flag=$lt_reload_flag
11210 reload_cmds=$lt_reload_cmds
11211
11212 # How to pass a linker flag through the compiler.
11213 wl=$lt_lt_prog_compiler_wl
11214
11215 # Object file suffix (normally "o").
11216 objext="$ac_objext"
11217
11218 # Old archive suffix (normally "a").
11219 libext="$libext"
11220
11221 # Shared library suffix (normally ".so").
11222 shrext_cmds='$shrext_cmds'
11223
11224 # Executable file suffix (normally "").
11225 exeext="$exeext"
11226
11227 # Additional compiler flags for building library objects.
11228 pic_flag=$lt_lt_prog_compiler_pic
11229 pic_mode=$pic_mode
11230
11231 # What is the maximum length of a command?
11232 max_cmd_len=$lt_cv_sys_max_cmd_len
11233
11234 # Does compiler simultaneously support -c and -o options?
11235 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11236
11237 # Must we lock files when doing compilation?
11238 need_locks=$lt_need_locks
11239
11240 # Do we need the lib prefix for modules?
11241 need_lib_prefix=$need_lib_prefix
11242
11243 # Do we need a version for libraries?
11244 need_version=$need_version
11245
11246 # Whether dlopen is supported.
11247 dlopen_support=$enable_dlopen
11248
11249 # Whether dlopen of programs is supported.
11250 dlopen_self=$enable_dlopen_self
11251
11252 # Whether dlopen of statically linked programs is supported.
11253 dlopen_self_static=$enable_dlopen_self_static
11254
11255 # Compiler flag to prevent dynamic linking.
11256 link_static_flag=$lt_lt_prog_compiler_static
11257
11258 # Compiler flag to turn off builtin functions.
11259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11260
11261 # Compiler flag to allow reflexive dlopens.
11262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11263
11264 # Compiler flag to generate shared objects directly from archives.
11265 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11266
11267 # Compiler flag to generate thread-safe objects.
11268 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11269
11270 # Library versioning type.
11271 version_type=$version_type
11272
11273 # Format of library name prefix.
11274 libname_spec=$lt_libname_spec
11275
11276 # List of archive names.  First name is the real one, the rest are links.
11277 # The last name is the one that the linker finds with -lNAME.
11278 library_names_spec=$lt_library_names_spec
11279
11280 # The coded name of the library, if different from the real name.
11281 soname_spec=$lt_soname_spec
11282
11283 # Commands used to build and install an old-style archive.
11284 RANLIB=$lt_RANLIB
11285 old_archive_cmds=$lt_old_archive_cmds
11286 old_postinstall_cmds=$lt_old_postinstall_cmds
11287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11288
11289 # Create an old-style archive from a shared archive.
11290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11291
11292 # Create a temporary old-style archive to link instead of a shared archive.
11293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11294
11295 # Commands used to build and install a shared archive.
11296 archive_cmds=$lt_archive_cmds
11297 archive_expsym_cmds=$lt_archive_expsym_cmds
11298 postinstall_cmds=$lt_postinstall_cmds
11299 postuninstall_cmds=$lt_postuninstall_cmds
11300
11301 # Commands used to build a loadable module (assumed same as above if empty)
11302 module_cmds=$lt_module_cmds
11303 module_expsym_cmds=$lt_module_expsym_cmds
11304
11305 # Commands to strip libraries.
11306 old_striplib=$lt_old_striplib
11307 striplib=$lt_striplib
11308
11309 # Dependencies to place before the objects being linked to create a
11310 # shared library.
11311 predep_objects=$lt_predep_objects
11312
11313 # Dependencies to place after the objects being linked to create a
11314 # shared library.
11315 postdep_objects=$lt_postdep_objects
11316
11317 # Dependencies to place before the objects being linked to create a
11318 # shared library.
11319 predeps=$lt_predeps
11320
11321 # Dependencies to place after the objects being linked to create a
11322 # shared library.
11323 postdeps=$lt_postdeps
11324
11325 # The directories searched by this compiler when creating a shared
11326 # library
11327 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11328
11329 # The library search path used internally by the compiler when linking
11330 # a shared library.
11331 compiler_lib_search_path=$lt_compiler_lib_search_path
11332
11333 # Method to check whether dependent libraries are shared objects.
11334 deplibs_check_method=$lt_deplibs_check_method
11335
11336 # Command to use when deplibs_check_method == file_magic.
11337 file_magic_cmd=$lt_file_magic_cmd
11338
11339 # Flag that allows shared libraries with undefined symbols to be built.
11340 allow_undefined_flag=$lt_allow_undefined_flag
11341
11342 # Flag that forces no undefined symbols.
11343 no_undefined_flag=$lt_no_undefined_flag
11344
11345 # Commands used to finish a libtool library installation in a directory.
11346 finish_cmds=$lt_finish_cmds
11347
11348 # Same as above, but a single script fragment to be evaled but not shown.
11349 finish_eval=$lt_finish_eval
11350
11351 # Take the output of nm and produce a listing of raw symbols and C names.
11352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11353
11354 # Transform the output of nm in a proper C declaration
11355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11356
11357 # Transform the output of nm in a C name address pair
11358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11359
11360 # This is the shared library runtime path variable.
11361 runpath_var=$runpath_var
11362
11363 # This is the shared library path variable.
11364 shlibpath_var=$shlibpath_var
11365
11366 # Is shlibpath searched before the hard-coded library search path?
11367 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11368
11369 # How to hardcode a shared library path into an executable.
11370 hardcode_action=$hardcode_action
11371
11372 # Whether we should hardcode library paths into libraries.
11373 hardcode_into_libs=$hardcode_into_libs
11374
11375 # Flag to hardcode \$libdir into a binary during linking.
11376 # This must work even if \$libdir does not exist.
11377 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11378
11379 # If ld is used when linking, flag to hardcode \$libdir into
11380 # a binary during linking. This must work even if \$libdir does
11381 # not exist.
11382 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11383
11384 # Whether we need a single -rpath flag with a separated argument.
11385 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11386
11387 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11388 # resulting binary.
11389 hardcode_direct=$hardcode_direct
11390
11391 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11392 # resulting binary.
11393 hardcode_minus_L=$hardcode_minus_L
11394
11395 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11396 # the resulting binary.
11397 hardcode_shlibpath_var=$hardcode_shlibpath_var
11398
11399 # Set to yes if building a shared library automatically hardcodes DIR into the library
11400 # and all subsequent libraries and executables linked against it.
11401 hardcode_automatic=$hardcode_automatic
11402
11403 # Variables whose values should be saved in libtool wrapper scripts and
11404 # restored at relink time.
11405 variables_saved_for_relink="$variables_saved_for_relink"
11406
11407 # Whether libtool must link a program against all its dependency libraries.
11408 link_all_deplibs=$link_all_deplibs
11409
11410 # Compile-time system search path for libraries
11411 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11412
11413 # Run-time system search path for libraries
11414 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11415
11416 # Fix the shell variable \$srcfile for the compiler.
11417 fix_srcfile_path=$lt_fix_srcfile_path
11418
11419 # Set to yes if exported symbols are required.
11420 always_export_symbols=$always_export_symbols
11421
11422 # The commands to list exported symbols.
11423 export_symbols_cmds=$lt_export_symbols_cmds
11424
11425 # The commands to extract the exported symbol list from a shared archive.
11426 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11427
11428 # Symbols that should not be listed in the preloaded symbols.
11429 exclude_expsyms=$lt_exclude_expsyms
11430
11431 # Symbols that must always be exported.
11432 include_expsyms=$lt_include_expsyms
11433
11434 # ### END LIBTOOL CONFIG
11435
11436 __EOF__
11437
11438
11439   case $host_os in
11440   aix3*)
11441     cat <<\EOF >> "$cfgfile"
11442
11443 # AIX sometimes has problems with the GCC collect2 program.  For some
11444 # reason, if we set the COLLECT_NAMES environment variable, the problems
11445 # vanish in a puff of smoke.
11446 if test "X${COLLECT_NAMES+set}" != Xset; then
11447   COLLECT_NAMES=
11448   export COLLECT_NAMES
11449 fi
11450 EOF
11451     ;;
11452   esac
11453
11454   # We use sed instead of cat because bash on DJGPP gets confused if
11455   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11456   # text mode, it properly converts lines to CR/LF.  This bash problem
11457   # is reportedly fixed, but why not run on old versions too?
11458   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11459
11460   mv -f "$cfgfile" "$ofile" || \
11461     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11462   chmod +x "$ofile"
11463
11464 else
11465   # If there is no Makefile yet, we rely on a make rule to execute
11466   # `config.status --recheck' to rerun these tests and create the
11467   # libtool script then.
11468   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11469   if test -f "$ltmain_in"; then
11470     test -f Makefile && make "$ltmain"
11471   fi
11472 fi
11473
11474
11475 ac_ext=c
11476 ac_cpp='$CPP $CPPFLAGS'
11477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11480
11481 CC="$lt_save_CC"
11482
11483
11484
11485 # This can be used to rebuild libtool when needed
11486 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11487
11488 # Always use our own libtool.
11489 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11490
11491 # Prevent multiple expansion
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502 if test "$enable_shared" = "no"; then
11503     with_noexec=no
11504 else
11505     eval _shrext="$shrext_cmds"
11506 fi
11507 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11508 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11509
11510 # Check whether --with-noexec was given.
11511 if test "${with_noexec+set}" = set; then
11512   withval=$with_noexec; case $with_noexec in
11513     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
11514                 ;;
11515     no)         ;;
11516     *)          ;;
11517 esac
11518 else
11519   with_noexec="$libexecdir/sudo_noexec$_shrext"
11520 fi
11521
11522 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11523 echo "${ECHO_T}$with_noexec" >&6; }
11524 NOEXECFILE="sudo_noexec$_shrext"
11525 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11526
11527 if test "$with_devel" = "yes" -a -n "$GCC"; then
11528     CFLAGS="${CFLAGS} -Wall"
11529 fi
11530
11531 # Extract the first word of "uname", so it can be a program name with args.
11532 set dummy uname; ac_word=$2
11533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11535 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11536   echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538   if test -n "$UNAMEPROG"; then
11539   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11540 else
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11543 do
11544   IFS=$as_save_IFS
11545   test -z "$as_dir" && as_dir=.
11546   for ac_exec_ext in '' $ac_executable_extensions; do
11547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11548     ac_cv_prog_UNAMEPROG="uname"
11549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11550     break 2
11551   fi
11552 done
11553 done
11554 IFS=$as_save_IFS
11555
11556 fi
11557 fi
11558 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11559 if test -n "$UNAMEPROG"; then
11560   { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11561 echo "${ECHO_T}$UNAMEPROG" >&6; }
11562 else
11563   { echo "$as_me:$LINENO: result: no" >&5
11564 echo "${ECHO_T}no" >&6; }
11565 fi
11566
11567
11568 # Extract the first word of "tr", so it can be a program name with args.
11569 set dummy tr; ac_word=$2
11570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11572 if test "${ac_cv_prog_TRPROG+set}" = set; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575   if test -n "$TRPROG"; then
11576   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11577 else
11578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11580 do
11581   IFS=$as_save_IFS
11582   test -z "$as_dir" && as_dir=.
11583   for ac_exec_ext in '' $ac_executable_extensions; do
11584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11585     ac_cv_prog_TRPROG="tr"
11586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11587     break 2
11588   fi
11589 done
11590 done
11591 IFS=$as_save_IFS
11592
11593 fi
11594 fi
11595 TRPROG=$ac_cv_prog_TRPROG
11596 if test -n "$TRPROG"; then
11597   { echo "$as_me:$LINENO: result: $TRPROG" >&5
11598 echo "${ECHO_T}$TRPROG" >&6; }
11599 else
11600   { echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6; }
11602 fi
11603
11604
11605 # Extract the first word of "nroff", so it can be a program name with args.
11606 set dummy nroff; ac_word=$2
11607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11609 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612   if test -n "$NROFFPROG"; then
11613   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11614 else
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11617 do
11618   IFS=$as_save_IFS
11619   test -z "$as_dir" && as_dir=.
11620   for ac_exec_ext in '' $ac_executable_extensions; do
11621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11622     ac_cv_prog_NROFFPROG="nroff"
11623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11624     break 2
11625   fi
11626 done
11627 done
11628 IFS=$as_save_IFS
11629
11630 fi
11631 fi
11632 NROFFPROG=$ac_cv_prog_NROFFPROG
11633 if test -n "$NROFFPROG"; then
11634   { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11635 echo "${ECHO_T}$NROFFPROG" >&6; }
11636 else
11637   { echo "$as_me:$LINENO: result: no" >&5
11638 echo "${ECHO_T}no" >&6; }
11639 fi
11640
11641
11642 if test -z "$NROFFPROG"; then
11643     MANTYPE="cat"
11644     mansrcdir='$(srcdir)'
11645 fi
11646
11647 if test -n "$sudo_cv_prev_host"; then
11648     if test "$sudo_cv_prev_host" != "$host"; then
11649         { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11650 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11651    { (exit 1); exit 1; }; }
11652     else
11653         { echo "$as_me:$LINENO: checking previous host type" >&5
11654 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11655         if test "${sudo_cv_prev_host+set}" = set; then
11656   echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658   sudo_cv_prev_host="$host"
11659 fi
11660
11661         { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11662 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11663     fi
11664 else
11665     # this will produce no output since there is no cached value
11666     if test "${sudo_cv_prev_host+set}" = set; then
11667   echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669   sudo_cv_prev_host="$host"
11670 fi
11671
11672 fi
11673
11674 if test -n "$host_os"; then
11675     OS=`echo $host_os | sed 's/[0-9].*//'`
11676     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11677     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11678 else
11679     OS="unknown"
11680     OSREV=0
11681     OSMAJOR=0
11682 fi
11683
11684 case "$host" in
11685     *-*-sunos4*)
11686                 # getcwd(3) opens a pipe to getpwd(1)!?!
11687                 BROKEN_GETCWD=1
11688
11689                 # system headers lack prototypes but gcc helps...
11690                 if test -n "$GCC"; then
11691                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11692                 fi
11693
11694                 shadow_funcs="getpwanam issecure"
11695                 ;;
11696     *-*-solaris2*)
11697                 # To get the crypt(3) prototype (so we pass -Wall)
11698                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11699                 # AFS support needs -lucb
11700                 if test "$with_AFS" = "yes"; then
11701                     AFS_LIBS="-lc -lucb"
11702                 fi
11703                 : ${mansectsu='1m'}
11704                 : ${mansectform='4'}
11705                 : ${with_rpath='yes'}
11706                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11707                 ;;
11708     *-*-aix*)
11709                 # To get all prototypes (so we pass -Wall)
11710                 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11711                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11712                 if test X"$with_blibpath" != X"no"; then
11713                     { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11714 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11715                     O_LDFLAGS="$LDFLAGS"
11716                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11717                     cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723
11724 int
11725 main ()
11726 {
11727
11728   ;
11729   return 0;
11730 }
11731 _ACEOF
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736   *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739   (eval "$ac_link") 2>conftest.er1
11740   ac_status=$?
11741   grep -v '^ *+' conftest.er1 >conftest.err
11742   rm -f conftest.er1
11743   cat conftest.err >&5
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); } && {
11746          test -z "$ac_c_werror_flag" ||
11747          test ! -s conftest.err
11748        } && test -s conftest$ac_exeext &&
11749        $as_test_x conftest$ac_exeext; then
11750
11751                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11752                             blibpath="$with_blibpath"
11753                         elif test -n "$GCC"; then
11754                             blibpath="/usr/lib:/lib:/usr/local/lib"
11755                         else
11756                             blibpath="/usr/lib:/lib"
11757                         fi
11758                         { echo "$as_me:$LINENO: result: yes" >&5
11759 echo "${ECHO_T}yes" >&6; }
11760
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765         { echo "$as_me:$LINENO: result: no" >&5
11766 echo "${ECHO_T}no" >&6; }
11767 fi
11768
11769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11770       conftest$ac_exeext conftest.$ac_ext
11771                 fi
11772                 LDFLAGS="$O_LDFLAGS"
11773
11774                 # Use authenticate(3) as the default authentication method
11775                 if test X"$with_aixauth" = X""; then
11776
11777 for ac_func in authenticate
11778 do
11779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11783   echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785   cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h.  */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h.  */
11791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11793 #define $ac_func innocuous_$ac_func
11794
11795 /* System header to define __stub macros and hopefully few prototypes,
11796     which can conflict with char $ac_func (); below.
11797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11798     <limits.h> exists even on freestanding compilers.  */
11799
11800 #ifdef __STDC__
11801 # include <limits.h>
11802 #else
11803 # include <assert.h>
11804 #endif
11805
11806 #undef $ac_func
11807
11808 /* Override any GCC internal prototype to avoid an error.
11809    Use char because int might match the return type of a GCC
11810    builtin and then its argument prototype would still apply.  */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 char $ac_func ();
11815 /* The GNU C library defines this for functions which it implements
11816     to always fail with ENOSYS.  Some functions are actually named
11817     something starting with __ and the normal name is an alias.  */
11818 #if defined __stub_$ac_func || defined __stub___$ac_func
11819 choke me
11820 #endif
11821
11822 int
11823 main ()
11824 {
11825 return $ac_func ();
11826   ;
11827   return 0;
11828 }
11829 _ACEOF
11830 rm -f conftest.$ac_objext conftest$ac_exeext
11831 if { (ac_try="$ac_link"
11832 case "(($ac_try" in
11833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834   *) ac_try_echo=$ac_try;;
11835 esac
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837   (eval "$ac_link") 2>conftest.er1
11838   ac_status=$?
11839   grep -v '^ *+' conftest.er1 >conftest.err
11840   rm -f conftest.er1
11841   cat conftest.err >&5
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); } && {
11844          test -z "$ac_c_werror_flag" ||
11845          test ! -s conftest.err
11846        } && test -s conftest$ac_exeext &&
11847        $as_test_x conftest$ac_exeext; then
11848   eval "$as_ac_var=yes"
11849 else
11850   echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853         eval "$as_ac_var=no"
11854 fi
11855
11856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11857       conftest$ac_exeext conftest.$ac_ext
11858 fi
11859 ac_res=`eval echo '${'$as_ac_var'}'`
11860                { echo "$as_me:$LINENO: result: $ac_res" >&5
11861 echo "${ECHO_T}$ac_res" >&6; }
11862 if test `eval echo '${'$as_ac_var'}'` = yes; then
11863   cat >>confdefs.h <<_ACEOF
11864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11865 _ACEOF
11866  AUTH_EXCL_DEF="AIX_AUTH"
11867 fi
11868 done
11869
11870                 fi
11871                 ;;
11872     *-*-hiuxmpp*)
11873                 : ${mansectsu='1m'}
11874                 : ${mansectform='4'}
11875                 ;;
11876     *-*-hpux*)
11877                 # AFS support needs -lBSD
11878                 if test "$with_AFS" = "yes"; then
11879                     AFS_LIBS="-lc -lBSD"
11880                 fi
11881                 : ${mansectsu='1m'}
11882                 : ${mansectform='4'}
11883
11884                 case "$host" in
11885                         *-*-hpux1-8.*)
11886                             cat >>confdefs.h <<\_ACEOF
11887 #define BROKEN_SYSLOG 1
11888 _ACEOF
11889
11890
11891                             # Not sure if setuid binaries are safe in < 9.x
11892                             if test -n "$GCC"; then
11893                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
11894                             else
11895                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
11896                             fi
11897                         ;;
11898                         *-*-hpux9.*)
11899                             cat >>confdefs.h <<\_ACEOF
11900 #define BROKEN_SYSLOG 1
11901 _ACEOF
11902
11903
11904                             shadow_funcs="getspwuid"
11905
11906                             # DCE support (requires ANSI C compiler)
11907                             if test "$with_DCE" = "yes"; then
11908                                 # order of libs in 9.X is important. -lc_r must be last
11909                                 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
11910                                 LIBS="${LIBS} -ldce -lM -lc_r"
11911                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
11912                             fi
11913                         ;;
11914                         *-*-hpux10.*)
11915                             shadow_funcs="getprpwnam iscomsec"
11916                             shadow_libs="-lsec"
11917                         ;;
11918                         *)
11919                             shadow_funcs="getspnam iscomsec"
11920                             shadow_libs="-lsec"
11921                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11922                         ;;
11923                 esac
11924                 ;;
11925     *-dec-osf*)
11926                 # ignore envariables wrt dynamic lib path
11927                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
11928
11929                 : ${CHECKSIA='true'}
11930                 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
11931 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
11932                 # Check whether --enable-sia was given.
11933 if test "${enable_sia+set}" = set; then
11934   enableval=$enable_sia;  case "$enableval" in
11935                     yes)        { echo "$as_me:$LINENO: result: no" >&5
11936 echo "${ECHO_T}no" >&6; }
11937                                 CHECKSIA=true
11938                                 ;;
11939                     no)         { echo "$as_me:$LINENO: result: yes" >&5
11940 echo "${ECHO_T}yes" >&6; }
11941                                 CHECKSIA=false
11942                                 ;;
11943                     *)          { echo "$as_me:$LINENO: result: no" >&5
11944 echo "${ECHO_T}no" >&6; }
11945                                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
11946 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
11947                                 ;;
11948                   esac
11949
11950 else
11951   { echo "$as_me:$LINENO: result: no" >&5
11952 echo "${ECHO_T}no" >&6; }
11953 fi
11954
11955
11956                 shadow_funcs="getprpwnam dispcrypt"
11957                 # OSF/1 4.x and higher need -ldb too
11958                 if test $OSMAJOR -lt 4; then
11959                     shadow_libs="-lsecurity -laud -lm"
11960                 else
11961                     shadow_libs="-lsecurity -ldb -laud -lm"
11962                 fi
11963
11964                 # use SIA by default, if we have it
11965                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
11966
11967                 #
11968                 # Some versions of Digital Unix ship with a broken
11969                 # copy of prot.h, which we need for shadow passwords.
11970                 # XXX - make should remove this as part of distclean
11971                 #
11972                 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
11973 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
11974                 cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h.  */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h.  */
11980
11981 #include <sys/types.h>
11982 #include <sys/security.h>
11983 #include <prot.h>
11984
11985 int
11986 main ()
11987 {
11988 exit(0);
11989   ;
11990   return 0;
11991 }
11992 _ACEOF
11993 rm -f conftest.$ac_objext
11994 if { (ac_try="$ac_compile"
11995 case "(($ac_try" in
11996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997   *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000   (eval "$ac_compile") 2>conftest.er1
12001   ac_status=$?
12002   grep -v '^ *+' conftest.er1 >conftest.err
12003   rm -f conftest.er1
12004   cat conftest.err >&5
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); } && {
12007          test -z "$ac_c_werror_flag" ||
12008          test ! -s conftest.err
12009        } && test -s conftest.$ac_objext; then
12010   { echo "$as_me:$LINENO: result: no" >&5
12011 echo "${ECHO_T}no" >&6; }
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016         { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
12017 echo "${ECHO_T}yes, fixing locally" >&6; }
12018                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
12019
12020 fi
12021
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023                 : ${mansectsu='8'}
12024                 : ${mansectform='4'}
12025                 ;;
12026     *-*-irix*)
12027                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
12028                 if test -z "$NROFFPROG"; then
12029                     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)'
12030                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12031                         if test -d /usr/share/catman/local; then
12032                             mandir="/usr/share/catman/local"
12033                         else
12034                             mandir="/usr/catman/local"
12035                         fi
12036                     fi
12037                 else
12038                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12039                         if test -d "/usr/share/man/local"; then
12040                             mandir="/usr/share/man/local"
12041                         else
12042                             mandir="/usr/man/local"
12043                         fi
12044                     fi
12045                 fi
12046                 # IRIX <= 4 needs -lsun
12047                 if test "$OSMAJOR" -le 4; then
12048                     { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
12049 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
12050 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
12051   echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053   ac_check_lib_save_LIBS=$LIBS
12054 LIBS="-lsun  $LIBS"
12055 cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h.  */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h.  */
12061
12062 /* Override any GCC internal prototype to avoid an error.
12063    Use char because int might match the return type of a GCC
12064    builtin and then its argument prototype would still apply.  */
12065 #ifdef __cplusplus
12066 extern "C"
12067 #endif
12068 char getpwnam ();
12069 int
12070 main ()
12071 {
12072 return getpwnam ();
12073   ;
12074   return 0;
12075 }
12076 _ACEOF
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (ac_try="$ac_link"
12079 case "(($ac_try" in
12080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081   *) ac_try_echo=$ac_try;;
12082 esac
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084   (eval "$ac_link") 2>conftest.er1
12085   ac_status=$?
12086   grep -v '^ *+' conftest.er1 >conftest.err
12087   rm -f conftest.er1
12088   cat conftest.err >&5
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); } && {
12091          test -z "$ac_c_werror_flag" ||
12092          test ! -s conftest.err
12093        } && test -s conftest$ac_exeext &&
12094        $as_test_x conftest$ac_exeext; then
12095   ac_cv_lib_sun_getpwnam=yes
12096 else
12097   echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100         ac_cv_lib_sun_getpwnam=no
12101 fi
12102
12103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12104       conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12106 fi
12107 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
12108 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
12109 if test $ac_cv_lib_sun_getpwnam = yes; then
12110   LIBS="${LIBS} -lsun"
12111 fi
12112
12113                 fi
12114                 : ${mansectsu='1m'}
12115                 : ${mansectform='4'}
12116                 ;;
12117     *-*-linux*|*-*-k*bsd*-gnu)
12118                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12119                 # Some Linux versions need to link with -lshadow
12120                 shadow_funcs="getspnam"
12121                 shadow_libs_optional="-lshadow"
12122                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12123                 ;;
12124     *-convex-bsd*)
12125                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12126                 if test -z "$GCC"; then
12127                     CFLAGS="${CFLAGS} -D__STDC__"
12128                 fi
12129
12130                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12131                 shadow_funcs="getprpwnam"
12132                 shadow_libs="-lprot"
12133                 ;;
12134     *-*-ultrix*)
12135                 OS="ultrix"
12136                 shadow_funcs="getauthuid"
12137                 shadow_libs="-lauth"
12138                 ;;
12139     *-*-riscos*)
12140                 LIBS="${LIBS} -lsun -lbsd"
12141                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12142                 OSDEFS="${OSDEFS} -D_MIPS"
12143                 : ${mansectsu='1m'}
12144                 : ${mansectform='4'}
12145                 ;;
12146     *-*-isc*)
12147                 OSDEFS="${OSDEFS} -D_ISC"
12148                 LIB_CRYPT=1
12149                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12150                 LIBS="${LIBS} -lcrypt"
12151
12152                 shadow_funcs="getspnam"
12153                 shadow_libs="-lsec"
12154
12155                 : ${mansectsu='1m'}
12156                 : ${mansectform='4'}
12157                 ;;
12158     *-*-sco*|*-sco-*)
12159                 shadow_funcs="getprpwnam"
12160                 shadow_libs="-lprot -lx"
12161                 : ${mansectsu='1m'}
12162                 : ${mansectform='4'}
12163                 ;;
12164     m88k-motorola-sysv*)
12165                 # motorolla's cc (a variant of gcc) does -O but not -O2
12166                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12167                 : ${mansectsu='1m'}
12168                 : ${mansectform='4'}
12169                 ;;
12170     *-sequent-sysv*)
12171                 shadow_funcs="getspnam"
12172                 shadow_libs="-lsec"
12173                 : ${mansectsu='1m'}
12174                 : ${mansectform='4'}
12175                 : ${with_rpath='yes'}
12176                 ;;
12177     *-ncr-sysv4*|*-ncr-sysvr4*)
12178                 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
12179 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
12180 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
12181   echo $ECHO_N "(cached) $ECHO_C" >&6
12182 else
12183   ac_check_lib_save_LIBS=$LIBS
12184 LIBS="-lc89  $LIBS"
12185 cat >conftest.$ac_ext <<_ACEOF
12186 /* confdefs.h.  */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h.  */
12191
12192 /* Override any GCC internal prototype to avoid an error.
12193    Use char because int might match the return type of a GCC
12194    builtin and then its argument prototype would still apply.  */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 char strcasecmp ();
12199 int
12200 main ()
12201 {
12202 return strcasecmp ();
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (ac_try="$ac_link"
12209 case "(($ac_try" in
12210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211   *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214   (eval "$ac_link") 2>conftest.er1
12215   ac_status=$?
12216   grep -v '^ *+' conftest.er1 >conftest.err
12217   rm -f conftest.er1
12218   cat conftest.err >&5
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); } && {
12221          test -z "$ac_c_werror_flag" ||
12222          test ! -s conftest.err
12223        } && test -s conftest$ac_exeext &&
12224        $as_test_x conftest$ac_exeext; then
12225   ac_cv_lib_c89_strcasecmp=yes
12226 else
12227   echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12229
12230         ac_cv_lib_c89_strcasecmp=no
12231 fi
12232
12233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12234       conftest$ac_exeext conftest.$ac_ext
12235 LIBS=$ac_check_lib_save_LIBS
12236 fi
12237 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
12238 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
12239 if test $ac_cv_lib_c89_strcasecmp = yes; then
12240   cat >>confdefs.h <<\_ACEOF
12241 #define HAVE_STRCASECMP 1
12242 _ACEOF
12243  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
12244 fi
12245
12246                 : ${mansectsu='1m'}
12247                 : ${mansectform='4'}
12248                 : ${with_rpath='yes'}
12249                 ;;
12250     *-ccur-sysv4*|*-ccur-sysvr4*)
12251                 LIBS="${LIBS} -lgen"
12252                 SUDO_LIBS="${SUDO_LIBS} -lgen"
12253                 : ${mansectsu='1m'}
12254                 : ${mansectform='4'}
12255                 : ${with_rpath='yes'}
12256                 ;;
12257     *-*-bsdi*)
12258                 SKIP_SETREUID=yes
12259                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
12260                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
12261                     case "$OSMAJOR" in
12262                         2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
12263 echo "$as_me: using shlicc as CC" >&6;}
12264                                 ac_cv_prog_CC=shlicc
12265                                 CC="$ac_cv_prog_CC"
12266                                 ;;
12267                     esac
12268                 fi
12269                 # Check for newer BSD auth API (just check for >= 3.0?)
12270                 if test -z "$with_bsdauth"; then
12271
12272 for ac_func in auth_challenge
12273 do
12274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12278   echo $ECHO_N "(cached) $ECHO_C" >&6
12279 else
12280   cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h.  */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h.  */
12286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12288 #define $ac_func innocuous_$ac_func
12289
12290 /* System header to define __stub macros and hopefully few prototypes,
12291     which can conflict with char $ac_func (); below.
12292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12293     <limits.h> exists even on freestanding compilers.  */
12294
12295 #ifdef __STDC__
12296 # include <limits.h>
12297 #else
12298 # include <assert.h>
12299 #endif
12300
12301 #undef $ac_func
12302
12303 /* Override any GCC internal prototype to avoid an error.
12304    Use char because int might match the return type of a GCC
12305    builtin and then its argument prototype would still apply.  */
12306 #ifdef __cplusplus
12307 extern "C"
12308 #endif
12309 char $ac_func ();
12310 /* The GNU C library defines this for functions which it implements
12311     to always fail with ENOSYS.  Some functions are actually named
12312     something starting with __ and the normal name is an alias.  */
12313 #if defined __stub_$ac_func || defined __stub___$ac_func
12314 choke me
12315 #endif
12316
12317 int
12318 main ()
12319 {
12320 return $ac_func ();
12321   ;
12322   return 0;
12323 }
12324 _ACEOF
12325 rm -f conftest.$ac_objext conftest$ac_exeext
12326 if { (ac_try="$ac_link"
12327 case "(($ac_try" in
12328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329   *) ac_try_echo=$ac_try;;
12330 esac
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332   (eval "$ac_link") 2>conftest.er1
12333   ac_status=$?
12334   grep -v '^ *+' conftest.er1 >conftest.err
12335   rm -f conftest.er1
12336   cat conftest.err >&5
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); } && {
12339          test -z "$ac_c_werror_flag" ||
12340          test ! -s conftest.err
12341        } && test -s conftest$ac_exeext &&
12342        $as_test_x conftest$ac_exeext; then
12343   eval "$as_ac_var=yes"
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12347
12348         eval "$as_ac_var=no"
12349 fi
12350
12351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12352       conftest$ac_exeext conftest.$ac_ext
12353 fi
12354 ac_res=`eval echo '${'$as_ac_var'}'`
12355                { echo "$as_me:$LINENO: result: $ac_res" >&5
12356 echo "${ECHO_T}$ac_res" >&6; }
12357 if test `eval echo '${'$as_ac_var'}'` = yes; then
12358   cat >>confdefs.h <<_ACEOF
12359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12360 _ACEOF
12361  AUTH_EXCL_DEF="BSD_AUTH"
12362 fi
12363 done
12364
12365                 fi
12366                 ;;
12367     *-*-freebsd*)
12368                 # FreeBSD has a real setreuid(2) starting with 2.1 and
12369                 # backported to 2.0.5.  We just take 2.1 and above...
12370                 case "$OSREV" in
12371                 0.*|1.*|2.0*)
12372                     SKIP_SETREUID=yes
12373                     ;;
12374                 esac
12375                 if test "$with_skey" = "yes"; then
12376                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12377                 fi
12378                 CHECKSHADOW="false"
12379                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12380                 : ${with_logincap='maybe'}
12381                 ;;
12382     *-*-*openbsd*)
12383                 # OpenBSD has a real setreuid(2) starting with 3.3 but
12384                 # we will use setreuid(2) instead.
12385                 SKIP_SETREUID=yes
12386                 CHECKSHADOW="false"
12387                 # OpenBSD >= 3.0 supports BSD auth
12388                 if test -z "$with_bsdauth"; then
12389                     case "$OSREV" in
12390                     0-2.*)
12391                         ;;
12392                     *)
12393                         AUTH_EXCL_DEF="BSD_AUTH"
12394                         ;;
12395                     esac
12396                 fi
12397                 : ${with_logincap='maybe'}
12398                 ;;
12399     *-*-*netbsd*)
12400                 # NetBSD has a real setreuid(2) starting with 1.3.2
12401                 case "$OSREV" in
12402                 0.9*|1.012*|1.3|1.3.1)
12403                     SKIP_SETREUID=yes
12404                     ;;
12405                 esac
12406                 CHECKSHADOW="false"
12407                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12408                 : ${with_logincap='maybe'}
12409                 ;;
12410     *-*-dragonfly*)
12411                 if test "$with_skey" = "yes"; then
12412                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12413                 fi
12414                 CHECKSHADOW="false"
12415                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12416                 : ${with_logincap='yes'}
12417                 ;;
12418     *-*-*bsd*)
12419                 CHECKSHADOW="false"
12420                 ;;
12421     *-*-darwin*)
12422                 SKIP_SETREUID=yes
12423                 CHECKSHADOW="false"
12424                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12425                 : ${with_logincap='yes'}
12426                 ;;
12427     *-*-nextstep*)
12428                 # lockf() on is broken on the NeXT -- use flock instead
12429                 ac_cv_func_lockf=no
12430                 ac_cv_func_flock=yes
12431                 ;;
12432     *-*-*sysv4*)
12433                 : ${mansectsu='1m'}
12434                 : ${mansectform='4'}
12435                 : ${with_rpath='yes'}
12436                 ;;
12437     *-*-sysv*)
12438                 : ${mansectsu='1m'}
12439                 : ${mansectform='4'}
12440                 ;;
12441     *-gnu*)
12442                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12443                 ;;
12444 esac
12445
12446 AUTH_REG=${AUTH_REG# }
12447 AUTH_EXCL=${AUTH_EXCL# }
12448 if test -n "$AUTH_EXCL"; then
12449     set -- $AUTH_EXCL
12450     if test $# != 1; then
12451         { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12452 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12453    { (exit 1); exit 1; }; }
12454     fi
12455     if test -n "$AUTH_REG"; then
12456         { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12457 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12458    { (exit 1); exit 1; }; }
12459     fi
12460 fi
12461 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12462     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12463 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12464    { (exit 1); exit 1; }; }
12465 fi
12466
12467 : ${mansectsu='8'}
12468 : ${mansectform='5'}
12469
12470 if test -n "$with_libpath"; then
12471     for i in ${with_libpath}; do
12472
12473     if test X"$with_rpath" = X"yes"; then
12474         LDFLAGS="${LDFLAGS} -L$i -R$i"
12475     else
12476         LDFLAGS="${LDFLAGS} -L$i"
12477     fi
12478     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12479         blibpath_add="${blibpath_add}:$i"
12480     fi
12481
12482     done
12483 fi
12484 if test -n "$with_libraries"; then
12485     for i in ${with_libraries}; do
12486         case $i in
12487             -l*)        ;;
12488             *.a)        ;;
12489             *.o)        ;;
12490             *)  i="-l${i}";;
12491         esac
12492         LIBS="${LIBS} ${i}"
12493     done
12494 fi
12495
12496 if test $ac_cv_c_compiler_gnu = yes; then
12497     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12498 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12499 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12500   echo $ECHO_N "(cached) $ECHO_C" >&6
12501 else
12502     ac_pattern="Autoconf.*'x'"
12503   cat >conftest.$ac_ext <<_ACEOF
12504 /* confdefs.h.  */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h.  */
12509 #include <sgtty.h>
12510 Autoconf TIOCGETP
12511 _ACEOF
12512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12513   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12514   ac_cv_prog_gcc_traditional=yes
12515 else
12516   ac_cv_prog_gcc_traditional=no
12517 fi
12518 rm -f conftest*
12519
12520
12521   if test $ac_cv_prog_gcc_traditional = no; then
12522     cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h.  */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h.  */
12528 #include <termio.h>
12529 Autoconf TCGETA
12530 _ACEOF
12531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12532   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12533   ac_cv_prog_gcc_traditional=yes
12534 fi
12535 rm -f conftest*
12536
12537   fi
12538 fi
12539 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12540 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12541   if test $ac_cv_prog_gcc_traditional = yes; then
12542     CC="$CC -traditional"
12543   fi
12544 fi
12545
12546 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12547 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12548 if test "${ac_cv_c_const+set}" = set; then
12549   echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551   cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h.  */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h.  */
12557
12558 int
12559 main ()
12560 {
12561 /* FIXME: Include the comments suggested by Paul. */
12562 #ifndef __cplusplus
12563   /* Ultrix mips cc rejects this.  */
12564   typedef int charset[2];
12565   const charset cs;
12566   /* SunOS 4.1.1 cc rejects this.  */
12567   char const *const *pcpcc;
12568   char **ppc;
12569   /* NEC SVR4.0.2 mips cc rejects this.  */
12570   struct point {int x, y;};
12571   static struct point const zero = {0,0};
12572   /* AIX XL C 1.02.0.0 rejects this.
12573      It does not let you subtract one const X* pointer from another in
12574      an arm of an if-expression whose if-part is not a constant
12575      expression */
12576   const char *g = "string";
12577   pcpcc = &g + (g ? g-g : 0);
12578   /* HPUX 7.0 cc rejects these. */
12579   ++pcpcc;
12580   ppc = (char**) pcpcc;
12581   pcpcc = (char const *const *) ppc;
12582   { /* SCO 3.2v4 cc rejects this.  */
12583     char *t;
12584     char const *s = 0 ? (char *) 0 : (char const *) 0;
12585
12586     *t++ = 0;
12587     if (s) return 0;
12588   }
12589   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12590     int x[] = {25, 17};
12591     const int *foo = &x[0];
12592     ++foo;
12593   }
12594   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12595     typedef const int *iptr;
12596     iptr p = 0;
12597     ++p;
12598   }
12599   { /* AIX XL C 1.02.0.0 rejects this saying
12600        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12601     struct s { int j; const int *ap[3]; };
12602     struct s *b; b->j = 5;
12603   }
12604   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12605     const int foo = 10;
12606     if (!foo) return 0;
12607   }
12608   return !cs[0] && !zero.x;
12609 #endif
12610
12611   ;
12612   return 0;
12613 }
12614 _ACEOF
12615 rm -f conftest.$ac_objext
12616 if { (ac_try="$ac_compile"
12617 case "(($ac_try" in
12618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619   *) ac_try_echo=$ac_try;;
12620 esac
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622   (eval "$ac_compile") 2>conftest.er1
12623   ac_status=$?
12624   grep -v '^ *+' conftest.er1 >conftest.err
12625   rm -f conftest.er1
12626   cat conftest.err >&5
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } && {
12629          test -z "$ac_c_werror_flag" ||
12630          test ! -s conftest.err
12631        } && test -s conftest.$ac_objext; then
12632   ac_cv_c_const=yes
12633 else
12634   echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12636
12637         ac_cv_c_const=no
12638 fi
12639
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12641 fi
12642 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12643 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12644 if test $ac_cv_c_const = no; then
12645
12646 cat >>confdefs.h <<\_ACEOF
12647 #define const
12648 _ACEOF
12649
12650 fi
12651
12652 { echo "$as_me:$LINENO: checking for working volatile" >&5
12653 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12654 if test "${ac_cv_c_volatile+set}" = set; then
12655   echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657   cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h.  */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h.  */
12663
12664 int
12665 main ()
12666 {
12667
12668 volatile int x;
12669 int * volatile y = (int *) 0;
12670 return !x && !y;
12671   ;
12672   return 0;
12673 }
12674 _ACEOF
12675 rm -f conftest.$ac_objext
12676 if { (ac_try="$ac_compile"
12677 case "(($ac_try" in
12678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679   *) ac_try_echo=$ac_try;;
12680 esac
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682   (eval "$ac_compile") 2>conftest.er1
12683   ac_status=$?
12684   grep -v '^ *+' conftest.er1 >conftest.err
12685   rm -f conftest.er1
12686   cat conftest.err >&5
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); } && {
12689          test -z "$ac_c_werror_flag" ||
12690          test ! -s conftest.err
12691        } && test -s conftest.$ac_objext; then
12692   ac_cv_c_volatile=yes
12693 else
12694   echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12696
12697         ac_cv_c_volatile=no
12698 fi
12699
12700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12701 fi
12702 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12703 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12704 if test $ac_cv_c_volatile = no; then
12705
12706 cat >>confdefs.h <<\_ACEOF
12707 #define volatile
12708 _ACEOF
12709
12710 fi
12711
12712 for ac_prog in 'bison -y' byacc
12713 do
12714   # Extract the first word of "$ac_prog", so it can be a program name with args.
12715 set dummy $ac_prog; ac_word=$2
12716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12718 if test "${ac_cv_prog_YACC+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   if test -n "$YACC"; then
12722   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12723 else
12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12726 do
12727   IFS=$as_save_IFS
12728   test -z "$as_dir" && as_dir=.
12729   for ac_exec_ext in '' $ac_executable_extensions; do
12730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12731     ac_cv_prog_YACC="$ac_prog"
12732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12733     break 2
12734   fi
12735 done
12736 done
12737 IFS=$as_save_IFS
12738
12739 fi
12740 fi
12741 YACC=$ac_cv_prog_YACC
12742 if test -n "$YACC"; then
12743   { echo "$as_me:$LINENO: result: $YACC" >&5
12744 echo "${ECHO_T}$YACC" >&6; }
12745 else
12746   { echo "$as_me:$LINENO: result: no" >&5
12747 echo "${ECHO_T}no" >&6; }
12748 fi
12749
12750
12751   test -n "$YACC" && break
12752 done
12753 test -n "$YACC" || YACC="yacc"
12754
12755 { echo "$as_me:$LINENO: checking for mv" >&5
12756 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
12757 if test -f "/usr/bin/mv"; then
12758     { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
12759 echo "${ECHO_T}/usr/bin/mv" >&6; }
12760     cat >>confdefs.h <<\EOF
12761 #define _PATH_MV "/usr/bin/mv"
12762 EOF
12763
12764 elif test -f "/bin/mv"; then
12765     { echo "$as_me:$LINENO: result: /bin/mv" >&5
12766 echo "${ECHO_T}/bin/mv" >&6; }
12767     cat >>confdefs.h <<\EOF
12768 #define _PATH_MV "/bin/mv"
12769 EOF
12770
12771 elif test -f "/usr/ucb/mv"; then
12772     { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
12773 echo "${ECHO_T}/usr/ucb/mv" >&6; }
12774     cat >>confdefs.h <<\EOF
12775 #define _PATH_MV "/usr/ucb/mv"
12776 EOF
12777
12778 elif test -f "/usr/sbin/mv"; then
12779     { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
12780 echo "${ECHO_T}/usr/sbin/mv" >&6; }
12781     cat >>confdefs.h <<\EOF
12782 #define _PATH_MV "/usr/sbin/mv"
12783 EOF
12784
12785 else
12786     { echo "$as_me:$LINENO: result: not found" >&5
12787 echo "${ECHO_T}not found" >&6; }
12788 fi
12789
12790 { echo "$as_me:$LINENO: checking for bourne shell" >&5
12791 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
12792 if test -f "/bin/sh"; then
12793     { echo "$as_me:$LINENO: result: /bin/sh" >&5
12794 echo "${ECHO_T}/bin/sh" >&6; }
12795     cat >>confdefs.h <<\EOF
12796 #define _PATH_BSHELL "/bin/sh"
12797 EOF
12798
12799 elif test -f "/usr/bin/sh"; then
12800     { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
12801 echo "${ECHO_T}/usr/bin/sh" >&6; }
12802     cat >>confdefs.h <<\EOF
12803 #define _PATH_BSHELL "/usr/bin/sh"
12804 EOF
12805
12806 elif test -f "/sbin/sh"; then
12807     { echo "$as_me:$LINENO: result: /sbin/sh" >&5
12808 echo "${ECHO_T}/sbin/sh" >&6; }
12809     cat >>confdefs.h <<\EOF
12810 #define _PATH_BSHELL "/sbin/sh"
12811 EOF
12812
12813 elif test -f "/usr/sbin/sh"; then
12814     { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
12815 echo "${ECHO_T}/usr/sbin/sh" >&6; }
12816     cat >>confdefs.h <<\EOF
12817 #define _PATH_BSHELL "/usr/sbin/sh"
12818 EOF
12819
12820 elif test -f "/bin/ksh"; then
12821     { echo "$as_me:$LINENO: result: /bin/ksh" >&5
12822 echo "${ECHO_T}/bin/ksh" >&6; }
12823     cat >>confdefs.h <<\EOF
12824 #define _PATH_BSHELL "/bin/ksh"
12825 EOF
12826
12827 elif test -f "/usr/bin/ksh"; then
12828     { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
12829 echo "${ECHO_T}/usr/bin/ksh" >&6; }
12830     cat >>confdefs.h <<\EOF
12831 #define _PATH_BSHELL "/usr/bin/ksh"
12832 EOF
12833
12834 elif test -f "/bin/bash"; then
12835     { echo "$as_me:$LINENO: result: /bin/bash" >&5
12836 echo "${ECHO_T}/bin/bash" >&6; }
12837     cat >>confdefs.h <<\EOF
12838 #define _PATH_BSHELL "/bin/bash"
12839 EOF
12840
12841 elif test -f "/usr/bin/bash"; then
12842     { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
12843 echo "${ECHO_T}/usr/bin/bash" >&6; }
12844     cat >>confdefs.h <<\EOF
12845 #define _PATH_BSHELL "/usr/bin/bash"
12846 EOF
12847
12848 else
12849     { echo "$as_me:$LINENO: result: not found" >&5
12850 echo "${ECHO_T}not found" >&6; }
12851 fi
12852
12853 if test -z "$with_sendmail"; then
12854     { echo "$as_me:$LINENO: checking for sendmail" >&5
12855 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
12856 if test -f "/usr/sbin/sendmail"; then
12857     { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
12858 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
12859     cat >>confdefs.h <<\EOF
12860 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
12861 EOF
12862
12863 elif test -f "/usr/lib/sendmail"; then
12864     { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
12865 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
12866     cat >>confdefs.h <<\EOF
12867 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
12868 EOF
12869
12870 elif test -f "/usr/etc/sendmail"; then
12871     { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
12872 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
12873     cat >>confdefs.h <<\EOF
12874 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
12875 EOF
12876
12877 elif test -f "/usr/ucblib/sendmail"; then
12878     { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
12879 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
12880     cat >>confdefs.h <<\EOF
12881 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
12882 EOF
12883
12884 elif test -f "/usr/local/lib/sendmail"; then
12885     { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
12886 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
12887     cat >>confdefs.h <<\EOF
12888 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
12889 EOF
12890
12891 elif test -f "/usr/local/bin/sendmail"; then
12892     { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
12893 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
12894     cat >>confdefs.h <<\EOF
12895 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
12896 EOF
12897
12898 else
12899     { echo "$as_me:$LINENO: result: not found" >&5
12900 echo "${ECHO_T}not found" >&6; }
12901 fi
12902
12903 fi
12904 if test -z "$with_editor"; then
12905     { echo "$as_me:$LINENO: checking for vi" >&5
12906 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
12907 if test -f "/usr/bin/vi"; then
12908     { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
12909 echo "${ECHO_T}/usr/bin/vi" >&6; }
12910     cat >>confdefs.h <<\EOF
12911 #define _PATH_VI "/usr/bin/vi"
12912 EOF
12913
12914 elif test -f "/usr/ucb/vi"; then
12915     { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
12916 echo "${ECHO_T}/usr/ucb/vi" >&6; }
12917     cat >>confdefs.h <<\EOF
12918 #define _PATH_VI "/usr/ucb/vi"
12919 EOF
12920
12921 elif test -f "/usr/bsd/vi"; then
12922     { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
12923 echo "${ECHO_T}/usr/bsd/vi" >&6; }
12924     cat >>confdefs.h <<\EOF
12925 #define _PATH_VI "/usr/bsd/vi"
12926 EOF
12927
12928 elif test -f "/bin/vi"; then
12929     { echo "$as_me:$LINENO: result: /bin/vi" >&5
12930 echo "${ECHO_T}/bin/vi" >&6; }
12931     cat >>confdefs.h <<\EOF
12932 #define _PATH_VI "/bin/vi"
12933 EOF
12934
12935 elif test -f "/usr/local/bin/vi"; then
12936     { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
12937 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
12938     cat >>confdefs.h <<\EOF
12939 #define _PATH_VI "/usr/local/bin/vi"
12940 EOF
12941
12942 else
12943     { echo "$as_me:$LINENO: result: not found" >&5
12944 echo "${ECHO_T}not found" >&6; }
12945 fi
12946
12947 fi
12948 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12949 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12950 if test "${ac_cv_header_stdc+set}" = set; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953   cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h.  */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h.  */
12959 #include <stdlib.h>
12960 #include <stdarg.h>
12961 #include <string.h>
12962 #include <float.h>
12963
12964 int
12965 main ()
12966 {
12967
12968   ;
12969   return 0;
12970 }
12971 _ACEOF
12972 rm -f conftest.$ac_objext
12973 if { (ac_try="$ac_compile"
12974 case "(($ac_try" in
12975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976   *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979   (eval "$ac_compile") 2>conftest.er1
12980   ac_status=$?
12981   grep -v '^ *+' conftest.er1 >conftest.err
12982   rm -f conftest.er1
12983   cat conftest.err >&5
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); } && {
12986          test -z "$ac_c_werror_flag" ||
12987          test ! -s conftest.err
12988        } && test -s conftest.$ac_objext; then
12989   ac_cv_header_stdc=yes
12990 else
12991   echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12993
12994         ac_cv_header_stdc=no
12995 fi
12996
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998
12999 if test $ac_cv_header_stdc = yes; then
13000   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13001   cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h.  */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h.  */
13007 #include <string.h>
13008
13009 _ACEOF
13010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13011   $EGREP "memchr" >/dev/null 2>&1; then
13012   :
13013 else
13014   ac_cv_header_stdc=no
13015 fi
13016 rm -f conftest*
13017
13018 fi
13019
13020 if test $ac_cv_header_stdc = yes; then
13021   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13022   cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h.  */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h.  */
13028 #include <stdlib.h>
13029
13030 _ACEOF
13031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13032   $EGREP "free" >/dev/null 2>&1; then
13033   :
13034 else
13035   ac_cv_header_stdc=no
13036 fi
13037 rm -f conftest*
13038
13039 fi
13040
13041 if test $ac_cv_header_stdc = yes; then
13042   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13043   if test "$cross_compiling" = yes; then
13044   :
13045 else
13046   cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h.  */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h.  */
13052 #include <ctype.h>
13053 #include <stdlib.h>
13054 #if ((' ' & 0x0FF) == 0x020)
13055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13057 #else
13058 # define ISLOWER(c) \
13059                    (('a' <= (c) && (c) <= 'i') \
13060                      || ('j' <= (c) && (c) <= 'r') \
13061                      || ('s' <= (c) && (c) <= 'z'))
13062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13063 #endif
13064
13065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13066 int
13067 main ()
13068 {
13069   int i;
13070   for (i = 0; i < 256; i++)
13071     if (XOR (islower (i), ISLOWER (i))
13072         || toupper (i) != TOUPPER (i))
13073       return 2;
13074   return 0;
13075 }
13076 _ACEOF
13077 rm -f conftest$ac_exeext
13078 if { (ac_try="$ac_link"
13079 case "(($ac_try" in
13080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081   *) ac_try_echo=$ac_try;;
13082 esac
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084   (eval "$ac_link") 2>&5
13085   ac_status=$?
13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13088   { (case "(($ac_try" in
13089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090   *) ac_try_echo=$ac_try;;
13091 esac
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093   (eval "$ac_try") 2>&5
13094   ac_status=$?
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); }; }; then
13097   :
13098 else
13099   echo "$as_me: program exited with status $ac_status" >&5
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13102
13103 ( exit $ac_status )
13104 ac_cv_header_stdc=no
13105 fi
13106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13107 fi
13108
13109
13110 fi
13111 fi
13112 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13113 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13114 if test $ac_cv_header_stdc = yes; then
13115
13116 cat >>confdefs.h <<\_ACEOF
13117 #define STDC_HEADERS 1
13118 _ACEOF
13119
13120 fi
13121
13122
13123
13124
13125
13126
13127 ac_header_dirent=no
13128 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13129   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13130 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13131 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13133   echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135   cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h.  */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h.  */
13141 #include <sys/types.h>
13142 #include <$ac_hdr>
13143
13144 int
13145 main ()
13146 {
13147 if ((DIR *) 0)
13148 return 0;
13149   ;
13150   return 0;
13151 }
13152 _ACEOF
13153 rm -f conftest.$ac_objext
13154 if { (ac_try="$ac_compile"
13155 case "(($ac_try" in
13156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157   *) ac_try_echo=$ac_try;;
13158 esac
13159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160   (eval "$ac_compile") 2>conftest.er1
13161   ac_status=$?
13162   grep -v '^ *+' conftest.er1 >conftest.err
13163   rm -f conftest.er1
13164   cat conftest.err >&5
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); } && {
13167          test -z "$ac_c_werror_flag" ||
13168          test ! -s conftest.err
13169        } && test -s conftest.$ac_objext; then
13170   eval "$as_ac_Header=yes"
13171 else
13172   echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175         eval "$as_ac_Header=no"
13176 fi
13177
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179 fi
13180 ac_res=`eval echo '${'$as_ac_Header'}'`
13181                { echo "$as_me:$LINENO: result: $ac_res" >&5
13182 echo "${ECHO_T}$ac_res" >&6; }
13183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13184   cat >>confdefs.h <<_ACEOF
13185 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13186 _ACEOF
13187
13188 ac_header_dirent=$ac_hdr; break
13189 fi
13190
13191 done
13192 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13193 if test $ac_header_dirent = dirent.h; then
13194   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13195 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13196 if test "${ac_cv_search_opendir+set}" = set; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199   ac_func_search_save_LIBS=$LIBS
13200 cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h.  */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h.  */
13206
13207 /* Override any GCC internal prototype to avoid an error.
13208    Use char because int might match the return type of a GCC
13209    builtin and then its argument prototype would still apply.  */
13210 #ifdef __cplusplus
13211 extern "C"
13212 #endif
13213 char opendir ();
13214 int
13215 main ()
13216 {
13217 return opendir ();
13218   ;
13219   return 0;
13220 }
13221 _ACEOF
13222 for ac_lib in '' dir; do
13223   if test -z "$ac_lib"; then
13224     ac_res="none required"
13225   else
13226     ac_res=-l$ac_lib
13227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13228   fi
13229   rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (ac_try="$ac_link"
13231 case "(($ac_try" in
13232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233   *) ac_try_echo=$ac_try;;
13234 esac
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236   (eval "$ac_link") 2>conftest.er1
13237   ac_status=$?
13238   grep -v '^ *+' conftest.er1 >conftest.err
13239   rm -f conftest.er1
13240   cat conftest.err >&5
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); } && {
13243          test -z "$ac_c_werror_flag" ||
13244          test ! -s conftest.err
13245        } && test -s conftest$ac_exeext &&
13246        $as_test_x conftest$ac_exeext; then
13247   ac_cv_search_opendir=$ac_res
13248 else
13249   echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252
13253 fi
13254
13255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13256       conftest$ac_exeext
13257   if test "${ac_cv_search_opendir+set}" = set; then
13258   break
13259 fi
13260 done
13261 if test "${ac_cv_search_opendir+set}" = set; then
13262   :
13263 else
13264   ac_cv_search_opendir=no
13265 fi
13266 rm conftest.$ac_ext
13267 LIBS=$ac_func_search_save_LIBS
13268 fi
13269 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13270 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13271 ac_res=$ac_cv_search_opendir
13272 if test "$ac_res" != no; then
13273   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13274
13275 fi
13276
13277 else
13278   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13279 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13280 if test "${ac_cv_search_opendir+set}" = set; then
13281   echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283   ac_func_search_save_LIBS=$LIBS
13284 cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290
13291 /* Override any GCC internal prototype to avoid an error.
13292    Use char because int might match the return type of a GCC
13293    builtin and then its argument prototype would still apply.  */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char opendir ();
13298 int
13299 main ()
13300 {
13301 return opendir ();
13302   ;
13303   return 0;
13304 }
13305 _ACEOF
13306 for ac_lib in '' x; do
13307   if test -z "$ac_lib"; then
13308     ac_res="none required"
13309   else
13310     ac_res=-l$ac_lib
13311     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13312   fi
13313   rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (ac_try="$ac_link"
13315 case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_link") 2>conftest.er1
13321   ac_status=$?
13322   grep -v '^ *+' conftest.er1 >conftest.err
13323   rm -f conftest.er1
13324   cat conftest.err >&5
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } && {
13327          test -z "$ac_c_werror_flag" ||
13328          test ! -s conftest.err
13329        } && test -s conftest$ac_exeext &&
13330        $as_test_x conftest$ac_exeext; then
13331   ac_cv_search_opendir=$ac_res
13332 else
13333   echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13335
13336
13337 fi
13338
13339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13340       conftest$ac_exeext
13341   if test "${ac_cv_search_opendir+set}" = set; then
13342   break
13343 fi
13344 done
13345 if test "${ac_cv_search_opendir+set}" = set; then
13346   :
13347 else
13348   ac_cv_search_opendir=no
13349 fi
13350 rm conftest.$ac_ext
13351 LIBS=$ac_func_search_save_LIBS
13352 fi
13353 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13354 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13355 ac_res=$ac_cv_search_opendir
13356 if test "$ac_res" != no; then
13357   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13358
13359 fi
13360
13361 fi
13362
13363 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13364 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13365 if test "${ac_cv_header_time+set}" = set; then
13366   echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368   cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h.  */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h.  */
13374 #include <sys/types.h>
13375 #include <sys/time.h>
13376 #include <time.h>
13377
13378 int
13379 main ()
13380 {
13381 if ((struct tm *) 0)
13382 return 0;
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext
13388 if { (ac_try="$ac_compile"
13389 case "(($ac_try" in
13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391   *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394   (eval "$ac_compile") 2>conftest.er1
13395   ac_status=$?
13396   grep -v '^ *+' conftest.er1 >conftest.err
13397   rm -f conftest.er1
13398   cat conftest.err >&5
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } && {
13401          test -z "$ac_c_werror_flag" ||
13402          test ! -s conftest.err
13403        } && test -s conftest.$ac_objext; then
13404   ac_cv_header_time=yes
13405 else
13406   echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13408
13409         ac_cv_header_time=no
13410 fi
13411
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413 fi
13414 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13415 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13416 if test $ac_cv_header_time = yes; then
13417
13418 cat >>confdefs.h <<\_ACEOF
13419 #define TIME_WITH_SYS_TIME 1
13420 _ACEOF
13421
13422 fi
13423
13424
13425
13426
13427
13428
13429
13430
13431 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13432 do
13433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13435   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13438   echo $ECHO_N "(cached) $ECHO_C" >&6
13439 fi
13440 ac_res=`eval echo '${'$as_ac_Header'}'`
13441                { echo "$as_me:$LINENO: result: $ac_res" >&5
13442 echo "${ECHO_T}$ac_res" >&6; }
13443 else
13444   # Is the header compilable?
13445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453 $ac_includes_default
13454 #include <$ac_header>
13455 _ACEOF
13456 rm -f conftest.$ac_objext
13457 if { (ac_try="$ac_compile"
13458 case "(($ac_try" in
13459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460   *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463   (eval "$ac_compile") 2>conftest.er1
13464   ac_status=$?
13465   grep -v '^ *+' conftest.er1 >conftest.err
13466   rm -f conftest.er1
13467   cat conftest.err >&5
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); } && {
13470          test -z "$ac_c_werror_flag" ||
13471          test ! -s conftest.err
13472        } && test -s conftest.$ac_objext; then
13473   ac_header_compiler=yes
13474 else
13475   echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478         ac_header_compiler=no
13479 fi
13480
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13483 echo "${ECHO_T}$ac_header_compiler" >&6; }
13484
13485 # Is the header present?
13486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13488 cat >conftest.$ac_ext <<_ACEOF
13489 /* confdefs.h.  */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h.  */
13494 #include <$ac_header>
13495 _ACEOF
13496 if { (ac_try="$ac_cpp conftest.$ac_ext"
13497 case "(($ac_try" in
13498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499   *) ac_try_echo=$ac_try;;
13500 esac
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13503   ac_status=$?
13504   grep -v '^ *+' conftest.er1 >conftest.err
13505   rm -f conftest.er1
13506   cat conftest.err >&5
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); } >/dev/null && {
13509          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13510          test ! -s conftest.err
13511        }; then
13512   ac_header_preproc=yes
13513 else
13514   echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13516
13517   ac_header_preproc=no
13518 fi
13519
13520 rm -f conftest.err conftest.$ac_ext
13521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13522 echo "${ECHO_T}$ac_header_preproc" >&6; }
13523
13524 # So?  What about this header?
13525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13526   yes:no: )
13527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13531     ac_header_preproc=yes
13532     ;;
13533   no:yes:* )
13534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13536     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13537 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13538     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13540     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13541 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13544     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13546
13547     ;;
13548 esac
13549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13552   echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554   eval "$as_ac_Header=\$ac_header_preproc"
13555 fi
13556 ac_res=`eval echo '${'$as_ac_Header'}'`
13557                { echo "$as_me:$LINENO: result: $ac_res" >&5
13558 echo "${ECHO_T}$ac_res" >&6; }
13559
13560 fi
13561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13562   cat >>confdefs.h <<_ACEOF
13563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13564 _ACEOF
13565
13566 fi
13567
13568 done
13569
13570
13571 for ac_header in err.h
13572 do
13573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13575   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13578   echo $ECHO_N "(cached) $ECHO_C" >&6
13579 fi
13580 ac_res=`eval echo '${'$as_ac_Header'}'`
13581                { echo "$as_me:$LINENO: result: $ac_res" >&5
13582 echo "${ECHO_T}$ac_res" >&6; }
13583 else
13584   # Is the header compilable?
13585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13587 cat >conftest.$ac_ext <<_ACEOF
13588 /* confdefs.h.  */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h.  */
13593 $ac_includes_default
13594 #include <$ac_header>
13595 _ACEOF
13596 rm -f conftest.$ac_objext
13597 if { (ac_try="$ac_compile"
13598 case "(($ac_try" in
13599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600   *) ac_try_echo=$ac_try;;
13601 esac
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603   (eval "$ac_compile") 2>conftest.er1
13604   ac_status=$?
13605   grep -v '^ *+' conftest.er1 >conftest.err
13606   rm -f conftest.er1
13607   cat conftest.err >&5
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } && {
13610          test -z "$ac_c_werror_flag" ||
13611          test ! -s conftest.err
13612        } && test -s conftest.$ac_objext; then
13613   ac_header_compiler=yes
13614 else
13615   echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13617
13618         ac_header_compiler=no
13619 fi
13620
13621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13623 echo "${ECHO_T}$ac_header_compiler" >&6; }
13624
13625 # Is the header present?
13626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13628 cat >conftest.$ac_ext <<_ACEOF
13629 /* confdefs.h.  */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h.  */
13634 #include <$ac_header>
13635 _ACEOF
13636 if { (ac_try="$ac_cpp conftest.$ac_ext"
13637 case "(($ac_try" in
13638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639   *) ac_try_echo=$ac_try;;
13640 esac
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13643   ac_status=$?
13644   grep -v '^ *+' conftest.er1 >conftest.err
13645   rm -f conftest.er1
13646   cat conftest.err >&5
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); } >/dev/null && {
13649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13650          test ! -s conftest.err
13651        }; then
13652   ac_header_preproc=yes
13653 else
13654   echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13656
13657   ac_header_preproc=no
13658 fi
13659
13660 rm -f conftest.err conftest.$ac_ext
13661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13662 echo "${ECHO_T}$ac_header_preproc" >&6; }
13663
13664 # So?  What about this header?
13665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13666   yes:no: )
13667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13671     ac_header_preproc=yes
13672     ;;
13673   no:yes:* )
13674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13686
13687     ;;
13688 esac
13689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13692   echo $ECHO_N "(cached) $ECHO_C" >&6
13693 else
13694   eval "$as_ac_Header=\$ac_header_preproc"
13695 fi
13696 ac_res=`eval echo '${'$as_ac_Header'}'`
13697                { echo "$as_me:$LINENO: result: $ac_res" >&5
13698 echo "${ECHO_T}$ac_res" >&6; }
13699
13700 fi
13701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13702   cat >>confdefs.h <<_ACEOF
13703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13704 _ACEOF
13705
13706 else
13707   case " $LIBOBJS " in
13708   *" err.$ac_objext "* ) ;;
13709   *) LIBOBJS="$LIBOBJS err.$ac_objext"
13710  ;;
13711 esac
13712
13713 fi
13714
13715 done
13716
13717 if test "$OS" != "ultrix"; then
13718     { echo "$as_me:$LINENO: checking POSIX termios" >&5
13719 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13720 if test "${ac_cv_sys_posix_termios+set}" = set; then
13721   echo $ECHO_N "(cached) $ECHO_C" >&6
13722 else
13723   cat >conftest.$ac_ext <<_ACEOF
13724 /* confdefs.h.  */
13725 _ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h.  */
13729 #include <sys/types.h>
13730 #include <unistd.h>
13731 #include <termios.h>
13732
13733 int
13734 main ()
13735 {
13736 /* SunOS 4.0.3 has termios.h but not the library calls.  */
13737    tcgetattr(0, 0);
13738   ;
13739   return 0;
13740 }
13741 _ACEOF
13742 rm -f conftest.$ac_objext conftest$ac_exeext
13743 if { (ac_try="$ac_link"
13744 case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_link") 2>conftest.er1
13750   ac_status=$?
13751   grep -v '^ *+' conftest.er1 >conftest.err
13752   rm -f conftest.er1
13753   cat conftest.err >&5
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } && {
13756          test -z "$ac_c_werror_flag" ||
13757          test ! -s conftest.err
13758        } && test -s conftest$ac_exeext &&
13759        $as_test_x conftest$ac_exeext; then
13760   ac_cv_sys_posix_termios=yes
13761 else
13762   echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13764
13765         ac_cv_sys_posix_termios=no
13766 fi
13767
13768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13769       conftest$ac_exeext conftest.$ac_ext
13770 fi
13771 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13772 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13773
13774     if test "$ac_cv_sys_posix_termios" = "yes"; then
13775         cat >>confdefs.h <<\_ACEOF
13776 #define HAVE_TERMIOS_H 1
13777 _ACEOF
13778
13779     else
13780
13781 for ac_header in termio.h
13782 do
13783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13785   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13788   echo $ECHO_N "(cached) $ECHO_C" >&6
13789 fi
13790 ac_res=`eval echo '${'$as_ac_Header'}'`
13791                { echo "$as_me:$LINENO: result: $ac_res" >&5
13792 echo "${ECHO_T}$ac_res" >&6; }
13793 else
13794   # Is the header compilable?
13795 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h.  */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h.  */
13803 $ac_includes_default
13804 #include <$ac_header>
13805 _ACEOF
13806 rm -f conftest.$ac_objext
13807 if { (ac_try="$ac_compile"
13808 case "(($ac_try" in
13809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810   *) ac_try_echo=$ac_try;;
13811 esac
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813   (eval "$ac_compile") 2>conftest.er1
13814   ac_status=$?
13815   grep -v '^ *+' conftest.er1 >conftest.err
13816   rm -f conftest.er1
13817   cat conftest.err >&5
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); } && {
13820          test -z "$ac_c_werror_flag" ||
13821          test ! -s conftest.err
13822        } && test -s conftest.$ac_objext; then
13823   ac_header_compiler=yes
13824 else
13825   echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828         ac_header_compiler=no
13829 fi
13830
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13833 echo "${ECHO_T}$ac_header_compiler" >&6; }
13834
13835 # Is the header present?
13836 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13838 cat >conftest.$ac_ext <<_ACEOF
13839 /* confdefs.h.  */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h.  */
13844 #include <$ac_header>
13845 _ACEOF
13846 if { (ac_try="$ac_cpp conftest.$ac_ext"
13847 case "(($ac_try" in
13848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849   *) ac_try_echo=$ac_try;;
13850 esac
13851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13853   ac_status=$?
13854   grep -v '^ *+' conftest.er1 >conftest.err
13855   rm -f conftest.er1
13856   cat conftest.err >&5
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); } >/dev/null && {
13859          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13860          test ! -s conftest.err
13861        }; then
13862   ac_header_preproc=yes
13863 else
13864   echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13866
13867   ac_header_preproc=no
13868 fi
13869
13870 rm -f conftest.err conftest.$ac_ext
13871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13872 echo "${ECHO_T}$ac_header_preproc" >&6; }
13873
13874 # So?  What about this header?
13875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13876   yes:no: )
13877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13881     ac_header_preproc=yes
13882     ;;
13883   no:yes:* )
13884     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13886     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13887 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13888     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13890     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13891 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13894     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13896
13897     ;;
13898 esac
13899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   eval "$as_ac_Header=\$ac_header_preproc"
13905 fi
13906 ac_res=`eval echo '${'$as_ac_Header'}'`
13907                { echo "$as_me:$LINENO: result: $ac_res" >&5
13908 echo "${ECHO_T}$ac_res" >&6; }
13909
13910 fi
13911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13912   cat >>confdefs.h <<_ACEOF
13913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13914 _ACEOF
13915
13916 fi
13917
13918 done
13919
13920     fi
13921 fi
13922 if test ${with_logincap-'no'} != "no"; then
13923
13924 for ac_header in login_cap.h
13925 do
13926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13928   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13931   echo $ECHO_N "(cached) $ECHO_C" >&6
13932 fi
13933 ac_res=`eval echo '${'$as_ac_Header'}'`
13934                { echo "$as_me:$LINENO: result: $ac_res" >&5
13935 echo "${ECHO_T}$ac_res" >&6; }
13936 else
13937   # Is the header compilable?
13938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13940 cat >conftest.$ac_ext <<_ACEOF
13941 /* confdefs.h.  */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h.  */
13946 $ac_includes_default
13947 #include <$ac_header>
13948 _ACEOF
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953   *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956   (eval "$ac_compile") 2>conftest.er1
13957   ac_status=$?
13958   grep -v '^ *+' conftest.er1 >conftest.err
13959   rm -f conftest.er1
13960   cat conftest.err >&5
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); } && {
13963          test -z "$ac_c_werror_flag" ||
13964          test ! -s conftest.err
13965        } && test -s conftest.$ac_objext; then
13966   ac_header_compiler=yes
13967 else
13968   echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13970
13971         ac_header_compiler=no
13972 fi
13973
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13976 echo "${ECHO_T}$ac_header_compiler" >&6; }
13977
13978 # Is the header present?
13979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13981 cat >conftest.$ac_ext <<_ACEOF
13982 /* confdefs.h.  */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h.  */
13987 #include <$ac_header>
13988 _ACEOF
13989 if { (ac_try="$ac_cpp conftest.$ac_ext"
13990 case "(($ac_try" in
13991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992   *) ac_try_echo=$ac_try;;
13993 esac
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13996   ac_status=$?
13997   grep -v '^ *+' conftest.er1 >conftest.err
13998   rm -f conftest.er1
13999   cat conftest.err >&5
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); } >/dev/null && {
14002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14003          test ! -s conftest.err
14004        }; then
14005   ac_header_preproc=yes
14006 else
14007   echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14009
14010   ac_header_preproc=no
14011 fi
14012
14013 rm -f conftest.err conftest.$ac_ext
14014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14015 echo "${ECHO_T}$ac_header_preproc" >&6; }
14016
14017 # So?  What about this header?
14018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14019   yes:no: )
14020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14024     ac_header_preproc=yes
14025     ;;
14026   no:yes:* )
14027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14039
14040     ;;
14041 esac
14042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14045   echo $ECHO_N "(cached) $ECHO_C" >&6
14046 else
14047   eval "$as_ac_Header=\$ac_header_preproc"
14048 fi
14049 ac_res=`eval echo '${'$as_ac_Header'}'`
14050                { echo "$as_me:$LINENO: result: $ac_res" >&5
14051 echo "${ECHO_T}$ac_res" >&6; }
14052
14053 fi
14054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14055   cat >>confdefs.h <<_ACEOF
14056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14057 _ACEOF
14058  LCMAN=""
14059         case "$OS" in
14060             freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
14061             ;;
14062         esac
14063
14064 fi
14065
14066 done
14067
14068 fi
14069 if test ${with_project-'no'} != "no"; then
14070     if test "${ac_cv_header_project_h+set}" = set; then
14071   { echo "$as_me:$LINENO: checking for project.h" >&5
14072 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14073 if test "${ac_cv_header_project_h+set}" = set; then
14074   echo $ECHO_N "(cached) $ECHO_C" >&6
14075 fi
14076 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14077 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14078 else
14079   # Is the header compilable?
14080 { echo "$as_me:$LINENO: checking project.h usability" >&5
14081 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
14082 cat >conftest.$ac_ext <<_ACEOF
14083 /* confdefs.h.  */
14084 _ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h.  */
14088 $ac_includes_default
14089 #include <project.h>
14090 _ACEOF
14091 rm -f conftest.$ac_objext
14092 if { (ac_try="$ac_compile"
14093 case "(($ac_try" in
14094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095   *) ac_try_echo=$ac_try;;
14096 esac
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098   (eval "$ac_compile") 2>conftest.er1
14099   ac_status=$?
14100   grep -v '^ *+' conftest.er1 >conftest.err
14101   rm -f conftest.er1
14102   cat conftest.err >&5
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); } && {
14105          test -z "$ac_c_werror_flag" ||
14106          test ! -s conftest.err
14107        } && test -s conftest.$ac_objext; then
14108   ac_header_compiler=yes
14109 else
14110   echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113         ac_header_compiler=no
14114 fi
14115
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14118 echo "${ECHO_T}$ac_header_compiler" >&6; }
14119
14120 # Is the header present?
14121 { echo "$as_me:$LINENO: checking project.h presence" >&5
14122 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129 #include <project.h>
14130 _ACEOF
14131 if { (ac_try="$ac_cpp conftest.$ac_ext"
14132 case "(($ac_try" in
14133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134   *) ac_try_echo=$ac_try;;
14135 esac
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14138   ac_status=$?
14139   grep -v '^ *+' conftest.er1 >conftest.err
14140   rm -f conftest.er1
14141   cat conftest.err >&5
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); } >/dev/null && {
14144          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14145          test ! -s conftest.err
14146        }; then
14147   ac_header_preproc=yes
14148 else
14149   echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14151
14152   ac_header_preproc=no
14153 fi
14154
14155 rm -f conftest.err conftest.$ac_ext
14156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14157 echo "${ECHO_T}$ac_header_preproc" >&6; }
14158
14159 # So?  What about this header?
14160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14161   yes:no: )
14162     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
14163 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14164     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
14165 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
14166     ac_header_preproc=yes
14167     ;;
14168   no:yes:* )
14169     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
14170 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
14171     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
14172 echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
14173     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
14174 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
14175     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
14176 echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14177     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
14178 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
14179     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
14180 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
14181
14182     ;;
14183 esac
14184 { echo "$as_me:$LINENO: checking for project.h" >&5
14185 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14186 if test "${ac_cv_header_project_h+set}" = set; then
14187   echo $ECHO_N "(cached) $ECHO_C" >&6
14188 else
14189   ac_cv_header_project_h=$ac_header_preproc
14190 fi
14191 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14192 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14193
14194 fi
14195 if test $ac_cv_header_project_h = yes; then
14196   cat >>confdefs.h <<\_ACEOF
14197 #define HAVE_PROJECT_H 1
14198 _ACEOF
14199
14200         SUDO_LIBS="${SUDO_LIBS} -lproject"
14201 else
14202   -
14203 fi
14204
14205
14206 fi
14207 { echo "$as_me:$LINENO: checking for mode_t" >&5
14208 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
14209 if test "${ac_cv_type_mode_t+set}" = set; then
14210   echo $ECHO_N "(cached) $ECHO_C" >&6
14211 else
14212   cat >conftest.$ac_ext <<_ACEOF
14213 /* confdefs.h.  */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h.  */
14218 $ac_includes_default
14219 typedef mode_t ac__type_new_;
14220 int
14221 main ()
14222 {
14223 if ((ac__type_new_ *) 0)
14224   return 0;
14225 if (sizeof (ac__type_new_))
14226   return 0;
14227   ;
14228   return 0;
14229 }
14230 _ACEOF
14231 rm -f conftest.$ac_objext
14232 if { (ac_try="$ac_compile"
14233 case "(($ac_try" in
14234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235   *) ac_try_echo=$ac_try;;
14236 esac
14237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238   (eval "$ac_compile") 2>conftest.er1
14239   ac_status=$?
14240   grep -v '^ *+' conftest.er1 >conftest.err
14241   rm -f conftest.er1
14242   cat conftest.err >&5
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); } && {
14245          test -z "$ac_c_werror_flag" ||
14246          test ! -s conftest.err
14247        } && test -s conftest.$ac_objext; then
14248   ac_cv_type_mode_t=yes
14249 else
14250   echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14252
14253         ac_cv_type_mode_t=no
14254 fi
14255
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 fi
14258 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14259 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
14260 if test $ac_cv_type_mode_t = yes; then
14261   :
14262 else
14263
14264 cat >>confdefs.h <<_ACEOF
14265 #define mode_t int
14266 _ACEOF
14267
14268 fi
14269
14270 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14271 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
14272 if test "${ac_cv_type_uid_t+set}" = set; then
14273   echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275   cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h.  */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h.  */
14281 #include <sys/types.h>
14282
14283 _ACEOF
14284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14285   $EGREP "uid_t" >/dev/null 2>&1; then
14286   ac_cv_type_uid_t=yes
14287 else
14288   ac_cv_type_uid_t=no
14289 fi
14290 rm -f conftest*
14291
14292 fi
14293 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14294 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
14295 if test $ac_cv_type_uid_t = no; then
14296
14297 cat >>confdefs.h <<\_ACEOF
14298 #define uid_t int
14299 _ACEOF
14300
14301
14302 cat >>confdefs.h <<\_ACEOF
14303 #define gid_t int
14304 _ACEOF
14305
14306 fi
14307
14308 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14309 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
14310 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14311   echo $ECHO_N "(cached) $ECHO_C" >&6
14312 else
14313   cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h.  */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h.  */
14319 #include <sys/types.h>
14320 #include <signal.h>
14321
14322 typedef sig_atomic_t ac__type_new_;
14323 int
14324 main ()
14325 {
14326 if ((ac__type_new_ *) 0)
14327   return 0;
14328 if (sizeof (ac__type_new_))
14329   return 0;
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.$ac_objext
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_compile") 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } && {
14348          test -z "$ac_c_werror_flag" ||
14349          test ! -s conftest.err
14350        } && test -s conftest.$ac_objext; then
14351   ac_cv_type_sig_atomic_t=yes
14352 else
14353   echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14355
14356         ac_cv_type_sig_atomic_t=no
14357 fi
14358
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 fi
14361 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14362 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14363 if test $ac_cv_type_sig_atomic_t = yes; then
14364
14365 cat >>confdefs.h <<_ACEOF
14366 #define HAVE_SIG_ATOMIC_T 1
14367 _ACEOF
14368
14369
14370 else
14371   cat >>confdefs.h <<\_ACEOF
14372 #define sig_atomic_t int
14373 _ACEOF
14374
14375 fi
14376
14377 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14378 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14379 if test "${ac_cv_type_sigaction_t+set}" = set; then
14380   echo $ECHO_N "(cached) $ECHO_C" >&6
14381 else
14382   cat >conftest.$ac_ext <<_ACEOF
14383 /* confdefs.h.  */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h.  */
14388 #include <sys/types.h>
14389 #include <signal.h>
14390
14391 typedef sigaction_t ac__type_new_;
14392 int
14393 main ()
14394 {
14395 if ((ac__type_new_ *) 0)
14396   return 0;
14397 if (sizeof (ac__type_new_))
14398   return 0;
14399   ;
14400   return 0;
14401 }
14402 _ACEOF
14403 rm -f conftest.$ac_objext
14404 if { (ac_try="$ac_compile"
14405 case "(($ac_try" in
14406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407   *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410   (eval "$ac_compile") 2>conftest.er1
14411   ac_status=$?
14412   grep -v '^ *+' conftest.er1 >conftest.err
14413   rm -f conftest.er1
14414   cat conftest.err >&5
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); } && {
14417          test -z "$ac_c_werror_flag" ||
14418          test ! -s conftest.err
14419        } && test -s conftest.$ac_objext; then
14420   ac_cv_type_sigaction_t=yes
14421 else
14422   echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425         ac_cv_type_sigaction_t=no
14426 fi
14427
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429 fi
14430 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14431 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14432 if test $ac_cv_type_sigaction_t = yes; then
14433
14434 cat >>confdefs.h <<_ACEOF
14435 #define HAVE_SIGACTION_T 1
14436 _ACEOF
14437
14438 cat >>confdefs.h <<\_ACEOF
14439 #define HAVE_SIGACTION_T 1
14440 _ACEOF
14441
14442 fi
14443
14444 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14445 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14446 if test "${ac_cv_type_struct_timespec+set}" = set; then
14447   echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449   cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h.  */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h.  */
14455 #include <sys/types.h>
14456 #if TIME_WITH_SYS_TIME
14457 # include <sys/time.h>
14458 #endif
14459 #include <time.h>
14460
14461 typedef struct timespec ac__type_new_;
14462 int
14463 main ()
14464 {
14465 if ((ac__type_new_ *) 0)
14466   return 0;
14467 if (sizeof (ac__type_new_))
14468   return 0;
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477   *) ac_try_echo=$ac_try;;
14478 esac
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480   (eval "$ac_compile") 2>conftest.er1
14481   ac_status=$?
14482   grep -v '^ *+' conftest.er1 >conftest.err
14483   rm -f conftest.er1
14484   cat conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); } && {
14487          test -z "$ac_c_werror_flag" ||
14488          test ! -s conftest.err
14489        } && test -s conftest.$ac_objext; then
14490   ac_cv_type_struct_timespec=yes
14491 else
14492   echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14494
14495         ac_cv_type_struct_timespec=no
14496 fi
14497
14498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499 fi
14500 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14501 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14502 if test $ac_cv_type_struct_timespec = yes; then
14503   cat >>confdefs.h <<\_ACEOF
14504 #define HAVE_TIMESPEC 1
14505 _ACEOF
14506
14507 fi
14508
14509 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14510 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14511 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14512   echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514   cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h.  */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h.  */
14520 #include <sys/types.h>
14521 #include <netinet/in.h>
14522
14523 typedef struct in6_addr ac__type_new_;
14524 int
14525 main ()
14526 {
14527 if ((ac__type_new_ *) 0)
14528   return 0;
14529 if (sizeof (ac__type_new_))
14530   return 0;
14531   ;
14532   return 0;
14533 }
14534 _ACEOF
14535 rm -f conftest.$ac_objext
14536 if { (ac_try="$ac_compile"
14537 case "(($ac_try" in
14538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539   *) ac_try_echo=$ac_try;;
14540 esac
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542   (eval "$ac_compile") 2>conftest.er1
14543   ac_status=$?
14544   grep -v '^ *+' conftest.er1 >conftest.err
14545   rm -f conftest.er1
14546   cat conftest.err >&5
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); } && {
14549          test -z "$ac_c_werror_flag" ||
14550          test ! -s conftest.err
14551        } && test -s conftest.$ac_objext; then
14552   ac_cv_type_struct_in6_addr=yes
14553 else
14554   echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14556
14557         ac_cv_type_struct_in6_addr=no
14558 fi
14559
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561 fi
14562 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14563 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14564 if test $ac_cv_type_struct_in6_addr = yes; then
14565
14566 cat >>confdefs.h <<_ACEOF
14567 #define HAVE_STRUCT_IN6_ADDR 1
14568 _ACEOF
14569
14570 cat >>confdefs.h <<\_ACEOF
14571 #define HAVE_IN6_ADDR 1
14572 _ACEOF
14573
14574 fi
14575
14576 { echo "$as_me:$LINENO: checking for size_t" >&5
14577 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14578 if test "${sudo_cv_type_size_t+set}" = set; then
14579   echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581   cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h.  */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h.  */
14587 #include <sys/types.h>
14588 #include <stdio.h>
14589 #if STDC_HEADERS
14590 #include <stdlib.h>
14591 #endif
14592 #if HAVE_UNISTD_H
14593 #include <unistd.h>
14594 #endif
14595 _ACEOF
14596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14597   $EGREP "size_t" >/dev/null 2>&1; then
14598   sudo_cv_type_size_t=yes
14599 else
14600   sudo_cv_type_size_t=no
14601 fi
14602 rm -f conftest*
14603
14604 fi
14605 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14606 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14607 if test $sudo_cv_type_size_t = no; then
14608
14609 cat >>confdefs.h <<\_ACEOF
14610 #define size_t int
14611 _ACEOF
14612
14613 fi
14614
14615 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14616 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14617 if test "${sudo_cv_type_ssize_t+set}" = set; then
14618   echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620   cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h.  */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h.  */
14626 #include <sys/types.h>
14627 #include <stdio.h>
14628 #if STDC_HEADERS
14629 #include <stdlib.h>
14630 #endif
14631 #if HAVE_UNISTD_H
14632 #include <unistd.h>
14633 #endif
14634 _ACEOF
14635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14636   $EGREP "ssize_t" >/dev/null 2>&1; then
14637   sudo_cv_type_ssize_t=yes
14638 else
14639   sudo_cv_type_ssize_t=no
14640 fi
14641 rm -f conftest*
14642
14643 fi
14644 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14645 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14646 if test $sudo_cv_type_ssize_t = no; then
14647
14648 cat >>confdefs.h <<\_ACEOF
14649 #define ssize_t int
14650 _ACEOF
14651
14652 fi
14653
14654 { echo "$as_me:$LINENO: checking for dev_t" >&5
14655 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
14656 if test "${sudo_cv_type_dev_t+set}" = set; then
14657   echo $ECHO_N "(cached) $ECHO_C" >&6
14658 else
14659   cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h.  */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h.  */
14665 #include <sys/types.h>
14666 #include <stdio.h>
14667 #if STDC_HEADERS
14668 #include <stdlib.h>
14669 #endif
14670 #if HAVE_UNISTD_H
14671 #include <unistd.h>
14672 #endif
14673 _ACEOF
14674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14675   $EGREP "dev_t" >/dev/null 2>&1; then
14676   sudo_cv_type_dev_t=yes
14677 else
14678   sudo_cv_type_dev_t=no
14679 fi
14680 rm -f conftest*
14681
14682 fi
14683 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
14684 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
14685 if test $sudo_cv_type_dev_t = no; then
14686
14687 cat >>confdefs.h <<\_ACEOF
14688 #define dev_t int
14689 _ACEOF
14690
14691 fi
14692
14693 { echo "$as_me:$LINENO: checking for ino_t" >&5
14694 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
14695 if test "${sudo_cv_type_ino_t+set}" = set; then
14696   echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698   cat >conftest.$ac_ext <<_ACEOF
14699 /* confdefs.h.  */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h.  */
14704 #include <sys/types.h>
14705 #include <stdio.h>
14706 #if STDC_HEADERS
14707 #include <stdlib.h>
14708 #endif
14709 #if HAVE_UNISTD_H
14710 #include <unistd.h>
14711 #endif
14712 _ACEOF
14713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14714   $EGREP "ino_t" >/dev/null 2>&1; then
14715   sudo_cv_type_ino_t=yes
14716 else
14717   sudo_cv_type_ino_t=no
14718 fi
14719 rm -f conftest*
14720
14721 fi
14722 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
14723 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
14724 if test $sudo_cv_type_ino_t = no; then
14725
14726 cat >>confdefs.h <<\_ACEOF
14727 #define ino_t unsigned int
14728 _ACEOF
14729
14730 fi
14731
14732 { echo "$as_me:$LINENO: checking for full void implementation" >&5
14733 echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6; }
14734 cat >conftest.$ac_ext <<_ACEOF
14735 /* confdefs.h.  */
14736 _ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h.  */
14740
14741 int
14742 main ()
14743 {
14744 void *foo;
14745 foo = (void *)0; (void *)"test";
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754   *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757   (eval "$ac_compile") 2>conftest.er1
14758   ac_status=$?
14759   grep -v '^ *+' conftest.er1 >conftest.err
14760   rm -f conftest.er1
14761   cat conftest.err >&5
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); } && {
14764          test -z "$ac_c_werror_flag" ||
14765          test ! -s conftest.err
14766        } && test -s conftest.$ac_objext; then
14767
14768 cat >>confdefs.h <<\_ACEOF
14769 #define VOID void
14770 _ACEOF
14771
14772 { echo "$as_me:$LINENO: result: yes" >&5
14773 echo "${ECHO_T}yes" >&6; }
14774 else
14775   echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778         cat >>confdefs.h <<\_ACEOF
14779 #define VOID char
14780 _ACEOF
14781
14782 { echo "$as_me:$LINENO: result: no" >&5
14783 echo "${ECHO_T}no" >&6; }
14784 fi
14785
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787
14788 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
14789 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
14790 if test "${sudo_cv_uid_t_len+set}" = set; then
14791   echo $ECHO_N "(cached) $ECHO_C" >&6
14792 else
14793   rm -f conftestdata
14794 if test "$cross_compiling" = yes; then
14795   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14796 See \`config.log' for more details." >&5
14797 echo "$as_me: error: cannot run test program while cross compiling
14798 See \`config.log' for more details." >&2;}
14799    { (exit 1); exit 1; }; }
14800 else
14801   cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h.  */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h.  */
14807 #include <stdio.h>
14808 #include <pwd.h>
14809 #include <limits.h>
14810 #include <sys/types.h>
14811 #include <sys/param.h>
14812 main() {
14813   FILE *f;
14814   char b[1024];
14815   uid_t u = (uid_t) -1;
14816
14817   if ((f = fopen("conftestdata", "w")) == NULL)
14818     exit(1);
14819
14820   (void) sprintf(b, "%lu", (unsigned long) u);
14821   (void) fprintf(f, "%d\n", strlen(b));
14822   (void) fclose(f);
14823   exit(0);
14824 }
14825 _ACEOF
14826 rm -f conftest$ac_exeext
14827 if { (ac_try="$ac_link"
14828 case "(($ac_try" in
14829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830   *) ac_try_echo=$ac_try;;
14831 esac
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833   (eval "$ac_link") 2>&5
14834   ac_status=$?
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14837   { (case "(($ac_try" in
14838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839   *) ac_try_echo=$ac_try;;
14840 esac
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842   (eval "$ac_try") 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; }; then
14846   sudo_cv_uid_t_len=`cat conftestdata`
14847 else
14848   echo "$as_me: program exited with status $ac_status" >&5
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852 ( exit $ac_status )
14853 sudo_cv_uid_t_len=10
14854 fi
14855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14856 fi
14857
14858
14859
14860 fi
14861
14862 rm -f conftestdata
14863 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
14864 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
14865
14866 cat >>confdefs.h <<_ACEOF
14867 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14868 _ACEOF
14869
14870
14871 { echo "$as_me:$LINENO: checking for long long" >&5
14872 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14873 if test "${ac_cv_type_long_long+set}" = set; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876   cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h.  */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h.  */
14882 $ac_includes_default
14883 typedef long long ac__type_new_;
14884 int
14885 main ()
14886 {
14887 if ((ac__type_new_ *) 0)
14888   return 0;
14889 if (sizeof (ac__type_new_))
14890   return 0;
14891   ;
14892   return 0;
14893 }
14894 _ACEOF
14895 rm -f conftest.$ac_objext
14896 if { (ac_try="$ac_compile"
14897 case "(($ac_try" in
14898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899   *) ac_try_echo=$ac_try;;
14900 esac
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902   (eval "$ac_compile") 2>conftest.er1
14903   ac_status=$?
14904   grep -v '^ *+' conftest.er1 >conftest.err
14905   rm -f conftest.er1
14906   cat conftest.err >&5
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); } && {
14909          test -z "$ac_c_werror_flag" ||
14910          test ! -s conftest.err
14911        } && test -s conftest.$ac_objext; then
14912   ac_cv_type_long_long=yes
14913 else
14914   echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14916
14917         ac_cv_type_long_long=no
14918 fi
14919
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921 fi
14922 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14923 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
14924 if test $ac_cv_type_long_long = yes; then
14925
14926 cat >>confdefs.h <<_ACEOF
14927 #define HAVE_LONG_LONG 1
14928 _ACEOF
14929
14930
14931 cat >>confdefs.h <<\_ACEOF
14932 #define HAVE_LONG_LONG 1
14933 _ACEOF
14934
14935 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
14936 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
14937 if test "${sudo_cv_type_long_is_quad+set}" = set; then
14938   echo $ECHO_N "(cached) $ECHO_C" >&6
14939 else
14940   if test "$cross_compiling" = yes; then
14941   sudo_cv_type_long_is_quad=no
14942 else
14943   cat >conftest.$ac_ext <<_ACEOF
14944 /* confdefs.h.  */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h.  */
14949
14950 main() {
14951 if (sizeof(long long) == sizeof(long)) exit(0);
14952 else exit(1);
14953 }
14954 _ACEOF
14955 rm -f conftest$ac_exeext
14956 if { (ac_try="$ac_link"
14957 case "(($ac_try" in
14958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959   *) ac_try_echo=$ac_try;;
14960 esac
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962   (eval "$ac_link") 2>&5
14963   ac_status=$?
14964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14966   { (case "(($ac_try" in
14967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968   *) ac_try_echo=$ac_try;;
14969 esac
14970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971   (eval "$ac_try") 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); }; }; then
14975   sudo_cv_type_long_is_quad=yes
14976 else
14977   echo "$as_me: program exited with status $ac_status" >&5
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14980
14981 ( exit $ac_status )
14982 sudo_cv_type_long_is_quad=no
14983 fi
14984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14985 fi
14986
14987
14988 rm -f core core.* *.core
14989 fi
14990 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
14991 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
14992 if test $sudo_cv_type_long_is_quad = yes; then
14993
14994 cat >>confdefs.h <<\_ACEOF
14995 #define LONG_IS_QUAD 1
14996 _ACEOF
14997
14998 fi
14999
15000 fi
15001
15002 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
15003 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
15004 if test "${sudo_cv_sock_sa_len+set}" = set; then
15005   echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007   if test "$cross_compiling" = yes; then
15008   sudo_cv_sock_sa_len=no
15009 else
15010   cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h.  */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h.  */
15016 #include <sys/types.h>
15017 #include <sys/socket.h>
15018 main() {
15019 struct sockaddr s;
15020 s.sa_len = 0;
15021 exit(0);
15022 }
15023 _ACEOF
15024 rm -f conftest$ac_exeext
15025 if { (ac_try="$ac_link"
15026 case "(($ac_try" in
15027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028   *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031   (eval "$ac_link") 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15035   { (case "(($ac_try" in
15036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037   *) ac_try_echo=$ac_try;;
15038 esac
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040   (eval "$ac_try") 2>&5
15041   ac_status=$?
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); }; }; then
15044   sudo_cv_sock_sa_len=yes
15045 else
15046   echo "$as_me: program exited with status $ac_status" >&5
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15049
15050 ( exit $ac_status )
15051 sudo_cv_sock_sa_len=no
15052 fi
15053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15054 fi
15055
15056
15057 rm -f core core.* *.core
15058 fi
15059 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
15060 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
15061 if test $sudo_cv_sock_sa_len = yes; then
15062
15063 cat >>confdefs.h <<\_ACEOF
15064 #define HAVE_SA_LEN 1
15065 _ACEOF
15066
15067 fi
15068
15069 case "$DEFS" in
15070     *"RETSIGTYPE"*)     ;;
15071     *)                  { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15072 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15073 if test "${ac_cv_type_signal+set}" = set; then
15074   echo $ECHO_N "(cached) $ECHO_C" >&6
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 #include <sys/types.h>
15083 #include <signal.h>
15084
15085 int
15086 main ()
15087 {
15088 return *(signal (0, 0)) (0) == 1;
15089   ;
15090   return 0;
15091 }
15092 _ACEOF
15093 rm -f conftest.$ac_objext
15094 if { (ac_try="$ac_compile"
15095 case "(($ac_try" in
15096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097   *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100   (eval "$ac_compile") 2>conftest.er1
15101   ac_status=$?
15102   grep -v '^ *+' conftest.er1 >conftest.err
15103   rm -f conftest.er1
15104   cat conftest.err >&5
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } && {
15107          test -z "$ac_c_werror_flag" ||
15108          test ! -s conftest.err
15109        } && test -s conftest.$ac_objext; then
15110   ac_cv_type_signal=int
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115         ac_cv_type_signal=void
15116 fi
15117
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 fi
15120 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15121 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15122
15123 cat >>confdefs.h <<_ACEOF
15124 #define RETSIGTYPE $ac_cv_type_signal
15125 _ACEOF
15126
15127 ;;
15128 esac
15129 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15130 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
15131 if test "${ac_cv_type_getgroups+set}" = set; then
15132   echo $ECHO_N "(cached) $ECHO_C" >&6
15133 else
15134   if test "$cross_compiling" = yes; then
15135   ac_cv_type_getgroups=cross
15136 else
15137   cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h.  */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h.  */
15143 /* Thanks to Mike Rendell for this test.  */
15144 $ac_includes_default
15145 #define NGID 256
15146 #undef MAX
15147 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15148
15149 int
15150 main ()
15151 {
15152   gid_t gidset[NGID];
15153   int i, n;
15154   union { gid_t gval; long int lval; }  val;
15155
15156   val.lval = -1;
15157   for (i = 0; i < NGID; i++)
15158     gidset[i] = val.gval;
15159   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15160                  gidset);
15161   /* Exit non-zero if getgroups seems to require an array of ints.  This
15162      happens when gid_t is short int but getgroups modifies an array
15163      of ints.  */
15164   return n > 0 && gidset[n] != val.gval;
15165 }
15166 _ACEOF
15167 rm -f conftest$ac_exeext
15168 if { (ac_try="$ac_link"
15169 case "(($ac_try" in
15170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171   *) ac_try_echo=$ac_try;;
15172 esac
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174   (eval "$ac_link") 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15178   { (case "(($ac_try" in
15179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180   *) ac_try_echo=$ac_try;;
15181 esac
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183   (eval "$ac_try") 2>&5
15184   ac_status=$?
15185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); }; }; then
15187   ac_cv_type_getgroups=gid_t
15188 else
15189   echo "$as_me: program exited with status $ac_status" >&5
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15192
15193 ( exit $ac_status )
15194 ac_cv_type_getgroups=int
15195 fi
15196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15197 fi
15198
15199
15200 if test $ac_cv_type_getgroups = cross; then
15201         cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h.  */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h.  */
15207 #include <unistd.h>
15208
15209 _ACEOF
15210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15211   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15212   ac_cv_type_getgroups=gid_t
15213 else
15214   ac_cv_type_getgroups=int
15215 fi
15216 rm -f conftest*
15217
15218 fi
15219 fi
15220 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15221 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
15222
15223 cat >>confdefs.h <<_ACEOF
15224 #define GETGROUPS_T $ac_cv_type_getgroups
15225 _ACEOF
15226
15227
15228 { echo "$as_me:$LINENO: checking for size_t" >&5
15229 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15230 if test "${ac_cv_type_size_t+set}" = set; then
15231   echo $ECHO_N "(cached) $ECHO_C" >&6
15232 else
15233   cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h.  */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h.  */
15239 $ac_includes_default
15240 typedef size_t ac__type_new_;
15241 int
15242 main ()
15243 {
15244 if ((ac__type_new_ *) 0)
15245   return 0;
15246 if (sizeof (ac__type_new_))
15247   return 0;
15248   ;
15249   return 0;
15250 }
15251 _ACEOF
15252 rm -f conftest.$ac_objext
15253 if { (ac_try="$ac_compile"
15254 case "(($ac_try" in
15255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256   *) ac_try_echo=$ac_try;;
15257 esac
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259   (eval "$ac_compile") 2>conftest.er1
15260   ac_status=$?
15261   grep -v '^ *+' conftest.er1 >conftest.err
15262   rm -f conftest.er1
15263   cat conftest.err >&5
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); } && {
15266          test -z "$ac_c_werror_flag" ||
15267          test ! -s conftest.err
15268        } && test -s conftest.$ac_objext; then
15269   ac_cv_type_size_t=yes
15270 else
15271   echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274         ac_cv_type_size_t=no
15275 fi
15276
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 fi
15279 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15280 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15281 if test $ac_cv_type_size_t = yes; then
15282   :
15283 else
15284
15285 cat >>confdefs.h <<_ACEOF
15286 #define size_t unsigned int
15287 _ACEOF
15288
15289 fi
15290
15291 { echo "$as_me:$LINENO: checking for getgroups" >&5
15292 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
15293 if test "${ac_cv_func_getgroups+set}" = set; then
15294   echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296   cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h.  */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h.  */
15302 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15304 #define getgroups innocuous_getgroups
15305
15306 /* System header to define __stub macros and hopefully few prototypes,
15307     which can conflict with char getgroups (); below.
15308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15309     <limits.h> exists even on freestanding compilers.  */
15310
15311 #ifdef __STDC__
15312 # include <limits.h>
15313 #else
15314 # include <assert.h>
15315 #endif
15316
15317 #undef getgroups
15318
15319 /* Override any GCC internal prototype to avoid an error.
15320    Use char because int might match the return type of a GCC
15321    builtin and then its argument prototype would still apply.  */
15322 #ifdef __cplusplus
15323 extern "C"
15324 #endif
15325 char getgroups ();
15326 /* The GNU C library defines this for functions which it implements
15327     to always fail with ENOSYS.  Some functions are actually named
15328     something starting with __ and the normal name is an alias.  */
15329 #if defined __stub_getgroups || defined __stub___getgroups
15330 choke me
15331 #endif
15332
15333 int
15334 main ()
15335 {
15336 return getgroups ();
15337   ;
15338   return 0;
15339 }
15340 _ACEOF
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (ac_try="$ac_link"
15343 case "(($ac_try" in
15344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345   *) ac_try_echo=$ac_try;;
15346 esac
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348   (eval "$ac_link") 2>conftest.er1
15349   ac_status=$?
15350   grep -v '^ *+' conftest.er1 >conftest.err
15351   rm -f conftest.er1
15352   cat conftest.err >&5
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); } && {
15355          test -z "$ac_c_werror_flag" ||
15356          test ! -s conftest.err
15357        } && test -s conftest$ac_exeext &&
15358        $as_test_x conftest$ac_exeext; then
15359   ac_cv_func_getgroups=yes
15360 else
15361   echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15363
15364         ac_cv_func_getgroups=no
15365 fi
15366
15367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15368       conftest$ac_exeext conftest.$ac_ext
15369 fi
15370 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15371 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15372
15373
15374 # If we don't yet have getgroups, see if it's in -lbsd.
15375 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15376 ac_save_LIBS=$LIBS
15377 if test $ac_cv_func_getgroups = no; then
15378   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15379 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15380 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15381   echo $ECHO_N "(cached) $ECHO_C" >&6
15382 else
15383   ac_check_lib_save_LIBS=$LIBS
15384 LIBS="-lbsd  $LIBS"
15385 cat >conftest.$ac_ext <<_ACEOF
15386 /* confdefs.h.  */
15387 _ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h.  */
15391
15392 /* Override any GCC internal prototype to avoid an error.
15393    Use char because int might match the return type of a GCC
15394    builtin and then its argument prototype would still apply.  */
15395 #ifdef __cplusplus
15396 extern "C"
15397 #endif
15398 char getgroups ();
15399 int
15400 main ()
15401 {
15402 return getgroups ();
15403   ;
15404   return 0;
15405 }
15406 _ACEOF
15407 rm -f conftest.$ac_objext conftest$ac_exeext
15408 if { (ac_try="$ac_link"
15409 case "(($ac_try" in
15410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411   *) ac_try_echo=$ac_try;;
15412 esac
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414   (eval "$ac_link") 2>conftest.er1
15415   ac_status=$?
15416   grep -v '^ *+' conftest.er1 >conftest.err
15417   rm -f conftest.er1
15418   cat conftest.err >&5
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); } && {
15421          test -z "$ac_c_werror_flag" ||
15422          test ! -s conftest.err
15423        } && test -s conftest$ac_exeext &&
15424        $as_test_x conftest$ac_exeext; then
15425   ac_cv_lib_bsd_getgroups=yes
15426 else
15427   echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430         ac_cv_lib_bsd_getgroups=no
15431 fi
15432
15433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15434       conftest$ac_exeext conftest.$ac_ext
15435 LIBS=$ac_check_lib_save_LIBS
15436 fi
15437 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15438 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15439 if test $ac_cv_lib_bsd_getgroups = yes; then
15440   GETGROUPS_LIB=-lbsd
15441 fi
15442
15443 fi
15444
15445 # Run the program to test the functionality of the system-supplied
15446 # getgroups function only if there is such a function.
15447 if test $ac_cv_func_getgroups = yes; then
15448   { echo "$as_me:$LINENO: checking for working getgroups" >&5
15449 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15450 if test "${ac_cv_func_getgroups_works+set}" = set; then
15451   echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453   if test "$cross_compiling" = yes; then
15454   ac_cv_func_getgroups_works=no
15455 else
15456   cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h.  */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h.  */
15462 $ac_includes_default
15463 int
15464 main ()
15465 {
15466 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
15467        return getgroups (0, 0) == -1;
15468   ;
15469   return 0;
15470 }
15471 _ACEOF
15472 rm -f conftest$ac_exeext
15473 if { (ac_try="$ac_link"
15474 case "(($ac_try" in
15475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476   *) ac_try_echo=$ac_try;;
15477 esac
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479   (eval "$ac_link") 2>&5
15480   ac_status=$?
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15483   { (case "(($ac_try" in
15484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485   *) ac_try_echo=$ac_try;;
15486 esac
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488   (eval "$ac_try") 2>&5
15489   ac_status=$?
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); }; }; then
15492   ac_cv_func_getgroups_works=yes
15493 else
15494   echo "$as_me: program exited with status $ac_status" >&5
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15497
15498 ( exit $ac_status )
15499 ac_cv_func_getgroups_works=no
15500 fi
15501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15502 fi
15503
15504
15505
15506 fi
15507 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15508 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15509   if test $ac_cv_func_getgroups_works = yes; then
15510
15511 cat >>confdefs.h <<\_ACEOF
15512 #define HAVE_GETGROUPS 1
15513 _ACEOF
15514
15515   fi
15516 fi
15517 LIBS=$ac_save_LIBS
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15536                strftime setrlimit initgroups getgroups fstat gettimeofday \
15537                setlocale getaddrinfo setsid
15538 do
15539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15543   echo $ECHO_N "(cached) $ECHO_C" >&6
15544 else
15545   cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h.  */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h.  */
15551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15553 #define $ac_func innocuous_$ac_func
15554
15555 /* System header to define __stub macros and hopefully few prototypes,
15556     which can conflict with char $ac_func (); below.
15557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15558     <limits.h> exists even on freestanding compilers.  */
15559
15560 #ifdef __STDC__
15561 # include <limits.h>
15562 #else
15563 # include <assert.h>
15564 #endif
15565
15566 #undef $ac_func
15567
15568 /* Override any GCC internal prototype to avoid an error.
15569    Use char because int might match the return type of a GCC
15570    builtin and then its argument prototype would still apply.  */
15571 #ifdef __cplusplus
15572 extern "C"
15573 #endif
15574 char $ac_func ();
15575 /* The GNU C library defines this for functions which it implements
15576     to always fail with ENOSYS.  Some functions are actually named
15577     something starting with __ and the normal name is an alias.  */
15578 #if defined __stub_$ac_func || defined __stub___$ac_func
15579 choke me
15580 #endif
15581
15582 int
15583 main ()
15584 {
15585 return $ac_func ();
15586   ;
15587   return 0;
15588 }
15589 _ACEOF
15590 rm -f conftest.$ac_objext conftest$ac_exeext
15591 if { (ac_try="$ac_link"
15592 case "(($ac_try" in
15593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594   *) ac_try_echo=$ac_try;;
15595 esac
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597   (eval "$ac_link") 2>conftest.er1
15598   ac_status=$?
15599   grep -v '^ *+' conftest.er1 >conftest.err
15600   rm -f conftest.er1
15601   cat conftest.err >&5
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); } && {
15604          test -z "$ac_c_werror_flag" ||
15605          test ! -s conftest.err
15606        } && test -s conftest$ac_exeext &&
15607        $as_test_x conftest$ac_exeext; then
15608   eval "$as_ac_var=yes"
15609 else
15610   echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613         eval "$as_ac_var=no"
15614 fi
15615
15616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15617       conftest$ac_exeext conftest.$ac_ext
15618 fi
15619 ac_res=`eval echo '${'$as_ac_var'}'`
15620                { echo "$as_me:$LINENO: result: $ac_res" >&5
15621 echo "${ECHO_T}$ac_res" >&6; }
15622 if test `eval echo '${'$as_ac_var'}'` = yes; then
15623   cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15625 _ACEOF
15626
15627 fi
15628 done
15629
15630 if test -z "$SKIP_SETRESUID"; then
15631
15632 for ac_func in setresuid
15633 do
15634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15638   echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640   cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h.  */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h.  */
15646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15648 #define $ac_func innocuous_$ac_func
15649
15650 /* System header to define __stub macros and hopefully few prototypes,
15651     which can conflict with char $ac_func (); below.
15652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15653     <limits.h> exists even on freestanding compilers.  */
15654
15655 #ifdef __STDC__
15656 # include <limits.h>
15657 #else
15658 # include <assert.h>
15659 #endif
15660
15661 #undef $ac_func
15662
15663 /* Override any GCC internal prototype to avoid an error.
15664    Use char because int might match the return type of a GCC
15665    builtin and then its argument prototype would still apply.  */
15666 #ifdef __cplusplus
15667 extern "C"
15668 #endif
15669 char $ac_func ();
15670 /* The GNU C library defines this for functions which it implements
15671     to always fail with ENOSYS.  Some functions are actually named
15672     something starting with __ and the normal name is an alias.  */
15673 #if defined __stub_$ac_func || defined __stub___$ac_func
15674 choke me
15675 #endif
15676
15677 int
15678 main ()
15679 {
15680 return $ac_func ();
15681   ;
15682   return 0;
15683 }
15684 _ACEOF
15685 rm -f conftest.$ac_objext conftest$ac_exeext
15686 if { (ac_try="$ac_link"
15687 case "(($ac_try" in
15688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689   *) ac_try_echo=$ac_try;;
15690 esac
15691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692   (eval "$ac_link") 2>conftest.er1
15693   ac_status=$?
15694   grep -v '^ *+' conftest.er1 >conftest.err
15695   rm -f conftest.er1
15696   cat conftest.err >&5
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); } && {
15699          test -z "$ac_c_werror_flag" ||
15700          test ! -s conftest.err
15701        } && test -s conftest$ac_exeext &&
15702        $as_test_x conftest$ac_exeext; then
15703   eval "$as_ac_var=yes"
15704 else
15705   echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708         eval "$as_ac_var=no"
15709 fi
15710
15711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15712       conftest$ac_exeext conftest.$ac_ext
15713 fi
15714 ac_res=`eval echo '${'$as_ac_var'}'`
15715                { echo "$as_me:$LINENO: result: $ac_res" >&5
15716 echo "${ECHO_T}$ac_res" >&6; }
15717 if test `eval echo '${'$as_ac_var'}'` = yes; then
15718   cat >>confdefs.h <<_ACEOF
15719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15720 _ACEOF
15721  SKIP_SETREUID=yes
15722 fi
15723 done
15724
15725 fi
15726 if test -z "$SKIP_SETREUID"; then
15727
15728 for ac_func in setreuid
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  SKIP_SETEUID=yes
15818 fi
15819 done
15820
15821 fi
15822 if test -z "$SKIP_SETEUID"; then
15823
15824 for ac_func in seteuid
15825 do
15826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15830   echo $ECHO_N "(cached) $ECHO_C" >&6
15831 else
15832   cat >conftest.$ac_ext <<_ACEOF
15833 /* confdefs.h.  */
15834 _ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h.  */
15838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15840 #define $ac_func innocuous_$ac_func
15841
15842 /* System header to define __stub macros and hopefully few prototypes,
15843     which can conflict with char $ac_func (); below.
15844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15845     <limits.h> exists even on freestanding compilers.  */
15846
15847 #ifdef __STDC__
15848 # include <limits.h>
15849 #else
15850 # include <assert.h>
15851 #endif
15852
15853 #undef $ac_func
15854
15855 /* Override any GCC internal prototype to avoid an error.
15856    Use char because int might match the return type of a GCC
15857    builtin and then its argument prototype would still apply.  */
15858 #ifdef __cplusplus
15859 extern "C"
15860 #endif
15861 char $ac_func ();
15862 /* The GNU C library defines this for functions which it implements
15863     to always fail with ENOSYS.  Some functions are actually named
15864     something starting with __ and the normal name is an alias.  */
15865 #if defined __stub_$ac_func || defined __stub___$ac_func
15866 choke me
15867 #endif
15868
15869 int
15870 main ()
15871 {
15872 return $ac_func ();
15873   ;
15874   return 0;
15875 }
15876 _ACEOF
15877 rm -f conftest.$ac_objext conftest$ac_exeext
15878 if { (ac_try="$ac_link"
15879 case "(($ac_try" in
15880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881   *) ac_try_echo=$ac_try;;
15882 esac
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884   (eval "$ac_link") 2>conftest.er1
15885   ac_status=$?
15886   grep -v '^ *+' conftest.er1 >conftest.err
15887   rm -f conftest.er1
15888   cat conftest.err >&5
15889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); } && {
15891          test -z "$ac_c_werror_flag" ||
15892          test ! -s conftest.err
15893        } && test -s conftest$ac_exeext &&
15894        $as_test_x conftest$ac_exeext; then
15895   eval "$as_ac_var=yes"
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900         eval "$as_ac_var=no"
15901 fi
15902
15903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15904       conftest$ac_exeext conftest.$ac_ext
15905 fi
15906 ac_res=`eval echo '${'$as_ac_var'}'`
15907                { echo "$as_me:$LINENO: result: $ac_res" >&5
15908 echo "${ECHO_T}$ac_res" >&6; }
15909 if test `eval echo '${'$as_ac_var'}'` = yes; then
15910   cat >>confdefs.h <<_ACEOF
15911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15912 _ACEOF
15913
15914 fi
15915 done
15916
15917 fi
15918 if test X"$with_interfaces" != X"no"; then
15919
15920 for ac_func in getifaddrs
15921 do
15922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15926   echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928   cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h.  */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h.  */
15934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15936 #define $ac_func innocuous_$ac_func
15937
15938 /* System header to define __stub macros and hopefully few prototypes,
15939     which can conflict with char $ac_func (); below.
15940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15941     <limits.h> exists even on freestanding compilers.  */
15942
15943 #ifdef __STDC__
15944 # include <limits.h>
15945 #else
15946 # include <assert.h>
15947 #endif
15948
15949 #undef $ac_func
15950
15951 /* Override any GCC internal prototype to avoid an error.
15952    Use char because int might match the return type of a GCC
15953    builtin and then its argument prototype would still apply.  */
15954 #ifdef __cplusplus
15955 extern "C"
15956 #endif
15957 char $ac_func ();
15958 /* The GNU C library defines this for functions which it implements
15959     to always fail with ENOSYS.  Some functions are actually named
15960     something starting with __ and the normal name is an alias.  */
15961 #if defined __stub_$ac_func || defined __stub___$ac_func
15962 choke me
15963 #endif
15964
15965 int
15966 main ()
15967 {
15968 return $ac_func ();
15969   ;
15970   return 0;
15971 }
15972 _ACEOF
15973 rm -f conftest.$ac_objext conftest$ac_exeext
15974 if { (ac_try="$ac_link"
15975 case "(($ac_try" in
15976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977   *) ac_try_echo=$ac_try;;
15978 esac
15979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980   (eval "$ac_link") 2>conftest.er1
15981   ac_status=$?
15982   grep -v '^ *+' conftest.er1 >conftest.err
15983   rm -f conftest.er1
15984   cat conftest.err >&5
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); } && {
15987          test -z "$ac_c_werror_flag" ||
15988          test ! -s conftest.err
15989        } && test -s conftest$ac_exeext &&
15990        $as_test_x conftest$ac_exeext; then
15991   eval "$as_ac_var=yes"
15992 else
15993   echo "$as_me: failed program was:" >&5
15994 sed 's/^/| /' conftest.$ac_ext >&5
15995
15996         eval "$as_ac_var=no"
15997 fi
15998
15999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16000       conftest$ac_exeext conftest.$ac_ext
16001 fi
16002 ac_res=`eval echo '${'$as_ac_var'}'`
16003                { echo "$as_me:$LINENO: result: $ac_res" >&5
16004 echo "${ECHO_T}$ac_res" >&6; }
16005 if test `eval echo '${'$as_ac_var'}'` = yes; then
16006   cat >>confdefs.h <<_ACEOF
16007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16008 _ACEOF
16009
16010 for ac_func in freeifaddrs
16011 do
16012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16016   echo $ECHO_N "(cached) $ECHO_C" >&6
16017 else
16018   cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h.  */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h.  */
16024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16026 #define $ac_func innocuous_$ac_func
16027
16028 /* System header to define __stub macros and hopefully few prototypes,
16029     which can conflict with char $ac_func (); below.
16030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16031     <limits.h> exists even on freestanding compilers.  */
16032
16033 #ifdef __STDC__
16034 # include <limits.h>
16035 #else
16036 # include <assert.h>
16037 #endif
16038
16039 #undef $ac_func
16040
16041 /* Override any GCC internal prototype to avoid an error.
16042    Use char because int might match the return type of a GCC
16043    builtin and then its argument prototype would still apply.  */
16044 #ifdef __cplusplus
16045 extern "C"
16046 #endif
16047 char $ac_func ();
16048 /* The GNU C library defines this for functions which it implements
16049     to always fail with ENOSYS.  Some functions are actually named
16050     something starting with __ and the normal name is an alias.  */
16051 #if defined __stub_$ac_func || defined __stub___$ac_func
16052 choke me
16053 #endif
16054
16055 int
16056 main ()
16057 {
16058 return $ac_func ();
16059   ;
16060   return 0;
16061 }
16062 _ACEOF
16063 rm -f conftest.$ac_objext conftest$ac_exeext
16064 if { (ac_try="$ac_link"
16065 case "(($ac_try" in
16066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067   *) ac_try_echo=$ac_try;;
16068 esac
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070   (eval "$ac_link") 2>conftest.er1
16071   ac_status=$?
16072   grep -v '^ *+' conftest.er1 >conftest.err
16073   rm -f conftest.er1
16074   cat conftest.err >&5
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); } && {
16077          test -z "$ac_c_werror_flag" ||
16078          test ! -s conftest.err
16079        } && test -s conftest$ac_exeext &&
16080        $as_test_x conftest$ac_exeext; then
16081   eval "$as_ac_var=yes"
16082 else
16083   echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086         eval "$as_ac_var=no"
16087 fi
16088
16089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16090       conftest$ac_exeext conftest.$ac_ext
16091 fi
16092 ac_res=`eval echo '${'$as_ac_var'}'`
16093                { echo "$as_me:$LINENO: result: $ac_res" >&5
16094 echo "${ECHO_T}$ac_res" >&6; }
16095 if test `eval echo '${'$as_ac_var'}'` = yes; then
16096   cat >>confdefs.h <<_ACEOF
16097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16098 _ACEOF
16099
16100 fi
16101 done
16102
16103 fi
16104 done
16105
16106 fi
16107 if test -z "$BROKEN_GETCWD"; then
16108
16109 for ac_func in getcwd
16110 do
16111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16115   echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
16117   cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h.  */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h.  */
16123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16125 #define $ac_func innocuous_$ac_func
16126
16127 /* System header to define __stub macros and hopefully few prototypes,
16128     which can conflict with char $ac_func (); below.
16129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16130     <limits.h> exists even on freestanding compilers.  */
16131
16132 #ifdef __STDC__
16133 # include <limits.h>
16134 #else
16135 # include <assert.h>
16136 #endif
16137
16138 #undef $ac_func
16139
16140 /* Override any GCC internal prototype to avoid an error.
16141    Use char because int might match the return type of a GCC
16142    builtin and then its argument prototype would still apply.  */
16143 #ifdef __cplusplus
16144 extern "C"
16145 #endif
16146 char $ac_func ();
16147 /* The GNU C library defines this for functions which it implements
16148     to always fail with ENOSYS.  Some functions are actually named
16149     something starting with __ and the normal name is an alias.  */
16150 #if defined __stub_$ac_func || defined __stub___$ac_func
16151 choke me
16152 #endif
16153
16154 int
16155 main ()
16156 {
16157 return $ac_func ();
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (ac_try="$ac_link"
16164 case "(($ac_try" in
16165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166   *) ac_try_echo=$ac_try;;
16167 esac
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169   (eval "$ac_link") 2>conftest.er1
16170   ac_status=$?
16171   grep -v '^ *+' conftest.er1 >conftest.err
16172   rm -f conftest.er1
16173   cat conftest.err >&5
16174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); } && {
16176          test -z "$ac_c_werror_flag" ||
16177          test ! -s conftest.err
16178        } && test -s conftest$ac_exeext &&
16179        $as_test_x conftest$ac_exeext; then
16180   eval "$as_ac_var=yes"
16181 else
16182   echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16184
16185         eval "$as_ac_var=no"
16186 fi
16187
16188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16189       conftest$ac_exeext conftest.$ac_ext
16190 fi
16191 ac_res=`eval echo '${'$as_ac_var'}'`
16192                { echo "$as_me:$LINENO: result: $ac_res" >&5
16193 echo "${ECHO_T}$ac_res" >&6; }
16194 if test `eval echo '${'$as_ac_var'}'` = yes; then
16195   cat >>confdefs.h <<_ACEOF
16196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16197 _ACEOF
16198
16199 else
16200   case " $LIBOBJS " in
16201   *" $ac_func.$ac_objext "* ) ;;
16202   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16203  ;;
16204 esac
16205
16206 fi
16207 done
16208
16209
16210 fi
16211
16212 for ac_func in glob
16213 do
16214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16218   echo $ECHO_N "(cached) $ECHO_C" >&6
16219 else
16220   cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h.  */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h.  */
16226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16228 #define $ac_func innocuous_$ac_func
16229
16230 /* System header to define __stub macros and hopefully few prototypes,
16231     which can conflict with char $ac_func (); below.
16232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16233     <limits.h> exists even on freestanding compilers.  */
16234
16235 #ifdef __STDC__
16236 # include <limits.h>
16237 #else
16238 # include <assert.h>
16239 #endif
16240
16241 #undef $ac_func
16242
16243 /* Override any GCC internal prototype to avoid an error.
16244    Use char because int might match the return type of a GCC
16245    builtin and then its argument prototype would still apply.  */
16246 #ifdef __cplusplus
16247 extern "C"
16248 #endif
16249 char $ac_func ();
16250 /* The GNU C library defines this for functions which it implements
16251     to always fail with ENOSYS.  Some functions are actually named
16252     something starting with __ and the normal name is an alias.  */
16253 #if defined __stub_$ac_func || defined __stub___$ac_func
16254 choke me
16255 #endif
16256
16257 int
16258 main ()
16259 {
16260 return $ac_func ();
16261   ;
16262   return 0;
16263 }
16264 _ACEOF
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (ac_try="$ac_link"
16267 case "(($ac_try" in
16268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269   *) ac_try_echo=$ac_try;;
16270 esac
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272   (eval "$ac_link") 2>conftest.er1
16273   ac_status=$?
16274   grep -v '^ *+' conftest.er1 >conftest.err
16275   rm -f conftest.er1
16276   cat conftest.err >&5
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); } && {
16279          test -z "$ac_c_werror_flag" ||
16280          test ! -s conftest.err
16281        } && test -s conftest$ac_exeext &&
16282        $as_test_x conftest$ac_exeext; then
16283   eval "$as_ac_var=yes"
16284 else
16285   echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288         eval "$as_ac_var=no"
16289 fi
16290
16291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16292       conftest$ac_exeext conftest.$ac_ext
16293 fi
16294 ac_res=`eval echo '${'$as_ac_var'}'`
16295                { echo "$as_me:$LINENO: result: $ac_res" >&5
16296 echo "${ECHO_T}$ac_res" >&6; }
16297 if test `eval echo '${'$as_ac_var'}'` = yes; then
16298   cat >>confdefs.h <<_ACEOF
16299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16300 _ACEOF
16301  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16302 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
16303 cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h.  */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h.  */
16309 #include <glob.h>
16310 int
16311 main ()
16312 {
16313 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16314   ;
16315   return 0;
16316 }
16317 _ACEOF
16318 rm -f conftest.$ac_objext
16319 if { (ac_try="$ac_compile"
16320 case "(($ac_try" in
16321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322   *) ac_try_echo=$ac_try;;
16323 esac
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325   (eval "$ac_compile") 2>conftest.er1
16326   ac_status=$?
16327   grep -v '^ *+' conftest.er1 >conftest.err
16328   rm -f conftest.er1
16329   cat conftest.err >&5
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); } && {
16332          test -z "$ac_c_werror_flag" ||
16333          test ! -s conftest.err
16334        } && test -s conftest.$ac_objext; then
16335   cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_EXTENDED_GLOB 1
16337 _ACEOF
16338
16339     { echo "$as_me:$LINENO: result: yes" >&5
16340 echo "${ECHO_T}yes" >&6; }
16341 else
16342   echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16344
16345         case " $LIBOBJS " in
16346   *" glob.$ac_objext "* ) ;;
16347   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16348  ;;
16349 esac
16350
16351     { echo "$as_me:$LINENO: result: no" >&5
16352 echo "${ECHO_T}no" >&6; }
16353 fi
16354
16355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16356 else
16357   case " $LIBOBJS " in
16358   *" glob.$ac_objext "* ) ;;
16359   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16360  ;;
16361 esac
16362
16363 fi
16364 done
16365
16366
16367
16368 for ac_func in lockf flock
16369 do
16370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376   cat >conftest.$ac_ext <<_ACEOF
16377 /* confdefs.h.  */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h.  */
16382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16384 #define $ac_func innocuous_$ac_func
16385
16386 /* System header to define __stub macros and hopefully few prototypes,
16387     which can conflict with char $ac_func (); below.
16388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16389     <limits.h> exists even on freestanding compilers.  */
16390
16391 #ifdef __STDC__
16392 # include <limits.h>
16393 #else
16394 # include <assert.h>
16395 #endif
16396
16397 #undef $ac_func
16398
16399 /* Override any GCC internal prototype to avoid an error.
16400    Use char because int might match the return type of a GCC
16401    builtin and then its argument prototype would still apply.  */
16402 #ifdef __cplusplus
16403 extern "C"
16404 #endif
16405 char $ac_func ();
16406 /* The GNU C library defines this for functions which it implements
16407     to always fail with ENOSYS.  Some functions are actually named
16408     something starting with __ and the normal name is an alias.  */
16409 #if defined __stub_$ac_func || defined __stub___$ac_func
16410 choke me
16411 #endif
16412
16413 int
16414 main ()
16415 {
16416 return $ac_func ();
16417   ;
16418   return 0;
16419 }
16420 _ACEOF
16421 rm -f conftest.$ac_objext conftest$ac_exeext
16422 if { (ac_try="$ac_link"
16423 case "(($ac_try" in
16424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425   *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428   (eval "$ac_link") 2>conftest.er1
16429   ac_status=$?
16430   grep -v '^ *+' conftest.er1 >conftest.err
16431   rm -f conftest.er1
16432   cat conftest.err >&5
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); } && {
16435          test -z "$ac_c_werror_flag" ||
16436          test ! -s conftest.err
16437        } && test -s conftest$ac_exeext &&
16438        $as_test_x conftest$ac_exeext; then
16439   eval "$as_ac_var=yes"
16440 else
16441   echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16443
16444         eval "$as_ac_var=no"
16445 fi
16446
16447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16448       conftest$ac_exeext conftest.$ac_ext
16449 fi
16450 ac_res=`eval echo '${'$as_ac_var'}'`
16451                { echo "$as_me:$LINENO: result: $ac_res" >&5
16452 echo "${ECHO_T}$ac_res" >&6; }
16453 if test `eval echo '${'$as_ac_var'}'` = yes; then
16454   cat >>confdefs.h <<_ACEOF
16455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16456 _ACEOF
16457  break
16458 fi
16459 done
16460
16461
16462
16463 for ac_func in waitpid wait3
16464 do
16465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16469   echo $ECHO_N "(cached) $ECHO_C" >&6
16470 else
16471   cat >conftest.$ac_ext <<_ACEOF
16472 /* confdefs.h.  */
16473 _ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h.  */
16477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16479 #define $ac_func innocuous_$ac_func
16480
16481 /* System header to define __stub macros and hopefully few prototypes,
16482     which can conflict with char $ac_func (); below.
16483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16484     <limits.h> exists even on freestanding compilers.  */
16485
16486 #ifdef __STDC__
16487 # include <limits.h>
16488 #else
16489 # include <assert.h>
16490 #endif
16491
16492 #undef $ac_func
16493
16494 /* Override any GCC internal prototype to avoid an error.
16495    Use char because int might match the return type of a GCC
16496    builtin and then its argument prototype would still apply.  */
16497 #ifdef __cplusplus
16498 extern "C"
16499 #endif
16500 char $ac_func ();
16501 /* The GNU C library defines this for functions which it implements
16502     to always fail with ENOSYS.  Some functions are actually named
16503     something starting with __ and the normal name is an alias.  */
16504 #if defined __stub_$ac_func || defined __stub___$ac_func
16505 choke me
16506 #endif
16507
16508 int
16509 main ()
16510 {
16511 return $ac_func ();
16512   ;
16513   return 0;
16514 }
16515 _ACEOF
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (ac_try="$ac_link"
16518 case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_link") 2>conftest.er1
16524   ac_status=$?
16525   grep -v '^ *+' conftest.er1 >conftest.err
16526   rm -f conftest.er1
16527   cat conftest.err >&5
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); } && {
16530          test -z "$ac_c_werror_flag" ||
16531          test ! -s conftest.err
16532        } && test -s conftest$ac_exeext &&
16533        $as_test_x conftest$ac_exeext; then
16534   eval "$as_ac_var=yes"
16535 else
16536   echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539         eval "$as_ac_var=no"
16540 fi
16541
16542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16543       conftest$ac_exeext conftest.$ac_ext
16544 fi
16545 ac_res=`eval echo '${'$as_ac_var'}'`
16546                { echo "$as_me:$LINENO: result: $ac_res" >&5
16547 echo "${ECHO_T}$ac_res" >&6; }
16548 if test `eval echo '${'$as_ac_var'}'` = yes; then
16549   cat >>confdefs.h <<_ACEOF
16550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16551 _ACEOF
16552  break
16553 fi
16554 done
16555
16556
16557
16558 for ac_func in innetgr _innetgr
16559 do
16560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16564   echo $ECHO_N "(cached) $ECHO_C" >&6
16565 else
16566   cat >conftest.$ac_ext <<_ACEOF
16567 /* confdefs.h.  */
16568 _ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h.  */
16572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16574 #define $ac_func innocuous_$ac_func
16575
16576 /* System header to define __stub macros and hopefully few prototypes,
16577     which can conflict with char $ac_func (); below.
16578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16579     <limits.h> exists even on freestanding compilers.  */
16580
16581 #ifdef __STDC__
16582 # include <limits.h>
16583 #else
16584 # include <assert.h>
16585 #endif
16586
16587 #undef $ac_func
16588
16589 /* Override any GCC internal prototype to avoid an error.
16590    Use char because int might match the return type of a GCC
16591    builtin and then its argument prototype would still apply.  */
16592 #ifdef __cplusplus
16593 extern "C"
16594 #endif
16595 char $ac_func ();
16596 /* The GNU C library defines this for functions which it implements
16597     to always fail with ENOSYS.  Some functions are actually named
16598     something starting with __ and the normal name is an alias.  */
16599 #if defined __stub_$ac_func || defined __stub___$ac_func
16600 choke me
16601 #endif
16602
16603 int
16604 main ()
16605 {
16606 return $ac_func ();
16607   ;
16608   return 0;
16609 }
16610 _ACEOF
16611 rm -f conftest.$ac_objext conftest$ac_exeext
16612 if { (ac_try="$ac_link"
16613 case "(($ac_try" in
16614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615   *) ac_try_echo=$ac_try;;
16616 esac
16617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16618   (eval "$ac_link") 2>conftest.er1
16619   ac_status=$?
16620   grep -v '^ *+' conftest.er1 >conftest.err
16621   rm -f conftest.er1
16622   cat conftest.err >&5
16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); } && {
16625          test -z "$ac_c_werror_flag" ||
16626          test ! -s conftest.err
16627        } && test -s conftest$ac_exeext &&
16628        $as_test_x conftest$ac_exeext; then
16629   eval "$as_ac_var=yes"
16630 else
16631   echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16633
16634         eval "$as_ac_var=no"
16635 fi
16636
16637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16638       conftest$ac_exeext conftest.$ac_ext
16639 fi
16640 ac_res=`eval echo '${'$as_ac_var'}'`
16641                { echo "$as_me:$LINENO: result: $ac_res" >&5
16642 echo "${ECHO_T}$ac_res" >&6; }
16643 if test `eval echo '${'$as_ac_var'}'` = yes; then
16644   cat >>confdefs.h <<_ACEOF
16645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16646 _ACEOF
16647
16648 for ac_func in getdomainname
16649 do
16650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16654   echo $ECHO_N "(cached) $ECHO_C" >&6
16655 else
16656   cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h.  */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h.  */
16662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16664 #define $ac_func innocuous_$ac_func
16665
16666 /* System header to define __stub macros and hopefully few prototypes,
16667     which can conflict with char $ac_func (); below.
16668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669     <limits.h> exists even on freestanding compilers.  */
16670
16671 #ifdef __STDC__
16672 # include <limits.h>
16673 #else
16674 # include <assert.h>
16675 #endif
16676
16677 #undef $ac_func
16678
16679 /* Override any GCC internal prototype to avoid an error.
16680    Use char because int might match the return type of a GCC
16681    builtin and then its argument prototype would still apply.  */
16682 #ifdef __cplusplus
16683 extern "C"
16684 #endif
16685 char $ac_func ();
16686 /* The GNU C library defines this for functions which it implements
16687     to always fail with ENOSYS.  Some functions are actually named
16688     something starting with __ and the normal name is an alias.  */
16689 #if defined __stub_$ac_func || defined __stub___$ac_func
16690 choke me
16691 #endif
16692
16693 int
16694 main ()
16695 {
16696 return $ac_func ();
16697   ;
16698   return 0;
16699 }
16700 _ACEOF
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (ac_try="$ac_link"
16703 case "(($ac_try" in
16704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705   *) ac_try_echo=$ac_try;;
16706 esac
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708   (eval "$ac_link") 2>conftest.er1
16709   ac_status=$?
16710   grep -v '^ *+' conftest.er1 >conftest.err
16711   rm -f conftest.er1
16712   cat conftest.err >&5
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); } && {
16715          test -z "$ac_c_werror_flag" ||
16716          test ! -s conftest.err
16717        } && test -s conftest$ac_exeext &&
16718        $as_test_x conftest$ac_exeext; then
16719   eval "$as_ac_var=yes"
16720 else
16721   echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16723
16724         eval "$as_ac_var=no"
16725 fi
16726
16727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16728       conftest$ac_exeext conftest.$ac_ext
16729 fi
16730 ac_res=`eval echo '${'$as_ac_var'}'`
16731                { echo "$as_me:$LINENO: result: $ac_res" >&5
16732 echo "${ECHO_T}$ac_res" >&6; }
16733 if test `eval echo '${'$as_ac_var'}'` = yes; then
16734   cat >>confdefs.h <<_ACEOF
16735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16736 _ACEOF
16737
16738 fi
16739 done
16740  break
16741 fi
16742 done
16743
16744
16745 for ac_func in lsearch
16746 do
16747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753   cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16761 #define $ac_func innocuous_$ac_func
16762
16763 /* System header to define __stub macros and hopefully few prototypes,
16764     which can conflict with char $ac_func (); below.
16765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16766     <limits.h> exists even on freestanding compilers.  */
16767
16768 #ifdef __STDC__
16769 # include <limits.h>
16770 #else
16771 # include <assert.h>
16772 #endif
16773
16774 #undef $ac_func
16775
16776 /* Override any GCC internal prototype to avoid an error.
16777    Use char because int might match the return type of a GCC
16778    builtin and then its argument prototype would still apply.  */
16779 #ifdef __cplusplus
16780 extern "C"
16781 #endif
16782 char $ac_func ();
16783 /* The GNU C library defines this for functions which it implements
16784     to always fail with ENOSYS.  Some functions are actually named
16785     something starting with __ and the normal name is an alias.  */
16786 #if defined __stub_$ac_func || defined __stub___$ac_func
16787 choke me
16788 #endif
16789
16790 int
16791 main ()
16792 {
16793 return $ac_func ();
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (ac_try="$ac_link"
16800 case "(($ac_try" in
16801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802   *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805   (eval "$ac_link") 2>conftest.er1
16806   ac_status=$?
16807   grep -v '^ *+' conftest.er1 >conftest.err
16808   rm -f conftest.er1
16809   cat conftest.err >&5
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } && {
16812          test -z "$ac_c_werror_flag" ||
16813          test ! -s conftest.err
16814        } && test -s conftest$ac_exeext &&
16815        $as_test_x conftest$ac_exeext; then
16816   eval "$as_ac_var=yes"
16817 else
16818   echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16820
16821         eval "$as_ac_var=no"
16822 fi
16823
16824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16825       conftest$ac_exeext conftest.$ac_ext
16826 fi
16827 ac_res=`eval echo '${'$as_ac_var'}'`
16828                { echo "$as_me:$LINENO: result: $ac_res" >&5
16829 echo "${ECHO_T}$ac_res" >&6; }
16830 if test `eval echo '${'$as_ac_var'}'` = yes; then
16831   cat >>confdefs.h <<_ACEOF
16832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16833 _ACEOF
16834
16835 else
16836   { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
16837 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
16838 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
16839   echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16841   ac_check_lib_save_LIBS=$LIBS
16842 LIBS="-lcompat  $LIBS"
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849
16850 /* Override any GCC internal prototype to avoid an error.
16851    Use char because int might match the return type of a GCC
16852    builtin and then its argument prototype would still apply.  */
16853 #ifdef __cplusplus
16854 extern "C"
16855 #endif
16856 char lsearch ();
16857 int
16858 main ()
16859 {
16860 return lsearch ();
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (ac_try="$ac_link"
16867 case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_link") 2>conftest.er1
16873   ac_status=$?
16874   grep -v '^ *+' conftest.er1 >conftest.err
16875   rm -f conftest.er1
16876   cat conftest.err >&5
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } && {
16879          test -z "$ac_c_werror_flag" ||
16880          test ! -s conftest.err
16881        } && test -s conftest$ac_exeext &&
16882        $as_test_x conftest$ac_exeext; then
16883   ac_cv_lib_compat_lsearch=yes
16884 else
16885   echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888         ac_cv_lib_compat_lsearch=no
16889 fi
16890
16891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16892       conftest$ac_exeext conftest.$ac_ext
16893 LIBS=$ac_check_lib_save_LIBS
16894 fi
16895 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
16896 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
16897 if test $ac_cv_lib_compat_lsearch = yes; then
16898   { echo "$as_me:$LINENO: checking for search.h" >&5
16899 echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
16900 if test "${ac_cv_header_search_h+set}" = set; then
16901   echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903   cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h.  */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h.  */
16909 #include <search.h>
16910 _ACEOF
16911 if { (ac_try="$ac_cpp conftest.$ac_ext"
16912 case "(($ac_try" in
16913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914   *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16918   ac_status=$?
16919   grep -v '^ *+' conftest.er1 >conftest.err
16920   rm -f conftest.er1
16921   cat conftest.err >&5
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); } >/dev/null && {
16924          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16925          test ! -s conftest.err
16926        }; then
16927   ac_cv_header_search_h=yes
16928 else
16929   echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16931
16932   ac_cv_header_search_h=no
16933 fi
16934
16935 rm -f conftest.err conftest.$ac_ext
16936 fi
16937 { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
16938 echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
16939 if test $ac_cv_header_search_h = yes; then
16940   cat >>confdefs.h <<\_ACEOF
16941 #define HAVE_LSEARCH 1
16942 _ACEOF
16943  LIBS="${LIBS} -lcompat"
16944 else
16945   case " $LIBOBJS " in
16946   *" lsearch.$ac_objext "* ) ;;
16947   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16948  ;;
16949 esac
16950
16951 fi
16952
16953
16954 else
16955   case " $LIBOBJS " in
16956   *" lsearch.$ac_objext "* ) ;;
16957   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16958  ;;
16959 esac
16960
16961 fi
16962
16963 fi
16964 done
16965
16966
16967 for ac_func in utimes
16968 do
16969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16973   echo $ECHO_N "(cached) $ECHO_C" >&6
16974 else
16975   cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h.  */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h.  */
16981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16983 #define $ac_func innocuous_$ac_func
16984
16985 /* System header to define __stub macros and hopefully few prototypes,
16986     which can conflict with char $ac_func (); below.
16987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16988     <limits.h> exists even on freestanding compilers.  */
16989
16990 #ifdef __STDC__
16991 # include <limits.h>
16992 #else
16993 # include <assert.h>
16994 #endif
16995
16996 #undef $ac_func
16997
16998 /* Override any GCC internal prototype to avoid an error.
16999    Use char because int might match the return type of a GCC
17000    builtin and then its argument prototype would still apply.  */
17001 #ifdef __cplusplus
17002 extern "C"
17003 #endif
17004 char $ac_func ();
17005 /* The GNU C library defines this for functions which it implements
17006     to always fail with ENOSYS.  Some functions are actually named
17007     something starting with __ and the normal name is an alias.  */
17008 #if defined __stub_$ac_func || defined __stub___$ac_func
17009 choke me
17010 #endif
17011
17012 int
17013 main ()
17014 {
17015 return $ac_func ();
17016   ;
17017   return 0;
17018 }
17019 _ACEOF
17020 rm -f conftest.$ac_objext conftest$ac_exeext
17021 if { (ac_try="$ac_link"
17022 case "(($ac_try" in
17023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024   *) ac_try_echo=$ac_try;;
17025 esac
17026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027   (eval "$ac_link") 2>conftest.er1
17028   ac_status=$?
17029   grep -v '^ *+' conftest.er1 >conftest.err
17030   rm -f conftest.er1
17031   cat conftest.err >&5
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); } && {
17034          test -z "$ac_c_werror_flag" ||
17035          test ! -s conftest.err
17036        } && test -s conftest$ac_exeext &&
17037        $as_test_x conftest$ac_exeext; then
17038   eval "$as_ac_var=yes"
17039 else
17040   echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17042
17043         eval "$as_ac_var=no"
17044 fi
17045
17046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17047       conftest$ac_exeext conftest.$ac_ext
17048 fi
17049 ac_res=`eval echo '${'$as_ac_var'}'`
17050                { echo "$as_me:$LINENO: result: $ac_res" >&5
17051 echo "${ECHO_T}$ac_res" >&6; }
17052 if test `eval echo '${'$as_ac_var'}'` = yes; then
17053   cat >>confdefs.h <<_ACEOF
17054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17055 _ACEOF
17056
17057
17058 for ac_func in futimes futimesat
17059 do
17060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17064   echo $ECHO_N "(cached) $ECHO_C" >&6
17065 else
17066   cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h.  */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h.  */
17072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17074 #define $ac_func innocuous_$ac_func
17075
17076 /* System header to define __stub macros and hopefully few prototypes,
17077     which can conflict with char $ac_func (); below.
17078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17079     <limits.h> exists even on freestanding compilers.  */
17080
17081 #ifdef __STDC__
17082 # include <limits.h>
17083 #else
17084 # include <assert.h>
17085 #endif
17086
17087 #undef $ac_func
17088
17089 /* Override any GCC internal prototype to avoid an error.
17090    Use char because int might match the return type of a GCC
17091    builtin and then its argument prototype would still apply.  */
17092 #ifdef __cplusplus
17093 extern "C"
17094 #endif
17095 char $ac_func ();
17096 /* The GNU C library defines this for functions which it implements
17097     to always fail with ENOSYS.  Some functions are actually named
17098     something starting with __ and the normal name is an alias.  */
17099 #if defined __stub_$ac_func || defined __stub___$ac_func
17100 choke me
17101 #endif
17102
17103 int
17104 main ()
17105 {
17106 return $ac_func ();
17107   ;
17108   return 0;
17109 }
17110 _ACEOF
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (ac_try="$ac_link"
17113 case "(($ac_try" in
17114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115   *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118   (eval "$ac_link") 2>conftest.er1
17119   ac_status=$?
17120   grep -v '^ *+' conftest.er1 >conftest.err
17121   rm -f conftest.er1
17122   cat conftest.err >&5
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); } && {
17125          test -z "$ac_c_werror_flag" ||
17126          test ! -s conftest.err
17127        } && test -s conftest$ac_exeext &&
17128        $as_test_x conftest$ac_exeext; then
17129   eval "$as_ac_var=yes"
17130 else
17131   echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134         eval "$as_ac_var=no"
17135 fi
17136
17137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17138       conftest$ac_exeext conftest.$ac_ext
17139 fi
17140 ac_res=`eval echo '${'$as_ac_var'}'`
17141                { echo "$as_me:$LINENO: result: $ac_res" >&5
17142 echo "${ECHO_T}$ac_res" >&6; }
17143 if test `eval echo '${'$as_ac_var'}'` = yes; then
17144   cat >>confdefs.h <<_ACEOF
17145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17146 _ACEOF
17147  break
17148 fi
17149 done
17150
17151 else
17152
17153 for ac_func in futime
17154 do
17155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17159   echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161   cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h.  */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h.  */
17167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17169 #define $ac_func innocuous_$ac_func
17170
17171 /* System header to define __stub macros and hopefully few prototypes,
17172     which can conflict with char $ac_func (); below.
17173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17174     <limits.h> exists even on freestanding compilers.  */
17175
17176 #ifdef __STDC__
17177 # include <limits.h>
17178 #else
17179 # include <assert.h>
17180 #endif
17181
17182 #undef $ac_func
17183
17184 /* Override any GCC internal prototype to avoid an error.
17185    Use char because int might match the return type of a GCC
17186    builtin and then its argument prototype would still apply.  */
17187 #ifdef __cplusplus
17188 extern "C"
17189 #endif
17190 char $ac_func ();
17191 /* The GNU C library defines this for functions which it implements
17192     to always fail with ENOSYS.  Some functions are actually named
17193     something starting with __ and the normal name is an alias.  */
17194 #if defined __stub_$ac_func || defined __stub___$ac_func
17195 choke me
17196 #endif
17197
17198 int
17199 main ()
17200 {
17201 return $ac_func ();
17202   ;
17203   return 0;
17204 }
17205 _ACEOF
17206 rm -f conftest.$ac_objext conftest$ac_exeext
17207 if { (ac_try="$ac_link"
17208 case "(($ac_try" in
17209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210   *) ac_try_echo=$ac_try;;
17211 esac
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213   (eval "$ac_link") 2>conftest.er1
17214   ac_status=$?
17215   grep -v '^ *+' conftest.er1 >conftest.err
17216   rm -f conftest.er1
17217   cat conftest.err >&5
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); } && {
17220          test -z "$ac_c_werror_flag" ||
17221          test ! -s conftest.err
17222        } && test -s conftest$ac_exeext &&
17223        $as_test_x conftest$ac_exeext; then
17224   eval "$as_ac_var=yes"
17225 else
17226   echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17228
17229         eval "$as_ac_var=no"
17230 fi
17231
17232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17233       conftest$ac_exeext conftest.$ac_ext
17234 fi
17235 ac_res=`eval echo '${'$as_ac_var'}'`
17236                { echo "$as_me:$LINENO: result: $ac_res" >&5
17237 echo "${ECHO_T}$ac_res" >&6; }
17238 if test `eval echo '${'$as_ac_var'}'` = yes; then
17239   cat >>confdefs.h <<_ACEOF
17240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17241 _ACEOF
17242
17243 fi
17244 done
17245  case " $LIBOBJS " in
17246   *" utimes.$ac_objext "* ) ;;
17247   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17248  ;;
17249 esac
17250
17251 fi
17252 done
17253
17254 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17255 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17256 if test "${sudo_cv_func_fnmatch+set}" = set; then
17257   echo $ECHO_N "(cached) $ECHO_C" >&6
17258 else
17259   rm -f conftestdata; > conftestdata
17260 if test "$cross_compiling" = yes; then
17261   sudo_cv_func_fnmatch=no
17262 else
17263   cat >conftest.$ac_ext <<_ACEOF
17264 /* confdefs.h.  */
17265 _ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h.  */
17269 #include <fnmatch.h>
17270 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17271 _ACEOF
17272 rm -f conftest$ac_exeext
17273 if { (ac_try="$ac_link"
17274 case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279   (eval "$ac_link") 2>&5
17280   ac_status=$?
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17283   { (case "(($ac_try" in
17284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285   *) ac_try_echo=$ac_try;;
17286 esac
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288   (eval "$ac_try") 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; }; then
17292   sudo_cv_func_fnmatch=yes
17293 else
17294   echo "$as_me: program exited with status $ac_status" >&5
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17297
17298 ( exit $ac_status )
17299 sudo_cv_func_fnmatch=no
17300 fi
17301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17302 fi
17303
17304
17305 rm -f core core.* *.core
17306 fi
17307
17308 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17309 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17310 if test $sudo_cv_func_fnmatch = yes; then
17311   cat >>confdefs.h <<\_ACEOF
17312 #define HAVE_FNMATCH 1
17313 _ACEOF
17314
17315 else
17316   case " $LIBOBJS " in
17317   *" fnmatch.$ac_objext "* ) ;;
17318   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17319  ;;
17320 esac
17321
17322 fi
17323
17324 { echo "$as_me:$LINENO: checking for isblank" >&5
17325 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17326 if test "${sudo_cv_func_isblank+set}" = set; then
17327   echo $ECHO_N "(cached) $ECHO_C" >&6
17328 else
17329   cat >conftest.$ac_ext <<_ACEOF
17330 /* confdefs.h.  */
17331 _ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h.  */
17335 #include <ctype.h>
17336 int
17337 main ()
17338 {
17339 return (isblank('a'));
17340   ;
17341   return 0;
17342 }
17343 _ACEOF
17344 rm -f conftest.$ac_objext conftest$ac_exeext
17345 if { (ac_try="$ac_link"
17346 case "(($ac_try" in
17347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348   *) ac_try_echo=$ac_try;;
17349 esac
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351   (eval "$ac_link") 2>conftest.er1
17352   ac_status=$?
17353   grep -v '^ *+' conftest.er1 >conftest.err
17354   rm -f conftest.er1
17355   cat conftest.err >&5
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); } && {
17358          test -z "$ac_c_werror_flag" ||
17359          test ! -s conftest.err
17360        } && test -s conftest$ac_exeext &&
17361        $as_test_x conftest$ac_exeext; then
17362   sudo_cv_func_isblank=yes
17363 else
17364   echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367         sudo_cv_func_isblank=no
17368 fi
17369
17370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17371       conftest$ac_exeext conftest.$ac_ext
17372 fi
17373 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17374 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17375
17376   if test "$sudo_cv_func_isblank" = "yes"; then
17377
17378 cat >>confdefs.h <<\_ACEOF
17379 #define HAVE_ISBLANK 1
17380 _ACEOF
17381
17382   fi
17383
17384
17385
17386
17387
17388
17389
17390 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17391 do
17392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17396   echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398   cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h.  */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h.  */
17404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17406 #define $ac_func innocuous_$ac_func
17407
17408 /* System header to define __stub macros and hopefully few prototypes,
17409     which can conflict with char $ac_func (); below.
17410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17411     <limits.h> exists even on freestanding compilers.  */
17412
17413 #ifdef __STDC__
17414 # include <limits.h>
17415 #else
17416 # include <assert.h>
17417 #endif
17418
17419 #undef $ac_func
17420
17421 /* Override any GCC internal prototype to avoid an error.
17422    Use char because int might match the return type of a GCC
17423    builtin and then its argument prototype would still apply.  */
17424 #ifdef __cplusplus
17425 extern "C"
17426 #endif
17427 char $ac_func ();
17428 /* The GNU C library defines this for functions which it implements
17429     to always fail with ENOSYS.  Some functions are actually named
17430     something starting with __ and the normal name is an alias.  */
17431 #if defined __stub_$ac_func || defined __stub___$ac_func
17432 choke me
17433 #endif
17434
17435 int
17436 main ()
17437 {
17438 return $ac_func ();
17439   ;
17440   return 0;
17441 }
17442 _ACEOF
17443 rm -f conftest.$ac_objext conftest$ac_exeext
17444 if { (ac_try="$ac_link"
17445 case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450   (eval "$ac_link") 2>conftest.er1
17451   ac_status=$?
17452   grep -v '^ *+' conftest.er1 >conftest.err
17453   rm -f conftest.er1
17454   cat conftest.err >&5
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); } && {
17457          test -z "$ac_c_werror_flag" ||
17458          test ! -s conftest.err
17459        } && test -s conftest$ac_exeext &&
17460        $as_test_x conftest$ac_exeext; then
17461   eval "$as_ac_var=yes"
17462 else
17463   echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17465
17466         eval "$as_ac_var=no"
17467 fi
17468
17469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17470       conftest$ac_exeext conftest.$ac_ext
17471 fi
17472 ac_res=`eval echo '${'$as_ac_var'}'`
17473                { echo "$as_me:$LINENO: result: $ac_res" >&5
17474 echo "${ECHO_T}$ac_res" >&6; }
17475 if test `eval echo '${'$as_ac_var'}'` = yes; then
17476   cat >>confdefs.h <<_ACEOF
17477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17478 _ACEOF
17479
17480 else
17481   case " $LIBOBJS " in
17482   *" $ac_func.$ac_objext "* ) ;;
17483   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17484  ;;
17485 esac
17486
17487 fi
17488 done
17489
17490
17491
17492 for ac_func in closefrom
17493 do
17494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500   cat >conftest.$ac_ext <<_ACEOF
17501 /* confdefs.h.  */
17502 _ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h.  */
17506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17508 #define $ac_func innocuous_$ac_func
17509
17510 /* System header to define __stub macros and hopefully few prototypes,
17511     which can conflict with char $ac_func (); below.
17512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513     <limits.h> exists even on freestanding compilers.  */
17514
17515 #ifdef __STDC__
17516 # include <limits.h>
17517 #else
17518 # include <assert.h>
17519 #endif
17520
17521 #undef $ac_func
17522
17523 /* Override any GCC internal prototype to avoid an error.
17524    Use char because int might match the return type of a GCC
17525    builtin and then its argument prototype would still apply.  */
17526 #ifdef __cplusplus
17527 extern "C"
17528 #endif
17529 char $ac_func ();
17530 /* The GNU C library defines this for functions which it implements
17531     to always fail with ENOSYS.  Some functions are actually named
17532     something starting with __ and the normal name is an alias.  */
17533 #if defined __stub_$ac_func || defined __stub___$ac_func
17534 choke me
17535 #endif
17536
17537 int
17538 main ()
17539 {
17540 return $ac_func ();
17541   ;
17542   return 0;
17543 }
17544 _ACEOF
17545 rm -f conftest.$ac_objext conftest$ac_exeext
17546 if { (ac_try="$ac_link"
17547 case "(($ac_try" in
17548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549   *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552   (eval "$ac_link") 2>conftest.er1
17553   ac_status=$?
17554   grep -v '^ *+' conftest.er1 >conftest.err
17555   rm -f conftest.er1
17556   cat conftest.err >&5
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); } && {
17559          test -z "$ac_c_werror_flag" ||
17560          test ! -s conftest.err
17561        } && test -s conftest$ac_exeext &&
17562        $as_test_x conftest$ac_exeext; then
17563   eval "$as_ac_var=yes"
17564 else
17565   echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17567
17568         eval "$as_ac_var=no"
17569 fi
17570
17571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17572       conftest$ac_exeext conftest.$ac_ext
17573 fi
17574 ac_res=`eval echo '${'$as_ac_var'}'`
17575                { echo "$as_me:$LINENO: result: $ac_res" >&5
17576 echo "${ECHO_T}$ac_res" >&6; }
17577 if test `eval echo '${'$as_ac_var'}'` = yes; then
17578   cat >>confdefs.h <<_ACEOF
17579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17580 _ACEOF
17581
17582 else
17583   case " $LIBOBJS " in
17584   *" closefrom.$ac_objext "* ) ;;
17585   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17586  ;;
17587 esac
17588
17589     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17590 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17591 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17592   echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594   cat >conftest.$ac_ext <<_ACEOF
17595 /* confdefs.h.  */
17596 _ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h.  */
17600  #include <limits.h>
17601           #include <fcntl.h>
17602
17603 int
17604 main ()
17605 {
17606 #ifndef F_CLOSEM
17607   (void) F_CLOSEM;
17608 #endif
17609
17610   ;
17611   return 0;
17612 }
17613 _ACEOF
17614 rm -f conftest.$ac_objext
17615 if { (ac_try="$ac_compile"
17616 case "(($ac_try" in
17617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618   *) ac_try_echo=$ac_try;;
17619 esac
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621   (eval "$ac_compile") 2>conftest.er1
17622   ac_status=$?
17623   grep -v '^ *+' conftest.er1 >conftest.err
17624   rm -f conftest.er1
17625   cat conftest.err >&5
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); } && {
17628          test -z "$ac_c_werror_flag" ||
17629          test ! -s conftest.err
17630        } && test -s conftest.$ac_objext; then
17631   ac_cv_have_decl_F_CLOSEM=yes
17632 else
17633   echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17635
17636         ac_cv_have_decl_F_CLOSEM=no
17637 fi
17638
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640 fi
17641 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17642 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17643 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17644   cat >>confdefs.h <<\_ACEOF
17645 #define HAVE_FCNTL_CLOSEM 1
17646 _ACEOF
17647
17648 fi
17649
17650
17651 fi
17652 done
17653
17654
17655 for ac_func in mkstemp
17656 do
17657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17661   echo $ECHO_N "(cached) $ECHO_C" >&6
17662 else
17663   cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h.  */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h.  */
17669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17671 #define $ac_func innocuous_$ac_func
17672
17673 /* System header to define __stub macros and hopefully few prototypes,
17674     which can conflict with char $ac_func (); below.
17675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17676     <limits.h> exists even on freestanding compilers.  */
17677
17678 #ifdef __STDC__
17679 # include <limits.h>
17680 #else
17681 # include <assert.h>
17682 #endif
17683
17684 #undef $ac_func
17685
17686 /* Override any GCC internal prototype to avoid an error.
17687    Use char because int might match the return type of a GCC
17688    builtin and then its argument prototype would still apply.  */
17689 #ifdef __cplusplus
17690 extern "C"
17691 #endif
17692 char $ac_func ();
17693 /* The GNU C library defines this for functions which it implements
17694     to always fail with ENOSYS.  Some functions are actually named
17695     something starting with __ and the normal name is an alias.  */
17696 #if defined __stub_$ac_func || defined __stub___$ac_func
17697 choke me
17698 #endif
17699
17700 int
17701 main ()
17702 {
17703 return $ac_func ();
17704   ;
17705   return 0;
17706 }
17707 _ACEOF
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (ac_try="$ac_link"
17710 case "(($ac_try" in
17711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712   *) ac_try_echo=$ac_try;;
17713 esac
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715   (eval "$ac_link") 2>conftest.er1
17716   ac_status=$?
17717   grep -v '^ *+' conftest.er1 >conftest.err
17718   rm -f conftest.er1
17719   cat conftest.err >&5
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); } && {
17722          test -z "$ac_c_werror_flag" ||
17723          test ! -s conftest.err
17724        } && test -s conftest$ac_exeext &&
17725        $as_test_x conftest$ac_exeext; then
17726   eval "$as_ac_var=yes"
17727 else
17728   echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731         eval "$as_ac_var=no"
17732 fi
17733
17734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17735       conftest$ac_exeext conftest.$ac_ext
17736 fi
17737 ac_res=`eval echo '${'$as_ac_var'}'`
17738                { echo "$as_me:$LINENO: result: $ac_res" >&5
17739 echo "${ECHO_T}$ac_res" >&6; }
17740 if test `eval echo '${'$as_ac_var'}'` = yes; then
17741   cat >>confdefs.h <<_ACEOF
17742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17743 _ACEOF
17744
17745 else
17746   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
17747
17748
17749 for ac_func in random lrand48
17750 do
17751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17755   echo $ECHO_N "(cached) $ECHO_C" >&6
17756 else
17757   cat >conftest.$ac_ext <<_ACEOF
17758 /* confdefs.h.  */
17759 _ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h.  */
17763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17765 #define $ac_func innocuous_$ac_func
17766
17767 /* System header to define __stub macros and hopefully few prototypes,
17768     which can conflict with char $ac_func (); below.
17769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17770     <limits.h> exists even on freestanding compilers.  */
17771
17772 #ifdef __STDC__
17773 # include <limits.h>
17774 #else
17775 # include <assert.h>
17776 #endif
17777
17778 #undef $ac_func
17779
17780 /* Override any GCC internal prototype to avoid an error.
17781    Use char because int might match the return type of a GCC
17782    builtin and then its argument prototype would still apply.  */
17783 #ifdef __cplusplus
17784 extern "C"
17785 #endif
17786 char $ac_func ();
17787 /* The GNU C library defines this for functions which it implements
17788     to always fail with ENOSYS.  Some functions are actually named
17789     something starting with __ and the normal name is an alias.  */
17790 #if defined __stub_$ac_func || defined __stub___$ac_func
17791 choke me
17792 #endif
17793
17794 int
17795 main ()
17796 {
17797 return $ac_func ();
17798   ;
17799   return 0;
17800 }
17801 _ACEOF
17802 rm -f conftest.$ac_objext conftest$ac_exeext
17803 if { (ac_try="$ac_link"
17804 case "(($ac_try" in
17805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806   *) ac_try_echo=$ac_try;;
17807 esac
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809   (eval "$ac_link") 2>conftest.er1
17810   ac_status=$?
17811   grep -v '^ *+' conftest.er1 >conftest.err
17812   rm -f conftest.er1
17813   cat conftest.err >&5
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); } && {
17816          test -z "$ac_c_werror_flag" ||
17817          test ! -s conftest.err
17818        } && test -s conftest$ac_exeext &&
17819        $as_test_x conftest$ac_exeext; then
17820   eval "$as_ac_var=yes"
17821 else
17822   echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17824
17825         eval "$as_ac_var=no"
17826 fi
17827
17828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17829       conftest$ac_exeext conftest.$ac_ext
17830 fi
17831 ac_res=`eval echo '${'$as_ac_var'}'`
17832                { echo "$as_me:$LINENO: result: $ac_res" >&5
17833 echo "${ECHO_T}$ac_res" >&6; }
17834 if test `eval echo '${'$as_ac_var'}'` = yes; then
17835   cat >>confdefs.h <<_ACEOF
17836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17837 _ACEOF
17838  break
17839 fi
17840 done
17841
17842
17843 fi
17844 done
17845
17846
17847
17848
17849
17850 for ac_func in snprintf vsnprintf asprintf vasprintf
17851 do
17852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17856   echo $ECHO_N "(cached) $ECHO_C" >&6
17857 else
17858   cat >conftest.$ac_ext <<_ACEOF
17859 /* confdefs.h.  */
17860 _ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h.  */
17864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17866 #define $ac_func innocuous_$ac_func
17867
17868 /* System header to define __stub macros and hopefully few prototypes,
17869     which can conflict with char $ac_func (); below.
17870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17871     <limits.h> exists even on freestanding compilers.  */
17872
17873 #ifdef __STDC__
17874 # include <limits.h>
17875 #else
17876 # include <assert.h>
17877 #endif
17878
17879 #undef $ac_func
17880
17881 /* Override any GCC internal prototype to avoid an error.
17882    Use char because int might match the return type of a GCC
17883    builtin and then its argument prototype would still apply.  */
17884 #ifdef __cplusplus
17885 extern "C"
17886 #endif
17887 char $ac_func ();
17888 /* The GNU C library defines this for functions which it implements
17889     to always fail with ENOSYS.  Some functions are actually named
17890     something starting with __ and the normal name is an alias.  */
17891 #if defined __stub_$ac_func || defined __stub___$ac_func
17892 choke me
17893 #endif
17894
17895 int
17896 main ()
17897 {
17898 return $ac_func ();
17899   ;
17900   return 0;
17901 }
17902 _ACEOF
17903 rm -f conftest.$ac_objext conftest$ac_exeext
17904 if { (ac_try="$ac_link"
17905 case "(($ac_try" in
17906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907   *) ac_try_echo=$ac_try;;
17908 esac
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910   (eval "$ac_link") 2>conftest.er1
17911   ac_status=$?
17912   grep -v '^ *+' conftest.er1 >conftest.err
17913   rm -f conftest.er1
17914   cat conftest.err >&5
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); } && {
17917          test -z "$ac_c_werror_flag" ||
17918          test ! -s conftest.err
17919        } && test -s conftest$ac_exeext &&
17920        $as_test_x conftest$ac_exeext; then
17921   eval "$as_ac_var=yes"
17922 else
17923   echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17925
17926         eval "$as_ac_var=no"
17927 fi
17928
17929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17930       conftest$ac_exeext conftest.$ac_ext
17931 fi
17932 ac_res=`eval echo '${'$as_ac_var'}'`
17933                { echo "$as_me:$LINENO: result: $ac_res" >&5
17934 echo "${ECHO_T}$ac_res" >&6; }
17935 if test `eval echo '${'$as_ac_var'}'` = yes; then
17936   cat >>confdefs.h <<_ACEOF
17937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17938 _ACEOF
17939
17940 else
17941   NEED_SNPRINTF=1
17942 fi
17943 done
17944
17945 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17946     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17947 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17948 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17949   echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951   cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957 $ac_includes_default
17958 int
17959 main ()
17960 {
17961 static struct stat ac_aggr;
17962 if (ac_aggr.st_mtim)
17963 return 0;
17964   ;
17965   return 0;
17966 }
17967 _ACEOF
17968 rm -f conftest.$ac_objext
17969 if { (ac_try="$ac_compile"
17970 case "(($ac_try" in
17971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972   *) ac_try_echo=$ac_try;;
17973 esac
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975   (eval "$ac_compile") 2>conftest.er1
17976   ac_status=$?
17977   grep -v '^ *+' conftest.er1 >conftest.err
17978   rm -f conftest.er1
17979   cat conftest.err >&5
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); } && {
17982          test -z "$ac_c_werror_flag" ||
17983          test ! -s conftest.err
17984        } && test -s conftest.$ac_objext; then
17985   ac_cv_member_struct_stat_st_mtim=yes
17986 else
17987   echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990         cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h.  */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h.  */
17996 $ac_includes_default
17997 int
17998 main ()
17999 {
18000 static struct stat ac_aggr;
18001 if (sizeof ac_aggr.st_mtim)
18002 return 0;
18003   ;
18004   return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest.$ac_objext
18008 if { (ac_try="$ac_compile"
18009 case "(($ac_try" in
18010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011   *) ac_try_echo=$ac_try;;
18012 esac
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014   (eval "$ac_compile") 2>conftest.er1
18015   ac_status=$?
18016   grep -v '^ *+' conftest.er1 >conftest.err
18017   rm -f conftest.er1
18018   cat conftest.err >&5
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); } && {
18021          test -z "$ac_c_werror_flag" ||
18022          test ! -s conftest.err
18023        } && test -s conftest.$ac_objext; then
18024   ac_cv_member_struct_stat_st_mtim=yes
18025 else
18026   echo "$as_me: failed program was:" >&5
18027 sed 's/^/| /' conftest.$ac_ext >&5
18028
18029         ac_cv_member_struct_stat_st_mtim=no
18030 fi
18031
18032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18033 fi
18034
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 fi
18037 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
18038 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
18039 if test $ac_cv_member_struct_stat_st_mtim = yes; then
18040   cat >>confdefs.h <<\_ACEOF
18041 #define HAVE_ST_MTIM 1
18042 _ACEOF
18043
18044         { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
18045 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
18046 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
18047   echo $ECHO_N "(cached) $ECHO_C" >&6
18048 else
18049   cat >conftest.$ac_ext <<_ACEOF
18050 /* confdefs.h.  */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h.  */
18055 $ac_includes_default
18056 int
18057 main ()
18058 {
18059 static struct stat ac_aggr;
18060 if (ac_aggr.st_mtim.st__tim)
18061 return 0;
18062   ;
18063   return 0;
18064 }
18065 _ACEOF
18066 rm -f conftest.$ac_objext
18067 if { (ac_try="$ac_compile"
18068 case "(($ac_try" in
18069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070   *) ac_try_echo=$ac_try;;
18071 esac
18072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073   (eval "$ac_compile") 2>conftest.er1
18074   ac_status=$?
18075   grep -v '^ *+' conftest.er1 >conftest.err
18076   rm -f conftest.er1
18077   cat conftest.err >&5
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); } && {
18080          test -z "$ac_c_werror_flag" ||
18081          test ! -s conftest.err
18082        } && test -s conftest.$ac_objext; then
18083   ac_cv_member_struct_stat_st_mtim_st__tim=yes
18084 else
18085   echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18087
18088         cat >conftest.$ac_ext <<_ACEOF
18089 /* confdefs.h.  */
18090 _ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h.  */
18094 $ac_includes_default
18095 int
18096 main ()
18097 {
18098 static struct stat ac_aggr;
18099 if (sizeof ac_aggr.st_mtim.st__tim)
18100 return 0;
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext
18106 if { (ac_try="$ac_compile"
18107 case "(($ac_try" in
18108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109   *) ac_try_echo=$ac_try;;
18110 esac
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112   (eval "$ac_compile") 2>conftest.er1
18113   ac_status=$?
18114   grep -v '^ *+' conftest.er1 >conftest.err
18115   rm -f conftest.er1
18116   cat conftest.err >&5
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); } && {
18119          test -z "$ac_c_werror_flag" ||
18120          test ! -s conftest.err
18121        } && test -s conftest.$ac_objext; then
18122   ac_cv_member_struct_stat_st_mtim_st__tim=yes
18123 else
18124   echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127         ac_cv_member_struct_stat_st_mtim_st__tim=no
18128 fi
18129
18130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18131 fi
18132
18133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18134 fi
18135 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18136 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18137 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18138   cat >>confdefs.h <<\_ACEOF
18139 #define HAVE_ST__TIM 1
18140 _ACEOF
18141
18142 fi
18143
18144 else
18145   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18146 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18147 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
18148   echo $ECHO_N "(cached) $ECHO_C" >&6
18149 else
18150   cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h.  */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h.  */
18156 $ac_includes_default
18157 int
18158 main ()
18159 {
18160 static struct stat ac_aggr;
18161 if (ac_aggr.st_mtimespec)
18162 return 0;
18163   ;
18164   return 0;
18165 }
18166 _ACEOF
18167 rm -f conftest.$ac_objext
18168 if { (ac_try="$ac_compile"
18169 case "(($ac_try" in
18170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171   *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174   (eval "$ac_compile") 2>conftest.er1
18175   ac_status=$?
18176   grep -v '^ *+' conftest.er1 >conftest.err
18177   rm -f conftest.er1
18178   cat conftest.err >&5
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); } && {
18181          test -z "$ac_c_werror_flag" ||
18182          test ! -s conftest.err
18183        } && test -s conftest.$ac_objext; then
18184   ac_cv_member_struct_stat_st_mtimespec=yes
18185 else
18186   echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18188
18189         cat >conftest.$ac_ext <<_ACEOF
18190 /* confdefs.h.  */
18191 _ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h.  */
18195 $ac_includes_default
18196 int
18197 main ()
18198 {
18199 static struct stat ac_aggr;
18200 if (sizeof ac_aggr.st_mtimespec)
18201 return 0;
18202   ;
18203   return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext
18207 if { (ac_try="$ac_compile"
18208 case "(($ac_try" in
18209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210   *) ac_try_echo=$ac_try;;
18211 esac
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213   (eval "$ac_compile") 2>conftest.er1
18214   ac_status=$?
18215   grep -v '^ *+' conftest.er1 >conftest.err
18216   rm -f conftest.er1
18217   cat conftest.err >&5
18218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); } && {
18220          test -z "$ac_c_werror_flag" ||
18221          test ! -s conftest.err
18222        } && test -s conftest.$ac_objext; then
18223   ac_cv_member_struct_stat_st_mtimespec=yes
18224 else
18225   echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228         ac_cv_member_struct_stat_st_mtimespec=no
18229 fi
18230
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18232 fi
18233
18234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235 fi
18236 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18237 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18238 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18239   cat >>confdefs.h <<\_ACEOF
18240 #define HAVE_ST_MTIMESPEC 1
18241 _ACEOF
18242
18243 fi
18244
18245 fi
18246
18247     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18248 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18249     cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h.  */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h.  */
18255 #include <sys/types.h>
18256 #include <sys/time.h>
18257 int
18258 main ()
18259 {
18260 struct timespec ts1, ts2;
18261 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18262 #ifndef timespecsub
18263 #error missing timespecsub
18264 #endif
18265 timespecsub(&ts1, &ts2);
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext
18271 if { (ac_try="$ac_compile"
18272 case "(($ac_try" in
18273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274   *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277   (eval "$ac_compile") 2>conftest.er1
18278   ac_status=$?
18279   grep -v '^ *+' conftest.er1 >conftest.err
18280   rm -f conftest.er1
18281   cat conftest.err >&5
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); } && {
18284          test -z "$ac_c_werror_flag" ||
18285          test ! -s conftest.err
18286        } && test -s conftest.$ac_objext; then
18287   cat >>confdefs.h <<\_ACEOF
18288 #define HAVE_TIMESPECSUB2 1
18289 _ACEOF
18290
18291     { echo "$as_me:$LINENO: result: yes" >&5
18292 echo "${ECHO_T}yes" >&6; }
18293 else
18294   echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18296
18297         { echo "$as_me:$LINENO: result: no" >&5
18298 echo "${ECHO_T}no" >&6; }
18299 fi
18300
18301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18302 fi
18303 cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h.  */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h.  */
18309 #include <sys/types.h>
18310 #include <$ac_header_dirent>
18311 int
18312 main ()
18313 {
18314 DIR *d; (void)dirfd(d);
18315   ;
18316   return 0;
18317 }
18318 _ACEOF
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (ac_try="$ac_link"
18321 case "(($ac_try" in
18322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323   *) ac_try_echo=$ac_try;;
18324 esac
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326   (eval "$ac_link") 2>conftest.er1
18327   ac_status=$?
18328   grep -v '^ *+' conftest.er1 >conftest.err
18329   rm -f conftest.er1
18330   cat conftest.err >&5
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); } && {
18333          test -z "$ac_c_werror_flag" ||
18334          test ! -s conftest.err
18335        } && test -s conftest$ac_exeext &&
18336        $as_test_x conftest$ac_exeext; then
18337   cat >>confdefs.h <<\_ACEOF
18338 #define HAVE_DIRFD 1
18339 _ACEOF
18340
18341 else
18342   echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18344
18345         cat >conftest.$ac_ext <<_ACEOF
18346 /* confdefs.h.  */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h.  */
18351 #include <sys/types.h>
18352 #include <$ac_header_dirent>
18353 int
18354 main ()
18355 {
18356 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18357   ;
18358   return 0;
18359 }
18360 _ACEOF
18361 rm -f conftest.$ac_objext conftest$ac_exeext
18362 if { (ac_try="$ac_link"
18363 case "(($ac_try" in
18364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365   *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368   (eval "$ac_link") 2>conftest.er1
18369   ac_status=$?
18370   grep -v '^ *+' conftest.er1 >conftest.err
18371   rm -f conftest.er1
18372   cat conftest.err >&5
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); } && {
18375          test -z "$ac_c_werror_flag" ||
18376          test ! -s conftest.err
18377        } && test -s conftest$ac_exeext &&
18378        $as_test_x conftest$ac_exeext; then
18379   cat >>confdefs.h <<\_ACEOF
18380 #define HAVE_DD_FD 1
18381 _ACEOF
18382
18383 else
18384   echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387
18388 fi
18389
18390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18391       conftest$ac_exeext conftest.$ac_ext
18392 fi
18393
18394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18395       conftest$ac_exeext conftest.$ac_ext
18396 if test -n "$NEED_SNPRINTF"; then
18397     case " $LIBOBJS " in
18398   *" snprintf.$ac_objext "* ) ;;
18399   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18400  ;;
18401 esac
18402
18403 fi
18404 { echo "$as_me:$LINENO: checking for socket" >&5
18405 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18406 if test "${ac_cv_func_socket+set}" = set; then
18407   echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409   cat >conftest.$ac_ext <<_ACEOF
18410 /* confdefs.h.  */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h.  */
18415 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18417 #define socket innocuous_socket
18418
18419 /* System header to define __stub macros and hopefully few prototypes,
18420     which can conflict with char socket (); below.
18421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18422     <limits.h> exists even on freestanding compilers.  */
18423
18424 #ifdef __STDC__
18425 # include <limits.h>
18426 #else
18427 # include <assert.h>
18428 #endif
18429
18430 #undef socket
18431
18432 /* Override any GCC internal prototype to avoid an error.
18433    Use char because int might match the return type of a GCC
18434    builtin and then its argument prototype would still apply.  */
18435 #ifdef __cplusplus
18436 extern "C"
18437 #endif
18438 char socket ();
18439 /* The GNU C library defines this for functions which it implements
18440     to always fail with ENOSYS.  Some functions are actually named
18441     something starting with __ and the normal name is an alias.  */
18442 #if defined __stub_socket || defined __stub___socket
18443 choke me
18444 #endif
18445
18446 int
18447 main ()
18448 {
18449 return socket ();
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (ac_try="$ac_link"
18456 case "(($ac_try" in
18457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458   *) ac_try_echo=$ac_try;;
18459 esac
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461   (eval "$ac_link") 2>conftest.er1
18462   ac_status=$?
18463   grep -v '^ *+' conftest.er1 >conftest.err
18464   rm -f conftest.er1
18465   cat conftest.err >&5
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); } && {
18468          test -z "$ac_c_werror_flag" ||
18469          test ! -s conftest.err
18470        } && test -s conftest$ac_exeext &&
18471        $as_test_x conftest$ac_exeext; then
18472   ac_cv_func_socket=yes
18473 else
18474   echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477         ac_cv_func_socket=no
18478 fi
18479
18480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18481       conftest$ac_exeext conftest.$ac_ext
18482 fi
18483 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18484 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18485 if test $ac_cv_func_socket = yes; then
18486   :
18487 else
18488   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18489 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18490 if test "${ac_cv_lib_socket_socket+set}" = set; then
18491   echo $ECHO_N "(cached) $ECHO_C" >&6
18492 else
18493   ac_check_lib_save_LIBS=$LIBS
18494 LIBS="-lsocket  $LIBS"
18495 cat >conftest.$ac_ext <<_ACEOF
18496 /* confdefs.h.  */
18497 _ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h.  */
18501
18502 /* Override any GCC internal prototype to avoid an error.
18503    Use char because int might match the return type of a GCC
18504    builtin and then its argument prototype would still apply.  */
18505 #ifdef __cplusplus
18506 extern "C"
18507 #endif
18508 char socket ();
18509 int
18510 main ()
18511 {
18512 return socket ();
18513   ;
18514   return 0;
18515 }
18516 _ACEOF
18517 rm -f conftest.$ac_objext conftest$ac_exeext
18518 if { (ac_try="$ac_link"
18519 case "(($ac_try" in
18520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521   *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524   (eval "$ac_link") 2>conftest.er1
18525   ac_status=$?
18526   grep -v '^ *+' conftest.er1 >conftest.err
18527   rm -f conftest.er1
18528   cat conftest.err >&5
18529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530   (exit $ac_status); } && {
18531          test -z "$ac_c_werror_flag" ||
18532          test ! -s conftest.err
18533        } && test -s conftest$ac_exeext &&
18534        $as_test_x conftest$ac_exeext; then
18535   ac_cv_lib_socket_socket=yes
18536 else
18537   echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18539
18540         ac_cv_lib_socket_socket=no
18541 fi
18542
18543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18544       conftest$ac_exeext conftest.$ac_ext
18545 LIBS=$ac_check_lib_save_LIBS
18546 fi
18547 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18548 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18549 if test $ac_cv_lib_socket_socket = yes; then
18550   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18551 else
18552   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18553 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18554 if test "${ac_cv_lib_inet_socket+set}" = set; then
18555   echo $ECHO_N "(cached) $ECHO_C" >&6
18556 else
18557   ac_check_lib_save_LIBS=$LIBS
18558 LIBS="-linet  $LIBS"
18559 cat >conftest.$ac_ext <<_ACEOF
18560 /* confdefs.h.  */
18561 _ACEOF
18562 cat confdefs.h >>conftest.$ac_ext
18563 cat >>conftest.$ac_ext <<_ACEOF
18564 /* end confdefs.h.  */
18565
18566 /* Override any GCC internal prototype to avoid an error.
18567    Use char because int might match the return type of a GCC
18568    builtin and then its argument prototype would still apply.  */
18569 #ifdef __cplusplus
18570 extern "C"
18571 #endif
18572 char socket ();
18573 int
18574 main ()
18575 {
18576 return socket ();
18577   ;
18578   return 0;
18579 }
18580 _ACEOF
18581 rm -f conftest.$ac_objext conftest$ac_exeext
18582 if { (ac_try="$ac_link"
18583 case "(($ac_try" in
18584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585   *) ac_try_echo=$ac_try;;
18586 esac
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588   (eval "$ac_link") 2>conftest.er1
18589   ac_status=$?
18590   grep -v '^ *+' conftest.er1 >conftest.err
18591   rm -f conftest.er1
18592   cat conftest.err >&5
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); } && {
18595          test -z "$ac_c_werror_flag" ||
18596          test ! -s conftest.err
18597        } && test -s conftest$ac_exeext &&
18598        $as_test_x conftest$ac_exeext; then
18599   ac_cv_lib_inet_socket=yes
18600 else
18601   echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18603
18604         ac_cv_lib_inet_socket=no
18605 fi
18606
18607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18608       conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18610 fi
18611 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18612 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18613 if test $ac_cv_lib_inet_socket = yes; then
18614   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18615 else
18616   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18617 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18618 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18619 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18620 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18621   echo $ECHO_N "(cached) $ECHO_C" >&6
18622 else
18623   ac_check_lib_save_LIBS=$LIBS
18624 LIBS="-lsocket -lnsl $LIBS"
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h.  */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h.  */
18631
18632 /* Override any GCC internal prototype to avoid an error.
18633    Use char because int might match the return type of a GCC
18634    builtin and then its argument prototype would still apply.  */
18635 #ifdef __cplusplus
18636 extern "C"
18637 #endif
18638 char socket ();
18639 int
18640 main ()
18641 {
18642 return socket ();
18643   ;
18644   return 0;
18645 }
18646 _ACEOF
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651   *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654   (eval "$ac_link") 2>conftest.er1
18655   ac_status=$?
18656   grep -v '^ *+' conftest.er1 >conftest.err
18657   rm -f conftest.er1
18658   cat conftest.err >&5
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); } && {
18661          test -z "$ac_c_werror_flag" ||
18662          test ! -s conftest.err
18663        } && test -s conftest$ac_exeext &&
18664        $as_test_x conftest$ac_exeext; then
18665   ac_cv_lib_socket_socket_lnsl=yes
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670         ac_cv_lib_socket_socket_lnsl=no
18671 fi
18672
18673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18674       conftest$ac_exeext conftest.$ac_ext
18675 LIBS=$ac_check_lib_save_LIBS
18676 fi
18677 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18678 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18679 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18680   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18681 fi
18682
18683 fi
18684
18685 fi
18686
18687 fi
18688
18689 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18690 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18691 if test "${ac_cv_func_inet_addr+set}" = set; then
18692   echo $ECHO_N "(cached) $ECHO_C" >&6
18693 else
18694   cat >conftest.$ac_ext <<_ACEOF
18695 /* confdefs.h.  */
18696 _ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h.  */
18700 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18702 #define inet_addr innocuous_inet_addr
18703
18704 /* System header to define __stub macros and hopefully few prototypes,
18705     which can conflict with char inet_addr (); below.
18706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18707     <limits.h> exists even on freestanding compilers.  */
18708
18709 #ifdef __STDC__
18710 # include <limits.h>
18711 #else
18712 # include <assert.h>
18713 #endif
18714
18715 #undef inet_addr
18716
18717 /* Override any GCC internal prototype to avoid an error.
18718    Use char because int might match the return type of a GCC
18719    builtin and then its argument prototype would still apply.  */
18720 #ifdef __cplusplus
18721 extern "C"
18722 #endif
18723 char inet_addr ();
18724 /* The GNU C library defines this for functions which it implements
18725     to always fail with ENOSYS.  Some functions are actually named
18726     something starting with __ and the normal name is an alias.  */
18727 #if defined __stub_inet_addr || defined __stub___inet_addr
18728 choke me
18729 #endif
18730
18731 int
18732 main ()
18733 {
18734 return inet_addr ();
18735   ;
18736   return 0;
18737 }
18738 _ACEOF
18739 rm -f conftest.$ac_objext conftest$ac_exeext
18740 if { (ac_try="$ac_link"
18741 case "(($ac_try" in
18742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743   *) ac_try_echo=$ac_try;;
18744 esac
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746   (eval "$ac_link") 2>conftest.er1
18747   ac_status=$?
18748   grep -v '^ *+' conftest.er1 >conftest.err
18749   rm -f conftest.er1
18750   cat conftest.err >&5
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); } && {
18753          test -z "$ac_c_werror_flag" ||
18754          test ! -s conftest.err
18755        } && test -s conftest$ac_exeext &&
18756        $as_test_x conftest$ac_exeext; then
18757   ac_cv_func_inet_addr=yes
18758 else
18759   echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18761
18762         ac_cv_func_inet_addr=no
18763 fi
18764
18765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18766       conftest$ac_exeext conftest.$ac_ext
18767 fi
18768 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18769 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18770 if test $ac_cv_func_inet_addr = yes; then
18771   :
18772 else
18773   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18774 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18775 if test "${ac_cv_func___inet_addr+set}" = set; then
18776   echo $ECHO_N "(cached) $ECHO_C" >&6
18777 else
18778   cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h.  */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h.  */
18784 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18786 #define __inet_addr innocuous___inet_addr
18787
18788 /* System header to define __stub macros and hopefully few prototypes,
18789     which can conflict with char __inet_addr (); below.
18790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18791     <limits.h> exists even on freestanding compilers.  */
18792
18793 #ifdef __STDC__
18794 # include <limits.h>
18795 #else
18796 # include <assert.h>
18797 #endif
18798
18799 #undef __inet_addr
18800
18801 /* Override any GCC internal prototype to avoid an error.
18802    Use char because int might match the return type of a GCC
18803    builtin and then its argument prototype would still apply.  */
18804 #ifdef __cplusplus
18805 extern "C"
18806 #endif
18807 char __inet_addr ();
18808 /* The GNU C library defines this for functions which it implements
18809     to always fail with ENOSYS.  Some functions are actually named
18810     something starting with __ and the normal name is an alias.  */
18811 #if defined __stub___inet_addr || defined __stub_____inet_addr
18812 choke me
18813 #endif
18814
18815 int
18816 main ()
18817 {
18818 return __inet_addr ();
18819   ;
18820   return 0;
18821 }
18822 _ACEOF
18823 rm -f conftest.$ac_objext conftest$ac_exeext
18824 if { (ac_try="$ac_link"
18825 case "(($ac_try" in
18826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827   *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830   (eval "$ac_link") 2>conftest.er1
18831   ac_status=$?
18832   grep -v '^ *+' conftest.er1 >conftest.err
18833   rm -f conftest.er1
18834   cat conftest.err >&5
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); } && {
18837          test -z "$ac_c_werror_flag" ||
18838          test ! -s conftest.err
18839        } && test -s conftest$ac_exeext &&
18840        $as_test_x conftest$ac_exeext; then
18841   ac_cv_func___inet_addr=yes
18842 else
18843   echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18845
18846         ac_cv_func___inet_addr=no
18847 fi
18848
18849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18850       conftest$ac_exeext conftest.$ac_ext
18851 fi
18852 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18853 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18854 if test $ac_cv_func___inet_addr = yes; then
18855   :
18856 else
18857   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18858 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18859 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
18860   echo $ECHO_N "(cached) $ECHO_C" >&6
18861 else
18862   ac_check_lib_save_LIBS=$LIBS
18863 LIBS="-lnsl  $LIBS"
18864 cat >conftest.$ac_ext <<_ACEOF
18865 /* confdefs.h.  */
18866 _ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h.  */
18870
18871 /* Override any GCC internal prototype to avoid an error.
18872    Use char because int might match the return type of a GCC
18873    builtin and then its argument prototype would still apply.  */
18874 #ifdef __cplusplus
18875 extern "C"
18876 #endif
18877 char inet_addr ();
18878 int
18879 main ()
18880 {
18881 return inet_addr ();
18882   ;
18883   return 0;
18884 }
18885 _ACEOF
18886 rm -f conftest.$ac_objext conftest$ac_exeext
18887 if { (ac_try="$ac_link"
18888 case "(($ac_try" in
18889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890   *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893   (eval "$ac_link") 2>conftest.er1
18894   ac_status=$?
18895   grep -v '^ *+' conftest.er1 >conftest.err
18896   rm -f conftest.er1
18897   cat conftest.err >&5
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); } && {
18900          test -z "$ac_c_werror_flag" ||
18901          test ! -s conftest.err
18902        } && test -s conftest$ac_exeext &&
18903        $as_test_x conftest$ac_exeext; then
18904   ac_cv_lib_nsl_inet_addr=yes
18905 else
18906   echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18908
18909         ac_cv_lib_nsl_inet_addr=no
18910 fi
18911
18912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18913       conftest$ac_exeext conftest.$ac_ext
18914 LIBS=$ac_check_lib_save_LIBS
18915 fi
18916 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18917 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18918 if test $ac_cv_lib_nsl_inet_addr = yes; then
18919   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18920 else
18921   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18922 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18923 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18924   echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18926   ac_check_lib_save_LIBS=$LIBS
18927 LIBS="-linet  $LIBS"
18928 cat >conftest.$ac_ext <<_ACEOF
18929 /* confdefs.h.  */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h.  */
18934
18935 /* Override any GCC internal prototype to avoid an error.
18936    Use char because int might match the return type of a GCC
18937    builtin and then its argument prototype would still apply.  */
18938 #ifdef __cplusplus
18939 extern "C"
18940 #endif
18941 char inet_addr ();
18942 int
18943 main ()
18944 {
18945 return inet_addr ();
18946   ;
18947   return 0;
18948 }
18949 _ACEOF
18950 rm -f conftest.$ac_objext conftest$ac_exeext
18951 if { (ac_try="$ac_link"
18952 case "(($ac_try" in
18953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954   *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957   (eval "$ac_link") 2>conftest.er1
18958   ac_status=$?
18959   grep -v '^ *+' conftest.er1 >conftest.err
18960   rm -f conftest.er1
18961   cat conftest.err >&5
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); } && {
18964          test -z "$ac_c_werror_flag" ||
18965          test ! -s conftest.err
18966        } && test -s conftest$ac_exeext &&
18967        $as_test_x conftest$ac_exeext; then
18968   ac_cv_lib_inet_inet_addr=yes
18969 else
18970   echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18972
18973         ac_cv_lib_inet_inet_addr=no
18974 fi
18975
18976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18977       conftest$ac_exeext conftest.$ac_ext
18978 LIBS=$ac_check_lib_save_LIBS
18979 fi
18980 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
18981 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18982 if test $ac_cv_lib_inet_inet_addr = yes; then
18983   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18984 else
18985   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18986 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18987 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18988 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18989 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
18990   echo $ECHO_N "(cached) $ECHO_C" >&6
18991 else
18992   ac_check_lib_save_LIBS=$LIBS
18993 LIBS="-lsocket -lnsl $LIBS"
18994 cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000
19001 /* Override any GCC internal prototype to avoid an error.
19002    Use char because int might match the return type of a GCC
19003    builtin and then its argument prototype would still apply.  */
19004 #ifdef __cplusplus
19005 extern "C"
19006 #endif
19007 char inet_addr ();
19008 int
19009 main ()
19010 {
19011 return inet_addr ();
19012   ;
19013   return 0;
19014 }
19015 _ACEOF
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023   (eval "$ac_link") 2>conftest.er1
19024   ac_status=$?
19025   grep -v '^ *+' conftest.er1 >conftest.err
19026   rm -f conftest.er1
19027   cat conftest.err >&5
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); } && {
19030          test -z "$ac_c_werror_flag" ||
19031          test ! -s conftest.err
19032        } && test -s conftest$ac_exeext &&
19033        $as_test_x conftest$ac_exeext; then
19034   ac_cv_lib_socket_inet_addr_lnsl=yes
19035 else
19036   echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19038
19039         ac_cv_lib_socket_inet_addr_lnsl=no
19040 fi
19041
19042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19043       conftest$ac_exeext conftest.$ac_ext
19044 LIBS=$ac_check_lib_save_LIBS
19045 fi
19046 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
19047 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
19048 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
19049   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
19050 fi
19051
19052 fi
19053
19054 fi
19055
19056 fi
19057
19058 fi
19059
19060 { echo "$as_me:$LINENO: checking for syslog" >&5
19061 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
19062 if test "${ac_cv_func_syslog+set}" = set; then
19063   echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065   cat >conftest.$ac_ext <<_ACEOF
19066 /* confdefs.h.  */
19067 _ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h.  */
19071 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19073 #define syslog innocuous_syslog
19074
19075 /* System header to define __stub macros and hopefully few prototypes,
19076     which can conflict with char syslog (); below.
19077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19078     <limits.h> exists even on freestanding compilers.  */
19079
19080 #ifdef __STDC__
19081 # include <limits.h>
19082 #else
19083 # include <assert.h>
19084 #endif
19085
19086 #undef syslog
19087
19088 /* Override any GCC internal prototype to avoid an error.
19089    Use char because int might match the return type of a GCC
19090    builtin and then its argument prototype would still apply.  */
19091 #ifdef __cplusplus
19092 extern "C"
19093 #endif
19094 char syslog ();
19095 /* The GNU C library defines this for functions which it implements
19096     to always fail with ENOSYS.  Some functions are actually named
19097     something starting with __ and the normal name is an alias.  */
19098 #if defined __stub_syslog || defined __stub___syslog
19099 choke me
19100 #endif
19101
19102 int
19103 main ()
19104 {
19105 return syslog ();
19106   ;
19107   return 0;
19108 }
19109 _ACEOF
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (ac_try="$ac_link"
19112 case "(($ac_try" in
19113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114   *) ac_try_echo=$ac_try;;
19115 esac
19116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19117   (eval "$ac_link") 2>conftest.er1
19118   ac_status=$?
19119   grep -v '^ *+' conftest.er1 >conftest.err
19120   rm -f conftest.er1
19121   cat conftest.err >&5
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); } && {
19124          test -z "$ac_c_werror_flag" ||
19125          test ! -s conftest.err
19126        } && test -s conftest$ac_exeext &&
19127        $as_test_x conftest$ac_exeext; then
19128   ac_cv_func_syslog=yes
19129 else
19130   echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133         ac_cv_func_syslog=no
19134 fi
19135
19136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19137       conftest$ac_exeext conftest.$ac_ext
19138 fi
19139 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19140 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19141 if test $ac_cv_func_syslog = yes; then
19142   :
19143 else
19144   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19145 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19146 if test "${ac_cv_lib_socket_syslog+set}" = set; then
19147   echo $ECHO_N "(cached) $ECHO_C" >&6
19148 else
19149   ac_check_lib_save_LIBS=$LIBS
19150 LIBS="-lsocket  $LIBS"
19151 cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h.  */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h.  */
19157
19158 /* Override any GCC internal prototype to avoid an error.
19159    Use char because int might match the return type of a GCC
19160    builtin and then its argument prototype would still apply.  */
19161 #ifdef __cplusplus
19162 extern "C"
19163 #endif
19164 char syslog ();
19165 int
19166 main ()
19167 {
19168 return syslog ();
19169   ;
19170   return 0;
19171 }
19172 _ACEOF
19173 rm -f conftest.$ac_objext conftest$ac_exeext
19174 if { (ac_try="$ac_link"
19175 case "(($ac_try" in
19176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177   *) ac_try_echo=$ac_try;;
19178 esac
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180   (eval "$ac_link") 2>conftest.er1
19181   ac_status=$?
19182   grep -v '^ *+' conftest.er1 >conftest.err
19183   rm -f conftest.er1
19184   cat conftest.err >&5
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); } && {
19187          test -z "$ac_c_werror_flag" ||
19188          test ! -s conftest.err
19189        } && test -s conftest$ac_exeext &&
19190        $as_test_x conftest$ac_exeext; then
19191   ac_cv_lib_socket_syslog=yes
19192 else
19193   echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19195
19196         ac_cv_lib_socket_syslog=no
19197 fi
19198
19199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19200       conftest$ac_exeext conftest.$ac_ext
19201 LIBS=$ac_check_lib_save_LIBS
19202 fi
19203 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19204 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19205 if test $ac_cv_lib_socket_syslog = yes; then
19206   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19207 else
19208   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19209 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19210 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19211   echo $ECHO_N "(cached) $ECHO_C" >&6
19212 else
19213   ac_check_lib_save_LIBS=$LIBS
19214 LIBS="-lnsl  $LIBS"
19215 cat >conftest.$ac_ext <<_ACEOF
19216 /* confdefs.h.  */
19217 _ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h.  */
19221
19222 /* Override any GCC internal prototype to avoid an error.
19223    Use char because int might match the return type of a GCC
19224    builtin and then its argument prototype would still apply.  */
19225 #ifdef __cplusplus
19226 extern "C"
19227 #endif
19228 char syslog ();
19229 int
19230 main ()
19231 {
19232 return syslog ();
19233   ;
19234   return 0;
19235 }
19236 _ACEOF
19237 rm -f conftest.$ac_objext conftest$ac_exeext
19238 if { (ac_try="$ac_link"
19239 case "(($ac_try" in
19240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241   *) ac_try_echo=$ac_try;;
19242 esac
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244   (eval "$ac_link") 2>conftest.er1
19245   ac_status=$?
19246   grep -v '^ *+' conftest.er1 >conftest.err
19247   rm -f conftest.er1
19248   cat conftest.err >&5
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); } && {
19251          test -z "$ac_c_werror_flag" ||
19252          test ! -s conftest.err
19253        } && test -s conftest$ac_exeext &&
19254        $as_test_x conftest$ac_exeext; then
19255   ac_cv_lib_nsl_syslog=yes
19256 else
19257   echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19259
19260         ac_cv_lib_nsl_syslog=no
19261 fi
19262
19263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19264       conftest$ac_exeext conftest.$ac_ext
19265 LIBS=$ac_check_lib_save_LIBS
19266 fi
19267 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19268 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19269 if test $ac_cv_lib_nsl_syslog = yes; then
19270   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19271 else
19272   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19273 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19274 if test "${ac_cv_lib_inet_syslog+set}" = set; then
19275   echo $ECHO_N "(cached) $ECHO_C" >&6
19276 else
19277   ac_check_lib_save_LIBS=$LIBS
19278 LIBS="-linet  $LIBS"
19279 cat >conftest.$ac_ext <<_ACEOF
19280 /* confdefs.h.  */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h.  */
19285
19286 /* Override any GCC internal prototype to avoid an error.
19287    Use char because int might match the return type of a GCC
19288    builtin and then its argument prototype would still apply.  */
19289 #ifdef __cplusplus
19290 extern "C"
19291 #endif
19292 char syslog ();
19293 int
19294 main ()
19295 {
19296 return syslog ();
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (ac_try="$ac_link"
19303 case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_link") 2>conftest.er1
19309   ac_status=$?
19310   grep -v '^ *+' conftest.er1 >conftest.err
19311   rm -f conftest.er1
19312   cat conftest.err >&5
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); } && {
19315          test -z "$ac_c_werror_flag" ||
19316          test ! -s conftest.err
19317        } && test -s conftest$ac_exeext &&
19318        $as_test_x conftest$ac_exeext; then
19319   ac_cv_lib_inet_syslog=yes
19320 else
19321   echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324         ac_cv_lib_inet_syslog=no
19325 fi
19326
19327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19328       conftest$ac_exeext conftest.$ac_ext
19329 LIBS=$ac_check_lib_save_LIBS
19330 fi
19331 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19332 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19333 if test $ac_cv_lib_inet_syslog = yes; then
19334   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19335 fi
19336
19337 fi
19338
19339 fi
19340
19341 fi
19342
19343 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
19344     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19345 # for constant arguments.  Useless!
19346 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19347 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19348 if test "${ac_cv_working_alloca_h+set}" = set; then
19349   echo $ECHO_N "(cached) $ECHO_C" >&6
19350 else
19351   cat >conftest.$ac_ext <<_ACEOF
19352 /* confdefs.h.  */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h.  */
19357 #include <alloca.h>
19358 int
19359 main ()
19360 {
19361 char *p = (char *) alloca (2 * sizeof (int));
19362                           if (p) return 0;
19363   ;
19364   return 0;
19365 }
19366 _ACEOF
19367 rm -f conftest.$ac_objext conftest$ac_exeext
19368 if { (ac_try="$ac_link"
19369 case "(($ac_try" in
19370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371   *) ac_try_echo=$ac_try;;
19372 esac
19373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374   (eval "$ac_link") 2>conftest.er1
19375   ac_status=$?
19376   grep -v '^ *+' conftest.er1 >conftest.err
19377   rm -f conftest.er1
19378   cat conftest.err >&5
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); } && {
19381          test -z "$ac_c_werror_flag" ||
19382          test ! -s conftest.err
19383        } && test -s conftest$ac_exeext &&
19384        $as_test_x conftest$ac_exeext; then
19385   ac_cv_working_alloca_h=yes
19386 else
19387   echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19389
19390         ac_cv_working_alloca_h=no
19391 fi
19392
19393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19394       conftest$ac_exeext conftest.$ac_ext
19395 fi
19396 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19397 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19398 if test $ac_cv_working_alloca_h = yes; then
19399
19400 cat >>confdefs.h <<\_ACEOF
19401 #define HAVE_ALLOCA_H 1
19402 _ACEOF
19403
19404 fi
19405
19406 { echo "$as_me:$LINENO: checking for alloca" >&5
19407 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19408 if test "${ac_cv_func_alloca_works+set}" = set; then
19409   echo $ECHO_N "(cached) $ECHO_C" >&6
19410 else
19411   cat >conftest.$ac_ext <<_ACEOF
19412 /* confdefs.h.  */
19413 _ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h.  */
19417 #ifdef __GNUC__
19418 # define alloca __builtin_alloca
19419 #else
19420 # ifdef _MSC_VER
19421 #  include <malloc.h>
19422 #  define alloca _alloca
19423 # else
19424 #  ifdef HAVE_ALLOCA_H
19425 #   include <alloca.h>
19426 #  else
19427 #   ifdef _AIX
19428  #pragma alloca
19429 #   else
19430 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19431 char *alloca ();
19432 #    endif
19433 #   endif
19434 #  endif
19435 # endif
19436 #endif
19437
19438 int
19439 main ()
19440 {
19441 char *p = (char *) alloca (1);
19442                                     if (p) return 0;
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451   *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454   (eval "$ac_link") 2>conftest.er1
19455   ac_status=$?
19456   grep -v '^ *+' conftest.er1 >conftest.err
19457   rm -f conftest.er1
19458   cat conftest.err >&5
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); } && {
19461          test -z "$ac_c_werror_flag" ||
19462          test ! -s conftest.err
19463        } && test -s conftest$ac_exeext &&
19464        $as_test_x conftest$ac_exeext; then
19465   ac_cv_func_alloca_works=yes
19466 else
19467   echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19469
19470         ac_cv_func_alloca_works=no
19471 fi
19472
19473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19474       conftest$ac_exeext conftest.$ac_ext
19475 fi
19476 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19477 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19478
19479 if test $ac_cv_func_alloca_works = yes; then
19480
19481 cat >>confdefs.h <<\_ACEOF
19482 #define HAVE_ALLOCA 1
19483 _ACEOF
19484
19485 else
19486   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19487 # that cause trouble.  Some versions do not even contain alloca or
19488 # contain a buggy version.  If you still want to use their alloca,
19489 # use ar to extract alloca.o from them instead of compiling alloca.c.
19490
19491 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19492
19493 cat >>confdefs.h <<\_ACEOF
19494 #define C_ALLOCA 1
19495 _ACEOF
19496
19497
19498 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19499 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19500 if test "${ac_cv_os_cray+set}" = set; then
19501   echo $ECHO_N "(cached) $ECHO_C" >&6
19502 else
19503   cat >conftest.$ac_ext <<_ACEOF
19504 /* confdefs.h.  */
19505 _ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h.  */
19509 #if defined CRAY && ! defined CRAY2
19510 webecray
19511 #else
19512 wenotbecray
19513 #endif
19514
19515 _ACEOF
19516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19517   $EGREP "webecray" >/dev/null 2>&1; then
19518   ac_cv_os_cray=yes
19519 else
19520   ac_cv_os_cray=no
19521 fi
19522 rm -f conftest*
19523
19524 fi
19525 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19526 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19527 if test $ac_cv_os_cray = yes; then
19528   for ac_func in _getb67 GETB67 getb67; do
19529     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19533   echo $ECHO_N "(cached) $ECHO_C" >&6
19534 else
19535   cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h.  */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h.  */
19541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19543 #define $ac_func innocuous_$ac_func
19544
19545 /* System header to define __stub macros and hopefully few prototypes,
19546     which can conflict with char $ac_func (); below.
19547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19548     <limits.h> exists even on freestanding compilers.  */
19549
19550 #ifdef __STDC__
19551 # include <limits.h>
19552 #else
19553 # include <assert.h>
19554 #endif
19555
19556 #undef $ac_func
19557
19558 /* Override any GCC internal prototype to avoid an error.
19559    Use char because int might match the return type of a GCC
19560    builtin and then its argument prototype would still apply.  */
19561 #ifdef __cplusplus
19562 extern "C"
19563 #endif
19564 char $ac_func ();
19565 /* The GNU C library defines this for functions which it implements
19566     to always fail with ENOSYS.  Some functions are actually named
19567     something starting with __ and the normal name is an alias.  */
19568 #if defined __stub_$ac_func || defined __stub___$ac_func
19569 choke me
19570 #endif
19571
19572 int
19573 main ()
19574 {
19575 return $ac_func ();
19576   ;
19577   return 0;
19578 }
19579 _ACEOF
19580 rm -f conftest.$ac_objext conftest$ac_exeext
19581 if { (ac_try="$ac_link"
19582 case "(($ac_try" in
19583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584   *) ac_try_echo=$ac_try;;
19585 esac
19586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587   (eval "$ac_link") 2>conftest.er1
19588   ac_status=$?
19589   grep -v '^ *+' conftest.er1 >conftest.err
19590   rm -f conftest.er1
19591   cat conftest.err >&5
19592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593   (exit $ac_status); } && {
19594          test -z "$ac_c_werror_flag" ||
19595          test ! -s conftest.err
19596        } && test -s conftest$ac_exeext &&
19597        $as_test_x conftest$ac_exeext; then
19598   eval "$as_ac_var=yes"
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603         eval "$as_ac_var=no"
19604 fi
19605
19606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19607       conftest$ac_exeext conftest.$ac_ext
19608 fi
19609 ac_res=`eval echo '${'$as_ac_var'}'`
19610                { echo "$as_me:$LINENO: result: $ac_res" >&5
19611 echo "${ECHO_T}$ac_res" >&6; }
19612 if test `eval echo '${'$as_ac_var'}'` = yes; then
19613
19614 cat >>confdefs.h <<_ACEOF
19615 #define CRAY_STACKSEG_END $ac_func
19616 _ACEOF
19617
19618     break
19619 fi
19620
19621   done
19622 fi
19623
19624 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19625 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19626 if test "${ac_cv_c_stack_direction+set}" = set; then
19627   echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629   if test "$cross_compiling" = yes; then
19630   ac_cv_c_stack_direction=0
19631 else
19632   cat >conftest.$ac_ext <<_ACEOF
19633 /* confdefs.h.  */
19634 _ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h.  */
19638 $ac_includes_default
19639 int
19640 find_stack_direction ()
19641 {
19642   static char *addr = 0;
19643   auto char dummy;
19644   if (addr == 0)
19645     {
19646       addr = &dummy;
19647       return find_stack_direction ();
19648     }
19649   else
19650     return (&dummy > addr) ? 1 : -1;
19651 }
19652
19653 int
19654 main ()
19655 {
19656   return find_stack_direction () < 0;
19657 }
19658 _ACEOF
19659 rm -f conftest$ac_exeext
19660 if { (ac_try="$ac_link"
19661 case "(($ac_try" in
19662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663   *) ac_try_echo=$ac_try;;
19664 esac
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666   (eval "$ac_link") 2>&5
19667   ac_status=$?
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19670   { (case "(($ac_try" in
19671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672   *) ac_try_echo=$ac_try;;
19673 esac
19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675   (eval "$ac_try") 2>&5
19676   ac_status=$?
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); }; }; then
19679   ac_cv_c_stack_direction=1
19680 else
19681   echo "$as_me: program exited with status $ac_status" >&5
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19684
19685 ( exit $ac_status )
19686 ac_cv_c_stack_direction=-1
19687 fi
19688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19689 fi
19690
19691
19692 fi
19693 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19694 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19695
19696 cat >>confdefs.h <<_ACEOF
19697 #define STACK_DIRECTION $ac_cv_c_stack_direction
19698 _ACEOF
19699
19700
19701 fi
19702
19703 fi
19704
19705 for ac_func in getprogname
19706 do
19707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19711   echo $ECHO_N "(cached) $ECHO_C" >&6
19712 else
19713   cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h.  */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h.  */
19719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19721 #define $ac_func innocuous_$ac_func
19722
19723 /* System header to define __stub macros and hopefully few prototypes,
19724     which can conflict with char $ac_func (); below.
19725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19726     <limits.h> exists even on freestanding compilers.  */
19727
19728 #ifdef __STDC__
19729 # include <limits.h>
19730 #else
19731 # include <assert.h>
19732 #endif
19733
19734 #undef $ac_func
19735
19736 /* Override any GCC internal prototype to avoid an error.
19737    Use char because int might match the return type of a GCC
19738    builtin and then its argument prototype would still apply.  */
19739 #ifdef __cplusplus
19740 extern "C"
19741 #endif
19742 char $ac_func ();
19743 /* The GNU C library defines this for functions which it implements
19744     to always fail with ENOSYS.  Some functions are actually named
19745     something starting with __ and the normal name is an alias.  */
19746 #if defined __stub_$ac_func || defined __stub___$ac_func
19747 choke me
19748 #endif
19749
19750 int
19751 main ()
19752 {
19753 return $ac_func ();
19754   ;
19755   return 0;
19756 }
19757 _ACEOF
19758 rm -f conftest.$ac_objext conftest$ac_exeext
19759 if { (ac_try="$ac_link"
19760 case "(($ac_try" in
19761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762   *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765   (eval "$ac_link") 2>conftest.er1
19766   ac_status=$?
19767   grep -v '^ *+' conftest.er1 >conftest.err
19768   rm -f conftest.er1
19769   cat conftest.err >&5
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); } && {
19772          test -z "$ac_c_werror_flag" ||
19773          test ! -s conftest.err
19774        } && test -s conftest$ac_exeext &&
19775        $as_test_x conftest$ac_exeext; then
19776   eval "$as_ac_var=yes"
19777 else
19778   echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19780
19781         eval "$as_ac_var=no"
19782 fi
19783
19784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19785       conftest$ac_exeext conftest.$ac_ext
19786 fi
19787 ac_res=`eval echo '${'$as_ac_var'}'`
19788                { echo "$as_me:$LINENO: result: $ac_res" >&5
19789 echo "${ECHO_T}$ac_res" >&6; }
19790 if test `eval echo '${'$as_ac_var'}'` = yes; then
19791   cat >>confdefs.h <<_ACEOF
19792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19793 _ACEOF
19794
19795 else
19796
19797     { echo "$as_me:$LINENO: checking for __progname" >&5
19798 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19799     if test "${sudo_cv___progname+set}" = set; then
19800   echo $ECHO_N "(cached) $ECHO_C" >&6
19801 else
19802
19803     cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h.  */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h.  */
19809
19810 int
19811 main ()
19812 {
19813 extern char *__progname; (void)puts(__progname);
19814   ;
19815   return 0;
19816 }
19817 _ACEOF
19818 rm -f conftest.$ac_objext conftest$ac_exeext
19819 if { (ac_try="$ac_link"
19820 case "(($ac_try" in
19821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822   *) ac_try_echo=$ac_try;;
19823 esac
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825   (eval "$ac_link") 2>conftest.er1
19826   ac_status=$?
19827   grep -v '^ *+' conftest.er1 >conftest.err
19828   rm -f conftest.er1
19829   cat conftest.err >&5
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); } && {
19832          test -z "$ac_c_werror_flag" ||
19833          test ! -s conftest.err
19834        } && test -s conftest$ac_exeext &&
19835        $as_test_x conftest$ac_exeext; then
19836   sudo_cv___progname=yes
19837 else
19838   echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19840
19841         sudo_cv___progname=no
19842 fi
19843
19844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19845       conftest$ac_exeext conftest.$ac_ext
19846 fi
19847
19848     if test "$sudo_cv___progname" = "yes"; then
19849         cat >>confdefs.h <<\_ACEOF
19850 #define HAVE___PROGNAME 1
19851 _ACEOF
19852
19853     else
19854         case " $LIBOBJS " in
19855   *" getprogname.$ac_objext "* ) ;;
19856   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19857  ;;
19858 esac
19859
19860     fi
19861     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19862 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19863
19864 fi
19865 done
19866
19867
19868
19869 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19870     for auth in $AUTH_EXCL_DEF; do
19871         case $auth in
19872             AIX_AUTH)   with_aixauth=maybe;;
19873             BSD_AUTH)   with_bsdauth=maybe;;
19874             PAM)        with_pam=maybe;;
19875             SIA)        CHECKSIA=true;;
19876         esac
19877     done
19878 fi
19879
19880 if test ${with_pam-"no"} != "no"; then
19881                 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19882 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19883 if test "${ac_cv_lib_dl_main+set}" = set; then
19884   echo $ECHO_N "(cached) $ECHO_C" >&6
19885 else
19886   ac_check_lib_save_LIBS=$LIBS
19887 LIBS="-ldl  $LIBS"
19888 cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h.  */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h.  */
19894
19895
19896 int
19897 main ()
19898 {
19899 return main ();
19900   ;
19901   return 0;
19902 }
19903 _ACEOF
19904 rm -f conftest.$ac_objext conftest$ac_exeext
19905 if { (ac_try="$ac_link"
19906 case "(($ac_try" in
19907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908   *) ac_try_echo=$ac_try;;
19909 esac
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911   (eval "$ac_link") 2>conftest.er1
19912   ac_status=$?
19913   grep -v '^ *+' conftest.er1 >conftest.err
19914   rm -f conftest.er1
19915   cat conftest.err >&5
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); } && {
19918          test -z "$ac_c_werror_flag" ||
19919          test ! -s conftest.err
19920        } && test -s conftest$ac_exeext &&
19921        $as_test_x conftest$ac_exeext; then
19922   ac_cv_lib_dl_main=yes
19923 else
19924   echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19926
19927         ac_cv_lib_dl_main=no
19928 fi
19929
19930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19931       conftest$ac_exeext conftest.$ac_ext
19932 LIBS=$ac_check_lib_save_LIBS
19933 fi
19934 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19935 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19936 if test $ac_cv_lib_dl_main = yes; then
19937   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19938 else
19939   SUDO_LIBS="${SUDO_LIBS} -lpam"
19940 fi
19941
19942     ac_cv_lib_dl=ac_cv_lib_dl_main
19943
19944
19945
19946 for ac_header in security/pam_appl.h pam/pam_appl.h
19947 do
19948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19953   echo $ECHO_N "(cached) $ECHO_C" >&6
19954 fi
19955 ac_res=`eval echo '${'$as_ac_Header'}'`
19956                { echo "$as_me:$LINENO: result: $ac_res" >&5
19957 echo "${ECHO_T}$ac_res" >&6; }
19958 else
19959   # Is the header compilable?
19960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 $ac_includes_default
19969 #include <$ac_header>
19970 _ACEOF
19971 rm -f conftest.$ac_objext
19972 if { (ac_try="$ac_compile"
19973 case "(($ac_try" in
19974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975   *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978   (eval "$ac_compile") 2>conftest.er1
19979   ac_status=$?
19980   grep -v '^ *+' conftest.er1 >conftest.err
19981   rm -f conftest.er1
19982   cat conftest.err >&5
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); } && {
19985          test -z "$ac_c_werror_flag" ||
19986          test ! -s conftest.err
19987        } && test -s conftest.$ac_objext; then
19988   ac_header_compiler=yes
19989 else
19990   echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19992
19993         ac_header_compiler=no
19994 fi
19995
19996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19998 echo "${ECHO_T}$ac_header_compiler" >&6; }
19999
20000 # Is the header present?
20001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20003 cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h.  */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h.  */
20009 #include <$ac_header>
20010 _ACEOF
20011 if { (ac_try="$ac_cpp conftest.$ac_ext"
20012 case "(($ac_try" in
20013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014   *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20018   ac_status=$?
20019   grep -v '^ *+' conftest.er1 >conftest.err
20020   rm -f conftest.er1
20021   cat conftest.err >&5
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); } >/dev/null && {
20024          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20025          test ! -s conftest.err
20026        }; then
20027   ac_header_preproc=yes
20028 else
20029   echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20031
20032   ac_header_preproc=no
20033 fi
20034
20035 rm -f conftest.err conftest.$ac_ext
20036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20037 echo "${ECHO_T}$ac_header_preproc" >&6; }
20038
20039 # So?  What about this header?
20040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20041   yes:no: )
20042     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20046     ac_header_preproc=yes
20047     ;;
20048   no:yes:* )
20049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20051     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20052 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20053     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20055     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20056 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20059     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20061
20062     ;;
20063 esac
20064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20067   echo $ECHO_N "(cached) $ECHO_C" >&6
20068 else
20069   eval "$as_ac_Header=\$ac_header_preproc"
20070 fi
20071 ac_res=`eval echo '${'$as_ac_Header'}'`
20072                { echo "$as_me:$LINENO: result: $ac_res" >&5
20073 echo "${ECHO_T}$ac_res" >&6; }
20074
20075 fi
20076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20077   cat >>confdefs.h <<_ACEOF
20078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20079 _ACEOF
20080  with_pam=yes; break
20081 fi
20082
20083 done
20084
20085     if test "$with_pam" = "yes"; then
20086         cat >>confdefs.h <<\_ACEOF
20087 #define HAVE_PAM 1
20088 _ACEOF
20089
20090         AUTH_OBJS="$AUTH_OBJS pam.o";
20091         AUTH_EXCL=PAM
20092         { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
20093 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
20094         # Check whether --enable-pam_session was given.
20095 if test "${enable_pam_session+set}" = set; then
20096   enableval=$enable_pam_session;  case "$enableval" in
20097                 yes)    { echo "$as_me:$LINENO: result: yes" >&5
20098 echo "${ECHO_T}yes" >&6; }
20099                         ;;
20100                 no)             { echo "$as_me:$LINENO: result: no" >&5
20101 echo "${ECHO_T}no" >&6; }
20102                             cat >>confdefs.h <<\_ACEOF
20103 #define NO_PAM_SESSION 1
20104 _ACEOF
20105
20106                             ;;
20107                 *)              { echo "$as_me:$LINENO: result: no" >&5
20108 echo "${ECHO_T}no" >&6; }
20109                             { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
20110 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
20111                             ;;
20112             esac
20113 else
20114   { echo "$as_me:$LINENO: result: yes" >&5
20115 echo "${ECHO_T}yes" >&6; }
20116 fi
20117
20118         case $host in
20119             *-*-linux*|*-*-solaris*)
20120                     # dgettext() may be defined to dgettext_libintl in the
20121                     # header file, so first check that it links w/ additional
20122                     # libs, then try with -lintl
20123                     cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h.  */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h.  */
20129 #include <libintl.h>
20130 int
20131 main ()
20132 {
20133 (void)dgettext((char *)0, (char *)0);
20134   ;
20135   return 0;
20136 }
20137 _ACEOF
20138 rm -f conftest.$ac_objext conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142   *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145   (eval "$ac_link") 2>conftest.er1
20146   ac_status=$?
20147   grep -v '^ *+' conftest.er1 >conftest.err
20148   rm -f conftest.er1
20149   cat conftest.err >&5
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); } && {
20152          test -z "$ac_c_werror_flag" ||
20153          test ! -s conftest.err
20154        } && test -s conftest$ac_exeext &&
20155        $as_test_x conftest$ac_exeext; then
20156   cat >>confdefs.h <<\_ACEOF
20157 #define HAVE_DGETTEXT 1
20158 _ACEOF
20159
20160 else
20161   echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20163
20164         { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20165 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20166 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20167   echo $ECHO_N "(cached) $ECHO_C" >&6
20168 else
20169   ac_check_lib_save_LIBS=$LIBS
20170 LIBS="-lintl  $LIBS"
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h.  */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h.  */
20177
20178 /* Override any GCC internal prototype to avoid an error.
20179    Use char because int might match the return type of a GCC
20180    builtin and then its argument prototype would still apply.  */
20181 #ifdef __cplusplus
20182 extern "C"
20183 #endif
20184 char dgettext ();
20185 int
20186 main ()
20187 {
20188 return dgettext ();
20189   ;
20190   return 0;
20191 }
20192 _ACEOF
20193 rm -f conftest.$ac_objext conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200   (eval "$ac_link") 2>conftest.er1
20201   ac_status=$?
20202   grep -v '^ *+' conftest.er1 >conftest.err
20203   rm -f conftest.er1
20204   cat conftest.err >&5
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } && {
20207          test -z "$ac_c_werror_flag" ||
20208          test ! -s conftest.err
20209        } && test -s conftest$ac_exeext &&
20210        $as_test_x conftest$ac_exeext; then
20211   ac_cv_lib_intl_dgettext=yes
20212 else
20213   echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20215
20216         ac_cv_lib_intl_dgettext=no
20217 fi
20218
20219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20220       conftest$ac_exeext conftest.$ac_ext
20221 LIBS=$ac_check_lib_save_LIBS
20222 fi
20223 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20224 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20225 if test $ac_cv_lib_intl_dgettext = yes; then
20226   LIBS="${LIBS} -lintl"
20227                         cat >>confdefs.h <<\_ACEOF
20228 #define HAVE_DGETTEXT 1
20229 _ACEOF
20230
20231 fi
20232
20233 fi
20234
20235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20236       conftest$ac_exeext conftest.$ac_ext
20237                     ;;
20238         esac
20239     fi
20240 fi
20241
20242 if test ${with_aixauth-'no'} != "no"; then
20243     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
20244         { echo "$as_me:$LINENO: using AIX general authentication" >&5
20245 echo "$as_me: using AIX general authentication" >&6;}
20246         cat >>confdefs.h <<\_ACEOF
20247 #define HAVE_AIXAUTH 1
20248 _ACEOF
20249
20250         AUTH_OBJS="$AUTH_OBJS aix_auth.o";
20251         SUDO_LIBS="${SUDO_LIBS} -ls"
20252         AUTH_EXCL=AIX_AUTH
20253     fi
20254 fi
20255
20256 if test ${with_bsdauth-'no'} != "no"; then
20257     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20258   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20259 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20260 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20261   echo $ECHO_N "(cached) $ECHO_C" >&6
20262 fi
20263 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20264 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20265 else
20266   # Is the header compilable?
20267 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
20268 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275 $ac_includes_default
20276 #include <bsd_auth.h>
20277 _ACEOF
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285   (eval "$ac_compile") 2>conftest.er1
20286   ac_status=$?
20287   grep -v '^ *+' conftest.er1 >conftest.err
20288   rm -f conftest.er1
20289   cat conftest.err >&5
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } && {
20292          test -z "$ac_c_werror_flag" ||
20293          test ! -s conftest.err
20294        } && test -s conftest.$ac_objext; then
20295   ac_header_compiler=yes
20296 else
20297   echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300         ac_header_compiler=no
20301 fi
20302
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20305 echo "${ECHO_T}$ac_header_compiler" >&6; }
20306
20307 # Is the header present?
20308 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20309 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
20310 cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316 #include <bsd_auth.h>
20317 _ACEOF
20318 if { (ac_try="$ac_cpp conftest.$ac_ext"
20319 case "(($ac_try" in
20320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321   *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20325   ac_status=$?
20326   grep -v '^ *+' conftest.er1 >conftest.err
20327   rm -f conftest.er1
20328   cat conftest.err >&5
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); } >/dev/null && {
20331          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20332          test ! -s conftest.err
20333        }; then
20334   ac_header_preproc=yes
20335 else
20336   echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20338
20339   ac_header_preproc=no
20340 fi
20341
20342 rm -f conftest.err conftest.$ac_ext
20343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20344 echo "${ECHO_T}$ac_header_preproc" >&6; }
20345
20346 # So?  What about this header?
20347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20348   yes:no: )
20349     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20350 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20351     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20352 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20353     ac_header_preproc=yes
20354     ;;
20355   no:yes:* )
20356     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20357 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20358     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
20359 echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
20360     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20361 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20362     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
20363 echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20364     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20365 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20366     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20367 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20368
20369     ;;
20370 esac
20371 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20372 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20373 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20374   echo $ECHO_N "(cached) $ECHO_C" >&6
20375 else
20376   ac_cv_header_bsd_auth_h=$ac_header_preproc
20377 fi
20378 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20379 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20380
20381 fi
20382 if test $ac_cv_header_bsd_auth_h = yes; then
20383   cat >>confdefs.h <<\_ACEOF
20384 #define HAVE_BSD_AUTH_H 1
20385 _ACEOF
20386
20387         AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20388         AUTH_EXCL=BSD_AUTH; BAMAN=""
20389 else
20390   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20391 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20392    { (exit 1); exit 1; }; }
20393 fi
20394
20395
20396 fi
20397
20398 if test ${CHECKSIA-'false'} = "true"; then
20399
20400 for ac_func in sia_ses_init
20401 do
20402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20406   echo $ECHO_N "(cached) $ECHO_C" >&6
20407 else
20408   cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h.  */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h.  */
20414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20416 #define $ac_func innocuous_$ac_func
20417
20418 /* System header to define __stub macros and hopefully few prototypes,
20419     which can conflict with char $ac_func (); below.
20420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20421     <limits.h> exists even on freestanding compilers.  */
20422
20423 #ifdef __STDC__
20424 # include <limits.h>
20425 #else
20426 # include <assert.h>
20427 #endif
20428
20429 #undef $ac_func
20430
20431 /* Override any GCC internal prototype to avoid an error.
20432    Use char because int might match the return type of a GCC
20433    builtin and then its argument prototype would still apply.  */
20434 #ifdef __cplusplus
20435 extern "C"
20436 #endif
20437 char $ac_func ();
20438 /* The GNU C library defines this for functions which it implements
20439     to always fail with ENOSYS.  Some functions are actually named
20440     something starting with __ and the normal name is an alias.  */
20441 #if defined __stub_$ac_func || defined __stub___$ac_func
20442 choke me
20443 #endif
20444
20445 int
20446 main ()
20447 {
20448 return $ac_func ();
20449   ;
20450   return 0;
20451 }
20452 _ACEOF
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460   (eval "$ac_link") 2>conftest.er1
20461   ac_status=$?
20462   grep -v '^ *+' conftest.er1 >conftest.err
20463   rm -f conftest.er1
20464   cat conftest.err >&5
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } && {
20467          test -z "$ac_c_werror_flag" ||
20468          test ! -s conftest.err
20469        } && test -s conftest$ac_exeext &&
20470        $as_test_x conftest$ac_exeext; then
20471   eval "$as_ac_var=yes"
20472 else
20473   echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476         eval "$as_ac_var=no"
20477 fi
20478
20479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480       conftest$ac_exeext conftest.$ac_ext
20481 fi
20482 ac_res=`eval echo '${'$as_ac_var'}'`
20483                { echo "$as_me:$LINENO: result: $ac_res" >&5
20484 echo "${ECHO_T}$ac_res" >&6; }
20485 if test `eval echo '${'$as_ac_var'}'` = yes; then
20486   cat >>confdefs.h <<_ACEOF
20487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20488 _ACEOF
20489  found=true
20490 else
20491   found=false
20492 fi
20493 done
20494
20495     if test "$found" = "true"; then
20496         AUTH_EXCL=SIA
20497         AUTH_OBJS="$AUTH_OBJS sia.o"
20498     fi
20499 fi
20500
20501 if test ${with_fwtk-'no'} != "no"; then
20502     if test "$with_fwtk" != "yes"; then
20503
20504     if test X"$with_rpath" = X"yes"; then
20505         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20506     else
20507         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20508     fi
20509     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20510         blibpath_add="${blibpath_add}:${with_fwtk}"
20511     fi
20512
20513         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20514         with_fwtk=yes
20515     fi
20516     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20517     AUTH_OBJS="$AUTH_OBJS fwtk.o"
20518 fi
20519
20520 if test ${with_SecurID-'no'} != "no"; then
20521     if test "$with_SecurID" != "yes"; then
20522         :
20523     elif test -d /usr/ace/examples; then
20524         with_SecurID=/usr/ace/examples
20525     else
20526         with_SecurID=/usr/ace
20527     fi
20528     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20529     _LDFLAGS="${LDFLAGS}"
20530
20531     if test X"$with_rpath" = X"yes"; then
20532         LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20533     else
20534         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20535     fi
20536     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20537         blibpath_add="${blibpath_add}:${with_SecurID}"
20538     fi
20539
20540     #
20541     # Determine whether to use the new or old SecurID API
20542     #
20543     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20544 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20545 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20546   echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548   ac_check_lib_save_LIBS=$LIBS
20549 LIBS="-laceclnt
20550             -lpthread
20551
20552      $LIBS"
20553 cat >conftest.$ac_ext <<_ACEOF
20554 /* confdefs.h.  */
20555 _ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h.  */
20559
20560 /* Override any GCC internal prototype to avoid an error.
20561    Use char because int might match the return type of a GCC
20562    builtin and then its argument prototype would still apply.  */
20563 #ifdef __cplusplus
20564 extern "C"
20565 #endif
20566 char SD_Init ();
20567 int
20568 main ()
20569 {
20570 return SD_Init ();
20571   ;
20572   return 0;
20573 }
20574 _ACEOF
20575 rm -f conftest.$ac_objext conftest$ac_exeext
20576 if { (ac_try="$ac_link"
20577 case "(($ac_try" in
20578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579   *) ac_try_echo=$ac_try;;
20580 esac
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582   (eval "$ac_link") 2>conftest.er1
20583   ac_status=$?
20584   grep -v '^ *+' conftest.er1 >conftest.err
20585   rm -f conftest.er1
20586   cat conftest.err >&5
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); } && {
20589          test -z "$ac_c_werror_flag" ||
20590          test ! -s conftest.err
20591        } && test -s conftest$ac_exeext &&
20592        $as_test_x conftest$ac_exeext; then
20593   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20594 else
20595   echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598         ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20599 fi
20600
20601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20602       conftest$ac_exeext conftest.$ac_ext
20603 LIBS=$ac_check_lib_save_LIBS
20604 fi
20605 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20606 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20607 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20608
20609             AUTH_OBJS="$AUTH_OBJS securid5.o";
20610             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20611
20612
20613
20614     if test X"$with_rpath" = X"yes"; then
20615         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20616     else
20617         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20618     fi
20619     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20620         blibpath_add="${blibpath_add}:${with_SecurID}"
20621     fi
20622
20623
20624 else
20625
20626             AUTH_OBJS="$AUTH_OBJS securid.o";
20627             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20628
20629 fi
20630
20631     LDFLAGS="${_LDFLAGS}"
20632 fi
20633
20634
20635 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20636     for auth in $AUTH_DEF; do
20637         case $auth in
20638             passwd)     : ${with_passwd='maybe'};;
20639         esac
20640     done
20641 fi
20642
20643 if test ${with_kerb4-'no'} != "no"; then
20644     cat >>confdefs.h <<\_ACEOF
20645 #define HAVE_KERB4 1
20646 _ACEOF
20647
20648                 O_LDFLAGS="$LDFLAGS"
20649     if test "$with_kerb4" = "yes"; then
20650         found=no
20651         O_CPPFLAGS="$CPPFLAGS"
20652         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20653             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20654             cat >conftest.$ac_ext <<_ACEOF
20655 #include <krb.h>
20656 _ACEOF
20657 if { (ac_try="$ac_cpp conftest.$ac_ext"
20658 case "(($ac_try" in
20659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660   *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20664   ac_status=$?
20665   grep -v '^ *+' conftest.er1 >conftest.err
20666   rm -f conftest.er1
20667   cat conftest.err >&5
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } >/dev/null && {
20670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20671          test ! -s conftest.err
20672        }; then
20673   found=yes; break
20674 else
20675   echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678
20679 fi
20680
20681 rm -f conftest.err conftest.$ac_ext
20682         done
20683         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20684     else
20685
20686     if test X"$with_rpath" = X"yes"; then
20687         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20688     else
20689         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20690     fi
20691     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20692         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20693     fi
20694
20695
20696     if test X"$with_rpath" = X"yes"; then
20697         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20698     else
20699         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20700     fi
20701     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20702         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20703     fi
20704
20705         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20706         if test "${ac_cv_header_krb_h+set}" = set; then
20707   { echo "$as_me:$LINENO: checking for krb.h" >&5
20708 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20709 if test "${ac_cv_header_krb_h+set}" = set; then
20710   echo $ECHO_N "(cached) $ECHO_C" >&6
20711 fi
20712 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20713 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20714 else
20715   # Is the header compilable?
20716 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20717 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20718 cat >conftest.$ac_ext <<_ACEOF
20719 /* confdefs.h.  */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h.  */
20724 $ac_includes_default
20725 #include <krb.h>
20726 _ACEOF
20727 rm -f conftest.$ac_objext
20728 if { (ac_try="$ac_compile"
20729 case "(($ac_try" in
20730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731   *) ac_try_echo=$ac_try;;
20732 esac
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734   (eval "$ac_compile") 2>conftest.er1
20735   ac_status=$?
20736   grep -v '^ *+' conftest.er1 >conftest.err
20737   rm -f conftest.er1
20738   cat conftest.err >&5
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); } && {
20741          test -z "$ac_c_werror_flag" ||
20742          test ! -s conftest.err
20743        } && test -s conftest.$ac_objext; then
20744   ac_header_compiler=yes
20745 else
20746   echo "$as_me: failed program was:" >&5
20747 sed 's/^/| /' conftest.$ac_ext >&5
20748
20749         ac_header_compiler=no
20750 fi
20751
20752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20754 echo "${ECHO_T}$ac_header_compiler" >&6; }
20755
20756 # Is the header present?
20757 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20758 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20759 cat >conftest.$ac_ext <<_ACEOF
20760 /* confdefs.h.  */
20761 _ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h.  */
20765 #include <krb.h>
20766 _ACEOF
20767 if { (ac_try="$ac_cpp conftest.$ac_ext"
20768 case "(($ac_try" in
20769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20770   *) ac_try_echo=$ac_try;;
20771 esac
20772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20773   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20774   ac_status=$?
20775   grep -v '^ *+' conftest.er1 >conftest.err
20776   rm -f conftest.er1
20777   cat conftest.err >&5
20778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779   (exit $ac_status); } >/dev/null && {
20780          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20781          test ! -s conftest.err
20782        }; then
20783   ac_header_preproc=yes
20784 else
20785   echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788   ac_header_preproc=no
20789 fi
20790
20791 rm -f conftest.err conftest.$ac_ext
20792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20793 echo "${ECHO_T}$ac_header_preproc" >&6; }
20794
20795 # So?  What about this header?
20796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20797   yes:no: )
20798     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20799 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20800     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20801 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20802     ac_header_preproc=yes
20803     ;;
20804   no:yes:* )
20805     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20806 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20807     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
20808 echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
20809     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20810 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20811     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
20812 echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20813     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20814 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20815     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20816 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20817
20818     ;;
20819 esac
20820 { echo "$as_me:$LINENO: checking for krb.h" >&5
20821 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20822 if test "${ac_cv_header_krb_h+set}" = set; then
20823   echo $ECHO_N "(cached) $ECHO_C" >&6
20824 else
20825   ac_cv_header_krb_h=$ac_header_preproc
20826 fi
20827 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20828 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20829
20830 fi
20831 if test $ac_cv_header_krb_h = yes; then
20832   found=yes
20833 else
20834   found=no
20835 fi
20836
20837
20838     fi
20839     if test X"$found" = X"no"; then
20840         { 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
20841 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;}
20842     fi
20843
20844                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20845 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20846 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20847   echo $ECHO_N "(cached) $ECHO_C" >&6
20848 else
20849   ac_check_lib_save_LIBS=$LIBS
20850 LIBS="-ldes  $LIBS"
20851 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h.  */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h.  */
20857
20858 /* Override any GCC internal prototype to avoid an error.
20859    Use char because int might match the return type of a GCC
20860    builtin and then its argument prototype would still apply.  */
20861 #ifdef __cplusplus
20862 extern "C"
20863 #endif
20864 char des_cbc_encrypt ();
20865 int
20866 main ()
20867 {
20868 return des_cbc_encrypt ();
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext conftest$ac_exeext
20874 if { (ac_try="$ac_link"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_link") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } && {
20887          test -z "$ac_c_werror_flag" ||
20888          test ! -s conftest.err
20889        } && test -s conftest$ac_exeext &&
20890        $as_test_x conftest$ac_exeext; then
20891   ac_cv_lib_des_des_cbc_encrypt=yes
20892 else
20893   echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20895
20896         ac_cv_lib_des_des_cbc_encrypt=no
20897 fi
20898
20899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20900       conftest$ac_exeext conftest.$ac_ext
20901 LIBS=$ac_check_lib_save_LIBS
20902 fi
20903 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20904 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20905 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20906   K4LIBS="-ldes"
20907 else
20908
20909         { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20910 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20911 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20912   echo $ECHO_N "(cached) $ECHO_C" >&6
20913 else
20914   ac_check_lib_save_LIBS=$LIBS
20915 LIBS="-ldes425  $LIBS"
20916 cat >conftest.$ac_ext <<_ACEOF
20917 /* confdefs.h.  */
20918 _ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h.  */
20922
20923 /* Override any GCC internal prototype to avoid an error.
20924    Use char because int might match the return type of a GCC
20925    builtin and then its argument prototype would still apply.  */
20926 #ifdef __cplusplus
20927 extern "C"
20928 #endif
20929 char des_cbc_encrypt ();
20930 int
20931 main ()
20932 {
20933 return des_cbc_encrypt ();
20934   ;
20935   return 0;
20936 }
20937 _ACEOF
20938 rm -f conftest.$ac_objext conftest$ac_exeext
20939 if { (ac_try="$ac_link"
20940 case "(($ac_try" in
20941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942   *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945   (eval "$ac_link") 2>conftest.er1
20946   ac_status=$?
20947   grep -v '^ *+' conftest.er1 >conftest.err
20948   rm -f conftest.er1
20949   cat conftest.err >&5
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); } && {
20952          test -z "$ac_c_werror_flag" ||
20953          test ! -s conftest.err
20954        } && test -s conftest$ac_exeext &&
20955        $as_test_x conftest$ac_exeext; then
20956   ac_cv_lib_des425_des_cbc_encrypt=yes
20957 else
20958   echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20960
20961         ac_cv_lib_des425_des_cbc_encrypt=no
20962 fi
20963
20964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20965       conftest$ac_exeext conftest.$ac_ext
20966 LIBS=$ac_check_lib_save_LIBS
20967 fi
20968 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20969 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20970 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20971   K4LIBS="-ldes425"
20972 else
20973   K4LIBS=""
20974 fi
20975
20976
20977 fi
20978
20979                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20980 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20981     cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h.  */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h.  */
20987 #include <krb.h>
20988 int
20989 main ()
20990 {
20991 const char *tmp = krb4_version;
20992   ;
20993   return 0;
20994 }
20995 _ACEOF
20996 rm -f conftest.$ac_objext
20997 if { (ac_try="$ac_compile"
20998 case "(($ac_try" in
20999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000   *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003   (eval "$ac_compile") 2>conftest.er1
21004   ac_status=$?
21005   grep -v '^ *+' conftest.er1 >conftest.err
21006   rm -f conftest.er1
21007   cat conftest.err >&5
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); } && {
21010          test -z "$ac_c_werror_flag" ||
21011          test ! -s conftest.err
21012        } && test -s conftest.$ac_objext; then
21013
21014             { echo "$as_me:$LINENO: result: yes" >&5
21015 echo "${ECHO_T}yes" >&6; }
21016             K4LIBS="${K4LIBS} -lcom_err"
21017             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21018 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21019 if test "${ac_cv_lib_roken_main+set}" = set; then
21020   echo $ECHO_N "(cached) $ECHO_C" >&6
21021 else
21022   ac_check_lib_save_LIBS=$LIBS
21023 LIBS="-lroken  $LIBS"
21024 cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h.  */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h.  */
21030
21031
21032 int
21033 main ()
21034 {
21035 return main ();
21036   ;
21037   return 0;
21038 }
21039 _ACEOF
21040 rm -f conftest.$ac_objext conftest$ac_exeext
21041 if { (ac_try="$ac_link"
21042 case "(($ac_try" in
21043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044   *) ac_try_echo=$ac_try;;
21045 esac
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047   (eval "$ac_link") 2>conftest.er1
21048   ac_status=$?
21049   grep -v '^ *+' conftest.er1 >conftest.err
21050   rm -f conftest.er1
21051   cat conftest.err >&5
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); } && {
21054          test -z "$ac_c_werror_flag" ||
21055          test ! -s conftest.err
21056        } && test -s conftest$ac_exeext &&
21057        $as_test_x conftest$ac_exeext; then
21058   ac_cv_lib_roken_main=yes
21059 else
21060   echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21062
21063         ac_cv_lib_roken_main=no
21064 fi
21065
21066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21067       conftest$ac_exeext conftest.$ac_ext
21068 LIBS=$ac_check_lib_save_LIBS
21069 fi
21070 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21071 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21072 if test $ac_cv_lib_roken_main = yes; then
21073   K4LIBS="${K4LIBS} -lroken"
21074 fi
21075
21076
21077 else
21078   echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21080
21081
21082             { echo "$as_me:$LINENO: result: no" >&5
21083 echo "${ECHO_T}no" >&6; }
21084
21085
21086 fi
21087
21088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21089                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
21090 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
21091 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
21092 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21093   echo $ECHO_N "(cached) $ECHO_C" >&6
21094 else
21095   ac_check_lib_save_LIBS=$LIBS
21096 LIBS="-lkrb $K4LIBS $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   eval "$as_ac_Lib=yes"
21132 else
21133   echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21135
21136         eval "$as_ac_Lib=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 ac_res=`eval echo '${'$as_ac_Lib'}'`
21144                { echo "$as_me:$LINENO: result: $ac_res" >&5
21145 echo "${ECHO_T}$ac_res" >&6; }
21146 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21147   K4LIBS="-lkrb $K4LIBS"
21148 else
21149
21150         as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
21151 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
21152 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
21153 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21154   echo $ECHO_N "(cached) $ECHO_C" >&6
21155 else
21156   ac_check_lib_save_LIBS=$LIBS
21157 LIBS="-lkrb4 $K4LIBS $LIBS"
21158 cat >conftest.$ac_ext <<_ACEOF
21159 /* confdefs.h.  */
21160 _ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h.  */
21164
21165
21166 int
21167 main ()
21168 {
21169 return main ();
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext conftest$ac_exeext
21175 if { (ac_try="$ac_link"
21176 case "(($ac_try" in
21177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178   *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181   (eval "$ac_link") 2>conftest.er1
21182   ac_status=$?
21183   grep -v '^ *+' conftest.er1 >conftest.err
21184   rm -f conftest.er1
21185   cat conftest.err >&5
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); } && {
21188          test -z "$ac_c_werror_flag" ||
21189          test ! -s conftest.err
21190        } && test -s conftest$ac_exeext &&
21191        $as_test_x conftest$ac_exeext; then
21192   eval "$as_ac_Lib=yes"
21193 else
21194   echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21196
21197         eval "$as_ac_Lib=no"
21198 fi
21199
21200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21201       conftest$ac_exeext conftest.$ac_ext
21202 LIBS=$ac_check_lib_save_LIBS
21203 fi
21204 ac_res=`eval echo '${'$as_ac_Lib'}'`
21205                { echo "$as_me:$LINENO: result: $ac_res" >&5
21206 echo "${ECHO_T}$ac_res" >&6; }
21207 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21208   K4LIBS="-lkrb4 $K4LIBS"
21209 else
21210   K4LIBS="-lkrb $K4LIBS"
21211             { 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
21212 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;}
21213
21214 fi
21215
21216
21217 fi
21218
21219     LDFLAGS="$O_LDFLAGS"
21220     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
21221     AUTH_OBJS="$AUTH_OBJS kerb4.o"
21222 fi
21223
21224 if test ${with_kerb5-'no'} != "no"; then
21225     # Extract the first word of "krb5-config", so it can be a program name with args.
21226 set dummy krb5-config; ac_word=$2
21227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21229 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
21230   echo $ECHO_N "(cached) $ECHO_C" >&6
21231 else
21232   if test -n "$KRB5CONFIG"; then
21233   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
21234 else
21235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21236 for as_dir in $PATH
21237 do
21238   IFS=$as_save_IFS
21239   test -z "$as_dir" && as_dir=.
21240   for ac_exec_ext in '' $ac_executable_extensions; do
21241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21242     ac_cv_prog_KRB5CONFIG="yes"
21243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21244     break 2
21245   fi
21246 done
21247 done
21248 IFS=$as_save_IFS
21249
21250   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
21251 fi
21252 fi
21253 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
21254 if test -n "$KRB5CONFIG"; then
21255   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
21256 echo "${ECHO_T}$KRB5CONFIG" >&6; }
21257 else
21258   { echo "$as_me:$LINENO: result: no" >&5
21259 echo "${ECHO_T}no" >&6; }
21260 fi
21261
21262
21263     if test -n "$KRB5CONFIG"; then
21264         cat >>confdefs.h <<\_ACEOF
21265 #define HAVE_KERB5 1
21266 _ACEOF
21267
21268         AUTH_OBJS="$AUTH_OBJS kerb5.o"
21269         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
21270         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
21271                                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21272 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21273         cat >conftest.$ac_ext <<_ACEOF
21274 /* confdefs.h.  */
21275 _ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h.  */
21279 #include <krb5.h>
21280 int
21281 main ()
21282 {
21283 const char *tmp = heimdal_version;
21284   ;
21285   return 0;
21286 }
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292   *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295   (eval "$ac_compile") 2>conftest.er1
21296   ac_status=$?
21297   grep -v '^ *+' conftest.er1 >conftest.err
21298   rm -f conftest.er1
21299   cat conftest.err >&5
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); } && {
21302          test -z "$ac_c_werror_flag" ||
21303          test ! -s conftest.err
21304        } && test -s conftest.$ac_objext; then
21305
21306                 { echo "$as_me:$LINENO: result: yes" >&5
21307 echo "${ECHO_T}yes" >&6; }
21308                 cat >>confdefs.h <<\_ACEOF
21309 #define HAVE_HEIMDAL 1
21310 _ACEOF
21311
21312
21313 else
21314   echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317
21318                 { echo "$as_me:$LINENO: result: no" >&5
21319 echo "${ECHO_T}no" >&6; }
21320
21321
21322 fi
21323
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325     fi
21326 fi
21327 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21328     cat >>confdefs.h <<\_ACEOF
21329 #define HAVE_KERB5 1
21330 _ACEOF
21331
21332                 if test "$with_kerb5" = "yes"; then
21333         found=no
21334         O_CPPFLAGS="$CPPFLAGS"
21335         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21336             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21337             cat >conftest.$ac_ext <<_ACEOF
21338 #include <krb5.h>
21339 _ACEOF
21340 if { (ac_try="$ac_cpp conftest.$ac_ext"
21341 case "(($ac_try" in
21342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343   *) ac_try_echo=$ac_try;;
21344 esac
21345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21346   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21347   ac_status=$?
21348   grep -v '^ *+' conftest.er1 >conftest.err
21349   rm -f conftest.er1
21350   cat conftest.err >&5
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); } >/dev/null && {
21353          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21354          test ! -s conftest.err
21355        }; then
21356   found=yes; break
21357 else
21358   echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21360
21361
21362 fi
21363
21364 rm -f conftest.err conftest.$ac_ext
21365         done
21366         if test X"$found" = X"no"; then
21367             CPPFLAGS="$O_CPPFLAGS"
21368             { 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
21369 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;}
21370         fi
21371     else
21372
21373     if test X"$with_rpath" = X"yes"; then
21374         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21375     else
21376         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21377     fi
21378     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21379         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21380     fi
21381
21382         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21383     fi
21384
21385                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21386 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21387     cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393 #include <krb5.h>
21394 int
21395 main ()
21396 {
21397 const char *tmp = heimdal_version;
21398   ;
21399   return 0;
21400 }
21401 _ACEOF
21402 rm -f conftest.$ac_objext
21403 if { (ac_try="$ac_compile"
21404 case "(($ac_try" in
21405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406   *) ac_try_echo=$ac_try;;
21407 esac
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409   (eval "$ac_compile") 2>conftest.er1
21410   ac_status=$?
21411   grep -v '^ *+' conftest.er1 >conftest.err
21412   rm -f conftest.er1
21413   cat conftest.err >&5
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); } && {
21416          test -z "$ac_c_werror_flag" ||
21417          test ! -s conftest.err
21418        } && test -s conftest.$ac_objext; then
21419
21420             { echo "$as_me:$LINENO: result: yes" >&5
21421 echo "${ECHO_T}yes" >&6; }
21422             cat >>confdefs.h <<\_ACEOF
21423 #define HAVE_HEIMDAL 1
21424 _ACEOF
21425
21426             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21427             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21428 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21429 if test "${ac_cv_lib_roken_main+set}" = set; then
21430   echo $ECHO_N "(cached) $ECHO_C" >&6
21431 else
21432   ac_check_lib_save_LIBS=$LIBS
21433 LIBS="-lroken  $LIBS"
21434 cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h.  */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h.  */
21440
21441
21442 int
21443 main ()
21444 {
21445 return main ();
21446   ;
21447   return 0;
21448 }
21449 _ACEOF
21450 rm -f conftest.$ac_objext conftest$ac_exeext
21451 if { (ac_try="$ac_link"
21452 case "(($ac_try" in
21453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454   *) ac_try_echo=$ac_try;;
21455 esac
21456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457   (eval "$ac_link") 2>conftest.er1
21458   ac_status=$?
21459   grep -v '^ *+' conftest.er1 >conftest.err
21460   rm -f conftest.er1
21461   cat conftest.err >&5
21462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463   (exit $ac_status); } && {
21464          test -z "$ac_c_werror_flag" ||
21465          test ! -s conftest.err
21466        } && test -s conftest$ac_exeext &&
21467        $as_test_x conftest$ac_exeext; then
21468   ac_cv_lib_roken_main=yes
21469 else
21470   echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21472
21473         ac_cv_lib_roken_main=no
21474 fi
21475
21476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21477       conftest$ac_exeext conftest.$ac_ext
21478 LIBS=$ac_check_lib_save_LIBS
21479 fi
21480 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21481 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21482 if test $ac_cv_lib_roken_main = yes; then
21483   SUDO_LIBS="${SUDO_LIBS} -lroken"
21484 fi
21485
21486
21487 else
21488   echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491
21492             { echo "$as_me:$LINENO: result: no" >&5
21493 echo "${ECHO_T}no" >&6; }
21494             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21495             { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21496 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21497 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21498   echo $ECHO_N "(cached) $ECHO_C" >&6
21499 else
21500   ac_check_lib_save_LIBS=$LIBS
21501 LIBS="-lkrb5support  $LIBS"
21502 cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h.  */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h.  */
21508
21509
21510 int
21511 main ()
21512 {
21513 return main ();
21514   ;
21515   return 0;
21516 }
21517 _ACEOF
21518 rm -f conftest.$ac_objext conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522   *) ac_try_echo=$ac_try;;
21523 esac
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525   (eval "$ac_link") 2>conftest.er1
21526   ac_status=$?
21527   grep -v '^ *+' conftest.er1 >conftest.err
21528   rm -f conftest.er1
21529   cat conftest.err >&5
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); } && {
21532          test -z "$ac_c_werror_flag" ||
21533          test ! -s conftest.err
21534        } && test -s conftest$ac_exeext &&
21535        $as_test_x conftest$ac_exeext; then
21536   ac_cv_lib_krb5support_main=yes
21537 else
21538   echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21540
21541         ac_cv_lib_krb5support_main=no
21542 fi
21543
21544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21545       conftest$ac_exeext conftest.$ac_ext
21546 LIBS=$ac_check_lib_save_LIBS
21547 fi
21548 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21549 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21550 if test $ac_cv_lib_krb5support_main = yes; then
21551   SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21552 fi
21553
21554
21555 fi
21556
21557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558     AUTH_OBJS="$AUTH_OBJS kerb5.o"
21559     _LIBS="$LIBS"
21560     LIBS="${LIBS} ${SUDO_LIBS}"
21561
21562
21563 for ac_func in krb5_verify_user krb5_init_secure_context
21564 do
21565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571   cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h.  */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h.  */
21577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21579 #define $ac_func innocuous_$ac_func
21580
21581 /* System header to define __stub macros and hopefully few prototypes,
21582     which can conflict with char $ac_func (); below.
21583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21584     <limits.h> exists even on freestanding compilers.  */
21585
21586 #ifdef __STDC__
21587 # include <limits.h>
21588 #else
21589 # include <assert.h>
21590 #endif
21591
21592 #undef $ac_func
21593
21594 /* Override any GCC internal prototype to avoid an error.
21595    Use char because int might match the return type of a GCC
21596    builtin and then its argument prototype would still apply.  */
21597 #ifdef __cplusplus
21598 extern "C"
21599 #endif
21600 char $ac_func ();
21601 /* The GNU C library defines this for functions which it implements
21602     to always fail with ENOSYS.  Some functions are actually named
21603     something starting with __ and the normal name is an alias.  */
21604 #if defined __stub_$ac_func || defined __stub___$ac_func
21605 choke me
21606 #endif
21607
21608 int
21609 main ()
21610 {
21611 return $ac_func ();
21612   ;
21613   return 0;
21614 }
21615 _ACEOF
21616 rm -f conftest.$ac_objext conftest$ac_exeext
21617 if { (ac_try="$ac_link"
21618 case "(($ac_try" in
21619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620   *) ac_try_echo=$ac_try;;
21621 esac
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623   (eval "$ac_link") 2>conftest.er1
21624   ac_status=$?
21625   grep -v '^ *+' conftest.er1 >conftest.err
21626   rm -f conftest.er1
21627   cat conftest.err >&5
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); } && {
21630          test -z "$ac_c_werror_flag" ||
21631          test ! -s conftest.err
21632        } && test -s conftest$ac_exeext &&
21633        $as_test_x conftest$ac_exeext; then
21634   eval "$as_ac_var=yes"
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639         eval "$as_ac_var=no"
21640 fi
21641
21642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21643       conftest$ac_exeext conftest.$ac_ext
21644 fi
21645 ac_res=`eval echo '${'$as_ac_var'}'`
21646                { echo "$as_me:$LINENO: result: $ac_res" >&5
21647 echo "${ECHO_T}$ac_res" >&6; }
21648 if test `eval echo '${'$as_ac_var'}'` = yes; then
21649   cat >>confdefs.h <<_ACEOF
21650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21651 _ACEOF
21652
21653 fi
21654 done
21655
21656     LIBS="$_LIBS"
21657 fi
21658
21659 if test ${with_AFS-'no'} = "yes"; then
21660
21661     # looks like the "standard" place for AFS libs is /usr/afsws/lib
21662     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21663     for i in $AFSLIBDIRS; do
21664         if test -d ${i}; then
21665
21666     if test X"$with_rpath" = X"yes"; then
21667         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21668     else
21669         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21670     fi
21671     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21672         blibpath_add="${blibpath_add}:$i"
21673     fi
21674
21675             FOUND_AFSLIBDIR=true
21676         fi
21677     done
21678     if test -z "$FOUND_AFSLIBDIR"; then
21679         { 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
21680 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;}
21681     fi
21682
21683     # Order is important here.  Note that we build AFS_LIBS from right to left
21684     # since AFS_LIBS may be initialized with BSD compat libs that must go last
21685     AFS_LIBS="-laudit ${AFS_LIBS}"
21686     for i in $AFSLIBDIRS; do
21687         if test -f ${i}/util.a; then
21688             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21689             FOUND_UTIL_A=true
21690             break;
21691         fi
21692     done
21693     if test -z "$FOUND_UTIL_A"; then
21694         AFS_LIBS="-lutil ${AFS_LIBS}"
21695     fi
21696     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21697
21698     # AFS includes may live in /usr/include on some machines...
21699     for i in /usr/afsws/include; do
21700         if test -d ${i}; then
21701             CPPFLAGS="${CPPFLAGS} -I${i}"
21702             FOUND_AFSINCDIR=true
21703         fi
21704     done
21705
21706     if test -z "$FOUND_AFSLIBDIR"; then
21707         { 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
21708 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;}
21709     fi
21710
21711     AUTH_OBJS="$AUTH_OBJS afs.o"
21712 fi
21713
21714 if test ${with_DCE-'no'} = "yes"; then
21715     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21716     SUDO_LIBS="${SUDO_LIBS} -ldce"
21717     AUTH_OBJS="$AUTH_OBJS dce.o"
21718 fi
21719
21720 if test ${with_skey-'no'} = "yes"; then
21721     O_LDFLAGS="$LDFLAGS"
21722     if test "$with_skey" != "yes"; then
21723         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21724
21725     if test X"$with_rpath" = X"yes"; then
21726         LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21727     else
21728         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21729     fi
21730     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21731         blibpath_add="${blibpath_add}:${with_skey}/lib"
21732     fi
21733
21734
21735     if test X"$with_rpath" = X"yes"; then
21736         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21737     else
21738         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21739     fi
21740     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21741         blibpath_add="${blibpath_add}:${with_skey}/lib"
21742     fi
21743
21744         cat >conftest.$ac_ext <<_ACEOF
21745 #include <skey.h>
21746 _ACEOF
21747 if { (ac_try="$ac_cpp conftest.$ac_ext"
21748 case "(($ac_try" in
21749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750   *) ac_try_echo=$ac_try;;
21751 esac
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21754   ac_status=$?
21755   grep -v '^ *+' conftest.er1 >conftest.err
21756   rm -f conftest.er1
21757   cat conftest.err >&5
21758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759   (exit $ac_status); } >/dev/null && {
21760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21761          test ! -s conftest.err
21762        }; then
21763   found=yes
21764 else
21765   echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768   found=no
21769 fi
21770
21771 rm -f conftest.err conftest.$ac_ext
21772     else
21773         found=no
21774         O_CPPFLAGS="$CPPFLAGS"
21775         for dir in "" "/usr/local" "/usr/contrib"; do
21776             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21777             cat >conftest.$ac_ext <<_ACEOF
21778 #include <skey.h>
21779 _ACEOF
21780 if { (ac_try="$ac_cpp conftest.$ac_ext"
21781 case "(($ac_try" in
21782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783   *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21787   ac_status=$?
21788   grep -v '^ *+' conftest.er1 >conftest.err
21789   rm -f conftest.er1
21790   cat conftest.err >&5
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); } >/dev/null && {
21793          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21794          test ! -s conftest.err
21795        }; then
21796   found=yes; break
21797 else
21798   echo "$as_me: failed program was:" >&5
21799 sed 's/^/| /' conftest.$ac_ext >&5
21800
21801
21802 fi
21803
21804 rm -f conftest.err conftest.$ac_ext
21805         done
21806         if test "$found" = "no" -o -z "$dir"; then
21807             CPPFLAGS="$O_CPPFLAGS"
21808         else
21809
21810     if test X"$with_rpath" = X"yes"; then
21811         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21812     else
21813         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21814     fi
21815     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21816         blibpath_add="${blibpath_add}:${dir}/lib"
21817     fi
21818
21819
21820     if test X"$with_rpath" = X"yes"; then
21821         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21822     else
21823         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21824     fi
21825     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21826         blibpath_add="${blibpath_add}:${dir}/lib"
21827     fi
21828
21829         fi
21830     fi
21831     if test "$found" = "no"; then
21832         { 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
21833 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;}
21834     fi
21835     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21836 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21837 if test "${ac_cv_lib_skey_main+set}" = set; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840   ac_check_lib_save_LIBS=$LIBS
21841 LIBS="-lskey  $LIBS"
21842 cat >conftest.$ac_ext <<_ACEOF
21843 /* confdefs.h.  */
21844 _ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h.  */
21848
21849
21850 int
21851 main ()
21852 {
21853 return main ();
21854   ;
21855   return 0;
21856 }
21857 _ACEOF
21858 rm -f conftest.$ac_objext conftest$ac_exeext
21859 if { (ac_try="$ac_link"
21860 case "(($ac_try" in
21861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862   *) ac_try_echo=$ac_try;;
21863 esac
21864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21865   (eval "$ac_link") 2>conftest.er1
21866   ac_status=$?
21867   grep -v '^ *+' conftest.er1 >conftest.err
21868   rm -f conftest.er1
21869   cat conftest.err >&5
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); } && {
21872          test -z "$ac_c_werror_flag" ||
21873          test ! -s conftest.err
21874        } && test -s conftest$ac_exeext &&
21875        $as_test_x conftest$ac_exeext; then
21876   ac_cv_lib_skey_main=yes
21877 else
21878   echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21880
21881         ac_cv_lib_skey_main=no
21882 fi
21883
21884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21885       conftest$ac_exeext conftest.$ac_ext
21886 LIBS=$ac_check_lib_save_LIBS
21887 fi
21888 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21889 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21890 if test $ac_cv_lib_skey_main = yes; then
21891   found=yes
21892 else
21893   { 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
21894 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;}
21895 fi
21896
21897     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21898 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21899 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21900   echo $ECHO_N "(cached) $ECHO_C" >&6
21901 else
21902   ac_check_lib_save_LIBS=$LIBS
21903 LIBS="-lskey  $LIBS"
21904 cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h.  */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h.  */
21910
21911 /* Override any GCC internal prototype to avoid an error.
21912    Use char because int might match the return type of a GCC
21913    builtin and then its argument prototype would still apply.  */
21914 #ifdef __cplusplus
21915 extern "C"
21916 #endif
21917 char skeyaccess ();
21918 int
21919 main ()
21920 {
21921 return skeyaccess ();
21922   ;
21923   return 0;
21924 }
21925 _ACEOF
21926 rm -f conftest.$ac_objext conftest$ac_exeext
21927 if { (ac_try="$ac_link"
21928 case "(($ac_try" in
21929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930   *) ac_try_echo=$ac_try;;
21931 esac
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933   (eval "$ac_link") 2>conftest.er1
21934   ac_status=$?
21935   grep -v '^ *+' conftest.er1 >conftest.err
21936   rm -f conftest.er1
21937   cat conftest.err >&5
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); } && {
21940          test -z "$ac_c_werror_flag" ||
21941          test ! -s conftest.err
21942        } && test -s conftest$ac_exeext &&
21943        $as_test_x conftest$ac_exeext; then
21944   ac_cv_lib_skey_skeyaccess=yes
21945 else
21946   echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21948
21949         ac_cv_lib_skey_skeyaccess=no
21950 fi
21951
21952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21953       conftest$ac_exeext conftest.$ac_ext
21954 LIBS=$ac_check_lib_save_LIBS
21955 fi
21956 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21957 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21958 if test $ac_cv_lib_skey_skeyaccess = yes; then
21959   cat >>confdefs.h <<\_ACEOF
21960 #define HAVE_SKEYACCESS 1
21961 _ACEOF
21962
21963 fi
21964
21965     LDFLAGS="$O_LDFLAGS"
21966     SUDO_LIBS="${SUDO_LIBS} -lskey"
21967     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21968 fi
21969
21970 if test ${with_opie-'no'} = "yes"; then
21971     O_LDFLAGS="$LDFLAGS"
21972     if test "$with_opie" != "yes"; then
21973         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
21974
21975     if test X"$with_rpath" = X"yes"; then
21976         LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21977     else
21978         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
21979     fi
21980     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21981         blibpath_add="${blibpath_add}:${with_opie}/lib"
21982     fi
21983
21984
21985     if test X"$with_rpath" = X"yes"; then
21986         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21987     else
21988         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
21989     fi
21990     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21991         blibpath_add="${blibpath_add}:${with_opie}/lib"
21992     fi
21993
21994         cat >conftest.$ac_ext <<_ACEOF
21995 #include <opie.h>
21996 _ACEOF
21997 if { (ac_try="$ac_cpp conftest.$ac_ext"
21998 case "(($ac_try" in
21999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000   *) ac_try_echo=$ac_try;;
22001 esac
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22004   ac_status=$?
22005   grep -v '^ *+' conftest.er1 >conftest.err
22006   rm -f conftest.er1
22007   cat conftest.err >&5
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); } >/dev/null && {
22010          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22011          test ! -s conftest.err
22012        }; then
22013   found=yes
22014 else
22015   echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22017
22018   found=no
22019 fi
22020
22021 rm -f conftest.err conftest.$ac_ext
22022     else
22023         found=no
22024         O_CPPFLAGS="$CPPFLAGS"
22025         for dir in "" "/usr/local" "/usr/contrib"; do
22026             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
22027             cat >conftest.$ac_ext <<_ACEOF
22028 #include <opie.h>
22029 _ACEOF
22030 if { (ac_try="$ac_cpp conftest.$ac_ext"
22031 case "(($ac_try" in
22032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033   *) ac_try_echo=$ac_try;;
22034 esac
22035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22037   ac_status=$?
22038   grep -v '^ *+' conftest.er1 >conftest.err
22039   rm -f conftest.er1
22040   cat conftest.err >&5
22041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042   (exit $ac_status); } >/dev/null && {
22043          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22044          test ! -s conftest.err
22045        }; then
22046   found=yes; break
22047 else
22048   echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22050
22051
22052 fi
22053
22054 rm -f conftest.err conftest.$ac_ext
22055         done
22056         if test "$found" = "no" -o -z "$dir"; then
22057             CPPFLAGS="$O_CPPFLAGS"
22058         else
22059
22060     if test X"$with_rpath" = X"yes"; then
22061         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
22062     else
22063         LDFLAGS="${LDFLAGS} -L${dir}/lib"
22064     fi
22065     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22066         blibpath_add="${blibpath_add}:${dir}/lib"
22067     fi
22068
22069
22070     if test X"$with_rpath" = X"yes"; then
22071         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
22072     else
22073         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
22074     fi
22075     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22076         blibpath_add="${blibpath_add}:${dir}/lib"
22077     fi
22078
22079         fi
22080     fi
22081     if test "$found" = "no"; then
22082         { 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
22083 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;}
22084     fi
22085     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
22086 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
22087 if test "${ac_cv_lib_opie_main+set}" = set; then
22088   echo $ECHO_N "(cached) $ECHO_C" >&6
22089 else
22090   ac_check_lib_save_LIBS=$LIBS
22091 LIBS="-lopie  $LIBS"
22092 cat >conftest.$ac_ext <<_ACEOF
22093 /* confdefs.h.  */
22094 _ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h.  */
22098
22099
22100 int
22101 main ()
22102 {
22103 return main ();
22104   ;
22105   return 0;
22106 }
22107 _ACEOF
22108 rm -f conftest.$ac_objext conftest$ac_exeext
22109 if { (ac_try="$ac_link"
22110 case "(($ac_try" in
22111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112   *) ac_try_echo=$ac_try;;
22113 esac
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115   (eval "$ac_link") 2>conftest.er1
22116   ac_status=$?
22117   grep -v '^ *+' conftest.er1 >conftest.err
22118   rm -f conftest.er1
22119   cat conftest.err >&5
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); } && {
22122          test -z "$ac_c_werror_flag" ||
22123          test ! -s conftest.err
22124        } && test -s conftest$ac_exeext &&
22125        $as_test_x conftest$ac_exeext; then
22126   ac_cv_lib_opie_main=yes
22127 else
22128   echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22130
22131         ac_cv_lib_opie_main=no
22132 fi
22133
22134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22135       conftest$ac_exeext conftest.$ac_ext
22136 LIBS=$ac_check_lib_save_LIBS
22137 fi
22138 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
22139 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
22140 if test $ac_cv_lib_opie_main = yes; then
22141   found=yes
22142 else
22143   { 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
22144 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;}
22145 fi
22146
22147     LDFLAGS="$O_LDFLAGS"
22148     SUDO_LIBS="${SUDO_LIBS} -lopie"
22149     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22150 fi
22151
22152 if test ${with_passwd-'no'} != "no"; then
22153                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
22154         { echo "$as_me:$LINENO: checking for library containing crypt" >&5
22155 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22156 if test "${ac_cv_search_crypt+set}" = set; then
22157   echo $ECHO_N "(cached) $ECHO_C" >&6
22158 else
22159   ac_func_search_save_LIBS=$LIBS
22160 cat >conftest.$ac_ext <<_ACEOF
22161 /* confdefs.h.  */
22162 _ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h.  */
22166
22167 /* Override any GCC internal prototype to avoid an error.
22168    Use char because int might match the return type of a GCC
22169    builtin and then its argument prototype would still apply.  */
22170 #ifdef __cplusplus
22171 extern "C"
22172 #endif
22173 char crypt ();
22174 int
22175 main ()
22176 {
22177 return crypt ();
22178   ;
22179   return 0;
22180 }
22181 _ACEOF
22182 for ac_lib in '' crypt crypt_d ufc; do
22183   if test -z "$ac_lib"; then
22184     ac_res="none required"
22185   else
22186     ac_res=-l$ac_lib
22187     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22188   fi
22189   rm -f conftest.$ac_objext conftest$ac_exeext
22190 if { (ac_try="$ac_link"
22191 case "(($ac_try" in
22192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193   *) ac_try_echo=$ac_try;;
22194 esac
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196   (eval "$ac_link") 2>conftest.er1
22197   ac_status=$?
22198   grep -v '^ *+' conftest.er1 >conftest.err
22199   rm -f conftest.er1
22200   cat conftest.err >&5
22201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202   (exit $ac_status); } && {
22203          test -z "$ac_c_werror_flag" ||
22204          test ! -s conftest.err
22205        } && test -s conftest$ac_exeext &&
22206        $as_test_x conftest$ac_exeext; then
22207   ac_cv_search_crypt=$ac_res
22208 else
22209   echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22211
22212
22213 fi
22214
22215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22216       conftest$ac_exeext
22217   if test "${ac_cv_search_crypt+set}" = set; then
22218   break
22219 fi
22220 done
22221 if test "${ac_cv_search_crypt+set}" = set; then
22222   :
22223 else
22224   ac_cv_search_crypt=no
22225 fi
22226 rm conftest.$ac_ext
22227 LIBS=$ac_func_search_save_LIBS
22228 fi
22229 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22230 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22231 ac_res=$ac_cv_search_crypt
22232 if test "$ac_res" != no; then
22233   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22234   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22235 fi
22236
22237     fi
22238
22239     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
22240         _LIBS="$LIBS"
22241         LIBS="$LIBS $shadow_libs"
22242         found=no
22243
22244 for ac_func in $shadow_funcs
22245 do
22246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22250   echo $ECHO_N "(cached) $ECHO_C" >&6
22251 else
22252   cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h.  */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h.  */
22258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22260 #define $ac_func innocuous_$ac_func
22261
22262 /* System header to define __stub macros and hopefully few prototypes,
22263     which can conflict with char $ac_func (); below.
22264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22265     <limits.h> exists even on freestanding compilers.  */
22266
22267 #ifdef __STDC__
22268 # include <limits.h>
22269 #else
22270 # include <assert.h>
22271 #endif
22272
22273 #undef $ac_func
22274
22275 /* Override any GCC internal prototype to avoid an error.
22276    Use char because int might match the return type of a GCC
22277    builtin and then its argument prototype would still apply.  */
22278 #ifdef __cplusplus
22279 extern "C"
22280 #endif
22281 char $ac_func ();
22282 /* The GNU C library defines this for functions which it implements
22283     to always fail with ENOSYS.  Some functions are actually named
22284     something starting with __ and the normal name is an alias.  */
22285 #if defined __stub_$ac_func || defined __stub___$ac_func
22286 choke me
22287 #endif
22288
22289 int
22290 main ()
22291 {
22292 return $ac_func ();
22293   ;
22294   return 0;
22295 }
22296 _ACEOF
22297 rm -f conftest.$ac_objext conftest$ac_exeext
22298 if { (ac_try="$ac_link"
22299 case "(($ac_try" in
22300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301   *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304   (eval "$ac_link") 2>conftest.er1
22305   ac_status=$?
22306   grep -v '^ *+' conftest.er1 >conftest.err
22307   rm -f conftest.er1
22308   cat conftest.err >&5
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); } && {
22311          test -z "$ac_c_werror_flag" ||
22312          test ! -s conftest.err
22313        } && test -s conftest$ac_exeext &&
22314        $as_test_x conftest$ac_exeext; then
22315   eval "$as_ac_var=yes"
22316 else
22317   echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22319
22320         eval "$as_ac_var=no"
22321 fi
22322
22323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22324       conftest$ac_exeext conftest.$ac_ext
22325 fi
22326 ac_res=`eval echo '${'$as_ac_var'}'`
22327                { echo "$as_me:$LINENO: result: $ac_res" >&5
22328 echo "${ECHO_T}$ac_res" >&6; }
22329 if test `eval echo '${'$as_ac_var'}'` = yes; then
22330   cat >>confdefs.h <<_ACEOF
22331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22332 _ACEOF
22333  found=yes
22334 fi
22335 done
22336
22337         if test "$found" = "yes"; then
22338             SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22339         elif test -n "$shadow_libs_optional"; then
22340             LIBS="$LIBS $shadow_libs_optional"
22341
22342 for ac_func in $shadow_funcs
22343 do
22344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22348   echo $ECHO_N "(cached) $ECHO_C" >&6
22349 else
22350   cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h.  */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h.  */
22356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22358 #define $ac_func innocuous_$ac_func
22359
22360 /* System header to define __stub macros and hopefully few prototypes,
22361     which can conflict with char $ac_func (); below.
22362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22363     <limits.h> exists even on freestanding compilers.  */
22364
22365 #ifdef __STDC__
22366 # include <limits.h>
22367 #else
22368 # include <assert.h>
22369 #endif
22370
22371 #undef $ac_func
22372
22373 /* Override any GCC internal prototype to avoid an error.
22374    Use char because int might match the return type of a GCC
22375    builtin and then its argument prototype would still apply.  */
22376 #ifdef __cplusplus
22377 extern "C"
22378 #endif
22379 char $ac_func ();
22380 /* The GNU C library defines this for functions which it implements
22381     to always fail with ENOSYS.  Some functions are actually named
22382     something starting with __ and the normal name is an alias.  */
22383 #if defined __stub_$ac_func || defined __stub___$ac_func
22384 choke me
22385 #endif
22386
22387 int
22388 main ()
22389 {
22390 return $ac_func ();
22391   ;
22392   return 0;
22393 }
22394 _ACEOF
22395 rm -f conftest.$ac_objext conftest$ac_exeext
22396 if { (ac_try="$ac_link"
22397 case "(($ac_try" in
22398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399   *) ac_try_echo=$ac_try;;
22400 esac
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402   (eval "$ac_link") 2>conftest.er1
22403   ac_status=$?
22404   grep -v '^ *+' conftest.er1 >conftest.err
22405   rm -f conftest.er1
22406   cat conftest.err >&5
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); } && {
22409          test -z "$ac_c_werror_flag" ||
22410          test ! -s conftest.err
22411        } && test -s conftest$ac_exeext &&
22412        $as_test_x conftest$ac_exeext; then
22413   eval "$as_ac_var=yes"
22414 else
22415   echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22417
22418         eval "$as_ac_var=no"
22419 fi
22420
22421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22422       conftest$ac_exeext conftest.$ac_ext
22423 fi
22424 ac_res=`eval echo '${'$as_ac_var'}'`
22425                { echo "$as_me:$LINENO: result: $ac_res" >&5
22426 echo "${ECHO_T}$ac_res" >&6; }
22427 if test `eval echo '${'$as_ac_var'}'` = yes; then
22428   cat >>confdefs.h <<_ACEOF
22429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22430 _ACEOF
22431  found=yes
22432 fi
22433 done
22434
22435             if test "$found" = "yes"; then
22436                 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22437             fi
22438         fi
22439         if test "$found" = "yes"; then
22440             case "$shadow_funcs" in
22441                 *getprpwnam*) SECUREWARE=1;;
22442             esac
22443             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22444         else
22445             LIBS="$_LIBS"
22446         fi
22447         CHECKSHADOW=false
22448     fi
22449     if test "$CHECKSHADOW" = "true"; then
22450         { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22451 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22452 if test "${ac_cv_search_getspnam+set}" = set; then
22453   echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455   ac_func_search_save_LIBS=$LIBS
22456 cat >conftest.$ac_ext <<_ACEOF
22457 /* confdefs.h.  */
22458 _ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h.  */
22462
22463 /* Override any GCC internal prototype to avoid an error.
22464    Use char because int might match the return type of a GCC
22465    builtin and then its argument prototype would still apply.  */
22466 #ifdef __cplusplus
22467 extern "C"
22468 #endif
22469 char getspnam ();
22470 int
22471 main ()
22472 {
22473 return getspnam ();
22474   ;
22475   return 0;
22476 }
22477 _ACEOF
22478 for ac_lib in '' gen; do
22479   if test -z "$ac_lib"; then
22480     ac_res="none required"
22481   else
22482     ac_res=-l$ac_lib
22483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22484   fi
22485   rm -f conftest.$ac_objext conftest$ac_exeext
22486 if { (ac_try="$ac_link"
22487 case "(($ac_try" in
22488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489   *) ac_try_echo=$ac_try;;
22490 esac
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492   (eval "$ac_link") 2>conftest.er1
22493   ac_status=$?
22494   grep -v '^ *+' conftest.er1 >conftest.err
22495   rm -f conftest.er1
22496   cat conftest.err >&5
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); } && {
22499          test -z "$ac_c_werror_flag" ||
22500          test ! -s conftest.err
22501        } && test -s conftest$ac_exeext &&
22502        $as_test_x conftest$ac_exeext; then
22503   ac_cv_search_getspnam=$ac_res
22504 else
22505   echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22507
22508
22509 fi
22510
22511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22512       conftest$ac_exeext
22513   if test "${ac_cv_search_getspnam+set}" = set; then
22514   break
22515 fi
22516 done
22517 if test "${ac_cv_search_getspnam+set}" = set; then
22518   :
22519 else
22520   ac_cv_search_getspnam=no
22521 fi
22522 rm conftest.$ac_ext
22523 LIBS=$ac_func_search_save_LIBS
22524 fi
22525 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22526 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22527 ac_res=$ac_cv_search_getspnam
22528 if test "$ac_res" != no; then
22529   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22530   cat >>confdefs.h <<\_ACEOF
22531 #define HAVE_GETSPNAM 1
22532 _ACEOF
22533  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22534 fi
22535
22536     fi
22537     if test "$CHECKSHADOW" = "true"; then
22538         { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22539 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22540 if test "${ac_cv_search_getprpwnam+set}" = set; then
22541   echo $ECHO_N "(cached) $ECHO_C" >&6
22542 else
22543   ac_func_search_save_LIBS=$LIBS
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
22551 /* Override any GCC internal prototype to avoid an error.
22552    Use char because int might match the return type of a GCC
22553    builtin and then its argument prototype would still apply.  */
22554 #ifdef __cplusplus
22555 extern "C"
22556 #endif
22557 char getprpwnam ();
22558 int
22559 main ()
22560 {
22561 return getprpwnam ();
22562   ;
22563   return 0;
22564 }
22565 _ACEOF
22566 for ac_lib in '' sec security prot; do
22567   if test -z "$ac_lib"; then
22568     ac_res="none required"
22569   else
22570     ac_res=-l$ac_lib
22571     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22572   fi
22573   rm -f conftest.$ac_objext conftest$ac_exeext
22574 if { (ac_try="$ac_link"
22575 case "(($ac_try" in
22576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577   *) ac_try_echo=$ac_try;;
22578 esac
22579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22580   (eval "$ac_link") 2>conftest.er1
22581   ac_status=$?
22582   grep -v '^ *+' conftest.er1 >conftest.err
22583   rm -f conftest.er1
22584   cat conftest.err >&5
22585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); } && {
22587          test -z "$ac_c_werror_flag" ||
22588          test ! -s conftest.err
22589        } && test -s conftest$ac_exeext &&
22590        $as_test_x conftest$ac_exeext; then
22591   ac_cv_search_getprpwnam=$ac_res
22592 else
22593   echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22595
22596
22597 fi
22598
22599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22600       conftest$ac_exeext
22601   if test "${ac_cv_search_getprpwnam+set}" = set; then
22602   break
22603 fi
22604 done
22605 if test "${ac_cv_search_getprpwnam+set}" = set; then
22606   :
22607 else
22608   ac_cv_search_getprpwnam=no
22609 fi
22610 rm conftest.$ac_ext
22611 LIBS=$ac_func_search_save_LIBS
22612 fi
22613 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22614 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22615 ac_res=$ac_cv_search_getprpwnam
22616 if test "$ac_res" != no; then
22617   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22618   cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_GETPRPWNAM 1
22620 _ACEOF
22621  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22622 fi
22623
22624     fi
22625     if test -n "$SECUREWARE"; then
22626
22627
22628
22629 for ac_func in bigcrypt set_auth_parameters initprivs
22630 do
22631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22635   echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637   cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h.  */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h.  */
22643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22645 #define $ac_func innocuous_$ac_func
22646
22647 /* System header to define __stub macros and hopefully few prototypes,
22648     which can conflict with char $ac_func (); below.
22649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22650     <limits.h> exists even on freestanding compilers.  */
22651
22652 #ifdef __STDC__
22653 # include <limits.h>
22654 #else
22655 # include <assert.h>
22656 #endif
22657
22658 #undef $ac_func
22659
22660 /* Override any GCC internal prototype to avoid an error.
22661    Use char because int might match the return type of a GCC
22662    builtin and then its argument prototype would still apply.  */
22663 #ifdef __cplusplus
22664 extern "C"
22665 #endif
22666 char $ac_func ();
22667 /* The GNU C library defines this for functions which it implements
22668     to always fail with ENOSYS.  Some functions are actually named
22669     something starting with __ and the normal name is an alias.  */
22670 #if defined __stub_$ac_func || defined __stub___$ac_func
22671 choke me
22672 #endif
22673
22674 int
22675 main ()
22676 {
22677 return $ac_func ();
22678   ;
22679   return 0;
22680 }
22681 _ACEOF
22682 rm -f conftest.$ac_objext conftest$ac_exeext
22683 if { (ac_try="$ac_link"
22684 case "(($ac_try" in
22685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686   *) ac_try_echo=$ac_try;;
22687 esac
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689   (eval "$ac_link") 2>conftest.er1
22690   ac_status=$?
22691   grep -v '^ *+' conftest.er1 >conftest.err
22692   rm -f conftest.er1
22693   cat conftest.err >&5
22694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695   (exit $ac_status); } && {
22696          test -z "$ac_c_werror_flag" ||
22697          test ! -s conftest.err
22698        } && test -s conftest$ac_exeext &&
22699        $as_test_x conftest$ac_exeext; then
22700   eval "$as_ac_var=yes"
22701 else
22702   echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22704
22705         eval "$as_ac_var=no"
22706 fi
22707
22708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22709       conftest$ac_exeext conftest.$ac_ext
22710 fi
22711 ac_res=`eval echo '${'$as_ac_var'}'`
22712                { echo "$as_me:$LINENO: result: $ac_res" >&5
22713 echo "${ECHO_T}$ac_res" >&6; }
22714 if test `eval echo '${'$as_ac_var'}'` = yes; then
22715   cat >>confdefs.h <<_ACEOF
22716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22717 _ACEOF
22718
22719 fi
22720 done
22721
22722         AUTH_OBJS="$AUTH_OBJS secureware.o"
22723     fi
22724 fi
22725
22726 if test ${with_ldap-'no'} != "no"; then
22727     _LDFLAGS="$LDFLAGS"
22728     if test "$with_ldap" != "yes"; then
22729
22730     if test X"$with_rpath" = X"yes"; then
22731         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22732     else
22733         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22734     fi
22735     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22736         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22737     fi
22738
22739
22740     if test X"$with_rpath" = X"yes"; then
22741         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22742     else
22743         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22744     fi
22745     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22746         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22747     fi
22748
22749         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22750         with_ldap=yes
22751     fi
22752     SUDO_OBJS="${SUDO_OBJS} ldap.o"
22753
22754     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22755 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22756     LDAP_LIBS=""
22757     _LIBS="$LIBS"
22758     found=no
22759     for l in -lldap -llber '-lssl -lcrypto'; do
22760         LIBS="${LIBS} $l"
22761         LDAP_LIBS="${LDAP_LIBS} $l"
22762         cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h.  */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h.  */
22768 #include <sys/types.h>
22769         #include <lber.h>
22770         #include <ldap.h>
22771 int
22772 main ()
22773 {
22774 (void)ldap_init(0, 0)
22775   ;
22776   return 0;
22777 }
22778 _ACEOF
22779 rm -f conftest.$ac_objext conftest$ac_exeext
22780 if { (ac_try="$ac_link"
22781 case "(($ac_try" in
22782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783   *) ac_try_echo=$ac_try;;
22784 esac
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786   (eval "$ac_link") 2>conftest.er1
22787   ac_status=$?
22788   grep -v '^ *+' conftest.er1 >conftest.err
22789   rm -f conftest.er1
22790   cat conftest.err >&5
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); } && {
22793          test -z "$ac_c_werror_flag" ||
22794          test ! -s conftest.err
22795        } && test -s conftest$ac_exeext &&
22796        $as_test_x conftest$ac_exeext; then
22797   found=yes; break
22798 else
22799   echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22801
22802
22803 fi
22804
22805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22806       conftest$ac_exeext conftest.$ac_ext
22807     done
22808         if test "$found" = "no"; then
22809         LIBS="${_LIBS} -lldap"
22810         LDAP_LIBS="-lldap"
22811         { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22812 echo "${ECHO_T}not found, using -lldap" >&6; }
22813     else
22814         { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22815 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22816     fi
22817         OLIBS="$LIBS"
22818     { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22819 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22820 if test "${ac_cv_search_ber_set_option+set}" = set; then
22821   echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823   ac_func_search_save_LIBS=$LIBS
22824 cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h.  */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h.  */
22830
22831 /* Override any GCC internal prototype to avoid an error.
22832    Use char because int might match the return type of a GCC
22833    builtin and then its argument prototype would still apply.  */
22834 #ifdef __cplusplus
22835 extern "C"
22836 #endif
22837 char ber_set_option ();
22838 int
22839 main ()
22840 {
22841 return ber_set_option ();
22842   ;
22843   return 0;
22844 }
22845 _ACEOF
22846 for ac_lib in '' lber; do
22847   if test -z "$ac_lib"; then
22848     ac_res="none required"
22849   else
22850     ac_res=-l$ac_lib
22851     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22852   fi
22853   rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (ac_try="$ac_link"
22855 case "(($ac_try" in
22856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857   *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860   (eval "$ac_link") 2>conftest.er1
22861   ac_status=$?
22862   grep -v '^ *+' conftest.er1 >conftest.err
22863   rm -f conftest.er1
22864   cat conftest.err >&5
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); } && {
22867          test -z "$ac_c_werror_flag" ||
22868          test ! -s conftest.err
22869        } && test -s conftest$ac_exeext &&
22870        $as_test_x conftest$ac_exeext; then
22871   ac_cv_search_ber_set_option=$ac_res
22872 else
22873   echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22875
22876
22877 fi
22878
22879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22880       conftest$ac_exeext
22881   if test "${ac_cv_search_ber_set_option+set}" = set; then
22882   break
22883 fi
22884 done
22885 if test "${ac_cv_search_ber_set_option+set}" = set; then
22886   :
22887 else
22888   ac_cv_search_ber_set_option=no
22889 fi
22890 rm conftest.$ac_ext
22891 LIBS=$ac_func_search_save_LIBS
22892 fi
22893 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22894 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22895 ac_res=$ac_cv_search_ber_set_option
22896 if test "$ac_res" != no; then
22897   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22898   found=yes
22899 else
22900   found=no
22901 fi
22902
22903     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22904         LDAP_LIBS="$LDAP_LIBS -llber"
22905     fi
22906         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22907 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22908     cat >conftest.$ac_ext <<_ACEOF
22909 /* confdefs.h.  */
22910 _ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h.  */
22914 #include <sys/types.h>
22915     #include <ldap.h>
22916 int
22917 main ()
22918 {
22919 (void)ldap_init(0, 0)
22920   ;
22921   return 0;
22922 }
22923 _ACEOF
22924 rm -f conftest.$ac_objext conftest$ac_exeext
22925 if { (ac_try="$ac_link"
22926 case "(($ac_try" in
22927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928   *) ac_try_echo=$ac_try;;
22929 esac
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931   (eval "$ac_link") 2>conftest.er1
22932   ac_status=$?
22933   grep -v '^ *+' conftest.er1 >conftest.err
22934   rm -f conftest.er1
22935   cat conftest.err >&5
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); } && {
22938          test -z "$ac_c_werror_flag" ||
22939          test ! -s conftest.err
22940        } && test -s conftest$ac_exeext &&
22941        $as_test_x conftest$ac_exeext; then
22942   { echo "$as_me:$LINENO: result: no" >&5
22943 echo "${ECHO_T}no" >&6; }
22944 else
22945   echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22947
22948
22949     { echo "$as_me:$LINENO: result: yes" >&5
22950 echo "${ECHO_T}yes" >&6; }
22951     cat >>confdefs.h <<\_ACEOF
22952 #define HAVE_LBER_H 1
22953 _ACEOF
22954
22955 fi
22956
22957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22958       conftest$ac_exeext conftest.$ac_ext
22959
22960
22961
22962
22963
22964 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength
22965 do
22966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22970   echo $ECHO_N "(cached) $ECHO_C" >&6
22971 else
22972   cat >conftest.$ac_ext <<_ACEOF
22973 /* confdefs.h.  */
22974 _ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h.  */
22978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22980 #define $ac_func innocuous_$ac_func
22981
22982 /* System header to define __stub macros and hopefully few prototypes,
22983     which can conflict with char $ac_func (); below.
22984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22985     <limits.h> exists even on freestanding compilers.  */
22986
22987 #ifdef __STDC__
22988 # include <limits.h>
22989 #else
22990 # include <assert.h>
22991 #endif
22992
22993 #undef $ac_func
22994
22995 /* Override any GCC internal prototype to avoid an error.
22996    Use char because int might match the return type of a GCC
22997    builtin and then its argument prototype would still apply.  */
22998 #ifdef __cplusplus
22999 extern "C"
23000 #endif
23001 char $ac_func ();
23002 /* The GNU C library defines this for functions which it implements
23003     to always fail with ENOSYS.  Some functions are actually named
23004     something starting with __ and the normal name is an alias.  */
23005 #if defined __stub_$ac_func || defined __stub___$ac_func
23006 choke me
23007 #endif
23008
23009 int
23010 main ()
23011 {
23012 return $ac_func ();
23013   ;
23014   return 0;
23015 }
23016 _ACEOF
23017 rm -f conftest.$ac_objext conftest$ac_exeext
23018 if { (ac_try="$ac_link"
23019 case "(($ac_try" in
23020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021   *) ac_try_echo=$ac_try;;
23022 esac
23023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024   (eval "$ac_link") 2>conftest.er1
23025   ac_status=$?
23026   grep -v '^ *+' conftest.er1 >conftest.err
23027   rm -f conftest.er1
23028   cat conftest.err >&5
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); } && {
23031          test -z "$ac_c_werror_flag" ||
23032          test ! -s conftest.err
23033        } && test -s conftest$ac_exeext &&
23034        $as_test_x conftest$ac_exeext; then
23035   eval "$as_ac_var=yes"
23036 else
23037   echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23039
23040         eval "$as_ac_var=no"
23041 fi
23042
23043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23044       conftest$ac_exeext conftest.$ac_ext
23045 fi
23046 ac_res=`eval echo '${'$as_ac_var'}'`
23047                { echo "$as_me:$LINENO: result: $ac_res" >&5
23048 echo "${ECHO_T}$ac_res" >&6; }
23049 if test `eval echo '${'$as_ac_var'}'` = yes; then
23050   cat >>confdefs.h <<_ACEOF
23051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23052 _ACEOF
23053
23054 fi
23055 done
23056
23057
23058
23059 for ac_header in ldap_ssl.h mps/ldap_ssl.h
23060 do
23061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23065   echo $ECHO_N "(cached) $ECHO_C" >&6
23066 else
23067   cat >conftest.$ac_ext <<_ACEOF
23068 /* confdefs.h.  */
23069 _ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h.  */
23073 #include <ldap.h>
23074
23075 #include <$ac_header>
23076 _ACEOF
23077 rm -f conftest.$ac_objext
23078 if { (ac_try="$ac_compile"
23079 case "(($ac_try" in
23080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23081   *) ac_try_echo=$ac_try;;
23082 esac
23083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23084   (eval "$ac_compile") 2>conftest.er1
23085   ac_status=$?
23086   grep -v '^ *+' conftest.er1 >conftest.err
23087   rm -f conftest.er1
23088   cat conftest.err >&5
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); } && {
23091          test -z "$ac_c_werror_flag" ||
23092          test ! -s conftest.err
23093        } && test -s conftest.$ac_objext; then
23094   eval "$as_ac_Header=yes"
23095 else
23096   echo "$as_me: failed program was:" >&5
23097 sed 's/^/| /' conftest.$ac_ext >&5
23098
23099         eval "$as_ac_Header=no"
23100 fi
23101
23102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23103 fi
23104 ac_res=`eval echo '${'$as_ac_Header'}'`
23105                { echo "$as_me:$LINENO: result: $ac_res" >&5
23106 echo "${ECHO_T}$ac_res" >&6; }
23107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23108   cat >>confdefs.h <<_ACEOF
23109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23110 _ACEOF
23111  break
23112 fi
23113
23114 done
23115
23116
23117     SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
23118     LIBS="$_LIBS"
23119     LDFLAGS="$_LDFLAGS"
23120     # XXX - OpenLDAP has deprecated ldap_get_values()
23121     CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
23122 fi
23123
23124 if test -n "$blibpath"; then
23125     if test -n "$blibpath_add"; then
23126         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
23127     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
23128         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
23129     fi
23130 fi
23131
23132 { echo "$as_me:$LINENO: checking for log file location" >&5
23133 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
23134 if test -n "$with_logpath"; then
23135     { echo "$as_me:$LINENO: result: $with_logpath" >&5
23136 echo "${ECHO_T}$with_logpath" >&6; }
23137     cat >>confdefs.h <<EOF
23138 #define _PATH_SUDO_LOGFILE "$with_logpath"
23139 EOF
23140
23141 elif test -d "/var/log"; then
23142     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
23143 echo "${ECHO_T}/var/log/sudo.log" >&6; }
23144     cat >>confdefs.h <<\EOF
23145 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
23146 EOF
23147
23148 elif test -d "/var/adm"; then
23149     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
23150 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
23151     cat >>confdefs.h <<\EOF
23152 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
23153 EOF
23154
23155 elif test -d "/usr/adm"; then
23156     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
23157 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
23158     cat >>confdefs.h <<\EOF
23159 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
23160 EOF
23161
23162 else
23163     { echo "$as_me:$LINENO: result: unknown" >&5
23164 echo "${ECHO_T}unknown" >&6; }
23165 fi
23166
23167 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
23168 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
23169 if test -n "$with_timedir"; then
23170     { echo "$as_me:$LINENO: result: $with_timedir" >&5
23171 echo "${ECHO_T}$with_timedir" >&6; }
23172     cat >>confdefs.h <<EOF
23173 #define _PATH_SUDO_TIMEDIR "$with_timedir"
23174 EOF
23175
23176     timedir="$with_timedir"
23177 elif test -d "/var/run"; then
23178     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
23179 echo "${ECHO_T}/var/run/sudo" >&6; }
23180     cat >>confdefs.h <<\EOF
23181 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
23182 EOF
23183
23184     timedir="/var/run/sudo"
23185 elif test -d "/var/adm"; then
23186     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
23187 echo "${ECHO_T}/var/adm/sudo" >&6; }
23188     cat >>confdefs.h <<\EOF
23189 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
23190 EOF
23191
23192     timedir="/var/adm/sudo"
23193 else
23194     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
23195 echo "${ECHO_T}/usr/adm/sudo" >&6; }
23196     cat >>confdefs.h <<\EOF
23197 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
23198 EOF
23199
23200     timedir="/usr/adm/sudo"
23201 fi
23202
23203
23204 case "$with_passwd" in
23205 yes|maybe)
23206     AUTH_OBJS="$AUTH_OBJS passwd.o"
23207     ;;
23208 *)
23209     cat >>confdefs.h <<\_ACEOF
23210 #define WITHOUT_PASSWD 1
23211 _ACEOF
23212
23213     if test -z "$AUTH_OBJS"; then
23214         { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
23215 echo "$as_me: error: no authentication methods defined." >&2;}
23216    { (exit 1); exit 1; }; }
23217     fi
23218     ;;
23219 esac
23220 AUTH_OBJS=${AUTH_OBJS# }
23221 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
23222 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
23223 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
23224
23225 if test -n "$LIBS"; then
23226     L="$LIBS"
23227     LIBS=
23228     for l in ${L}; do
23229         dupe=0
23230         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
23231             test $l = $sl && dupe=1
23232         done
23233         test $dupe = 0 && LIBS="${LIBS} $l"
23234     done
23235 fi
23236
23237 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
23238
23239 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
23240     oexec_prefix="$exec_prefix"
23241     if test "$exec_prefix" = '$(prefix)'; then
23242         if test "$prefix" = "NONE"; then
23243             exec_prefix="$ac_default_prefix"
23244         else
23245             exec_prefix="$prefix"
23246         fi
23247     fi
23248     if test X"$with_noexec" != X"no"; then
23249         PROGS="${PROGS} sudo_noexec.la"
23250         INSTALL_NOEXEC="install-noexec"
23251
23252         eval noexec_file="$with_noexec"
23253
23254 cat >>confdefs.h <<_ACEOF
23255 #define _PATH_SUDO_NOEXEC "$noexec_file"
23256 _ACEOF
23257
23258     fi
23259     if test X"$with_selinux" != X"no"; then
23260         eval sesh_file="$libexecdir/sesh"
23261
23262 cat >>confdefs.h <<_ACEOF
23263 #define _PATH_SUDO_SESH "$sesh_file"
23264 _ACEOF
23265
23266     fi
23267     exec_prefix="$oexec_prefix"
23268 fi
23269
23270 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
23271
23272 cat >confcache <<\_ACEOF
23273 # This file is a shell script that caches the results of configure
23274 # tests run on this system so they can be shared between configure
23275 # scripts and configure runs, see configure's option --config-cache.
23276 # It is not useful on other systems.  If it contains results you don't
23277 # want to keep, you may remove or edit it.
23278 #
23279 # config.status only pays attention to the cache file if you give it
23280 # the --recheck option to rerun configure.
23281 #
23282 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23283 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23284 # following values.
23285
23286 _ACEOF
23287
23288 # The following way of writing the cache mishandles newlines in values,
23289 # but we know of no workaround that is simple, portable, and efficient.
23290 # So, we kill variables containing newlines.
23291 # Ultrix sh set writes to stderr and can't be redirected directly,
23292 # and sets the high bit in the cache file unless we assign to the vars.
23293 (
23294   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23295     eval ac_val=\$$ac_var
23296     case $ac_val in #(
23297     *${as_nl}*)
23298       case $ac_var in #(
23299       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23300 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23301       esac
23302       case $ac_var in #(
23303       _ | IFS | as_nl) ;; #(
23304       *) $as_unset $ac_var ;;
23305       esac ;;
23306     esac
23307   done
23308
23309   (set) 2>&1 |
23310     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23311     *${as_nl}ac_space=\ *)
23312       # `set' does not quote correctly, so add quotes (double-quote
23313       # substitution turns \\\\ into \\, and sed turns \\ into \).
23314       sed -n \
23315         "s/'/'\\\\''/g;
23316           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23317       ;; #(
23318     *)
23319       # `set' quotes correctly as required by POSIX, so do not add quotes.
23320       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23321       ;;
23322     esac |
23323     sort
23324 ) |
23325   sed '
23326      /^ac_cv_env_/b end
23327      t clear
23328      :clear
23329      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23330      t end
23331      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23332      :end' >>confcache
23333 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23334   if test -w "$cache_file"; then
23335     test "x$cache_file" != "x/dev/null" &&
23336       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23337 echo "$as_me: updating cache $cache_file" >&6;}
23338     cat confcache >$cache_file
23339   else
23340     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23341 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23342   fi
23343 fi
23344 rm -f confcache
23345
23346 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23347 # Let make expand exec_prefix.
23348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23349
23350 DEFS=-DHAVE_CONFIG_H
23351
23352 ac_libobjs=
23353 ac_ltlibobjs=
23354 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23355   # 1. Remove the extension, and $U if already installed.
23356   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23357   ac_i=`echo "$ac_i" | sed "$ac_script"`
23358   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23359   #    will be set to the directory where LIBOBJS objects are built.
23360   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23361   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23362 done
23363 LIBOBJS=$ac_libobjs
23364
23365 LTLIBOBJS=$ac_ltlibobjs
23366
23367
23368
23369 : ${CONFIG_STATUS=./config.status}
23370 ac_clean_files_save=$ac_clean_files
23371 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23372 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23373 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23374 cat >$CONFIG_STATUS <<_ACEOF
23375 #! $SHELL
23376 # Generated by $as_me.
23377 # Run this file to recreate the current configuration.
23378 # Compiler output produced by configure, useful for debugging
23379 # configure, is in config.log if it exists.
23380
23381 debug=false
23382 ac_cs_recheck=false
23383 ac_cs_silent=false
23384 SHELL=\${CONFIG_SHELL-$SHELL}
23385 _ACEOF
23386
23387 cat >>$CONFIG_STATUS <<\_ACEOF
23388 ## --------------------- ##
23389 ## M4sh Initialization.  ##
23390 ## --------------------- ##
23391
23392 # Be more Bourne compatible
23393 DUALCASE=1; export DUALCASE # for MKS sh
23394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23395   emulate sh
23396   NULLCMD=:
23397   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23398   # is contrary to our usage.  Disable this feature.
23399   alias -g '${1+"$@"}'='"$@"'
23400   setopt NO_GLOB_SUBST
23401 else
23402   case `(set -o) 2>/dev/null` in
23403   *posix*) set -o posix ;;
23404 esac
23405
23406 fi
23407
23408
23409
23410
23411 # PATH needs CR
23412 # Avoid depending upon Character Ranges.
23413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23416 as_cr_digits='0123456789'
23417 as_cr_alnum=$as_cr_Letters$as_cr_digits
23418
23419 # The user is always right.
23420 if test "${PATH_SEPARATOR+set}" != set; then
23421   echo "#! /bin/sh" >conf$$.sh
23422   echo  "exit 0"   >>conf$$.sh
23423   chmod +x conf$$.sh
23424   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23425     PATH_SEPARATOR=';'
23426   else
23427     PATH_SEPARATOR=:
23428   fi
23429   rm -f conf$$.sh
23430 fi
23431
23432 # Support unset when possible.
23433 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23434   as_unset=unset
23435 else
23436   as_unset=false
23437 fi
23438
23439
23440 # IFS
23441 # We need space, tab and new line, in precisely that order.  Quoting is
23442 # there to prevent editors from complaining about space-tab.
23443 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23444 # splitting by setting IFS to empty value.)
23445 as_nl='
23446 '
23447 IFS=" ""        $as_nl"
23448
23449 # Find who we are.  Look in the path if we contain no directory separator.
23450 case $0 in
23451   *[\\/]* ) as_myself=$0 ;;
23452   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23453 for as_dir in $PATH
23454 do
23455   IFS=$as_save_IFS
23456   test -z "$as_dir" && as_dir=.
23457   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23458 done
23459 IFS=$as_save_IFS
23460
23461      ;;
23462 esac
23463 # We did not find ourselves, most probably we were run as `sh COMMAND'
23464 # in which case we are not to be found in the path.
23465 if test "x$as_myself" = x; then
23466   as_myself=$0
23467 fi
23468 if test ! -f "$as_myself"; then
23469   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23470   { (exit 1); exit 1; }
23471 fi
23472
23473 # Work around bugs in pre-3.0 UWIN ksh.
23474 for as_var in ENV MAIL MAILPATH
23475 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23476 done
23477 PS1='$ '
23478 PS2='> '
23479 PS4='+ '
23480
23481 # NLS nuisances.
23482 for as_var in \
23483   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23484   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23485   LC_TELEPHONE LC_TIME
23486 do
23487   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23488     eval $as_var=C; export $as_var
23489   else
23490     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23491   fi
23492 done
23493
23494 # Required to use basename.
23495 if expr a : '\(a\)' >/dev/null 2>&1 &&
23496    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23497   as_expr=expr
23498 else
23499   as_expr=false
23500 fi
23501
23502 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23503   as_basename=basename
23504 else
23505   as_basename=false
23506 fi
23507
23508
23509 # Name of the executable.
23510 as_me=`$as_basename -- "$0" ||
23511 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23512          X"$0" : 'X\(//\)$' \| \
23513          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23514 echo X/"$0" |
23515     sed '/^.*\/\([^/][^/]*\)\/*$/{
23516             s//\1/
23517             q
23518           }
23519           /^X\/\(\/\/\)$/{
23520             s//\1/
23521             q
23522           }
23523           /^X\/\(\/\).*/{
23524             s//\1/
23525             q
23526           }
23527           s/.*/./; q'`
23528
23529 # CDPATH.
23530 $as_unset CDPATH
23531
23532
23533
23534   as_lineno_1=$LINENO
23535   as_lineno_2=$LINENO
23536   test "x$as_lineno_1" != "x$as_lineno_2" &&
23537   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23538
23539   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23540   # uniformly replaced by the line number.  The first 'sed' inserts a
23541   # line-number line after each line using $LINENO; the second 'sed'
23542   # does the real work.  The second script uses 'N' to pair each
23543   # line-number line with the line containing $LINENO, and appends
23544   # trailing '-' during substitution so that $LINENO is not a special
23545   # case at line end.
23546   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23547   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23548   # E. McMahon (1931-1989) for sed's syntax.  :-)
23549   sed -n '
23550     p
23551     /[$]LINENO/=
23552   ' <$as_myself |
23553     sed '
23554       s/[$]LINENO.*/&-/
23555       t lineno
23556       b
23557       :lineno
23558       N
23559       :loop
23560       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23561       t loop
23562       s/-\n.*//
23563     ' >$as_me.lineno &&
23564   chmod +x "$as_me.lineno" ||
23565     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23566    { (exit 1); exit 1; }; }
23567
23568   # Don't try to exec as it changes $[0], causing all sort of problems
23569   # (the dirname of $[0] is not the place where we might find the
23570   # original and so on.  Autoconf is especially sensitive to this).
23571   . "./$as_me.lineno"
23572   # Exit status is that of the last command.
23573   exit
23574 }
23575
23576
23577 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23578   as_dirname=dirname
23579 else
23580   as_dirname=false
23581 fi
23582
23583 ECHO_C= ECHO_N= ECHO_T=
23584 case `echo -n x` in
23585 -n*)
23586   case `echo 'x\c'` in
23587   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23588   *)   ECHO_C='\c';;
23589   esac;;
23590 *)
23591   ECHO_N='-n';;
23592 esac
23593
23594 if expr a : '\(a\)' >/dev/null 2>&1 &&
23595    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23596   as_expr=expr
23597 else
23598   as_expr=false
23599 fi
23600
23601 rm -f conf$$ conf$$.exe conf$$.file
23602 if test -d conf$$.dir; then
23603   rm -f conf$$.dir/conf$$.file
23604 else
23605   rm -f conf$$.dir
23606   mkdir conf$$.dir
23607 fi
23608 echo >conf$$.file
23609 if ln -s conf$$.file conf$$ 2>/dev/null; then
23610   as_ln_s='ln -s'
23611   # ... but there are two gotchas:
23612   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23613   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23614   # In both cases, we have to default to `cp -p'.
23615   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23616     as_ln_s='cp -p'
23617 elif ln conf$$.file conf$$ 2>/dev/null; then
23618   as_ln_s=ln
23619 else
23620   as_ln_s='cp -p'
23621 fi
23622 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23623 rmdir conf$$.dir 2>/dev/null
23624
23625 if mkdir -p . 2>/dev/null; then
23626   as_mkdir_p=:
23627 else
23628   test -d ./-p && rmdir ./-p
23629   as_mkdir_p=false
23630 fi
23631
23632 if test -x / >/dev/null 2>&1; then
23633   as_test_x='test -x'
23634 else
23635   if ls -dL / >/dev/null 2>&1; then
23636     as_ls_L_option=L
23637   else
23638     as_ls_L_option=
23639   fi
23640   as_test_x='
23641     eval sh -c '\''
23642       if test -d "$1"; then
23643         test -d "$1/.";
23644       else
23645         case $1 in
23646         -*)set "./$1";;
23647         esac;
23648         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23649         ???[sx]*):;;*)false;;esac;fi
23650     '\'' sh
23651   '
23652 fi
23653 as_executable_p=$as_test_x
23654
23655 # Sed expression to map a string onto a valid CPP name.
23656 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23657
23658 # Sed expression to map a string onto a valid variable name.
23659 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23660
23661
23662 exec 6>&1
23663
23664 # Save the log message, to keep $[0] and so on meaningful, and to
23665 # report actual input values of CONFIG_FILES etc. instead of their
23666 # values after options handling.
23667 ac_log="
23668 This file was extended by sudo $as_me 1.6.9, which was
23669 generated by GNU Autoconf 2.61.  Invocation command line was
23670
23671   CONFIG_FILES    = $CONFIG_FILES
23672   CONFIG_HEADERS  = $CONFIG_HEADERS
23673   CONFIG_LINKS    = $CONFIG_LINKS
23674   CONFIG_COMMANDS = $CONFIG_COMMANDS
23675   $ $0 $@
23676
23677 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23678 "
23679
23680 _ACEOF
23681
23682 cat >>$CONFIG_STATUS <<_ACEOF
23683 # Files that config.status was made for.
23684 config_files="$ac_config_files"
23685 config_headers="$ac_config_headers"
23686
23687 _ACEOF
23688
23689 cat >>$CONFIG_STATUS <<\_ACEOF
23690 ac_cs_usage="\
23691 \`$as_me' instantiates files from templates according to the
23692 current configuration.
23693
23694 Usage: $0 [OPTIONS] [FILE]...
23695
23696   -h, --help       print this help, then exit
23697   -V, --version    print version number and configuration settings, then exit
23698   -q, --quiet      do not print progress messages
23699   -d, --debug      don't remove temporary files
23700       --recheck    update $as_me by reconfiguring in the same conditions
23701   --file=FILE[:TEMPLATE]
23702                    instantiate the configuration file FILE
23703   --header=FILE[:TEMPLATE]
23704                    instantiate the configuration header FILE
23705
23706 Configuration files:
23707 $config_files
23708
23709 Configuration headers:
23710 $config_headers
23711
23712 Report bugs to <bug-autoconf@gnu.org>."
23713
23714 _ACEOF
23715 cat >>$CONFIG_STATUS <<_ACEOF
23716 ac_cs_version="\\
23717 sudo config.status 1.6.9
23718 configured by $0, generated by GNU Autoconf 2.61,
23719   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23720
23721 Copyright (C) 2006 Free Software Foundation, Inc.
23722 This config.status script is free software; the Free Software Foundation
23723 gives unlimited permission to copy, distribute and modify it."
23724
23725 ac_pwd='$ac_pwd'
23726 srcdir='$srcdir'
23727 _ACEOF
23728
23729 cat >>$CONFIG_STATUS <<\_ACEOF
23730 # If no file are specified by the user, then we need to provide default
23731 # value.  By we need to know if files were specified by the user.
23732 ac_need_defaults=:
23733 while test $# != 0
23734 do
23735   case $1 in
23736   --*=*)
23737     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23738     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23739     ac_shift=:
23740     ;;
23741   *)
23742     ac_option=$1
23743     ac_optarg=$2
23744     ac_shift=shift
23745     ;;
23746   esac
23747
23748   case $ac_option in
23749   # Handling of the options.
23750   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23751     ac_cs_recheck=: ;;
23752   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23753     echo "$ac_cs_version"; exit ;;
23754   --debug | --debu | --deb | --de | --d | -d )
23755     debug=: ;;
23756   --file | --fil | --fi | --f )
23757     $ac_shift
23758     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23759     ac_need_defaults=false;;
23760   --header | --heade | --head | --hea )
23761     $ac_shift
23762     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23763     ac_need_defaults=false;;
23764   --he | --h)
23765     # Conflict between --help and --header
23766     { echo "$as_me: error: ambiguous option: $1
23767 Try \`$0 --help' for more information." >&2
23768    { (exit 1); exit 1; }; };;
23769   --help | --hel | -h )
23770     echo "$ac_cs_usage"; exit ;;
23771   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23772   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23773     ac_cs_silent=: ;;
23774
23775   # This is an error.
23776   -*) { echo "$as_me: error: unrecognized option: $1
23777 Try \`$0 --help' for more information." >&2
23778    { (exit 1); exit 1; }; } ;;
23779
23780   *) ac_config_targets="$ac_config_targets $1"
23781      ac_need_defaults=false ;;
23782
23783   esac
23784   shift
23785 done
23786
23787 ac_configure_extra_args=
23788
23789 if $ac_cs_silent; then
23790   exec 6>/dev/null
23791   ac_configure_extra_args="$ac_configure_extra_args --silent"
23792 fi
23793
23794 _ACEOF
23795 cat >>$CONFIG_STATUS <<_ACEOF
23796 if \$ac_cs_recheck; then
23797   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23798   CONFIG_SHELL=$SHELL
23799   export CONFIG_SHELL
23800   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23801 fi
23802
23803 _ACEOF
23804 cat >>$CONFIG_STATUS <<\_ACEOF
23805 exec 5>>config.log
23806 {
23807   echo
23808   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23809 ## Running $as_me. ##
23810 _ASBOX
23811   echo "$ac_log"
23812 } >&5
23813
23814 _ACEOF
23815 cat >>$CONFIG_STATUS <<_ACEOF
23816 _ACEOF
23817
23818 cat >>$CONFIG_STATUS <<\_ACEOF
23819
23820 # Handling of arguments.
23821 for ac_config_target in $ac_config_targets
23822 do
23823   case $ac_config_target in
23824     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23825     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
23826     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23827     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
23828     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
23829     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
23830
23831   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23832 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23833    { (exit 1); exit 1; }; };;
23834   esac
23835 done
23836
23837
23838 # If the user did not use the arguments to specify the items to instantiate,
23839 # then the envvar interface is used.  Set only those that are not.
23840 # We use the long form for the default assignment because of an extremely
23841 # bizarre bug on SunOS 4.1.3.
23842 if $ac_need_defaults; then
23843   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23844   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23845 fi
23846
23847 # Have a temporary directory for convenience.  Make it in the build tree
23848 # simply because there is no reason against having it here, and in addition,
23849 # creating and moving files from /tmp can sometimes cause problems.
23850 # Hook for its removal unless debugging.
23851 # Note that there is a small window in which the directory will not be cleaned:
23852 # after its creation but before its name has been assigned to `$tmp'.
23853 $debug ||
23854 {
23855   tmp=
23856   trap 'exit_status=$?
23857   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23858 ' 0
23859   trap '{ (exit 1); exit 1; }' 1 2 13 15
23860 }
23861 # Create a (secure) tmp directory for tmp files.
23862
23863 {
23864   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23865   test -n "$tmp" && test -d "$tmp"
23866 }  ||
23867 {
23868   tmp=./conf$$-$RANDOM
23869   (umask 077 && mkdir "$tmp")
23870 } ||
23871 {
23872    echo "$me: cannot create a temporary directory in ." >&2
23873    { (exit 1); exit 1; }
23874 }
23875
23876 #
23877 # Set up the sed scripts for CONFIG_FILES section.
23878 #
23879
23880 # No need to generate the scripts if there are no CONFIG_FILES.
23881 # This happens for instance when ./config.status config.h
23882 if test -n "$CONFIG_FILES"; then
23883
23884 _ACEOF
23885
23886
23887
23888 ac_delim='%!_!# '
23889 for ac_last_try in false false false false false :; do
23890   cat >conf$$subs.sed <<_ACEOF
23891 SHELL!$SHELL$ac_delim
23892 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23893 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23894 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23895 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23896 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23897 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23898 exec_prefix!$exec_prefix$ac_delim
23899 prefix!$prefix$ac_delim
23900 program_transform_name!$program_transform_name$ac_delim
23901 bindir!$bindir$ac_delim
23902 sbindir!$sbindir$ac_delim
23903 libexecdir!$libexecdir$ac_delim
23904 datarootdir!$datarootdir$ac_delim
23905 datadir!$datadir$ac_delim
23906 sysconfdir!$sysconfdir$ac_delim
23907 sharedstatedir!$sharedstatedir$ac_delim
23908 localstatedir!$localstatedir$ac_delim
23909 includedir!$includedir$ac_delim
23910 oldincludedir!$oldincludedir$ac_delim
23911 docdir!$docdir$ac_delim
23912 infodir!$infodir$ac_delim
23913 htmldir!$htmldir$ac_delim
23914 dvidir!$dvidir$ac_delim
23915 pdfdir!$pdfdir$ac_delim
23916 psdir!$psdir$ac_delim
23917 libdir!$libdir$ac_delim
23918 localedir!$localedir$ac_delim
23919 mandir!$mandir$ac_delim
23920 DEFS!$DEFS$ac_delim
23921 ECHO_C!$ECHO_C$ac_delim
23922 ECHO_N!$ECHO_N$ac_delim
23923 ECHO_T!$ECHO_T$ac_delim
23924 LIBS!$LIBS$ac_delim
23925 build_alias!$build_alias$ac_delim
23926 host_alias!$host_alias$ac_delim
23927 target_alias!$target_alias$ac_delim
23928 LIBTOOL!$LIBTOOL$ac_delim
23929 CFLAGS!$CFLAGS$ac_delim
23930 PROGS!$PROGS$ac_delim
23931 CPPFLAGS!$CPPFLAGS$ac_delim
23932 LDFLAGS!$LDFLAGS$ac_delim
23933 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
23934 SUDO_OBJS!$SUDO_OBJS$ac_delim
23935 SUDO_LIBS!$SUDO_LIBS$ac_delim
23936 NET_LIBS!$NET_LIBS$ac_delim
23937 AFS_LIBS!$AFS_LIBS$ac_delim
23938 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
23939 OSDEFS!$OSDEFS$ac_delim
23940 AUTH_OBJS!$AUTH_OBJS$ac_delim
23941 MANTYPE!$MANTYPE$ac_delim
23942 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
23943 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
23944 SUDOERS_UID!$SUDOERS_UID$ac_delim
23945 SUDOERS_GID!$SUDOERS_GID$ac_delim
23946 DEV!$DEV$ac_delim
23947 SELINUX!$SELINUX$ac_delim
23948 BAMAN!$BAMAN$ac_delim
23949 LCMAN!$LCMAN$ac_delim
23950 SEMAN!$SEMAN$ac_delim
23951 mansectsu!$mansectsu$ac_delim
23952 mansectform!$mansectform$ac_delim
23953 mansrcdir!$mansrcdir$ac_delim
23954 NOEXECFILE!$NOEXECFILE$ac_delim
23955 NOEXECDIR!$NOEXECDIR$ac_delim
23956 noexec_file!$noexec_file$ac_delim
23957 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
23958 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
23959 timedir!$timedir$ac_delim
23960 timeout!$timeout$ac_delim
23961 password_timeout!$password_timeout$ac_delim
23962 sudo_umask!$sudo_umask$ac_delim
23963 passprompt!$passprompt$ac_delim
23964 long_otp_prompt!$long_otp_prompt$ac_delim
23965 lecture!$lecture$ac_delim
23966 logfac!$logfac$ac_delim
23967 goodpri!$goodpri$ac_delim
23968 badpri!$badpri$ac_delim
23969 loglen!$loglen$ac_delim
23970 ignore_dot!$ignore_dot$ac_delim
23971 mail_no_user!$mail_no_user$ac_delim
23972 mail_no_host!$mail_no_host$ac_delim
23973 mail_no_perms!$mail_no_perms$ac_delim
23974 mailto!$mailto$ac_delim
23975 mailsub!$mailsub$ac_delim
23976 badpass_message!$badpass_message$ac_delim
23977 fqdn!$fqdn$ac_delim
23978 runas_default!$runas_default$ac_delim
23979 env_editor!$env_editor$ac_delim
23980 passwd_tries!$passwd_tries$ac_delim
23981 tty_tickets!$tty_tickets$ac_delim
23982 insults!$insults$ac_delim
23983 root_sudo!$root_sudo$ac_delim
23984 path_info!$path_info$ac_delim
23985 EGREPPROG!$EGREPPROG$ac_delim
23986 CC!$CC$ac_delim
23987 ac_ct_CC!$ac_ct_CC$ac_delim
23988 _ACEOF
23989
23990   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23991     break
23992   elif $ac_last_try; then
23993     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23994 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23995    { (exit 1); exit 1; }; }
23996   else
23997     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23998   fi
23999 done
24000
24001 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24002 if test -n "$ac_eof"; then
24003   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24004   ac_eof=`expr $ac_eof + 1`
24005 fi
24006
24007 cat >>$CONFIG_STATUS <<_ACEOF
24008 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24010 _ACEOF
24011 sed '
24012 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24013 s/^/s,@/; s/!/@,|#_!!_#|/
24014 :n
24015 t n
24016 s/'"$ac_delim"'$/,g/; t
24017 s/$/\\/; p
24018 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24019 ' >>$CONFIG_STATUS <conf$$subs.sed
24020 rm -f conf$$subs.sed
24021 cat >>$CONFIG_STATUS <<_ACEOF
24022 CEOF$ac_eof
24023 _ACEOF
24024
24025
24026 ac_delim='%!_!# '
24027 for ac_last_try in false false false false false :; do
24028   cat >conf$$subs.sed <<_ACEOF
24029 EXEEXT!$EXEEXT$ac_delim
24030 OBJEXT!$OBJEXT$ac_delim
24031 CPP!$CPP$ac_delim
24032 build!$build$ac_delim
24033 build_cpu!$build_cpu$ac_delim
24034 build_vendor!$build_vendor$ac_delim
24035 build_os!$build_os$ac_delim
24036 host!$host$ac_delim
24037 host_cpu!$host_cpu$ac_delim
24038 host_vendor!$host_vendor$ac_delim
24039 host_os!$host_os$ac_delim
24040 target!$target$ac_delim
24041 target_cpu!$target_cpu$ac_delim
24042 target_vendor!$target_vendor$ac_delim
24043 target_os!$target_os$ac_delim
24044 SED!$SED$ac_delim
24045 GREP!$GREP$ac_delim
24046 EGREP!$EGREP$ac_delim
24047 LN_S!$LN_S$ac_delim
24048 ECHO!$ECHO$ac_delim
24049 AR!$AR$ac_delim
24050 RANLIB!$RANLIB$ac_delim
24051 STRIP!$STRIP$ac_delim
24052 DSYMUTIL!$DSYMUTIL$ac_delim
24053 NMEDIT!$NMEDIT$ac_delim
24054 UNAMEPROG!$UNAMEPROG$ac_delim
24055 TRPROG!$TRPROG$ac_delim
24056 NROFFPROG!$NROFFPROG$ac_delim
24057 YACC!$YACC$ac_delim
24058 YFLAGS!$YFLAGS$ac_delim
24059 LIBOBJS!$LIBOBJS$ac_delim
24060 ALLOCA!$ALLOCA$ac_delim
24061 KRB5CONFIG!$KRB5CONFIG$ac_delim
24062 LTLIBOBJS!$LTLIBOBJS$ac_delim
24063 _ACEOF
24064
24065   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
24066     break
24067   elif $ac_last_try; then
24068     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24069 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24070    { (exit 1); exit 1; }; }
24071   else
24072     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24073   fi
24074 done
24075
24076 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24077 if test -n "$ac_eof"; then
24078   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24079   ac_eof=`expr $ac_eof + 1`
24080 fi
24081
24082 cat >>$CONFIG_STATUS <<_ACEOF
24083 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24085 _ACEOF
24086 sed '
24087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24088 s/^/s,@/; s/!/@,|#_!!_#|/
24089 :n
24090 t n
24091 s/'"$ac_delim"'$/,g/; t
24092 s/$/\\/; p
24093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24094 ' >>$CONFIG_STATUS <conf$$subs.sed
24095 rm -f conf$$subs.sed
24096 cat >>$CONFIG_STATUS <<_ACEOF
24097 :end
24098 s/|#_!!_#|//g
24099 CEOF$ac_eof
24100 _ACEOF
24101
24102
24103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24105 # trailing colons and then remove the whole line if VPATH becomes empty
24106 # (actually we leave an empty line to preserve line numbers).
24107 if test "x$srcdir" = x.; then
24108   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24109 s/:*\$(srcdir):*/:/
24110 s/:*\${srcdir}:*/:/
24111 s/:*@srcdir@:*/:/
24112 s/^\([^=]*=[     ]*\):*/\1/
24113 s/:*$//
24114 s/^[^=]*=[       ]*$//
24115 }'
24116 fi
24117
24118 cat >>$CONFIG_STATUS <<\_ACEOF
24119 fi # test -n "$CONFIG_FILES"
24120
24121
24122 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
24123 do
24124   case $ac_tag in
24125   :[FHLC]) ac_mode=$ac_tag; continue;;
24126   esac
24127   case $ac_mode$ac_tag in
24128   :[FHL]*:*);;
24129   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24130 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24131    { (exit 1); exit 1; }; };;
24132   :[FH]-) ac_tag=-:-;;
24133   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24134   esac
24135   ac_save_IFS=$IFS
24136   IFS=:
24137   set x $ac_tag
24138   IFS=$ac_save_IFS
24139   shift
24140   ac_file=$1
24141   shift
24142
24143   case $ac_mode in
24144   :L) ac_source=$1;;
24145   :[FH])
24146     ac_file_inputs=
24147     for ac_f
24148     do
24149       case $ac_f in
24150       -) ac_f="$tmp/stdin";;
24151       *) # Look for the file first in the build tree, then in the source tree
24152          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24153          # because $ac_f cannot contain `:'.
24154          test -f "$ac_f" ||
24155            case $ac_f in
24156            [\\/$]*) false;;
24157            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24158            esac ||
24159            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24160 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24161    { (exit 1); exit 1; }; };;
24162       esac
24163       ac_file_inputs="$ac_file_inputs $ac_f"
24164     done
24165
24166     # Let's still pretend it is `configure' which instantiates (i.e., don't
24167     # use $as_me), people would be surprised to read:
24168     #    /* config.h.  Generated by config.status.  */
24169     configure_input="Generated from "`IFS=:
24170           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24171     if test x"$ac_file" != x-; then
24172       configure_input="$ac_file.  $configure_input"
24173       { echo "$as_me:$LINENO: creating $ac_file" >&5
24174 echo "$as_me: creating $ac_file" >&6;}
24175     fi
24176
24177     case $ac_tag in
24178     *:-:* | *:-) cat >"$tmp/stdin";;
24179     esac
24180     ;;
24181   esac
24182
24183   ac_dir=`$as_dirname -- "$ac_file" ||
24184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24185          X"$ac_file" : 'X\(//\)[^/]' \| \
24186          X"$ac_file" : 'X\(//\)$' \| \
24187          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24188 echo X"$ac_file" |
24189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24190             s//\1/
24191             q
24192           }
24193           /^X\(\/\/\)[^/].*/{
24194             s//\1/
24195             q
24196           }
24197           /^X\(\/\/\)$/{
24198             s//\1/
24199             q
24200           }
24201           /^X\(\/\).*/{
24202             s//\1/
24203             q
24204           }
24205           s/.*/./; q'`
24206   { as_dir="$ac_dir"
24207   case $as_dir in #(
24208   -*) as_dir=./$as_dir;;
24209   esac
24210   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24211     as_dirs=
24212     while :; do
24213       case $as_dir in #(
24214       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24215       *) as_qdir=$as_dir;;
24216       esac
24217       as_dirs="'$as_qdir' $as_dirs"
24218       as_dir=`$as_dirname -- "$as_dir" ||
24219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24220          X"$as_dir" : 'X\(//\)[^/]' \| \
24221          X"$as_dir" : 'X\(//\)$' \| \
24222          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24223 echo X"$as_dir" |
24224     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24225             s//\1/
24226             q
24227           }
24228           /^X\(\/\/\)[^/].*/{
24229             s//\1/
24230             q
24231           }
24232           /^X\(\/\/\)$/{
24233             s//\1/
24234             q
24235           }
24236           /^X\(\/\).*/{
24237             s//\1/
24238             q
24239           }
24240           s/.*/./; q'`
24241       test -d "$as_dir" && break
24242     done
24243     test -z "$as_dirs" || eval "mkdir $as_dirs"
24244   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24245 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24246    { (exit 1); exit 1; }; }; }
24247   ac_builddir=.
24248
24249 case "$ac_dir" in
24250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24251 *)
24252   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24253   # A ".." for each directory in $ac_dir_suffix.
24254   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24255   case $ac_top_builddir_sub in
24256   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24257   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24258   esac ;;
24259 esac
24260 ac_abs_top_builddir=$ac_pwd
24261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24262 # for backward compatibility:
24263 ac_top_builddir=$ac_top_build_prefix
24264
24265 case $srcdir in
24266   .)  # We are building in place.
24267     ac_srcdir=.
24268     ac_top_srcdir=$ac_top_builddir_sub
24269     ac_abs_top_srcdir=$ac_pwd ;;
24270   [\\/]* | ?:[\\/]* )  # Absolute name.
24271     ac_srcdir=$srcdir$ac_dir_suffix;
24272     ac_top_srcdir=$srcdir
24273     ac_abs_top_srcdir=$srcdir ;;
24274   *) # Relative name.
24275     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24276     ac_top_srcdir=$ac_top_build_prefix$srcdir
24277     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24278 esac
24279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24280
24281
24282   case $ac_mode in
24283   :F)
24284   #
24285   # CONFIG_FILE
24286   #
24287
24288 _ACEOF
24289
24290 cat >>$CONFIG_STATUS <<\_ACEOF
24291 # If the template does not know about datarootdir, expand it.
24292 # FIXME: This hack should be removed a few years after 2.60.
24293 ac_datarootdir_hack=; ac_datarootdir_seen=
24294
24295 case `sed -n '/datarootdir/ {
24296   p
24297   q
24298 }
24299 /@datadir@/p
24300 /@docdir@/p
24301 /@infodir@/p
24302 /@localedir@/p
24303 /@mandir@/p
24304 ' $ac_file_inputs` in
24305 *datarootdir*) ac_datarootdir_seen=yes;;
24306 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24307   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24308 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24309 _ACEOF
24310 cat >>$CONFIG_STATUS <<_ACEOF
24311   ac_datarootdir_hack='
24312   s&@datadir@&$datadir&g
24313   s&@docdir@&$docdir&g
24314   s&@infodir@&$infodir&g
24315   s&@localedir@&$localedir&g
24316   s&@mandir@&$mandir&g
24317     s&\\\${datarootdir}&$datarootdir&g' ;;
24318 esac
24319 _ACEOF
24320
24321 # Neutralize VPATH when `$srcdir' = `.'.
24322 # Shell code in configure.ac might set extrasub.
24323 # FIXME: do we really want to maintain this feature?
24324 cat >>$CONFIG_STATUS <<_ACEOF
24325   sed "$ac_vpsub
24326 $extrasub
24327 _ACEOF
24328 cat >>$CONFIG_STATUS <<\_ACEOF
24329 :t
24330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24331 s&@configure_input@&$configure_input&;t t
24332 s&@top_builddir@&$ac_top_builddir_sub&;t t
24333 s&@srcdir@&$ac_srcdir&;t t
24334 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24335 s&@top_srcdir@&$ac_top_srcdir&;t t
24336 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24337 s&@builddir@&$ac_builddir&;t t
24338 s&@abs_builddir@&$ac_abs_builddir&;t t
24339 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24340 $ac_datarootdir_hack
24341 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24342
24343 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24344   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24345   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24346   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24347 which seems to be undefined.  Please make sure it is defined." >&5
24348 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24349 which seems to be undefined.  Please make sure it is defined." >&2;}
24350
24351   rm -f "$tmp/stdin"
24352   case $ac_file in
24353   -) cat "$tmp/out"; rm -f "$tmp/out";;
24354   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24355   esac
24356  ;;
24357   :H)
24358   #
24359   # CONFIG_HEADER
24360   #
24361 _ACEOF
24362
24363 # Transform confdefs.h into a sed script `conftest.defines', that
24364 # substitutes the proper values into config.h.in to produce config.h.
24365 rm -f conftest.defines conftest.tail
24366 # First, append a space to every undef/define line, to ease matching.
24367 echo 's/$/ /' >conftest.defines
24368 # Then, protect against being on the right side of a sed subst, or in
24369 # an unquoted here document, in config.status.  If some macros were
24370 # called several times there might be several #defines for the same
24371 # symbol, which is useless.  But do not sort them, since the last
24372 # AC_DEFINE must be honored.
24373 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24374 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24375 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24376 # PARAMS is the parameter list in the macro definition--in most cases, it's
24377 # just an empty string.
24378 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24379 ac_dB='\\)[      (].*,\\1define\\2'
24380 ac_dC=' '
24381 ac_dD=' ,'
24382
24383 uniq confdefs.h |
24384   sed -n '
24385         t rset
24386         :rset
24387         s/^[     ]*#[    ]*define[       ][      ]*//
24388         t ok
24389         d
24390         :ok
24391         s/[\\&,]/\\&/g
24392         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24393         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24394   ' >>conftest.defines
24395
24396 # Remove the space that was appended to ease matching.
24397 # Then replace #undef with comments.  This is necessary, for
24398 # example, in the case of _POSIX_SOURCE, which is predefined and required
24399 # on some systems where configure will not decide to define it.
24400 # (The regexp can be short, since the line contains either #define or #undef.)
24401 echo 's/ $//
24402 s,^[     #]*u.*,/* & */,' >>conftest.defines
24403
24404 # Break up conftest.defines:
24405 ac_max_sed_lines=50
24406
24407 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24408 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24409 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24410 # et cetera.
24411 ac_in='$ac_file_inputs'
24412 ac_out='"$tmp/out1"'
24413 ac_nxt='"$tmp/out2"'
24414
24415 while :
24416 do
24417   # Write a here document:
24418     cat >>$CONFIG_STATUS <<_ACEOF
24419     # First, check the format of the line:
24420     cat >"\$tmp/defines.sed" <<\\CEOF
24421 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24422 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24423 b
24424 :def
24425 _ACEOF
24426   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24427   echo 'CEOF
24428     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24429   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24430   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24431   grep . conftest.tail >/dev/null || break
24432   rm -f conftest.defines
24433   mv conftest.tail conftest.defines
24434 done
24435 rm -f conftest.defines conftest.tail
24436
24437 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24438 cat >>$CONFIG_STATUS <<\_ACEOF
24439   if test x"$ac_file" != x-; then
24440     echo "/* $configure_input  */" >"$tmp/config.h"
24441     cat "$ac_result" >>"$tmp/config.h"
24442     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24443       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24444 echo "$as_me: $ac_file is unchanged" >&6;}
24445     else
24446       rm -f $ac_file
24447       mv "$tmp/config.h" $ac_file
24448     fi
24449   else
24450     echo "/* $configure_input  */"
24451     cat "$ac_result"
24452   fi
24453   rm -f "$tmp/out12"
24454 # Compute $ac_file's index in $config_headers.
24455 _am_arg=$ac_file
24456 _am_stamp_count=1
24457 for _am_header in $config_headers :; do
24458   case $_am_header in
24459     $_am_arg | $_am_arg:* )
24460       break ;;
24461     * )
24462       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24463   esac
24464 done
24465 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24466 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24467          X"$_am_arg" : 'X\(//\)[^/]' \| \
24468          X"$_am_arg" : 'X\(//\)$' \| \
24469          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24470 echo X"$_am_arg" |
24471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24472             s//\1/
24473             q
24474           }
24475           /^X\(\/\/\)[^/].*/{
24476             s//\1/
24477             q
24478           }
24479           /^X\(\/\/\)$/{
24480             s//\1/
24481             q
24482           }
24483           /^X\(\/\).*/{
24484             s//\1/
24485             q
24486           }
24487           s/.*/./; q'`/stamp-h$_am_stamp_count
24488  ;;
24489
24490
24491   esac
24492
24493 done # for ac_tag
24494
24495
24496 { (exit 0); exit 0; }
24497 _ACEOF
24498 chmod +x $CONFIG_STATUS
24499 ac_clean_files=$ac_clean_files_save
24500
24501
24502 # configure is writing to config.log, and then calls config.status.
24503 # config.status does its own redirection, appending to config.log.
24504 # Unfortunately, on DOS this fails, as config.log is still kept open
24505 # by configure, so config.status won't be able to write to it; its
24506 # output is simply discarded.  So we exec the FD to /dev/null,
24507 # effectively closing config.log, so it can be properly (re)opened and
24508 # appended to by config.status.  When coming back to configure, we
24509 # need to make the FD available again.
24510 if test "$no_create" != yes; then
24511   ac_cs_success=:
24512   ac_config_status_args=
24513   test "$silent" = yes &&
24514     ac_config_status_args="$ac_config_status_args --quiet"
24515   exec 5>/dev/null
24516   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24517   exec 5>>config.log
24518   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24519   # would make configure fail if this is the last instruction.
24520   $ac_cs_success || { (exit 1); exit 1; }
24521 fi
24522
24523
24524 if test "$with_pam" = "yes"; then
24525     case $host in
24526         *-*-linux*)
24527             { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24528 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
24529             ;;
24530     esac
24531 fi
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678