Imported Debian patch 1.6.9p15-1
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sudo 1.6.9.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 exec 7<&0 </dev/null 6>&1
703
704 # Name of the host.
705 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
706 # so uname gets run too.
707 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
708
709 #
710 # Initializations.
711 #
712 ac_default_prefix=/usr/local
713 ac_clean_files=
714 ac_config_libobj_dir=.
715 LIBOBJS=
716 cross_compiling=no
717 subdirs=
718 MFLAGS=
719 MAKEFLAGS=
720 SHELL=${CONFIG_SHELL-/bin/sh}
721
722 # Identity of this package.
723 PACKAGE_NAME='sudo'
724 PACKAGE_TARNAME='sudo'
725 PACKAGE_VERSION='1.6.9'
726 PACKAGE_STRING='sudo 1.6.9'
727 PACKAGE_BUGREPORT=''
728
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 LIBTOOL
803 CFLAGS
804 PROGS
805 CPPFLAGS
806 LDFLAGS
807 SUDO_LDFLAGS
808 SUDO_OBJS
809 SUDO_LIBS
810 NET_LIBS
811 AFS_LIBS
812 GETGROUPS_LIB
813 OSDEFS
814 AUTH_OBJS
815 MANTYPE
816 MAN_POSTINSTALL
817 SUDOERS_MODE
818 SUDOERS_UID
819 SUDOERS_GID
820 DEV
821 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 [PREFIX/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 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15535                strftime setrlimit initgroups getgroups fstat gettimeofday \
15536                setlocale getaddrinfo
15537 do
15538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15542   echo $ECHO_N "(cached) $ECHO_C" >&6
15543 else
15544   cat >conftest.$ac_ext <<_ACEOF
15545 /* confdefs.h.  */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h.  */
15550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15552 #define $ac_func innocuous_$ac_func
15553
15554 /* System header to define __stub macros and hopefully few prototypes,
15555     which can conflict with char $ac_func (); below.
15556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15557     <limits.h> exists even on freestanding compilers.  */
15558
15559 #ifdef __STDC__
15560 # include <limits.h>
15561 #else
15562 # include <assert.h>
15563 #endif
15564
15565 #undef $ac_func
15566
15567 /* Override any GCC internal prototype to avoid an error.
15568    Use char because int might match the return type of a GCC
15569    builtin and then its argument prototype would still apply.  */
15570 #ifdef __cplusplus
15571 extern "C"
15572 #endif
15573 char $ac_func ();
15574 /* The GNU C library defines this for functions which it implements
15575     to always fail with ENOSYS.  Some functions are actually named
15576     something starting with __ and the normal name is an alias.  */
15577 #if defined __stub_$ac_func || defined __stub___$ac_func
15578 choke me
15579 #endif
15580
15581 int
15582 main ()
15583 {
15584 return $ac_func ();
15585   ;
15586   return 0;
15587 }
15588 _ACEOF
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593   *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596   (eval "$ac_link") 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } && {
15603          test -z "$ac_c_werror_flag" ||
15604          test ! -s conftest.err
15605        } && test -s conftest$ac_exeext &&
15606        $as_test_x conftest$ac_exeext; then
15607   eval "$as_ac_var=yes"
15608 else
15609   echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612         eval "$as_ac_var=no"
15613 fi
15614
15615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616       conftest$ac_exeext conftest.$ac_ext
15617 fi
15618 ac_res=`eval echo '${'$as_ac_var'}'`
15619                { echo "$as_me:$LINENO: result: $ac_res" >&5
15620 echo "${ECHO_T}$ac_res" >&6; }
15621 if test `eval echo '${'$as_ac_var'}'` = yes; then
15622   cat >>confdefs.h <<_ACEOF
15623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15624 _ACEOF
15625
15626 fi
15627 done
15628
15629 if test -z "$SKIP_SETRESUID"; then
15630
15631 for ac_func in setresuid
15632 do
15633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15637   echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639   cat >conftest.$ac_ext <<_ACEOF
15640 /* confdefs.h.  */
15641 _ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h.  */
15645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15647 #define $ac_func innocuous_$ac_func
15648
15649 /* System header to define __stub macros and hopefully few prototypes,
15650     which can conflict with char $ac_func (); below.
15651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15652     <limits.h> exists even on freestanding compilers.  */
15653
15654 #ifdef __STDC__
15655 # include <limits.h>
15656 #else
15657 # include <assert.h>
15658 #endif
15659
15660 #undef $ac_func
15661
15662 /* Override any GCC internal prototype to avoid an error.
15663    Use char because int might match the return type of a GCC
15664    builtin and then its argument prototype would still apply.  */
15665 #ifdef __cplusplus
15666 extern "C"
15667 #endif
15668 char $ac_func ();
15669 /* The GNU C library defines this for functions which it implements
15670     to always fail with ENOSYS.  Some functions are actually named
15671     something starting with __ and the normal name is an alias.  */
15672 #if defined __stub_$ac_func || defined __stub___$ac_func
15673 choke me
15674 #endif
15675
15676 int
15677 main ()
15678 {
15679 return $ac_func ();
15680   ;
15681   return 0;
15682 }
15683 _ACEOF
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (ac_try="$ac_link"
15686 case "(($ac_try" in
15687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688   *) ac_try_echo=$ac_try;;
15689 esac
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691   (eval "$ac_link") 2>conftest.er1
15692   ac_status=$?
15693   grep -v '^ *+' conftest.er1 >conftest.err
15694   rm -f conftest.er1
15695   cat conftest.err >&5
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); } && {
15698          test -z "$ac_c_werror_flag" ||
15699          test ! -s conftest.err
15700        } && test -s conftest$ac_exeext &&
15701        $as_test_x conftest$ac_exeext; then
15702   eval "$as_ac_var=yes"
15703 else
15704   echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15706
15707         eval "$as_ac_var=no"
15708 fi
15709
15710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15711       conftest$ac_exeext conftest.$ac_ext
15712 fi
15713 ac_res=`eval echo '${'$as_ac_var'}'`
15714                { echo "$as_me:$LINENO: result: $ac_res" >&5
15715 echo "${ECHO_T}$ac_res" >&6; }
15716 if test `eval echo '${'$as_ac_var'}'` = yes; then
15717   cat >>confdefs.h <<_ACEOF
15718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15719 _ACEOF
15720  SKIP_SETREUID=yes
15721 fi
15722 done
15723
15724 fi
15725 if test -z "$SKIP_SETREUID"; then
15726
15727 for ac_func in setreuid
15728 do
15729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15733   echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735   cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15743 #define $ac_func innocuous_$ac_func
15744
15745 /* System header to define __stub macros and hopefully few prototypes,
15746     which can conflict with char $ac_func (); below.
15747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15748     <limits.h> exists even on freestanding compilers.  */
15749
15750 #ifdef __STDC__
15751 # include <limits.h>
15752 #else
15753 # include <assert.h>
15754 #endif
15755
15756 #undef $ac_func
15757
15758 /* Override any GCC internal prototype to avoid an error.
15759    Use char because int might match the return type of a GCC
15760    builtin and then its argument prototype would still apply.  */
15761 #ifdef __cplusplus
15762 extern "C"
15763 #endif
15764 char $ac_func ();
15765 /* The GNU C library defines this for functions which it implements
15766     to always fail with ENOSYS.  Some functions are actually named
15767     something starting with __ and the normal name is an alias.  */
15768 #if defined __stub_$ac_func || defined __stub___$ac_func
15769 choke me
15770 #endif
15771
15772 int
15773 main ()
15774 {
15775 return $ac_func ();
15776   ;
15777   return 0;
15778 }
15779 _ACEOF
15780 rm -f conftest.$ac_objext conftest$ac_exeext
15781 if { (ac_try="$ac_link"
15782 case "(($ac_try" in
15783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784   *) ac_try_echo=$ac_try;;
15785 esac
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787   (eval "$ac_link") 2>conftest.er1
15788   ac_status=$?
15789   grep -v '^ *+' conftest.er1 >conftest.err
15790   rm -f conftest.er1
15791   cat conftest.err >&5
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); } && {
15794          test -z "$ac_c_werror_flag" ||
15795          test ! -s conftest.err
15796        } && test -s conftest$ac_exeext &&
15797        $as_test_x conftest$ac_exeext; then
15798   eval "$as_ac_var=yes"
15799 else
15800   echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803         eval "$as_ac_var=no"
15804 fi
15805
15806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15807       conftest$ac_exeext conftest.$ac_ext
15808 fi
15809 ac_res=`eval echo '${'$as_ac_var'}'`
15810                { echo "$as_me:$LINENO: result: $ac_res" >&5
15811 echo "${ECHO_T}$ac_res" >&6; }
15812 if test `eval echo '${'$as_ac_var'}'` = yes; then
15813   cat >>confdefs.h <<_ACEOF
15814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15815 _ACEOF
15816  SKIP_SETEUID=yes
15817 fi
15818 done
15819
15820 fi
15821 if test -z "$SKIP_SETEUID"; then
15822
15823 for ac_func in seteuid
15824 do
15825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15829   echo $ECHO_N "(cached) $ECHO_C" >&6
15830 else
15831   cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h.  */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h.  */
15837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15839 #define $ac_func innocuous_$ac_func
15840
15841 /* System header to define __stub macros and hopefully few prototypes,
15842     which can conflict with char $ac_func (); below.
15843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15844     <limits.h> exists even on freestanding compilers.  */
15845
15846 #ifdef __STDC__
15847 # include <limits.h>
15848 #else
15849 # include <assert.h>
15850 #endif
15851
15852 #undef $ac_func
15853
15854 /* Override any GCC internal prototype to avoid an error.
15855    Use char because int might match the return type of a GCC
15856    builtin and then its argument prototype would still apply.  */
15857 #ifdef __cplusplus
15858 extern "C"
15859 #endif
15860 char $ac_func ();
15861 /* The GNU C library defines this for functions which it implements
15862     to always fail with ENOSYS.  Some functions are actually named
15863     something starting with __ and the normal name is an alias.  */
15864 #if defined __stub_$ac_func || defined __stub___$ac_func
15865 choke me
15866 #endif
15867
15868 int
15869 main ()
15870 {
15871 return $ac_func ();
15872   ;
15873   return 0;
15874 }
15875 _ACEOF
15876 rm -f conftest.$ac_objext conftest$ac_exeext
15877 if { (ac_try="$ac_link"
15878 case "(($ac_try" in
15879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880   *) ac_try_echo=$ac_try;;
15881 esac
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883   (eval "$ac_link") 2>conftest.er1
15884   ac_status=$?
15885   grep -v '^ *+' conftest.er1 >conftest.err
15886   rm -f conftest.er1
15887   cat conftest.err >&5
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); } && {
15890          test -z "$ac_c_werror_flag" ||
15891          test ! -s conftest.err
15892        } && test -s conftest$ac_exeext &&
15893        $as_test_x conftest$ac_exeext; then
15894   eval "$as_ac_var=yes"
15895 else
15896   echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15898
15899         eval "$as_ac_var=no"
15900 fi
15901
15902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15903       conftest$ac_exeext conftest.$ac_ext
15904 fi
15905 ac_res=`eval echo '${'$as_ac_var'}'`
15906                { echo "$as_me:$LINENO: result: $ac_res" >&5
15907 echo "${ECHO_T}$ac_res" >&6; }
15908 if test `eval echo '${'$as_ac_var'}'` = yes; then
15909   cat >>confdefs.h <<_ACEOF
15910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15911 _ACEOF
15912
15913 fi
15914 done
15915
15916 fi
15917 if test X"$with_interfaces" != X"no"; then
15918
15919 for ac_func in getifaddrs
15920 do
15921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15925   echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927   cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15935 #define $ac_func innocuous_$ac_func
15936
15937 /* System header to define __stub macros and hopefully few prototypes,
15938     which can conflict with char $ac_func (); below.
15939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15940     <limits.h> exists even on freestanding compilers.  */
15941
15942 #ifdef __STDC__
15943 # include <limits.h>
15944 #else
15945 # include <assert.h>
15946 #endif
15947
15948 #undef $ac_func
15949
15950 /* Override any GCC internal prototype to avoid an error.
15951    Use char because int might match the return type of a GCC
15952    builtin and then its argument prototype would still apply.  */
15953 #ifdef __cplusplus
15954 extern "C"
15955 #endif
15956 char $ac_func ();
15957 /* The GNU C library defines this for functions which it implements
15958     to always fail with ENOSYS.  Some functions are actually named
15959     something starting with __ and the normal name is an alias.  */
15960 #if defined __stub_$ac_func || defined __stub___$ac_func
15961 choke me
15962 #endif
15963
15964 int
15965 main ()
15966 {
15967 return $ac_func ();
15968   ;
15969   return 0;
15970 }
15971 _ACEOF
15972 rm -f conftest.$ac_objext conftest$ac_exeext
15973 if { (ac_try="$ac_link"
15974 case "(($ac_try" in
15975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976   *) ac_try_echo=$ac_try;;
15977 esac
15978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15979   (eval "$ac_link") 2>conftest.er1
15980   ac_status=$?
15981   grep -v '^ *+' conftest.er1 >conftest.err
15982   rm -f conftest.er1
15983   cat conftest.err >&5
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); } && {
15986          test -z "$ac_c_werror_flag" ||
15987          test ! -s conftest.err
15988        } && test -s conftest$ac_exeext &&
15989        $as_test_x conftest$ac_exeext; then
15990   eval "$as_ac_var=yes"
15991 else
15992   echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15994
15995         eval "$as_ac_var=no"
15996 fi
15997
15998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15999       conftest$ac_exeext conftest.$ac_ext
16000 fi
16001 ac_res=`eval echo '${'$as_ac_var'}'`
16002                { echo "$as_me:$LINENO: result: $ac_res" >&5
16003 echo "${ECHO_T}$ac_res" >&6; }
16004 if test `eval echo '${'$as_ac_var'}'` = yes; then
16005   cat >>confdefs.h <<_ACEOF
16006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16007 _ACEOF
16008
16009 for ac_func in freeifaddrs
16010 do
16011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16015   echo $ECHO_N "(cached) $ECHO_C" >&6
16016 else
16017   cat >conftest.$ac_ext <<_ACEOF
16018 /* confdefs.h.  */
16019 _ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h.  */
16023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16025 #define $ac_func innocuous_$ac_func
16026
16027 /* System header to define __stub macros and hopefully few prototypes,
16028     which can conflict with char $ac_func (); below.
16029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16030     <limits.h> exists even on freestanding compilers.  */
16031
16032 #ifdef __STDC__
16033 # include <limits.h>
16034 #else
16035 # include <assert.h>
16036 #endif
16037
16038 #undef $ac_func
16039
16040 /* Override any GCC internal prototype to avoid an error.
16041    Use char because int might match the return type of a GCC
16042    builtin and then its argument prototype would still apply.  */
16043 #ifdef __cplusplus
16044 extern "C"
16045 #endif
16046 char $ac_func ();
16047 /* The GNU C library defines this for functions which it implements
16048     to always fail with ENOSYS.  Some functions are actually named
16049     something starting with __ and the normal name is an alias.  */
16050 #if defined __stub_$ac_func || defined __stub___$ac_func
16051 choke me
16052 #endif
16053
16054 int
16055 main ()
16056 {
16057 return $ac_func ();
16058   ;
16059   return 0;
16060 }
16061 _ACEOF
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (ac_try="$ac_link"
16064 case "(($ac_try" in
16065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066   *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069   (eval "$ac_link") 2>conftest.er1
16070   ac_status=$?
16071   grep -v '^ *+' conftest.er1 >conftest.err
16072   rm -f conftest.er1
16073   cat conftest.err >&5
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); } && {
16076          test -z "$ac_c_werror_flag" ||
16077          test ! -s conftest.err
16078        } && test -s conftest$ac_exeext &&
16079        $as_test_x conftest$ac_exeext; then
16080   eval "$as_ac_var=yes"
16081 else
16082   echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085         eval "$as_ac_var=no"
16086 fi
16087
16088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16089       conftest$ac_exeext conftest.$ac_ext
16090 fi
16091 ac_res=`eval echo '${'$as_ac_var'}'`
16092                { echo "$as_me:$LINENO: result: $ac_res" >&5
16093 echo "${ECHO_T}$ac_res" >&6; }
16094 if test `eval echo '${'$as_ac_var'}'` = yes; then
16095   cat >>confdefs.h <<_ACEOF
16096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16097 _ACEOF
16098
16099 fi
16100 done
16101
16102 fi
16103 done
16104
16105 fi
16106 if test -z "$BROKEN_GETCWD"; then
16107
16108 for ac_func in getcwd
16109 do
16110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16114   echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116   cat >conftest.$ac_ext <<_ACEOF
16117 /* confdefs.h.  */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h.  */
16122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16124 #define $ac_func innocuous_$ac_func
16125
16126 /* System header to define __stub macros and hopefully few prototypes,
16127     which can conflict with char $ac_func (); below.
16128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16129     <limits.h> exists even on freestanding compilers.  */
16130
16131 #ifdef __STDC__
16132 # include <limits.h>
16133 #else
16134 # include <assert.h>
16135 #endif
16136
16137 #undef $ac_func
16138
16139 /* Override any GCC internal prototype to avoid an error.
16140    Use char because int might match the return type of a GCC
16141    builtin and then its argument prototype would still apply.  */
16142 #ifdef __cplusplus
16143 extern "C"
16144 #endif
16145 char $ac_func ();
16146 /* The GNU C library defines this for functions which it implements
16147     to always fail with ENOSYS.  Some functions are actually named
16148     something starting with __ and the normal name is an alias.  */
16149 #if defined __stub_$ac_func || defined __stub___$ac_func
16150 choke me
16151 #endif
16152
16153 int
16154 main ()
16155 {
16156 return $ac_func ();
16157   ;
16158   return 0;
16159 }
16160 _ACEOF
16161 rm -f conftest.$ac_objext conftest$ac_exeext
16162 if { (ac_try="$ac_link"
16163 case "(($ac_try" in
16164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165   *) ac_try_echo=$ac_try;;
16166 esac
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168   (eval "$ac_link") 2>conftest.er1
16169   ac_status=$?
16170   grep -v '^ *+' conftest.er1 >conftest.err
16171   rm -f conftest.er1
16172   cat conftest.err >&5
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); } && {
16175          test -z "$ac_c_werror_flag" ||
16176          test ! -s conftest.err
16177        } && test -s conftest$ac_exeext &&
16178        $as_test_x conftest$ac_exeext; then
16179   eval "$as_ac_var=yes"
16180 else
16181   echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16183
16184         eval "$as_ac_var=no"
16185 fi
16186
16187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16188       conftest$ac_exeext conftest.$ac_ext
16189 fi
16190 ac_res=`eval echo '${'$as_ac_var'}'`
16191                { echo "$as_me:$LINENO: result: $ac_res" >&5
16192 echo "${ECHO_T}$ac_res" >&6; }
16193 if test `eval echo '${'$as_ac_var'}'` = yes; then
16194   cat >>confdefs.h <<_ACEOF
16195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16196 _ACEOF
16197
16198 else
16199   case " $LIBOBJS " in
16200   *" $ac_func.$ac_objext "* ) ;;
16201   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16202  ;;
16203 esac
16204
16205 fi
16206 done
16207
16208
16209 fi
16210
16211 for ac_func in glob
16212 do
16213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219   cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16227 #define $ac_func innocuous_$ac_func
16228
16229 /* System header to define __stub macros and hopefully few prototypes,
16230     which can conflict with char $ac_func (); below.
16231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16232     <limits.h> exists even on freestanding compilers.  */
16233
16234 #ifdef __STDC__
16235 # include <limits.h>
16236 #else
16237 # include <assert.h>
16238 #endif
16239
16240 #undef $ac_func
16241
16242 /* Override any GCC internal prototype to avoid an error.
16243    Use char because int might match the return type of a GCC
16244    builtin and then its argument prototype would still apply.  */
16245 #ifdef __cplusplus
16246 extern "C"
16247 #endif
16248 char $ac_func ();
16249 /* The GNU C library defines this for functions which it implements
16250     to always fail with ENOSYS.  Some functions are actually named
16251     something starting with __ and the normal name is an alias.  */
16252 #if defined __stub_$ac_func || defined __stub___$ac_func
16253 choke me
16254 #endif
16255
16256 int
16257 main ()
16258 {
16259 return $ac_func ();
16260   ;
16261   return 0;
16262 }
16263 _ACEOF
16264 rm -f conftest.$ac_objext conftest$ac_exeext
16265 if { (ac_try="$ac_link"
16266 case "(($ac_try" in
16267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268   *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271   (eval "$ac_link") 2>conftest.er1
16272   ac_status=$?
16273   grep -v '^ *+' conftest.er1 >conftest.err
16274   rm -f conftest.er1
16275   cat conftest.err >&5
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); } && {
16278          test -z "$ac_c_werror_flag" ||
16279          test ! -s conftest.err
16280        } && test -s conftest$ac_exeext &&
16281        $as_test_x conftest$ac_exeext; then
16282   eval "$as_ac_var=yes"
16283 else
16284   echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16286
16287         eval "$as_ac_var=no"
16288 fi
16289
16290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16291       conftest$ac_exeext conftest.$ac_ext
16292 fi
16293 ac_res=`eval echo '${'$as_ac_var'}'`
16294                { echo "$as_me:$LINENO: result: $ac_res" >&5
16295 echo "${ECHO_T}$ac_res" >&6; }
16296 if test `eval echo '${'$as_ac_var'}'` = yes; then
16297   cat >>confdefs.h <<_ACEOF
16298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16299 _ACEOF
16300  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16301 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
16302 cat >conftest.$ac_ext <<_ACEOF
16303 /* confdefs.h.  */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h.  */
16308 #include <glob.h>
16309 int
16310 main ()
16311 {
16312 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16313   ;
16314   return 0;
16315 }
16316 _ACEOF
16317 rm -f conftest.$ac_objext
16318 if { (ac_try="$ac_compile"
16319 case "(($ac_try" in
16320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321   *) ac_try_echo=$ac_try;;
16322 esac
16323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16324   (eval "$ac_compile") 2>conftest.er1
16325   ac_status=$?
16326   grep -v '^ *+' conftest.er1 >conftest.err
16327   rm -f conftest.er1
16328   cat conftest.err >&5
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); } && {
16331          test -z "$ac_c_werror_flag" ||
16332          test ! -s conftest.err
16333        } && test -s conftest.$ac_objext; then
16334   cat >>confdefs.h <<\_ACEOF
16335 #define HAVE_EXTENDED_GLOB 1
16336 _ACEOF
16337
16338     { echo "$as_me:$LINENO: result: yes" >&5
16339 echo "${ECHO_T}yes" >&6; }
16340 else
16341   echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16343
16344         case " $LIBOBJS " in
16345   *" glob.$ac_objext "* ) ;;
16346   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16347  ;;
16348 esac
16349
16350     { echo "$as_me:$LINENO: result: no" >&5
16351 echo "${ECHO_T}no" >&6; }
16352 fi
16353
16354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16355 else
16356   case " $LIBOBJS " in
16357   *" glob.$ac_objext "* ) ;;
16358   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16359  ;;
16360 esac
16361
16362 fi
16363 done
16364
16365
16366
16367 for ac_func in lockf flock
16368 do
16369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16373   echo $ECHO_N "(cached) $ECHO_C" >&6
16374 else
16375   cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h.  */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h.  */
16381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16383 #define $ac_func innocuous_$ac_func
16384
16385 /* System header to define __stub macros and hopefully few prototypes,
16386     which can conflict with char $ac_func (); below.
16387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16388     <limits.h> exists even on freestanding compilers.  */
16389
16390 #ifdef __STDC__
16391 # include <limits.h>
16392 #else
16393 # include <assert.h>
16394 #endif
16395
16396 #undef $ac_func
16397
16398 /* Override any GCC internal prototype to avoid an error.
16399    Use char because int might match the return type of a GCC
16400    builtin and then its argument prototype would still apply.  */
16401 #ifdef __cplusplus
16402 extern "C"
16403 #endif
16404 char $ac_func ();
16405 /* The GNU C library defines this for functions which it implements
16406     to always fail with ENOSYS.  Some functions are actually named
16407     something starting with __ and the normal name is an alias.  */
16408 #if defined __stub_$ac_func || defined __stub___$ac_func
16409 choke me
16410 #endif
16411
16412 int
16413 main ()
16414 {
16415 return $ac_func ();
16416   ;
16417   return 0;
16418 }
16419 _ACEOF
16420 rm -f conftest.$ac_objext conftest$ac_exeext
16421 if { (ac_try="$ac_link"
16422 case "(($ac_try" in
16423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424   *) ac_try_echo=$ac_try;;
16425 esac
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427   (eval "$ac_link") 2>conftest.er1
16428   ac_status=$?
16429   grep -v '^ *+' conftest.er1 >conftest.err
16430   rm -f conftest.er1
16431   cat conftest.err >&5
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } && {
16434          test -z "$ac_c_werror_flag" ||
16435          test ! -s conftest.err
16436        } && test -s conftest$ac_exeext &&
16437        $as_test_x conftest$ac_exeext; then
16438   eval "$as_ac_var=yes"
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443         eval "$as_ac_var=no"
16444 fi
16445
16446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16447       conftest$ac_exeext conftest.$ac_ext
16448 fi
16449 ac_res=`eval echo '${'$as_ac_var'}'`
16450                { echo "$as_me:$LINENO: result: $ac_res" >&5
16451 echo "${ECHO_T}$ac_res" >&6; }
16452 if test `eval echo '${'$as_ac_var'}'` = yes; then
16453   cat >>confdefs.h <<_ACEOF
16454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16455 _ACEOF
16456  break
16457 fi
16458 done
16459
16460
16461
16462 for ac_func in waitpid wait3
16463 do
16464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16468   echo $ECHO_N "(cached) $ECHO_C" >&6
16469 else
16470   cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h.  */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h.  */
16476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16478 #define $ac_func innocuous_$ac_func
16479
16480 /* System header to define __stub macros and hopefully few prototypes,
16481     which can conflict with char $ac_func (); below.
16482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16483     <limits.h> exists even on freestanding compilers.  */
16484
16485 #ifdef __STDC__
16486 # include <limits.h>
16487 #else
16488 # include <assert.h>
16489 #endif
16490
16491 #undef $ac_func
16492
16493 /* Override any GCC internal prototype to avoid an error.
16494    Use char because int might match the return type of a GCC
16495    builtin and then its argument prototype would still apply.  */
16496 #ifdef __cplusplus
16497 extern "C"
16498 #endif
16499 char $ac_func ();
16500 /* The GNU C library defines this for functions which it implements
16501     to always fail with ENOSYS.  Some functions are actually named
16502     something starting with __ and the normal name is an alias.  */
16503 #if defined __stub_$ac_func || defined __stub___$ac_func
16504 choke me
16505 #endif
16506
16507 int
16508 main ()
16509 {
16510 return $ac_func ();
16511   ;
16512   return 0;
16513 }
16514 _ACEOF
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (ac_try="$ac_link"
16517 case "(($ac_try" in
16518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519   *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522   (eval "$ac_link") 2>conftest.er1
16523   ac_status=$?
16524   grep -v '^ *+' conftest.er1 >conftest.err
16525   rm -f conftest.er1
16526   cat conftest.err >&5
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); } && {
16529          test -z "$ac_c_werror_flag" ||
16530          test ! -s conftest.err
16531        } && test -s conftest$ac_exeext &&
16532        $as_test_x conftest$ac_exeext; then
16533   eval "$as_ac_var=yes"
16534 else
16535   echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538         eval "$as_ac_var=no"
16539 fi
16540
16541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16542       conftest$ac_exeext conftest.$ac_ext
16543 fi
16544 ac_res=`eval echo '${'$as_ac_var'}'`
16545                { echo "$as_me:$LINENO: result: $ac_res" >&5
16546 echo "${ECHO_T}$ac_res" >&6; }
16547 if test `eval echo '${'$as_ac_var'}'` = yes; then
16548   cat >>confdefs.h <<_ACEOF
16549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16550 _ACEOF
16551  break
16552 fi
16553 done
16554
16555
16556
16557 for ac_func in innetgr _innetgr
16558 do
16559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16563   echo $ECHO_N "(cached) $ECHO_C" >&6
16564 else
16565   cat >conftest.$ac_ext <<_ACEOF
16566 /* confdefs.h.  */
16567 _ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h.  */
16571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16573 #define $ac_func innocuous_$ac_func
16574
16575 /* System header to define __stub macros and hopefully few prototypes,
16576     which can conflict with char $ac_func (); below.
16577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16578     <limits.h> exists even on freestanding compilers.  */
16579
16580 #ifdef __STDC__
16581 # include <limits.h>
16582 #else
16583 # include <assert.h>
16584 #endif
16585
16586 #undef $ac_func
16587
16588 /* Override any GCC internal prototype to avoid an error.
16589    Use char because int might match the return type of a GCC
16590    builtin and then its argument prototype would still apply.  */
16591 #ifdef __cplusplus
16592 extern "C"
16593 #endif
16594 char $ac_func ();
16595 /* The GNU C library defines this for functions which it implements
16596     to always fail with ENOSYS.  Some functions are actually named
16597     something starting with __ and the normal name is an alias.  */
16598 #if defined __stub_$ac_func || defined __stub___$ac_func
16599 choke me
16600 #endif
16601
16602 int
16603 main ()
16604 {
16605 return $ac_func ();
16606   ;
16607   return 0;
16608 }
16609 _ACEOF
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (ac_try="$ac_link"
16612 case "(($ac_try" in
16613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614   *) ac_try_echo=$ac_try;;
16615 esac
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617   (eval "$ac_link") 2>conftest.er1
16618   ac_status=$?
16619   grep -v '^ *+' conftest.er1 >conftest.err
16620   rm -f conftest.er1
16621   cat conftest.err >&5
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); } && {
16624          test -z "$ac_c_werror_flag" ||
16625          test ! -s conftest.err
16626        } && test -s conftest$ac_exeext &&
16627        $as_test_x conftest$ac_exeext; then
16628   eval "$as_ac_var=yes"
16629 else
16630   echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633         eval "$as_ac_var=no"
16634 fi
16635
16636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16637       conftest$ac_exeext conftest.$ac_ext
16638 fi
16639 ac_res=`eval echo '${'$as_ac_var'}'`
16640                { echo "$as_me:$LINENO: result: $ac_res" >&5
16641 echo "${ECHO_T}$ac_res" >&6; }
16642 if test `eval echo '${'$as_ac_var'}'` = yes; then
16643   cat >>confdefs.h <<_ACEOF
16644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16645 _ACEOF
16646
16647 for ac_func in getdomainname
16648 do
16649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16653   echo $ECHO_N "(cached) $ECHO_C" >&6
16654 else
16655   cat >conftest.$ac_ext <<_ACEOF
16656 /* confdefs.h.  */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h.  */
16661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16663 #define $ac_func innocuous_$ac_func
16664
16665 /* System header to define __stub macros and hopefully few prototypes,
16666     which can conflict with char $ac_func (); below.
16667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16668     <limits.h> exists even on freestanding compilers.  */
16669
16670 #ifdef __STDC__
16671 # include <limits.h>
16672 #else
16673 # include <assert.h>
16674 #endif
16675
16676 #undef $ac_func
16677
16678 /* Override any GCC internal prototype to avoid an error.
16679    Use char because int might match the return type of a GCC
16680    builtin and then its argument prototype would still apply.  */
16681 #ifdef __cplusplus
16682 extern "C"
16683 #endif
16684 char $ac_func ();
16685 /* The GNU C library defines this for functions which it implements
16686     to always fail with ENOSYS.  Some functions are actually named
16687     something starting with __ and the normal name is an alias.  */
16688 #if defined __stub_$ac_func || defined __stub___$ac_func
16689 choke me
16690 #endif
16691
16692 int
16693 main ()
16694 {
16695 return $ac_func ();
16696   ;
16697   return 0;
16698 }
16699 _ACEOF
16700 rm -f conftest.$ac_objext conftest$ac_exeext
16701 if { (ac_try="$ac_link"
16702 case "(($ac_try" in
16703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704   *) ac_try_echo=$ac_try;;
16705 esac
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707   (eval "$ac_link") 2>conftest.er1
16708   ac_status=$?
16709   grep -v '^ *+' conftest.er1 >conftest.err
16710   rm -f conftest.er1
16711   cat conftest.err >&5
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); } && {
16714          test -z "$ac_c_werror_flag" ||
16715          test ! -s conftest.err
16716        } && test -s conftest$ac_exeext &&
16717        $as_test_x conftest$ac_exeext; then
16718   eval "$as_ac_var=yes"
16719 else
16720   echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16722
16723         eval "$as_ac_var=no"
16724 fi
16725
16726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16727       conftest$ac_exeext conftest.$ac_ext
16728 fi
16729 ac_res=`eval echo '${'$as_ac_var'}'`
16730                { echo "$as_me:$LINENO: result: $ac_res" >&5
16731 echo "${ECHO_T}$ac_res" >&6; }
16732 if test `eval echo '${'$as_ac_var'}'` = yes; then
16733   cat >>confdefs.h <<_ACEOF
16734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16735 _ACEOF
16736
16737 fi
16738 done
16739  break
16740 fi
16741 done
16742
16743
16744 for ac_func in lsearch
16745 do
16746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16750   echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752   cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h.  */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h.  */
16758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16760 #define $ac_func innocuous_$ac_func
16761
16762 /* System header to define __stub macros and hopefully few prototypes,
16763     which can conflict with char $ac_func (); below.
16764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765     <limits.h> exists even on freestanding compilers.  */
16766
16767 #ifdef __STDC__
16768 # include <limits.h>
16769 #else
16770 # include <assert.h>
16771 #endif
16772
16773 #undef $ac_func
16774
16775 /* Override any GCC internal prototype to avoid an error.
16776    Use char because int might match the return type of a GCC
16777    builtin and then its argument prototype would still apply.  */
16778 #ifdef __cplusplus
16779 extern "C"
16780 #endif
16781 char $ac_func ();
16782 /* The GNU C library defines this for functions which it implements
16783     to always fail with ENOSYS.  Some functions are actually named
16784     something starting with __ and the normal name is an alias.  */
16785 #if defined __stub_$ac_func || defined __stub___$ac_func
16786 choke me
16787 #endif
16788
16789 int
16790 main ()
16791 {
16792 return $ac_func ();
16793   ;
16794   return 0;
16795 }
16796 _ACEOF
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (ac_try="$ac_link"
16799 case "(($ac_try" in
16800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801   *) ac_try_echo=$ac_try;;
16802 esac
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804   (eval "$ac_link") 2>conftest.er1
16805   ac_status=$?
16806   grep -v '^ *+' conftest.er1 >conftest.err
16807   rm -f conftest.er1
16808   cat conftest.err >&5
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); } && {
16811          test -z "$ac_c_werror_flag" ||
16812          test ! -s conftest.err
16813        } && test -s conftest$ac_exeext &&
16814        $as_test_x conftest$ac_exeext; then
16815   eval "$as_ac_var=yes"
16816 else
16817   echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820         eval "$as_ac_var=no"
16821 fi
16822
16823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16824       conftest$ac_exeext conftest.$ac_ext
16825 fi
16826 ac_res=`eval echo '${'$as_ac_var'}'`
16827                { echo "$as_me:$LINENO: result: $ac_res" >&5
16828 echo "${ECHO_T}$ac_res" >&6; }
16829 if test `eval echo '${'$as_ac_var'}'` = yes; then
16830   cat >>confdefs.h <<_ACEOF
16831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16832 _ACEOF
16833
16834 else
16835   { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
16836 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
16837 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
16838   echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840   ac_check_lib_save_LIBS=$LIBS
16841 LIBS="-lcompat  $LIBS"
16842 cat >conftest.$ac_ext <<_ACEOF
16843 /* confdefs.h.  */
16844 _ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h.  */
16848
16849 /* Override any GCC internal prototype to avoid an error.
16850    Use char because int might match the return type of a GCC
16851    builtin and then its argument prototype would still apply.  */
16852 #ifdef __cplusplus
16853 extern "C"
16854 #endif
16855 char lsearch ();
16856 int
16857 main ()
16858 {
16859 return lsearch ();
16860   ;
16861   return 0;
16862 }
16863 _ACEOF
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (ac_try="$ac_link"
16866 case "(($ac_try" in
16867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868   *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871   (eval "$ac_link") 2>conftest.er1
16872   ac_status=$?
16873   grep -v '^ *+' conftest.er1 >conftest.err
16874   rm -f conftest.er1
16875   cat conftest.err >&5
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); } && {
16878          test -z "$ac_c_werror_flag" ||
16879          test ! -s conftest.err
16880        } && test -s conftest$ac_exeext &&
16881        $as_test_x conftest$ac_exeext; then
16882   ac_cv_lib_compat_lsearch=yes
16883 else
16884   echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16886
16887         ac_cv_lib_compat_lsearch=no
16888 fi
16889
16890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16891       conftest$ac_exeext conftest.$ac_ext
16892 LIBS=$ac_check_lib_save_LIBS
16893 fi
16894 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
16895 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
16896 if test $ac_cv_lib_compat_lsearch = yes; then
16897   { echo "$as_me:$LINENO: checking for search.h" >&5
16898 echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
16899 if test "${ac_cv_header_search_h+set}" = set; then
16900   echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902   cat >conftest.$ac_ext <<_ACEOF
16903 /* confdefs.h.  */
16904 _ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h.  */
16908 #include <search.h>
16909 _ACEOF
16910 if { (ac_try="$ac_cpp conftest.$ac_ext"
16911 case "(($ac_try" in
16912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913   *) ac_try_echo=$ac_try;;
16914 esac
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16917   ac_status=$?
16918   grep -v '^ *+' conftest.er1 >conftest.err
16919   rm -f conftest.er1
16920   cat conftest.err >&5
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); } >/dev/null && {
16923          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16924          test ! -s conftest.err
16925        }; then
16926   ac_cv_header_search_h=yes
16927 else
16928   echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16930
16931   ac_cv_header_search_h=no
16932 fi
16933
16934 rm -f conftest.err conftest.$ac_ext
16935 fi
16936 { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
16937 echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
16938 if test $ac_cv_header_search_h = yes; then
16939   cat >>confdefs.h <<\_ACEOF
16940 #define HAVE_LSEARCH 1
16941 _ACEOF
16942  LIBS="${LIBS} -lcompat"
16943 else
16944   case " $LIBOBJS " in
16945   *" lsearch.$ac_objext "* ) ;;
16946   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16947  ;;
16948 esac
16949
16950 fi
16951
16952
16953 else
16954   case " $LIBOBJS " in
16955   *" lsearch.$ac_objext "* ) ;;
16956   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16957  ;;
16958 esac
16959
16960 fi
16961
16962 fi
16963 done
16964
16965
16966 for ac_func in utimes
16967 do
16968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16972   echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974   cat >conftest.$ac_ext <<_ACEOF
16975 /* confdefs.h.  */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h.  */
16980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16982 #define $ac_func innocuous_$ac_func
16983
16984 /* System header to define __stub macros and hopefully few prototypes,
16985     which can conflict with char $ac_func (); below.
16986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16987     <limits.h> exists even on freestanding compilers.  */
16988
16989 #ifdef __STDC__
16990 # include <limits.h>
16991 #else
16992 # include <assert.h>
16993 #endif
16994
16995 #undef $ac_func
16996
16997 /* Override any GCC internal prototype to avoid an error.
16998    Use char because int might match the return type of a GCC
16999    builtin and then its argument prototype would still apply.  */
17000 #ifdef __cplusplus
17001 extern "C"
17002 #endif
17003 char $ac_func ();
17004 /* The GNU C library defines this for functions which it implements
17005     to always fail with ENOSYS.  Some functions are actually named
17006     something starting with __ and the normal name is an alias.  */
17007 #if defined __stub_$ac_func || defined __stub___$ac_func
17008 choke me
17009 #endif
17010
17011 int
17012 main ()
17013 {
17014 return $ac_func ();
17015   ;
17016   return 0;
17017 }
17018 _ACEOF
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (ac_try="$ac_link"
17021 case "(($ac_try" in
17022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023   *) ac_try_echo=$ac_try;;
17024 esac
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026   (eval "$ac_link") 2>conftest.er1
17027   ac_status=$?
17028   grep -v '^ *+' conftest.er1 >conftest.err
17029   rm -f conftest.er1
17030   cat conftest.err >&5
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); } && {
17033          test -z "$ac_c_werror_flag" ||
17034          test ! -s conftest.err
17035        } && test -s conftest$ac_exeext &&
17036        $as_test_x conftest$ac_exeext; then
17037   eval "$as_ac_var=yes"
17038 else
17039   echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17041
17042         eval "$as_ac_var=no"
17043 fi
17044
17045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17046       conftest$ac_exeext conftest.$ac_ext
17047 fi
17048 ac_res=`eval echo '${'$as_ac_var'}'`
17049                { echo "$as_me:$LINENO: result: $ac_res" >&5
17050 echo "${ECHO_T}$ac_res" >&6; }
17051 if test `eval echo '${'$as_ac_var'}'` = yes; then
17052   cat >>confdefs.h <<_ACEOF
17053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17054 _ACEOF
17055
17056
17057 for ac_func in futimes futimesat
17058 do
17059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17063   echo $ECHO_N "(cached) $ECHO_C" >&6
17064 else
17065   cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h.  */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h.  */
17071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17073 #define $ac_func innocuous_$ac_func
17074
17075 /* System header to define __stub macros and hopefully few prototypes,
17076     which can conflict with char $ac_func (); below.
17077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17078     <limits.h> exists even on freestanding compilers.  */
17079
17080 #ifdef __STDC__
17081 # include <limits.h>
17082 #else
17083 # include <assert.h>
17084 #endif
17085
17086 #undef $ac_func
17087
17088 /* Override any GCC internal prototype to avoid an error.
17089    Use char because int might match the return type of a GCC
17090    builtin and then its argument prototype would still apply.  */
17091 #ifdef __cplusplus
17092 extern "C"
17093 #endif
17094 char $ac_func ();
17095 /* The GNU C library defines this for functions which it implements
17096     to always fail with ENOSYS.  Some functions are actually named
17097     something starting with __ and the normal name is an alias.  */
17098 #if defined __stub_$ac_func || defined __stub___$ac_func
17099 choke me
17100 #endif
17101
17102 int
17103 main ()
17104 {
17105 return $ac_func ();
17106   ;
17107   return 0;
17108 }
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114   *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117   (eval "$ac_link") 2>conftest.er1
17118   ac_status=$?
17119   grep -v '^ *+' conftest.er1 >conftest.err
17120   rm -f conftest.er1
17121   cat conftest.err >&5
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); } && {
17124          test -z "$ac_c_werror_flag" ||
17125          test ! -s conftest.err
17126        } && test -s conftest$ac_exeext &&
17127        $as_test_x conftest$ac_exeext; then
17128   eval "$as_ac_var=yes"
17129 else
17130   echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133         eval "$as_ac_var=no"
17134 fi
17135
17136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137       conftest$ac_exeext conftest.$ac_ext
17138 fi
17139 ac_res=`eval echo '${'$as_ac_var'}'`
17140                { echo "$as_me:$LINENO: result: $ac_res" >&5
17141 echo "${ECHO_T}$ac_res" >&6; }
17142 if test `eval echo '${'$as_ac_var'}'` = yes; then
17143   cat >>confdefs.h <<_ACEOF
17144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17145 _ACEOF
17146  break
17147 fi
17148 done
17149
17150 else
17151
17152 for ac_func in futime
17153 do
17154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160   cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h.  */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h.  */
17166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17168 #define $ac_func innocuous_$ac_func
17169
17170 /* System header to define __stub macros and hopefully few prototypes,
17171     which can conflict with char $ac_func (); below.
17172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17173     <limits.h> exists even on freestanding compilers.  */
17174
17175 #ifdef __STDC__
17176 # include <limits.h>
17177 #else
17178 # include <assert.h>
17179 #endif
17180
17181 #undef $ac_func
17182
17183 /* Override any GCC internal prototype to avoid an error.
17184    Use char because int might match the return type of a GCC
17185    builtin and then its argument prototype would still apply.  */
17186 #ifdef __cplusplus
17187 extern "C"
17188 #endif
17189 char $ac_func ();
17190 /* The GNU C library defines this for functions which it implements
17191     to always fail with ENOSYS.  Some functions are actually named
17192     something starting with __ and the normal name is an alias.  */
17193 #if defined __stub_$ac_func || defined __stub___$ac_func
17194 choke me
17195 #endif
17196
17197 int
17198 main ()
17199 {
17200 return $ac_func ();
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (ac_try="$ac_link"
17207 case "(($ac_try" in
17208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209   *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212   (eval "$ac_link") 2>conftest.er1
17213   ac_status=$?
17214   grep -v '^ *+' conftest.er1 >conftest.err
17215   rm -f conftest.er1
17216   cat conftest.err >&5
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); } && {
17219          test -z "$ac_c_werror_flag" ||
17220          test ! -s conftest.err
17221        } && test -s conftest$ac_exeext &&
17222        $as_test_x conftest$ac_exeext; then
17223   eval "$as_ac_var=yes"
17224 else
17225   echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17227
17228         eval "$as_ac_var=no"
17229 fi
17230
17231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17232       conftest$ac_exeext conftest.$ac_ext
17233 fi
17234 ac_res=`eval echo '${'$as_ac_var'}'`
17235                { echo "$as_me:$LINENO: result: $ac_res" >&5
17236 echo "${ECHO_T}$ac_res" >&6; }
17237 if test `eval echo '${'$as_ac_var'}'` = yes; then
17238   cat >>confdefs.h <<_ACEOF
17239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17240 _ACEOF
17241
17242 fi
17243 done
17244  case " $LIBOBJS " in
17245   *" utimes.$ac_objext "* ) ;;
17246   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17247  ;;
17248 esac
17249
17250 fi
17251 done
17252
17253 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17254 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17255 if test "${sudo_cv_func_fnmatch+set}" = set; then
17256   echo $ECHO_N "(cached) $ECHO_C" >&6
17257 else
17258   rm -f conftestdata; > conftestdata
17259 if test "$cross_compiling" = yes; then
17260   sudo_cv_func_fnmatch=no
17261 else
17262   cat >conftest.$ac_ext <<_ACEOF
17263 /* confdefs.h.  */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h.  */
17268 #include <fnmatch.h>
17269 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17270 _ACEOF
17271 rm -f conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_link") 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17282   { (case "(($ac_try" in
17283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284   *) ac_try_echo=$ac_try;;
17285 esac
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287   (eval "$ac_try") 2>&5
17288   ac_status=$?
17289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); }; }; then
17291   sudo_cv_func_fnmatch=yes
17292 else
17293   echo "$as_me: program exited with status $ac_status" >&5
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 ( exit $ac_status )
17298 sudo_cv_func_fnmatch=no
17299 fi
17300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17301 fi
17302
17303
17304 rm -f core core.* *.core
17305 fi
17306
17307 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17308 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17309 if test $sudo_cv_func_fnmatch = yes; then
17310   cat >>confdefs.h <<\_ACEOF
17311 #define HAVE_FNMATCH 1
17312 _ACEOF
17313
17314 else
17315   case " $LIBOBJS " in
17316   *" fnmatch.$ac_objext "* ) ;;
17317   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17318  ;;
17319 esac
17320
17321 fi
17322
17323 { echo "$as_me:$LINENO: checking for isblank" >&5
17324 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17325 if test "${sudo_cv_func_isblank+set}" = set; then
17326   echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328   cat >conftest.$ac_ext <<_ACEOF
17329 /* confdefs.h.  */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h.  */
17334 #include <ctype.h>
17335 int
17336 main ()
17337 {
17338 return (isblank('a'));
17339   ;
17340   return 0;
17341 }
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347   *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350   (eval "$ac_link") 2>conftest.er1
17351   ac_status=$?
17352   grep -v '^ *+' conftest.er1 >conftest.err
17353   rm -f conftest.er1
17354   cat conftest.err >&5
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } && {
17357          test -z "$ac_c_werror_flag" ||
17358          test ! -s conftest.err
17359        } && test -s conftest$ac_exeext &&
17360        $as_test_x conftest$ac_exeext; then
17361   sudo_cv_func_isblank=yes
17362 else
17363   echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17365
17366         sudo_cv_func_isblank=no
17367 fi
17368
17369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17370       conftest$ac_exeext conftest.$ac_ext
17371 fi
17372 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17373 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17374
17375   if test "$sudo_cv_func_isblank" = "yes"; then
17376
17377 cat >>confdefs.h <<\_ACEOF
17378 #define HAVE_ISBLANK 1
17379 _ACEOF
17380
17381   fi
17382
17383
17384
17385
17386
17387
17388
17389 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17390 do
17391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17395   echo $ECHO_N "(cached) $ECHO_C" >&6
17396 else
17397   cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17405 #define $ac_func innocuous_$ac_func
17406
17407 /* System header to define __stub macros and hopefully few prototypes,
17408     which can conflict with char $ac_func (); below.
17409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17410     <limits.h> exists even on freestanding compilers.  */
17411
17412 #ifdef __STDC__
17413 # include <limits.h>
17414 #else
17415 # include <assert.h>
17416 #endif
17417
17418 #undef $ac_func
17419
17420 /* Override any GCC internal prototype to avoid an error.
17421    Use char because int might match the return type of a GCC
17422    builtin and then its argument prototype would still apply.  */
17423 #ifdef __cplusplus
17424 extern "C"
17425 #endif
17426 char $ac_func ();
17427 /* The GNU C library defines this for functions which it implements
17428     to always fail with ENOSYS.  Some functions are actually named
17429     something starting with __ and the normal name is an alias.  */
17430 #if defined __stub_$ac_func || defined __stub___$ac_func
17431 choke me
17432 #endif
17433
17434 int
17435 main ()
17436 {
17437 return $ac_func ();
17438   ;
17439   return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446   *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449   (eval "$ac_link") 2>conftest.er1
17450   ac_status=$?
17451   grep -v '^ *+' conftest.er1 >conftest.err
17452   rm -f conftest.er1
17453   cat conftest.err >&5
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } && {
17456          test -z "$ac_c_werror_flag" ||
17457          test ! -s conftest.err
17458        } && test -s conftest$ac_exeext &&
17459        $as_test_x conftest$ac_exeext; then
17460   eval "$as_ac_var=yes"
17461 else
17462   echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465         eval "$as_ac_var=no"
17466 fi
17467
17468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17469       conftest$ac_exeext conftest.$ac_ext
17470 fi
17471 ac_res=`eval echo '${'$as_ac_var'}'`
17472                { echo "$as_me:$LINENO: result: $ac_res" >&5
17473 echo "${ECHO_T}$ac_res" >&6; }
17474 if test `eval echo '${'$as_ac_var'}'` = yes; then
17475   cat >>confdefs.h <<_ACEOF
17476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17477 _ACEOF
17478
17479 else
17480   case " $LIBOBJS " in
17481   *" $ac_func.$ac_objext "* ) ;;
17482   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17483  ;;
17484 esac
17485
17486 fi
17487 done
17488
17489
17490
17491 for ac_func in closefrom
17492 do
17493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17497   echo $ECHO_N "(cached) $ECHO_C" >&6
17498 else
17499   cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h.  */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h.  */
17505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17507 #define $ac_func innocuous_$ac_func
17508
17509 /* System header to define __stub macros and hopefully few prototypes,
17510     which can conflict with char $ac_func (); below.
17511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17512     <limits.h> exists even on freestanding compilers.  */
17513
17514 #ifdef __STDC__
17515 # include <limits.h>
17516 #else
17517 # include <assert.h>
17518 #endif
17519
17520 #undef $ac_func
17521
17522 /* Override any GCC internal prototype to avoid an error.
17523    Use char because int might match the return type of a GCC
17524    builtin and then its argument prototype would still apply.  */
17525 #ifdef __cplusplus
17526 extern "C"
17527 #endif
17528 char $ac_func ();
17529 /* The GNU C library defines this for functions which it implements
17530     to always fail with ENOSYS.  Some functions are actually named
17531     something starting with __ and the normal name is an alias.  */
17532 #if defined __stub_$ac_func || defined __stub___$ac_func
17533 choke me
17534 #endif
17535
17536 int
17537 main ()
17538 {
17539 return $ac_func ();
17540   ;
17541   return 0;
17542 }
17543 _ACEOF
17544 rm -f conftest.$ac_objext conftest$ac_exeext
17545 if { (ac_try="$ac_link"
17546 case "(($ac_try" in
17547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548   *) ac_try_echo=$ac_try;;
17549 esac
17550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551   (eval "$ac_link") 2>conftest.er1
17552   ac_status=$?
17553   grep -v '^ *+' conftest.er1 >conftest.err
17554   rm -f conftest.er1
17555   cat conftest.err >&5
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); } && {
17558          test -z "$ac_c_werror_flag" ||
17559          test ! -s conftest.err
17560        } && test -s conftest$ac_exeext &&
17561        $as_test_x conftest$ac_exeext; then
17562   eval "$as_ac_var=yes"
17563 else
17564   echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17566
17567         eval "$as_ac_var=no"
17568 fi
17569
17570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17571       conftest$ac_exeext conftest.$ac_ext
17572 fi
17573 ac_res=`eval echo '${'$as_ac_var'}'`
17574                { echo "$as_me:$LINENO: result: $ac_res" >&5
17575 echo "${ECHO_T}$ac_res" >&6; }
17576 if test `eval echo '${'$as_ac_var'}'` = yes; then
17577   cat >>confdefs.h <<_ACEOF
17578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17579 _ACEOF
17580
17581 else
17582   case " $LIBOBJS " in
17583   *" closefrom.$ac_objext "* ) ;;
17584   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17585  ;;
17586 esac
17587
17588     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17589 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17590 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593   cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h.  */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h.  */
17599  #include <limits.h>
17600           #include <fcntl.h>
17601
17602 int
17603 main ()
17604 {
17605 #ifndef F_CLOSEM
17606   (void) F_CLOSEM;
17607 #endif
17608
17609   ;
17610   return 0;
17611 }
17612 _ACEOF
17613 rm -f conftest.$ac_objext
17614 if { (ac_try="$ac_compile"
17615 case "(($ac_try" in
17616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617   *) ac_try_echo=$ac_try;;
17618 esac
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620   (eval "$ac_compile") 2>conftest.er1
17621   ac_status=$?
17622   grep -v '^ *+' conftest.er1 >conftest.err
17623   rm -f conftest.er1
17624   cat conftest.err >&5
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); } && {
17627          test -z "$ac_c_werror_flag" ||
17628          test ! -s conftest.err
17629        } && test -s conftest.$ac_objext; then
17630   ac_cv_have_decl_F_CLOSEM=yes
17631 else
17632   echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17634
17635         ac_cv_have_decl_F_CLOSEM=no
17636 fi
17637
17638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17639 fi
17640 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17641 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17642 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17643   cat >>confdefs.h <<\_ACEOF
17644 #define HAVE_FCNTL_CLOSEM 1
17645 _ACEOF
17646
17647 fi
17648
17649
17650 fi
17651 done
17652
17653
17654 for ac_func in mkstemp
17655 do
17656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17660   echo $ECHO_N "(cached) $ECHO_C" >&6
17661 else
17662   cat >conftest.$ac_ext <<_ACEOF
17663 /* confdefs.h.  */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h.  */
17668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17670 #define $ac_func innocuous_$ac_func
17671
17672 /* System header to define __stub macros and hopefully few prototypes,
17673     which can conflict with char $ac_func (); below.
17674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17675     <limits.h> exists even on freestanding compilers.  */
17676
17677 #ifdef __STDC__
17678 # include <limits.h>
17679 #else
17680 # include <assert.h>
17681 #endif
17682
17683 #undef $ac_func
17684
17685 /* Override any GCC internal prototype to avoid an error.
17686    Use char because int might match the return type of a GCC
17687    builtin and then its argument prototype would still apply.  */
17688 #ifdef __cplusplus
17689 extern "C"
17690 #endif
17691 char $ac_func ();
17692 /* The GNU C library defines this for functions which it implements
17693     to always fail with ENOSYS.  Some functions are actually named
17694     something starting with __ and the normal name is an alias.  */
17695 #if defined __stub_$ac_func || defined __stub___$ac_func
17696 choke me
17697 #endif
17698
17699 int
17700 main ()
17701 {
17702 return $ac_func ();
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext conftest$ac_exeext
17708 if { (ac_try="$ac_link"
17709 case "(($ac_try" in
17710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711   *) ac_try_echo=$ac_try;;
17712 esac
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714   (eval "$ac_link") 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } && {
17721          test -z "$ac_c_werror_flag" ||
17722          test ! -s conftest.err
17723        } && test -s conftest$ac_exeext &&
17724        $as_test_x conftest$ac_exeext; then
17725   eval "$as_ac_var=yes"
17726 else
17727   echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730         eval "$as_ac_var=no"
17731 fi
17732
17733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17734       conftest$ac_exeext conftest.$ac_ext
17735 fi
17736 ac_res=`eval echo '${'$as_ac_var'}'`
17737                { echo "$as_me:$LINENO: result: $ac_res" >&5
17738 echo "${ECHO_T}$ac_res" >&6; }
17739 if test `eval echo '${'$as_ac_var'}'` = yes; then
17740   cat >>confdefs.h <<_ACEOF
17741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17742 _ACEOF
17743
17744 else
17745   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
17746
17747
17748 for ac_func in random lrand48
17749 do
17750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17754   echo $ECHO_N "(cached) $ECHO_C" >&6
17755 else
17756   cat >conftest.$ac_ext <<_ACEOF
17757 /* confdefs.h.  */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h.  */
17762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17764 #define $ac_func innocuous_$ac_func
17765
17766 /* System header to define __stub macros and hopefully few prototypes,
17767     which can conflict with char $ac_func (); below.
17768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17769     <limits.h> exists even on freestanding compilers.  */
17770
17771 #ifdef __STDC__
17772 # include <limits.h>
17773 #else
17774 # include <assert.h>
17775 #endif
17776
17777 #undef $ac_func
17778
17779 /* Override any GCC internal prototype to avoid an error.
17780    Use char because int might match the return type of a GCC
17781    builtin and then its argument prototype would still apply.  */
17782 #ifdef __cplusplus
17783 extern "C"
17784 #endif
17785 char $ac_func ();
17786 /* The GNU C library defines this for functions which it implements
17787     to always fail with ENOSYS.  Some functions are actually named
17788     something starting with __ and the normal name is an alias.  */
17789 #if defined __stub_$ac_func || defined __stub___$ac_func
17790 choke me
17791 #endif
17792
17793 int
17794 main ()
17795 {
17796 return $ac_func ();
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (ac_try="$ac_link"
17803 case "(($ac_try" in
17804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805   *) ac_try_echo=$ac_try;;
17806 esac
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808   (eval "$ac_link") 2>conftest.er1
17809   ac_status=$?
17810   grep -v '^ *+' conftest.er1 >conftest.err
17811   rm -f conftest.er1
17812   cat conftest.err >&5
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); } && {
17815          test -z "$ac_c_werror_flag" ||
17816          test ! -s conftest.err
17817        } && test -s conftest$ac_exeext &&
17818        $as_test_x conftest$ac_exeext; then
17819   eval "$as_ac_var=yes"
17820 else
17821   echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17823
17824         eval "$as_ac_var=no"
17825 fi
17826
17827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17828       conftest$ac_exeext conftest.$ac_ext
17829 fi
17830 ac_res=`eval echo '${'$as_ac_var'}'`
17831                { echo "$as_me:$LINENO: result: $ac_res" >&5
17832 echo "${ECHO_T}$ac_res" >&6; }
17833 if test `eval echo '${'$as_ac_var'}'` = yes; then
17834   cat >>confdefs.h <<_ACEOF
17835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17836 _ACEOF
17837  break
17838 fi
17839 done
17840
17841
17842 fi
17843 done
17844
17845
17846
17847
17848
17849 for ac_func in snprintf vsnprintf asprintf vasprintf
17850 do
17851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17855   echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857   cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h.  */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h.  */
17863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17865 #define $ac_func innocuous_$ac_func
17866
17867 /* System header to define __stub macros and hopefully few prototypes,
17868     which can conflict with char $ac_func (); below.
17869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17870     <limits.h> exists even on freestanding compilers.  */
17871
17872 #ifdef __STDC__
17873 # include <limits.h>
17874 #else
17875 # include <assert.h>
17876 #endif
17877
17878 #undef $ac_func
17879
17880 /* Override any GCC internal prototype to avoid an error.
17881    Use char because int might match the return type of a GCC
17882    builtin and then its argument prototype would still apply.  */
17883 #ifdef __cplusplus
17884 extern "C"
17885 #endif
17886 char $ac_func ();
17887 /* The GNU C library defines this for functions which it implements
17888     to always fail with ENOSYS.  Some functions are actually named
17889     something starting with __ and the normal name is an alias.  */
17890 #if defined __stub_$ac_func || defined __stub___$ac_func
17891 choke me
17892 #endif
17893
17894 int
17895 main ()
17896 {
17897 return $ac_func ();
17898   ;
17899   return 0;
17900 }
17901 _ACEOF
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (ac_try="$ac_link"
17904 case "(($ac_try" in
17905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906   *) ac_try_echo=$ac_try;;
17907 esac
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909   (eval "$ac_link") 2>conftest.er1
17910   ac_status=$?
17911   grep -v '^ *+' conftest.er1 >conftest.err
17912   rm -f conftest.er1
17913   cat conftest.err >&5
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); } && {
17916          test -z "$ac_c_werror_flag" ||
17917          test ! -s conftest.err
17918        } && test -s conftest$ac_exeext &&
17919        $as_test_x conftest$ac_exeext; then
17920   eval "$as_ac_var=yes"
17921 else
17922   echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17924
17925         eval "$as_ac_var=no"
17926 fi
17927
17928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17929       conftest$ac_exeext conftest.$ac_ext
17930 fi
17931 ac_res=`eval echo '${'$as_ac_var'}'`
17932                { echo "$as_me:$LINENO: result: $ac_res" >&5
17933 echo "${ECHO_T}$ac_res" >&6; }
17934 if test `eval echo '${'$as_ac_var'}'` = yes; then
17935   cat >>confdefs.h <<_ACEOF
17936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17937 _ACEOF
17938
17939 else
17940   NEED_SNPRINTF=1
17941 fi
17942 done
17943
17944 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17945     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17946 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17947 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17948   echo $ECHO_N "(cached) $ECHO_C" >&6
17949 else
17950   cat >conftest.$ac_ext <<_ACEOF
17951 /* confdefs.h.  */
17952 _ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h.  */
17956 $ac_includes_default
17957 int
17958 main ()
17959 {
17960 static struct stat ac_aggr;
17961 if (ac_aggr.st_mtim)
17962 return 0;
17963   ;
17964   return 0;
17965 }
17966 _ACEOF
17967 rm -f conftest.$ac_objext
17968 if { (ac_try="$ac_compile"
17969 case "(($ac_try" in
17970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971   *) ac_try_echo=$ac_try;;
17972 esac
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974   (eval "$ac_compile") 2>conftest.er1
17975   ac_status=$?
17976   grep -v '^ *+' conftest.er1 >conftest.err
17977   rm -f conftest.er1
17978   cat conftest.err >&5
17979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980   (exit $ac_status); } && {
17981          test -z "$ac_c_werror_flag" ||
17982          test ! -s conftest.err
17983        } && test -s conftest.$ac_objext; then
17984   ac_cv_member_struct_stat_st_mtim=yes
17985 else
17986   echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17988
17989         cat >conftest.$ac_ext <<_ACEOF
17990 /* confdefs.h.  */
17991 _ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h.  */
17995 $ac_includes_default
17996 int
17997 main ()
17998 {
17999 static struct stat ac_aggr;
18000 if (sizeof ac_aggr.st_mtim)
18001 return 0;
18002   ;
18003   return 0;
18004 }
18005 _ACEOF
18006 rm -f conftest.$ac_objext
18007 if { (ac_try="$ac_compile"
18008 case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_compile") 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } && {
18020          test -z "$ac_c_werror_flag" ||
18021          test ! -s conftest.err
18022        } && test -s conftest.$ac_objext; then
18023   ac_cv_member_struct_stat_st_mtim=yes
18024 else
18025   echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028         ac_cv_member_struct_stat_st_mtim=no
18029 fi
18030
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18032 fi
18033
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 fi
18036 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
18037 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
18038 if test $ac_cv_member_struct_stat_st_mtim = yes; then
18039   cat >>confdefs.h <<\_ACEOF
18040 #define HAVE_ST_MTIM 1
18041 _ACEOF
18042
18043         { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
18044 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
18045 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048   cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h.  */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h.  */
18054 $ac_includes_default
18055 int
18056 main ()
18057 {
18058 static struct stat ac_aggr;
18059 if (ac_aggr.st_mtim.st__tim)
18060 return 0;
18061   ;
18062   return 0;
18063 }
18064 _ACEOF
18065 rm -f conftest.$ac_objext
18066 if { (ac_try="$ac_compile"
18067 case "(($ac_try" in
18068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069   *) ac_try_echo=$ac_try;;
18070 esac
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072   (eval "$ac_compile") 2>conftest.er1
18073   ac_status=$?
18074   grep -v '^ *+' conftest.er1 >conftest.err
18075   rm -f conftest.er1
18076   cat conftest.err >&5
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); } && {
18079          test -z "$ac_c_werror_flag" ||
18080          test ! -s conftest.err
18081        } && test -s conftest.$ac_objext; then
18082   ac_cv_member_struct_stat_st_mtim_st__tim=yes
18083 else
18084   echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18086
18087         cat >conftest.$ac_ext <<_ACEOF
18088 /* confdefs.h.  */
18089 _ACEOF
18090 cat confdefs.h >>conftest.$ac_ext
18091 cat >>conftest.$ac_ext <<_ACEOF
18092 /* end confdefs.h.  */
18093 $ac_includes_default
18094 int
18095 main ()
18096 {
18097 static struct stat ac_aggr;
18098 if (sizeof ac_aggr.st_mtim.st__tim)
18099 return 0;
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext
18105 if { (ac_try="$ac_compile"
18106 case "(($ac_try" in
18107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108   *) ac_try_echo=$ac_try;;
18109 esac
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111   (eval "$ac_compile") 2>conftest.er1
18112   ac_status=$?
18113   grep -v '^ *+' conftest.er1 >conftest.err
18114   rm -f conftest.er1
18115   cat conftest.err >&5
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); } && {
18118          test -z "$ac_c_werror_flag" ||
18119          test ! -s conftest.err
18120        } && test -s conftest.$ac_objext; then
18121   ac_cv_member_struct_stat_st_mtim_st__tim=yes
18122 else
18123   echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18125
18126         ac_cv_member_struct_stat_st_mtim_st__tim=no
18127 fi
18128
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 fi
18131
18132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18133 fi
18134 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18135 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18136 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18137   cat >>confdefs.h <<\_ACEOF
18138 #define HAVE_ST__TIM 1
18139 _ACEOF
18140
18141 fi
18142
18143 else
18144   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18145 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18146 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
18147   echo $ECHO_N "(cached) $ECHO_C" >&6
18148 else
18149   cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h.  */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h.  */
18155 $ac_includes_default
18156 int
18157 main ()
18158 {
18159 static struct stat ac_aggr;
18160 if (ac_aggr.st_mtimespec)
18161 return 0;
18162   ;
18163   return 0;
18164 }
18165 _ACEOF
18166 rm -f conftest.$ac_objext
18167 if { (ac_try="$ac_compile"
18168 case "(($ac_try" in
18169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170   *) ac_try_echo=$ac_try;;
18171 esac
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173   (eval "$ac_compile") 2>conftest.er1
18174   ac_status=$?
18175   grep -v '^ *+' conftest.er1 >conftest.err
18176   rm -f conftest.er1
18177   cat conftest.err >&5
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); } && {
18180          test -z "$ac_c_werror_flag" ||
18181          test ! -s conftest.err
18182        } && test -s conftest.$ac_objext; then
18183   ac_cv_member_struct_stat_st_mtimespec=yes
18184 else
18185   echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18187
18188         cat >conftest.$ac_ext <<_ACEOF
18189 /* confdefs.h.  */
18190 _ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h.  */
18194 $ac_includes_default
18195 int
18196 main ()
18197 {
18198 static struct stat ac_aggr;
18199 if (sizeof ac_aggr.st_mtimespec)
18200 return 0;
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext
18206 if { (ac_try="$ac_compile"
18207 case "(($ac_try" in
18208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209   *) ac_try_echo=$ac_try;;
18210 esac
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212   (eval "$ac_compile") 2>conftest.er1
18213   ac_status=$?
18214   grep -v '^ *+' conftest.er1 >conftest.err
18215   rm -f conftest.er1
18216   cat conftest.err >&5
18217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218   (exit $ac_status); } && {
18219          test -z "$ac_c_werror_flag" ||
18220          test ! -s conftest.err
18221        } && test -s conftest.$ac_objext; then
18222   ac_cv_member_struct_stat_st_mtimespec=yes
18223 else
18224   echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18226
18227         ac_cv_member_struct_stat_st_mtimespec=no
18228 fi
18229
18230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231 fi
18232
18233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18234 fi
18235 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18236 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18237 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18238   cat >>confdefs.h <<\_ACEOF
18239 #define HAVE_ST_MTIMESPEC 1
18240 _ACEOF
18241
18242 fi
18243
18244 fi
18245
18246     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18247 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18248     cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h.  */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h.  */
18254 #include <sys/types.h>
18255 #include <sys/time.h>
18256 int
18257 main ()
18258 {
18259 struct timespec ts1, ts2;
18260 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18261 #ifndef timespecsub
18262 #error missing timespecsub
18263 #endif
18264 timespecsub(&ts1, &ts2);
18265   ;
18266   return 0;
18267 }
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (ac_try="$ac_compile"
18271 case "(($ac_try" in
18272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273   *) ac_try_echo=$ac_try;;
18274 esac
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276   (eval "$ac_compile") 2>conftest.er1
18277   ac_status=$?
18278   grep -v '^ *+' conftest.er1 >conftest.err
18279   rm -f conftest.er1
18280   cat conftest.err >&5
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); } && {
18283          test -z "$ac_c_werror_flag" ||
18284          test ! -s conftest.err
18285        } && test -s conftest.$ac_objext; then
18286   cat >>confdefs.h <<\_ACEOF
18287 #define HAVE_TIMESPECSUB2 1
18288 _ACEOF
18289
18290     { echo "$as_me:$LINENO: result: yes" >&5
18291 echo "${ECHO_T}yes" >&6; }
18292 else
18293   echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18295
18296         { echo "$as_me:$LINENO: result: no" >&5
18297 echo "${ECHO_T}no" >&6; }
18298 fi
18299
18300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18301 fi
18302 cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h.  */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h.  */
18308 #include <sys/types.h>
18309 #include <$ac_header_dirent>
18310 int
18311 main ()
18312 {
18313 DIR *d; (void)dirfd(d);
18314   ;
18315   return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322   *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325   (eval "$ac_link") 2>conftest.er1
18326   ac_status=$?
18327   grep -v '^ *+' conftest.er1 >conftest.err
18328   rm -f conftest.er1
18329   cat conftest.err >&5
18330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331   (exit $ac_status); } && {
18332          test -z "$ac_c_werror_flag" ||
18333          test ! -s conftest.err
18334        } && test -s conftest$ac_exeext &&
18335        $as_test_x conftest$ac_exeext; then
18336   cat >>confdefs.h <<\_ACEOF
18337 #define HAVE_DIRFD 1
18338 _ACEOF
18339
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344         cat >conftest.$ac_ext <<_ACEOF
18345 /* confdefs.h.  */
18346 _ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h.  */
18350 #include <sys/types.h>
18351 #include <$ac_header_dirent>
18352 int
18353 main ()
18354 {
18355 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18356   ;
18357   return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_link") 2>conftest.er1
18368   ac_status=$?
18369   grep -v '^ *+' conftest.er1 >conftest.err
18370   rm -f conftest.er1
18371   cat conftest.err >&5
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); } && {
18374          test -z "$ac_c_werror_flag" ||
18375          test ! -s conftest.err
18376        } && test -s conftest$ac_exeext &&
18377        $as_test_x conftest$ac_exeext; then
18378   cat >>confdefs.h <<\_ACEOF
18379 #define HAVE_DD_FD 1
18380 _ACEOF
18381
18382 else
18383   echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386
18387 fi
18388
18389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18390       conftest$ac_exeext conftest.$ac_ext
18391 fi
18392
18393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18394       conftest$ac_exeext conftest.$ac_ext
18395 if test -n "$NEED_SNPRINTF"; then
18396     case " $LIBOBJS " in
18397   *" snprintf.$ac_objext "* ) ;;
18398   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18399  ;;
18400 esac
18401
18402 fi
18403 { echo "$as_me:$LINENO: checking for socket" >&5
18404 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18405 if test "${ac_cv_func_socket+set}" = set; then
18406   echo $ECHO_N "(cached) $ECHO_C" >&6
18407 else
18408   cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h.  */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h.  */
18414 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18416 #define socket innocuous_socket
18417
18418 /* System header to define __stub macros and hopefully few prototypes,
18419     which can conflict with char socket (); below.
18420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421     <limits.h> exists even on freestanding compilers.  */
18422
18423 #ifdef __STDC__
18424 # include <limits.h>
18425 #else
18426 # include <assert.h>
18427 #endif
18428
18429 #undef socket
18430
18431 /* Override any GCC internal prototype to avoid an error.
18432    Use char because int might match the return type of a GCC
18433    builtin and then its argument prototype would still apply.  */
18434 #ifdef __cplusplus
18435 extern "C"
18436 #endif
18437 char socket ();
18438 /* The GNU C library defines this for functions which it implements
18439     to always fail with ENOSYS.  Some functions are actually named
18440     something starting with __ and the normal name is an alias.  */
18441 #if defined __stub_socket || defined __stub___socket
18442 choke me
18443 #endif
18444
18445 int
18446 main ()
18447 {
18448 return socket ();
18449   ;
18450   return 0;
18451 }
18452 _ACEOF
18453 rm -f conftest.$ac_objext conftest$ac_exeext
18454 if { (ac_try="$ac_link"
18455 case "(($ac_try" in
18456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457   *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460   (eval "$ac_link") 2>conftest.er1
18461   ac_status=$?
18462   grep -v '^ *+' conftest.er1 >conftest.err
18463   rm -f conftest.er1
18464   cat conftest.err >&5
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); } && {
18467          test -z "$ac_c_werror_flag" ||
18468          test ! -s conftest.err
18469        } && test -s conftest$ac_exeext &&
18470        $as_test_x conftest$ac_exeext; then
18471   ac_cv_func_socket=yes
18472 else
18473   echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18475
18476         ac_cv_func_socket=no
18477 fi
18478
18479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18480       conftest$ac_exeext conftest.$ac_ext
18481 fi
18482 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18483 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18484 if test $ac_cv_func_socket = yes; then
18485   :
18486 else
18487   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18488 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18489 if test "${ac_cv_lib_socket_socket+set}" = set; then
18490   echo $ECHO_N "(cached) $ECHO_C" >&6
18491 else
18492   ac_check_lib_save_LIBS=$LIBS
18493 LIBS="-lsocket  $LIBS"
18494 cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h.  */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h.  */
18500
18501 /* Override any GCC internal prototype to avoid an error.
18502    Use char because int might match the return type of a GCC
18503    builtin and then its argument prototype would still apply.  */
18504 #ifdef __cplusplus
18505 extern "C"
18506 #endif
18507 char socket ();
18508 int
18509 main ()
18510 {
18511 return socket ();
18512   ;
18513   return 0;
18514 }
18515 _ACEOF
18516 rm -f conftest.$ac_objext conftest$ac_exeext
18517 if { (ac_try="$ac_link"
18518 case "(($ac_try" in
18519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520   *) ac_try_echo=$ac_try;;
18521 esac
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523   (eval "$ac_link") 2>conftest.er1
18524   ac_status=$?
18525   grep -v '^ *+' conftest.er1 >conftest.err
18526   rm -f conftest.er1
18527   cat conftest.err >&5
18528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529   (exit $ac_status); } && {
18530          test -z "$ac_c_werror_flag" ||
18531          test ! -s conftest.err
18532        } && test -s conftest$ac_exeext &&
18533        $as_test_x conftest$ac_exeext; then
18534   ac_cv_lib_socket_socket=yes
18535 else
18536   echo "$as_me: failed program was:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18538
18539         ac_cv_lib_socket_socket=no
18540 fi
18541
18542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18543       conftest$ac_exeext conftest.$ac_ext
18544 LIBS=$ac_check_lib_save_LIBS
18545 fi
18546 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18547 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18548 if test $ac_cv_lib_socket_socket = yes; then
18549   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18550 else
18551   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18552 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18553 if test "${ac_cv_lib_inet_socket+set}" = set; then
18554   echo $ECHO_N "(cached) $ECHO_C" >&6
18555 else
18556   ac_check_lib_save_LIBS=$LIBS
18557 LIBS="-linet  $LIBS"
18558 cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h.  */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h.  */
18564
18565 /* Override any GCC internal prototype to avoid an error.
18566    Use char because int might match the return type of a GCC
18567    builtin and then its argument prototype would still apply.  */
18568 #ifdef __cplusplus
18569 extern "C"
18570 #endif
18571 char socket ();
18572 int
18573 main ()
18574 {
18575 return socket ();
18576   ;
18577   return 0;
18578 }
18579 _ACEOF
18580 rm -f conftest.$ac_objext conftest$ac_exeext
18581 if { (ac_try="$ac_link"
18582 case "(($ac_try" in
18583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584   *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587   (eval "$ac_link") 2>conftest.er1
18588   ac_status=$?
18589   grep -v '^ *+' conftest.er1 >conftest.err
18590   rm -f conftest.er1
18591   cat conftest.err >&5
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); } && {
18594          test -z "$ac_c_werror_flag" ||
18595          test ! -s conftest.err
18596        } && test -s conftest$ac_exeext &&
18597        $as_test_x conftest$ac_exeext; then
18598   ac_cv_lib_inet_socket=yes
18599 else
18600   echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18602
18603         ac_cv_lib_inet_socket=no
18604 fi
18605
18606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18607       conftest$ac_exeext conftest.$ac_ext
18608 LIBS=$ac_check_lib_save_LIBS
18609 fi
18610 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18611 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18612 if test $ac_cv_lib_inet_socket = yes; then
18613   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18614 else
18615   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18616 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18617 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18618 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18619 if test "${ac_cv_lib_socket_socket+set}" = set; then
18620   echo $ECHO_N "(cached) $ECHO_C" >&6
18621 else
18622   ac_check_lib_save_LIBS=$LIBS
18623 LIBS="-lsocket -lnsl $LIBS"
18624 cat >conftest.$ac_ext <<_ACEOF
18625 /* confdefs.h.  */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h.  */
18630
18631 /* Override any GCC internal prototype to avoid an error.
18632    Use char because int might match the return type of a GCC
18633    builtin and then its argument prototype would still apply.  */
18634 #ifdef __cplusplus
18635 extern "C"
18636 #endif
18637 char socket ();
18638 int
18639 main ()
18640 {
18641 return socket ();
18642   ;
18643   return 0;
18644 }
18645 _ACEOF
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (ac_try="$ac_link"
18648 case "(($ac_try" in
18649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650   *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653   (eval "$ac_link") 2>conftest.er1
18654   ac_status=$?
18655   grep -v '^ *+' conftest.er1 >conftest.err
18656   rm -f conftest.er1
18657   cat conftest.err >&5
18658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659   (exit $ac_status); } && {
18660          test -z "$ac_c_werror_flag" ||
18661          test ! -s conftest.err
18662        } && test -s conftest$ac_exeext &&
18663        $as_test_x conftest$ac_exeext; then
18664   ac_cv_lib_socket_socket=yes
18665 else
18666   echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18668
18669         ac_cv_lib_socket_socket=no
18670 fi
18671
18672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18673       conftest$ac_exeext conftest.$ac_ext
18674 LIBS=$ac_check_lib_save_LIBS
18675 fi
18676 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18677 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18678 if test $ac_cv_lib_socket_socket = yes; then
18679   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18680 fi
18681
18682 fi
18683
18684 fi
18685
18686 fi
18687
18688 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18689 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18690 if test "${ac_cv_func_inet_addr+set}" = set; then
18691   echo $ECHO_N "(cached) $ECHO_C" >&6
18692 else
18693   cat >conftest.$ac_ext <<_ACEOF
18694 /* confdefs.h.  */
18695 _ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h.  */
18699 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18701 #define inet_addr innocuous_inet_addr
18702
18703 /* System header to define __stub macros and hopefully few prototypes,
18704     which can conflict with char inet_addr (); below.
18705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18706     <limits.h> exists even on freestanding compilers.  */
18707
18708 #ifdef __STDC__
18709 # include <limits.h>
18710 #else
18711 # include <assert.h>
18712 #endif
18713
18714 #undef inet_addr
18715
18716 /* Override any GCC internal prototype to avoid an error.
18717    Use char because int might match the return type of a GCC
18718    builtin and then its argument prototype would still apply.  */
18719 #ifdef __cplusplus
18720 extern "C"
18721 #endif
18722 char inet_addr ();
18723 /* The GNU C library defines this for functions which it implements
18724     to always fail with ENOSYS.  Some functions are actually named
18725     something starting with __ and the normal name is an alias.  */
18726 #if defined __stub_inet_addr || defined __stub___inet_addr
18727 choke me
18728 #endif
18729
18730 int
18731 main ()
18732 {
18733 return inet_addr ();
18734   ;
18735   return 0;
18736 }
18737 _ACEOF
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (ac_try="$ac_link"
18740 case "(($ac_try" in
18741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742   *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745   (eval "$ac_link") 2>conftest.er1
18746   ac_status=$?
18747   grep -v '^ *+' conftest.er1 >conftest.err
18748   rm -f conftest.er1
18749   cat conftest.err >&5
18750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751   (exit $ac_status); } && {
18752          test -z "$ac_c_werror_flag" ||
18753          test ! -s conftest.err
18754        } && test -s conftest$ac_exeext &&
18755        $as_test_x conftest$ac_exeext; then
18756   ac_cv_func_inet_addr=yes
18757 else
18758   echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18760
18761         ac_cv_func_inet_addr=no
18762 fi
18763
18764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18765       conftest$ac_exeext conftest.$ac_ext
18766 fi
18767 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18768 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18769 if test $ac_cv_func_inet_addr = yes; then
18770   :
18771 else
18772   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18773 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18774 if test "${ac_cv_func___inet_addr+set}" = set; then
18775   echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777   cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18785 #define __inet_addr innocuous___inet_addr
18786
18787 /* System header to define __stub macros and hopefully few prototypes,
18788     which can conflict with char __inet_addr (); below.
18789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18790     <limits.h> exists even on freestanding compilers.  */
18791
18792 #ifdef __STDC__
18793 # include <limits.h>
18794 #else
18795 # include <assert.h>
18796 #endif
18797
18798 #undef __inet_addr
18799
18800 /* Override any GCC internal prototype to avoid an error.
18801    Use char because int might match the return type of a GCC
18802    builtin and then its argument prototype would still apply.  */
18803 #ifdef __cplusplus
18804 extern "C"
18805 #endif
18806 char __inet_addr ();
18807 /* The GNU C library defines this for functions which it implements
18808     to always fail with ENOSYS.  Some functions are actually named
18809     something starting with __ and the normal name is an alias.  */
18810 #if defined __stub___inet_addr || defined __stub_____inet_addr
18811 choke me
18812 #endif
18813
18814 int
18815 main ()
18816 {
18817 return __inet_addr ();
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826   *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829   (eval "$ac_link") 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } && {
18836          test -z "$ac_c_werror_flag" ||
18837          test ! -s conftest.err
18838        } && test -s conftest$ac_exeext &&
18839        $as_test_x conftest$ac_exeext; then
18840   ac_cv_func___inet_addr=yes
18841 else
18842   echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18844
18845         ac_cv_func___inet_addr=no
18846 fi
18847
18848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18849       conftest$ac_exeext conftest.$ac_ext
18850 fi
18851 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18852 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18853 if test $ac_cv_func___inet_addr = yes; then
18854   :
18855 else
18856   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18857 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18858 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
18859   echo $ECHO_N "(cached) $ECHO_C" >&6
18860 else
18861   ac_check_lib_save_LIBS=$LIBS
18862 LIBS="-lnsl  $LIBS"
18863 cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h.  */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h.  */
18869
18870 /* Override any GCC internal prototype to avoid an error.
18871    Use char because int might match the return type of a GCC
18872    builtin and then its argument prototype would still apply.  */
18873 #ifdef __cplusplus
18874 extern "C"
18875 #endif
18876 char inet_addr ();
18877 int
18878 main ()
18879 {
18880 return inet_addr ();
18881   ;
18882   return 0;
18883 }
18884 _ACEOF
18885 rm -f conftest.$ac_objext conftest$ac_exeext
18886 if { (ac_try="$ac_link"
18887 case "(($ac_try" in
18888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889   *) ac_try_echo=$ac_try;;
18890 esac
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892   (eval "$ac_link") 2>conftest.er1
18893   ac_status=$?
18894   grep -v '^ *+' conftest.er1 >conftest.err
18895   rm -f conftest.er1
18896   cat conftest.err >&5
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); } && {
18899          test -z "$ac_c_werror_flag" ||
18900          test ! -s conftest.err
18901        } && test -s conftest$ac_exeext &&
18902        $as_test_x conftest$ac_exeext; then
18903   ac_cv_lib_nsl_inet_addr=yes
18904 else
18905   echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908         ac_cv_lib_nsl_inet_addr=no
18909 fi
18910
18911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18912       conftest$ac_exeext conftest.$ac_ext
18913 LIBS=$ac_check_lib_save_LIBS
18914 fi
18915 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18916 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18917 if test $ac_cv_lib_nsl_inet_addr = yes; then
18918   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18919 else
18920   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18921 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18922 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18923   echo $ECHO_N "(cached) $ECHO_C" >&6
18924 else
18925   ac_check_lib_save_LIBS=$LIBS
18926 LIBS="-linet  $LIBS"
18927 cat >conftest.$ac_ext <<_ACEOF
18928 /* confdefs.h.  */
18929 _ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h.  */
18933
18934 /* Override any GCC internal prototype to avoid an error.
18935    Use char because int might match the return type of a GCC
18936    builtin and then its argument prototype would still apply.  */
18937 #ifdef __cplusplus
18938 extern "C"
18939 #endif
18940 char inet_addr ();
18941 int
18942 main ()
18943 {
18944 return inet_addr ();
18945   ;
18946   return 0;
18947 }
18948 _ACEOF
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953   *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956   (eval "$ac_link") 2>conftest.er1
18957   ac_status=$?
18958   grep -v '^ *+' conftest.er1 >conftest.err
18959   rm -f conftest.er1
18960   cat conftest.err >&5
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); } && {
18963          test -z "$ac_c_werror_flag" ||
18964          test ! -s conftest.err
18965        } && test -s conftest$ac_exeext &&
18966        $as_test_x conftest$ac_exeext; then
18967   ac_cv_lib_inet_inet_addr=yes
18968 else
18969   echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972         ac_cv_lib_inet_inet_addr=no
18973 fi
18974
18975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18976       conftest$ac_exeext conftest.$ac_ext
18977 LIBS=$ac_check_lib_save_LIBS
18978 fi
18979 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
18980 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18981 if test $ac_cv_lib_inet_inet_addr = yes; then
18982   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18983 else
18984   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18985 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18986 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18987 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18988 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   ac_check_lib_save_LIBS=$LIBS
18992 LIBS="-lsocket -lnsl $LIBS"
18993 cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h.  */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h.  */
18999
19000 /* Override any GCC internal prototype to avoid an error.
19001    Use char because int might match the return type of a GCC
19002    builtin and then its argument prototype would still apply.  */
19003 #ifdef __cplusplus
19004 extern "C"
19005 #endif
19006 char inet_addr ();
19007 int
19008 main ()
19009 {
19010 return inet_addr ();
19011   ;
19012   return 0;
19013 }
19014 _ACEOF
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (ac_try="$ac_link"
19017 case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_link") 2>conftest.er1
19023   ac_status=$?
19024   grep -v '^ *+' conftest.er1 >conftest.err
19025   rm -f conftest.er1
19026   cat conftest.err >&5
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); } && {
19029          test -z "$ac_c_werror_flag" ||
19030          test ! -s conftest.err
19031        } && test -s conftest$ac_exeext &&
19032        $as_test_x conftest$ac_exeext; then
19033   ac_cv_lib_socket_inet_addr=yes
19034 else
19035   echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19037
19038         ac_cv_lib_socket_inet_addr=no
19039 fi
19040
19041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19042       conftest$ac_exeext conftest.$ac_ext
19043 LIBS=$ac_check_lib_save_LIBS
19044 fi
19045 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
19046 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
19047 if test $ac_cv_lib_socket_inet_addr = yes; then
19048   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
19049 fi
19050
19051 fi
19052
19053 fi
19054
19055 fi
19056
19057 fi
19058
19059 { echo "$as_me:$LINENO: checking for syslog" >&5
19060 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
19061 if test "${ac_cv_func_syslog+set}" = set; then
19062   echo $ECHO_N "(cached) $ECHO_C" >&6
19063 else
19064   cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h.  */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h.  */
19070 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19072 #define syslog innocuous_syslog
19073
19074 /* System header to define __stub macros and hopefully few prototypes,
19075     which can conflict with char syslog (); below.
19076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19077     <limits.h> exists even on freestanding compilers.  */
19078
19079 #ifdef __STDC__
19080 # include <limits.h>
19081 #else
19082 # include <assert.h>
19083 #endif
19084
19085 #undef syslog
19086
19087 /* Override any GCC internal prototype to avoid an error.
19088    Use char because int might match the return type of a GCC
19089    builtin and then its argument prototype would still apply.  */
19090 #ifdef __cplusplus
19091 extern "C"
19092 #endif
19093 char syslog ();
19094 /* The GNU C library defines this for functions which it implements
19095     to always fail with ENOSYS.  Some functions are actually named
19096     something starting with __ and the normal name is an alias.  */
19097 #if defined __stub_syslog || defined __stub___syslog
19098 choke me
19099 #endif
19100
19101 int
19102 main ()
19103 {
19104 return syslog ();
19105   ;
19106   return 0;
19107 }
19108 _ACEOF
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (ac_try="$ac_link"
19111 case "(($ac_try" in
19112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113   *) ac_try_echo=$ac_try;;
19114 esac
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116   (eval "$ac_link") 2>conftest.er1
19117   ac_status=$?
19118   grep -v '^ *+' conftest.er1 >conftest.err
19119   rm -f conftest.er1
19120   cat conftest.err >&5
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); } && {
19123          test -z "$ac_c_werror_flag" ||
19124          test ! -s conftest.err
19125        } && test -s conftest$ac_exeext &&
19126        $as_test_x conftest$ac_exeext; then
19127   ac_cv_func_syslog=yes
19128 else
19129   echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19131
19132         ac_cv_func_syslog=no
19133 fi
19134
19135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19136       conftest$ac_exeext conftest.$ac_ext
19137 fi
19138 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19139 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19140 if test $ac_cv_func_syslog = yes; then
19141   :
19142 else
19143   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19144 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19145 if test "${ac_cv_lib_socket_syslog+set}" = set; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   ac_check_lib_save_LIBS=$LIBS
19149 LIBS="-lsocket  $LIBS"
19150 cat >conftest.$ac_ext <<_ACEOF
19151 /* confdefs.h.  */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h.  */
19156
19157 /* Override any GCC internal prototype to avoid an error.
19158    Use char because int might match the return type of a GCC
19159    builtin and then its argument prototype would still apply.  */
19160 #ifdef __cplusplus
19161 extern "C"
19162 #endif
19163 char syslog ();
19164 int
19165 main ()
19166 {
19167 return syslog ();
19168   ;
19169   return 0;
19170 }
19171 _ACEOF
19172 rm -f conftest.$ac_objext conftest$ac_exeext
19173 if { (ac_try="$ac_link"
19174 case "(($ac_try" in
19175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176   *) ac_try_echo=$ac_try;;
19177 esac
19178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19179   (eval "$ac_link") 2>conftest.er1
19180   ac_status=$?
19181   grep -v '^ *+' conftest.er1 >conftest.err
19182   rm -f conftest.er1
19183   cat conftest.err >&5
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); } && {
19186          test -z "$ac_c_werror_flag" ||
19187          test ! -s conftest.err
19188        } && test -s conftest$ac_exeext &&
19189        $as_test_x conftest$ac_exeext; then
19190   ac_cv_lib_socket_syslog=yes
19191 else
19192   echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19194
19195         ac_cv_lib_socket_syslog=no
19196 fi
19197
19198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19199       conftest$ac_exeext conftest.$ac_ext
19200 LIBS=$ac_check_lib_save_LIBS
19201 fi
19202 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19203 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19204 if test $ac_cv_lib_socket_syslog = yes; then
19205   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19206 else
19207   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19208 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19209 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19210   echo $ECHO_N "(cached) $ECHO_C" >&6
19211 else
19212   ac_check_lib_save_LIBS=$LIBS
19213 LIBS="-lnsl  $LIBS"
19214 cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220
19221 /* Override any GCC internal prototype to avoid an error.
19222    Use char because int might match the return type of a GCC
19223    builtin and then its argument prototype would still apply.  */
19224 #ifdef __cplusplus
19225 extern "C"
19226 #endif
19227 char syslog ();
19228 int
19229 main ()
19230 {
19231 return syslog ();
19232   ;
19233   return 0;
19234 }
19235 _ACEOF
19236 rm -f conftest.$ac_objext conftest$ac_exeext
19237 if { (ac_try="$ac_link"
19238 case "(($ac_try" in
19239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240   *) ac_try_echo=$ac_try;;
19241 esac
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243   (eval "$ac_link") 2>conftest.er1
19244   ac_status=$?
19245   grep -v '^ *+' conftest.er1 >conftest.err
19246   rm -f conftest.er1
19247   cat conftest.err >&5
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); } && {
19250          test -z "$ac_c_werror_flag" ||
19251          test ! -s conftest.err
19252        } && test -s conftest$ac_exeext &&
19253        $as_test_x conftest$ac_exeext; then
19254   ac_cv_lib_nsl_syslog=yes
19255 else
19256   echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259         ac_cv_lib_nsl_syslog=no
19260 fi
19261
19262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19263       conftest$ac_exeext conftest.$ac_ext
19264 LIBS=$ac_check_lib_save_LIBS
19265 fi
19266 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19267 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19268 if test $ac_cv_lib_nsl_syslog = yes; then
19269   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19270 else
19271   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19272 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19273 if test "${ac_cv_lib_inet_syslog+set}" = set; then
19274   echo $ECHO_N "(cached) $ECHO_C" >&6
19275 else
19276   ac_check_lib_save_LIBS=$LIBS
19277 LIBS="-linet  $LIBS"
19278 cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h.  */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h.  */
19284
19285 /* Override any GCC internal prototype to avoid an error.
19286    Use char because int might match the return type of a GCC
19287    builtin and then its argument prototype would still apply.  */
19288 #ifdef __cplusplus
19289 extern "C"
19290 #endif
19291 char syslog ();
19292 int
19293 main ()
19294 {
19295 return syslog ();
19296   ;
19297   return 0;
19298 }
19299 _ACEOF
19300 rm -f conftest.$ac_objext conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304   *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307   (eval "$ac_link") 2>conftest.er1
19308   ac_status=$?
19309   grep -v '^ *+' conftest.er1 >conftest.err
19310   rm -f conftest.er1
19311   cat conftest.err >&5
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } && {
19314          test -z "$ac_c_werror_flag" ||
19315          test ! -s conftest.err
19316        } && test -s conftest$ac_exeext &&
19317        $as_test_x conftest$ac_exeext; then
19318   ac_cv_lib_inet_syslog=yes
19319 else
19320   echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323         ac_cv_lib_inet_syslog=no
19324 fi
19325
19326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19327       conftest$ac_exeext conftest.$ac_ext
19328 LIBS=$ac_check_lib_save_LIBS
19329 fi
19330 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19331 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19332 if test $ac_cv_lib_inet_syslog = yes; then
19333   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19334 fi
19335
19336 fi
19337
19338 fi
19339
19340 fi
19341
19342 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
19343     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19344 # for constant arguments.  Useless!
19345 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19346 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19347 if test "${ac_cv_working_alloca_h+set}" = set; then
19348   echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350   cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h.  */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h.  */
19356 #include <alloca.h>
19357 int
19358 main ()
19359 {
19360 char *p = (char *) alloca (2 * sizeof (int));
19361                           if (p) return 0;
19362   ;
19363   return 0;
19364 }
19365 _ACEOF
19366 rm -f conftest.$ac_objext conftest$ac_exeext
19367 if { (ac_try="$ac_link"
19368 case "(($ac_try" in
19369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370   *) ac_try_echo=$ac_try;;
19371 esac
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373   (eval "$ac_link") 2>conftest.er1
19374   ac_status=$?
19375   grep -v '^ *+' conftest.er1 >conftest.err
19376   rm -f conftest.er1
19377   cat conftest.err >&5
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); } && {
19380          test -z "$ac_c_werror_flag" ||
19381          test ! -s conftest.err
19382        } && test -s conftest$ac_exeext &&
19383        $as_test_x conftest$ac_exeext; then
19384   ac_cv_working_alloca_h=yes
19385 else
19386   echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19388
19389         ac_cv_working_alloca_h=no
19390 fi
19391
19392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19393       conftest$ac_exeext conftest.$ac_ext
19394 fi
19395 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19396 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19397 if test $ac_cv_working_alloca_h = yes; then
19398
19399 cat >>confdefs.h <<\_ACEOF
19400 #define HAVE_ALLOCA_H 1
19401 _ACEOF
19402
19403 fi
19404
19405 { echo "$as_me:$LINENO: checking for alloca" >&5
19406 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19407 if test "${ac_cv_func_alloca_works+set}" = set; then
19408   echo $ECHO_N "(cached) $ECHO_C" >&6
19409 else
19410   cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h.  */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h.  */
19416 #ifdef __GNUC__
19417 # define alloca __builtin_alloca
19418 #else
19419 # ifdef _MSC_VER
19420 #  include <malloc.h>
19421 #  define alloca _alloca
19422 # else
19423 #  ifdef HAVE_ALLOCA_H
19424 #   include <alloca.h>
19425 #  else
19426 #   ifdef _AIX
19427  #pragma alloca
19428 #   else
19429 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19430 char *alloca ();
19431 #    endif
19432 #   endif
19433 #  endif
19434 # endif
19435 #endif
19436
19437 int
19438 main ()
19439 {
19440 char *p = (char *) alloca (1);
19441                                     if (p) return 0;
19442   ;
19443   return 0;
19444 }
19445 _ACEOF
19446 rm -f conftest.$ac_objext conftest$ac_exeext
19447 if { (ac_try="$ac_link"
19448 case "(($ac_try" in
19449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450   *) ac_try_echo=$ac_try;;
19451 esac
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453   (eval "$ac_link") 2>conftest.er1
19454   ac_status=$?
19455   grep -v '^ *+' conftest.er1 >conftest.err
19456   rm -f conftest.er1
19457   cat conftest.err >&5
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); } && {
19460          test -z "$ac_c_werror_flag" ||
19461          test ! -s conftest.err
19462        } && test -s conftest$ac_exeext &&
19463        $as_test_x conftest$ac_exeext; then
19464   ac_cv_func_alloca_works=yes
19465 else
19466   echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19468
19469         ac_cv_func_alloca_works=no
19470 fi
19471
19472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19473       conftest$ac_exeext conftest.$ac_ext
19474 fi
19475 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19476 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19477
19478 if test $ac_cv_func_alloca_works = yes; then
19479
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE_ALLOCA 1
19482 _ACEOF
19483
19484 else
19485   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19486 # that cause trouble.  Some versions do not even contain alloca or
19487 # contain a buggy version.  If you still want to use their alloca,
19488 # use ar to extract alloca.o from them instead of compiling alloca.c.
19489
19490 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19491
19492 cat >>confdefs.h <<\_ACEOF
19493 #define C_ALLOCA 1
19494 _ACEOF
19495
19496
19497 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19498 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19499 if test "${ac_cv_os_cray+set}" = set; then
19500   echo $ECHO_N "(cached) $ECHO_C" >&6
19501 else
19502   cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h.  */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h.  */
19508 #if defined CRAY && ! defined CRAY2
19509 webecray
19510 #else
19511 wenotbecray
19512 #endif
19513
19514 _ACEOF
19515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19516   $EGREP "webecray" >/dev/null 2>&1; then
19517   ac_cv_os_cray=yes
19518 else
19519   ac_cv_os_cray=no
19520 fi
19521 rm -f conftest*
19522
19523 fi
19524 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19525 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19526 if test $ac_cv_os_cray = yes; then
19527   for ac_func in _getb67 GETB67 getb67; do
19528     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19532   echo $ECHO_N "(cached) $ECHO_C" >&6
19533 else
19534   cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19542 #define $ac_func innocuous_$ac_func
19543
19544 /* System header to define __stub macros and hopefully few prototypes,
19545     which can conflict with char $ac_func (); below.
19546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19547     <limits.h> exists even on freestanding compilers.  */
19548
19549 #ifdef __STDC__
19550 # include <limits.h>
19551 #else
19552 # include <assert.h>
19553 #endif
19554
19555 #undef $ac_func
19556
19557 /* Override any GCC internal prototype to avoid an error.
19558    Use char because int might match the return type of a GCC
19559    builtin and then its argument prototype would still apply.  */
19560 #ifdef __cplusplus
19561 extern "C"
19562 #endif
19563 char $ac_func ();
19564 /* The GNU C library defines this for functions which it implements
19565     to always fail with ENOSYS.  Some functions are actually named
19566     something starting with __ and the normal name is an alias.  */
19567 #if defined __stub_$ac_func || defined __stub___$ac_func
19568 choke me
19569 #endif
19570
19571 int
19572 main ()
19573 {
19574 return $ac_func ();
19575   ;
19576   return 0;
19577 }
19578 _ACEOF
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (ac_try="$ac_link"
19581 case "(($ac_try" in
19582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583   *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586   (eval "$ac_link") 2>conftest.er1
19587   ac_status=$?
19588   grep -v '^ *+' conftest.er1 >conftest.err
19589   rm -f conftest.er1
19590   cat conftest.err >&5
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); } && {
19593          test -z "$ac_c_werror_flag" ||
19594          test ! -s conftest.err
19595        } && test -s conftest$ac_exeext &&
19596        $as_test_x conftest$ac_exeext; then
19597   eval "$as_ac_var=yes"
19598 else
19599   echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602         eval "$as_ac_var=no"
19603 fi
19604
19605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606       conftest$ac_exeext conftest.$ac_ext
19607 fi
19608 ac_res=`eval echo '${'$as_ac_var'}'`
19609                { echo "$as_me:$LINENO: result: $ac_res" >&5
19610 echo "${ECHO_T}$ac_res" >&6; }
19611 if test `eval echo '${'$as_ac_var'}'` = yes; then
19612
19613 cat >>confdefs.h <<_ACEOF
19614 #define CRAY_STACKSEG_END $ac_func
19615 _ACEOF
19616
19617     break
19618 fi
19619
19620   done
19621 fi
19622
19623 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19624 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19625 if test "${ac_cv_c_stack_direction+set}" = set; then
19626   echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628   if test "$cross_compiling" = yes; then
19629   ac_cv_c_stack_direction=0
19630 else
19631   cat >conftest.$ac_ext <<_ACEOF
19632 /* confdefs.h.  */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h.  */
19637 $ac_includes_default
19638 int
19639 find_stack_direction ()
19640 {
19641   static char *addr = 0;
19642   auto char dummy;
19643   if (addr == 0)
19644     {
19645       addr = &dummy;
19646       return find_stack_direction ();
19647     }
19648   else
19649     return (&dummy > addr) ? 1 : -1;
19650 }
19651
19652 int
19653 main ()
19654 {
19655   return find_stack_direction () < 0;
19656 }
19657 _ACEOF
19658 rm -f conftest$ac_exeext
19659 if { (ac_try="$ac_link"
19660 case "(($ac_try" in
19661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662   *) ac_try_echo=$ac_try;;
19663 esac
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665   (eval "$ac_link") 2>&5
19666   ac_status=$?
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19669   { (case "(($ac_try" in
19670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671   *) ac_try_echo=$ac_try;;
19672 esac
19673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674   (eval "$ac_try") 2>&5
19675   ac_status=$?
19676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677   (exit $ac_status); }; }; then
19678   ac_cv_c_stack_direction=1
19679 else
19680   echo "$as_me: program exited with status $ac_status" >&5
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19683
19684 ( exit $ac_status )
19685 ac_cv_c_stack_direction=-1
19686 fi
19687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19688 fi
19689
19690
19691 fi
19692 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19693 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19694
19695 cat >>confdefs.h <<_ACEOF
19696 #define STACK_DIRECTION $ac_cv_c_stack_direction
19697 _ACEOF
19698
19699
19700 fi
19701
19702 fi
19703
19704 for ac_func in getprogname
19705 do
19706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19710   echo $ECHO_N "(cached) $ECHO_C" >&6
19711 else
19712   cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h.  */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h.  */
19718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19720 #define $ac_func innocuous_$ac_func
19721
19722 /* System header to define __stub macros and hopefully few prototypes,
19723     which can conflict with char $ac_func (); below.
19724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19725     <limits.h> exists even on freestanding compilers.  */
19726
19727 #ifdef __STDC__
19728 # include <limits.h>
19729 #else
19730 # include <assert.h>
19731 #endif
19732
19733 #undef $ac_func
19734
19735 /* Override any GCC internal prototype to avoid an error.
19736    Use char because int might match the return type of a GCC
19737    builtin and then its argument prototype would still apply.  */
19738 #ifdef __cplusplus
19739 extern "C"
19740 #endif
19741 char $ac_func ();
19742 /* The GNU C library defines this for functions which it implements
19743     to always fail with ENOSYS.  Some functions are actually named
19744     something starting with __ and the normal name is an alias.  */
19745 #if defined __stub_$ac_func || defined __stub___$ac_func
19746 choke me
19747 #endif
19748
19749 int
19750 main ()
19751 {
19752 return $ac_func ();
19753   ;
19754   return 0;
19755 }
19756 _ACEOF
19757 rm -f conftest.$ac_objext conftest$ac_exeext
19758 if { (ac_try="$ac_link"
19759 case "(($ac_try" in
19760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761   *) ac_try_echo=$ac_try;;
19762 esac
19763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764   (eval "$ac_link") 2>conftest.er1
19765   ac_status=$?
19766   grep -v '^ *+' conftest.er1 >conftest.err
19767   rm -f conftest.er1
19768   cat conftest.err >&5
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); } && {
19771          test -z "$ac_c_werror_flag" ||
19772          test ! -s conftest.err
19773        } && test -s conftest$ac_exeext &&
19774        $as_test_x conftest$ac_exeext; then
19775   eval "$as_ac_var=yes"
19776 else
19777   echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19779
19780         eval "$as_ac_var=no"
19781 fi
19782
19783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19784       conftest$ac_exeext conftest.$ac_ext
19785 fi
19786 ac_res=`eval echo '${'$as_ac_var'}'`
19787                { echo "$as_me:$LINENO: result: $ac_res" >&5
19788 echo "${ECHO_T}$ac_res" >&6; }
19789 if test `eval echo '${'$as_ac_var'}'` = yes; then
19790   cat >>confdefs.h <<_ACEOF
19791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19792 _ACEOF
19793
19794 else
19795
19796     { echo "$as_me:$LINENO: checking for __progname" >&5
19797 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19798     if test "${sudo_cv___progname+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801
19802     cat >conftest.$ac_ext <<_ACEOF
19803 /* confdefs.h.  */
19804 _ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h.  */
19808
19809 int
19810 main ()
19811 {
19812 extern char *__progname; (void)puts(__progname);
19813   ;
19814   return 0;
19815 }
19816 _ACEOF
19817 rm -f conftest.$ac_objext conftest$ac_exeext
19818 if { (ac_try="$ac_link"
19819 case "(($ac_try" in
19820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821   *) ac_try_echo=$ac_try;;
19822 esac
19823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19824   (eval "$ac_link") 2>conftest.er1
19825   ac_status=$?
19826   grep -v '^ *+' conftest.er1 >conftest.err
19827   rm -f conftest.er1
19828   cat conftest.err >&5
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); } && {
19831          test -z "$ac_c_werror_flag" ||
19832          test ! -s conftest.err
19833        } && test -s conftest$ac_exeext &&
19834        $as_test_x conftest$ac_exeext; then
19835   sudo_cv___progname=yes
19836 else
19837   echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19839
19840         sudo_cv___progname=no
19841 fi
19842
19843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19844       conftest$ac_exeext conftest.$ac_ext
19845 fi
19846
19847     if test "$sudo_cv___progname" = "yes"; then
19848         cat >>confdefs.h <<\_ACEOF
19849 #define HAVE___PROGNAME 1
19850 _ACEOF
19851
19852     else
19853         case " $LIBOBJS " in
19854   *" getprogname.$ac_objext "* ) ;;
19855   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19856  ;;
19857 esac
19858
19859     fi
19860     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19861 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19862
19863 fi
19864 done
19865
19866
19867
19868 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19869     for auth in $AUTH_EXCL_DEF; do
19870         case $auth in
19871             AIX_AUTH)   with_aixauth=maybe;;
19872             BSD_AUTH)   with_bsdauth=maybe;;
19873             PAM)        with_pam=maybe;;
19874             SIA)        CHECKSIA=true;;
19875         esac
19876     done
19877 fi
19878
19879 if test ${with_pam-"no"} != "no"; then
19880                 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19881 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19882 if test "${ac_cv_lib_dl_main+set}" = set; then
19883   echo $ECHO_N "(cached) $ECHO_C" >&6
19884 else
19885   ac_check_lib_save_LIBS=$LIBS
19886 LIBS="-ldl  $LIBS"
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h.  */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h.  */
19893
19894
19895 int
19896 main ()
19897 {
19898 return main ();
19899   ;
19900   return 0;
19901 }
19902 _ACEOF
19903 rm -f conftest.$ac_objext conftest$ac_exeext
19904 if { (ac_try="$ac_link"
19905 case "(($ac_try" in
19906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907   *) ac_try_echo=$ac_try;;
19908 esac
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910   (eval "$ac_link") 2>conftest.er1
19911   ac_status=$?
19912   grep -v '^ *+' conftest.er1 >conftest.err
19913   rm -f conftest.er1
19914   cat conftest.err >&5
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } && {
19917          test -z "$ac_c_werror_flag" ||
19918          test ! -s conftest.err
19919        } && test -s conftest$ac_exeext &&
19920        $as_test_x conftest$ac_exeext; then
19921   ac_cv_lib_dl_main=yes
19922 else
19923   echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19925
19926         ac_cv_lib_dl_main=no
19927 fi
19928
19929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19930       conftest$ac_exeext conftest.$ac_ext
19931 LIBS=$ac_check_lib_save_LIBS
19932 fi
19933 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19934 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19935 if test $ac_cv_lib_dl_main = yes; then
19936   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19937 else
19938   SUDO_LIBS="${SUDO_LIBS} -lpam"
19939 fi
19940
19941     ac_cv_lib_dl=ac_cv_lib_dl_main
19942
19943
19944
19945 for ac_header in security/pam_appl.h pam/pam_appl.h
19946 do
19947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19949   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19952   echo $ECHO_N "(cached) $ECHO_C" >&6
19953 fi
19954 ac_res=`eval echo '${'$as_ac_Header'}'`
19955                { echo "$as_me:$LINENO: result: $ac_res" >&5
19956 echo "${ECHO_T}$ac_res" >&6; }
19957 else
19958   # Is the header compilable?
19959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19961 cat >conftest.$ac_ext <<_ACEOF
19962 /* confdefs.h.  */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h.  */
19967 $ac_includes_default
19968 #include <$ac_header>
19969 _ACEOF
19970 rm -f conftest.$ac_objext
19971 if { (ac_try="$ac_compile"
19972 case "(($ac_try" in
19973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974   *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977   (eval "$ac_compile") 2>conftest.er1
19978   ac_status=$?
19979   grep -v '^ *+' conftest.er1 >conftest.err
19980   rm -f conftest.er1
19981   cat conftest.err >&5
19982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983   (exit $ac_status); } && {
19984          test -z "$ac_c_werror_flag" ||
19985          test ! -s conftest.err
19986        } && test -s conftest.$ac_objext; then
19987   ac_header_compiler=yes
19988 else
19989   echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19991
19992         ac_header_compiler=no
19993 fi
19994
19995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19997 echo "${ECHO_T}$ac_header_compiler" >&6; }
19998
19999 # Is the header present?
20000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20002 cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008 #include <$ac_header>
20009 _ACEOF
20010 if { (ac_try="$ac_cpp conftest.$ac_ext"
20011 case "(($ac_try" in
20012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013   *) ac_try_echo=$ac_try;;
20014 esac
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20017   ac_status=$?
20018   grep -v '^ *+' conftest.er1 >conftest.err
20019   rm -f conftest.er1
20020   cat conftest.err >&5
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } >/dev/null && {
20023          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20024          test ! -s conftest.err
20025        }; then
20026   ac_header_preproc=yes
20027 else
20028   echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031   ac_header_preproc=no
20032 fi
20033
20034 rm -f conftest.err conftest.$ac_ext
20035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20036 echo "${ECHO_T}$ac_header_preproc" >&6; }
20037
20038 # So?  What about this header?
20039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20040   yes:no: )
20041     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20045     ac_header_preproc=yes
20046     ;;
20047   no:yes:* )
20048     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20050     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20051 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20052     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20054     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20055 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20058     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20060
20061     ;;
20062 esac
20063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20066   echo $ECHO_N "(cached) $ECHO_C" >&6
20067 else
20068   eval "$as_ac_Header=\$ac_header_preproc"
20069 fi
20070 ac_res=`eval echo '${'$as_ac_Header'}'`
20071                { echo "$as_me:$LINENO: result: $ac_res" >&5
20072 echo "${ECHO_T}$ac_res" >&6; }
20073
20074 fi
20075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20076   cat >>confdefs.h <<_ACEOF
20077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20078 _ACEOF
20079  with_pam=yes; break
20080 fi
20081
20082 done
20083
20084     if test "$with_pam" = "yes"; then
20085         cat >>confdefs.h <<\_ACEOF
20086 #define HAVE_PAM 1
20087 _ACEOF
20088
20089         AUTH_OBJS="$AUTH_OBJS pam.o";
20090         AUTH_EXCL=PAM
20091         { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
20092 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
20093         # Check whether --enable-pam_session was given.
20094 if test "${enable_pam_session+set}" = set; then
20095   enableval=$enable_pam_session;  case "$enableval" in
20096                 yes)    { echo "$as_me:$LINENO: result: yes" >&5
20097 echo "${ECHO_T}yes" >&6; }
20098                         ;;
20099                 no)             { echo "$as_me:$LINENO: result: no" >&5
20100 echo "${ECHO_T}no" >&6; }
20101                             cat >>confdefs.h <<\_ACEOF
20102 #define NO_PAM_SESSION 1
20103 _ACEOF
20104
20105                             ;;
20106                 *)              { echo "$as_me:$LINENO: result: no" >&5
20107 echo "${ECHO_T}no" >&6; }
20108                             { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
20109 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
20110                             ;;
20111             esac
20112 else
20113   { echo "$as_me:$LINENO: result: yes" >&5
20114 echo "${ECHO_T}yes" >&6; }
20115 fi
20116
20117         case $host in
20118             *-*-linux*|*-*-solaris*)
20119
20120 for ac_func in dgettext
20121 do
20122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20126   echo $ECHO_N "(cached) $ECHO_C" >&6
20127 else
20128   cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h.  */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h.  */
20134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20136 #define $ac_func innocuous_$ac_func
20137
20138 /* System header to define __stub macros and hopefully few prototypes,
20139     which can conflict with char $ac_func (); below.
20140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20141     <limits.h> exists even on freestanding compilers.  */
20142
20143 #ifdef __STDC__
20144 # include <limits.h>
20145 #else
20146 # include <assert.h>
20147 #endif
20148
20149 #undef $ac_func
20150
20151 /* Override any GCC internal prototype to avoid an error.
20152    Use char because int might match the return type of a GCC
20153    builtin and then its argument prototype would still apply.  */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 char $ac_func ();
20158 /* The GNU C library defines this for functions which it implements
20159     to always fail with ENOSYS.  Some functions are actually named
20160     something starting with __ and the normal name is an alias.  */
20161 #if defined __stub_$ac_func || defined __stub___$ac_func
20162 choke me
20163 #endif
20164
20165 int
20166 main ()
20167 {
20168 return $ac_func ();
20169   ;
20170   return 0;
20171 }
20172 _ACEOF
20173 rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177   *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180   (eval "$ac_link") 2>conftest.er1
20181   ac_status=$?
20182   grep -v '^ *+' conftest.er1 >conftest.err
20183   rm -f conftest.er1
20184   cat conftest.err >&5
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); } && {
20187          test -z "$ac_c_werror_flag" ||
20188          test ! -s conftest.err
20189        } && test -s conftest$ac_exeext &&
20190        $as_test_x conftest$ac_exeext; then
20191   eval "$as_ac_var=yes"
20192 else
20193   echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20195
20196         eval "$as_ac_var=no"
20197 fi
20198
20199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20200       conftest$ac_exeext conftest.$ac_ext
20201 fi
20202 ac_res=`eval echo '${'$as_ac_var'}'`
20203                { echo "$as_me:$LINENO: result: $ac_res" >&5
20204 echo "${ECHO_T}$ac_res" >&6; }
20205 if test `eval echo '${'$as_ac_var'}'` = yes; then
20206   cat >>confdefs.h <<_ACEOF
20207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20208 _ACEOF
20209
20210 else
20211   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20212 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20213 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20214   echo $ECHO_N "(cached) $ECHO_C" >&6
20215 else
20216   ac_check_lib_save_LIBS=$LIBS
20217 LIBS="-lintl  $LIBS"
20218 cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h.  */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h.  */
20224
20225 /* Override any GCC internal prototype to avoid an error.
20226    Use char because int might match the return type of a GCC
20227    builtin and then its argument prototype would still apply.  */
20228 #ifdef __cplusplus
20229 extern "C"
20230 #endif
20231 char dgettext ();
20232 int
20233 main ()
20234 {
20235 return dgettext ();
20236   ;
20237   return 0;
20238 }
20239 _ACEOF
20240 rm -f conftest.$ac_objext conftest$ac_exeext
20241 if { (ac_try="$ac_link"
20242 case "(($ac_try" in
20243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244   *) ac_try_echo=$ac_try;;
20245 esac
20246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247   (eval "$ac_link") 2>conftest.er1
20248   ac_status=$?
20249   grep -v '^ *+' conftest.er1 >conftest.err
20250   rm -f conftest.er1
20251   cat conftest.err >&5
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); } && {
20254          test -z "$ac_c_werror_flag" ||
20255          test ! -s conftest.err
20256        } && test -s conftest$ac_exeext &&
20257        $as_test_x conftest$ac_exeext; then
20258   ac_cv_lib_intl_dgettext=yes
20259 else
20260   echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20262
20263         ac_cv_lib_intl_dgettext=no
20264 fi
20265
20266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20267       conftest$ac_exeext conftest.$ac_ext
20268 LIBS=$ac_check_lib_save_LIBS
20269 fi
20270 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20271 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20272 if test $ac_cv_lib_intl_dgettext = yes; then
20273   LIBS="${LIBS} -lintl"
20274                         cat >>confdefs.h <<\_ACEOF
20275 #define HAVE_DGETTEXT 1
20276 _ACEOF
20277
20278 fi
20279
20280 fi
20281 done
20282
20283                     ;;
20284         esac
20285     fi
20286 fi
20287
20288 if test ${with_aixauth-'no'} != "no"; then
20289     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
20290         { echo "$as_me:$LINENO: using AIX general authentication" >&5
20291 echo "$as_me: using AIX general authentication" >&6;}
20292         cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_AIXAUTH 1
20294 _ACEOF
20295
20296         AUTH_OBJS="$AUTH_OBJS aix_auth.o";
20297         SUDO_LIBS="${SUDO_LIBS} -ls"
20298         AUTH_EXCL=AIX_AUTH
20299     fi
20300 fi
20301
20302 if test ${with_bsdauth-'no'} != "no"; then
20303     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20304   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20305 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20306 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20307   echo $ECHO_N "(cached) $ECHO_C" >&6
20308 fi
20309 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20310 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20311 else
20312   # Is the header compilable?
20313 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
20314 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321 $ac_includes_default
20322 #include <bsd_auth.h>
20323 _ACEOF
20324 rm -f conftest.$ac_objext
20325 if { (ac_try="$ac_compile"
20326 case "(($ac_try" in
20327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328   *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331   (eval "$ac_compile") 2>conftest.er1
20332   ac_status=$?
20333   grep -v '^ *+' conftest.er1 >conftest.err
20334   rm -f conftest.er1
20335   cat conftest.err >&5
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); } && {
20338          test -z "$ac_c_werror_flag" ||
20339          test ! -s conftest.err
20340        } && test -s conftest.$ac_objext; then
20341   ac_header_compiler=yes
20342 else
20343   echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20345
20346         ac_header_compiler=no
20347 fi
20348
20349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20351 echo "${ECHO_T}$ac_header_compiler" >&6; }
20352
20353 # Is the header present?
20354 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20355 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
20356 cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h.  */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h.  */
20362 #include <bsd_auth.h>
20363 _ACEOF
20364 if { (ac_try="$ac_cpp conftest.$ac_ext"
20365 case "(($ac_try" in
20366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367   *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20371   ac_status=$?
20372   grep -v '^ *+' conftest.er1 >conftest.err
20373   rm -f conftest.er1
20374   cat conftest.err >&5
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); } >/dev/null && {
20377          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20378          test ! -s conftest.err
20379        }; then
20380   ac_header_preproc=yes
20381 else
20382   echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20384
20385   ac_header_preproc=no
20386 fi
20387
20388 rm -f conftest.err conftest.$ac_ext
20389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20390 echo "${ECHO_T}$ac_header_preproc" >&6; }
20391
20392 # So?  What about this header?
20393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20394   yes:no: )
20395     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20396 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20397     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20398 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20399     ac_header_preproc=yes
20400     ;;
20401   no:yes:* )
20402     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20403 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20404     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
20405 echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
20406     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20407 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20408     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
20409 echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20410     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20411 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20412     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20413 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20414
20415     ;;
20416 esac
20417 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20418 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20419 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20420   echo $ECHO_N "(cached) $ECHO_C" >&6
20421 else
20422   ac_cv_header_bsd_auth_h=$ac_header_preproc
20423 fi
20424 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20425 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20426
20427 fi
20428 if test $ac_cv_header_bsd_auth_h = yes; then
20429   cat >>confdefs.h <<\_ACEOF
20430 #define HAVE_BSD_AUTH_H 1
20431 _ACEOF
20432
20433         AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20434         AUTH_EXCL=BSD_AUTH; BAMAN=""
20435 else
20436   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20437 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20438    { (exit 1); exit 1; }; }
20439 fi
20440
20441
20442 fi
20443
20444 if test ${CHECKSIA-'false'} = "true"; then
20445
20446 for ac_func in sia_ses_init
20447 do
20448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20452   echo $ECHO_N "(cached) $ECHO_C" >&6
20453 else
20454   cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h.  */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h.  */
20460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20462 #define $ac_func innocuous_$ac_func
20463
20464 /* System header to define __stub macros and hopefully few prototypes,
20465     which can conflict with char $ac_func (); below.
20466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20467     <limits.h> exists even on freestanding compilers.  */
20468
20469 #ifdef __STDC__
20470 # include <limits.h>
20471 #else
20472 # include <assert.h>
20473 #endif
20474
20475 #undef $ac_func
20476
20477 /* Override any GCC internal prototype to avoid an error.
20478    Use char because int might match the return type of a GCC
20479    builtin and then its argument prototype would still apply.  */
20480 #ifdef __cplusplus
20481 extern "C"
20482 #endif
20483 char $ac_func ();
20484 /* The GNU C library defines this for functions which it implements
20485     to always fail with ENOSYS.  Some functions are actually named
20486     something starting with __ and the normal name is an alias.  */
20487 #if defined __stub_$ac_func || defined __stub___$ac_func
20488 choke me
20489 #endif
20490
20491 int
20492 main ()
20493 {
20494 return $ac_func ();
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext conftest$ac_exeext
20500 if { (ac_try="$ac_link"
20501 case "(($ac_try" in
20502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503   *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506   (eval "$ac_link") 2>conftest.er1
20507   ac_status=$?
20508   grep -v '^ *+' conftest.er1 >conftest.err
20509   rm -f conftest.er1
20510   cat conftest.err >&5
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); } && {
20513          test -z "$ac_c_werror_flag" ||
20514          test ! -s conftest.err
20515        } && test -s conftest$ac_exeext &&
20516        $as_test_x conftest$ac_exeext; then
20517   eval "$as_ac_var=yes"
20518 else
20519   echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20521
20522         eval "$as_ac_var=no"
20523 fi
20524
20525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20526       conftest$ac_exeext conftest.$ac_ext
20527 fi
20528 ac_res=`eval echo '${'$as_ac_var'}'`
20529                { echo "$as_me:$LINENO: result: $ac_res" >&5
20530 echo "${ECHO_T}$ac_res" >&6; }
20531 if test `eval echo '${'$as_ac_var'}'` = yes; then
20532   cat >>confdefs.h <<_ACEOF
20533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20534 _ACEOF
20535  found=true
20536 else
20537   found=false
20538 fi
20539 done
20540
20541     if test "$found" = "true"; then
20542         AUTH_EXCL=SIA
20543         AUTH_OBJS="$AUTH_OBJS sia.o"
20544     fi
20545 fi
20546
20547 if test ${with_fwtk-'no'} != "no"; then
20548     if test "$with_fwtk" != "yes"; then
20549
20550     if test X"$with_rpath" = X"yes"; then
20551         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20552     else
20553         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20554     fi
20555     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20556         blibpath_add="${blibpath_add}:${with_fwtk}"
20557     fi
20558
20559         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20560         with_fwtk=yes
20561     fi
20562     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20563     AUTH_OBJS="$AUTH_OBJS fwtk.o"
20564 fi
20565
20566 if test ${with_SecurID-'no'} != "no"; then
20567     if test "$with_SecurID" != "yes"; then
20568         :
20569     elif test -d /usr/ace/examples; then
20570         with_SecurID=/usr/ace/examples
20571     else
20572         with_SecurID=/usr/ace
20573     fi
20574     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20575     _LDFLAGS="${LDFLAGS}"
20576
20577     if test X"$with_rpath" = X"yes"; then
20578         LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20579     else
20580         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20581     fi
20582     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20583         blibpath_add="${blibpath_add}:${with_SecurID}"
20584     fi
20585
20586     #
20587     # Determine whether to use the new or old SecurID API
20588     #
20589     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20590 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20591 if test "${ac_cv_lib_aceclnt_SD_Init+set}" = set; then
20592   echo $ECHO_N "(cached) $ECHO_C" >&6
20593 else
20594   ac_check_lib_save_LIBS=$LIBS
20595 LIBS="-laceclnt
20596             -lpthread
20597
20598      $LIBS"
20599 cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h.  */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h.  */
20605
20606 /* Override any GCC internal prototype to avoid an error.
20607    Use char because int might match the return type of a GCC
20608    builtin and then its argument prototype would still apply.  */
20609 #ifdef __cplusplus
20610 extern "C"
20611 #endif
20612 char SD_Init ();
20613 int
20614 main ()
20615 {
20616 return SD_Init ();
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 rm -f conftest.$ac_objext conftest$ac_exeext
20622 if { (ac_try="$ac_link"
20623 case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_link") 2>conftest.er1
20629   ac_status=$?
20630   grep -v '^ *+' conftest.er1 >conftest.err
20631   rm -f conftest.er1
20632   cat conftest.err >&5
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); } && {
20635          test -z "$ac_c_werror_flag" ||
20636          test ! -s conftest.err
20637        } && test -s conftest$ac_exeext &&
20638        $as_test_x conftest$ac_exeext; then
20639   ac_cv_lib_aceclnt_SD_Init=yes
20640 else
20641   echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644         ac_cv_lib_aceclnt_SD_Init=no
20645 fi
20646
20647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20648       conftest$ac_exeext conftest.$ac_ext
20649 LIBS=$ac_check_lib_save_LIBS
20650 fi
20651 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init" >&5
20652 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init" >&6; }
20653 if test $ac_cv_lib_aceclnt_SD_Init = yes; then
20654
20655             AUTH_OBJS="$AUTH_OBJS securid5.o";
20656             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20657
20658
20659
20660     if test X"$with_rpath" = X"yes"; then
20661         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20662     else
20663         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20664     fi
20665     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20666         blibpath_add="${blibpath_add}:${with_SecurID}"
20667     fi
20668
20669
20670 else
20671
20672             AUTH_OBJS="$AUTH_OBJS securid.o";
20673             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20674
20675 fi
20676
20677     LDFLAGS="${_LDFLAGS}"
20678 fi
20679
20680
20681 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20682     for auth in $AUTH_DEF; do
20683         case $auth in
20684             passwd)     : ${with_passwd='maybe'};;
20685         esac
20686     done
20687 fi
20688
20689 if test ${with_kerb4-'no'} != "no"; then
20690     cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_KERB4 1
20692 _ACEOF
20693
20694                 O_LDFLAGS="$LDFLAGS"
20695     if test "$with_kerb4" = "yes"; then
20696         found=no
20697         O_CPPFLAGS="$CPPFLAGS"
20698         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20699             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20700             cat >conftest.$ac_ext <<_ACEOF
20701 #include <krb.h>
20702 _ACEOF
20703 if { (ac_try="$ac_cpp conftest.$ac_ext"
20704 case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20710   ac_status=$?
20711   grep -v '^ *+' conftest.er1 >conftest.err
20712   rm -f conftest.er1
20713   cat conftest.err >&5
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); } >/dev/null && {
20716          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20717          test ! -s conftest.err
20718        }; then
20719   found=yes; break
20720 else
20721   echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20723
20724
20725 fi
20726
20727 rm -f conftest.err conftest.$ac_ext
20728         done
20729         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20730     else
20731
20732     if test X"$with_rpath" = X"yes"; then
20733         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20734     else
20735         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20736     fi
20737     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20738         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20739     fi
20740
20741
20742     if test X"$with_rpath" = X"yes"; then
20743         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20744     else
20745         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20746     fi
20747     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20748         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20749     fi
20750
20751         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20752         if test "${ac_cv_header_krb_h+set}" = set; then
20753   { echo "$as_me:$LINENO: checking for krb.h" >&5
20754 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20755 if test "${ac_cv_header_krb_h+set}" = set; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 fi
20758 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20759 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20760 else
20761   # Is the header compilable?
20762 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20763 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20764 cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h.  */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h.  */
20770 $ac_includes_default
20771 #include <krb.h>
20772 _ACEOF
20773 rm -f conftest.$ac_objext
20774 if { (ac_try="$ac_compile"
20775 case "(($ac_try" in
20776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777   *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780   (eval "$ac_compile") 2>conftest.er1
20781   ac_status=$?
20782   grep -v '^ *+' conftest.er1 >conftest.err
20783   rm -f conftest.er1
20784   cat conftest.err >&5
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); } && {
20787          test -z "$ac_c_werror_flag" ||
20788          test ! -s conftest.err
20789        } && test -s conftest.$ac_objext; then
20790   ac_header_compiler=yes
20791 else
20792   echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20794
20795         ac_header_compiler=no
20796 fi
20797
20798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20800 echo "${ECHO_T}$ac_header_compiler" >&6; }
20801
20802 # Is the header present?
20803 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20804 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20805 cat >conftest.$ac_ext <<_ACEOF
20806 /* confdefs.h.  */
20807 _ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h.  */
20811 #include <krb.h>
20812 _ACEOF
20813 if { (ac_try="$ac_cpp conftest.$ac_ext"
20814 case "(($ac_try" in
20815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816   *) ac_try_echo=$ac_try;;
20817 esac
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20820   ac_status=$?
20821   grep -v '^ *+' conftest.er1 >conftest.err
20822   rm -f conftest.er1
20823   cat conftest.err >&5
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); } >/dev/null && {
20826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20827          test ! -s conftest.err
20828        }; then
20829   ac_header_preproc=yes
20830 else
20831   echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20833
20834   ac_header_preproc=no
20835 fi
20836
20837 rm -f conftest.err conftest.$ac_ext
20838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20839 echo "${ECHO_T}$ac_header_preproc" >&6; }
20840
20841 # So?  What about this header?
20842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20843   yes:no: )
20844     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20845 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20846     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20847 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20848     ac_header_preproc=yes
20849     ;;
20850   no:yes:* )
20851     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20852 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20853     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
20854 echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
20855     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20856 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20857     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
20858 echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20859     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20860 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20861     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20862 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20863
20864     ;;
20865 esac
20866 { echo "$as_me:$LINENO: checking for krb.h" >&5
20867 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20868 if test "${ac_cv_header_krb_h+set}" = set; then
20869   echo $ECHO_N "(cached) $ECHO_C" >&6
20870 else
20871   ac_cv_header_krb_h=$ac_header_preproc
20872 fi
20873 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20874 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20875
20876 fi
20877 if test $ac_cv_header_krb_h = yes; then
20878   found=yes
20879 else
20880   found=no
20881 fi
20882
20883
20884     fi
20885     if test X"$found" = X"no"; then
20886         { 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
20887 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;}
20888     fi
20889
20890                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20891 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20892 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20893   echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895   ac_check_lib_save_LIBS=$LIBS
20896 LIBS="-ldes  $LIBS"
20897 cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h.  */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h.  */
20903
20904 /* Override any GCC internal prototype to avoid an error.
20905    Use char because int might match the return type of a GCC
20906    builtin and then its argument prototype would still apply.  */
20907 #ifdef __cplusplus
20908 extern "C"
20909 #endif
20910 char des_cbc_encrypt ();
20911 int
20912 main ()
20913 {
20914 return des_cbc_encrypt ();
20915   ;
20916   return 0;
20917 }
20918 _ACEOF
20919 rm -f conftest.$ac_objext conftest$ac_exeext
20920 if { (ac_try="$ac_link"
20921 case "(($ac_try" in
20922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923   *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926   (eval "$ac_link") 2>conftest.er1
20927   ac_status=$?
20928   grep -v '^ *+' conftest.er1 >conftest.err
20929   rm -f conftest.er1
20930   cat conftest.err >&5
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); } && {
20933          test -z "$ac_c_werror_flag" ||
20934          test ! -s conftest.err
20935        } && test -s conftest$ac_exeext &&
20936        $as_test_x conftest$ac_exeext; then
20937   ac_cv_lib_des_des_cbc_encrypt=yes
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942         ac_cv_lib_des_des_cbc_encrypt=no
20943 fi
20944
20945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20946       conftest$ac_exeext conftest.$ac_ext
20947 LIBS=$ac_check_lib_save_LIBS
20948 fi
20949 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20950 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20951 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20952   K4LIBS="-ldes"
20953 else
20954
20955         { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20956 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20957 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20958   echo $ECHO_N "(cached) $ECHO_C" >&6
20959 else
20960   ac_check_lib_save_LIBS=$LIBS
20961 LIBS="-ldes425  $LIBS"
20962 cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h.  */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h.  */
20968
20969 /* Override any GCC internal prototype to avoid an error.
20970    Use char because int might match the return type of a GCC
20971    builtin and then its argument prototype would still apply.  */
20972 #ifdef __cplusplus
20973 extern "C"
20974 #endif
20975 char des_cbc_encrypt ();
20976 int
20977 main ()
20978 {
20979 return des_cbc_encrypt ();
20980   ;
20981   return 0;
20982 }
20983 _ACEOF
20984 rm -f conftest.$ac_objext conftest$ac_exeext
20985 if { (ac_try="$ac_link"
20986 case "(($ac_try" in
20987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988   *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991   (eval "$ac_link") 2>conftest.er1
20992   ac_status=$?
20993   grep -v '^ *+' conftest.er1 >conftest.err
20994   rm -f conftest.er1
20995   cat conftest.err >&5
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); } && {
20998          test -z "$ac_c_werror_flag" ||
20999          test ! -s conftest.err
21000        } && test -s conftest$ac_exeext &&
21001        $as_test_x conftest$ac_exeext; then
21002   ac_cv_lib_des425_des_cbc_encrypt=yes
21003 else
21004   echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21006
21007         ac_cv_lib_des425_des_cbc_encrypt=no
21008 fi
21009
21010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21011       conftest$ac_exeext conftest.$ac_ext
21012 LIBS=$ac_check_lib_save_LIBS
21013 fi
21014 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21015 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21016 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21017   K4LIBS="-ldes425"
21018 else
21019   K4LIBS=""
21020 fi
21021
21022
21023 fi
21024
21025                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
21026 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
21027     cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h.  */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h.  */
21033 #include <krb.h>
21034 int
21035 main ()
21036 {
21037 const char *tmp = krb4_version;
21038   ;
21039   return 0;
21040 }
21041 _ACEOF
21042 rm -f conftest.$ac_objext
21043 if { (ac_try="$ac_compile"
21044 case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049   (eval "$ac_compile") 2>conftest.er1
21050   ac_status=$?
21051   grep -v '^ *+' conftest.er1 >conftest.err
21052   rm -f conftest.er1
21053   cat conftest.err >&5
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } && {
21056          test -z "$ac_c_werror_flag" ||
21057          test ! -s conftest.err
21058        } && test -s conftest.$ac_objext; then
21059
21060             { echo "$as_me:$LINENO: result: yes" >&5
21061 echo "${ECHO_T}yes" >&6; }
21062             K4LIBS="${K4LIBS} -lcom_err"
21063             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21064 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21065 if test "${ac_cv_lib_roken_main+set}" = set; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068   ac_check_lib_save_LIBS=$LIBS
21069 LIBS="-lroken  $LIBS"
21070 cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h.  */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h.  */
21076
21077
21078 int
21079 main ()
21080 {
21081 return main ();
21082   ;
21083   return 0;
21084 }
21085 _ACEOF
21086 rm -f conftest.$ac_objext conftest$ac_exeext
21087 if { (ac_try="$ac_link"
21088 case "(($ac_try" in
21089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090   *) ac_try_echo=$ac_try;;
21091 esac
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093   (eval "$ac_link") 2>conftest.er1
21094   ac_status=$?
21095   grep -v '^ *+' conftest.er1 >conftest.err
21096   rm -f conftest.er1
21097   cat conftest.err >&5
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); } && {
21100          test -z "$ac_c_werror_flag" ||
21101          test ! -s conftest.err
21102        } && test -s conftest$ac_exeext &&
21103        $as_test_x conftest$ac_exeext; then
21104   ac_cv_lib_roken_main=yes
21105 else
21106   echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21108
21109         ac_cv_lib_roken_main=no
21110 fi
21111
21112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21113       conftest$ac_exeext conftest.$ac_ext
21114 LIBS=$ac_check_lib_save_LIBS
21115 fi
21116 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21117 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21118 if test $ac_cv_lib_roken_main = yes; then
21119   K4LIBS="${K4LIBS} -lroken"
21120 fi
21121
21122
21123 else
21124   echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21126
21127
21128             { echo "$as_me:$LINENO: result: no" >&5
21129 echo "${ECHO_T}no" >&6; }
21130
21131
21132 fi
21133
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135                 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
21136 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
21137 if test "${ac_cv_lib_krb_main+set}" = set; then
21138   echo $ECHO_N "(cached) $ECHO_C" >&6
21139 else
21140   ac_check_lib_save_LIBS=$LIBS
21141 LIBS="-lkrb $K4LIBS $LIBS"
21142 cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h.  */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h.  */
21148
21149
21150 int
21151 main ()
21152 {
21153 return main ();
21154   ;
21155   return 0;
21156 }
21157 _ACEOF
21158 rm -f conftest.$ac_objext conftest$ac_exeext
21159 if { (ac_try="$ac_link"
21160 case "(($ac_try" in
21161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162   *) ac_try_echo=$ac_try;;
21163 esac
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165   (eval "$ac_link") 2>conftest.er1
21166   ac_status=$?
21167   grep -v '^ *+' conftest.er1 >conftest.err
21168   rm -f conftest.er1
21169   cat conftest.err >&5
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); } && {
21172          test -z "$ac_c_werror_flag" ||
21173          test ! -s conftest.err
21174        } && test -s conftest$ac_exeext &&
21175        $as_test_x conftest$ac_exeext; then
21176   ac_cv_lib_krb_main=yes
21177 else
21178   echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21180
21181         ac_cv_lib_krb_main=no
21182 fi
21183
21184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21185       conftest$ac_exeext conftest.$ac_ext
21186 LIBS=$ac_check_lib_save_LIBS
21187 fi
21188 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
21189 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6; }
21190 if test $ac_cv_lib_krb_main = yes; then
21191   K4LIBS="-lkrb $K4LIBS"
21192 else
21193
21194         { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
21195 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
21196 if test "${ac_cv_lib_krb4_main+set}" = set; then
21197   echo $ECHO_N "(cached) $ECHO_C" >&6
21198 else
21199   ac_check_lib_save_LIBS=$LIBS
21200 LIBS="-lkrb4 $K4LIBS $LIBS"
21201 cat >conftest.$ac_ext <<_ACEOF
21202 /* confdefs.h.  */
21203 _ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h.  */
21207
21208
21209 int
21210 main ()
21211 {
21212 return main ();
21213   ;
21214   return 0;
21215 }
21216 _ACEOF
21217 rm -f conftest.$ac_objext conftest$ac_exeext
21218 if { (ac_try="$ac_link"
21219 case "(($ac_try" in
21220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221   *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224   (eval "$ac_link") 2>conftest.er1
21225   ac_status=$?
21226   grep -v '^ *+' conftest.er1 >conftest.err
21227   rm -f conftest.er1
21228   cat conftest.err >&5
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); } && {
21231          test -z "$ac_c_werror_flag" ||
21232          test ! -s conftest.err
21233        } && test -s conftest$ac_exeext &&
21234        $as_test_x conftest$ac_exeext; then
21235   ac_cv_lib_krb4_main=yes
21236 else
21237   echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21239
21240         ac_cv_lib_krb4_main=no
21241 fi
21242
21243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21244       conftest$ac_exeext conftest.$ac_ext
21245 LIBS=$ac_check_lib_save_LIBS
21246 fi
21247 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
21248 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6; }
21249 if test $ac_cv_lib_krb4_main = yes; then
21250   K4LIBS="-lkrb4 $K4LIBS"
21251 else
21252   K4LIBS="-lkrb $K4LIBS"
21253             { 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
21254 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;}
21255
21256 fi
21257
21258
21259 fi
21260
21261     LDFLAGS="$O_LDFLAGS"
21262     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
21263     AUTH_OBJS="$AUTH_OBJS kerb4.o"
21264 fi
21265
21266 if test ${with_kerb5-'no'} != "no"; then
21267     # Extract the first word of "krb5-config", so it can be a program name with args.
21268 set dummy krb5-config; ac_word=$2
21269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21271 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
21272   echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274   if test -n "$KRB5CONFIG"; then
21275   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
21276 else
21277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21278 for as_dir in $PATH
21279 do
21280   IFS=$as_save_IFS
21281   test -z "$as_dir" && as_dir=.
21282   for ac_exec_ext in '' $ac_executable_extensions; do
21283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21284     ac_cv_prog_KRB5CONFIG="yes"
21285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21286     break 2
21287   fi
21288 done
21289 done
21290 IFS=$as_save_IFS
21291
21292   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
21293 fi
21294 fi
21295 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
21296 if test -n "$KRB5CONFIG"; then
21297   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
21298 echo "${ECHO_T}$KRB5CONFIG" >&6; }
21299 else
21300   { echo "$as_me:$LINENO: result: no" >&5
21301 echo "${ECHO_T}no" >&6; }
21302 fi
21303
21304
21305     if test -n "$KRB5CONFIG"; then
21306         cat >>confdefs.h <<\_ACEOF
21307 #define HAVE_KERB5 1
21308 _ACEOF
21309
21310         AUTH_OBJS="$AUTH_OBJS kerb5.o"
21311         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
21312         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
21313                                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21314 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21315         cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h.  */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h.  */
21321 #include <krb5.h>
21322 int
21323 main ()
21324 {
21325 const char *tmp = heimdal_version;
21326   ;
21327   return 0;
21328 }
21329 _ACEOF
21330 rm -f conftest.$ac_objext
21331 if { (ac_try="$ac_compile"
21332 case "(($ac_try" in
21333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334   *) ac_try_echo=$ac_try;;
21335 esac
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337   (eval "$ac_compile") 2>conftest.er1
21338   ac_status=$?
21339   grep -v '^ *+' conftest.er1 >conftest.err
21340   rm -f conftest.er1
21341   cat conftest.err >&5
21342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343   (exit $ac_status); } && {
21344          test -z "$ac_c_werror_flag" ||
21345          test ! -s conftest.err
21346        } && test -s conftest.$ac_objext; then
21347
21348                 { echo "$as_me:$LINENO: result: yes" >&5
21349 echo "${ECHO_T}yes" >&6; }
21350                 cat >>confdefs.h <<\_ACEOF
21351 #define HAVE_HEIMDAL 1
21352 _ACEOF
21353
21354
21355 else
21356   echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21358
21359
21360                 { echo "$as_me:$LINENO: result: no" >&5
21361 echo "${ECHO_T}no" >&6; }
21362
21363
21364 fi
21365
21366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21367     fi
21368 fi
21369 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21370     cat >>confdefs.h <<\_ACEOF
21371 #define HAVE_KERB5 1
21372 _ACEOF
21373
21374                 if test "$with_kerb5" = "yes"; then
21375         found=no
21376         O_CPPFLAGS="$CPPFLAGS"
21377         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21378             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21379             cat >conftest.$ac_ext <<_ACEOF
21380 #include <krb5.h>
21381 _ACEOF
21382 if { (ac_try="$ac_cpp conftest.$ac_ext"
21383 case "(($ac_try" in
21384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385   *) ac_try_echo=$ac_try;;
21386 esac
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21389   ac_status=$?
21390   grep -v '^ *+' conftest.er1 >conftest.err
21391   rm -f conftest.er1
21392   cat conftest.err >&5
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); } >/dev/null && {
21395          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21396          test ! -s conftest.err
21397        }; then
21398   found=yes; break
21399 else
21400   echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21402
21403
21404 fi
21405
21406 rm -f conftest.err conftest.$ac_ext
21407         done
21408         if test X"$found" = X"no"; then
21409             CPPFLAGS="$O_CPPFLAGS"
21410             { 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
21411 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;}
21412         fi
21413     else
21414
21415     if test X"$with_rpath" = X"yes"; then
21416         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21417     else
21418         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21419     fi
21420     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21421         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21422     fi
21423
21424         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21425     fi
21426
21427                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21428 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21429     cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h.  */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h.  */
21435 #include <krb5.h>
21436 int
21437 main ()
21438 {
21439 const char *tmp = heimdal_version;
21440   ;
21441   return 0;
21442 }
21443 _ACEOF
21444 rm -f conftest.$ac_objext
21445 if { (ac_try="$ac_compile"
21446 case "(($ac_try" in
21447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448   *) ac_try_echo=$ac_try;;
21449 esac
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451   (eval "$ac_compile") 2>conftest.er1
21452   ac_status=$?
21453   grep -v '^ *+' conftest.er1 >conftest.err
21454   rm -f conftest.er1
21455   cat conftest.err >&5
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); } && {
21458          test -z "$ac_c_werror_flag" ||
21459          test ! -s conftest.err
21460        } && test -s conftest.$ac_objext; then
21461
21462             { echo "$as_me:$LINENO: result: yes" >&5
21463 echo "${ECHO_T}yes" >&6; }
21464             cat >>confdefs.h <<\_ACEOF
21465 #define HAVE_HEIMDAL 1
21466 _ACEOF
21467
21468             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21469             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21470 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21471 if test "${ac_cv_lib_roken_main+set}" = set; then
21472   echo $ECHO_N "(cached) $ECHO_C" >&6
21473 else
21474   ac_check_lib_save_LIBS=$LIBS
21475 LIBS="-lroken  $LIBS"
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h.  */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h.  */
21482
21483
21484 int
21485 main ()
21486 {
21487 return main ();
21488   ;
21489   return 0;
21490 }
21491 _ACEOF
21492 rm -f conftest.$ac_objext conftest$ac_exeext
21493 if { (ac_try="$ac_link"
21494 case "(($ac_try" in
21495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496   *) ac_try_echo=$ac_try;;
21497 esac
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499   (eval "$ac_link") 2>conftest.er1
21500   ac_status=$?
21501   grep -v '^ *+' conftest.er1 >conftest.err
21502   rm -f conftest.er1
21503   cat conftest.err >&5
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); } && {
21506          test -z "$ac_c_werror_flag" ||
21507          test ! -s conftest.err
21508        } && test -s conftest$ac_exeext &&
21509        $as_test_x conftest$ac_exeext; then
21510   ac_cv_lib_roken_main=yes
21511 else
21512   echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21514
21515         ac_cv_lib_roken_main=no
21516 fi
21517
21518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21519       conftest$ac_exeext conftest.$ac_ext
21520 LIBS=$ac_check_lib_save_LIBS
21521 fi
21522 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21523 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21524 if test $ac_cv_lib_roken_main = yes; then
21525   SUDO_LIBS="${SUDO_LIBS} -lroken"
21526 fi
21527
21528
21529 else
21530   echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21532
21533
21534             { echo "$as_me:$LINENO: result: no" >&5
21535 echo "${ECHO_T}no" >&6; }
21536             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21537             { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21538 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21539 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21540   echo $ECHO_N "(cached) $ECHO_C" >&6
21541 else
21542   ac_check_lib_save_LIBS=$LIBS
21543 LIBS="-lkrb5support  $LIBS"
21544 cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h.  */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h.  */
21550
21551
21552 int
21553 main ()
21554 {
21555 return main ();
21556   ;
21557   return 0;
21558 }
21559 _ACEOF
21560 rm -f conftest.$ac_objext conftest$ac_exeext
21561 if { (ac_try="$ac_link"
21562 case "(($ac_try" in
21563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564   *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567   (eval "$ac_link") 2>conftest.er1
21568   ac_status=$?
21569   grep -v '^ *+' conftest.er1 >conftest.err
21570   rm -f conftest.er1
21571   cat conftest.err >&5
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); } && {
21574          test -z "$ac_c_werror_flag" ||
21575          test ! -s conftest.err
21576        } && test -s conftest$ac_exeext &&
21577        $as_test_x conftest$ac_exeext; then
21578   ac_cv_lib_krb5support_main=yes
21579 else
21580   echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21582
21583         ac_cv_lib_krb5support_main=no
21584 fi
21585
21586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21587       conftest$ac_exeext conftest.$ac_ext
21588 LIBS=$ac_check_lib_save_LIBS
21589 fi
21590 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21591 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21592 if test $ac_cv_lib_krb5support_main = yes; then
21593   SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21594 fi
21595
21596
21597 fi
21598
21599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600     AUTH_OBJS="$AUTH_OBJS kerb5.o"
21601     _LIBS="$LIBS"
21602     LIBS="${LIBS} ${SUDO_LIBS}"
21603
21604
21605 for ac_func in krb5_verify_user krb5_init_secure_context
21606 do
21607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21611   echo $ECHO_N "(cached) $ECHO_C" >&6
21612 else
21613   cat >conftest.$ac_ext <<_ACEOF
21614 /* confdefs.h.  */
21615 _ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h.  */
21619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21621 #define $ac_func innocuous_$ac_func
21622
21623 /* System header to define __stub macros and hopefully few prototypes,
21624     which can conflict with char $ac_func (); below.
21625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21626     <limits.h> exists even on freestanding compilers.  */
21627
21628 #ifdef __STDC__
21629 # include <limits.h>
21630 #else
21631 # include <assert.h>
21632 #endif
21633
21634 #undef $ac_func
21635
21636 /* Override any GCC internal prototype to avoid an error.
21637    Use char because int might match the return type of a GCC
21638    builtin and then its argument prototype would still apply.  */
21639 #ifdef __cplusplus
21640 extern "C"
21641 #endif
21642 char $ac_func ();
21643 /* The GNU C library defines this for functions which it implements
21644     to always fail with ENOSYS.  Some functions are actually named
21645     something starting with __ and the normal name is an alias.  */
21646 #if defined __stub_$ac_func || defined __stub___$ac_func
21647 choke me
21648 #endif
21649
21650 int
21651 main ()
21652 {
21653 return $ac_func ();
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest.$ac_objext conftest$ac_exeext
21659 if { (ac_try="$ac_link"
21660 case "(($ac_try" in
21661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662   *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665   (eval "$ac_link") 2>conftest.er1
21666   ac_status=$?
21667   grep -v '^ *+' conftest.er1 >conftest.err
21668   rm -f conftest.er1
21669   cat conftest.err >&5
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); } && {
21672          test -z "$ac_c_werror_flag" ||
21673          test ! -s conftest.err
21674        } && test -s conftest$ac_exeext &&
21675        $as_test_x conftest$ac_exeext; then
21676   eval "$as_ac_var=yes"
21677 else
21678   echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21680
21681         eval "$as_ac_var=no"
21682 fi
21683
21684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21685       conftest$ac_exeext conftest.$ac_ext
21686 fi
21687 ac_res=`eval echo '${'$as_ac_var'}'`
21688                { echo "$as_me:$LINENO: result: $ac_res" >&5
21689 echo "${ECHO_T}$ac_res" >&6; }
21690 if test `eval echo '${'$as_ac_var'}'` = yes; then
21691   cat >>confdefs.h <<_ACEOF
21692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21693 _ACEOF
21694
21695 fi
21696 done
21697
21698     LIBS="$_LIBS"
21699 fi
21700
21701 if test ${with_AFS-'no'} = "yes"; then
21702
21703     # looks like the "standard" place for AFS libs is /usr/afsws/lib
21704     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21705     for i in $AFSLIBDIRS; do
21706         if test -d ${i}; then
21707
21708     if test X"$with_rpath" = X"yes"; then
21709         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21710     else
21711         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21712     fi
21713     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21714         blibpath_add="${blibpath_add}:$i"
21715     fi
21716
21717             FOUND_AFSLIBDIR=true
21718         fi
21719     done
21720     if test -z "$FOUND_AFSLIBDIR"; then
21721         { 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
21722 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;}
21723     fi
21724
21725     # Order is important here.  Note that we build AFS_LIBS from right to left
21726     # since AFS_LIBS may be initialized with BSD compat libs that must go last
21727     AFS_LIBS="-laudit ${AFS_LIBS}"
21728     for i in $AFSLIBDIRS; do
21729         if test -f ${i}/util.a; then
21730             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21731             FOUND_UTIL_A=true
21732             break;
21733         fi
21734     done
21735     if test -z "$FOUND_UTIL_A"; then
21736         AFS_LIBS="-lutil ${AFS_LIBS}"
21737     fi
21738     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21739
21740     # AFS includes may live in /usr/include on some machines...
21741     for i in /usr/afsws/include; do
21742         if test -d ${i}; then
21743             CPPFLAGS="${CPPFLAGS} -I${i}"
21744             FOUND_AFSINCDIR=true
21745         fi
21746     done
21747
21748     if test -z "$FOUND_AFSLIBDIR"; then
21749         { 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
21750 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;}
21751     fi
21752
21753     AUTH_OBJS="$AUTH_OBJS afs.o"
21754 fi
21755
21756 if test ${with_DCE-'no'} = "yes"; then
21757     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21758     SUDO_LIBS="${SUDO_LIBS} -ldce"
21759     AUTH_OBJS="$AUTH_OBJS dce.o"
21760 fi
21761
21762 if test ${with_skey-'no'} = "yes"; then
21763     O_LDFLAGS="$LDFLAGS"
21764     if test "$with_skey" != "yes"; then
21765         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21766
21767     if test X"$with_rpath" = X"yes"; then
21768         LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21769     else
21770         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21771     fi
21772     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21773         blibpath_add="${blibpath_add}:${with_skey}/lib"
21774     fi
21775
21776
21777     if test X"$with_rpath" = X"yes"; then
21778         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21779     else
21780         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21781     fi
21782     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21783         blibpath_add="${blibpath_add}:${with_skey}/lib"
21784     fi
21785
21786         cat >conftest.$ac_ext <<_ACEOF
21787 #include <skey.h>
21788 _ACEOF
21789 if { (ac_try="$ac_cpp conftest.$ac_ext"
21790 case "(($ac_try" in
21791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792   *) ac_try_echo=$ac_try;;
21793 esac
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21796   ac_status=$?
21797   grep -v '^ *+' conftest.er1 >conftest.err
21798   rm -f conftest.er1
21799   cat conftest.err >&5
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); } >/dev/null && {
21802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21803          test ! -s conftest.err
21804        }; then
21805   found=yes
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810   found=no
21811 fi
21812
21813 rm -f conftest.err conftest.$ac_ext
21814     else
21815         found=no
21816         O_CPPFLAGS="$CPPFLAGS"
21817         for dir in "" "/usr/local" "/usr/contrib"; do
21818             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21819             cat >conftest.$ac_ext <<_ACEOF
21820 #include <skey.h>
21821 _ACEOF
21822 if { (ac_try="$ac_cpp conftest.$ac_ext"
21823 case "(($ac_try" in
21824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825   *) ac_try_echo=$ac_try;;
21826 esac
21827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21829   ac_status=$?
21830   grep -v '^ *+' conftest.er1 >conftest.err
21831   rm -f conftest.er1
21832   cat conftest.err >&5
21833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834   (exit $ac_status); } >/dev/null && {
21835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21836          test ! -s conftest.err
21837        }; then
21838   found=yes; break
21839 else
21840   echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21842
21843
21844 fi
21845
21846 rm -f conftest.err conftest.$ac_ext
21847         done
21848         if test "$found" = "no" -o -z "$dir"; then
21849             CPPFLAGS="$O_CPPFLAGS"
21850         else
21851
21852     if test X"$with_rpath" = X"yes"; then
21853         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21854     else
21855         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21856     fi
21857     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21858         blibpath_add="${blibpath_add}:${dir}/lib"
21859     fi
21860
21861
21862     if test X"$with_rpath" = X"yes"; then
21863         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21864     else
21865         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21866     fi
21867     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21868         blibpath_add="${blibpath_add}:${dir}/lib"
21869     fi
21870
21871         fi
21872     fi
21873     if test "$found" = "no"; then
21874         { 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
21875 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;}
21876     fi
21877     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21878 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21879 if test "${ac_cv_lib_skey_main+set}" = set; then
21880   echo $ECHO_N "(cached) $ECHO_C" >&6
21881 else
21882   ac_check_lib_save_LIBS=$LIBS
21883 LIBS="-lskey  $LIBS"
21884 cat >conftest.$ac_ext <<_ACEOF
21885 /* confdefs.h.  */
21886 _ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h.  */
21890
21891
21892 int
21893 main ()
21894 {
21895 return main ();
21896   ;
21897   return 0;
21898 }
21899 _ACEOF
21900 rm -f conftest.$ac_objext conftest$ac_exeext
21901 if { (ac_try="$ac_link"
21902 case "(($ac_try" in
21903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904   *) ac_try_echo=$ac_try;;
21905 esac
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907   (eval "$ac_link") 2>conftest.er1
21908   ac_status=$?
21909   grep -v '^ *+' conftest.er1 >conftest.err
21910   rm -f conftest.er1
21911   cat conftest.err >&5
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); } && {
21914          test -z "$ac_c_werror_flag" ||
21915          test ! -s conftest.err
21916        } && test -s conftest$ac_exeext &&
21917        $as_test_x conftest$ac_exeext; then
21918   ac_cv_lib_skey_main=yes
21919 else
21920   echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923         ac_cv_lib_skey_main=no
21924 fi
21925
21926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21927       conftest$ac_exeext conftest.$ac_ext
21928 LIBS=$ac_check_lib_save_LIBS
21929 fi
21930 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21931 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21932 if test $ac_cv_lib_skey_main = yes; then
21933   found=yes
21934 else
21935   { 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
21936 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;}
21937 fi
21938
21939     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21940 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21941 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21942   echo $ECHO_N "(cached) $ECHO_C" >&6
21943 else
21944   ac_check_lib_save_LIBS=$LIBS
21945 LIBS="-lskey  $LIBS"
21946 cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h.  */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h.  */
21952
21953 /* Override any GCC internal prototype to avoid an error.
21954    Use char because int might match the return type of a GCC
21955    builtin and then its argument prototype would still apply.  */
21956 #ifdef __cplusplus
21957 extern "C"
21958 #endif
21959 char skeyaccess ();
21960 int
21961 main ()
21962 {
21963 return skeyaccess ();
21964   ;
21965   return 0;
21966 }
21967 _ACEOF
21968 rm -f conftest.$ac_objext conftest$ac_exeext
21969 if { (ac_try="$ac_link"
21970 case "(($ac_try" in
21971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972   *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975   (eval "$ac_link") 2>conftest.er1
21976   ac_status=$?
21977   grep -v '^ *+' conftest.er1 >conftest.err
21978   rm -f conftest.er1
21979   cat conftest.err >&5
21980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); } && {
21982          test -z "$ac_c_werror_flag" ||
21983          test ! -s conftest.err
21984        } && test -s conftest$ac_exeext &&
21985        $as_test_x conftest$ac_exeext; then
21986   ac_cv_lib_skey_skeyaccess=yes
21987 else
21988   echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21990
21991         ac_cv_lib_skey_skeyaccess=no
21992 fi
21993
21994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21995       conftest$ac_exeext conftest.$ac_ext
21996 LIBS=$ac_check_lib_save_LIBS
21997 fi
21998 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21999 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
22000 if test $ac_cv_lib_skey_skeyaccess = yes; then
22001   cat >>confdefs.h <<\_ACEOF
22002 #define HAVE_SKEYACCESS 1
22003 _ACEOF
22004
22005 fi
22006
22007     LDFLAGS="$O_LDFLAGS"
22008     SUDO_LIBS="${SUDO_LIBS} -lskey"
22009     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22010 fi
22011
22012 if test ${with_opie-'no'} = "yes"; then
22013     O_LDFLAGS="$LDFLAGS"
22014     if test "$with_opie" != "yes"; then
22015         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
22016
22017     if test X"$with_rpath" = X"yes"; then
22018         LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22019     else
22020         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
22021     fi
22022     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22023         blibpath_add="${blibpath_add}:${with_opie}/lib"
22024     fi
22025
22026
22027     if test X"$with_rpath" = X"yes"; then
22028         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
22029     else
22030         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
22031     fi
22032     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22033         blibpath_add="${blibpath_add}:${with_opie}/lib"
22034     fi
22035
22036         cat >conftest.$ac_ext <<_ACEOF
22037 #include <opie.h>
22038 _ACEOF
22039 if { (ac_try="$ac_cpp conftest.$ac_ext"
22040 case "(($ac_try" in
22041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042   *) ac_try_echo=$ac_try;;
22043 esac
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22046   ac_status=$?
22047   grep -v '^ *+' conftest.er1 >conftest.err
22048   rm -f conftest.er1
22049   cat conftest.err >&5
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); } >/dev/null && {
22052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22053          test ! -s conftest.err
22054        }; then
22055   found=yes
22056 else
22057   echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22059
22060   found=no
22061 fi
22062
22063 rm -f conftest.err conftest.$ac_ext
22064     else
22065         found=no
22066         O_CPPFLAGS="$CPPFLAGS"
22067         for dir in "" "/usr/local" "/usr/contrib"; do
22068             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
22069             cat >conftest.$ac_ext <<_ACEOF
22070 #include <opie.h>
22071 _ACEOF
22072 if { (ac_try="$ac_cpp conftest.$ac_ext"
22073 case "(($ac_try" in
22074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075   *) ac_try_echo=$ac_try;;
22076 esac
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22079   ac_status=$?
22080   grep -v '^ *+' conftest.er1 >conftest.err
22081   rm -f conftest.er1
22082   cat conftest.err >&5
22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084   (exit $ac_status); } >/dev/null && {
22085          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22086          test ! -s conftest.err
22087        }; then
22088   found=yes; break
22089 else
22090   echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22092
22093
22094 fi
22095
22096 rm -f conftest.err conftest.$ac_ext
22097         done
22098         if test "$found" = "no" -o -z "$dir"; then
22099             CPPFLAGS="$O_CPPFLAGS"
22100         else
22101
22102     if test X"$with_rpath" = X"yes"; then
22103         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
22104     else
22105         LDFLAGS="${LDFLAGS} -L${dir}/lib"
22106     fi
22107     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22108         blibpath_add="${blibpath_add}:${dir}/lib"
22109     fi
22110
22111
22112     if test X"$with_rpath" = X"yes"; then
22113         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
22114     else
22115         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
22116     fi
22117     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22118         blibpath_add="${blibpath_add}:${dir}/lib"
22119     fi
22120
22121         fi
22122     fi
22123     if test "$found" = "no"; then
22124         { 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
22125 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;}
22126     fi
22127     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
22128 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
22129 if test "${ac_cv_lib_opie_main+set}" = set; then
22130   echo $ECHO_N "(cached) $ECHO_C" >&6
22131 else
22132   ac_check_lib_save_LIBS=$LIBS
22133 LIBS="-lopie  $LIBS"
22134 cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h.  */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h.  */
22140
22141
22142 int
22143 main ()
22144 {
22145 return main ();
22146   ;
22147   return 0;
22148 }
22149 _ACEOF
22150 rm -f conftest.$ac_objext conftest$ac_exeext
22151 if { (ac_try="$ac_link"
22152 case "(($ac_try" in
22153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154   *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157   (eval "$ac_link") 2>conftest.er1
22158   ac_status=$?
22159   grep -v '^ *+' conftest.er1 >conftest.err
22160   rm -f conftest.er1
22161   cat conftest.err >&5
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); } && {
22164          test -z "$ac_c_werror_flag" ||
22165          test ! -s conftest.err
22166        } && test -s conftest$ac_exeext &&
22167        $as_test_x conftest$ac_exeext; then
22168   ac_cv_lib_opie_main=yes
22169 else
22170   echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22172
22173         ac_cv_lib_opie_main=no
22174 fi
22175
22176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22177       conftest$ac_exeext conftest.$ac_ext
22178 LIBS=$ac_check_lib_save_LIBS
22179 fi
22180 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
22181 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
22182 if test $ac_cv_lib_opie_main = yes; then
22183   found=yes
22184 else
22185   { 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
22186 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;}
22187 fi
22188
22189     LDFLAGS="$O_LDFLAGS"
22190     SUDO_LIBS="${SUDO_LIBS} -lopie"
22191     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
22192 fi
22193
22194 if test ${with_passwd-'no'} != "no"; then
22195                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
22196         { echo "$as_me:$LINENO: checking for library containing crypt" >&5
22197 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22198 if test "${ac_cv_search_crypt+set}" = set; then
22199   echo $ECHO_N "(cached) $ECHO_C" >&6
22200 else
22201   ac_func_search_save_LIBS=$LIBS
22202 cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h.  */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h.  */
22208
22209 /* Override any GCC internal prototype to avoid an error.
22210    Use char because int might match the return type of a GCC
22211    builtin and then its argument prototype would still apply.  */
22212 #ifdef __cplusplus
22213 extern "C"
22214 #endif
22215 char crypt ();
22216 int
22217 main ()
22218 {
22219 return crypt ();
22220   ;
22221   return 0;
22222 }
22223 _ACEOF
22224 for ac_lib in '' crypt crypt_d ufc; do
22225   if test -z "$ac_lib"; then
22226     ac_res="none required"
22227   else
22228     ac_res=-l$ac_lib
22229     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22230   fi
22231   rm -f conftest.$ac_objext conftest$ac_exeext
22232 if { (ac_try="$ac_link"
22233 case "(($ac_try" in
22234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235   *) ac_try_echo=$ac_try;;
22236 esac
22237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22238   (eval "$ac_link") 2>conftest.er1
22239   ac_status=$?
22240   grep -v '^ *+' conftest.er1 >conftest.err
22241   rm -f conftest.er1
22242   cat conftest.err >&5
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); } && {
22245          test -z "$ac_c_werror_flag" ||
22246          test ! -s conftest.err
22247        } && test -s conftest$ac_exeext &&
22248        $as_test_x conftest$ac_exeext; then
22249   ac_cv_search_crypt=$ac_res
22250 else
22251   echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254
22255 fi
22256
22257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22258       conftest$ac_exeext
22259   if test "${ac_cv_search_crypt+set}" = set; then
22260   break
22261 fi
22262 done
22263 if test "${ac_cv_search_crypt+set}" = set; then
22264   :
22265 else
22266   ac_cv_search_crypt=no
22267 fi
22268 rm conftest.$ac_ext
22269 LIBS=$ac_func_search_save_LIBS
22270 fi
22271 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22272 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22273 ac_res=$ac_cv_search_crypt
22274 if test "$ac_res" != no; then
22275   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22276   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22277 fi
22278
22279     fi
22280
22281     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
22282         _LIBS="$LIBS"
22283         LIBS="$LIBS $shadow_libs"
22284         found=no
22285
22286 for ac_func in $shadow_funcs
22287 do
22288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22292   echo $ECHO_N "(cached) $ECHO_C" >&6
22293 else
22294   cat >conftest.$ac_ext <<_ACEOF
22295 /* confdefs.h.  */
22296 _ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h.  */
22300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22302 #define $ac_func innocuous_$ac_func
22303
22304 /* System header to define __stub macros and hopefully few prototypes,
22305     which can conflict with char $ac_func (); below.
22306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22307     <limits.h> exists even on freestanding compilers.  */
22308
22309 #ifdef __STDC__
22310 # include <limits.h>
22311 #else
22312 # include <assert.h>
22313 #endif
22314
22315 #undef $ac_func
22316
22317 /* Override any GCC internal prototype to avoid an error.
22318    Use char because int might match the return type of a GCC
22319    builtin and then its argument prototype would still apply.  */
22320 #ifdef __cplusplus
22321 extern "C"
22322 #endif
22323 char $ac_func ();
22324 /* The GNU C library defines this for functions which it implements
22325     to always fail with ENOSYS.  Some functions are actually named
22326     something starting with __ and the normal name is an alias.  */
22327 #if defined __stub_$ac_func || defined __stub___$ac_func
22328 choke me
22329 #endif
22330
22331 int
22332 main ()
22333 {
22334 return $ac_func ();
22335   ;
22336   return 0;
22337 }
22338 _ACEOF
22339 rm -f conftest.$ac_objext conftest$ac_exeext
22340 if { (ac_try="$ac_link"
22341 case "(($ac_try" in
22342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343   *) ac_try_echo=$ac_try;;
22344 esac
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346   (eval "$ac_link") 2>conftest.er1
22347   ac_status=$?
22348   grep -v '^ *+' conftest.er1 >conftest.err
22349   rm -f conftest.er1
22350   cat conftest.err >&5
22351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352   (exit $ac_status); } && {
22353          test -z "$ac_c_werror_flag" ||
22354          test ! -s conftest.err
22355        } && test -s conftest$ac_exeext &&
22356        $as_test_x conftest$ac_exeext; then
22357   eval "$as_ac_var=yes"
22358 else
22359   echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22361
22362         eval "$as_ac_var=no"
22363 fi
22364
22365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22366       conftest$ac_exeext conftest.$ac_ext
22367 fi
22368 ac_res=`eval echo '${'$as_ac_var'}'`
22369                { echo "$as_me:$LINENO: result: $ac_res" >&5
22370 echo "${ECHO_T}$ac_res" >&6; }
22371 if test `eval echo '${'$as_ac_var'}'` = yes; then
22372   cat >>confdefs.h <<_ACEOF
22373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22374 _ACEOF
22375  found=yes
22376 fi
22377 done
22378
22379         if test "$found" = "yes"; then
22380             SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22381         elif test -n "$shadow_libs_optional"; then
22382             LIBS="$LIBS $shadow_libs_optional"
22383
22384 for ac_func in $shadow_funcs
22385 do
22386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22390   echo $ECHO_N "(cached) $ECHO_C" >&6
22391 else
22392   cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22400 #define $ac_func innocuous_$ac_func
22401
22402 /* System header to define __stub macros and hopefully few prototypes,
22403     which can conflict with char $ac_func (); below.
22404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22405     <limits.h> exists even on freestanding compilers.  */
22406
22407 #ifdef __STDC__
22408 # include <limits.h>
22409 #else
22410 # include <assert.h>
22411 #endif
22412
22413 #undef $ac_func
22414
22415 /* Override any GCC internal prototype to avoid an error.
22416    Use char because int might match the return type of a GCC
22417    builtin and then its argument prototype would still apply.  */
22418 #ifdef __cplusplus
22419 extern "C"
22420 #endif
22421 char $ac_func ();
22422 /* The GNU C library defines this for functions which it implements
22423     to always fail with ENOSYS.  Some functions are actually named
22424     something starting with __ and the normal name is an alias.  */
22425 #if defined __stub_$ac_func || defined __stub___$ac_func
22426 choke me
22427 #endif
22428
22429 int
22430 main ()
22431 {
22432 return $ac_func ();
22433   ;
22434   return 0;
22435 }
22436 _ACEOF
22437 rm -f conftest.$ac_objext conftest$ac_exeext
22438 if { (ac_try="$ac_link"
22439 case "(($ac_try" in
22440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441   *) ac_try_echo=$ac_try;;
22442 esac
22443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22444   (eval "$ac_link") 2>conftest.er1
22445   ac_status=$?
22446   grep -v '^ *+' conftest.er1 >conftest.err
22447   rm -f conftest.er1
22448   cat conftest.err >&5
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); } && {
22451          test -z "$ac_c_werror_flag" ||
22452          test ! -s conftest.err
22453        } && test -s conftest$ac_exeext &&
22454        $as_test_x conftest$ac_exeext; then
22455   eval "$as_ac_var=yes"
22456 else
22457   echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22459
22460         eval "$as_ac_var=no"
22461 fi
22462
22463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22464       conftest$ac_exeext conftest.$ac_ext
22465 fi
22466 ac_res=`eval echo '${'$as_ac_var'}'`
22467                { echo "$as_me:$LINENO: result: $ac_res" >&5
22468 echo "${ECHO_T}$ac_res" >&6; }
22469 if test `eval echo '${'$as_ac_var'}'` = yes; then
22470   cat >>confdefs.h <<_ACEOF
22471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22472 _ACEOF
22473  found=yes
22474 fi
22475 done
22476
22477             if test "$found" = "yes"; then
22478                 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22479             fi
22480         fi
22481         if test "$found" = "yes"; then
22482             case "$shadow_funcs" in
22483                 *getprpwnam*) SECUREWARE=1;;
22484             esac
22485             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22486         else
22487             LIBS="$_LIBS"
22488         fi
22489         CHECKSHADOW=false
22490     fi
22491     if test "$CHECKSHADOW" = "true"; then
22492         { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22493 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22494 if test "${ac_cv_search_getspnam+set}" = set; then
22495   echo $ECHO_N "(cached) $ECHO_C" >&6
22496 else
22497   ac_func_search_save_LIBS=$LIBS
22498 cat >conftest.$ac_ext <<_ACEOF
22499 /* confdefs.h.  */
22500 _ACEOF
22501 cat confdefs.h >>conftest.$ac_ext
22502 cat >>conftest.$ac_ext <<_ACEOF
22503 /* end confdefs.h.  */
22504
22505 /* Override any GCC internal prototype to avoid an error.
22506    Use char because int might match the return type of a GCC
22507    builtin and then its argument prototype would still apply.  */
22508 #ifdef __cplusplus
22509 extern "C"
22510 #endif
22511 char getspnam ();
22512 int
22513 main ()
22514 {
22515 return getspnam ();
22516   ;
22517   return 0;
22518 }
22519 _ACEOF
22520 for ac_lib in '' gen; do
22521   if test -z "$ac_lib"; then
22522     ac_res="none required"
22523   else
22524     ac_res=-l$ac_lib
22525     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22526   fi
22527   rm -f conftest.$ac_objext conftest$ac_exeext
22528 if { (ac_try="$ac_link"
22529 case "(($ac_try" in
22530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531   *) ac_try_echo=$ac_try;;
22532 esac
22533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22534   (eval "$ac_link") 2>conftest.er1
22535   ac_status=$?
22536   grep -v '^ *+' conftest.er1 >conftest.err
22537   rm -f conftest.er1
22538   cat conftest.err >&5
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); } && {
22541          test -z "$ac_c_werror_flag" ||
22542          test ! -s conftest.err
22543        } && test -s conftest$ac_exeext &&
22544        $as_test_x conftest$ac_exeext; then
22545   ac_cv_search_getspnam=$ac_res
22546 else
22547   echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22549
22550
22551 fi
22552
22553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22554       conftest$ac_exeext
22555   if test "${ac_cv_search_getspnam+set}" = set; then
22556   break
22557 fi
22558 done
22559 if test "${ac_cv_search_getspnam+set}" = set; then
22560   :
22561 else
22562   ac_cv_search_getspnam=no
22563 fi
22564 rm conftest.$ac_ext
22565 LIBS=$ac_func_search_save_LIBS
22566 fi
22567 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22568 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22569 ac_res=$ac_cv_search_getspnam
22570 if test "$ac_res" != no; then
22571   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22572   cat >>confdefs.h <<\_ACEOF
22573 #define HAVE_GETSPNAM 1
22574 _ACEOF
22575  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22576 fi
22577
22578     fi
22579     if test "$CHECKSHADOW" = "true"; then
22580         { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22581 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22582 if test "${ac_cv_search_getprpwnam+set}" = set; then
22583   echo $ECHO_N "(cached) $ECHO_C" >&6
22584 else
22585   ac_func_search_save_LIBS=$LIBS
22586 cat >conftest.$ac_ext <<_ACEOF
22587 /* confdefs.h.  */
22588 _ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h.  */
22592
22593 /* Override any GCC internal prototype to avoid an error.
22594    Use char because int might match the return type of a GCC
22595    builtin and then its argument prototype would still apply.  */
22596 #ifdef __cplusplus
22597 extern "C"
22598 #endif
22599 char getprpwnam ();
22600 int
22601 main ()
22602 {
22603 return getprpwnam ();
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 for ac_lib in '' sec security prot; do
22609   if test -z "$ac_lib"; then
22610     ac_res="none required"
22611   else
22612     ac_res=-l$ac_lib
22613     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22614   fi
22615   rm -f conftest.$ac_objext conftest$ac_exeext
22616 if { (ac_try="$ac_link"
22617 case "(($ac_try" in
22618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619   *) ac_try_echo=$ac_try;;
22620 esac
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622   (eval "$ac_link") 2>conftest.er1
22623   ac_status=$?
22624   grep -v '^ *+' conftest.er1 >conftest.err
22625   rm -f conftest.er1
22626   cat conftest.err >&5
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); } && {
22629          test -z "$ac_c_werror_flag" ||
22630          test ! -s conftest.err
22631        } && test -s conftest$ac_exeext &&
22632        $as_test_x conftest$ac_exeext; then
22633   ac_cv_search_getprpwnam=$ac_res
22634 else
22635   echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22637
22638
22639 fi
22640
22641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22642       conftest$ac_exeext
22643   if test "${ac_cv_search_getprpwnam+set}" = set; then
22644   break
22645 fi
22646 done
22647 if test "${ac_cv_search_getprpwnam+set}" = set; then
22648   :
22649 else
22650   ac_cv_search_getprpwnam=no
22651 fi
22652 rm conftest.$ac_ext
22653 LIBS=$ac_func_search_save_LIBS
22654 fi
22655 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22656 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22657 ac_res=$ac_cv_search_getprpwnam
22658 if test "$ac_res" != no; then
22659   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22660   cat >>confdefs.h <<\_ACEOF
22661 #define HAVE_GETPRPWNAM 1
22662 _ACEOF
22663  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22664 fi
22665
22666     fi
22667     if test -n "$SECUREWARE"; then
22668
22669
22670
22671 for ac_func in bigcrypt set_auth_parameters initprivs
22672 do
22673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22677   echo $ECHO_N "(cached) $ECHO_C" >&6
22678 else
22679   cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h.  */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h.  */
22685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22687 #define $ac_func innocuous_$ac_func
22688
22689 /* System header to define __stub macros and hopefully few prototypes,
22690     which can conflict with char $ac_func (); below.
22691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22692     <limits.h> exists even on freestanding compilers.  */
22693
22694 #ifdef __STDC__
22695 # include <limits.h>
22696 #else
22697 # include <assert.h>
22698 #endif
22699
22700 #undef $ac_func
22701
22702 /* Override any GCC internal prototype to avoid an error.
22703    Use char because int might match the return type of a GCC
22704    builtin and then its argument prototype would still apply.  */
22705 #ifdef __cplusplus
22706 extern "C"
22707 #endif
22708 char $ac_func ();
22709 /* The GNU C library defines this for functions which it implements
22710     to always fail with ENOSYS.  Some functions are actually named
22711     something starting with __ and the normal name is an alias.  */
22712 #if defined __stub_$ac_func || defined __stub___$ac_func
22713 choke me
22714 #endif
22715
22716 int
22717 main ()
22718 {
22719 return $ac_func ();
22720   ;
22721   return 0;
22722 }
22723 _ACEOF
22724 rm -f conftest.$ac_objext conftest$ac_exeext
22725 if { (ac_try="$ac_link"
22726 case "(($ac_try" in
22727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728   *) ac_try_echo=$ac_try;;
22729 esac
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731   (eval "$ac_link") 2>conftest.er1
22732   ac_status=$?
22733   grep -v '^ *+' conftest.er1 >conftest.err
22734   rm -f conftest.er1
22735   cat conftest.err >&5
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } && {
22738          test -z "$ac_c_werror_flag" ||
22739          test ! -s conftest.err
22740        } && test -s conftest$ac_exeext &&
22741        $as_test_x conftest$ac_exeext; then
22742   eval "$as_ac_var=yes"
22743 else
22744   echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22746
22747         eval "$as_ac_var=no"
22748 fi
22749
22750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22751       conftest$ac_exeext conftest.$ac_ext
22752 fi
22753 ac_res=`eval echo '${'$as_ac_var'}'`
22754                { echo "$as_me:$LINENO: result: $ac_res" >&5
22755 echo "${ECHO_T}$ac_res" >&6; }
22756 if test `eval echo '${'$as_ac_var'}'` = yes; then
22757   cat >>confdefs.h <<_ACEOF
22758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22759 _ACEOF
22760
22761 fi
22762 done
22763
22764         AUTH_OBJS="$AUTH_OBJS secureware.o"
22765     fi
22766 fi
22767
22768 if test ${with_ldap-'no'} != "no"; then
22769     _LDFLAGS="$LDFLAGS"
22770     if test "$with_ldap" != "yes"; then
22771
22772     if test X"$with_rpath" = X"yes"; then
22773         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22774     else
22775         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22776     fi
22777     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22778         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22779     fi
22780
22781
22782     if test X"$with_rpath" = X"yes"; then
22783         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22784     else
22785         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22786     fi
22787     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22788         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22789     fi
22790
22791         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22792         with_ldap=yes
22793     fi
22794     SUDO_OBJS="${SUDO_OBJS} ldap.o"
22795
22796     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22797 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22798     LDAP_LIBS=""
22799     _LIBS="$LIBS"
22800     found=no
22801     for l in -lldap -llber '-lssl -lcrypto'; do
22802         LIBS="${LIBS} $l"
22803         LDAP_LIBS="${LDAP_LIBS} $l"
22804         cat >conftest.$ac_ext <<_ACEOF
22805 /* confdefs.h.  */
22806 _ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h.  */
22810 #include <sys/types.h>
22811         #include <lber.h>
22812         #include <ldap.h>
22813 int
22814 main ()
22815 {
22816 (void)ldap_init(0, 0)
22817   ;
22818   return 0;
22819 }
22820 _ACEOF
22821 rm -f conftest.$ac_objext conftest$ac_exeext
22822 if { (ac_try="$ac_link"
22823 case "(($ac_try" in
22824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825   *) ac_try_echo=$ac_try;;
22826 esac
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828   (eval "$ac_link") 2>conftest.er1
22829   ac_status=$?
22830   grep -v '^ *+' conftest.er1 >conftest.err
22831   rm -f conftest.er1
22832   cat conftest.err >&5
22833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); } && {
22835          test -z "$ac_c_werror_flag" ||
22836          test ! -s conftest.err
22837        } && test -s conftest$ac_exeext &&
22838        $as_test_x conftest$ac_exeext; then
22839   found=yes; break
22840 else
22841   echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22843
22844
22845 fi
22846
22847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22848       conftest$ac_exeext conftest.$ac_ext
22849     done
22850         if test "$found" = "no"; then
22851         LIBS="${_LIBS} -lldap"
22852         LDAP_LIBS="-lldap"
22853         { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22854 echo "${ECHO_T}not found, using -lldap" >&6; }
22855     else
22856         { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22857 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22858     fi
22859         OLIBS="$LIBS"
22860     { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22861 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22862 if test "${ac_cv_search_ber_set_option+set}" = set; then
22863   echo $ECHO_N "(cached) $ECHO_C" >&6
22864 else
22865   ac_func_search_save_LIBS=$LIBS
22866 cat >conftest.$ac_ext <<_ACEOF
22867 /* confdefs.h.  */
22868 _ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h.  */
22872
22873 /* Override any GCC internal prototype to avoid an error.
22874    Use char because int might match the return type of a GCC
22875    builtin and then its argument prototype would still apply.  */
22876 #ifdef __cplusplus
22877 extern "C"
22878 #endif
22879 char ber_set_option ();
22880 int
22881 main ()
22882 {
22883 return ber_set_option ();
22884   ;
22885   return 0;
22886 }
22887 _ACEOF
22888 for ac_lib in '' lber; do
22889   if test -z "$ac_lib"; then
22890     ac_res="none required"
22891   else
22892     ac_res=-l$ac_lib
22893     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22894   fi
22895   rm -f conftest.$ac_objext conftest$ac_exeext
22896 if { (ac_try="$ac_link"
22897 case "(($ac_try" in
22898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899   *) ac_try_echo=$ac_try;;
22900 esac
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902   (eval "$ac_link") 2>conftest.er1
22903   ac_status=$?
22904   grep -v '^ *+' conftest.er1 >conftest.err
22905   rm -f conftest.er1
22906   cat conftest.err >&5
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); } && {
22909          test -z "$ac_c_werror_flag" ||
22910          test ! -s conftest.err
22911        } && test -s conftest$ac_exeext &&
22912        $as_test_x conftest$ac_exeext; then
22913   ac_cv_search_ber_set_option=$ac_res
22914 else
22915   echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22917
22918
22919 fi
22920
22921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22922       conftest$ac_exeext
22923   if test "${ac_cv_search_ber_set_option+set}" = set; then
22924   break
22925 fi
22926 done
22927 if test "${ac_cv_search_ber_set_option+set}" = set; then
22928   :
22929 else
22930   ac_cv_search_ber_set_option=no
22931 fi
22932 rm conftest.$ac_ext
22933 LIBS=$ac_func_search_save_LIBS
22934 fi
22935 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22936 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22937 ac_res=$ac_cv_search_ber_set_option
22938 if test "$ac_res" != no; then
22939   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22940   found=yes
22941 else
22942   found=no
22943 fi
22944
22945     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22946         LDAP_LIBS="$LDAP_LIBS -llber"
22947     fi
22948         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22949 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22950     cat >conftest.$ac_ext <<_ACEOF
22951 /* confdefs.h.  */
22952 _ACEOF
22953 cat confdefs.h >>conftest.$ac_ext
22954 cat >>conftest.$ac_ext <<_ACEOF
22955 /* end confdefs.h.  */
22956 #include <sys/types.h>
22957     #include <ldap.h>
22958 int
22959 main ()
22960 {
22961 (void)ldap_init(0, 0)
22962   ;
22963   return 0;
22964 }
22965 _ACEOF
22966 rm -f conftest.$ac_objext conftest$ac_exeext
22967 if { (ac_try="$ac_link"
22968 case "(($ac_try" in
22969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970   *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973   (eval "$ac_link") 2>conftest.er1
22974   ac_status=$?
22975   grep -v '^ *+' conftest.er1 >conftest.err
22976   rm -f conftest.er1
22977   cat conftest.err >&5
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); } && {
22980          test -z "$ac_c_werror_flag" ||
22981          test ! -s conftest.err
22982        } && test -s conftest$ac_exeext &&
22983        $as_test_x conftest$ac_exeext; then
22984   { echo "$as_me:$LINENO: result: no" >&5
22985 echo "${ECHO_T}no" >&6; }
22986 else
22987   echo "$as_me: failed program was:" >&5
22988 sed 's/^/| /' conftest.$ac_ext >&5
22989
22990
22991     { echo "$as_me:$LINENO: result: yes" >&5
22992 echo "${ECHO_T}yes" >&6; }
22993     cat >>confdefs.h <<\_ACEOF
22994 #define HAVE_LBER_H 1
22995 _ACEOF
22996
22997 fi
22998
22999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23000       conftest$ac_exeext conftest.$ac_ext
23001
23002
23003
23004
23005
23006 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength
23007 do
23008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23012   echo $ECHO_N "(cached) $ECHO_C" >&6
23013 else
23014   cat >conftest.$ac_ext <<_ACEOF
23015 /* confdefs.h.  */
23016 _ACEOF
23017 cat confdefs.h >>conftest.$ac_ext
23018 cat >>conftest.$ac_ext <<_ACEOF
23019 /* end confdefs.h.  */
23020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23021    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23022 #define $ac_func innocuous_$ac_func
23023
23024 /* System header to define __stub macros and hopefully few prototypes,
23025     which can conflict with char $ac_func (); below.
23026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23027     <limits.h> exists even on freestanding compilers.  */
23028
23029 #ifdef __STDC__
23030 # include <limits.h>
23031 #else
23032 # include <assert.h>
23033 #endif
23034
23035 #undef $ac_func
23036
23037 /* Override any GCC internal prototype to avoid an error.
23038    Use char because int might match the return type of a GCC
23039    builtin and then its argument prototype would still apply.  */
23040 #ifdef __cplusplus
23041 extern "C"
23042 #endif
23043 char $ac_func ();
23044 /* The GNU C library defines this for functions which it implements
23045     to always fail with ENOSYS.  Some functions are actually named
23046     something starting with __ and the normal name is an alias.  */
23047 #if defined __stub_$ac_func || defined __stub___$ac_func
23048 choke me
23049 #endif
23050
23051 int
23052 main ()
23053 {
23054 return $ac_func ();
23055   ;
23056   return 0;
23057 }
23058 _ACEOF
23059 rm -f conftest.$ac_objext conftest$ac_exeext
23060 if { (ac_try="$ac_link"
23061 case "(($ac_try" in
23062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063   *) ac_try_echo=$ac_try;;
23064 esac
23065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23066   (eval "$ac_link") 2>conftest.er1
23067   ac_status=$?
23068   grep -v '^ *+' conftest.er1 >conftest.err
23069   rm -f conftest.er1
23070   cat conftest.err >&5
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); } && {
23073          test -z "$ac_c_werror_flag" ||
23074          test ! -s conftest.err
23075        } && test -s conftest$ac_exeext &&
23076        $as_test_x conftest$ac_exeext; then
23077   eval "$as_ac_var=yes"
23078 else
23079   echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23081
23082         eval "$as_ac_var=no"
23083 fi
23084
23085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23086       conftest$ac_exeext conftest.$ac_ext
23087 fi
23088 ac_res=`eval echo '${'$as_ac_var'}'`
23089                { echo "$as_me:$LINENO: result: $ac_res" >&5
23090 echo "${ECHO_T}$ac_res" >&6; }
23091 if test `eval echo '${'$as_ac_var'}'` = yes; then
23092   cat >>confdefs.h <<_ACEOF
23093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23094 _ACEOF
23095
23096 fi
23097 done
23098
23099
23100
23101 for ac_header in ldap_ssl.h mps/ldap_ssl.h
23102 do
23103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23107   echo $ECHO_N "(cached) $ECHO_C" >&6
23108 else
23109   cat >conftest.$ac_ext <<_ACEOF
23110 /* confdefs.h.  */
23111 _ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h.  */
23115 #include <ldap.h>
23116
23117 #include <$ac_header>
23118 _ACEOF
23119 rm -f conftest.$ac_objext
23120 if { (ac_try="$ac_compile"
23121 case "(($ac_try" in
23122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123   *) ac_try_echo=$ac_try;;
23124 esac
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126   (eval "$ac_compile") 2>conftest.er1
23127   ac_status=$?
23128   grep -v '^ *+' conftest.er1 >conftest.err
23129   rm -f conftest.er1
23130   cat conftest.err >&5
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); } && {
23133          test -z "$ac_c_werror_flag" ||
23134          test ! -s conftest.err
23135        } && test -s conftest.$ac_objext; then
23136   eval "$as_ac_Header=yes"
23137 else
23138   echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23140
23141         eval "$as_ac_Header=no"
23142 fi
23143
23144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23145 fi
23146 ac_res=`eval echo '${'$as_ac_Header'}'`
23147                { echo "$as_me:$LINENO: result: $ac_res" >&5
23148 echo "${ECHO_T}$ac_res" >&6; }
23149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23150   cat >>confdefs.h <<_ACEOF
23151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23152 _ACEOF
23153  break
23154 fi
23155
23156 done
23157
23158
23159     SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
23160     LIBS="$_LIBS"
23161     LDFLAGS="$_LDFLAGS"
23162     # XXX - OpenLDAP has deprecated ldap_get_values()
23163     CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
23164 fi
23165
23166 if test -n "$blibpath"; then
23167     if test -n "$blibpath_add"; then
23168         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
23169     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
23170         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
23171     fi
23172 fi
23173
23174 { echo "$as_me:$LINENO: checking for log file location" >&5
23175 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
23176 if test -n "$with_logpath"; then
23177     { echo "$as_me:$LINENO: result: $with_logpath" >&5
23178 echo "${ECHO_T}$with_logpath" >&6; }
23179     cat >>confdefs.h <<EOF
23180 #define _PATH_SUDO_LOGFILE "$with_logpath"
23181 EOF
23182
23183 elif test -d "/var/log"; then
23184     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
23185 echo "${ECHO_T}/var/log/sudo.log" >&6; }
23186     cat >>confdefs.h <<\EOF
23187 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
23188 EOF
23189
23190 elif test -d "/var/adm"; then
23191     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
23192 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
23193     cat >>confdefs.h <<\EOF
23194 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
23195 EOF
23196
23197 elif test -d "/usr/adm"; then
23198     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
23199 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
23200     cat >>confdefs.h <<\EOF
23201 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
23202 EOF
23203
23204 else
23205     { echo "$as_me:$LINENO: result: unknown" >&5
23206 echo "${ECHO_T}unknown" >&6; }
23207 fi
23208
23209 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
23210 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
23211 if test -n "$with_timedir"; then
23212     { echo "$as_me:$LINENO: result: $with_timedir" >&5
23213 echo "${ECHO_T}$with_timedir" >&6; }
23214     cat >>confdefs.h <<EOF
23215 #define _PATH_SUDO_TIMEDIR "$with_timedir"
23216 EOF
23217
23218     timedir="$with_timedir"
23219 elif test -d "/var/run"; then
23220     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
23221 echo "${ECHO_T}/var/run/sudo" >&6; }
23222     cat >>confdefs.h <<\EOF
23223 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
23224 EOF
23225
23226     timedir="/var/run/sudo"
23227 elif test -d "/var/adm"; then
23228     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
23229 echo "${ECHO_T}/var/adm/sudo" >&6; }
23230     cat >>confdefs.h <<\EOF
23231 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
23232 EOF
23233
23234     timedir="/var/adm/sudo"
23235 else
23236     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
23237 echo "${ECHO_T}/usr/adm/sudo" >&6; }
23238     cat >>confdefs.h <<\EOF
23239 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
23240 EOF
23241
23242     timedir="/usr/adm/sudo"
23243 fi
23244
23245
23246 case "$with_passwd" in
23247 yes|maybe)
23248     AUTH_OBJS="$AUTH_OBJS passwd.o"
23249     ;;
23250 *)
23251     cat >>confdefs.h <<\_ACEOF
23252 #define WITHOUT_PASSWD 1
23253 _ACEOF
23254
23255     if test -z "$AUTH_OBJS"; then
23256         { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
23257 echo "$as_me: error: no authentication methods defined." >&2;}
23258    { (exit 1); exit 1; }; }
23259     fi
23260     ;;
23261 esac
23262 AUTH_OBJS=${AUTH_OBJS# }
23263 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
23264 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
23265 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
23266
23267 if test -n "$LIBS"; then
23268     L="$LIBS"
23269     LIBS=
23270     for l in ${L}; do
23271         dupe=0
23272         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
23273             test $l = $sl && dupe=1
23274         done
23275         test $dupe = 0 && LIBS="${LIBS} $l"
23276     done
23277 fi
23278
23279 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
23280
23281 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
23282     oexec_prefix="$exec_prefix"
23283     if test "$exec_prefix" = '$(prefix)'; then
23284         if test "$prefix" = "NONE"; then
23285             exec_prefix="$ac_default_prefix"
23286         else
23287             exec_prefix="$prefix"
23288         fi
23289     fi
23290     if test X"$with_noexec" != X"no"; then
23291         PROGS="${PROGS} sudo_noexec.la"
23292         INSTALL_NOEXEC="install-noexec"
23293
23294         eval noexec_file="$with_noexec"
23295
23296 cat >>confdefs.h <<_ACEOF
23297 #define _PATH_SUDO_NOEXEC "$noexec_file"
23298 _ACEOF
23299
23300     fi
23301     if test X"$with_selinux" != X"no"; then
23302         eval sesh_file="$libexecdir/sesh"
23303
23304 cat >>confdefs.h <<_ACEOF
23305 #define _PATH_SUDO_SESH "$sesh_file"
23306 _ACEOF
23307
23308     fi
23309     exec_prefix="$oexec_prefix"
23310 fi
23311
23312 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
23313
23314 cat >confcache <<\_ACEOF
23315 # This file is a shell script that caches the results of configure
23316 # tests run on this system so they can be shared between configure
23317 # scripts and configure runs, see configure's option --config-cache.
23318 # It is not useful on other systems.  If it contains results you don't
23319 # want to keep, you may remove or edit it.
23320 #
23321 # config.status only pays attention to the cache file if you give it
23322 # the --recheck option to rerun configure.
23323 #
23324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23326 # following values.
23327
23328 _ACEOF
23329
23330 # The following way of writing the cache mishandles newlines in values,
23331 # but we know of no workaround that is simple, portable, and efficient.
23332 # So, we kill variables containing newlines.
23333 # Ultrix sh set writes to stderr and can't be redirected directly,
23334 # and sets the high bit in the cache file unless we assign to the vars.
23335 (
23336   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23337     eval ac_val=\$$ac_var
23338     case $ac_val in #(
23339     *${as_nl}*)
23340       case $ac_var in #(
23341       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23342 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23343       esac
23344       case $ac_var in #(
23345       _ | IFS | as_nl) ;; #(
23346       *) $as_unset $ac_var ;;
23347       esac ;;
23348     esac
23349   done
23350
23351   (set) 2>&1 |
23352     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23353     *${as_nl}ac_space=\ *)
23354       # `set' does not quote correctly, so add quotes (double-quote
23355       # substitution turns \\\\ into \\, and sed turns \\ into \).
23356       sed -n \
23357         "s/'/'\\\\''/g;
23358           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23359       ;; #(
23360     *)
23361       # `set' quotes correctly as required by POSIX, so do not add quotes.
23362       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23363       ;;
23364     esac |
23365     sort
23366 ) |
23367   sed '
23368      /^ac_cv_env_/b end
23369      t clear
23370      :clear
23371      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23372      t end
23373      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23374      :end' >>confcache
23375 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23376   if test -w "$cache_file"; then
23377     test "x$cache_file" != "x/dev/null" &&
23378       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23379 echo "$as_me: updating cache $cache_file" >&6;}
23380     cat confcache >$cache_file
23381   else
23382     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23383 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23384   fi
23385 fi
23386 rm -f confcache
23387
23388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23389 # Let make expand exec_prefix.
23390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23391
23392 DEFS=-DHAVE_CONFIG_H
23393
23394 ac_libobjs=
23395 ac_ltlibobjs=
23396 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23397   # 1. Remove the extension, and $U if already installed.
23398   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23399   ac_i=`echo "$ac_i" | sed "$ac_script"`
23400   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23401   #    will be set to the directory where LIBOBJS objects are built.
23402   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23403   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23404 done
23405 LIBOBJS=$ac_libobjs
23406
23407 LTLIBOBJS=$ac_ltlibobjs
23408
23409
23410
23411 : ${CONFIG_STATUS=./config.status}
23412 ac_clean_files_save=$ac_clean_files
23413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23414 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23415 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23416 cat >$CONFIG_STATUS <<_ACEOF
23417 #! $SHELL
23418 # Generated by $as_me.
23419 # Run this file to recreate the current configuration.
23420 # Compiler output produced by configure, useful for debugging
23421 # configure, is in config.log if it exists.
23422
23423 debug=false
23424 ac_cs_recheck=false
23425 ac_cs_silent=false
23426 SHELL=\${CONFIG_SHELL-$SHELL}
23427 _ACEOF
23428
23429 cat >>$CONFIG_STATUS <<\_ACEOF
23430 ## --------------------- ##
23431 ## M4sh Initialization.  ##
23432 ## --------------------- ##
23433
23434 # Be more Bourne compatible
23435 DUALCASE=1; export DUALCASE # for MKS sh
23436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23437   emulate sh
23438   NULLCMD=:
23439   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23440   # is contrary to our usage.  Disable this feature.
23441   alias -g '${1+"$@"}'='"$@"'
23442   setopt NO_GLOB_SUBST
23443 else
23444   case `(set -o) 2>/dev/null` in
23445   *posix*) set -o posix ;;
23446 esac
23447
23448 fi
23449
23450
23451
23452
23453 # PATH needs CR
23454 # Avoid depending upon Character Ranges.
23455 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23456 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23457 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23458 as_cr_digits='0123456789'
23459 as_cr_alnum=$as_cr_Letters$as_cr_digits
23460
23461 # The user is always right.
23462 if test "${PATH_SEPARATOR+set}" != set; then
23463   echo "#! /bin/sh" >conf$$.sh
23464   echo  "exit 0"   >>conf$$.sh
23465   chmod +x conf$$.sh
23466   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23467     PATH_SEPARATOR=';'
23468   else
23469     PATH_SEPARATOR=:
23470   fi
23471   rm -f conf$$.sh
23472 fi
23473
23474 # Support unset when possible.
23475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23476   as_unset=unset
23477 else
23478   as_unset=false
23479 fi
23480
23481
23482 # IFS
23483 # We need space, tab and new line, in precisely that order.  Quoting is
23484 # there to prevent editors from complaining about space-tab.
23485 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23486 # splitting by setting IFS to empty value.)
23487 as_nl='
23488 '
23489 IFS=" ""        $as_nl"
23490
23491 # Find who we are.  Look in the path if we contain no directory separator.
23492 case $0 in
23493   *[\\/]* ) as_myself=$0 ;;
23494   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23495 for as_dir in $PATH
23496 do
23497   IFS=$as_save_IFS
23498   test -z "$as_dir" && as_dir=.
23499   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23500 done
23501 IFS=$as_save_IFS
23502
23503      ;;
23504 esac
23505 # We did not find ourselves, most probably we were run as `sh COMMAND'
23506 # in which case we are not to be found in the path.
23507 if test "x$as_myself" = x; then
23508   as_myself=$0
23509 fi
23510 if test ! -f "$as_myself"; then
23511   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23512   { (exit 1); exit 1; }
23513 fi
23514
23515 # Work around bugs in pre-3.0 UWIN ksh.
23516 for as_var in ENV MAIL MAILPATH
23517 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23518 done
23519 PS1='$ '
23520 PS2='> '
23521 PS4='+ '
23522
23523 # NLS nuisances.
23524 for as_var in \
23525   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23526   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23527   LC_TELEPHONE LC_TIME
23528 do
23529   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23530     eval $as_var=C; export $as_var
23531   else
23532     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23533   fi
23534 done
23535
23536 # Required to use basename.
23537 if expr a : '\(a\)' >/dev/null 2>&1 &&
23538    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23539   as_expr=expr
23540 else
23541   as_expr=false
23542 fi
23543
23544 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23545   as_basename=basename
23546 else
23547   as_basename=false
23548 fi
23549
23550
23551 # Name of the executable.
23552 as_me=`$as_basename -- "$0" ||
23553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23554          X"$0" : 'X\(//\)$' \| \
23555          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23556 echo X/"$0" |
23557     sed '/^.*\/\([^/][^/]*\)\/*$/{
23558             s//\1/
23559             q
23560           }
23561           /^X\/\(\/\/\)$/{
23562             s//\1/
23563             q
23564           }
23565           /^X\/\(\/\).*/{
23566             s//\1/
23567             q
23568           }
23569           s/.*/./; q'`
23570
23571 # CDPATH.
23572 $as_unset CDPATH
23573
23574
23575
23576   as_lineno_1=$LINENO
23577   as_lineno_2=$LINENO
23578   test "x$as_lineno_1" != "x$as_lineno_2" &&
23579   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23580
23581   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23582   # uniformly replaced by the line number.  The first 'sed' inserts a
23583   # line-number line after each line using $LINENO; the second 'sed'
23584   # does the real work.  The second script uses 'N' to pair each
23585   # line-number line with the line containing $LINENO, and appends
23586   # trailing '-' during substitution so that $LINENO is not a special
23587   # case at line end.
23588   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23589   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23590   # E. McMahon (1931-1989) for sed's syntax.  :-)
23591   sed -n '
23592     p
23593     /[$]LINENO/=
23594   ' <$as_myself |
23595     sed '
23596       s/[$]LINENO.*/&-/
23597       t lineno
23598       b
23599       :lineno
23600       N
23601       :loop
23602       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23603       t loop
23604       s/-\n.*//
23605     ' >$as_me.lineno &&
23606   chmod +x "$as_me.lineno" ||
23607     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23608    { (exit 1); exit 1; }; }
23609
23610   # Don't try to exec as it changes $[0], causing all sort of problems
23611   # (the dirname of $[0] is not the place where we might find the
23612   # original and so on.  Autoconf is especially sensitive to this).
23613   . "./$as_me.lineno"
23614   # Exit status is that of the last command.
23615   exit
23616 }
23617
23618
23619 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23620   as_dirname=dirname
23621 else
23622   as_dirname=false
23623 fi
23624
23625 ECHO_C= ECHO_N= ECHO_T=
23626 case `echo -n x` in
23627 -n*)
23628   case `echo 'x\c'` in
23629   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23630   *)   ECHO_C='\c';;
23631   esac;;
23632 *)
23633   ECHO_N='-n';;
23634 esac
23635
23636 if expr a : '\(a\)' >/dev/null 2>&1 &&
23637    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23638   as_expr=expr
23639 else
23640   as_expr=false
23641 fi
23642
23643 rm -f conf$$ conf$$.exe conf$$.file
23644 if test -d conf$$.dir; then
23645   rm -f conf$$.dir/conf$$.file
23646 else
23647   rm -f conf$$.dir
23648   mkdir conf$$.dir
23649 fi
23650 echo >conf$$.file
23651 if ln -s conf$$.file conf$$ 2>/dev/null; then
23652   as_ln_s='ln -s'
23653   # ... but there are two gotchas:
23654   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23655   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23656   # In both cases, we have to default to `cp -p'.
23657   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23658     as_ln_s='cp -p'
23659 elif ln conf$$.file conf$$ 2>/dev/null; then
23660   as_ln_s=ln
23661 else
23662   as_ln_s='cp -p'
23663 fi
23664 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23665 rmdir conf$$.dir 2>/dev/null
23666
23667 if mkdir -p . 2>/dev/null; then
23668   as_mkdir_p=:
23669 else
23670   test -d ./-p && rmdir ./-p
23671   as_mkdir_p=false
23672 fi
23673
23674 if test -x / >/dev/null 2>&1; then
23675   as_test_x='test -x'
23676 else
23677   if ls -dL / >/dev/null 2>&1; then
23678     as_ls_L_option=L
23679   else
23680     as_ls_L_option=
23681   fi
23682   as_test_x='
23683     eval sh -c '\''
23684       if test -d "$1"; then
23685         test -d "$1/.";
23686       else
23687         case $1 in
23688         -*)set "./$1";;
23689         esac;
23690         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23691         ???[sx]*):;;*)false;;esac;fi
23692     '\'' sh
23693   '
23694 fi
23695 as_executable_p=$as_test_x
23696
23697 # Sed expression to map a string onto a valid CPP name.
23698 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23699
23700 # Sed expression to map a string onto a valid variable name.
23701 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23702
23703
23704 exec 6>&1
23705
23706 # Save the log message, to keep $[0] and so on meaningful, and to
23707 # report actual input values of CONFIG_FILES etc. instead of their
23708 # values after options handling.
23709 ac_log="
23710 This file was extended by sudo $as_me 1.6.9, which was
23711 generated by GNU Autoconf 2.61.  Invocation command line was
23712
23713   CONFIG_FILES    = $CONFIG_FILES
23714   CONFIG_HEADERS  = $CONFIG_HEADERS
23715   CONFIG_LINKS    = $CONFIG_LINKS
23716   CONFIG_COMMANDS = $CONFIG_COMMANDS
23717   $ $0 $@
23718
23719 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23720 "
23721
23722 _ACEOF
23723
23724 cat >>$CONFIG_STATUS <<_ACEOF
23725 # Files that config.status was made for.
23726 config_files="$ac_config_files"
23727 config_headers="$ac_config_headers"
23728
23729 _ACEOF
23730
23731 cat >>$CONFIG_STATUS <<\_ACEOF
23732 ac_cs_usage="\
23733 \`$as_me' instantiates files from templates according to the
23734 current configuration.
23735
23736 Usage: $0 [OPTIONS] [FILE]...
23737
23738   -h, --help       print this help, then exit
23739   -V, --version    print version number and configuration settings, then exit
23740   -q, --quiet      do not print progress messages
23741   -d, --debug      don't remove temporary files
23742       --recheck    update $as_me by reconfiguring in the same conditions
23743   --file=FILE[:TEMPLATE]
23744                    instantiate the configuration file FILE
23745   --header=FILE[:TEMPLATE]
23746                    instantiate the configuration header FILE
23747
23748 Configuration files:
23749 $config_files
23750
23751 Configuration headers:
23752 $config_headers
23753
23754 Report bugs to <bug-autoconf@gnu.org>."
23755
23756 _ACEOF
23757 cat >>$CONFIG_STATUS <<_ACEOF
23758 ac_cs_version="\\
23759 sudo config.status 1.6.9
23760 configured by $0, generated by GNU Autoconf 2.61,
23761   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23762
23763 Copyright (C) 2006 Free Software Foundation, Inc.
23764 This config.status script is free software; the Free Software Foundation
23765 gives unlimited permission to copy, distribute and modify it."
23766
23767 ac_pwd='$ac_pwd'
23768 srcdir='$srcdir'
23769 _ACEOF
23770
23771 cat >>$CONFIG_STATUS <<\_ACEOF
23772 # If no file are specified by the user, then we need to provide default
23773 # value.  By we need to know if files were specified by the user.
23774 ac_need_defaults=:
23775 while test $# != 0
23776 do
23777   case $1 in
23778   --*=*)
23779     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23780     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23781     ac_shift=:
23782     ;;
23783   *)
23784     ac_option=$1
23785     ac_optarg=$2
23786     ac_shift=shift
23787     ;;
23788   esac
23789
23790   case $ac_option in
23791   # Handling of the options.
23792   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23793     ac_cs_recheck=: ;;
23794   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23795     echo "$ac_cs_version"; exit ;;
23796   --debug | --debu | --deb | --de | --d | -d )
23797     debug=: ;;
23798   --file | --fil | --fi | --f )
23799     $ac_shift
23800     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23801     ac_need_defaults=false;;
23802   --header | --heade | --head | --hea )
23803     $ac_shift
23804     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23805     ac_need_defaults=false;;
23806   --he | --h)
23807     # Conflict between --help and --header
23808     { echo "$as_me: error: ambiguous option: $1
23809 Try \`$0 --help' for more information." >&2
23810    { (exit 1); exit 1; }; };;
23811   --help | --hel | -h )
23812     echo "$ac_cs_usage"; exit ;;
23813   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23814   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23815     ac_cs_silent=: ;;
23816
23817   # This is an error.
23818   -*) { echo "$as_me: error: unrecognized option: $1
23819 Try \`$0 --help' for more information." >&2
23820    { (exit 1); exit 1; }; } ;;
23821
23822   *) ac_config_targets="$ac_config_targets $1"
23823      ac_need_defaults=false ;;
23824
23825   esac
23826   shift
23827 done
23828
23829 ac_configure_extra_args=
23830
23831 if $ac_cs_silent; then
23832   exec 6>/dev/null
23833   ac_configure_extra_args="$ac_configure_extra_args --silent"
23834 fi
23835
23836 _ACEOF
23837 cat >>$CONFIG_STATUS <<_ACEOF
23838 if \$ac_cs_recheck; then
23839   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23840   CONFIG_SHELL=$SHELL
23841   export CONFIG_SHELL
23842   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23843 fi
23844
23845 _ACEOF
23846 cat >>$CONFIG_STATUS <<\_ACEOF
23847 exec 5>>config.log
23848 {
23849   echo
23850   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23851 ## Running $as_me. ##
23852 _ASBOX
23853   echo "$ac_log"
23854 } >&5
23855
23856 _ACEOF
23857 cat >>$CONFIG_STATUS <<_ACEOF
23858 _ACEOF
23859
23860 cat >>$CONFIG_STATUS <<\_ACEOF
23861
23862 # Handling of arguments.
23863 for ac_config_target in $ac_config_targets
23864 do
23865   case $ac_config_target in
23866     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23867     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
23868     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23869     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
23870     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
23871     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
23872
23873   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23874 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23875    { (exit 1); exit 1; }; };;
23876   esac
23877 done
23878
23879
23880 # If the user did not use the arguments to specify the items to instantiate,
23881 # then the envvar interface is used.  Set only those that are not.
23882 # We use the long form for the default assignment because of an extremely
23883 # bizarre bug on SunOS 4.1.3.
23884 if $ac_need_defaults; then
23885   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23886   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23887 fi
23888
23889 # Have a temporary directory for convenience.  Make it in the build tree
23890 # simply because there is no reason against having it here, and in addition,
23891 # creating and moving files from /tmp can sometimes cause problems.
23892 # Hook for its removal unless debugging.
23893 # Note that there is a small window in which the directory will not be cleaned:
23894 # after its creation but before its name has been assigned to `$tmp'.
23895 $debug ||
23896 {
23897   tmp=
23898   trap 'exit_status=$?
23899   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23900 ' 0
23901   trap '{ (exit 1); exit 1; }' 1 2 13 15
23902 }
23903 # Create a (secure) tmp directory for tmp files.
23904
23905 {
23906   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23907   test -n "$tmp" && test -d "$tmp"
23908 }  ||
23909 {
23910   tmp=./conf$$-$RANDOM
23911   (umask 077 && mkdir "$tmp")
23912 } ||
23913 {
23914    echo "$me: cannot create a temporary directory in ." >&2
23915    { (exit 1); exit 1; }
23916 }
23917
23918 #
23919 # Set up the sed scripts for CONFIG_FILES section.
23920 #
23921
23922 # No need to generate the scripts if there are no CONFIG_FILES.
23923 # This happens for instance when ./config.status config.h
23924 if test -n "$CONFIG_FILES"; then
23925
23926 _ACEOF
23927
23928
23929
23930 ac_delim='%!_!# '
23931 for ac_last_try in false false false false false :; do
23932   cat >conf$$subs.sed <<_ACEOF
23933 SHELL!$SHELL$ac_delim
23934 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23935 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23936 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23937 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23938 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23939 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23940 exec_prefix!$exec_prefix$ac_delim
23941 prefix!$prefix$ac_delim
23942 program_transform_name!$program_transform_name$ac_delim
23943 bindir!$bindir$ac_delim
23944 sbindir!$sbindir$ac_delim
23945 libexecdir!$libexecdir$ac_delim
23946 datarootdir!$datarootdir$ac_delim
23947 datadir!$datadir$ac_delim
23948 sysconfdir!$sysconfdir$ac_delim
23949 sharedstatedir!$sharedstatedir$ac_delim
23950 localstatedir!$localstatedir$ac_delim
23951 includedir!$includedir$ac_delim
23952 oldincludedir!$oldincludedir$ac_delim
23953 docdir!$docdir$ac_delim
23954 infodir!$infodir$ac_delim
23955 htmldir!$htmldir$ac_delim
23956 dvidir!$dvidir$ac_delim
23957 pdfdir!$pdfdir$ac_delim
23958 psdir!$psdir$ac_delim
23959 libdir!$libdir$ac_delim
23960 localedir!$localedir$ac_delim
23961 mandir!$mandir$ac_delim
23962 DEFS!$DEFS$ac_delim
23963 ECHO_C!$ECHO_C$ac_delim
23964 ECHO_N!$ECHO_N$ac_delim
23965 ECHO_T!$ECHO_T$ac_delim
23966 LIBS!$LIBS$ac_delim
23967 build_alias!$build_alias$ac_delim
23968 host_alias!$host_alias$ac_delim
23969 target_alias!$target_alias$ac_delim
23970 LIBTOOL!$LIBTOOL$ac_delim
23971 CFLAGS!$CFLAGS$ac_delim
23972 PROGS!$PROGS$ac_delim
23973 CPPFLAGS!$CPPFLAGS$ac_delim
23974 LDFLAGS!$LDFLAGS$ac_delim
23975 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
23976 SUDO_OBJS!$SUDO_OBJS$ac_delim
23977 SUDO_LIBS!$SUDO_LIBS$ac_delim
23978 NET_LIBS!$NET_LIBS$ac_delim
23979 AFS_LIBS!$AFS_LIBS$ac_delim
23980 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
23981 OSDEFS!$OSDEFS$ac_delim
23982 AUTH_OBJS!$AUTH_OBJS$ac_delim
23983 MANTYPE!$MANTYPE$ac_delim
23984 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
23985 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
23986 SUDOERS_UID!$SUDOERS_UID$ac_delim
23987 SUDOERS_GID!$SUDOERS_GID$ac_delim
23988 DEV!$DEV$ac_delim
23989 SELINUX!$SELINUX$ac_delim
23990 BAMAN!$BAMAN$ac_delim
23991 LCMAN!$LCMAN$ac_delim
23992 SEMAN!$SEMAN$ac_delim
23993 mansectsu!$mansectsu$ac_delim
23994 mansectform!$mansectform$ac_delim
23995 mansrcdir!$mansrcdir$ac_delim
23996 NOEXECFILE!$NOEXECFILE$ac_delim
23997 NOEXECDIR!$NOEXECDIR$ac_delim
23998 noexec_file!$noexec_file$ac_delim
23999 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
24000 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
24001 timedir!$timedir$ac_delim
24002 timeout!$timeout$ac_delim
24003 password_timeout!$password_timeout$ac_delim
24004 sudo_umask!$sudo_umask$ac_delim
24005 passprompt!$passprompt$ac_delim
24006 long_otp_prompt!$long_otp_prompt$ac_delim
24007 lecture!$lecture$ac_delim
24008 logfac!$logfac$ac_delim
24009 goodpri!$goodpri$ac_delim
24010 badpri!$badpri$ac_delim
24011 loglen!$loglen$ac_delim
24012 ignore_dot!$ignore_dot$ac_delim
24013 mail_no_user!$mail_no_user$ac_delim
24014 mail_no_host!$mail_no_host$ac_delim
24015 mail_no_perms!$mail_no_perms$ac_delim
24016 mailto!$mailto$ac_delim
24017 mailsub!$mailsub$ac_delim
24018 badpass_message!$badpass_message$ac_delim
24019 fqdn!$fqdn$ac_delim
24020 runas_default!$runas_default$ac_delim
24021 env_editor!$env_editor$ac_delim
24022 passwd_tries!$passwd_tries$ac_delim
24023 tty_tickets!$tty_tickets$ac_delim
24024 insults!$insults$ac_delim
24025 root_sudo!$root_sudo$ac_delim
24026 path_info!$path_info$ac_delim
24027 EGREPPROG!$EGREPPROG$ac_delim
24028 CC!$CC$ac_delim
24029 ac_ct_CC!$ac_ct_CC$ac_delim
24030 _ACEOF
24031
24032   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24033     break
24034   elif $ac_last_try; then
24035     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24036 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24037    { (exit 1); exit 1; }; }
24038   else
24039     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24040   fi
24041 done
24042
24043 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24044 if test -n "$ac_eof"; then
24045   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24046   ac_eof=`expr $ac_eof + 1`
24047 fi
24048
24049 cat >>$CONFIG_STATUS <<_ACEOF
24050 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24052 _ACEOF
24053 sed '
24054 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24055 s/^/s,@/; s/!/@,|#_!!_#|/
24056 :n
24057 t n
24058 s/'"$ac_delim"'$/,g/; t
24059 s/$/\\/; p
24060 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24061 ' >>$CONFIG_STATUS <conf$$subs.sed
24062 rm -f conf$$subs.sed
24063 cat >>$CONFIG_STATUS <<_ACEOF
24064 CEOF$ac_eof
24065 _ACEOF
24066
24067
24068 ac_delim='%!_!# '
24069 for ac_last_try in false false false false false :; do
24070   cat >conf$$subs.sed <<_ACEOF
24071 EXEEXT!$EXEEXT$ac_delim
24072 OBJEXT!$OBJEXT$ac_delim
24073 CPP!$CPP$ac_delim
24074 build!$build$ac_delim
24075 build_cpu!$build_cpu$ac_delim
24076 build_vendor!$build_vendor$ac_delim
24077 build_os!$build_os$ac_delim
24078 host!$host$ac_delim
24079 host_cpu!$host_cpu$ac_delim
24080 host_vendor!$host_vendor$ac_delim
24081 host_os!$host_os$ac_delim
24082 target!$target$ac_delim
24083 target_cpu!$target_cpu$ac_delim
24084 target_vendor!$target_vendor$ac_delim
24085 target_os!$target_os$ac_delim
24086 SED!$SED$ac_delim
24087 GREP!$GREP$ac_delim
24088 EGREP!$EGREP$ac_delim
24089 LN_S!$LN_S$ac_delim
24090 ECHO!$ECHO$ac_delim
24091 AR!$AR$ac_delim
24092 RANLIB!$RANLIB$ac_delim
24093 STRIP!$STRIP$ac_delim
24094 DSYMUTIL!$DSYMUTIL$ac_delim
24095 NMEDIT!$NMEDIT$ac_delim
24096 UNAMEPROG!$UNAMEPROG$ac_delim
24097 TRPROG!$TRPROG$ac_delim
24098 NROFFPROG!$NROFFPROG$ac_delim
24099 YACC!$YACC$ac_delim
24100 YFLAGS!$YFLAGS$ac_delim
24101 LIBOBJS!$LIBOBJS$ac_delim
24102 ALLOCA!$ALLOCA$ac_delim
24103 KRB5CONFIG!$KRB5CONFIG$ac_delim
24104 LTLIBOBJS!$LTLIBOBJS$ac_delim
24105 _ACEOF
24106
24107   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
24108     break
24109   elif $ac_last_try; then
24110     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24111 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24112    { (exit 1); exit 1; }; }
24113   else
24114     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24115   fi
24116 done
24117
24118 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24119 if test -n "$ac_eof"; then
24120   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24121   ac_eof=`expr $ac_eof + 1`
24122 fi
24123
24124 cat >>$CONFIG_STATUS <<_ACEOF
24125 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24127 _ACEOF
24128 sed '
24129 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24130 s/^/s,@/; s/!/@,|#_!!_#|/
24131 :n
24132 t n
24133 s/'"$ac_delim"'$/,g/; t
24134 s/$/\\/; p
24135 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24136 ' >>$CONFIG_STATUS <conf$$subs.sed
24137 rm -f conf$$subs.sed
24138 cat >>$CONFIG_STATUS <<_ACEOF
24139 :end
24140 s/|#_!!_#|//g
24141 CEOF$ac_eof
24142 _ACEOF
24143
24144
24145 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24146 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24147 # trailing colons and then remove the whole line if VPATH becomes empty
24148 # (actually we leave an empty line to preserve line numbers).
24149 if test "x$srcdir" = x.; then
24150   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24151 s/:*\$(srcdir):*/:/
24152 s/:*\${srcdir}:*/:/
24153 s/:*@srcdir@:*/:/
24154 s/^\([^=]*=[     ]*\):*/\1/
24155 s/:*$//
24156 s/^[^=]*=[       ]*$//
24157 }'
24158 fi
24159
24160 cat >>$CONFIG_STATUS <<\_ACEOF
24161 fi # test -n "$CONFIG_FILES"
24162
24163
24164 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
24165 do
24166   case $ac_tag in
24167   :[FHLC]) ac_mode=$ac_tag; continue;;
24168   esac
24169   case $ac_mode$ac_tag in
24170   :[FHL]*:*);;
24171   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24172 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24173    { (exit 1); exit 1; }; };;
24174   :[FH]-) ac_tag=-:-;;
24175   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24176   esac
24177   ac_save_IFS=$IFS
24178   IFS=:
24179   set x $ac_tag
24180   IFS=$ac_save_IFS
24181   shift
24182   ac_file=$1
24183   shift
24184
24185   case $ac_mode in
24186   :L) ac_source=$1;;
24187   :[FH])
24188     ac_file_inputs=
24189     for ac_f
24190     do
24191       case $ac_f in
24192       -) ac_f="$tmp/stdin";;
24193       *) # Look for the file first in the build tree, then in the source tree
24194          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24195          # because $ac_f cannot contain `:'.
24196          test -f "$ac_f" ||
24197            case $ac_f in
24198            [\\/$]*) false;;
24199            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24200            esac ||
24201            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24202 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24203    { (exit 1); exit 1; }; };;
24204       esac
24205       ac_file_inputs="$ac_file_inputs $ac_f"
24206     done
24207
24208     # Let's still pretend it is `configure' which instantiates (i.e., don't
24209     # use $as_me), people would be surprised to read:
24210     #    /* config.h.  Generated by config.status.  */
24211     configure_input="Generated from "`IFS=:
24212           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24213     if test x"$ac_file" != x-; then
24214       configure_input="$ac_file.  $configure_input"
24215       { echo "$as_me:$LINENO: creating $ac_file" >&5
24216 echo "$as_me: creating $ac_file" >&6;}
24217     fi
24218
24219     case $ac_tag in
24220     *:-:* | *:-) cat >"$tmp/stdin";;
24221     esac
24222     ;;
24223   esac
24224
24225   ac_dir=`$as_dirname -- "$ac_file" ||
24226 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24227          X"$ac_file" : 'X\(//\)[^/]' \| \
24228          X"$ac_file" : 'X\(//\)$' \| \
24229          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24230 echo X"$ac_file" |
24231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24232             s//\1/
24233             q
24234           }
24235           /^X\(\/\/\)[^/].*/{
24236             s//\1/
24237             q
24238           }
24239           /^X\(\/\/\)$/{
24240             s//\1/
24241             q
24242           }
24243           /^X\(\/\).*/{
24244             s//\1/
24245             q
24246           }
24247           s/.*/./; q'`
24248   { as_dir="$ac_dir"
24249   case $as_dir in #(
24250   -*) as_dir=./$as_dir;;
24251   esac
24252   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24253     as_dirs=
24254     while :; do
24255       case $as_dir in #(
24256       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24257       *) as_qdir=$as_dir;;
24258       esac
24259       as_dirs="'$as_qdir' $as_dirs"
24260       as_dir=`$as_dirname -- "$as_dir" ||
24261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24262          X"$as_dir" : 'X\(//\)[^/]' \| \
24263          X"$as_dir" : 'X\(//\)$' \| \
24264          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24265 echo X"$as_dir" |
24266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24267             s//\1/
24268             q
24269           }
24270           /^X\(\/\/\)[^/].*/{
24271             s//\1/
24272             q
24273           }
24274           /^X\(\/\/\)$/{
24275             s//\1/
24276             q
24277           }
24278           /^X\(\/\).*/{
24279             s//\1/
24280             q
24281           }
24282           s/.*/./; q'`
24283       test -d "$as_dir" && break
24284     done
24285     test -z "$as_dirs" || eval "mkdir $as_dirs"
24286   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24287 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24288    { (exit 1); exit 1; }; }; }
24289   ac_builddir=.
24290
24291 case "$ac_dir" in
24292 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24293 *)
24294   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24295   # A ".." for each directory in $ac_dir_suffix.
24296   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24297   case $ac_top_builddir_sub in
24298   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24299   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24300   esac ;;
24301 esac
24302 ac_abs_top_builddir=$ac_pwd
24303 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24304 # for backward compatibility:
24305 ac_top_builddir=$ac_top_build_prefix
24306
24307 case $srcdir in
24308   .)  # We are building in place.
24309     ac_srcdir=.
24310     ac_top_srcdir=$ac_top_builddir_sub
24311     ac_abs_top_srcdir=$ac_pwd ;;
24312   [\\/]* | ?:[\\/]* )  # Absolute name.
24313     ac_srcdir=$srcdir$ac_dir_suffix;
24314     ac_top_srcdir=$srcdir
24315     ac_abs_top_srcdir=$srcdir ;;
24316   *) # Relative name.
24317     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24318     ac_top_srcdir=$ac_top_build_prefix$srcdir
24319     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24320 esac
24321 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24322
24323
24324   case $ac_mode in
24325   :F)
24326   #
24327   # CONFIG_FILE
24328   #
24329
24330 _ACEOF
24331
24332 cat >>$CONFIG_STATUS <<\_ACEOF
24333 # If the template does not know about datarootdir, expand it.
24334 # FIXME: This hack should be removed a few years after 2.60.
24335 ac_datarootdir_hack=; ac_datarootdir_seen=
24336
24337 case `sed -n '/datarootdir/ {
24338   p
24339   q
24340 }
24341 /@datadir@/p
24342 /@docdir@/p
24343 /@infodir@/p
24344 /@localedir@/p
24345 /@mandir@/p
24346 ' $ac_file_inputs` in
24347 *datarootdir*) ac_datarootdir_seen=yes;;
24348 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24349   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24350 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24351 _ACEOF
24352 cat >>$CONFIG_STATUS <<_ACEOF
24353   ac_datarootdir_hack='
24354   s&@datadir@&$datadir&g
24355   s&@docdir@&$docdir&g
24356   s&@infodir@&$infodir&g
24357   s&@localedir@&$localedir&g
24358   s&@mandir@&$mandir&g
24359     s&\\\${datarootdir}&$datarootdir&g' ;;
24360 esac
24361 _ACEOF
24362
24363 # Neutralize VPATH when `$srcdir' = `.'.
24364 # Shell code in configure.ac might set extrasub.
24365 # FIXME: do we really want to maintain this feature?
24366 cat >>$CONFIG_STATUS <<_ACEOF
24367   sed "$ac_vpsub
24368 $extrasub
24369 _ACEOF
24370 cat >>$CONFIG_STATUS <<\_ACEOF
24371 :t
24372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24373 s&@configure_input@&$configure_input&;t t
24374 s&@top_builddir@&$ac_top_builddir_sub&;t t
24375 s&@srcdir@&$ac_srcdir&;t t
24376 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24377 s&@top_srcdir@&$ac_top_srcdir&;t t
24378 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24379 s&@builddir@&$ac_builddir&;t t
24380 s&@abs_builddir@&$ac_abs_builddir&;t t
24381 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24382 $ac_datarootdir_hack
24383 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24384
24385 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24386   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24387   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24388   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24389 which seems to be undefined.  Please make sure it is defined." >&5
24390 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24391 which seems to be undefined.  Please make sure it is defined." >&2;}
24392
24393   rm -f "$tmp/stdin"
24394   case $ac_file in
24395   -) cat "$tmp/out"; rm -f "$tmp/out";;
24396   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24397   esac
24398  ;;
24399   :H)
24400   #
24401   # CONFIG_HEADER
24402   #
24403 _ACEOF
24404
24405 # Transform confdefs.h into a sed script `conftest.defines', that
24406 # substitutes the proper values into config.h.in to produce config.h.
24407 rm -f conftest.defines conftest.tail
24408 # First, append a space to every undef/define line, to ease matching.
24409 echo 's/$/ /' >conftest.defines
24410 # Then, protect against being on the right side of a sed subst, or in
24411 # an unquoted here document, in config.status.  If some macros were
24412 # called several times there might be several #defines for the same
24413 # symbol, which is useless.  But do not sort them, since the last
24414 # AC_DEFINE must be honored.
24415 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24416 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24417 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24418 # PARAMS is the parameter list in the macro definition--in most cases, it's
24419 # just an empty string.
24420 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24421 ac_dB='\\)[      (].*,\\1define\\2'
24422 ac_dC=' '
24423 ac_dD=' ,'
24424
24425 uniq confdefs.h |
24426   sed -n '
24427         t rset
24428         :rset
24429         s/^[     ]*#[    ]*define[       ][      ]*//
24430         t ok
24431         d
24432         :ok
24433         s/[\\&,]/\\&/g
24434         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24435         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24436   ' >>conftest.defines
24437
24438 # Remove the space that was appended to ease matching.
24439 # Then replace #undef with comments.  This is necessary, for
24440 # example, in the case of _POSIX_SOURCE, which is predefined and required
24441 # on some systems where configure will not decide to define it.
24442 # (The regexp can be short, since the line contains either #define or #undef.)
24443 echo 's/ $//
24444 s,^[     #]*u.*,/* & */,' >>conftest.defines
24445
24446 # Break up conftest.defines:
24447 ac_max_sed_lines=50
24448
24449 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24450 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24451 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24452 # et cetera.
24453 ac_in='$ac_file_inputs'
24454 ac_out='"$tmp/out1"'
24455 ac_nxt='"$tmp/out2"'
24456
24457 while :
24458 do
24459   # Write a here document:
24460     cat >>$CONFIG_STATUS <<_ACEOF
24461     # First, check the format of the line:
24462     cat >"\$tmp/defines.sed" <<\\CEOF
24463 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24464 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24465 b
24466 :def
24467 _ACEOF
24468   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24469   echo 'CEOF
24470     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24471   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24472   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24473   grep . conftest.tail >/dev/null || break
24474   rm -f conftest.defines
24475   mv conftest.tail conftest.defines
24476 done
24477 rm -f conftest.defines conftest.tail
24478
24479 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24480 cat >>$CONFIG_STATUS <<\_ACEOF
24481   if test x"$ac_file" != x-; then
24482     echo "/* $configure_input  */" >"$tmp/config.h"
24483     cat "$ac_result" >>"$tmp/config.h"
24484     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24485       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24486 echo "$as_me: $ac_file is unchanged" >&6;}
24487     else
24488       rm -f $ac_file
24489       mv "$tmp/config.h" $ac_file
24490     fi
24491   else
24492     echo "/* $configure_input  */"
24493     cat "$ac_result"
24494   fi
24495   rm -f "$tmp/out12"
24496 # Compute $ac_file's index in $config_headers.
24497 _am_arg=$ac_file
24498 _am_stamp_count=1
24499 for _am_header in $config_headers :; do
24500   case $_am_header in
24501     $_am_arg | $_am_arg:* )
24502       break ;;
24503     * )
24504       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24505   esac
24506 done
24507 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24508 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24509          X"$_am_arg" : 'X\(//\)[^/]' \| \
24510          X"$_am_arg" : 'X\(//\)$' \| \
24511          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24512 echo X"$_am_arg" |
24513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24514             s//\1/
24515             q
24516           }
24517           /^X\(\/\/\)[^/].*/{
24518             s//\1/
24519             q
24520           }
24521           /^X\(\/\/\)$/{
24522             s//\1/
24523             q
24524           }
24525           /^X\(\/\).*/{
24526             s//\1/
24527             q
24528           }
24529           s/.*/./; q'`/stamp-h$_am_stamp_count
24530  ;;
24531
24532
24533   esac
24534
24535 done # for ac_tag
24536
24537
24538 { (exit 0); exit 0; }
24539 _ACEOF
24540 chmod +x $CONFIG_STATUS
24541 ac_clean_files=$ac_clean_files_save
24542
24543
24544 # configure is writing to config.log, and then calls config.status.
24545 # config.status does its own redirection, appending to config.log.
24546 # Unfortunately, on DOS this fails, as config.log is still kept open
24547 # by configure, so config.status won't be able to write to it; its
24548 # output is simply discarded.  So we exec the FD to /dev/null,
24549 # effectively closing config.log, so it can be properly (re)opened and
24550 # appended to by config.status.  When coming back to configure, we
24551 # need to make the FD available again.
24552 if test "$no_create" != yes; then
24553   ac_cs_success=:
24554   ac_config_status_args=
24555   test "$silent" = yes &&
24556     ac_config_status_args="$ac_config_status_args --quiet"
24557   exec 5>/dev/null
24558   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24559   exec 5>>config.log
24560   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24561   # would make configure fail if this is the last instruction.
24562   $ac_cs_success || { (exit 1); exit 1; }
24563 fi
24564
24565
24566 if test "$with_pam" = "yes"; then
24567     case $host in
24568         *-*-linux*)
24569             { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24570 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
24571             ;;
24572     esac
24573 fi
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
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720