note bug fixed in new upstream
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sudo 1.8.2.
4 #
5 # Report bugs to <http://www.sudo.ws/bugs/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://www.sudo.ws/bugs/ about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='sudo'
572 PACKAGE_TARNAME='sudo'
573 PACKAGE_VERSION='1.8.2'
574 PACKAGE_STRING='sudo 1.8.2'
575 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
576 PACKAGE_URL=''
577
578 ac_config_libobj_dir=compat
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='LTLIBOBJS
616 KRB5CONFIG
617 LIBOBJS
618 FLEX
619 YFLAGS
620 YACC
621 NROFFPROG
622 TRPROG
623 UNAMEPROG
624 OTOOL64
625 OTOOL
626 LIPO
627 NMEDIT
628 DSYMUTIL
629 MANIFEST_TOOL
630 AWK
631 STRIP
632 ac_ct_AR
633 DLLTOOL
634 OBJDUMP
635 LN_S
636 NM
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LD
640 FGREP
641 EGREP
642 GREP
643 SED
644 host_os
645 host_vendor
646 host_cpu
647 host
648 build_os
649 build_vendor
650 build_cpu
651 build
652 RANLIB
653 AR
654 CPP
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CC
659 editor
660 secure_path
661 netsvc_conf
662 nsswitch_conf
663 ldap_secret
664 ldap_conf
665 path_info
666 root_sudo
667 insults
668 tty_tickets
669 passwd_tries
670 env_reset
671 env_editor
672 runas_default
673 fqdn
674 badpass_message
675 mailsub
676 mailto
677 mail_no_perms
678 mail_no_host
679 mail_no_user
680 ignore_dot
681 loglen
682 badpri
683 goodpri
684 logfac
685 lecture
686 long_otp_prompt
687 passprompt
688 umask_override
689 sudo_umask
690 password_timeout
691 timeout
692 timedir
693 iolog_dir
694 SUDO_NLS
695 LIBINTL
696 LT_STATIC
697 LIBDL
698 CONFIGURE_ARGS
699 ac_config_libobj_dir
700 LIBTOOL_DEPS
701 ZLIB_SRC
702 ZLIB
703 LOGINCAP_USAGE
704 LDAP
705 SELINUX_USAGE
706 BSDAUTH_USAGE
707 DONT_LEAK_PATH_INFO
708 INSTALL_NOEXEC
709 noexec_file
710 SOEXT
711 PLUGINDIR
712 NOEXECDIR
713 NOEXECFILE
714 mansrcdir
715 mansectform
716 mansectsu
717 devdir
718 SEMAN
719 LCMAN
720 BAMAN
721 DEV
722 SUDOERS_GID
723 SUDOERS_UID
724 SUDOERS_MODE
725 MAN_POSTINSTALL
726 MANTYPE
727 AUTH_OBJS
728 OSDEFS
729 GETGROUPS_LIB
730 REPLAY_LIBS
731 AFS_LIBS
732 NET_LIBS
733 SUDOERS_LIBS
734 SUDO_LIBS
735 SUDO_OBJS
736 SUDOERS_OBJS
737 COMMON_OBJS
738 LTLDFLAGS
739 SUDOERS_LDFLAGS
740 LDFLAGS
741 CPPFLAGS
742 PROGS
743 CFLAGS
744 LIBTOOL
745 HAVE_BSM_AUDIT
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 with_otp_only
788 with_alertmail
789 with_devel
790 with_CC
791 with_rpath
792 with_blibpath
793 with_bsm_audit
794 with_linux_audit
795 with_incpath
796 with_libpath
797 with_libraries
798 with_efence
799 with_csops
800 with_passwd
801 with_skey
802 with_opie
803 with_long_otp_prompt
804 with_SecurID
805 with_fwtk
806 with_kerb4
807 with_kerb5
808 with_aixauth
809 with_pam
810 with_AFS
811 with_DCE
812 with_logincap
813 with_bsdauth
814 with_project
815 with_lecture
816 with_logging
817 with_logfac
818 with_goodpri
819 with_badpri
820 with_logpath
821 with_loglen
822 with_ignore_dot
823 with_mail_if_no_user
824 with_mail_if_no_host
825 with_mail_if_noperms
826 with_mailto
827 with_mailsubject
828 with_passprompt
829 with_badpass_message
830 with_fqdn
831 with_timedir
832 with_iologdir
833 with_sendmail
834 with_sudoers_mode
835 with_sudoers_uid
836 with_sudoers_gid
837 with_umask
838 with_umask_override
839 with_runas_default
840 with_exempt
841 with_editor
842 with_env_editor
843 with_passwd_tries
844 with_timeout
845 with_password_timeout
846 with_tty_tickets
847 with_insults
848 with_all_insults
849 with_classic_insults
850 with_csops_insults
851 with_hal_insults
852 with_goons_insults
853 with_nsswitch
854 with_ldap
855 with_ldap_conf_file
856 with_ldap_secret_file
857 with_pc_insults
858 with_secure_path
859 with_interfaces
860 with_stow
861 with_askpass
862 with_plugindir
863 enable_authentication
864 enable_root_mailer
865 enable_setreuid
866 enable_setresuid
867 enable_shadow
868 enable_root_sudo
869 enable_log_host
870 enable_noargs_shell
871 enable_shell_sets_home
872 enable_path_info
873 enable_env_debug
874 enable_zlib
875 enable_env_reset
876 enable_warnings
877 enable_admin_flag
878 enable_nls
879 with_selinux
880 enable_gss_krb5_ccache_name
881 enable_shared
882 enable_static
883 with_pic
884 enable_fast_install
885 with_gnu_ld
886 with_sysroot
887 enable_libtool_lock
888 with_noexec
889 with_netsvc
890 enable_sia
891 enable_largefile
892 with_pam_login
893 enable_pam_session
894 '
895       ac_precious_vars='build_alias
896 host_alias
897 target_alias
898 CC
899 CFLAGS
900 LDFLAGS
901 LIBS
902 CPPFLAGS
903 CPP
904 YACC
905 YFLAGS'
906
907
908 # Initialize some variables set by options.
909 ac_init_help=
910 ac_init_version=false
911 ac_unrecognized_opts=
912 ac_unrecognized_sep=
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= ;;
970   *)    ac_optarg=yes ;;
971   esac
972
973   # Accept the important Cygnus configure options, so we can diagnose typos.
974
975   case $ac_dashdash$ac_option in
976   --)
977     ac_dashdash=yes ;;
978
979   -bindir | --bindir | --bindi | --bind | --bin | --bi)
980     ac_prev=bindir ;;
981   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982     bindir=$ac_optarg ;;
983
984   -build | --build | --buil | --bui | --bu)
985     ac_prev=build_alias ;;
986   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987     build_alias=$ac_optarg ;;
988
989   -cache-file | --cache-file | --cache-fil | --cache-fi \
990   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991     ac_prev=cache_file ;;
992   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994     cache_file=$ac_optarg ;;
995
996   --config-cache | -C)
997     cache_file=config.cache ;;
998
999   -datadir | --datadir | --datadi | --datad)
1000     ac_prev=datadir ;;
1001   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002     datadir=$ac_optarg ;;
1003
1004   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005   | --dataroo | --dataro | --datar)
1006     ac_prev=datarootdir ;;
1007   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009     datarootdir=$ac_optarg ;;
1010
1011   -disable-* | --disable-*)
1012     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013     # Reject names that are not valid shell variable names.
1014     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015       as_fn_error $? "invalid feature name: $ac_useropt"
1016     ac_useropt_orig=$ac_useropt
1017     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018     case $ac_user_opts in
1019       *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023          ac_unrecognized_sep=', ';;
1024     esac
1025     eval enable_$ac_useropt=no ;;
1026
1027   -docdir | --docdir | --docdi | --doc | --do)
1028     ac_prev=docdir ;;
1029   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030     docdir=$ac_optarg ;;
1031
1032   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033     ac_prev=dvidir ;;
1034   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035     dvidir=$ac_optarg ;;
1036
1037   -enable-* | --enable-*)
1038     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039     # Reject names that are not valid shell variable names.
1040     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041       as_fn_error $? "invalid feature name: $ac_useropt"
1042     ac_useropt_orig=$ac_useropt
1043     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044     case $ac_user_opts in
1045       *"
1046 "enable_$ac_useropt"
1047 "*) ;;
1048       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049          ac_unrecognized_sep=', ';;
1050     esac
1051     eval enable_$ac_useropt=\$ac_optarg ;;
1052
1053   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055   | --exec | --exe | --ex)
1056     ac_prev=exec_prefix ;;
1057   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059   | --exec=* | --exe=* | --ex=*)
1060     exec_prefix=$ac_optarg ;;
1061
1062   -gas | --gas | --ga | --g)
1063     # Obsolete; use --with-gas.
1064     with_gas=yes ;;
1065
1066   -help | --help | --hel | --he | -h)
1067     ac_init_help=long ;;
1068   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069     ac_init_help=recursive ;;
1070   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071     ac_init_help=short ;;
1072
1073   -host | --host | --hos | --ho)
1074     ac_prev=host_alias ;;
1075   -host=* | --host=* | --hos=* | --ho=*)
1076     host_alias=$ac_optarg ;;
1077
1078   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079     ac_prev=htmldir ;;
1080   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081   | --ht=*)
1082     htmldir=$ac_optarg ;;
1083
1084   -includedir | --includedir | --includedi | --included | --include \
1085   | --includ | --inclu | --incl | --inc)
1086     ac_prev=includedir ;;
1087   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088   | --includ=* | --inclu=* | --incl=* | --inc=*)
1089     includedir=$ac_optarg ;;
1090
1091   -infodir | --infodir | --infodi | --infod | --info | --inf)
1092     ac_prev=infodir ;;
1093   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094     infodir=$ac_optarg ;;
1095
1096   -libdir | --libdir | --libdi | --libd)
1097     ac_prev=libdir ;;
1098   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099     libdir=$ac_optarg ;;
1100
1101   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102   | --libexe | --libex | --libe)
1103     ac_prev=libexecdir ;;
1104   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105   | --libexe=* | --libex=* | --libe=*)
1106     libexecdir=$ac_optarg ;;
1107
1108   -localedir | --localedir | --localedi | --localed | --locale)
1109     ac_prev=localedir ;;
1110   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111     localedir=$ac_optarg ;;
1112
1113   -localstatedir | --localstatedir | --localstatedi | --localstated \
1114   | --localstate | --localstat | --localsta | --localst | --locals)
1115     ac_prev=localstatedir ;;
1116   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118     localstatedir=$ac_optarg ;;
1119
1120   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121     ac_prev=mandir ;;
1122   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123     mandir=$ac_optarg ;;
1124
1125   -nfp | --nfp | --nf)
1126     # Obsolete; use --without-fp.
1127     with_fp=no ;;
1128
1129   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130   | --no-cr | --no-c | -n)
1131     no_create=yes ;;
1132
1133   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135     no_recursion=yes ;;
1136
1137   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139   | --oldin | --oldi | --old | --ol | --o)
1140     ac_prev=oldincludedir ;;
1141   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144     oldincludedir=$ac_optarg ;;
1145
1146   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147     ac_prev=prefix ;;
1148   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149     prefix=$ac_optarg ;;
1150
1151   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152   | --program-pre | --program-pr | --program-p)
1153     ac_prev=program_prefix ;;
1154   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156     program_prefix=$ac_optarg ;;
1157
1158   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159   | --program-suf | --program-su | --program-s)
1160     ac_prev=program_suffix ;;
1161   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163     program_suffix=$ac_optarg ;;
1164
1165   -program-transform-name | --program-transform-name \
1166   | --program-transform-nam | --program-transform-na \
1167   | --program-transform-n | --program-transform- \
1168   | --program-transform | --program-transfor \
1169   | --program-transfo | --program-transf \
1170   | --program-trans | --program-tran \
1171   | --progr-tra | --program-tr | --program-t)
1172     ac_prev=program_transform_name ;;
1173   -program-transform-name=* | --program-transform-name=* \
1174   | --program-transform-nam=* | --program-transform-na=* \
1175   | --program-transform-n=* | --program-transform-=* \
1176   | --program-transform=* | --program-transfor=* \
1177   | --program-transfo=* | --program-transf=* \
1178   | --program-trans=* | --program-tran=* \
1179   | --progr-tra=* | --program-tr=* | --program-t=*)
1180     program_transform_name=$ac_optarg ;;
1181
1182   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183     ac_prev=pdfdir ;;
1184   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185     pdfdir=$ac_optarg ;;
1186
1187   -psdir | --psdir | --psdi | --psd | --ps)
1188     ac_prev=psdir ;;
1189   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190     psdir=$ac_optarg ;;
1191
1192   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193   | -silent | --silent | --silen | --sile | --sil)
1194     silent=yes ;;
1195
1196   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197     ac_prev=sbindir ;;
1198   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199   | --sbi=* | --sb=*)
1200     sbindir=$ac_optarg ;;
1201
1202   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204   | --sharedst | --shareds | --shared | --share | --shar \
1205   | --sha | --sh)
1206     ac_prev=sharedstatedir ;;
1207   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210   | --sha=* | --sh=*)
1211     sharedstatedir=$ac_optarg ;;
1212
1213   -site | --site | --sit)
1214     ac_prev=site ;;
1215   -site=* | --site=* | --sit=*)
1216     site=$ac_optarg ;;
1217
1218   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219     ac_prev=srcdir ;;
1220   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221     srcdir=$ac_optarg ;;
1222
1223   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224   | --syscon | --sysco | --sysc | --sys | --sy)
1225     ac_prev=sysconfdir ;;
1226   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228     sysconfdir=$ac_optarg ;;
1229
1230   -target | --target | --targe | --targ | --tar | --ta | --t)
1231     ac_prev=target_alias ;;
1232   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233     target_alias=$ac_optarg ;;
1234
1235   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236     verbose=yes ;;
1237
1238   -version | --version | --versio | --versi | --vers | -V)
1239     ac_init_version=: ;;
1240
1241   -with-* | --with-*)
1242     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243     # Reject names that are not valid shell variable names.
1244     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245       as_fn_error $? "invalid package name: $ac_useropt"
1246     ac_useropt_orig=$ac_useropt
1247     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248     case $ac_user_opts in
1249       *"
1250 "with_$ac_useropt"
1251 "*) ;;
1252       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253          ac_unrecognized_sep=', ';;
1254     esac
1255     eval with_$ac_useropt=\$ac_optarg ;;
1256
1257   -without-* | --without-*)
1258     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259     # Reject names that are not valid shell variable names.
1260     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261       as_fn_error $? "invalid package name: $ac_useropt"
1262     ac_useropt_orig=$ac_useropt
1263     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264     case $ac_user_opts in
1265       *"
1266 "with_$ac_useropt"
1267 "*) ;;
1268       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269          ac_unrecognized_sep=', ';;
1270     esac
1271     eval with_$ac_useropt=no ;;
1272
1273   --x)
1274     # Obsolete; use --with-x.
1275     with_x=yes ;;
1276
1277   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278   | --x-incl | --x-inc | --x-in | --x-i)
1279     ac_prev=x_includes ;;
1280   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282     x_includes=$ac_optarg ;;
1283
1284   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286     ac_prev=x_libraries ;;
1287   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289     x_libraries=$ac_optarg ;;
1290
1291   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information"
1293     ;;
1294
1295   *=*)
1296     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297     # Reject names that are not valid shell variable names.
1298     case $ac_envvar in #(
1299       '' | [0-9]* | *[!_$as_cr_alnum]* )
1300       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1301     esac
1302     eval $ac_envvar=\$ac_optarg
1303     export $ac_envvar ;;
1304
1305   *)
1306     # FIXME: should be removed in autoconf 3.0.
1307     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311     ;;
1312
1313   esac
1314 done
1315
1316 if test -n "$ac_prev"; then
1317   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318   as_fn_error $? "missing argument to $ac_option"
1319 fi
1320
1321 if test -n "$ac_unrecognized_opts"; then
1322   case $enable_option_checking in
1323     no) ;;
1324     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1325     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326   esac
1327 fi
1328
1329 # Check all directory arguments for consistency.
1330 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331                 datadir sysconfdir sharedstatedir localstatedir includedir \
1332                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333                 libdir localedir mandir
1334 do
1335   eval ac_val=\$$ac_var
1336   # Remove trailing slashes.
1337   case $ac_val in
1338     */ )
1339       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340       eval $ac_var=\$ac_val;;
1341   esac
1342   # Be sure to have absolute directory names.
1343   case $ac_val in
1344     [\\/$]* | ?:[\\/]* )  continue;;
1345     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346   esac
1347   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1348 done
1349
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1353 build=$build_alias
1354 host=$host_alias
1355 target=$target_alias
1356
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359   if test "x$build_alias" = x; then
1360     cross_compiling=maybe
1361     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1362     If a cross compiler is detected then cross compile mode will be used" >&2
1363   elif test "x$build_alias" != "x$host_alias"; then
1364     cross_compiling=yes
1365   fi
1366 fi
1367
1368 ac_tool_prefix=
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371 test "$silent" = yes && exec 6>/dev/null
1372
1373
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377   as_fn_error $? "working directory cannot be determined"
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379   as_fn_error $? "pwd does not report name of working directory"
1380
1381
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384   ac_srcdir_defaulted=yes
1385   # Try the directory containing this script, then the parent directory.
1386   ac_confdir=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388          X"$as_myself" : 'X\(//\)[^/]' \| \
1389          X"$as_myself" : 'X\(//\)$' \| \
1390          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\/\)[^/].*/{
1397             s//\1/
1398             q
1399           }
1400           /^X\(\/\/\)$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\).*/{
1405             s//\1/
1406             q
1407           }
1408           s/.*/./; q'`
1409   srcdir=$ac_confdir
1410   if test ! -r "$srcdir/$ac_unique_file"; then
1411     srcdir=..
1412   fi
1413 else
1414   ac_srcdir_defaulted=no
1415 fi
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1419 fi
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 ac_abs_confdir=`(
1422         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1423         pwd)`
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426   srcdir=.
1427 fi
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1431 case $srcdir in
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 esac
1434 for ac_var in $ac_precious_vars; do
1435   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436   eval ac_env_${ac_var}_value=\$${ac_var}
1437   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1440
1441 #
1442 # Report the --help message.
1443 #
1444 if test "$ac_init_help" = "long"; then
1445   # Omit some internal or obsolete options to make the list less imposing.
1446   # This message is too long to be a string in the A/UX 3.1 sh.
1447   cat <<_ACEOF
1448 \`configure' configures sudo 1.8.2 to adapt to many kinds of systems.
1449
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE.  See below for descriptions of some of the useful variables.
1454
1455 Defaults for the options are specified in brackets.
1456
1457 Configuration:
1458   -h, --help              display this help and exit
1459       --help=short        display options specific to this package
1460       --help=recursive    display the short help of all the included packages
1461   -V, --version           display version information and exit
1462   -q, --quiet, --silent   do not print \`checking ...' messages
1463       --cache-file=FILE   cache test results in FILE [disabled]
1464   -C, --config-cache      alias for \`--cache-file=config.cache'
1465   -n, --no-create         do not create output files
1466       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1467
1468 Installation directories:
1469   --prefix=PREFIX         install architecture-independent files in PREFIX
1470                           [$ac_default_prefix]
1471   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1472                           [PREFIX]
1473
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1478
1479 For better control, use the options below.
1480
1481 Fine tuning of the installation directories:
1482   --bindir=DIR            user executables [EPREFIX/bin]
1483   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1484   --libexecdir=DIR        program executables [EPREFIX/libexec]
1485   --sysconfdir=DIR        read-only single-machine data [/etc]
1486   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1487   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1488   --libdir=DIR            object code libraries [EPREFIX/lib]
1489   --includedir=DIR        C header files [PREFIX/include]
1490   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1491   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1492   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1493   --infodir=DIR           info documentation [DATAROOTDIR/info]
1494   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1495   --mandir=DIR            man documentation [DATAROOTDIR/man]
1496   --docdir=DIR            documentation root [DATAROOTDIR/doc/sudo]
1497   --htmldir=DIR           html documentation [DOCDIR]
1498   --dvidir=DIR            dvi documentation [DOCDIR]
1499   --pdfdir=DIR            pdf documentation [DOCDIR]
1500   --psdir=DIR             ps documentation [DOCDIR]
1501 _ACEOF
1502
1503   cat <<\_ACEOF
1504
1505 System types:
1506   --build=BUILD     configure for building on BUILD [guessed]
1507   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1508 _ACEOF
1509 fi
1510
1511 if test -n "$ac_init_help"; then
1512   case $ac_init_help in
1513      short | recursive ) echo "Configuration of sudo 1.8.2:";;
1514    esac
1515   cat <<\_ACEOF
1516
1517 Optional Features:
1518   --disable-option-checking  ignore unrecognized --enable/--with options
1519   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1520   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1521   --disable-authentication
1522                           Do not require authentication by default
1523   --disable-root-mailer   Don't run the mailer as root, run as the user
1524   --disable-setreuid      Don't try to use the setreuid() function
1525   --disable-setresuid     Don't try to use the setresuid() function
1526   --disable-shadow        Never use shadow passwords
1527   --disable-root-sudo     Don't allow root to run sudo
1528   --enable-log-host       Log the hostname in the log file
1529   --enable-noargs-shell   If sudo is given no arguments run a shell
1530   --enable-shell-sets-home
1531                           Set $HOME to target user in shell mode
1532   --disable-path-info     Print 'command not allowed' not 'command not found'
1533   --enable-env-debug      Whether to enable environment debugging.
1534   --enable-zlib[=PATH]    Whether to enable or disable zlib
1535   --enable-env-reset      Whether to enable environment resetting by default.
1536   --enable-warnings       Whether to enable compiler warnings
1537   --enable-admin-flag     Whether to create a Ubuntu-style admin flag file
1538   --disable-nls           Disable natural language support using gettext
1539   --enable-gss-krb5-ccache-name
1540                           Use GSS-API to set the Kerberos V cred cache name
1541   --enable-shared[=PKGS]  build shared libraries [default=yes]
1542   --enable-static[=PKGS]  build static libraries [default=yes]
1543   --enable-fast-install[=PKGS]
1544                           optimize for fast installation [default=yes]
1545   --disable-libtool-lock  avoid locking (might break parallel builds)
1546   --disable-sia           Disable SIA on Digital UNIX
1547   --disable-largefile     omit support for large files
1548   --disable-pam-session   Disable PAM session support
1549
1550 Optional Packages:
1551   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1552   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1553   --with-otp-only         deprecated
1554   --with-alertmail        deprecated
1555   --with-devel            add development options
1556   --with-CC               C compiler to use
1557   --with-rpath            pass -R flag in addition to -L for lib paths
1558   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1559   --with-bsm-audit        enable BSM audit support
1560   --with-linux-audit      enable Linux audit support
1561   --with-incpath          additional places to look for include files
1562   --with-libpath          additional places to look for libraries
1563   --with-libraries        additional libraries to link with
1564   --with-efence           link with -lefence for malloc() debugging
1565   --with-csops            add CSOps standard options
1566   --without-passwd        don't use passwd/shadow file for authentication
1567   --with-skey=DIR         enable S/Key support
1568   --with-opie=DIR         enable OPIE support
1569   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1570   --with-SecurID[=DIR]    enable SecurID support
1571   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1572   --with-kerb4[=DIR]      enable Kerberos IV support
1573   --with-kerb5[=DIR]      enable Kerberos V support
1574   --with-aixauth          enable AIX general authentication support
1575   --with-pam              enable PAM support
1576   --with-AFS              enable AFS support
1577   --with-DCE              enable DCE support
1578   --with-logincap         enable BSD login class support
1579   --with-bsdauth          enable BSD authentication support
1580   --with-project          enable Solaris project support
1581   --without-lecture       don't print lecture for first-time sudoer
1582   --with-logging          log via syslog, file, or both
1583   --with-logfac           syslog facility to log with (default is "auth")
1584   --with-goodpri          syslog priority for commands (def is "notice")
1585   --with-badpri           syslog priority for failures (def is "alert")
1586   --with-logpath          path to the sudo log file
1587   --with-loglen           maximum length of a log file line (default is 80)
1588   --with-ignore-dot       ignore '.' in the PATH
1589   --without-mail-if-no-user
1590                           do not send mail if user not in sudoers
1591   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1592   --with-mail-if-noperms  send mail if user not allowed to run command
1593   --with-mailto           who should get sudo mail (default is "root")
1594   --with-mailsubject      subject of sudo mail
1595   --with-passprompt       default password prompt
1596   --with-badpass-message  message the user sees when the password is wrong
1597   --with-fqdn             expect fully qualified hosts in sudoers
1598   --with-timedir          path to the sudo timestamp dir
1599   --with-iologdir=DIR     directory to store sudo I/O log files in
1600   --with-sendmail         set path to sendmail
1601   --without-sendmail      do not send mail at all
1602   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1603   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1604   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1605   --with-umask            umask with which the prog should run (default is
1606                           022)
1607   --without-umask         Preserves the umask of the user invoking sudo.
1608   --with-umask-override   Use the umask specified in sudoers even if it is
1609                           less restrictive than the user's.
1610   --with-runas-default    User to run commands as (default is "root")
1611   --with-exempt=group     no passwd needed for users in this group
1612   --with-editor=path      Default editor for visudo (defaults to vi)
1613   --with-env-editor       Use the environment variable EDITOR for visudo
1614   --with-passwd-tries     number of tries to enter password (default is 3)
1615   --with-timeout          minutes before sudo asks for passwd again (def is 5
1616                           minutes)
1617   --with-password-timeout passwd prompt timeout in minutes (default is 5
1618                           minutes)
1619   --with-tty-tickets      use a different ticket file for each tty
1620   --with-insults          insult the user for entering an incorrect password
1621   --with-all-insults      include all the sudo insult sets
1622   --with-classic-insults  include the insults from the "classic" sudo
1623   --with-csops-insults    include CSOps insults
1624   --with-hal-insults      include 2001-like insults
1625   --with-goons-insults    include the insults from the "Goon Show"
1626   --with-nsswitch[=PATH]  path to nsswitch.conf
1627   --with-ldap[=DIR]       enable LDAP support
1628   --with-ldap-conf-file   path to LDAP configuration file
1629   --with-ldap-secret-file path to LDAP secret password file
1630   --with-pc-insults       replace politically incorrect insults with less
1631                           offensive ones
1632   --with-secure-path      override the user's path with a built-in one
1633   --without-interfaces    don't try to read the ip addr of ether interfaces
1634   --with-stow             properly handle GNU stow packaging
1635   --with-askpass=PATH     Fully qualified pathname of askpass helper
1636   --with-plugindir        set directory to load plugins from
1637   --with-selinux          enable SELinux support
1638   --with-pic              try to use only PIC/non-PIC objects [default=use
1639                           both]
1640   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1641   --with-sysroot=DIR Search for dependent libraries within DIR
1642                         (or the compiler's sysroot if not specified).
1643   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1644   --with-netsvc[=PATH]    path to netsvc.conf
1645   --with-pam-login        enable specific PAM session for sudo -i
1646
1647 Some influential environment variables:
1648   CC          C compiler command
1649   CFLAGS      C compiler flags
1650   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1651               nonstandard directory <lib dir>
1652   LIBS        libraries to pass to the linker, e.g. -l<library>
1653   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1654               you have headers in a nonstandard directory <include dir>
1655   CPP         C preprocessor
1656   YACC        The `Yet Another Compiler Compiler' implementation to use.
1657               Defaults to the first program found out of: `bison -y', `byacc',
1658               `yacc'.
1659   YFLAGS      The list of arguments that will be passed by default to $YACC.
1660               This script will default YFLAGS to the empty string to avoid a
1661               default value of `-d' given by some make applications.
1662
1663 Use these variables to override the choices made by `configure' or to help
1664 it to find libraries and programs with nonstandard names/locations.
1665
1666 Report bugs to <http://www.sudo.ws/bugs/>.
1667 _ACEOF
1668 ac_status=$?
1669 fi
1670
1671 if test "$ac_init_help" = "recursive"; then
1672   # If there are subdirs, report their specific --help.
1673   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1674     test -d "$ac_dir" ||
1675       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1676       continue
1677     ac_builddir=.
1678
1679 case "$ac_dir" in
1680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *)
1682   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1683   # A ".." for each directory in $ac_dir_suffix.
1684   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1685   case $ac_top_builddir_sub in
1686   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1688   esac ;;
1689 esac
1690 ac_abs_top_builddir=$ac_pwd
1691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1692 # for backward compatibility:
1693 ac_top_builddir=$ac_top_build_prefix
1694
1695 case $srcdir in
1696   .)  # We are building in place.
1697     ac_srcdir=.
1698     ac_top_srcdir=$ac_top_builddir_sub
1699     ac_abs_top_srcdir=$ac_pwd ;;
1700   [\\/]* | ?:[\\/]* )  # Absolute name.
1701     ac_srcdir=$srcdir$ac_dir_suffix;
1702     ac_top_srcdir=$srcdir
1703     ac_abs_top_srcdir=$srcdir ;;
1704   *) # Relative name.
1705     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1706     ac_top_srcdir=$ac_top_build_prefix$srcdir
1707     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1708 esac
1709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1710
1711     cd "$ac_dir" || { ac_status=$?; continue; }
1712     # Check for guested configure.
1713     if test -f "$ac_srcdir/configure.gnu"; then
1714       echo &&
1715       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1716     elif test -f "$ac_srcdir/configure"; then
1717       echo &&
1718       $SHELL "$ac_srcdir/configure" --help=recursive
1719     else
1720       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1721     fi || ac_status=$?
1722     cd "$ac_pwd" || { ac_status=$?; break; }
1723   done
1724 fi
1725
1726 test -n "$ac_init_help" && exit $ac_status
1727 if $ac_init_version; then
1728   cat <<\_ACEOF
1729 sudo configure 1.8.2
1730 generated by GNU Autoconf 2.68
1731
1732 Copyright (C) 2010 Free Software Foundation, Inc.
1733 This configure script is free software; the Free Software Foundation
1734 gives unlimited permission to copy, distribute and modify it.
1735 _ACEOF
1736   exit
1737 fi
1738
1739 ## ------------------------ ##
1740 ## Autoconf initialization. ##
1741 ## ------------------------ ##
1742
1743 # ac_fn_c_try_compile LINENO
1744 # --------------------------
1745 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_compile ()
1747 {
1748   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749   rm -f conftest.$ac_objext
1750   if { { ac_try="$ac_compile"
1751 case "(($ac_try" in
1752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753   *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757   (eval "$ac_compile") 2>conftest.err
1758   ac_status=$?
1759   if test -s conftest.err; then
1760     grep -v '^ *+' conftest.err >conftest.er1
1761     cat conftest.er1 >&5
1762     mv -f conftest.er1 conftest.err
1763   fi
1764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765   test $ac_status = 0; } && {
1766          test -z "$ac_c_werror_flag" ||
1767          test ! -s conftest.err
1768        } && test -s conftest.$ac_objext; then :
1769   ac_retval=0
1770 else
1771   $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774         ac_retval=1
1775 fi
1776   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777   as_fn_set_status $ac_retval
1778
1779 } # ac_fn_c_try_compile
1780
1781 # ac_fn_c_try_link LINENO
1782 # -----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_link ()
1785 {
1786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787   rm -f conftest.$ac_objext conftest$ac_exeext
1788   if { { ac_try="$ac_link"
1789 case "(($ac_try" in
1790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791   *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795   (eval "$ac_link") 2>conftest.err
1796   ac_status=$?
1797   if test -s conftest.err; then
1798     grep -v '^ *+' conftest.err >conftest.er1
1799     cat conftest.er1 >&5
1800     mv -f conftest.er1 conftest.err
1801   fi
1802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803   test $ac_status = 0; } && {
1804          test -z "$ac_c_werror_flag" ||
1805          test ! -s conftest.err
1806        } && test -s conftest$ac_exeext && {
1807          test "$cross_compiling" = yes ||
1808          $as_test_x conftest$ac_exeext
1809        }; then :
1810   ac_retval=0
1811 else
1812   $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815         ac_retval=1
1816 fi
1817   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819   # interfere with the next link command; also delete a directory that is
1820   # left behind by Apple's compiler.  We do this before executing the actions.
1821   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823   as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_link
1826
1827 # ac_fn_c_try_cpp LINENO
1828 # ----------------------
1829 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_cpp ()
1831 {
1832   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833   if { { ac_try="$ac_cpp conftest.$ac_ext"
1834 case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841   ac_status=$?
1842   if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846   fi
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } > conftest.i && {
1849          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850          test ! -s conftest.err
1851        }; then :
1852   ac_retval=0
1853 else
1854   $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857     ac_retval=1
1858 fi
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860   as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_cpp
1863
1864 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists and can be compiled using the include files in
1867 # INCLUDES, setting the cache variable VAR accordingly.
1868 ac_fn_c_check_header_compile ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874   $as_echo_n "(cached) " >&6
1875 else
1876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h.  */
1878 $4
1879 #include <$2>
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882   eval "$3=yes"
1883 else
1884   eval "$3=no"
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 fi
1888 eval ac_res=\$$3
1889                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893 } # ac_fn_c_check_header_compile
1894
1895 # ac_fn_c_try_run LINENO
1896 # ----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898 # that executables *can* be run.
1899 ac_fn_c_try_run ()
1900 {
1901   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902   if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905   *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909   (eval "$ac_link") 2>&5
1910   ac_status=$?
1911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1913   { { case "(($ac_try" in
1914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915   *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919   (eval "$ac_try") 2>&5
1920   ac_status=$?
1921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922   test $ac_status = 0; }; }; then :
1923   ac_retval=0
1924 else
1925   $as_echo "$as_me: program exited with status $ac_status" >&5
1926        $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929        ac_retval=$ac_status
1930 fi
1931   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933   as_fn_set_status $ac_retval
1934
1935 } # ac_fn_c_try_run
1936
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func ()
1941 {
1942   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946   $as_echo_n "(cached) " >&6
1947 else
1948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h.  */
1950 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1952 #define $2 innocuous_$2
1953
1954 /* System header to define __stub macros and hopefully few prototypes,
1955     which can conflict with char $2 (); below.
1956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957     <limits.h> exists even on freestanding compilers.  */
1958
1959 #ifdef __STDC__
1960 # include <limits.h>
1961 #else
1962 # include <assert.h>
1963 #endif
1964
1965 #undef $2
1966
1967 /* Override any GCC internal prototype to avoid an error.
1968    Use char because int might match the return type of a GCC
1969    builtin and then its argument prototype would still apply.  */
1970 #ifdef __cplusplus
1971 extern "C"
1972 #endif
1973 char $2 ();
1974 /* The GNU C library defines this for functions which it implements
1975     to always fail with ENOSYS.  Some functions are actually named
1976     something starting with __ and the normal name is an alias.  */
1977 #if defined __stub_$2 || defined __stub___$2
1978 choke me
1979 #endif
1980
1981 int
1982 main ()
1983 {
1984 return $2 ();
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_link "$LINENO"; then :
1990   eval "$3=yes"
1991 else
1992   eval "$3=no"
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext \
1995     conftest$ac_exeext conftest.$ac_ext
1996 fi
1997 eval ac_res=\$$3
1998                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002 } # ac_fn_c_check_func
2003
2004 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2007 # the include files in INCLUDES and setting the cache variable VAR
2008 # accordingly.
2009 ac_fn_c_check_header_mongrel ()
2010 {
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   if eval \${$3+:} false; then :
2013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016   $as_echo_n "(cached) " >&6
2017 fi
2018 eval ac_res=\$$3
2019                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 else
2022   # Is the header compilable?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2024 $as_echo_n "checking $2 usability... " >&6; }
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $4
2028 #include <$2>
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031   ac_header_compiler=yes
2032 else
2033   ac_header_compiler=no
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2037 $as_echo "$ac_header_compiler" >&6; }
2038
2039 # Is the header present?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2041 $as_echo_n "checking $2 presence... " >&6; }
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h.  */
2044 #include <$2>
2045 _ACEOF
2046 if ac_fn_c_try_cpp "$LINENO"; then :
2047   ac_header_preproc=yes
2048 else
2049   ac_header_preproc=no
2050 fi
2051 rm -f conftest.err conftest.i conftest.$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2053 $as_echo "$ac_header_preproc" >&6; }
2054
2055 # So?  What about this header?
2056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2057   yes:no: )
2058     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2059 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2060     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2062     ;;
2063   no:yes:* )
2064     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2065 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2066     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2067 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2068     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2069 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2070     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2071 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2072     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074 ( $as_echo "## --------------------------------------- ##
2075 ## Report this to http://www.sudo.ws/bugs/ ##
2076 ## --------------------------------------- ##"
2077      ) | sed "s/^/$as_me: WARNING:     /" >&2
2078     ;;
2079 esac
2080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \${$3+:} false; then :
2083   $as_echo_n "(cached) " >&6
2084 else
2085   eval "$3=\$ac_header_compiler"
2086 fi
2087 eval ac_res=\$$3
2088                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 fi
2091   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092
2093 } # ac_fn_c_check_header_mongrel
2094
2095 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2096 # -------------------------------------------
2097 # Tests whether TYPE exists after having included INCLUDES, setting cache
2098 # variable VAR accordingly.
2099 ac_fn_c_check_type ()
2100 {
2101   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105   $as_echo_n "(cached) " >&6
2106 else
2107   eval "$3=no"
2108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 int
2112 main ()
2113 {
2114 if (sizeof ($2))
2115          return 0;
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 int
2125 main ()
2126 {
2127 if (sizeof (($2)))
2128             return 0;
2129   ;
2130   return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134
2135 else
2136   eval "$3=yes"
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 fi
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 fi
2142 eval ac_res=\$$3
2143                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146
2147 } # ac_fn_c_check_type
2148
2149 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2150 # --------------------------------------------
2151 # Tries to find the compile-time value of EXPR in a program that includes
2152 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2153 # computed
2154 ac_fn_c_compute_int ()
2155 {
2156   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157   if test "$cross_compiling" = yes; then
2158     # Depending upon the size, compute the lo and hi bounds.
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h.  */
2161 $4
2162 int
2163 main ()
2164 {
2165 static int test_array [1 - 2 * !(($2) >= 0)];
2166 test_array [0] = 0
2167
2168   ;
2169   return 0;
2170 }
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173   ac_lo=0 ac_mid=0
2174   while :; do
2175     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h.  */
2177 $4
2178 int
2179 main ()
2180 {
2181 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2182 test_array [0] = 0
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189   ac_hi=$ac_mid; break
2190 else
2191   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2192                         if test $ac_lo -le $ac_mid; then
2193                           ac_lo= ac_hi=
2194                           break
2195                         fi
2196                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199   done
2200 else
2201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h.  */
2203 $4
2204 int
2205 main ()
2206 {
2207 static int test_array [1 - 2 * !(($2) < 0)];
2208 test_array [0] = 0
2209
2210   ;
2211   return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215   ac_hi=-1 ac_mid=-1
2216   while :; do
2217     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h.  */
2219 $4
2220 int
2221 main ()
2222 {
2223 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2224 test_array [0] = 0
2225
2226   ;
2227   return 0;
2228 }
2229 _ACEOF
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231   ac_lo=$ac_mid; break
2232 else
2233   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2234                         if test $ac_mid -le $ac_hi; then
2235                           ac_lo= ac_hi=
2236                           break
2237                         fi
2238                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241   done
2242 else
2243   ac_lo= ac_hi=
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 # Binary search between lo and hi bounds.
2249 while test "x$ac_lo" != "x$ac_hi"; do
2250   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h.  */
2253 $4
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2258 test_array [0] = 0
2259
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265   ac_hi=$ac_mid
2266 else
2267   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 done
2271 case $ac_lo in #((
2272 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2273 '') ac_retval=1 ;;
2274 esac
2275   else
2276     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h.  */
2278 $4
2279 static long int longval () { return $2; }
2280 static unsigned long int ulongval () { return $2; }
2281 #include <stdio.h>
2282 #include <stdlib.h>
2283 int
2284 main ()
2285 {
2286
2287   FILE *f = fopen ("conftest.val", "w");
2288   if (! f)
2289     return 1;
2290   if (($2) < 0)
2291     {
2292       long int i = longval ();
2293       if (i != ($2))
2294         return 1;
2295       fprintf (f, "%ld", i);
2296     }
2297   else
2298     {
2299       unsigned long int i = ulongval ();
2300       if (i != ($2))
2301         return 1;
2302       fprintf (f, "%lu", i);
2303     }
2304   /* Do not output a trailing newline, as this causes \r\n confusion
2305      on some platforms.  */
2306   return ferror (f) || fclose (f) != 0;
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 if ac_fn_c_try_run "$LINENO"; then :
2313   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2314 else
2315   ac_retval=1
2316 fi
2317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2318   conftest.$ac_objext conftest.beam conftest.$ac_ext
2319 rm -f conftest.val
2320
2321   fi
2322   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323   as_fn_set_status $ac_retval
2324
2325 } # ac_fn_c_compute_int
2326
2327 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2328 # ----------------------------------------------------
2329 # Tries to find if the field MEMBER exists in type AGGR, after including
2330 # INCLUDES, setting cache variable VAR accordingly.
2331 ac_fn_c_check_member ()
2332 {
2333   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2335 $as_echo_n "checking for $2.$3... " >&6; }
2336 if eval \${$4+:} false; then :
2337   $as_echo_n "(cached) " >&6
2338 else
2339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h.  */
2341 $5
2342 int
2343 main ()
2344 {
2345 static $2 ac_aggr;
2346 if (ac_aggr.$3)
2347 return 0;
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 if ac_fn_c_try_compile "$LINENO"; then :
2353   eval "$4=yes"
2354 else
2355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h.  */
2357 $5
2358 int
2359 main ()
2360 {
2361 static $2 ac_aggr;
2362 if (sizeof ac_aggr.$3)
2363 return 0;
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 if ac_fn_c_try_compile "$LINENO"; then :
2369   eval "$4=yes"
2370 else
2371   eval "$4=no"
2372 fi
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 fi
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 fi
2377 eval ac_res=\$$4
2378                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2379 $as_echo "$ac_res" >&6; }
2380   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2381
2382 } # ac_fn_c_check_member
2383
2384 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2385 # ---------------------------------------------
2386 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2387 # accordingly.
2388 ac_fn_c_check_decl ()
2389 {
2390   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391   as_decl_name=`echo $2|sed 's/ *(.*//'`
2392   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2394 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2395 if eval \${$3+:} false; then :
2396   $as_echo_n "(cached) " >&6
2397 else
2398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h.  */
2400 $4
2401 int
2402 main ()
2403 {
2404 #ifndef $as_decl_name
2405 #ifdef __cplusplus
2406   (void) $as_decl_use;
2407 #else
2408   (void) $as_decl_name;
2409 #endif
2410 #endif
2411
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417   eval "$3=yes"
2418 else
2419   eval "$3=no"
2420 fi
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 fi
2423 eval ac_res=\$$3
2424                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2425 $as_echo "$ac_res" >&6; }
2426   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2427
2428 } # ac_fn_c_check_decl
2429 cat >config.log <<_ACEOF
2430 This file contains any messages produced by compilers while
2431 running configure, to aid debugging if configure makes a mistake.
2432
2433 It was created by sudo $as_me 1.8.2, which was
2434 generated by GNU Autoconf 2.68.  Invocation command line was
2435
2436   $ $0 $@
2437
2438 _ACEOF
2439 exec 5>>config.log
2440 {
2441 cat <<_ASUNAME
2442 ## --------- ##
2443 ## Platform. ##
2444 ## --------- ##
2445
2446 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2447 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2448 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2449 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2450 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2451
2452 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2453 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2454
2455 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2456 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2457 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2458 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2459 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2460 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2461 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2462
2463 _ASUNAME
2464
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468   IFS=$as_save_IFS
2469   test -z "$as_dir" && as_dir=.
2470     $as_echo "PATH: $as_dir"
2471   done
2472 IFS=$as_save_IFS
2473
2474 } >&5
2475
2476 cat >&5 <<_ACEOF
2477
2478
2479 ## ----------- ##
2480 ## Core tests. ##
2481 ## ----------- ##
2482
2483 _ACEOF
2484
2485
2486 # Keep a trace of the command line.
2487 # Strip out --no-create and --no-recursion so they do not pile up.
2488 # Strip out --silent because we don't want to record it for future runs.
2489 # Also quote any args containing shell meta-characters.
2490 # Make two passes to allow for proper duplicate-argument suppression.
2491 ac_configure_args=
2492 ac_configure_args0=
2493 ac_configure_args1=
2494 ac_must_keep_next=false
2495 for ac_pass in 1 2
2496 do
2497   for ac_arg
2498   do
2499     case $ac_arg in
2500     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2501     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2502     | -silent | --silent | --silen | --sile | --sil)
2503       continue ;;
2504     *\'*)
2505       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2506     esac
2507     case $ac_pass in
2508     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2509     2)
2510       as_fn_append ac_configure_args1 " '$ac_arg'"
2511       if test $ac_must_keep_next = true; then
2512         ac_must_keep_next=false # Got value, back to normal.
2513       else
2514         case $ac_arg in
2515           *=* | --config-cache | -C | -disable-* | --disable-* \
2516           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2517           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2518           | -with-* | --with-* | -without-* | --without-* | --x)
2519             case "$ac_configure_args0 " in
2520               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2521             esac
2522             ;;
2523           -* ) ac_must_keep_next=true ;;
2524         esac
2525       fi
2526       as_fn_append ac_configure_args " '$ac_arg'"
2527       ;;
2528     esac
2529   done
2530 done
2531 { ac_configure_args0=; unset ac_configure_args0;}
2532 { ac_configure_args1=; unset ac_configure_args1;}
2533
2534 # When interrupted or exit'd, cleanup temporary files, and complete
2535 # config.log.  We remove comments because anyway the quotes in there
2536 # would cause problems or look ugly.
2537 # WARNING: Use '\'' to represent an apostrophe within the trap.
2538 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2539 trap 'exit_status=$?
2540   # Save into config.log some information that might help in debugging.
2541   {
2542     echo
2543
2544     $as_echo "## ---------------- ##
2545 ## Cache variables. ##
2546 ## ---------------- ##"
2547     echo
2548     # The following way of writing the cache mishandles newlines in values,
2549 (
2550   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2551     eval ac_val=\$$ac_var
2552     case $ac_val in #(
2553     *${as_nl}*)
2554       case $ac_var in #(
2555       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2556 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2557       esac
2558       case $ac_var in #(
2559       _ | IFS | as_nl) ;; #(
2560       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2561       *) { eval $ac_var=; unset $ac_var;} ;;
2562       esac ;;
2563     esac
2564   done
2565   (set) 2>&1 |
2566     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2567     *${as_nl}ac_space=\ *)
2568       sed -n \
2569         "s/'\''/'\''\\\\'\'''\''/g;
2570           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2571       ;; #(
2572     *)
2573       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2574       ;;
2575     esac |
2576     sort
2577 )
2578     echo
2579
2580     $as_echo "## ----------------- ##
2581 ## Output variables. ##
2582 ## ----------------- ##"
2583     echo
2584     for ac_var in $ac_subst_vars
2585     do
2586       eval ac_val=\$$ac_var
2587       case $ac_val in
2588       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2589       esac
2590       $as_echo "$ac_var='\''$ac_val'\''"
2591     done | sort
2592     echo
2593
2594     if test -n "$ac_subst_files"; then
2595       $as_echo "## ------------------- ##
2596 ## File substitutions. ##
2597 ## ------------------- ##"
2598       echo
2599       for ac_var in $ac_subst_files
2600       do
2601         eval ac_val=\$$ac_var
2602         case $ac_val in
2603         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2604         esac
2605         $as_echo "$ac_var='\''$ac_val'\''"
2606       done | sort
2607       echo
2608     fi
2609
2610     if test -s confdefs.h; then
2611       $as_echo "## ----------- ##
2612 ## confdefs.h. ##
2613 ## ----------- ##"
2614       echo
2615       cat confdefs.h
2616       echo
2617     fi
2618     test "$ac_signal" != 0 &&
2619       $as_echo "$as_me: caught signal $ac_signal"
2620     $as_echo "$as_me: exit $exit_status"
2621   } >&5
2622   rm -f core *.core core.conftest.* &&
2623     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2624     exit $exit_status
2625 ' 0
2626 for ac_signal in 1 2 13 15; do
2627   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2628 done
2629 ac_signal=0
2630
2631 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2632 rm -f -r conftest* confdefs.h
2633
2634 $as_echo "/* confdefs.h */" > confdefs.h
2635
2636 # Predefined preprocessor variables.
2637
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_NAME "$PACKAGE_NAME"
2640 _ACEOF
2641
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2644 _ACEOF
2645
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2648 _ACEOF
2649
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_STRING "$PACKAGE_STRING"
2652 _ACEOF
2653
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2656 _ACEOF
2657
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_URL "$PACKAGE_URL"
2660 _ACEOF
2661
2662
2663 # Let the site file select an alternate cache file if it wants to.
2664 # Prefer an explicitly selected file to automatically selected ones.
2665 ac_site_file1=NONE
2666 ac_site_file2=NONE
2667 if test -n "$CONFIG_SITE"; then
2668   # We do not want a PATH search for config.site.
2669   case $CONFIG_SITE in #((
2670     -*)  ac_site_file1=./$CONFIG_SITE;;
2671     */*) ac_site_file1=$CONFIG_SITE;;
2672     *)   ac_site_file1=./$CONFIG_SITE;;
2673   esac
2674 elif test "x$prefix" != xNONE; then
2675   ac_site_file1=$prefix/share/config.site
2676   ac_site_file2=$prefix/etc/config.site
2677 else
2678   ac_site_file1=$ac_default_prefix/share/config.site
2679   ac_site_file2=$ac_default_prefix/etc/config.site
2680 fi
2681 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2682 do
2683   test "x$ac_site_file" = xNONE && continue
2684   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2685     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2686 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2687     sed 's/^/| /' "$ac_site_file" >&5
2688     . "$ac_site_file" \
2689       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2691 as_fn_error $? "failed to load site script $ac_site_file
2692 See \`config.log' for more details" "$LINENO" 5; }
2693   fi
2694 done
2695
2696 if test -r "$cache_file"; then
2697   # Some versions of bash will fail to source /dev/null (special files
2698   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2699   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2700     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2701 $as_echo "$as_me: loading cache $cache_file" >&6;}
2702     case $cache_file in
2703       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2704       *)                      . "./$cache_file";;
2705     esac
2706   fi
2707 else
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2709 $as_echo "$as_me: creating cache $cache_file" >&6;}
2710   >$cache_file
2711 fi
2712
2713 # Check that the precious variables saved in the cache have kept the same
2714 # value.
2715 ac_cache_corrupted=false
2716 for ac_var in $ac_precious_vars; do
2717   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2718   eval ac_new_set=\$ac_env_${ac_var}_set
2719   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2720   eval ac_new_val=\$ac_env_${ac_var}_value
2721   case $ac_old_set,$ac_new_set in
2722     set,)
2723       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2724 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2725       ac_cache_corrupted=: ;;
2726     ,set)
2727       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2728 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2729       ac_cache_corrupted=: ;;
2730     ,);;
2731     *)
2732       if test "x$ac_old_val" != "x$ac_new_val"; then
2733         # differences in whitespace do not lead to failure.
2734         ac_old_val_w=`echo x $ac_old_val`
2735         ac_new_val_w=`echo x $ac_new_val`
2736         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2737           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2738 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2739           ac_cache_corrupted=:
2740         else
2741           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2742 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2743           eval $ac_var=\$ac_old_val
2744         fi
2745         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2746 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2747         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2748 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2749       fi;;
2750   esac
2751   # Pass precious variables to config.status.
2752   if test "$ac_new_set" = set; then
2753     case $ac_new_val in
2754     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2755     *) ac_arg=$ac_var=$ac_new_val ;;
2756     esac
2757     case " $ac_configure_args " in
2758       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2759       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2760     esac
2761   fi
2762 done
2763 if $ac_cache_corrupted; then
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2767 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2768   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2769 fi
2770 ## -------------------- ##
2771 ## Main body of script. ##
2772 ## -------------------- ##
2773
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
2780
2781 ac_config_headers="$ac_config_headers config.h pathnames.h"
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2784 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872 #
2873 # Begin initial values for man page substitution
2874 #
2875 iolog_dir=/var/log/sudo-io
2876 timedir=/var/adm/sudo
2877 timeout=5
2878 password_timeout=5
2879 sudo_umask=0022
2880 umask_override=off
2881 passprompt="Password:"
2882 long_otp_prompt=off
2883 lecture=once
2884 logfac=auth
2885 goodpri=notice
2886 badpri=alert
2887 loglen=80
2888 ignore_dot=off
2889 mail_no_user=on
2890 mail_no_host=off
2891 mail_no_perms=off
2892 mailto=root
2893 mailsub="*** SECURITY information for %h ***"
2894 badpass_message="Sorry, try again."
2895 fqdn=off
2896 runas_default=root
2897 env_editor=off
2898 env_reset=on
2899 editor=vi
2900 passwd_tries=3
2901 tty_tickets=on
2902 insults=off
2903 root_sudo=on
2904 path_info=on
2905 ldap_conf=/etc/ldap.conf
2906 ldap_secret=/etc/ldap.secret
2907 netsvc_conf=/etc/netsvc.conf
2908 noexec_file=/usr/local/libexec/sudo_noexec.so
2909 nsswitch_conf=/etc/nsswitch.conf
2910 secure_path="not set"
2911 #
2912 # End initial values for man page substitution
2913 #
2914 INSTALL_NOEXEC=
2915 devdir='$(srcdir)'
2916 PROGS="sudo"
2917 : ${MANTYPE='man'}
2918 : ${mansrcdir='.'}
2919 : ${SUDOERS_MODE='0440'}
2920 : ${SUDOERS_UID='0'}
2921 : ${SUDOERS_GID='0'}
2922 DEV="#"
2923 LDAP="#"
2924 BAMAN=0
2925 LCMAN=0
2926 SEMAN=0
2927 LIBINTL=
2928 ZLIB=
2929 ZLIB_SRC=
2930 AUTH_OBJS=
2931 AUTH_REG=
2932 AUTH_EXCL=
2933 AUTH_EXCL_DEF=
2934 AUTH_DEF=passwd
2935 SUDO_NLS=disabled
2936
2937 CHECKSHADOW=true
2938 shadow_defs=
2939 shadow_funcs=
2940 shadow_libs=
2941 shadow_libs_optional=
2942 CONFIGURE_ARGS="$@"
2943
2944
2945
2946
2947
2948 # Check whether --with-otp-only was given.
2949 if test "${with_otp_only+set}" = set; then :
2950   withval=$with_otp_only; case $with_otp_only in
2951     yes)        with_passwd="no"
2952                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
2953 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2954                 ;;
2955 esac
2956 fi
2957
2958
2959
2960 # Check whether --with-alertmail was given.
2961 if test "${with_alertmail+set}" = set; then :
2962   withval=$with_alertmail; case $with_alertmail in
2963     *)          with_mailto="$with_alertmail"
2964                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
2965 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2966                 ;;
2967 esac
2968 fi
2969
2970
2971
2972
2973 # Check whether --with-devel was given.
2974 if test "${with_devel+set}" = set; then :
2975   withval=$with_devel; case $with_devel in
2976     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
2977 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2978                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2979                 DEV=""
2980                 devdir=.
2981                 ;;
2982     no)         ;;
2983     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2984 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2985                 ;;
2986 esac
2987 fi
2988
2989
2990
2991 # Check whether --with-CC was given.
2992 if test "${with_CC+set}" = set; then :
2993   withval=$with_CC; case $with_CC in
2994     yes)        as_fn_error $? "\"must give --with-CC an argument.\"" "$LINENO" 5
2995                 ;;
2996     no)         as_fn_error $? "\"illegal argument: --without-CC.\"" "$LINENO" 5
2997                 ;;
2998     *)          CC=$with_CC
2999                 ;;
3000 esac
3001 fi
3002
3003
3004
3005 # Check whether --with-rpath was given.
3006 if test "${with_rpath+set}" = set; then :
3007   withval=$with_rpath; case $with_rpath in
3008     yes|no)     ;;
3009     *)          as_fn_error $? "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3010                 ;;
3011 esac
3012 fi
3013
3014
3015
3016 # Check whether --with-blibpath was given.
3017 if test "${with_blibpath+set}" = set; then :
3018   withval=$with_blibpath; case $with_blibpath in
3019     yes|no)     ;;
3020     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3021 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3022                 ;;
3023 esac
3024 fi
3025
3026
3027
3028 # Check whether --with-bsm-audit was given.
3029 if test "${with_bsm_audit+set}" = set; then :
3030   withval=$with_bsm_audit; case $with_bsm_audit in
3031     yes)        $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3032
3033                 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3034                 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3035                 ;;
3036     no)         ;;
3037     *)          as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3038                 ;;
3039 esac
3040 fi
3041
3042
3043 ac_ext=c
3044 ac_cpp='$CPP $CPPFLAGS'
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 if test -n "$ac_tool_prefix"; then
3049   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_CC+:} false; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if test -n "$CC"; then
3057   ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     for ac_exec_ext in '' $ac_executable_extensions; do
3065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071   done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 CC=$ac_cv_prog_CC
3077 if test -n "$CC"; then
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3080 else
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086 fi
3087 if test -z "$ac_cv_prog_CC"; then
3088   ac_ct_CC=$CC
3089   # Extract the first word of "gcc", so it can be a program name with args.
3090 set dummy gcc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3094   $as_echo_n "(cached) " >&6
3095 else
3096   if test -n "$ac_ct_CC"; then
3097   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104     for ac_exec_ext in '' $ac_executable_extensions; do
3105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106     ac_cv_prog_ac_ct_CC="gcc"
3107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108     break 2
3109   fi
3110 done
3111   done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3117 if test -n "$ac_ct_CC"; then
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3119 $as_echo "$ac_ct_CC" >&6; }
3120 else
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125   if test "x$ac_ct_CC" = x; then
3126     CC=""
3127   else
3128     case $cross_compiling:$ac_tool_warned in
3129 yes:)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3133 esac
3134     CC=$ac_ct_CC
3135   fi
3136 else
3137   CC="$ac_cv_prog_CC"
3138 fi
3139
3140 if test -z "$CC"; then
3141           if test -n "$ac_tool_prefix"; then
3142     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3143 set dummy ${ac_tool_prefix}cc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_CC+:} false; then :
3147   $as_echo_n "(cached) " >&6
3148 else
3149   if test -n "$CC"; then
3150   ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3154 do
3155   IFS=$as_save_IFS
3156   test -z "$as_dir" && as_dir=.
3157     for ac_exec_ext in '' $ac_executable_extensions; do
3158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159     ac_cv_prog_CC="${ac_tool_prefix}cc"
3160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161     break 2
3162   fi
3163 done
3164   done
3165 IFS=$as_save_IFS
3166
3167 fi
3168 fi
3169 CC=$ac_cv_prog_CC
3170 if test -n "$CC"; then
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172 $as_echo "$CC" >&6; }
3173 else
3174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3176 fi
3177
3178
3179   fi
3180 fi
3181 if test -z "$CC"; then
3182   # Extract the first word of "cc", so it can be a program name with args.
3183 set dummy cc; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_CC+:} false; then :
3187   $as_echo_n "(cached) " >&6
3188 else
3189   if test -n "$CC"; then
3190   ac_cv_prog_CC="$CC" # Let the user override the test.
3191 else
3192   ac_prog_rejected=no
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196   IFS=$as_save_IFS
3197   test -z "$as_dir" && as_dir=.
3198     for ac_exec_ext in '' $ac_executable_extensions; do
3199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3201        ac_prog_rejected=yes
3202        continue
3203      fi
3204     ac_cv_prog_CC="cc"
3205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206     break 2
3207   fi
3208 done
3209   done
3210 IFS=$as_save_IFS
3211
3212 if test $ac_prog_rejected = yes; then
3213   # We found a bogon in the path, so make sure we never use it.
3214   set dummy $ac_cv_prog_CC
3215   shift
3216   if test $# != 0; then
3217     # We chose a different compiler from the bogus one.
3218     # However, it has the same basename, so the bogon will be chosen
3219     # first if we set CC to just the basename; use the full file name.
3220     shift
3221     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3222   fi
3223 fi
3224 fi
3225 fi
3226 CC=$ac_cv_prog_CC
3227 if test -n "$CC"; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229 $as_echo "$CC" >&6; }
3230 else
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236 fi
3237 if test -z "$CC"; then
3238   if test -n "$ac_tool_prefix"; then
3239   for ac_prog in cl.exe
3240   do
3241     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_CC+:} false; then :
3246   $as_echo_n "(cached) " >&6
3247 else
3248   if test -n "$CC"; then
3249   ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256     for ac_exec_ext in '' $ac_executable_extensions; do
3257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263   done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278     test -n "$CC" && break
3279   done
3280 fi
3281 if test -z "$CC"; then
3282   ac_ct_CC=$CC
3283   for ac_prog in cl.exe
3284 do
3285   # Extract the first word of "$ac_prog", so it can be a program name with args.
3286 set dummy $ac_prog; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3290   $as_echo_n "(cached) " >&6
3291 else
3292   if test -n "$ac_ct_CC"; then
3293   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300     for ac_exec_ext in '' $ac_executable_extensions; do
3301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302     ac_cv_prog_ac_ct_CC="$ac_prog"
3303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304     break 2
3305   fi
3306 done
3307   done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313 if test -n "$ac_ct_CC"; then
3314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3315 $as_echo "$ac_ct_CC" >&6; }
3316 else
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 fi
3320
3321
3322   test -n "$ac_ct_CC" && break
3323 done
3324
3325   if test "x$ac_ct_CC" = x; then
3326     CC=""
3327   else
3328     case $cross_compiling:$ac_tool_warned in
3329 yes:)
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3332 ac_tool_warned=yes ;;
3333 esac
3334     CC=$ac_ct_CC
3335   fi
3336 fi
3337
3338 fi
3339
3340
3341 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "no acceptable C compiler found in \$PATH
3344 See \`config.log' for more details" "$LINENO" 5; }
3345
3346 # Provide some information about the compiler.
3347 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3348 set X $ac_compile
3349 ac_compiler=$2
3350 for ac_option in --version -v -V -qversion; do
3351   { { ac_try="$ac_compiler $ac_option >&5"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3359   ac_status=$?
3360   if test -s conftest.err; then
3361     sed '10a\
3362 ... rest of stderr output deleted ...
3363          10q' conftest.err >conftest.er1
3364     cat conftest.er1 >&5
3365   fi
3366   rm -f conftest.er1 conftest.err
3367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368   test $ac_status = 0; }
3369 done
3370
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h.  */
3373
3374 int
3375 main ()
3376 {
3377
3378   ;
3379   return 0;
3380 }
3381 _ACEOF
3382 ac_clean_files_save=$ac_clean_files
3383 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3384 # Try to create an executable without -o first, disregard a.out.
3385 # It will help us diagnose broken compilers, and finding out an intuition
3386 # of exeext.
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3388 $as_echo_n "checking whether the C compiler works... " >&6; }
3389 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3390
3391 # The possible output files:
3392 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3393
3394 ac_rmfiles=
3395 for ac_file in $ac_files
3396 do
3397   case $ac_file in
3398     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3400   esac
3401 done
3402 rm -f $ac_rmfiles
3403
3404 if { { ac_try="$ac_link_default"
3405 case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411   (eval "$ac_link_default") 2>&5
3412   ac_status=$?
3413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414   test $ac_status = 0; }; then :
3415   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3416 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3417 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3418 # so that the user can short-circuit this test for compilers unknown to
3419 # Autoconf.
3420 for ac_file in $ac_files ''
3421 do
3422   test -f "$ac_file" || continue
3423   case $ac_file in
3424     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3425         ;;
3426     [ab].out )
3427         # We found the default executable, but exeext='' is most
3428         # certainly right.
3429         break;;
3430     *.* )
3431         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3432         then :; else
3433            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3434         fi
3435         # We set ac_cv_exeext here because the later test for it is not
3436         # safe: cross compilers may not add the suffix if given an `-o'
3437         # argument, so we may need to know it at that point already.
3438         # Even if this section looks crufty: it has the advantage of
3439         # actually working.
3440         break;;
3441     * )
3442         break;;
3443   esac
3444 done
3445 test "$ac_cv_exeext" = no && ac_cv_exeext=
3446
3447 else
3448   ac_file=''
3449 fi
3450 if test -z "$ac_file"; then :
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error 77 "C compiler cannot create executables
3459 See \`config.log' for more details" "$LINENO" 5; }
3460 else
3461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462 $as_echo "yes" >&6; }
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3465 $as_echo_n "checking for C compiler default output file name... " >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3467 $as_echo "$ac_file" >&6; }
3468 ac_exeext=$ac_cv_exeext
3469
3470 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3471 ac_clean_files=$ac_clean_files_save
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3473 $as_echo_n "checking for suffix of executables... " >&6; }
3474 if { { ac_try="$ac_link"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481   (eval "$ac_link") 2>&5
3482   ac_status=$?
3483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484   test $ac_status = 0; }; then :
3485   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3486 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3487 # work properly (i.e., refer to `conftest.exe'), while it won't with
3488 # `rm'.
3489 for ac_file in conftest.exe conftest conftest.*; do
3490   test -f "$ac_file" || continue
3491   case $ac_file in
3492     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3493     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3494           break;;
3495     * ) break;;
3496   esac
3497 done
3498 else
3499   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3502 See \`config.log' for more details" "$LINENO" 5; }
3503 fi
3504 rm -f conftest conftest$ac_cv_exeext
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3506 $as_echo "$ac_cv_exeext" >&6; }
3507
3508 rm -f conftest.$ac_ext
3509 EXEEXT=$ac_cv_exeext
3510 ac_exeext=$EXEEXT
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h.  */
3513 #include <stdio.h>
3514 int
3515 main ()
3516 {
3517 FILE *f = fopen ("conftest.out", "w");
3518  return ferror (f) || fclose (f) != 0;
3519
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 ac_clean_files="$ac_clean_files conftest.out"
3525 # Check that the compiler produces executables we can run.  If not, either
3526 # the compiler is broken, or we cross compile.
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3528 $as_echo_n "checking whether we are cross compiling... " >&6; }
3529 if test "$cross_compiling" != yes; then
3530   { { ac_try="$ac_link"
3531 case "(($ac_try" in
3532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533   *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537   (eval "$ac_link") 2>&5
3538   ac_status=$?
3539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540   test $ac_status = 0; }
3541   if { ac_try='./conftest$ac_cv_exeext'
3542   { { case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548   (eval "$ac_try") 2>&5
3549   ac_status=$?
3550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551   test $ac_status = 0; }; }; then
3552     cross_compiling=no
3553   else
3554     if test "$cross_compiling" = maybe; then
3555         cross_compiling=yes
3556     else
3557         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "cannot run C compiled programs.
3560 If you meant to cross compile, use \`--host'.
3561 See \`config.log' for more details" "$LINENO" 5; }
3562     fi
3563   fi
3564 fi
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3566 $as_echo "$cross_compiling" >&6; }
3567
3568 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3569 ac_clean_files=$ac_clean_files_save
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3571 $as_echo_n "checking for suffix of object files... " >&6; }
3572 if ${ac_cv_objext+:} false; then :
3573   $as_echo_n "(cached) " >&6
3574 else
3575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h.  */
3577
3578 int
3579 main ()
3580 {
3581
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 rm -f conftest.o conftest.obj
3587 if { { ac_try="$ac_compile"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594   (eval "$ac_compile") 2>&5
3595   ac_status=$?
3596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597   test $ac_status = 0; }; then :
3598   for ac_file in conftest.o conftest.obj conftest.*; do
3599   test -f "$ac_file" || continue;
3600   case $ac_file in
3601     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3602     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3603        break;;
3604   esac
3605 done
3606 else
3607   $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "cannot compute suffix of object files: cannot compile
3613 See \`config.log' for more details" "$LINENO" 5; }
3614 fi
3615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3618 $as_echo "$ac_cv_objext" >&6; }
3619 OBJEXT=$ac_cv_objext
3620 ac_objext=$OBJEXT
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3622 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3623 if ${ac_cv_c_compiler_gnu+:} false; then :
3624   $as_echo_n "(cached) " >&6
3625 else
3626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h.  */
3628
3629 int
3630 main ()
3631 {
3632 #ifndef __GNUC__
3633        choke me
3634 #endif
3635
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641   ac_compiler_gnu=yes
3642 else
3643   ac_compiler_gnu=no
3644 fi
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3647
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3650 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3651 if test $ac_compiler_gnu = yes; then
3652   GCC=yes
3653 else
3654   GCC=
3655 fi
3656 ac_test_CFLAGS=${CFLAGS+set}
3657 ac_save_CFLAGS=$CFLAGS
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3659 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3660 if ${ac_cv_prog_cc_g+:} false; then :
3661   $as_echo_n "(cached) " >&6
3662 else
3663   ac_save_c_werror_flag=$ac_c_werror_flag
3664    ac_c_werror_flag=yes
3665    ac_cv_prog_cc_g=no
3666    CFLAGS="-g"
3667    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h.  */
3669
3670 int
3671 main ()
3672 {
3673
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 if ac_fn_c_try_compile "$LINENO"; then :
3679   ac_cv_prog_cc_g=yes
3680 else
3681   CFLAGS=""
3682       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h.  */
3684
3685 int
3686 main ()
3687 {
3688
3689   ;
3690   return 0;
3691 }
3692 _ACEOF
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694
3695 else
3696   ac_c_werror_flag=$ac_save_c_werror_flag
3697          CFLAGS="-g"
3698          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h.  */
3700
3701 int
3702 main ()
3703 {
3704
3705   ;
3706   return 0;
3707 }
3708 _ACEOF
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710   ac_cv_prog_cc_g=yes
3711 fi
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 fi
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 fi
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717    ac_c_werror_flag=$ac_save_c_werror_flag
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3720 $as_echo "$ac_cv_prog_cc_g" >&6; }
3721 if test "$ac_test_CFLAGS" = set; then
3722   CFLAGS=$ac_save_CFLAGS
3723 elif test $ac_cv_prog_cc_g = yes; then
3724   if test "$GCC" = yes; then
3725     CFLAGS="-g -O2"
3726   else
3727     CFLAGS="-g"
3728   fi
3729 else
3730   if test "$GCC" = yes; then
3731     CFLAGS="-O2"
3732   else
3733     CFLAGS=
3734   fi
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3737 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3738 if ${ac_cv_prog_cc_c89+:} false; then :
3739   $as_echo_n "(cached) " >&6
3740 else
3741   ac_cv_prog_cc_c89=no
3742 ac_save_CC=$CC
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h.  */
3745 #include <stdarg.h>
3746 #include <stdio.h>
3747 #include <sys/types.h>
3748 #include <sys/stat.h>
3749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3750 struct buf { int x; };
3751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752 static char *e (p, i)
3753      char **p;
3754      int i;
3755 {
3756   return p[i];
3757 }
3758 static char *f (char * (*g) (char **, int), char **p, ...)
3759 {
3760   char *s;
3761   va_list v;
3762   va_start (v,p);
3763   s = g (p, va_arg (v,int));
3764   va_end (v);
3765   return s;
3766 }
3767
3768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3769    function prototypes and stuff, but not '\xHH' hex character constants.
3770    These don't provoke an error unfortunately, instead are silently treated
3771    as 'x'.  The following induces an error, until -std is added to get
3772    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3773    array size at least.  It's necessary to write '\x00'==0 to get something
3774    that's true only with -std.  */
3775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3776
3777 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3778    inside strings and character constants.  */
3779 #define FOO(x) 'x'
3780 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3781
3782 int test (int i, double x);
3783 struct s1 {int (*f) (int a);};
3784 struct s2 {int (*f) (double a);};
3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 int argc;
3787 char **argv;
3788 int
3789 main ()
3790 {
3791 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3797         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3798 do
3799   CC="$ac_save_CC $ac_arg"
3800   if ac_fn_c_try_compile "$LINENO"; then :
3801   ac_cv_prog_cc_c89=$ac_arg
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext
3804   test "x$ac_cv_prog_cc_c89" != "xno" && break
3805 done
3806 rm -f conftest.$ac_ext
3807 CC=$ac_save_CC
3808
3809 fi
3810 # AC_CACHE_VAL
3811 case "x$ac_cv_prog_cc_c89" in
3812   x)
3813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3814 $as_echo "none needed" >&6; } ;;
3815   xno)
3816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3817 $as_echo "unsupported" >&6; } ;;
3818   *)
3819     CC="$CC $ac_cv_prog_cc_c89"
3820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3821 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3822 esac
3823 if test "x$ac_cv_prog_cc_c89" != xno; then :
3824
3825 fi
3826
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832
3833
3834
3835 # Check whether --with-linux-audit was given.
3836 if test "${with_linux_audit+set}" = set; then :
3837   withval=$with_linux_audit; case $with_linux_audit in
3838     yes)        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h.  */
3840 #include <libaudit.h>
3841 int
3842 main ()
3843 {
3844 int i = AUDIT_USER_CMD; (void)i;
3845   ;
3846   return 0;
3847 }
3848 _ACEOF
3849 if ac_fn_c_try_compile "$LINENO"; then :
3850
3851                     $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3852
3853                     SUDO_LIBS="${SUDO_LIBS} -laudit"
3854                     SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3855                     SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3856
3857 else
3858
3859                     as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3860
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863                 ;;
3864     no)         ;;
3865     *)          as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3866                 ;;
3867 esac
3868 fi
3869
3870
3871
3872 # Check whether --with-incpath was given.
3873 if test "${with_incpath+set}" = set; then :
3874   withval=$with_incpath; case $with_incpath in
3875     yes)        as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
3876                 ;;
3877     no)         as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
3878                 ;;
3879     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3880 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3881                 for i in ${with_incpath}; do
3882                     CPPFLAGS="${CPPFLAGS} -I${i}"
3883                 done
3884                 ;;
3885 esac
3886 fi
3887
3888
3889
3890 # Check whether --with-libpath was given.
3891 if test "${with_libpath+set}" = set; then :
3892   withval=$with_libpath; case $with_libpath in
3893     yes)        as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
3894                 ;;
3895     no)         as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
3896                 ;;
3897     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3898 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3899                 ;;
3900 esac
3901 fi
3902
3903
3904
3905 # Check whether --with-libraries was given.
3906 if test "${with_libraries+set}" = set; then :
3907   withval=$with_libraries; case $with_libraries in
3908     yes)        as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
3909                 ;;
3910     no)         as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
3911                 ;;
3912     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3913 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3914                 ;;
3915 esac
3916 fi
3917
3918
3919
3920 # Check whether --with-efence was given.
3921 if test "${with_efence+set}" = set; then :
3922   withval=$with_efence; case $with_efence in
3923     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
3924 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
3925                 LIBS="${LIBS} -lefence"
3926                 if test -f /usr/local/lib/libefence.a; then
3927                     with_libpath="${with_libpath} /usr/local/lib"
3928                 fi
3929                 ;;
3930     no)         ;;
3931     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
3932 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
3933                 ;;
3934 esac
3935 fi
3936
3937
3938
3939 # Check whether --with-csops was given.
3940 if test "${with_csops+set}" = set; then :
3941   withval=$with_csops; case $with_csops in
3942     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
3943 $as_echo "$as_me: Adding CSOps standard options" >&6;}
3944                 CHECKSIA=false
3945                 with_ignore_dot=yes
3946                 insults=on
3947                 with_classic_insults=yes
3948                 with_csops_insults=yes
3949                 with_env_editor=yes
3950                 : ${mansectsu='8'}
3951                 : ${mansectform='5'}
3952                 ;;
3953     no)         ;;
3954     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
3955 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
3956                 ;;
3957 esac
3958 fi
3959
3960
3961
3962 # Check whether --with-passwd was given.
3963 if test "${with_passwd+set}" = set; then :
3964   withval=$with_passwd; case $with_passwd in
3965     yes|no)     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
3966 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
3967                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
3968 $as_echo "$with_passwd" >&6; }
3969                 AUTH_DEF=""
3970                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
3971                 ;;
3972     *)          as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
3973                 ;;
3974 esac
3975 fi
3976
3977
3978
3979 # Check whether --with-skey was given.
3980 if test "${with_skey+set}" = set; then :
3981   withval=$with_skey; case $with_skey in
3982     no)         ;;
3983     *)          $as_echo "#define HAVE_SKEY 1" >>confdefs.h
3984
3985                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
3986 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
3987                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3988 $as_echo "yes" >&6; }
3989                 AUTH_REG="$AUTH_REG S/Key"
3990                 ;;
3991 esac
3992 fi
3993
3994
3995
3996 # Check whether --with-opie was given.
3997 if test "${with_opie+set}" = set; then :
3998   withval=$with_opie; case $with_opie in
3999     no)         ;;
4000     *)          $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4001
4002                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4003 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4004                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005 $as_echo "yes" >&6; }
4006                 AUTH_REG="$AUTH_REG NRL_OPIE"
4007                 ;;
4008 esac
4009 fi
4010
4011
4012
4013 # Check whether --with-long-otp-prompt was given.
4014 if test "${with_long_otp_prompt+set}" = set; then :
4015   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4016     yes)        $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4017
4018                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4019 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4020                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021 $as_echo "yes" >&6; }
4022                 long_otp_prompt=on
4023                 ;;
4024     no)         long_otp_prompt=off
4025                 ;;
4026     *)          as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4027                 ;;
4028 esac
4029 fi
4030
4031
4032
4033 # Check whether --with-SecurID was given.
4034 if test "${with_SecurID+set}" = set; then :
4035   withval=$with_SecurID; case $with_SecurID in
4036     no)         ;;
4037     *)          $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4038
4039                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4040 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4041                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4042 $as_echo "yes" >&6; }
4043                 AUTH_EXCL="$AUTH_EXCL SecurID"
4044                 ;;
4045 esac
4046 fi
4047
4048
4049
4050 # Check whether --with-fwtk was given.
4051 if test "${with_fwtk+set}" = set; then :
4052   withval=$with_fwtk; case $with_fwtk in
4053     no)         ;;
4054     *)          $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4055
4056                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4057 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4058                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4059 $as_echo "yes" >&6; }
4060                 AUTH_EXCL="$AUTH_EXCL FWTK"
4061                 ;;
4062 esac
4063 fi
4064
4065
4066
4067 # Check whether --with-kerb4 was given.
4068 if test "${with_kerb4+set}" = set; then :
4069   withval=$with_kerb4; case $with_kerb4 in
4070     no)         ;;
4071     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
4072 $as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
4073                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4074 $as_echo "yes" >&6; }
4075                 AUTH_REG="$AUTH_REG kerb4"
4076                 ;;
4077 esac
4078 fi
4079
4080
4081
4082 # Check whether --with-kerb5 was given.
4083 if test "${with_kerb5+set}" = set; then :
4084   withval=$with_kerb5; case $with_kerb5 in
4085     no)         ;;
4086     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4087 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4088                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4089 $as_echo "yes" >&6; }
4090                 AUTH_REG="$AUTH_REG kerb5"
4091                 ;;
4092 esac
4093 fi
4094
4095
4096
4097 # Check whether --with-aixauth was given.
4098 if test "${with_aixauth+set}" = set; then :
4099   withval=$with_aixauth; case $with_aixauth in
4100     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4101     no)         ;;
4102     *)          as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4103                 ;;
4104 esac
4105 fi
4106
4107
4108
4109 # Check whether --with-pam was given.
4110 if test "${with_pam+set}" = set; then :
4111   withval=$with_pam; case $with_pam in
4112     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
4113     no)         ;;
4114     *)          as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
4115                 ;;
4116 esac
4117 fi
4118
4119
4120
4121 # Check whether --with-AFS was given.
4122 if test "${with_AFS+set}" = set; then :
4123   withval=$with_AFS; case $with_AFS in
4124     yes)        $as_echo "#define HAVE_AFS 1" >>confdefs.h
4125
4126                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4127 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4128                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129 $as_echo "yes" >&6; }
4130                 AUTH_REG="$AUTH_REG AFS"
4131                 ;;
4132     no)         ;;
4133     *)          as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4134                 ;;
4135 esac
4136 fi
4137
4138
4139
4140 # Check whether --with-DCE was given.
4141 if test "${with_DCE+set}" = set; then :
4142   withval=$with_DCE; case $with_DCE in
4143     yes)        $as_echo "#define HAVE_DCE 1" >>confdefs.h
4144
4145                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4146 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4147                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4148 $as_echo "yes" >&6; }
4149                 AUTH_REG="$AUTH_REG DCE"
4150                 ;;
4151     no)         ;;
4152     *)          as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4153                 ;;
4154 esac
4155 fi
4156
4157
4158
4159 # Check whether --with-logincap was given.
4160 if test "${with_logincap+set}" = set; then :
4161   withval=$with_logincap; case $with_logincap in
4162     yes|no)     ;;
4163     *)          as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4164                 ;;
4165 esac
4166 fi
4167
4168
4169
4170 # Check whether --with-bsdauth was given.
4171 if test "${with_bsdauth+set}" = set; then :
4172   withval=$with_bsdauth; case $with_bsdauth in
4173     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4174     no)         ;;
4175     *)          as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4176                 ;;
4177 esac
4178 fi
4179
4180
4181
4182 # Check whether --with-project was given.
4183 if test "${with_project+set}" = set; then :
4184   withval=$with_project; case $with_project in
4185     yes|no)     ;;
4186     no) ;;
4187     *)          as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
4188                 ;;
4189 esac
4190 fi
4191
4192
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4194 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4195
4196 # Check whether --with-lecture was given.
4197 if test "${with_lecture+set}" = set; then :
4198   withval=$with_lecture; case $with_lecture in
4199     yes|short|always)   lecture=once
4200                 ;;
4201     no|none|never)      lecture=never
4202                 ;;
4203     *)          as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4204                 ;;
4205 esac
4206 fi
4207
4208 if test "$lecture" = "once"; then
4209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4210 $as_echo "yes" >&6; }
4211 else
4212     $as_echo "#define NO_LECTURE 1" >>confdefs.h
4213
4214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4219 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4220
4221 # Check whether --with-logging was given.
4222 if test "${with_logging+set}" = set; then :
4223   withval=$with_logging; case $with_logging in
4224     yes)        as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
4225                 ;;
4226     no)         as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
4227                 ;;
4228     syslog)     $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4229
4230                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4231 $as_echo "syslog" >&6; }
4232                 ;;
4233     file)       $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4234
4235                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4236 $as_echo "file" >&6; }
4237                 ;;
4238     both)       $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4239
4240                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4241 $as_echo "both" >&6; }
4242                 ;;
4243     *)          as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4244                 ;;
4245 esac
4246 else
4247   $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4249 $as_echo "syslog" >&6; }
4250 fi
4251
4252
4253
4254 # Check whether --with-logfac was given.
4255 if test "${with_logfac+set}" = set; then :
4256   withval=$with_logfac; case $with_logfac in
4257     yes)        as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
4258                 ;;
4259     no)         as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
4260                 ;;
4261     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
4262                 ;;
4263     *)          as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4264                 ;;
4265 esac
4266 fi
4267
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4270 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4271
4272 # Check whether --with-goodpri was given.
4273 if test "${with_goodpri+set}" = set; then :
4274   withval=$with_goodpri; case $with_goodpri in
4275     yes)        as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4276                 ;;
4277     no)         as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
4278                 ;;
4279     alert|crit|debug|emerg|err|info|notice|warning)
4280                 goodpri=$with_goodpri
4281                 ;;
4282     *)          as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4283                 ;;
4284 esac
4285 fi
4286
4287
4288 cat >>confdefs.h <<_ACEOF
4289 #define PRI_SUCCESS "$goodpri"
4290 _ACEOF
4291
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4293 $as_echo "$goodpri" >&6; }
4294
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4296 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4297
4298 # Check whether --with-badpri was given.
4299 if test "${with_badpri+set}" = set; then :
4300   withval=$with_badpri; case $with_badpri in
4301     yes)        as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
4302                 ;;
4303     no)         as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
4304                 ;;
4305     alert|crit|debug|emerg|err|info|notice|warning)
4306                 badpri=$with_badpri
4307                 ;;
4308     *)          as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
4309                 ;;
4310 esac
4311 fi
4312
4313
4314 cat >>confdefs.h <<_ACEOF
4315 #define PRI_FAILURE "$badpri"
4316 _ACEOF
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4319 $as_echo "$badpri" >&6; }
4320
4321
4322 # Check whether --with-logpath was given.
4323 if test "${with_logpath+set}" = set; then :
4324   withval=$with_logpath; case $with_logpath in
4325     yes)        as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
4326                 ;;
4327     no)         as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
4328                 ;;
4329 esac
4330 fi
4331
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4334 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4335
4336 # Check whether --with-loglen was given.
4337 if test "${with_loglen+set}" = set; then :
4338   withval=$with_loglen; case $with_loglen in
4339     yes)        as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
4340                 ;;
4341     no)         as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
4342                 ;;
4343     [0-9]*)     loglen=$with_loglen
4344                 ;;
4345     *)          as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4346                 ;;
4347 esac
4348 fi
4349
4350
4351 cat >>confdefs.h <<_ACEOF
4352 #define MAXLOGFILELEN $loglen
4353 _ACEOF
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4356 $as_echo "$loglen" >&6; }
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4359 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4360
4361 # Check whether --with-ignore-dot was given.
4362 if test "${with_ignore_dot+set}" = set; then :
4363   withval=$with_ignore_dot; case $with_ignore_dot in
4364     yes)        ignore_dot=on
4365                 ;;
4366     no)         ignore_dot=off
4367                 ;;
4368     *)          as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4369                 ;;
4370 esac
4371 fi
4372
4373 if test "$ignore_dot" = "on"; then
4374     $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4375
4376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377 $as_echo "yes" >&6; }
4378 else
4379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4381 fi
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4384 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4385
4386 # Check whether --with-mail-if-no-user was given.
4387 if test "${with_mail_if_no_user+set}" = set; then :
4388   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4389     yes)        mail_no_user=on
4390                 ;;
4391     no)         mail_no_user=off
4392                 ;;
4393     *)          as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4394                 ;;
4395 esac
4396 fi
4397
4398 if test "$mail_no_user" = "on"; then
4399     $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4400
4401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402 $as_echo "yes" >&6; }
4403 else
4404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 fi
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4409 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4410
4411 # Check whether --with-mail-if-no-host was given.
4412 if test "${with_mail_if_no_host+set}" = set; then :
4413   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4414     yes)        mail_no_host=on
4415                 ;;
4416     no)         mail_no_host=off
4417                 ;;
4418     *)          as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4419                 ;;
4420 esac
4421 fi
4422
4423 if test "$mail_no_host" = "on"; then
4424     $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4425
4426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4427 $as_echo "yes" >&6; }
4428 else
4429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4434 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4435
4436 # Check whether --with-mail-if-noperms was given.
4437 if test "${with_mail_if_noperms+set}" = set; then :
4438   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4439     yes)        mail_noperms=on
4440                 ;;
4441     no)         mail_noperms=off
4442                 ;;
4443     *)          as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4444                 ;;
4445 esac
4446 fi
4447
4448 if test "$mail_noperms" = "on"; then
4449     $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4450
4451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4452 $as_echo "yes" >&6; }
4453 else
4454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4457
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4459 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4460
4461 # Check whether --with-mailto was given.
4462 if test "${with_mailto+set}" = set; then :
4463   withval=$with_mailto; case $with_mailto in
4464     yes)        as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
4465                 ;;
4466     no)         as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
4467                 ;;
4468     *)          mailto=$with_mailto
4469                 ;;
4470 esac
4471 fi
4472
4473
4474 cat >>confdefs.h <<_ACEOF
4475 #define MAILTO "$mailto"
4476 _ACEOF
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4479 $as_echo "$mailto" >&6; }
4480
4481
4482 # Check whether --with-mailsubject was given.
4483 if test "${with_mailsubject+set}" = set; then :
4484   withval=$with_mailsubject; case $with_mailsubject in
4485     yes)        as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4486                 ;;
4487     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4488 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4489                 ;;
4490     *)          mailsub="$with_mailsubject"
4491                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4492 $as_echo_n "checking sudo mail subject... " >&6; }
4493                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4494 $as_echo "Using alert mail subject: $mailsub" >&6; }
4495                 ;;
4496 esac
4497 fi
4498
4499
4500 cat >>confdefs.h <<_ACEOF
4501 #define MAILSUBJECT "$mailsub"
4502 _ACEOF
4503
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4506 $as_echo_n "checking for bad password prompt... " >&6; }
4507
4508 # Check whether --with-passprompt was given.
4509 if test "${with_passprompt+set}" = set; then :
4510   withval=$with_passprompt; case $with_passprompt in
4511     yes)        as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4512                 ;;
4513     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4514 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4515                 ;;
4516     *)          passprompt="$with_passprompt"
4517 esac
4518 fi
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4521 $as_echo "$passprompt" >&6; }
4522
4523 cat >>confdefs.h <<_ACEOF
4524 #define PASSPROMPT "$passprompt"
4525 _ACEOF
4526
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4529 $as_echo_n "checking for bad password message... " >&6; }
4530
4531 # Check whether --with-badpass-message was given.
4532 if test "${with_badpass_message+set}" = set; then :
4533   withval=$with_badpass_message; case $with_badpass_message in
4534     yes)        as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4535                 ;;
4536     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4537 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4538                 ;;
4539     *)          badpass_message="$with_badpass_message"
4540                 ;;
4541 esac
4542 fi
4543
4544
4545 cat >>confdefs.h <<_ACEOF
4546 #define INCORRECT_PASSWORD "$badpass_message"
4547 _ACEOF
4548
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4550 $as_echo "$badpass_message" >&6; }
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4553 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4554
4555 # Check whether --with-fqdn was given.
4556 if test "${with_fqdn+set}" = set; then :
4557   withval=$with_fqdn; case $with_fqdn in
4558     yes)        fqdn=on
4559                 ;;
4560     no)         fqdn=off
4561                 ;;
4562     *)          as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4563                 ;;
4564 esac
4565 fi
4566
4567 if test "$fqdn" = "on"; then
4568     $as_echo "#define FQDN 1" >>confdefs.h
4569
4570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4571 $as_echo "yes" >&6; }
4572 else
4573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576
4577
4578 # Check whether --with-timedir was given.
4579 if test "${with_timedir+set}" = set; then :
4580   withval=$with_timedir; case $with_timedir in
4581     yes)        as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
4582                 ;;
4583     no)         as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
4584                 ;;
4585 esac
4586 fi
4587
4588
4589
4590 # Check whether --with-iologdir was given.
4591 if test "${with_iologdir+set}" = set; then :
4592   withval=$with_iologdir; case $with_iologdir in
4593     yes)    ;;
4594     no)     as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
4595             ;;
4596 esac
4597 fi
4598
4599
4600
4601 # Check whether --with-sendmail was given.
4602 if test "${with_sendmail+set}" = set; then :
4603   withval=$with_sendmail; case $with_sendmail in
4604     yes)        with_sendmail=""
4605                 ;;
4606     no)         ;;
4607     *)          cat >>confdefs.h <<EOF
4608 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4609 EOF
4610
4611                 ;;
4612 esac
4613 fi
4614
4615
4616
4617 # Check whether --with-sudoers-mode was given.
4618 if test "${with_sudoers_mode+set}" = set; then :
4619   withval=$with_sudoers_mode; case $with_sudoers_mode in
4620     yes)        as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4621                 ;;
4622     no)         as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4623                 ;;
4624     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
4625                 ;;
4626     0*)         SUDOERS_MODE=$with_sudoers_mode
4627                 ;;
4628     *)          as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4629                 ;;
4630 esac
4631 fi
4632
4633
4634
4635 # Check whether --with-sudoers-uid was given.
4636 if test "${with_sudoers_uid+set}" = set; then :
4637   withval=$with_sudoers_uid; case $with_sudoers_uid in
4638     yes)        as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4639                 ;;
4640     no)         as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4641                 ;;
4642     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
4643                 ;;
4644     *)          as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4645                 ;;
4646 esac
4647 fi
4648
4649
4650
4651 # Check whether --with-sudoers-gid was given.
4652 if test "${with_sudoers_gid+set}" = set; then :
4653   withval=$with_sudoers_gid; case $with_sudoers_gid in
4654     yes)        as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4655                 ;;
4656     no)         as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4657                 ;;
4658     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
4659                 ;;
4660     *)          as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4661                 ;;
4662 esac
4663 fi
4664
4665
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4667 $as_echo_n "checking for umask programs should be run with... " >&6; }
4668
4669 # Check whether --with-umask was given.
4670 if test "${with_umask+set}" = set; then :
4671   withval=$with_umask; case $with_umask in
4672     yes)        as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
4673                 ;;
4674     no)         sudo_umask=0777
4675                 ;;
4676     [0-9]*)     sudo_umask=$with_umask
4677                 ;;
4678     *)          as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
4679                 ;;
4680 esac
4681 fi
4682
4683
4684 cat >>confdefs.h <<_ACEOF
4685 #define SUDO_UMASK $sudo_umask
4686 _ACEOF
4687
4688 if test "$sudo_umask" = "0777"; then
4689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4690 $as_echo "user" >&6; }
4691 else
4692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4693 $as_echo "$sudo_umask" >&6; }
4694 fi
4695
4696
4697 # Check whether --with-umask-override was given.
4698 if test "${with_umask_override+set}" = set; then :
4699   withval=$with_umask_override; case $with_umask_override in
4700     yes)        $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4701
4702                 umask_override=on
4703                 ;;
4704     no)         umask_override=off
4705                 ;;
4706     *)          as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4707                 ;;
4708 esac
4709 fi
4710
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4713 $as_echo_n "checking for default user to run commands as... " >&6; }
4714
4715 # Check whether --with-runas-default was given.
4716 if test "${with_runas_default+set}" = set; then :
4717   withval=$with_runas_default; case $with_runas_default in
4718     yes)        as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4719                 ;;
4720     no)         as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
4721                 ;;
4722     *)          runas_default="$with_runas_default"
4723                 ;;
4724 esac
4725 fi
4726
4727
4728 cat >>confdefs.h <<_ACEOF
4729 #define RUNAS_DEFAULT "$runas_default"
4730 _ACEOF
4731
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4733 $as_echo "$runas_default" >&6; }
4734
4735
4736 # Check whether --with-exempt was given.
4737 if test "${with_exempt+set}" = set; then :
4738   withval=$with_exempt; case $with_exempt in
4739     yes)        as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
4740                 ;;
4741     no)         as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
4742                 ;;
4743     *)
4744 cat >>confdefs.h <<_ACEOF
4745 #define EXEMPTGROUP "$with_exempt"
4746 _ACEOF
4747
4748                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4749 $as_echo_n "checking for group to be exempt from password... " >&6; }
4750                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4751 $as_echo "$with_exempt" >&6; }
4752                 ;;
4753 esac
4754 fi
4755
4756
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4758 $as_echo_n "checking for editor that visudo should use... " >&6; }
4759
4760 # Check whether --with-editor was given.
4761 if test "${with_editor+set}" = set; then :
4762   withval=$with_editor; case $with_editor in
4763     yes)        as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
4764                 ;;
4765     no)         as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4766                 ;;
4767     *)
4768 cat >>confdefs.h <<_ACEOF
4769 #define EDITOR "$with_editor"
4770 _ACEOF
4771
4772                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4773 $as_echo "$with_editor" >&6; }
4774                 editor="$with_editor"
4775                 ;;
4776 esac
4777 else
4778   $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4780 $as_echo "vi" >&6; }
4781 fi
4782
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4785 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4786
4787 # Check whether --with-env-editor was given.
4788 if test "${with_env_editor+set}" = set; then :
4789   withval=$with_env_editor; case $with_env_editor in
4790     yes)        env_editor=on
4791                 ;;
4792     no)         env_editor=off
4793                 ;;
4794     *)          as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4795                 ;;
4796 esac
4797 fi
4798
4799 if test "$env_editor" = "on"; then
4800     $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4801
4802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4803 $as_echo "yes" >&6; }
4804 else
4805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4807 fi
4808
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4810 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4811
4812 # Check whether --with-passwd-tries was given.
4813 if test "${with_passwd_tries+set}" = set; then :
4814   withval=$with_passwd_tries; case $with_passwd_tries in
4815     yes)        ;;
4816     no)         as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4817                 ;;
4818     [1-9]*)     passwd_tries=$with_passwd_tries
4819                 ;;
4820     *)          as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4821                 ;;
4822 esac
4823 fi
4824
4825
4826 cat >>confdefs.h <<_ACEOF
4827 #define TRIES_FOR_PASSWORD $passwd_tries
4828 _ACEOF
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4831 $as_echo "$passwd_tries" >&6; }
4832
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4834 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4835
4836 # Check whether --with-timeout was given.
4837 if test "${with_timeout+set}" = set; then :
4838   withval=$with_timeout; case $with_timeout in
4839     yes)        ;;
4840     no)         timeout=0
4841                 ;;
4842     [0-9]*)     timeout=$with_timeout
4843                 ;;
4844     *)          as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4845                 ;;
4846 esac
4847 fi
4848
4849
4850 cat >>confdefs.h <<_ACEOF
4851 #define TIMEOUT $timeout
4852 _ACEOF
4853
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4855 $as_echo "$timeout" >&6; }
4856
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4858 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4859
4860 # Check whether --with-password-timeout was given.
4861 if test "${with_password_timeout+set}" = set; then :
4862   withval=$with_password_timeout; case $with_password_timeout in
4863     yes)        ;;
4864     no)         password_timeout=0
4865                 ;;
4866     [0-9]*)     password_timeout=$with_password_timeout
4867                 ;;
4868     *)          as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4869                 ;;
4870 esac
4871 fi
4872
4873
4874 cat >>confdefs.h <<_ACEOF
4875 #define PASSWORD_TIMEOUT $password_timeout
4876 _ACEOF
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4879 $as_echo "$password_timeout" >&6; }
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4882 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4883
4884 # Check whether --with-tty-tickets was given.
4885 if test "${with_tty_tickets+set}" = set; then :
4886   withval=$with_tty_tickets; case $with_tty_tickets in
4887     yes)        tty_tickets=on
4888                 ;;
4889     no)         tty_tickets=off
4890                 ;;
4891     *)          as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4892                 ;;
4893 esac
4894 fi
4895
4896 if test "$tty_tickets" = "off"; then
4897     $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4898
4899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 else
4902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4903 $as_echo "yes" >&6; }
4904 fi
4905
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4907 $as_echo_n "checking whether to include insults... " >&6; }
4908
4909 # Check whether --with-insults was given.
4910 if test "${with_insults+set}" = set; then :
4911   withval=$with_insults; case $with_insults in
4912     yes)        insults=on
4913                 with_classic_insults=yes
4914                 with_csops_insults=yes
4915                 ;;
4916     disabled)   insults=off
4917                 with_classic_insults=yes
4918                 with_csops_insults=yes
4919                 ;;
4920     no)         insults=off
4921                 ;;
4922     *)          as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
4923                 ;;
4924 esac
4925 fi
4926
4927 if test "$insults" = "on"; then
4928     $as_echo "#define USE_INSULTS 1" >>confdefs.h
4929
4930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4931 $as_echo "yes" >&6; }
4932 else
4933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4935 fi
4936
4937
4938 # Check whether --with-all-insults was given.
4939 if test "${with_all_insults+set}" = set; then :
4940   withval=$with_all_insults; case $with_all_insults in
4941     yes)        with_classic_insults=yes
4942                 with_csops_insults=yes
4943                 with_hal_insults=yes
4944                 with_goons_insults=yes
4945                 ;;
4946     no)         ;;
4947     *)          as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
4948                 ;;
4949 esac
4950 fi
4951
4952
4953
4954 # Check whether --with-classic-insults was given.
4955 if test "${with_classic_insults+set}" = set; then :
4956   withval=$with_classic_insults; case $with_classic_insults in
4957     yes)        $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
4958
4959                 ;;
4960     no)         ;;
4961     *)          as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
4962                 ;;
4963 esac
4964 fi
4965
4966
4967
4968 # Check whether --with-csops-insults was given.
4969 if test "${with_csops_insults+set}" = set; then :
4970   withval=$with_csops_insults; case $with_csops_insults in
4971     yes)        $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
4972
4973                 ;;
4974     no)         ;;
4975     *)          as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
4976                 ;;
4977 esac
4978 fi
4979
4980
4981
4982 # Check whether --with-hal-insults was given.
4983 if test "${with_hal_insults+set}" = set; then :
4984   withval=$with_hal_insults; case $with_hal_insults in
4985     yes)        $as_echo "#define HAL_INSULTS 1" >>confdefs.h
4986
4987                 ;;
4988     no)         ;;
4989     *)          as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
4990                 ;;
4991 esac
4992 fi
4993
4994
4995
4996 # Check whether --with-goons-insults was given.
4997 if test "${with_goons_insults+set}" = set; then :
4998   withval=$with_goons_insults; case $with_goons_insults in
4999     yes)        $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5000
5001                 ;;
5002     no)         ;;
5003     *)          as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5004                 ;;
5005 esac
5006 fi
5007
5008
5009
5010 # Check whether --with-nsswitch was given.
5011 if test "${with_nsswitch+set}" = set; then :
5012   withval=$with_nsswitch; case $with_nsswitch in
5013     no)         ;;
5014     yes)        with_nsswitch="/etc/nsswitch.conf"
5015                 ;;
5016     *)          ;;
5017 esac
5018 fi
5019
5020
5021
5022 # Check whether --with-ldap was given.
5023 if test "${with_ldap+set}" = set; then :
5024   withval=$with_ldap; case $with_ldap in
5025     no)         ;;
5026     *)          $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5027
5028                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5029 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5030                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5031 $as_echo "yes" >&6; }
5032                 ;;
5033 esac
5034 fi
5035
5036
5037
5038 # Check whether --with-ldap-conf-file was given.
5039 if test "${with_ldap_conf_file+set}" = set; then :
5040   withval=$with_ldap_conf_file;
5041 fi
5042
5043 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5044 cat >>confdefs.h <<EOF
5045 #define _PATH_LDAP_CONF "$ldap_conf"
5046 EOF
5047
5048
5049
5050 # Check whether --with-ldap-secret-file was given.
5051 if test "${with_ldap_secret_file+set}" = set; then :
5052   withval=$with_ldap_secret_file;
5053 fi
5054
5055 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5056 cat >>confdefs.h <<EOF
5057 #define _PATH_LDAP_SECRET "$ldap_secret"
5058 EOF
5059
5060
5061
5062 # Check whether --with-pc-insults was given.
5063 if test "${with_pc_insults+set}" = set; then :
5064   withval=$with_pc_insults; case $with_pc_insults in
5065     yes)        $as_echo "#define PC_INSULTS 1" >>confdefs.h
5066
5067                 ;;
5068     no)         ;;
5069     *)          as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5070                 ;;
5071 esac
5072 fi
5073
5074
5075 if test "$insults" = "on"; then
5076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5077 $as_echo_n "checking which insult sets to include... " >&6; }
5078     i=""
5079     test "$with_goons_insults" = "yes" && i="goons ${i}"
5080     test "$with_hal_insults" = "yes" && i="hal ${i}"
5081     test "$with_csops_insults" = "yes" && i="csops ${i}"
5082     test "$with_classic_insults" = "yes" && i="classic ${i}"
5083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5084 $as_echo "$i" >&6; }
5085 fi
5086
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5088 $as_echo_n "checking whether to override the user's path... " >&6; }
5089
5090 # Check whether --with-secure-path was given.
5091 if test "${with_secure_path+set}" = set; then :
5092   withval=$with_secure_path; case $with_secure_path in
5093     yes)        with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5094                 cat >>confdefs.h <<_ACEOF
5095 #define SECURE_PATH "$with_secure_path"
5096 _ACEOF
5097
5098                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5099 $as_echo "$with_secure_path" >&6; }
5100                 secure_path="set to $with_secure_path"
5101                 ;;
5102     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104                 ;;
5105     *)          cat >>confdefs.h <<_ACEOF
5106 #define SECURE_PATH "$with_secure_path"
5107 _ACEOF
5108
5109                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5110 $as_echo "$with_secure_path" >&6; }
5111                 secure_path="set to F<$with_secure_path>"
5112                 ;;
5113 esac
5114 else
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5121 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5122
5123 # Check whether --with-interfaces was given.
5124 if test "${with_interfaces+set}" = set; then :
5125   withval=$with_interfaces; case $with_interfaces in
5126     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5127 $as_echo "yes" >&6; }
5128                 ;;
5129     no)         $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5130
5131                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5133                 ;;
5134     *)          as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5135                 ;;
5136 esac
5137 else
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5139 $as_echo "yes" >&6; }
5140 fi
5141
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5144 $as_echo_n "checking whether stow should be used... " >&6; }
5145
5146 # Check whether --with-stow was given.
5147 if test "${with_stow+set}" = set; then :
5148   withval=$with_stow; case $with_stow in
5149     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5150 $as_echo "yes" >&6; }
5151                 $as_echo "#define USE_STOW 1" >>confdefs.h
5152
5153                 ;;
5154     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156                 ;;
5157     *)          as_fn_error $? "\"--with-stow does not take an argument.\"" "$LINENO" 5
5158                 ;;
5159 esac
5160 else
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5167 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5168
5169 # Check whether --with-askpass was given.
5170 if test "${with_askpass+set}" = set; then :
5171   withval=$with_askpass; case $with_askpass in
5172     yes)        as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5173                 ;;
5174     no)         ;;
5175     *)          cat >>confdefs.h <<EOF
5176 #define _PATH_SUDO_ASKPASS "$with_askpass"
5177 EOF
5178
5179                 ;;
5180 esac
5181 else
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186
5187
5188 # Check whether --with-plugindir was given.
5189 if test "${with_plugindir+set}" = set; then :
5190   withval=$with_plugindir; case $with_plugindir in
5191     no)         as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5192                 ;;
5193     *)          ;;
5194 esac
5195 else
5196   with_plugindir="$libexecdir"
5197 fi
5198
5199
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5202 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5203 # Check whether --enable-authentication was given.
5204 if test "${enable_authentication+set}" = set; then :
5205   enableval=$enable_authentication;  case "$enableval" in
5206     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207 $as_echo "yes" >&6; }
5208                 ;;
5209     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5211                 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5212
5213                 ;;
5214     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5217 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5218                 ;;
5219   esac
5220
5221 else
5222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223 $as_echo "yes" >&6; }
5224 fi
5225
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5228 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5229 # Check whether --enable-root-mailer was given.
5230 if test "${enable_root_mailer+set}" = set; then :
5231   enableval=$enable_root_mailer;  case "$enableval" in
5232     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234                 ;;
5235     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5236 $as_echo "yes" >&6; }
5237                 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5238
5239                 ;;
5240     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5243 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5244                 ;;
5245   esac
5246
5247 else
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5251
5252
5253 # Check whether --enable-setreuid was given.
5254 if test "${enable_setreuid+set}" = set; then :
5255   enableval=$enable_setreuid;  case "$enableval" in
5256     no)         SKIP_SETREUID=yes
5257                 ;;
5258     *)          ;;
5259   esac
5260
5261 fi
5262
5263
5264 # Check whether --enable-setresuid was given.
5265 if test "${enable_setresuid+set}" = set; then :
5266   enableval=$enable_setresuid;  case "$enableval" in
5267     no)         SKIP_SETRESUID=yes
5268                 ;;
5269     *)          ;;
5270   esac
5271
5272 fi
5273
5274
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5276 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5277 # Check whether --enable-shadow was given.
5278 if test "${enable_shadow+set}" = set; then :
5279   enableval=$enable_shadow;  case "$enableval" in
5280     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282                 ;;
5283     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5284 $as_echo "yes" >&6; }
5285                 CHECKSHADOW="false"
5286                 ;;
5287     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5290 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5291                 ;;
5292   esac
5293
5294 else
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5301 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5302 # Check whether --enable-root-sudo was given.
5303 if test "${enable_root_sudo+set}" = set; then :
5304   enableval=$enable_root_sudo;  case "$enableval" in
5305     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5307                 ;;
5308     no)         $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5309
5310                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312                 root_sudo=off
5313                 ;;
5314     *)          as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5315                 ;;
5316   esac
5317
5318 else
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5320 $as_echo "yes" >&6; }
5321 fi
5322
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5325 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5326 # Check whether --enable-log-host was given.
5327 if test "${enable_log_host+set}" = set; then :
5328   enableval=$enable_log_host;  case "$enableval" in
5329     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330 $as_echo "yes" >&6; }
5331                 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5332
5333                 ;;
5334     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336                 ;;
5337     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5340 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5341                 ;;
5342   esac
5343
5344 else
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5351 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5352 # Check whether --enable-noargs-shell was given.
5353 if test "${enable_noargs_shell+set}" = set; then :
5354   enableval=$enable_noargs_shell;  case "$enableval" in
5355     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356 $as_echo "yes" >&6; }
5357                 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5358
5359                 ;;
5360     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362                 ;;
5363     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5366 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5367                 ;;
5368   esac
5369
5370 else
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5373 fi
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5377 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5378 # Check whether --enable-shell-sets-home was given.
5379 if test "${enable_shell_sets_home+set}" = set; then :
5380   enableval=$enable_shell_sets_home;  case "$enableval" in
5381     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5382 $as_echo "yes" >&6; }
5383                 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5384
5385                 ;;
5386     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5388                 ;;
5389     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5392 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5393                 ;;
5394   esac
5395
5396 else
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5403 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5404 # Check whether --enable-path_info was given.
5405 if test "${enable_path_info+set}" = set; then :
5406   enableval=$enable_path_info;  case "$enableval" in
5407     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409                 ;;
5410     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5411 $as_echo "yes" >&6; }
5412                 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5413
5414                 path_info=off
5415                 ;;
5416     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5418                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5419 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5420                 ;;
5421   esac
5422
5423 else
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5426 fi
5427
5428
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5430 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5431 # Check whether --enable-env_debug was given.
5432 if test "${enable_env_debug+set}" = set; then :
5433   enableval=$enable_env_debug;  case "$enableval" in
5434     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5435 $as_echo "yes" >&6; }
5436                 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5437
5438                 ;;
5439     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5441                 ;;
5442     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5444                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5445 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5446                 ;;
5447   esac
5448
5449 else
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5452 fi
5453
5454
5455 # Check whether --enable-zlib was given.
5456 if test "${enable_zlib+set}" = set; then :
5457   enableval=$enable_zlib;
5458 else
5459   enable_zlib=yes
5460 fi
5461
5462
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5464 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5465 # Check whether --enable-env_reset was given.
5466 if test "${enable_env_reset+set}" = set; then :
5467   enableval=$enable_env_reset;  case "$enableval" in
5468     yes)        env_reset=on
5469                 ;;
5470     no)         env_reset=off
5471                 ;;
5472     *)          env_reset=on
5473                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5474 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5475                 ;;
5476   esac
5477
5478 fi
5479
5480 if test "$env_reset" = "on"; then
5481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5482 $as_echo "yes" >&6; }
5483     $as_echo "#define ENV_RESET TRUE" >>confdefs.h
5484
5485 else
5486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488     $as_echo "#define ENV_RESET FALSE" >>confdefs.h
5489
5490 fi
5491
5492 # Check whether --enable-warnings was given.
5493 if test "${enable_warnings+set}" = set; then :
5494   enableval=$enable_warnings;  case "$enableval" in
5495     yes)    if test X"$with_devel" != X"yes" -a -n "$GCC"; then
5496                 CFLAGS="${CFLAGS} -Wall"
5497             fi
5498             ;;
5499     no)     ;;
5500     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5501 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5502             ;;
5503   esac
5504
5505 fi
5506
5507
5508 # Check whether --enable-admin-flag was given.
5509 if test "${enable_admin_flag+set}" = set; then :
5510   enableval=$enable_admin_flag;  case "$enableval" in
5511     yes)    $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5512
5513             ;;
5514     no)     ;;
5515     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5516 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5517             ;;
5518   esac
5519
5520 fi
5521
5522
5523 # Check whether --enable-nls was given.
5524 if test "${enable_nls+set}" = set; then :
5525   enableval=$enable_nls;
5526 else
5527   enable_nls=yes
5528 fi
5529
5530
5531
5532 # Check whether --with-selinux was given.
5533 if test "${with_selinux+set}" = set; then :
5534   withval=$with_selinux; case $with_selinux in
5535     yes)        SELINUX_USAGE="[-r role] [-t type] "
5536                 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5537
5538                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5539                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5540                 PROGS="${PROGS} sesh"
5541                 SEMAN=1
5542                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5543 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5544 if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
5545   $as_echo_n "(cached) " >&6
5546 else
5547   ac_check_lib_save_LIBS=$LIBS
5548 LIBS="-lselinux  $LIBS"
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h.  */
5551
5552 /* Override any GCC internal prototype to avoid an error.
5553    Use char because int might match the return type of a GCC
5554    builtin and then its argument prototype would still apply.  */
5555 #ifdef __cplusplus
5556 extern "C"
5557 #endif
5558 char setkeycreatecon ();
5559 int
5560 main ()
5561 {
5562 return setkeycreatecon ();
5563   ;
5564   return 0;
5565 }
5566 _ACEOF
5567 if ac_fn_c_try_link "$LINENO"; then :
5568   ac_cv_lib_selinux_setkeycreatecon=yes
5569 else
5570   ac_cv_lib_selinux_setkeycreatecon=no
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext \
5573     conftest$ac_exeext conftest.$ac_ext
5574 LIBS=$ac_check_lib_save_LIBS
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5577 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5578 if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
5579   $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5580
5581 fi
5582
5583                 ;;
5584     no)         ;;
5585     *)          as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5586                 ;;
5587 esac
5588 fi
5589
5590
5591 # Check whether --enable-gss_krb5_ccache_name was given.
5592 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5593   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5594 else
5595   check_gss_krb5_ccache_name=no
5596 fi
5597
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5600 $as_echo_n "checking for library containing strerror... " >&6; }
5601 if ${ac_cv_search_strerror+:} false; then :
5602   $as_echo_n "(cached) " >&6
5603 else
5604   ac_func_search_save_LIBS=$LIBS
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h.  */
5607
5608 /* Override any GCC internal prototype to avoid an error.
5609    Use char because int might match the return type of a GCC
5610    builtin and then its argument prototype would still apply.  */
5611 #ifdef __cplusplus
5612 extern "C"
5613 #endif
5614 char strerror ();
5615 int
5616 main ()
5617 {
5618 return strerror ();
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623 for ac_lib in '' cposix; do
5624   if test -z "$ac_lib"; then
5625     ac_res="none required"
5626   else
5627     ac_res=-l$ac_lib
5628     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5629   fi
5630   if ac_fn_c_try_link "$LINENO"; then :
5631   ac_cv_search_strerror=$ac_res
5632 fi
5633 rm -f core conftest.err conftest.$ac_objext \
5634     conftest$ac_exeext
5635   if ${ac_cv_search_strerror+:} false; then :
5636   break
5637 fi
5638 done
5639 if ${ac_cv_search_strerror+:} false; then :
5640
5641 else
5642   ac_cv_search_strerror=no
5643 fi
5644 rm conftest.$ac_ext
5645 LIBS=$ac_func_search_save_LIBS
5646 fi
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5648 $as_echo "$ac_cv_search_strerror" >&6; }
5649 ac_res=$ac_cv_search_strerror
5650 if test "$ac_res" != no; then :
5651   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5652
5653 fi
5654
5655 ac_ext=c
5656 ac_cpp='$CPP $CPPFLAGS'
5657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5661 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5662 # On Suns, sometimes $CPP names a directory.
5663 if test -n "$CPP" && test -d "$CPP"; then
5664   CPP=
5665 fi
5666 if test -z "$CPP"; then
5667   if ${ac_cv_prog_CPP+:} false; then :
5668   $as_echo_n "(cached) " >&6
5669 else
5670       # Double quotes because CPP needs to be expanded
5671     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5672     do
5673       ac_preproc_ok=false
5674 for ac_c_preproc_warn_flag in '' yes
5675 do
5676   # Use a header file that comes with gcc, so configuring glibc
5677   # with a fresh cross-compiler works.
5678   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5679   # <limits.h> exists even on freestanding compilers.
5680   # On the NeXT, cc -E runs the code through the compiler's parser,
5681   # not just through cpp. "Syntax error" is here to catch this case.
5682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h.  */
5684 #ifdef __STDC__
5685 # include <limits.h>
5686 #else
5687 # include <assert.h>
5688 #endif
5689                      Syntax error
5690 _ACEOF
5691 if ac_fn_c_try_cpp "$LINENO"; then :
5692
5693 else
5694   # Broken: fails on valid input.
5695 continue
5696 fi
5697 rm -f conftest.err conftest.i conftest.$ac_ext
5698
5699   # OK, works on sane cases.  Now check whether nonexistent headers
5700   # can be detected and how.
5701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h.  */
5703 #include <ac_nonexistent.h>
5704 _ACEOF
5705 if ac_fn_c_try_cpp "$LINENO"; then :
5706   # Broken: success on invalid input.
5707 continue
5708 else
5709   # Passes both tests.
5710 ac_preproc_ok=:
5711 break
5712 fi
5713 rm -f conftest.err conftest.i conftest.$ac_ext
5714
5715 done
5716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5717 rm -f conftest.i conftest.err conftest.$ac_ext
5718 if $ac_preproc_ok; then :
5719   break
5720 fi
5721
5722     done
5723     ac_cv_prog_CPP=$CPP
5724
5725 fi
5726   CPP=$ac_cv_prog_CPP
5727 else
5728   ac_cv_prog_CPP=$CPP
5729 fi
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5731 $as_echo "$CPP" >&6; }
5732 ac_preproc_ok=false
5733 for ac_c_preproc_warn_flag in '' yes
5734 do
5735   # Use a header file that comes with gcc, so configuring glibc
5736   # with a fresh cross-compiler works.
5737   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5738   # <limits.h> exists even on freestanding compilers.
5739   # On the NeXT, cc -E runs the code through the compiler's parser,
5740   # not just through cpp. "Syntax error" is here to catch this case.
5741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h.  */
5743 #ifdef __STDC__
5744 # include <limits.h>
5745 #else
5746 # include <assert.h>
5747 #endif
5748                      Syntax error
5749 _ACEOF
5750 if ac_fn_c_try_cpp "$LINENO"; then :
5751
5752 else
5753   # Broken: fails on valid input.
5754 continue
5755 fi
5756 rm -f conftest.err conftest.i conftest.$ac_ext
5757
5758   # OK, works on sane cases.  Now check whether nonexistent headers
5759   # can be detected and how.
5760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h.  */
5762 #include <ac_nonexistent.h>
5763 _ACEOF
5764 if ac_fn_c_try_cpp "$LINENO"; then :
5765   # Broken: success on invalid input.
5766 continue
5767 else
5768   # Passes both tests.
5769 ac_preproc_ok=:
5770 break
5771 fi
5772 rm -f conftest.err conftest.i conftest.$ac_ext
5773
5774 done
5775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5776 rm -f conftest.i conftest.err conftest.$ac_ext
5777 if $ac_preproc_ok; then :
5778
5779 else
5780   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5782 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5783 See \`config.log' for more details" "$LINENO" 5; }
5784 fi
5785
5786 ac_ext=c
5787 ac_cpp='$CPP $CPPFLAGS'
5788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5791
5792 if test -n "$ac_tool_prefix"; then
5793   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}ar; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_AR+:} false; then :
5798   $as_echo_n "(cached) " >&6
5799 else
5800   if test -n "$AR"; then
5801   ac_cv_prog_AR="$AR" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810     ac_cv_prog_AR="${ac_tool_prefix}ar"
5811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815   done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 AR=$ac_cv_prog_AR
5821 if test -n "$AR"; then
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5823 $as_echo "$AR" >&6; }
5824 else
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829
5830 fi
5831 if test -z "$ac_cv_prog_AR"; then
5832   ac_ct_AR=$AR
5833   # Extract the first word of "ar", so it can be a program name with args.
5834 set dummy ar; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5838   $as_echo_n "(cached) " >&6
5839 else
5840   if test -n "$ac_ct_AR"; then
5841   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848     for ac_exec_ext in '' $ac_executable_extensions; do
5849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850     ac_cv_prog_ac_ct_AR="ar"
5851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855   done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5861 if test -n "$ac_ct_AR"; then
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5863 $as_echo "$ac_ct_AR" >&6; }
5864 else
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868
5869   if test "x$ac_ct_AR" = x; then
5870     AR="false"
5871   else
5872     case $cross_compiling:$ac_tool_warned in
5873 yes:)
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876 ac_tool_warned=yes ;;
5877 esac
5878     AR=$ac_ct_AR
5879   fi
5880 else
5881   AR="$ac_cv_prog_AR"
5882 fi
5883
5884 if test -n "$ac_tool_prefix"; then
5885   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if ${ac_cv_prog_RANLIB+:} false; then :
5890   $as_echo_n "(cached) " >&6
5891 else
5892   if test -n "$RANLIB"; then
5893   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900     for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907   done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 RANLIB=$ac_cv_prog_RANLIB
5913 if test -n "$RANLIB"; then
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5915 $as_echo "$RANLIB" >&6; }
5916 else
5917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920
5921
5922 fi
5923 if test -z "$ac_cv_prog_RANLIB"; then
5924   ac_ct_RANLIB=$RANLIB
5925   # Extract the first word of "ranlib", so it can be a program name with args.
5926 set dummy ranlib; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$ac_ct_RANLIB"; then
5933   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_prog_ac_ct_RANLIB="ranlib"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5953 if test -n "$ac_ct_RANLIB"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5955 $as_echo "$ac_ct_RANLIB" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961   if test "x$ac_ct_RANLIB" = x; then
5962     RANLIB=":"
5963   else
5964     case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970     RANLIB=$ac_ct_RANLIB
5971   fi
5972 else
5973   RANLIB="$ac_cv_prog_RANLIB"
5974 fi
5975
5976 if test X"$AR" = X"false"; then
5977     as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
5978 fi
5979
5980 if test "x$ac_cv_prog_cc_c89" = "xno"; then
5981     as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
5982 fi
5983
5984 ac_aux_dir=
5985 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5986   if test -f "$ac_dir/install-sh"; then
5987     ac_aux_dir=$ac_dir
5988     ac_install_sh="$ac_aux_dir/install-sh -c"
5989     break
5990   elif test -f "$ac_dir/install.sh"; then
5991     ac_aux_dir=$ac_dir
5992     ac_install_sh="$ac_aux_dir/install.sh -c"
5993     break
5994   elif test -f "$ac_dir/shtool"; then
5995     ac_aux_dir=$ac_dir
5996     ac_install_sh="$ac_aux_dir/shtool install -c"
5997     break
5998   fi
5999 done
6000 if test -z "$ac_aux_dir"; then
6001   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6002 fi
6003
6004 # These three variables are undocumented and unsupported,
6005 # and are intended to be withdrawn in a future Autoconf release.
6006 # They can cause serious problems if a builder's source tree is in a directory
6007 # whose full name contains unusual characters.
6008 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6009 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6010 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6011
6012
6013 # Make sure we can run config.sub.
6014 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6015   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6018 $as_echo_n "checking build system type... " >&6; }
6019 if ${ac_cv_build+:} false; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   ac_build_alias=$build_alias
6023 test "x$ac_build_alias" = x &&
6024   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6025 test "x$ac_build_alias" = x &&
6026   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6027 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6028   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6029
6030 fi
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6032 $as_echo "$ac_cv_build" >&6; }
6033 case $ac_cv_build in
6034 *-*-*) ;;
6035 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6036 esac
6037 build=$ac_cv_build
6038 ac_save_IFS=$IFS; IFS='-'
6039 set x $ac_cv_build
6040 shift
6041 build_cpu=$1
6042 build_vendor=$2
6043 shift; shift
6044 # Remember, the first character of IFS is used to create $*,
6045 # except with old shells:
6046 build_os=$*
6047 IFS=$ac_save_IFS
6048 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6049
6050
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6052 $as_echo_n "checking host system type... " >&6; }
6053 if ${ac_cv_host+:} false; then :
6054   $as_echo_n "(cached) " >&6
6055 else
6056   if test "x$host_alias" = x; then
6057   ac_cv_host=$ac_cv_build
6058 else
6059   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6060     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6061 fi
6062
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6065 $as_echo "$ac_cv_host" >&6; }
6066 case $ac_cv_host in
6067 *-*-*) ;;
6068 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6069 esac
6070 host=$ac_cv_host
6071 ac_save_IFS=$IFS; IFS='-'
6072 set x $ac_cv_host
6073 shift
6074 host_cpu=$1
6075 host_vendor=$2
6076 shift; shift
6077 # Remember, the first character of IFS is used to create $*,
6078 # except with old shells:
6079 host_os=$*
6080 IFS=$ac_save_IFS
6081 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6082
6083
6084
6085
6086 case `pwd` in
6087   *\ * | *\     *)
6088     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6089 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6090 esac
6091
6092
6093
6094 macro_version='2.4'
6095 macro_revision='1.3293'
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 ltmain="$ac_aux_dir/ltmain.sh"
6110
6111 # Backslashify metacharacters that are still active within
6112 # double-quoted strings.
6113 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6114
6115 # Same as above, but do not quote variable references.
6116 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6117
6118 # Sed substitution to delay expansion of an escaped shell variable in a
6119 # double_quote_subst'ed string.
6120 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6121
6122 # Sed substitution to delay expansion of an escaped single quote.
6123 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6124
6125 # Sed substitution to avoid accidental globbing in evaled expressions
6126 no_glob_subst='s/\*/\\\*/g'
6127
6128 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6130 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6133 $as_echo_n "checking how to print strings... " >&6; }
6134 # Test print first, because it will be a builtin if present.
6135 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6136    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6137   ECHO='print -r --'
6138 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6139   ECHO='printf %s\n'
6140 else
6141   # Use this function as a fallback that always works.
6142   func_fallback_echo ()
6143   {
6144     eval 'cat <<_LTECHO_EOF
6145 $1
6146 _LTECHO_EOF'
6147   }
6148   ECHO='func_fallback_echo'
6149 fi
6150
6151 # func_echo_all arg...
6152 # Invoke $ECHO with all args, space-separated.
6153 func_echo_all ()
6154 {
6155     $ECHO ""
6156 }
6157
6158 case "$ECHO" in
6159   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6160 $as_echo "printf" >&6; } ;;
6161   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6162 $as_echo "print -r" >&6; } ;;
6163   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6164 $as_echo "cat" >&6; } ;;
6165 esac
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6181 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6182 if ${ac_cv_path_SED+:} false; then :
6183   $as_echo_n "(cached) " >&6
6184 else
6185             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6186      for ac_i in 1 2 3 4 5 6 7; do
6187        ac_script="$ac_script$as_nl$ac_script"
6188      done
6189      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6190      { ac_script=; unset ac_script;}
6191      if test -z "$SED"; then
6192   ac_path_SED_found=false
6193   # Loop through the user's path and test for each of PROGNAME-LIST
6194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199     for ac_prog in sed gsed; do
6200     for ac_exec_ext in '' $ac_executable_extensions; do
6201       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6202       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6203 # Check for GNU ac_path_SED and select it if it is found.
6204   # Check for GNU $ac_path_SED
6205 case `"$ac_path_SED" --version 2>&1` in
6206 *GNU*)
6207   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6208 *)
6209   ac_count=0
6210   $as_echo_n 0123456789 >"conftest.in"
6211   while :
6212   do
6213     cat "conftest.in" "conftest.in" >"conftest.tmp"
6214     mv "conftest.tmp" "conftest.in"
6215     cp "conftest.in" "conftest.nl"
6216     $as_echo '' >> "conftest.nl"
6217     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6219     as_fn_arith $ac_count + 1 && ac_count=$as_val
6220     if test $ac_count -gt ${ac_path_SED_max-0}; then
6221       # Best one so far, save it but keep looking for a better one
6222       ac_cv_path_SED="$ac_path_SED"
6223       ac_path_SED_max=$ac_count
6224     fi
6225     # 10*(2^10) chars as input seems more than enough
6226     test $ac_count -gt 10 && break
6227   done
6228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6229 esac
6230
6231       $ac_path_SED_found && break 3
6232     done
6233   done
6234   done
6235 IFS=$as_save_IFS
6236   if test -z "$ac_cv_path_SED"; then
6237     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6238   fi
6239 else
6240   ac_cv_path_SED=$SED
6241 fi
6242
6243 fi
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6245 $as_echo "$ac_cv_path_SED" >&6; }
6246  SED="$ac_cv_path_SED"
6247   rm -f conftest.sed
6248
6249 test -z "$SED" && SED=sed
6250 Xsed="$SED -e 1s/^X//"
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6263 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6264 if ${ac_cv_path_GREP+:} false; then :
6265   $as_echo_n "(cached) " >&6
6266 else
6267   if test -z "$GREP"; then
6268   ac_path_GREP_found=false
6269   # Loop through the user's path and test for each of PROGNAME-LIST
6270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6272 do
6273   IFS=$as_save_IFS
6274   test -z "$as_dir" && as_dir=.
6275     for ac_prog in grep ggrep; do
6276     for ac_exec_ext in '' $ac_executable_extensions; do
6277       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6278       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6279 # Check for GNU ac_path_GREP and select it if it is found.
6280   # Check for GNU $ac_path_GREP
6281 case `"$ac_path_GREP" --version 2>&1` in
6282 *GNU*)
6283   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6284 *)
6285   ac_count=0
6286   $as_echo_n 0123456789 >"conftest.in"
6287   while :
6288   do
6289     cat "conftest.in" "conftest.in" >"conftest.tmp"
6290     mv "conftest.tmp" "conftest.in"
6291     cp "conftest.in" "conftest.nl"
6292     $as_echo 'GREP' >> "conftest.nl"
6293     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6294     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6295     as_fn_arith $ac_count + 1 && ac_count=$as_val
6296     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6297       # Best one so far, save it but keep looking for a better one
6298       ac_cv_path_GREP="$ac_path_GREP"
6299       ac_path_GREP_max=$ac_count
6300     fi
6301     # 10*(2^10) chars as input seems more than enough
6302     test $ac_count -gt 10 && break
6303   done
6304   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6305 esac
6306
6307       $ac_path_GREP_found && break 3
6308     done
6309   done
6310   done
6311 IFS=$as_save_IFS
6312   if test -z "$ac_cv_path_GREP"; then
6313     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6314   fi
6315 else
6316   ac_cv_path_GREP=$GREP
6317 fi
6318
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6321 $as_echo "$ac_cv_path_GREP" >&6; }
6322  GREP="$ac_cv_path_GREP"
6323
6324
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6326 $as_echo_n "checking for egrep... " >&6; }
6327 if ${ac_cv_path_EGREP+:} false; then :
6328   $as_echo_n "(cached) " >&6
6329 else
6330   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6331    then ac_cv_path_EGREP="$GREP -E"
6332    else
6333      if test -z "$EGREP"; then
6334   ac_path_EGREP_found=false
6335   # Loop through the user's path and test for each of PROGNAME-LIST
6336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6338 do
6339   IFS=$as_save_IFS
6340   test -z "$as_dir" && as_dir=.
6341     for ac_prog in egrep; do
6342     for ac_exec_ext in '' $ac_executable_extensions; do
6343       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6344       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6345 # Check for GNU ac_path_EGREP and select it if it is found.
6346   # Check for GNU $ac_path_EGREP
6347 case `"$ac_path_EGREP" --version 2>&1` in
6348 *GNU*)
6349   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6350 *)
6351   ac_count=0
6352   $as_echo_n 0123456789 >"conftest.in"
6353   while :
6354   do
6355     cat "conftest.in" "conftest.in" >"conftest.tmp"
6356     mv "conftest.tmp" "conftest.in"
6357     cp "conftest.in" "conftest.nl"
6358     $as_echo 'EGREP' >> "conftest.nl"
6359     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6360     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6361     as_fn_arith $ac_count + 1 && ac_count=$as_val
6362     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6363       # Best one so far, save it but keep looking for a better one
6364       ac_cv_path_EGREP="$ac_path_EGREP"
6365       ac_path_EGREP_max=$ac_count
6366     fi
6367     # 10*(2^10) chars as input seems more than enough
6368     test $ac_count -gt 10 && break
6369   done
6370   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6371 esac
6372
6373       $ac_path_EGREP_found && break 3
6374     done
6375   done
6376   done
6377 IFS=$as_save_IFS
6378   if test -z "$ac_cv_path_EGREP"; then
6379     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6380   fi
6381 else
6382   ac_cv_path_EGREP=$EGREP
6383 fi
6384
6385    fi
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6388 $as_echo "$ac_cv_path_EGREP" >&6; }
6389  EGREP="$ac_cv_path_EGREP"
6390
6391
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6393 $as_echo_n "checking for fgrep... " >&6; }
6394 if ${ac_cv_path_FGREP+:} false; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6398    then ac_cv_path_FGREP="$GREP -F"
6399    else
6400      if test -z "$FGREP"; then
6401   ac_path_FGREP_found=false
6402   # Loop through the user's path and test for each of PROGNAME-LIST
6403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6405 do
6406   IFS=$as_save_IFS
6407   test -z "$as_dir" && as_dir=.
6408     for ac_prog in fgrep; do
6409     for ac_exec_ext in '' $ac_executable_extensions; do
6410       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6411       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6412 # Check for GNU ac_path_FGREP and select it if it is found.
6413   # Check for GNU $ac_path_FGREP
6414 case `"$ac_path_FGREP" --version 2>&1` in
6415 *GNU*)
6416   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6417 *)
6418   ac_count=0
6419   $as_echo_n 0123456789 >"conftest.in"
6420   while :
6421   do
6422     cat "conftest.in" "conftest.in" >"conftest.tmp"
6423     mv "conftest.tmp" "conftest.in"
6424     cp "conftest.in" "conftest.nl"
6425     $as_echo 'FGREP' >> "conftest.nl"
6426     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6427     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6428     as_fn_arith $ac_count + 1 && ac_count=$as_val
6429     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6430       # Best one so far, save it but keep looking for a better one
6431       ac_cv_path_FGREP="$ac_path_FGREP"
6432       ac_path_FGREP_max=$ac_count
6433     fi
6434     # 10*(2^10) chars as input seems more than enough
6435     test $ac_count -gt 10 && break
6436   done
6437   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6438 esac
6439
6440       $ac_path_FGREP_found && break 3
6441     done
6442   done
6443   done
6444 IFS=$as_save_IFS
6445   if test -z "$ac_cv_path_FGREP"; then
6446     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6447   fi
6448 else
6449   ac_cv_path_FGREP=$FGREP
6450 fi
6451
6452    fi
6453 fi
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6455 $as_echo "$ac_cv_path_FGREP" >&6; }
6456  FGREP="$ac_cv_path_FGREP"
6457
6458
6459 test -z "$GREP" && GREP=grep
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479 # Check whether --with-gnu-ld was given.
6480 if test "${with_gnu_ld+set}" = set; then :
6481   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6482 else
6483   with_gnu_ld=no
6484 fi
6485
6486 ac_prog=ld
6487 if test "$GCC" = yes; then
6488   # Check if gcc -print-prog-name=ld gives a path.
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6490 $as_echo_n "checking for ld used by $CC... " >&6; }
6491   case $host in
6492   *-*-mingw*)
6493     # gcc leaves a trailing carriage return which upsets mingw
6494     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6495   *)
6496     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6497   esac
6498   case $ac_prog in
6499     # Accept absolute paths.
6500     [\\/]* | ?:[\\/]*)
6501       re_direlt='/[^/][^/]*/\.\./'
6502       # Canonicalize the pathname of ld
6503       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6504       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6505         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6506       done
6507       test -z "$LD" && LD="$ac_prog"
6508       ;;
6509   "")
6510     # If it fails, then pretend we aren't using GCC.
6511     ac_prog=ld
6512     ;;
6513   *)
6514     # If it is relative, then search for the first ld in PATH.
6515     with_gnu_ld=unknown
6516     ;;
6517   esac
6518 elif test "$with_gnu_ld" = yes; then
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6520 $as_echo_n "checking for GNU ld... " >&6; }
6521 else
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6523 $as_echo_n "checking for non-GNU ld... " >&6; }
6524 fi
6525 if ${lt_cv_path_LD+:} false; then :
6526   $as_echo_n "(cached) " >&6
6527 else
6528   if test -z "$LD"; then
6529   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6530   for ac_dir in $PATH; do
6531     IFS="$lt_save_ifs"
6532     test -z "$ac_dir" && ac_dir=.
6533     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6534       lt_cv_path_LD="$ac_dir/$ac_prog"
6535       # Check to see if the program is GNU ld.  I'd rather use --version,
6536       # but apparently some variants of GNU ld only accept -v.
6537       # Break only if it was the GNU/non-GNU ld that we prefer.
6538       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6539       *GNU* | *'with BFD'*)
6540         test "$with_gnu_ld" != no && break
6541         ;;
6542       *)
6543         test "$with_gnu_ld" != yes && break
6544         ;;
6545       esac
6546     fi
6547   done
6548   IFS="$lt_save_ifs"
6549 else
6550   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6551 fi
6552 fi
6553
6554 LD="$lt_cv_path_LD"
6555 if test -n "$LD"; then
6556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6557 $as_echo "$LD" >&6; }
6558 else
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 $as_echo "no" >&6; }
6561 fi
6562 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6564 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6565 if ${lt_cv_prog_gnu_ld+:} false; then :
6566   $as_echo_n "(cached) " >&6
6567 else
6568   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6569 case `$LD -v 2>&1 </dev/null` in
6570 *GNU* | *'with BFD'*)
6571   lt_cv_prog_gnu_ld=yes
6572   ;;
6573 *)
6574   lt_cv_prog_gnu_ld=no
6575   ;;
6576 esac
6577 fi
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6579 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6580 with_gnu_ld=$lt_cv_prog_gnu_ld
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6591 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6592 if ${lt_cv_path_NM+:} false; then :
6593   $as_echo_n "(cached) " >&6
6594 else
6595   if test -n "$NM"; then
6596   # Let the user override the test.
6597   lt_cv_path_NM="$NM"
6598 else
6599   lt_nm_to_check="${ac_tool_prefix}nm"
6600   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6601     lt_nm_to_check="$lt_nm_to_check nm"
6602   fi
6603   for lt_tmp_nm in $lt_nm_to_check; do
6604     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6605     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6606       IFS="$lt_save_ifs"
6607       test -z "$ac_dir" && ac_dir=.
6608       tmp_nm="$ac_dir/$lt_tmp_nm"
6609       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6610         # Check to see if the nm accepts a BSD-compat flag.
6611         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6612         #   nm: unknown option "B" ignored
6613         # Tru64's nm complains that /dev/null is an invalid object file
6614         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6615         */dev/null* | *'Invalid file or object type'*)
6616           lt_cv_path_NM="$tmp_nm -B"
6617           break
6618           ;;
6619         *)
6620           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6621           */dev/null*)
6622             lt_cv_path_NM="$tmp_nm -p"
6623             break
6624             ;;
6625           *)
6626             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6627             continue # so that we can try to find one that supports BSD flags
6628             ;;
6629           esac
6630           ;;
6631         esac
6632       fi
6633     done
6634     IFS="$lt_save_ifs"
6635   done
6636   : ${lt_cv_path_NM=no}
6637 fi
6638 fi
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6640 $as_echo "$lt_cv_path_NM" >&6; }
6641 if test "$lt_cv_path_NM" != "no"; then
6642   NM="$lt_cv_path_NM"
6643 else
6644   # Didn't find any BSD compatible name lister, look for dumpbin.
6645   if test -n "$DUMPBIN"; then :
6646     # Let the user override the test.
6647   else
6648     if test -n "$ac_tool_prefix"; then
6649   for ac_prog in dumpbin "link -dump"
6650   do
6651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_DUMPBIN+:} false; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   if test -n "$DUMPBIN"; then
6659   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664   IFS=$as_save_IFS
6665   test -z "$as_dir" && as_dir=.
6666     for ac_exec_ext in '' $ac_executable_extensions; do
6667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6668     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670     break 2
6671   fi
6672 done
6673   done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 DUMPBIN=$ac_cv_prog_DUMPBIN
6679 if test -n "$DUMPBIN"; then
6680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6681 $as_echo "$DUMPBIN" >&6; }
6682 else
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6685 fi
6686
6687
6688     test -n "$DUMPBIN" && break
6689   done
6690 fi
6691 if test -z "$DUMPBIN"; then
6692   ac_ct_DUMPBIN=$DUMPBIN
6693   for ac_prog in dumpbin "link -dump"
6694 do
6695   # Extract the first word of "$ac_prog", so it can be a program name with args.
6696 set dummy $ac_prog; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6700   $as_echo_n "(cached) " >&6
6701 else
6702   if test -n "$ac_ct_DUMPBIN"; then
6703   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708   IFS=$as_save_IFS
6709   test -z "$as_dir" && as_dir=.
6710     for ac_exec_ext in '' $ac_executable_extensions; do
6711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714     break 2
6715   fi
6716 done
6717   done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6723 if test -n "$ac_ct_DUMPBIN"; then
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6725 $as_echo "$ac_ct_DUMPBIN" >&6; }
6726 else
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730
6731
6732   test -n "$ac_ct_DUMPBIN" && break
6733 done
6734
6735   if test "x$ac_ct_DUMPBIN" = x; then
6736     DUMPBIN=":"
6737   else
6738     case $cross_compiling:$ac_tool_warned in
6739 yes:)
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742 ac_tool_warned=yes ;;
6743 esac
6744     DUMPBIN=$ac_ct_DUMPBIN
6745   fi
6746 fi
6747
6748     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6749     *COFF*)
6750       DUMPBIN="$DUMPBIN -symbols"
6751       ;;
6752     *)
6753       DUMPBIN=:
6754       ;;
6755     esac
6756   fi
6757
6758   if test "$DUMPBIN" != ":"; then
6759     NM="$DUMPBIN"
6760   fi
6761 fi
6762 test -z "$NM" && NM=nm
6763
6764
6765
6766
6767
6768
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6770 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6771 if ${lt_cv_nm_interface+:} false; then :
6772   $as_echo_n "(cached) " >&6
6773 else
6774   lt_cv_nm_interface="BSD nm"
6775   echo "int some_variable = 0;" > conftest.$ac_ext
6776   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6777   (eval "$ac_compile" 2>conftest.err)
6778   cat conftest.err >&5
6779   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6780   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6781   cat conftest.err >&5
6782   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6783   cat conftest.out >&5
6784   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6785     lt_cv_nm_interface="MS dumpbin"
6786   fi
6787   rm -f conftest*
6788 fi
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6790 $as_echo "$lt_cv_nm_interface" >&6; }
6791
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6793 $as_echo_n "checking whether ln -s works... " >&6; }
6794 LN_S=$as_ln_s
6795 if test "$LN_S" = "ln -s"; then
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6797 $as_echo "yes" >&6; }
6798 else
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6800 $as_echo "no, using $LN_S" >&6; }
6801 fi
6802
6803 # find the maximum length of command line arguments
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6805 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6806 if ${lt_cv_sys_max_cmd_len+:} false; then :
6807   $as_echo_n "(cached) " >&6
6808 else
6809     i=0
6810   teststring="ABCD"
6811
6812   case $build_os in
6813   msdosdjgpp*)
6814     # On DJGPP, this test can blow up pretty badly due to problems in libc
6815     # (any single argument exceeding 2000 bytes causes a buffer overrun
6816     # during glob expansion).  Even if it were fixed, the result of this
6817     # check would be larger than it should be.
6818     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6819     ;;
6820
6821   gnu*)
6822     # Under GNU Hurd, this test is not required because there is
6823     # no limit to the length of command line arguments.
6824     # Libtool will interpret -1 as no limit whatsoever
6825     lt_cv_sys_max_cmd_len=-1;
6826     ;;
6827
6828   cygwin* | mingw* | cegcc*)
6829     # On Win9x/ME, this test blows up -- it succeeds, but takes
6830     # about 5 minutes as the teststring grows exponentially.
6831     # Worse, since 9x/ME are not pre-emptively multitasking,
6832     # you end up with a "frozen" computer, even though with patience
6833     # the test eventually succeeds (with a max line length of 256k).
6834     # Instead, let's just punt: use the minimum linelength reported by
6835     # all of the supported platforms: 8192 (on NT/2K/XP).
6836     lt_cv_sys_max_cmd_len=8192;
6837     ;;
6838
6839   mint*)
6840     # On MiNT this can take a long time and run out of memory.
6841     lt_cv_sys_max_cmd_len=8192;
6842     ;;
6843
6844   amigaos*)
6845     # On AmigaOS with pdksh, this test takes hours, literally.
6846     # So we just punt and use a minimum line length of 8192.
6847     lt_cv_sys_max_cmd_len=8192;
6848     ;;
6849
6850   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6851     # This has been around since 386BSD, at least.  Likely further.
6852     if test -x /sbin/sysctl; then
6853       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6854     elif test -x /usr/sbin/sysctl; then
6855       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6856     else
6857       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6858     fi
6859     # And add a safety zone
6860     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6861     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6862     ;;
6863
6864   interix*)
6865     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6866     lt_cv_sys_max_cmd_len=196608
6867     ;;
6868
6869   osf*)
6870     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6871     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6872     # nice to cause kernel panics so lets avoid the loop below.
6873     # First set a reasonable default.
6874     lt_cv_sys_max_cmd_len=16384
6875     #
6876     if test -x /sbin/sysconfig; then
6877       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6878         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6879       esac
6880     fi
6881     ;;
6882   sco3.2v5*)
6883     lt_cv_sys_max_cmd_len=102400
6884     ;;
6885   sysv5* | sco5v6* | sysv4.2uw2*)
6886     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6887     if test -n "$kargmax"; then
6888       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6889     else
6890       lt_cv_sys_max_cmd_len=32768
6891     fi
6892     ;;
6893   *)
6894     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6895     if test -n "$lt_cv_sys_max_cmd_len"; then
6896       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6897       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6898     else
6899       # Make teststring a little bigger before we do anything with it.
6900       # a 1K string should be a reasonable start.
6901       for i in 1 2 3 4 5 6 7 8 ; do
6902         teststring=$teststring$teststring
6903       done
6904       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6905       # If test is not a shell built-in, we'll probably end up computing a
6906       # maximum length that is only half of the actual maximum length, but
6907       # we can't tell.
6908       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6909                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6910               test $i != 17 # 1/2 MB should be enough
6911       do
6912         i=`expr $i + 1`
6913         teststring=$teststring$teststring
6914       done
6915       # Only check the string length outside the loop.
6916       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6917       teststring=
6918       # Add a significant safety factor because C++ compilers can tack on
6919       # massive amounts of additional arguments before passing them to the
6920       # linker.  It appears as though 1/2 is a usable value.
6921       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6922     fi
6923     ;;
6924   esac
6925
6926 fi
6927
6928 if test -n $lt_cv_sys_max_cmd_len ; then
6929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6930 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6931 else
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6933 $as_echo "none" >&6; }
6934 fi
6935 max_cmd_len=$lt_cv_sys_max_cmd_len
6936
6937
6938
6939
6940
6941
6942 : ${CP="cp -f"}
6943 : ${MV="mv -f"}
6944 : ${RM="rm -f"}
6945
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6947 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6948 # Try some XSI features
6949 xsi_shell=no
6950 ( _lt_dummy="a/b/c"
6951   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6952       = c,a/b,b/c, \
6953     && eval 'test $(( 1 + 1 )) -eq 2 \
6954     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6955   && xsi_shell=yes
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6957 $as_echo "$xsi_shell" >&6; }
6958
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6961 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6962 lt_shell_append=no
6963 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6964     >/dev/null 2>&1 \
6965   && lt_shell_append=yes
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6967 $as_echo "$lt_shell_append" >&6; }
6968
6969
6970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6971   lt_unset=unset
6972 else
6973   lt_unset=false
6974 fi
6975
6976
6977
6978
6979
6980 # test EBCDIC or ASCII
6981 case `echo X|tr X '\101'` in
6982  A) # ASCII based system
6983     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6984   lt_SP2NL='tr \040 \012'
6985   lt_NL2SP='tr \015\012 \040\040'
6986   ;;
6987  *) # EBCDIC based system
6988   lt_SP2NL='tr \100 \n'
6989   lt_NL2SP='tr \r\n \100\100'
6990   ;;
6991 esac
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7002 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7003 if ${lt_cv_to_host_file_cmd+:} false; then :
7004   $as_echo_n "(cached) " >&6
7005 else
7006   case $host in
7007   *-*-mingw* )
7008     case $build in
7009       *-*-mingw* ) # actually msys
7010         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7011         ;;
7012       *-*-cygwin* )
7013         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7014         ;;
7015       * ) # otherwise, assume *nix
7016         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7017         ;;
7018     esac
7019     ;;
7020   *-*-cygwin* )
7021     case $build in
7022       *-*-mingw* ) # actually msys
7023         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7024         ;;
7025       *-*-cygwin* )
7026         lt_cv_to_host_file_cmd=func_convert_file_noop
7027         ;;
7028       * ) # otherwise, assume *nix
7029         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7030         ;;
7031     esac
7032     ;;
7033   * ) # unhandled hosts (and "normal" native builds)
7034     lt_cv_to_host_file_cmd=func_convert_file_noop
7035     ;;
7036 esac
7037
7038 fi
7039
7040 to_host_file_cmd=$lt_cv_to_host_file_cmd
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7042 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7043
7044
7045
7046
7047
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7049 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7050 if ${lt_cv_to_tool_file_cmd+:} false; then :
7051   $as_echo_n "(cached) " >&6
7052 else
7053   #assume ordinary cross tools, or native build.
7054 lt_cv_to_tool_file_cmd=func_convert_file_noop
7055 case $host in
7056   *-*-mingw* )
7057     case $build in
7058       *-*-mingw* ) # actually msys
7059         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7060         ;;
7061     esac
7062     ;;
7063 esac
7064
7065 fi
7066
7067 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7069 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7070
7071
7072
7073
7074
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7076 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7077 if ${lt_cv_ld_reload_flag+:} false; then :
7078   $as_echo_n "(cached) " >&6
7079 else
7080   lt_cv_ld_reload_flag='-r'
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7083 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7084 reload_flag=$lt_cv_ld_reload_flag
7085 case $reload_flag in
7086 "" | " "*) ;;
7087 *) reload_flag=" $reload_flag" ;;
7088 esac
7089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7090 case $host_os in
7091   cygwin* | mingw* | pw32* | cegcc*)
7092     if test "$GCC" != yes; then
7093       reload_cmds=false
7094     fi
7095     ;;
7096   darwin*)
7097     if test "$GCC" = yes; then
7098       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7099     else
7100       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7101     fi
7102     ;;
7103 esac
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113 if test -n "$ac_tool_prefix"; then
7114   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7115 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_OBJDUMP+:} false; then :
7119   $as_echo_n "(cached) " >&6
7120 else
7121   if test -n "$OBJDUMP"; then
7122   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129     for ac_exec_ext in '' $ac_executable_extensions; do
7130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136   done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 OBJDUMP=$ac_cv_prog_OBJDUMP
7142 if test -n "$OBJDUMP"; then
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7144 $as_echo "$OBJDUMP" >&6; }
7145 else
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149
7150
7151 fi
7152 if test -z "$ac_cv_prog_OBJDUMP"; then
7153   ac_ct_OBJDUMP=$OBJDUMP
7154   # Extract the first word of "objdump", so it can be a program name with args.
7155 set dummy objdump; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7159   $as_echo_n "(cached) " >&6
7160 else
7161   if test -n "$ac_ct_OBJDUMP"; then
7162   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169     for ac_exec_ext in '' $ac_executable_extensions; do
7170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176   done
7177 IFS=$as_save_IFS
7178
7179 fi
7180 fi
7181 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7182 if test -n "$ac_ct_OBJDUMP"; then
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7184 $as_echo "$ac_ct_OBJDUMP" >&6; }
7185 else
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7188 fi
7189
7190   if test "x$ac_ct_OBJDUMP" = x; then
7191     OBJDUMP="false"
7192   else
7193     case $cross_compiling:$ac_tool_warned in
7194 yes:)
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197 ac_tool_warned=yes ;;
7198 esac
7199     OBJDUMP=$ac_ct_OBJDUMP
7200   fi
7201 else
7202   OBJDUMP="$ac_cv_prog_OBJDUMP"
7203 fi
7204
7205 test -z "$OBJDUMP" && OBJDUMP=objdump
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7216 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7217 if ${lt_cv_deplibs_check_method+:} false; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   lt_cv_file_magic_cmd='$MAGIC_CMD'
7221 lt_cv_file_magic_test_file=
7222 lt_cv_deplibs_check_method='unknown'
7223 # Need to set the preceding variable on all platforms that support
7224 # interlibrary dependencies.
7225 # 'none' -- dependencies not supported.
7226 # `unknown' -- same as none, but documents that we really don't know.
7227 # 'pass_all' -- all dependencies passed with no checks.
7228 # 'test_compile' -- check by making test program.
7229 # 'file_magic [[regex]]' -- check by looking for files in library path
7230 # which responds to the $file_magic_cmd with a given extended regex.
7231 # If you have `file' or equivalent on your system and you're not sure
7232 # whether `pass_all' will *always* work, you probably want this one.
7233
7234 case $host_os in
7235 aix[4-9]*)
7236   lt_cv_deplibs_check_method=pass_all
7237   ;;
7238
7239 beos*)
7240   lt_cv_deplibs_check_method=pass_all
7241   ;;
7242
7243 bsdi[45]*)
7244   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7245   lt_cv_file_magic_cmd='/usr/bin/file -L'
7246   lt_cv_file_magic_test_file=/shlib/libc.so
7247   ;;
7248
7249 cygwin*)
7250   # func_win32_libid is a shell function defined in ltmain.sh
7251   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7252   lt_cv_file_magic_cmd='func_win32_libid'
7253   ;;
7254
7255 mingw* | pw32*)
7256   # Base MSYS/MinGW do not provide the 'file' command needed by
7257   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7258   # unless we find 'file', for example because we are cross-compiling.
7259   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7260   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7261     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7262     lt_cv_file_magic_cmd='func_win32_libid'
7263   else
7264     # Keep this pattern in sync with the one in func_win32_libid.
7265     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7266     lt_cv_file_magic_cmd='$OBJDUMP -f'
7267   fi
7268   ;;
7269
7270 cegcc*)
7271   # use the weaker test based on 'objdump'. See mingw*.
7272   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7273   lt_cv_file_magic_cmd='$OBJDUMP -f'
7274   ;;
7275
7276 darwin* | rhapsody*)
7277   lt_cv_deplibs_check_method=pass_all
7278   ;;
7279
7280 freebsd* | dragonfly*)
7281   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7282     case $host_cpu in
7283     i*86 )
7284       # Not sure whether the presence of OpenBSD here was a mistake.
7285       # Let's accept both of them until this is cleared up.
7286       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7287       lt_cv_file_magic_cmd=/usr/bin/file
7288       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7289       ;;
7290     esac
7291   else
7292     lt_cv_deplibs_check_method=pass_all
7293   fi
7294   ;;
7295
7296 gnu*)
7297   lt_cv_deplibs_check_method=pass_all
7298   ;;
7299
7300 haiku*)
7301   lt_cv_deplibs_check_method=pass_all
7302   ;;
7303
7304 hpux10.20* | hpux11*)
7305   lt_cv_file_magic_cmd=/usr/bin/file
7306   case $host_cpu in
7307   ia64*)
7308     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7309     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7310     ;;
7311   hppa*64*)
7312     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7313     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7314     ;;
7315   *)
7316     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7317     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7318     ;;
7319   esac
7320   ;;
7321
7322 interix[3-9]*)
7323   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7324   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7325   ;;
7326
7327 irix5* | irix6* | nonstopux*)
7328   case $LD in
7329   *-32|*"-32 ") libmagic=32-bit;;
7330   *-n32|*"-n32 ") libmagic=N32;;
7331   *-64|*"-64 ") libmagic=64-bit;;
7332   *) libmagic=never-match;;
7333   esac
7334   lt_cv_deplibs_check_method=pass_all
7335   ;;
7336
7337 # This must be Linux ELF.
7338 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7339   lt_cv_deplibs_check_method=pass_all
7340   ;;
7341
7342 netbsd*)
7343   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7344     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7345   else
7346     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7347   fi
7348   ;;
7349
7350 newos6*)
7351   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7352   lt_cv_file_magic_cmd=/usr/bin/file
7353   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7354   ;;
7355
7356 *nto* | *qnx*)
7357   lt_cv_deplibs_check_method=pass_all
7358   ;;
7359
7360 openbsd*)
7361   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7362     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7363   else
7364     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7365   fi
7366   ;;
7367
7368 osf3* | osf4* | osf5*)
7369   lt_cv_deplibs_check_method=pass_all
7370   ;;
7371
7372 rdos*)
7373   lt_cv_deplibs_check_method=pass_all
7374   ;;
7375
7376 solaris*)
7377   lt_cv_deplibs_check_method=pass_all
7378   ;;
7379
7380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7381   lt_cv_deplibs_check_method=pass_all
7382   ;;
7383
7384 sysv4 | sysv4.3*)
7385   case $host_vendor in
7386   motorola)
7387     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]'
7388     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7389     ;;
7390   ncr)
7391     lt_cv_deplibs_check_method=pass_all
7392     ;;
7393   sequent)
7394     lt_cv_file_magic_cmd='/bin/file'
7395     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7396     ;;
7397   sni)
7398     lt_cv_file_magic_cmd='/bin/file'
7399     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7400     lt_cv_file_magic_test_file=/lib/libc.so
7401     ;;
7402   siemens)
7403     lt_cv_deplibs_check_method=pass_all
7404     ;;
7405   pc)
7406     lt_cv_deplibs_check_method=pass_all
7407     ;;
7408   esac
7409   ;;
7410
7411 tpf*)
7412   lt_cv_deplibs_check_method=pass_all
7413   ;;
7414 esac
7415
7416 fi
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7418 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7419
7420 file_magic_glob=
7421 want_nocaseglob=no
7422 if test "$build" = "$host"; then
7423   case $host_os in
7424   mingw* | pw32*)
7425     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7426       want_nocaseglob=yes
7427     else
7428       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7429     fi
7430     ;;
7431   esac
7432 fi
7433
7434 file_magic_cmd=$lt_cv_file_magic_cmd
7435 deplibs_check_method=$lt_cv_deplibs_check_method
7436 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459 if test -n "$ac_tool_prefix"; then
7460   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7461 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_DLLTOOL+:} false; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   if test -n "$DLLTOOL"; then
7468   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473   IFS=$as_save_IFS
7474   test -z "$as_dir" && as_dir=.
7475     for ac_exec_ext in '' $ac_executable_extensions; do
7476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479     break 2
7480   fi
7481 done
7482   done
7483 IFS=$as_save_IFS
7484
7485 fi
7486 fi
7487 DLLTOOL=$ac_cv_prog_DLLTOOL
7488 if test -n "$DLLTOOL"; then
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7490 $as_echo "$DLLTOOL" >&6; }
7491 else
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496
7497 fi
7498 if test -z "$ac_cv_prog_DLLTOOL"; then
7499   ac_ct_DLLTOOL=$DLLTOOL
7500   # Extract the first word of "dlltool", so it can be a program name with args.
7501 set dummy dlltool; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7505   $as_echo_n "(cached) " >&6
7506 else
7507   if test -n "$ac_ct_DLLTOOL"; then
7508   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515     for ac_exec_ext in '' $ac_executable_extensions; do
7516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522   done
7523 IFS=$as_save_IFS
7524
7525 fi
7526 fi
7527 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7528 if test -n "$ac_ct_DLLTOOL"; then
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7530 $as_echo "$ac_ct_DLLTOOL" >&6; }
7531 else
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535
7536   if test "x$ac_ct_DLLTOOL" = x; then
7537     DLLTOOL="false"
7538   else
7539     case $cross_compiling:$ac_tool_warned in
7540 yes:)
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7543 ac_tool_warned=yes ;;
7544 esac
7545     DLLTOOL=$ac_ct_DLLTOOL
7546   fi
7547 else
7548   DLLTOOL="$ac_cv_prog_DLLTOOL"
7549 fi
7550
7551 test -z "$DLLTOOL" && DLLTOOL=dlltool
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7563 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7564 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7565   $as_echo_n "(cached) " >&6
7566 else
7567   lt_cv_sharedlib_from_linklib_cmd='unknown'
7568
7569 case $host_os in
7570 cygwin* | mingw* | pw32* | cegcc*)
7571   # two different shell functions defined in ltmain.sh
7572   # decide which to use based on capabilities of $DLLTOOL
7573   case `$DLLTOOL --help 2>&1` in
7574   *--identify-strict*)
7575     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7576     ;;
7577   *)
7578     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7579     ;;
7580   esac
7581   ;;
7582 *)
7583   # fallback: assume linklib IS sharedlib
7584   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7585   ;;
7586 esac
7587
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7590 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7591 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7592 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7593
7594
7595
7596
7597
7598
7599
7600 if test -n "$ac_tool_prefix"; then
7601   for ac_prog in ar
7602   do
7603     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_AR+:} false; then :
7608   $as_echo_n "(cached) " >&6
7609 else
7610   if test -n "$AR"; then
7611   ac_cv_prog_AR="$AR" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616   IFS=$as_save_IFS
7617   test -z "$as_dir" && as_dir=.
7618     for ac_exec_ext in '' $ac_executable_extensions; do
7619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622     break 2
7623   fi
7624 done
7625   done
7626 IFS=$as_save_IFS
7627
7628 fi
7629 fi
7630 AR=$ac_cv_prog_AR
7631 if test -n "$AR"; then
7632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7633 $as_echo "$AR" >&6; }
7634 else
7635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7637 fi
7638
7639
7640     test -n "$AR" && break
7641   done
7642 fi
7643 if test -z "$AR"; then
7644   ac_ct_AR=$AR
7645   for ac_prog in ar
7646 do
7647   # Extract the first word of "$ac_prog", so it can be a program name with args.
7648 set dummy $ac_prog; ac_word=$2
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650 $as_echo_n "checking for $ac_word... " >&6; }
7651 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7652   $as_echo_n "(cached) " >&6
7653 else
7654   if test -n "$ac_ct_AR"; then
7655   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7656 else
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660   IFS=$as_save_IFS
7661   test -z "$as_dir" && as_dir=.
7662     for ac_exec_ext in '' $ac_executable_extensions; do
7663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7664     ac_cv_prog_ac_ct_AR="$ac_prog"
7665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666     break 2
7667   fi
7668 done
7669   done
7670 IFS=$as_save_IFS
7671
7672 fi
7673 fi
7674 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7675 if test -n "$ac_ct_AR"; then
7676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7677 $as_echo "$ac_ct_AR" >&6; }
7678 else
7679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7681 fi
7682
7683
7684   test -n "$ac_ct_AR" && break
7685 done
7686
7687   if test "x$ac_ct_AR" = x; then
7688     AR="false"
7689   else
7690     case $cross_compiling:$ac_tool_warned in
7691 yes:)
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7694 ac_tool_warned=yes ;;
7695 esac
7696     AR=$ac_ct_AR
7697   fi
7698 fi
7699
7700 : ${AR=ar}
7701 : ${AR_FLAGS=cru}
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7714 $as_echo_n "checking for archiver @FILE support... " >&6; }
7715 if ${lt_cv_ar_at_file+:} false; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718   lt_cv_ar_at_file=no
7719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h.  */
7721
7722 int
7723 main ()
7724 {
7725
7726   ;
7727   return 0;
7728 }
7729 _ACEOF
7730 if ac_fn_c_try_compile "$LINENO"; then :
7731   echo conftest.$ac_objext > conftest.lst
7732       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7733       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7734   (eval $lt_ar_try) 2>&5
7735   ac_status=$?
7736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7737   test $ac_status = 0; }
7738       if test "$ac_status" -eq 0; then
7739         # Ensure the archiver fails upon bogus file names.
7740         rm -f conftest.$ac_objext libconftest.a
7741         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7742   (eval $lt_ar_try) 2>&5
7743   ac_status=$?
7744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745   test $ac_status = 0; }
7746         if test "$ac_status" -ne 0; then
7747           lt_cv_ar_at_file=@
7748         fi
7749       fi
7750       rm -f conftest.* libconftest.a
7751
7752 fi
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754
7755 fi
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7757 $as_echo "$lt_cv_ar_at_file" >&6; }
7758
7759 if test "x$lt_cv_ar_at_file" = xno; then
7760   archiver_list_spec=
7761 else
7762   archiver_list_spec=$lt_cv_ar_at_file
7763 fi
7764
7765
7766
7767
7768
7769
7770
7771 if test -n "$ac_tool_prefix"; then
7772   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7773 set dummy ${ac_tool_prefix}strip; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if ${ac_cv_prog_STRIP+:} false; then :
7777   $as_echo_n "(cached) " >&6
7778 else
7779   if test -n "$STRIP"; then
7780   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   test -z "$as_dir" && as_dir=.
7787     for ac_exec_ext in '' $ac_executable_extensions; do
7788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794   done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 STRIP=$ac_cv_prog_STRIP
7800 if test -n "$STRIP"; then
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7802 $as_echo "$STRIP" >&6; }
7803 else
7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807
7808
7809 fi
7810 if test -z "$ac_cv_prog_STRIP"; then
7811   ac_ct_STRIP=$STRIP
7812   # Extract the first word of "strip", so it can be a program name with args.
7813 set dummy strip; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   if test -n "$ac_ct_STRIP"; then
7820   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827     for ac_exec_ext in '' $ac_executable_extensions; do
7828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829     ac_cv_prog_ac_ct_STRIP="strip"
7830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834   done
7835 IFS=$as_save_IFS
7836
7837 fi
7838 fi
7839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7840 if test -n "$ac_ct_STRIP"; then
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7842 $as_echo "$ac_ct_STRIP" >&6; }
7843 else
7844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847
7848   if test "x$ac_ct_STRIP" = x; then
7849     STRIP=":"
7850   else
7851     case $cross_compiling:$ac_tool_warned in
7852 yes:)
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7855 ac_tool_warned=yes ;;
7856 esac
7857     STRIP=$ac_ct_STRIP
7858   fi
7859 else
7860   STRIP="$ac_cv_prog_STRIP"
7861 fi
7862
7863 test -z "$STRIP" && STRIP=:
7864
7865
7866
7867
7868
7869
7870 if test -n "$ac_tool_prefix"; then
7871   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if ${ac_cv_prog_RANLIB+:} false; then :
7876   $as_echo_n "(cached) " >&6
7877 else
7878   if test -n "$RANLIB"; then
7879   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7883 do
7884   IFS=$as_save_IFS
7885   test -z "$as_dir" && as_dir=.
7886     for ac_exec_ext in '' $ac_executable_extensions; do
7887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7888     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890     break 2
7891   fi
7892 done
7893   done
7894 IFS=$as_save_IFS
7895
7896 fi
7897 fi
7898 RANLIB=$ac_cv_prog_RANLIB
7899 if test -n "$RANLIB"; then
7900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7901 $as_echo "$RANLIB" >&6; }
7902 else
7903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 fi
7906
7907
7908 fi
7909 if test -z "$ac_cv_prog_RANLIB"; then
7910   ac_ct_RANLIB=$RANLIB
7911   # Extract the first word of "ranlib", so it can be a program name with args.
7912 set dummy ranlib; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7916   $as_echo_n "(cached) " >&6
7917 else
7918   if test -n "$ac_ct_RANLIB"; then
7919   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7923 do
7924   IFS=$as_save_IFS
7925   test -z "$as_dir" && as_dir=.
7926     for ac_exec_ext in '' $ac_executable_extensions; do
7927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928     ac_cv_prog_ac_ct_RANLIB="ranlib"
7929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930     break 2
7931   fi
7932 done
7933   done
7934 IFS=$as_save_IFS
7935
7936 fi
7937 fi
7938 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7939 if test -n "$ac_ct_RANLIB"; then
7940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7941 $as_echo "$ac_ct_RANLIB" >&6; }
7942 else
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 fi
7946
7947   if test "x$ac_ct_RANLIB" = x; then
7948     RANLIB=":"
7949   else
7950     case $cross_compiling:$ac_tool_warned in
7951 yes:)
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954 ac_tool_warned=yes ;;
7955 esac
7956     RANLIB=$ac_ct_RANLIB
7957   fi
7958 else
7959   RANLIB="$ac_cv_prog_RANLIB"
7960 fi
7961
7962 test -z "$RANLIB" && RANLIB=:
7963
7964
7965
7966
7967
7968
7969 # Determine commands to create old-style static archives.
7970 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7971 old_postinstall_cmds='chmod 644 $oldlib'
7972 old_postuninstall_cmds=
7973
7974 if test -n "$RANLIB"; then
7975   case $host_os in
7976   openbsd*)
7977     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7978     ;;
7979   *)
7980     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7981     ;;
7982   esac
7983   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7984 fi
7985
7986 case $host_os in
7987   darwin*)
7988     lock_old_archive_extraction=yes ;;
7989   *)
7990     lock_old_archive_extraction=no ;;
7991 esac
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013 for ac_prog in gawk mawk nawk awk
8014 do
8015   # Extract the first word of "$ac_prog", so it can be a program name with args.
8016 set dummy $ac_prog; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_AWK+:} false; then :
8020   $as_echo_n "(cached) " >&6
8021 else
8022   if test -n "$AWK"; then
8023   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028   IFS=$as_save_IFS
8029   test -z "$as_dir" && as_dir=.
8030     for ac_exec_ext in '' $ac_executable_extensions; do
8031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032     ac_cv_prog_AWK="$ac_prog"
8033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034     break 2
8035   fi
8036 done
8037   done
8038 IFS=$as_save_IFS
8039
8040 fi
8041 fi
8042 AWK=$ac_cv_prog_AWK
8043 if test -n "$AWK"; then
8044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8045 $as_echo "$AWK" >&6; }
8046 else
8047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 fi
8050
8051
8052   test -n "$AWK" && break
8053 done
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073 # If no C compiler was specified, use CC.
8074 LTCC=${LTCC-"$CC"}
8075
8076 # If no C compiler flags were specified, use CFLAGS.
8077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8078
8079 # Allow CC to be a program name with arguments.
8080 compiler=$CC
8081
8082
8083 # Check for command to grab the raw symbol name followed by C symbol from nm.
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8085 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8086 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8087   $as_echo_n "(cached) " >&6
8088 else
8089
8090 # These are sane defaults that work on at least a few old systems.
8091 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8092
8093 # Character class describing NM global symbol codes.
8094 symcode='[BCDEGRST]'
8095
8096 # Regexp to match symbols that can be accessed directly from C.
8097 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8098
8099 # Define system-specific variables.
8100 case $host_os in
8101 aix*)
8102   symcode='[BCDT]'
8103   ;;
8104 cygwin* | mingw* | pw32* | cegcc*)
8105   symcode='[ABCDGISTW]'
8106   ;;
8107 hpux*)
8108   if test "$host_cpu" = ia64; then
8109     symcode='[ABCDEGRST]'
8110   fi
8111   ;;
8112 irix* | nonstopux*)
8113   symcode='[BCDEGRST]'
8114   ;;
8115 osf*)
8116   symcode='[BCDEGQRST]'
8117   ;;
8118 solaris*)
8119   symcode='[BDRT]'
8120   ;;
8121 sco3.2v5*)
8122   symcode='[DT]'
8123   ;;
8124 sysv4.2uw2*)
8125   symcode='[DT]'
8126   ;;
8127 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8128   symcode='[ABDT]'
8129   ;;
8130 sysv4)
8131   symcode='[DFNSTU]'
8132   ;;
8133 esac
8134
8135 # If we're using GNU nm, then use its standard symbol codes.
8136 case `$NM -V 2>&1` in
8137 *GNU* | *'with BFD'*)
8138   symcode='[ABCDGIRSTW]' ;;
8139 esac
8140
8141 # Transform an extracted symbol line into a proper C declaration.
8142 # Some systems (esp. on ia64) link data and code symbols differently,
8143 # so use this general approach.
8144 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8145
8146 # Transform an extracted symbol line into symbol name and symbol address
8147 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8148 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8149
8150 # Handle CRLF in mingw tool chain
8151 opt_cr=
8152 case $build_os in
8153 mingw*)
8154   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8155   ;;
8156 esac
8157
8158 # Try without a prefix underscore, then with it.
8159 for ac_symprfx in "" "_"; do
8160
8161   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8162   symxfrm="\\1 $ac_symprfx\\2 \\2"
8163
8164   # Write the raw and C identifiers.
8165   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8166     # Fake it for dumpbin and say T for any non-static function
8167     # and D for any global variable.
8168     # Also find C++ and __fastcall symbols from MSVC++,
8169     # which start with @ or ?.
8170     lt_cv_sys_global_symbol_pipe="$AWK '"\
8171 "     {last_section=section; section=\$ 3};"\
8172 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8173 "     \$ 0!~/External *\|/{next};"\
8174 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8175 "     {if(hide[section]) next};"\
8176 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8177 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8178 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8179 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8180 "     ' prfx=^$ac_symprfx"
8181   else
8182     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8183   fi
8184   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8185
8186   # Check to see that the pipe works correctly.
8187   pipe_works=no
8188
8189   rm -f conftest*
8190   cat > conftest.$ac_ext <<_LT_EOF
8191 #ifdef __cplusplus
8192 extern "C" {
8193 #endif
8194 char nm_test_var;
8195 void nm_test_func(void);
8196 void nm_test_func(void){}
8197 #ifdef __cplusplus
8198 }
8199 #endif
8200 int main(){nm_test_var='a';nm_test_func();return(0);}
8201 _LT_EOF
8202
8203   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8204   (eval $ac_compile) 2>&5
8205   ac_status=$?
8206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8207   test $ac_status = 0; }; then
8208     # Now try to grab the symbols.
8209     nlist=conftest.nm
8210     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8211   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8212   ac_status=$?
8213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8214   test $ac_status = 0; } && test -s "$nlist"; then
8215       # Try sorting and uniquifying the output.
8216       if sort "$nlist" | uniq > "$nlist"T; then
8217         mv -f "$nlist"T "$nlist"
8218       else
8219         rm -f "$nlist"T
8220       fi
8221
8222       # Make sure that we snagged all the symbols we need.
8223       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8224         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8225           cat <<_LT_EOF > conftest.$ac_ext
8226 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8227 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8228 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8229    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8230 # define LT_DLSYM_CONST
8231 #elif defined(__osf__)
8232 /* This system does not cope well with relocations in const data.  */
8233 # define LT_DLSYM_CONST
8234 #else
8235 # define LT_DLSYM_CONST const
8236 #endif
8237
8238 #ifdef __cplusplus
8239 extern "C" {
8240 #endif
8241
8242 _LT_EOF
8243           # Now generate the symbol file.
8244           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8245
8246           cat <<_LT_EOF >> conftest.$ac_ext
8247
8248 /* The mapping between symbol names and symbols.  */
8249 LT_DLSYM_CONST struct {
8250   const char *name;
8251   void       *address;
8252 }
8253 lt__PROGRAM__LTX_preloaded_symbols[] =
8254 {
8255   { "@PROGRAM@", (void *) 0 },
8256 _LT_EOF
8257           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8258           cat <<\_LT_EOF >> conftest.$ac_ext
8259   {0, (void *) 0}
8260 };
8261
8262 /* This works around a problem in FreeBSD linker */
8263 #ifdef FREEBSD_WORKAROUND
8264 static const void *lt_preloaded_setup() {
8265   return lt__PROGRAM__LTX_preloaded_symbols;
8266 }
8267 #endif
8268
8269 #ifdef __cplusplus
8270 }
8271 #endif
8272 _LT_EOF
8273           # Now try linking the two files.
8274           mv conftest.$ac_objext conftstm.$ac_objext
8275           lt_globsym_save_LIBS=$LIBS
8276           lt_globsym_save_CFLAGS=$CFLAGS
8277           LIBS="conftstm.$ac_objext"
8278           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8279           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8280   (eval $ac_link) 2>&5
8281   ac_status=$?
8282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8284             pipe_works=yes
8285           fi
8286           LIBS=$lt_globsym_save_LIBS
8287           CFLAGS=$lt_globsym_save_CFLAGS
8288         else
8289           echo "cannot find nm_test_func in $nlist" >&5
8290         fi
8291       else
8292         echo "cannot find nm_test_var in $nlist" >&5
8293       fi
8294     else
8295       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8296     fi
8297   else
8298     echo "$progname: failed program was:" >&5
8299     cat conftest.$ac_ext >&5
8300   fi
8301   rm -rf conftest* conftst*
8302
8303   # Do not use the global_symbol_pipe unless it works.
8304   if test "$pipe_works" = yes; then
8305     break
8306   else
8307     lt_cv_sys_global_symbol_pipe=
8308   fi
8309 done
8310
8311 fi
8312
8313 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8314   lt_cv_sys_global_symbol_to_cdecl=
8315 fi
8316 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8318 $as_echo "failed" >&6; }
8319 else
8320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8321 $as_echo "ok" >&6; }
8322 fi
8323
8324 # Response file support.
8325 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8326   nm_file_list_spec='@'
8327 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8328   nm_file_list_spec='@'
8329 fi
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8358 $as_echo_n "checking for sysroot... " >&6; }
8359
8360 # Check whether --with-sysroot was given.
8361 if test "${with_sysroot+set}" = set; then :
8362   withval=$with_sysroot;
8363 else
8364   with_sysroot=no
8365 fi
8366
8367
8368 lt_sysroot=
8369 case ${with_sysroot} in #(
8370  yes)
8371    if test "$GCC" = yes; then
8372      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8373    fi
8374    ;; #(
8375  /*)
8376    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8377    ;; #(
8378  no|'')
8379    ;; #(
8380  *)
8381    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8382 $as_echo "${with_sysroot}" >&6; }
8383    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8384    ;;
8385 esac
8386
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8388 $as_echo "${lt_sysroot:-no}" >&6; }
8389
8390
8391
8392
8393
8394 # Check whether --enable-libtool-lock was given.
8395 if test "${enable_libtool_lock+set}" = set; then :
8396   enableval=$enable_libtool_lock;
8397 fi
8398
8399 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8400
8401 # Some flags need to be propagated to the compiler or linker for good
8402 # libtool support.
8403 case $host in
8404 ia64-*-hpux*)
8405   # Find out which ABI we are using.
8406   echo 'int i;' > conftest.$ac_ext
8407   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8408   (eval $ac_compile) 2>&5
8409   ac_status=$?
8410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8411   test $ac_status = 0; }; then
8412     case `/usr/bin/file conftest.$ac_objext` in
8413       *ELF-32*)
8414         HPUX_IA64_MODE="32"
8415         ;;
8416       *ELF-64*)
8417         HPUX_IA64_MODE="64"
8418         ;;
8419     esac
8420   fi
8421   rm -rf conftest*
8422   ;;
8423 *-*-irix6*)
8424   # Find out which ABI we are using.
8425   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8426   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8427   (eval $ac_compile) 2>&5
8428   ac_status=$?
8429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8430   test $ac_status = 0; }; then
8431     if test "$lt_cv_prog_gnu_ld" = yes; then
8432       case `/usr/bin/file conftest.$ac_objext` in
8433         *32-bit*)
8434           LD="${LD-ld} -melf32bsmip"
8435           ;;
8436         *N32*)
8437           LD="${LD-ld} -melf32bmipn32"
8438           ;;
8439         *64-bit*)
8440           LD="${LD-ld} -melf64bmip"
8441         ;;
8442       esac
8443     else
8444       case `/usr/bin/file conftest.$ac_objext` in
8445         *32-bit*)
8446           LD="${LD-ld} -32"
8447           ;;
8448         *N32*)
8449           LD="${LD-ld} -n32"
8450           ;;
8451         *64-bit*)
8452           LD="${LD-ld} -64"
8453           ;;
8454       esac
8455     fi
8456   fi
8457   rm -rf conftest*
8458   ;;
8459
8460 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8461 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8462   # Find out which ABI we are using.
8463   echo 'int i;' > conftest.$ac_ext
8464   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8465   (eval $ac_compile) 2>&5
8466   ac_status=$?
8467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8468   test $ac_status = 0; }; then
8469     case `/usr/bin/file conftest.o` in
8470       *32-bit*)
8471         case $host in
8472           x86_64-*kfreebsd*-gnu)
8473             LD="${LD-ld} -m elf_i386_fbsd"
8474             ;;
8475           x86_64-*linux*)
8476             LD="${LD-ld} -m elf_i386"
8477             ;;
8478           ppc64-*linux*|powerpc64-*linux*)
8479             LD="${LD-ld} -m elf32ppclinux"
8480             ;;
8481           s390x-*linux*)
8482             LD="${LD-ld} -m elf_s390"
8483             ;;
8484           sparc64-*linux*)
8485             LD="${LD-ld} -m elf32_sparc"
8486             ;;
8487         esac
8488         ;;
8489       *64-bit*)
8490         case $host in
8491           x86_64-*kfreebsd*-gnu)
8492             LD="${LD-ld} -m elf_x86_64_fbsd"
8493             ;;
8494           x86_64-*linux*)
8495             LD="${LD-ld} -m elf_x86_64"
8496             ;;
8497           ppc*-*linux*|powerpc*-*linux*)
8498             LD="${LD-ld} -m elf64ppc"
8499             ;;
8500           s390*-*linux*|s390*-*tpf*)
8501             LD="${LD-ld} -m elf64_s390"
8502             ;;
8503           sparc*-*linux*)
8504             LD="${LD-ld} -m elf64_sparc"
8505             ;;
8506         esac
8507         ;;
8508     esac
8509   fi
8510   rm -rf conftest*
8511   ;;
8512
8513 *-*-sco3.2v5*)
8514   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8515   SAVE_CFLAGS="$CFLAGS"
8516   CFLAGS="$CFLAGS -belf"
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8518 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8519 if ${lt_cv_cc_needs_belf+:} false; then :
8520   $as_echo_n "(cached) " >&6
8521 else
8522   ac_ext=c
8523 ac_cpp='$CPP $CPPFLAGS'
8524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8527
8528      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h.  */
8530
8531 int
8532 main ()
8533 {
8534
8535   ;
8536   return 0;
8537 }
8538 _ACEOF
8539 if ac_fn_c_try_link "$LINENO"; then :
8540   lt_cv_cc_needs_belf=yes
8541 else
8542   lt_cv_cc_needs_belf=no
8543 fi
8544 rm -f core conftest.err conftest.$ac_objext \
8545     conftest$ac_exeext conftest.$ac_ext
8546      ac_ext=c
8547 ac_cpp='$CPP $CPPFLAGS'
8548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8551
8552 fi
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8554 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8555   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8556     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8557     CFLAGS="$SAVE_CFLAGS"
8558   fi
8559   ;;
8560 sparc*-*solaris*)
8561   # Find out which ABI we are using.
8562   echo 'int i;' > conftest.$ac_ext
8563   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8564   (eval $ac_compile) 2>&5
8565   ac_status=$?
8566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8567   test $ac_status = 0; }; then
8568     case `/usr/bin/file conftest.o` in
8569     *64-bit*)
8570       case $lt_cv_prog_gnu_ld in
8571       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8572       *)
8573         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8574           LD="${LD-ld} -64"
8575         fi
8576         ;;
8577       esac
8578       ;;
8579     esac
8580   fi
8581   rm -rf conftest*
8582   ;;
8583 esac
8584
8585 need_locks="$enable_libtool_lock"
8586
8587 if test -n "$ac_tool_prefix"; then
8588   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8589 set dummy ${ac_tool_prefix}mt; ac_word=$2
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591 $as_echo_n "checking for $ac_word... " >&6; }
8592 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8593   $as_echo_n "(cached) " >&6
8594 else
8595   if test -n "$MANIFEST_TOOL"; then
8596   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8597 else
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 for as_dir in $PATH
8600 do
8601   IFS=$as_save_IFS
8602   test -z "$as_dir" && as_dir=.
8603     for ac_exec_ext in '' $ac_executable_extensions; do
8604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8605     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607     break 2
8608   fi
8609 done
8610   done
8611 IFS=$as_save_IFS
8612
8613 fi
8614 fi
8615 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8616 if test -n "$MANIFEST_TOOL"; then
8617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8618 $as_echo "$MANIFEST_TOOL" >&6; }
8619 else
8620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8622 fi
8623
8624
8625 fi
8626 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8627   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8628   # Extract the first word of "mt", so it can be a program name with args.
8629 set dummy mt; ac_word=$2
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631 $as_echo_n "checking for $ac_word... " >&6; }
8632 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8633   $as_echo_n "(cached) " >&6
8634 else
8635   if test -n "$ac_ct_MANIFEST_TOOL"; then
8636   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8637 else
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in $PATH
8640 do
8641   IFS=$as_save_IFS
8642   test -z "$as_dir" && as_dir=.
8643     for ac_exec_ext in '' $ac_executable_extensions; do
8644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8645     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647     break 2
8648   fi
8649 done
8650   done
8651 IFS=$as_save_IFS
8652
8653 fi
8654 fi
8655 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8656 if test -n "$ac_ct_MANIFEST_TOOL"; then
8657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8658 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8659 else
8660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8662 fi
8663
8664   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8665     MANIFEST_TOOL=":"
8666   else
8667     case $cross_compiling:$ac_tool_warned in
8668 yes:)
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8671 ac_tool_warned=yes ;;
8672 esac
8673     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8674   fi
8675 else
8676   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8677 fi
8678
8679 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8681 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8682 if ${lt_cv_path_mainfest_tool+:} false; then :
8683   $as_echo_n "(cached) " >&6
8684 else
8685   lt_cv_path_mainfest_tool=no
8686   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8687   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8688   cat conftest.err >&5
8689   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8690     lt_cv_path_mainfest_tool=yes
8691   fi
8692   rm -f conftest*
8693 fi
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8695 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8696 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8697   MANIFEST_TOOL=:
8698 fi
8699
8700
8701
8702
8703
8704
8705   case $host_os in
8706     rhapsody* | darwin*)
8707     if test -n "$ac_tool_prefix"; then
8708   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8709 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711 $as_echo_n "checking for $ac_word... " >&6; }
8712 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8713   $as_echo_n "(cached) " >&6
8714 else
8715   if test -n "$DSYMUTIL"; then
8716   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8717 else
8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719 for as_dir in $PATH
8720 do
8721   IFS=$as_save_IFS
8722   test -z "$as_dir" && as_dir=.
8723     for ac_exec_ext in '' $ac_executable_extensions; do
8724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8725     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8727     break 2
8728   fi
8729 done
8730   done
8731 IFS=$as_save_IFS
8732
8733 fi
8734 fi
8735 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8736 if test -n "$DSYMUTIL"; then
8737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8738 $as_echo "$DSYMUTIL" >&6; }
8739 else
8740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8742 fi
8743
8744
8745 fi
8746 if test -z "$ac_cv_prog_DSYMUTIL"; then
8747   ac_ct_DSYMUTIL=$DSYMUTIL
8748   # Extract the first word of "dsymutil", so it can be a program name with args.
8749 set dummy dsymutil; ac_word=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8753   $as_echo_n "(cached) " >&6
8754 else
8755   if test -n "$ac_ct_DSYMUTIL"; then
8756   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8757 else
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8760 do
8761   IFS=$as_save_IFS
8762   test -z "$as_dir" && as_dir=.
8763     for ac_exec_ext in '' $ac_executable_extensions; do
8764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767     break 2
8768   fi
8769 done
8770   done
8771 IFS=$as_save_IFS
8772
8773 fi
8774 fi
8775 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8776 if test -n "$ac_ct_DSYMUTIL"; then
8777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8778 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8779 else
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8782 fi
8783
8784   if test "x$ac_ct_DSYMUTIL" = x; then
8785     DSYMUTIL=":"
8786   else
8787     case $cross_compiling:$ac_tool_warned in
8788 yes:)
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8791 ac_tool_warned=yes ;;
8792 esac
8793     DSYMUTIL=$ac_ct_DSYMUTIL
8794   fi
8795 else
8796   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8797 fi
8798
8799     if test -n "$ac_tool_prefix"; then
8800   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8801 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if ${ac_cv_prog_NMEDIT+:} false; then :
8805   $as_echo_n "(cached) " >&6
8806 else
8807   if test -n "$NMEDIT"; then
8808   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8809 else
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 for as_dir in $PATH
8812 do
8813   IFS=$as_save_IFS
8814   test -z "$as_dir" && as_dir=.
8815     for ac_exec_ext in '' $ac_executable_extensions; do
8816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8817     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819     break 2
8820   fi
8821 done
8822   done
8823 IFS=$as_save_IFS
8824
8825 fi
8826 fi
8827 NMEDIT=$ac_cv_prog_NMEDIT
8828 if test -n "$NMEDIT"; then
8829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8830 $as_echo "$NMEDIT" >&6; }
8831 else
8832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8834 fi
8835
8836
8837 fi
8838 if test -z "$ac_cv_prog_NMEDIT"; then
8839   ac_ct_NMEDIT=$NMEDIT
8840   # Extract the first word of "nmedit", so it can be a program name with args.
8841 set dummy nmedit; ac_word=$2
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843 $as_echo_n "checking for $ac_word... " >&6; }
8844 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8845   $as_echo_n "(cached) " >&6
8846 else
8847   if test -n "$ac_ct_NMEDIT"; then
8848   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8849 else
8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851 for as_dir in $PATH
8852 do
8853   IFS=$as_save_IFS
8854   test -z "$as_dir" && as_dir=.
8855     for ac_exec_ext in '' $ac_executable_extensions; do
8856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8857     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859     break 2
8860   fi
8861 done
8862   done
8863 IFS=$as_save_IFS
8864
8865 fi
8866 fi
8867 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8868 if test -n "$ac_ct_NMEDIT"; then
8869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8870 $as_echo "$ac_ct_NMEDIT" >&6; }
8871 else
8872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8874 fi
8875
8876   if test "x$ac_ct_NMEDIT" = x; then
8877     NMEDIT=":"
8878   else
8879     case $cross_compiling:$ac_tool_warned in
8880 yes:)
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8883 ac_tool_warned=yes ;;
8884 esac
8885     NMEDIT=$ac_ct_NMEDIT
8886   fi
8887 else
8888   NMEDIT="$ac_cv_prog_NMEDIT"
8889 fi
8890
8891     if test -n "$ac_tool_prefix"; then
8892   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8893 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 $as_echo_n "checking for $ac_word... " >&6; }
8896 if ${ac_cv_prog_LIPO+:} false; then :
8897   $as_echo_n "(cached) " >&6
8898 else
8899   if test -n "$LIPO"; then
8900   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8901 else
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8904 do
8905   IFS=$as_save_IFS
8906   test -z "$as_dir" && as_dir=.
8907     for ac_exec_ext in '' $ac_executable_extensions; do
8908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911     break 2
8912   fi
8913 done
8914   done
8915 IFS=$as_save_IFS
8916
8917 fi
8918 fi
8919 LIPO=$ac_cv_prog_LIPO
8920 if test -n "$LIPO"; then
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8922 $as_echo "$LIPO" >&6; }
8923 else
8924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8926 fi
8927
8928
8929 fi
8930 if test -z "$ac_cv_prog_LIPO"; then
8931   ac_ct_LIPO=$LIPO
8932   # Extract the first word of "lipo", so it can be a program name with args.
8933 set dummy lipo; ac_word=$2
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935 $as_echo_n "checking for $ac_word... " >&6; }
8936 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8937   $as_echo_n "(cached) " >&6
8938 else
8939   if test -n "$ac_ct_LIPO"; then
8940   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8941 else
8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943 for as_dir in $PATH
8944 do
8945   IFS=$as_save_IFS
8946   test -z "$as_dir" && as_dir=.
8947     for ac_exec_ext in '' $ac_executable_extensions; do
8948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8949     ac_cv_prog_ac_ct_LIPO="lipo"
8950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8951     break 2
8952   fi
8953 done
8954   done
8955 IFS=$as_save_IFS
8956
8957 fi
8958 fi
8959 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8960 if test -n "$ac_ct_LIPO"; then
8961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8962 $as_echo "$ac_ct_LIPO" >&6; }
8963 else
8964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 $as_echo "no" >&6; }
8966 fi
8967
8968   if test "x$ac_ct_LIPO" = x; then
8969     LIPO=":"
8970   else
8971     case $cross_compiling:$ac_tool_warned in
8972 yes:)
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8975 ac_tool_warned=yes ;;
8976 esac
8977     LIPO=$ac_ct_LIPO
8978   fi
8979 else
8980   LIPO="$ac_cv_prog_LIPO"
8981 fi
8982
8983     if test -n "$ac_tool_prefix"; then
8984   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8985 set dummy ${ac_tool_prefix}otool; ac_word=$2
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8987 $as_echo_n "checking for $ac_word... " >&6; }
8988 if ${ac_cv_prog_OTOOL+:} false; then :
8989   $as_echo_n "(cached) " >&6
8990 else
8991   if test -n "$OTOOL"; then
8992   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8993 else
8994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995 for as_dir in $PATH
8996 do
8997   IFS=$as_save_IFS
8998   test -z "$as_dir" && as_dir=.
8999     for ac_exec_ext in '' $ac_executable_extensions; do
9000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9001     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9003     break 2
9004   fi
9005 done
9006   done
9007 IFS=$as_save_IFS
9008
9009 fi
9010 fi
9011 OTOOL=$ac_cv_prog_OTOOL
9012 if test -n "$OTOOL"; then
9013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9014 $as_echo "$OTOOL" >&6; }
9015 else
9016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9018 fi
9019
9020
9021 fi
9022 if test -z "$ac_cv_prog_OTOOL"; then
9023   ac_ct_OTOOL=$OTOOL
9024   # Extract the first word of "otool", so it can be a program name with args.
9025 set dummy otool; ac_word=$2
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9027 $as_echo_n "checking for $ac_word... " >&6; }
9028 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9029   $as_echo_n "(cached) " >&6
9030 else
9031   if test -n "$ac_ct_OTOOL"; then
9032   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9033 else
9034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035 for as_dir in $PATH
9036 do
9037   IFS=$as_save_IFS
9038   test -z "$as_dir" && as_dir=.
9039     for ac_exec_ext in '' $ac_executable_extensions; do
9040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9041     ac_cv_prog_ac_ct_OTOOL="otool"
9042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9043     break 2
9044   fi
9045 done
9046   done
9047 IFS=$as_save_IFS
9048
9049 fi
9050 fi
9051 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9052 if test -n "$ac_ct_OTOOL"; then
9053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9054 $as_echo "$ac_ct_OTOOL" >&6; }
9055 else
9056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 $as_echo "no" >&6; }
9058 fi
9059
9060   if test "x$ac_ct_OTOOL" = x; then
9061     OTOOL=":"
9062   else
9063     case $cross_compiling:$ac_tool_warned in
9064 yes:)
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9067 ac_tool_warned=yes ;;
9068 esac
9069     OTOOL=$ac_ct_OTOOL
9070   fi
9071 else
9072   OTOOL="$ac_cv_prog_OTOOL"
9073 fi
9074
9075     if test -n "$ac_tool_prefix"; then
9076   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9077 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 $as_echo_n "checking for $ac_word... " >&6; }
9080 if ${ac_cv_prog_OTOOL64+:} false; then :
9081   $as_echo_n "(cached) " >&6
9082 else
9083   if test -n "$OTOOL64"; then
9084   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9085 else
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9088 do
9089   IFS=$as_save_IFS
9090   test -z "$as_dir" && as_dir=.
9091     for ac_exec_ext in '' $ac_executable_extensions; do
9092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9093     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095     break 2
9096   fi
9097 done
9098   done
9099 IFS=$as_save_IFS
9100
9101 fi
9102 fi
9103 OTOOL64=$ac_cv_prog_OTOOL64
9104 if test -n "$OTOOL64"; then
9105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9106 $as_echo "$OTOOL64" >&6; }
9107 else
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9110 fi
9111
9112
9113 fi
9114 if test -z "$ac_cv_prog_OTOOL64"; then
9115   ac_ct_OTOOL64=$OTOOL64
9116   # Extract the first word of "otool64", so it can be a program name with args.
9117 set dummy otool64; ac_word=$2
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119 $as_echo_n "checking for $ac_word... " >&6; }
9120 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9121   $as_echo_n "(cached) " >&6
9122 else
9123   if test -n "$ac_ct_OTOOL64"; then
9124   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9125 else
9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 for as_dir in $PATH
9128 do
9129   IFS=$as_save_IFS
9130   test -z "$as_dir" && as_dir=.
9131     for ac_exec_ext in '' $ac_executable_extensions; do
9132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9133     ac_cv_prog_ac_ct_OTOOL64="otool64"
9134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135     break 2
9136   fi
9137 done
9138   done
9139 IFS=$as_save_IFS
9140
9141 fi
9142 fi
9143 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9144 if test -n "$ac_ct_OTOOL64"; then
9145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9146 $as_echo "$ac_ct_OTOOL64" >&6; }
9147 else
9148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9150 fi
9151
9152   if test "x$ac_ct_OTOOL64" = x; then
9153     OTOOL64=":"
9154   else
9155     case $cross_compiling:$ac_tool_warned in
9156 yes:)
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9159 ac_tool_warned=yes ;;
9160 esac
9161     OTOOL64=$ac_ct_OTOOL64
9162   fi
9163 else
9164   OTOOL64="$ac_cv_prog_OTOOL64"
9165 fi
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9194 $as_echo_n "checking for -single_module linker flag... " >&6; }
9195 if ${lt_cv_apple_cc_single_mod+:} false; then :
9196   $as_echo_n "(cached) " >&6
9197 else
9198   lt_cv_apple_cc_single_mod=no
9199       if test -z "${LT_MULTI_MODULE}"; then
9200         # By default we will add the -single_module flag. You can override
9201         # by either setting the environment variable LT_MULTI_MODULE
9202         # non-empty at configure time, or by adding -multi_module to the
9203         # link flags.
9204         rm -rf libconftest.dylib*
9205         echo "int foo(void){return 1;}" > conftest.c
9206         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9207 -dynamiclib -Wl,-single_module conftest.c" >&5
9208         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9209           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9210         _lt_result=$?
9211         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9212           lt_cv_apple_cc_single_mod=yes
9213         else
9214           cat conftest.err >&5
9215         fi
9216         rm -rf libconftest.dylib*
9217         rm -f conftest.*
9218       fi
9219 fi
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9221 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9223 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9224 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9225   $as_echo_n "(cached) " >&6
9226 else
9227   lt_cv_ld_exported_symbols_list=no
9228       save_LDFLAGS=$LDFLAGS
9229       echo "_main" > conftest.sym
9230       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9231       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h.  */
9233
9234 int
9235 main ()
9236 {
9237
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 if ac_fn_c_try_link "$LINENO"; then :
9243   lt_cv_ld_exported_symbols_list=yes
9244 else
9245   lt_cv_ld_exported_symbols_list=no
9246 fi
9247 rm -f core conftest.err conftest.$ac_objext \
9248     conftest$ac_exeext conftest.$ac_ext
9249         LDFLAGS="$save_LDFLAGS"
9250
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9253 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9255 $as_echo_n "checking for -force_load linker flag... " >&6; }
9256 if ${lt_cv_ld_force_load+:} false; then :
9257   $as_echo_n "(cached) " >&6
9258 else
9259   lt_cv_ld_force_load=no
9260       cat > conftest.c << _LT_EOF
9261 int forced_loaded() { return 2;}
9262 _LT_EOF
9263       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9264       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9265       echo "$AR cru libconftest.a conftest.o" >&5
9266       $AR cru libconftest.a conftest.o 2>&5
9267       echo "$RANLIB libconftest.a" >&5
9268       $RANLIB libconftest.a 2>&5
9269       cat > conftest.c << _LT_EOF
9270 int main() { return 0;}
9271 _LT_EOF
9272       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9273       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9274       _lt_result=$?
9275       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9276         lt_cv_ld_force_load=yes
9277       else
9278         cat conftest.err >&5
9279       fi
9280         rm -f conftest.err libconftest.a conftest conftest.c
9281         rm -rf conftest.dSYM
9282
9283 fi
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9285 $as_echo "$lt_cv_ld_force_load" >&6; }
9286     case $host_os in
9287     rhapsody* | darwin1.[012])
9288       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9289     darwin1.*)
9290       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9291     darwin*) # darwin 5.x on
9292       # if running on 10.5 or later, the deployment target defaults
9293       # to the OS version, if on x86, and 10.4, the deployment
9294       # target defaults to 10.4. Don't you love it?
9295       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9296         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9297           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9298         10.[012]*)
9299           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9300         10.*)
9301           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9302       esac
9303     ;;
9304   esac
9305     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9306       _lt_dar_single_mod='$single_module'
9307     fi
9308     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9309       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9310     else
9311       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9312     fi
9313     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9314       _lt_dsymutil='~$DSYMUTIL $lib || :'
9315     else
9316       _lt_dsymutil=
9317     fi
9318     ;;
9319   esac
9320
9321
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9323 $as_echo_n "checking for ANSI C header files... " >&6; }
9324 if ${ac_cv_header_stdc+:} false; then :
9325   $as_echo_n "(cached) " >&6
9326 else
9327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h.  */
9329 #include <stdlib.h>
9330 #include <stdarg.h>
9331 #include <string.h>
9332 #include <float.h>
9333
9334 int
9335 main ()
9336 {
9337
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 if ac_fn_c_try_compile "$LINENO"; then :
9343   ac_cv_header_stdc=yes
9344 else
9345   ac_cv_header_stdc=no
9346 fi
9347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348
9349 if test $ac_cv_header_stdc = yes; then
9350   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h.  */
9353 #include <string.h>
9354
9355 _ACEOF
9356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9357   $EGREP "memchr" >/dev/null 2>&1; then :
9358
9359 else
9360   ac_cv_header_stdc=no
9361 fi
9362 rm -f conftest*
9363
9364 fi
9365
9366 if test $ac_cv_header_stdc = yes; then
9367   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h.  */
9370 #include <stdlib.h>
9371
9372 _ACEOF
9373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9374   $EGREP "free" >/dev/null 2>&1; then :
9375
9376 else
9377   ac_cv_header_stdc=no
9378 fi
9379 rm -f conftest*
9380
9381 fi
9382
9383 if test $ac_cv_header_stdc = yes; then
9384   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9385   if test "$cross_compiling" = yes; then :
9386   :
9387 else
9388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h.  */
9390 #include <ctype.h>
9391 #include <stdlib.h>
9392 #if ((' ' & 0x0FF) == 0x020)
9393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9395 #else
9396 # define ISLOWER(c) \
9397                    (('a' <= (c) && (c) <= 'i') \
9398                      || ('j' <= (c) && (c) <= 'r') \
9399                      || ('s' <= (c) && (c) <= 'z'))
9400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9401 #endif
9402
9403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9404 int
9405 main ()
9406 {
9407   int i;
9408   for (i = 0; i < 256; i++)
9409     if (XOR (islower (i), ISLOWER (i))
9410         || toupper (i) != TOUPPER (i))
9411       return 2;
9412   return 0;
9413 }
9414 _ACEOF
9415 if ac_fn_c_try_run "$LINENO"; then :
9416
9417 else
9418   ac_cv_header_stdc=no
9419 fi
9420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9421   conftest.$ac_objext conftest.beam conftest.$ac_ext
9422 fi
9423
9424 fi
9425 fi
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9427 $as_echo "$ac_cv_header_stdc" >&6; }
9428 if test $ac_cv_header_stdc = yes; then
9429
9430 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9431
9432 fi
9433
9434 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9436                   inttypes.h stdint.h unistd.h
9437 do :
9438   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9439 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9440 "
9441 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9442   cat >>confdefs.h <<_ACEOF
9443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9444 _ACEOF
9445
9446 fi
9447
9448 done
9449
9450
9451 for ac_header in dlfcn.h
9452 do :
9453   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9454 "
9455 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9456   cat >>confdefs.h <<_ACEOF
9457 #define HAVE_DLFCN_H 1
9458 _ACEOF
9459
9460 fi
9461
9462 done
9463
9464
9465
9466
9467
9468 # Set options
9469 enable_dlopen=yes
9470
9471
9472
9473
9474   enable_win32_dll=no
9475
9476
9477             # Check whether --enable-shared was given.
9478 if test "${enable_shared+set}" = set; then :
9479   enableval=$enable_shared; p=${PACKAGE-default}
9480     case $enableval in
9481     yes) enable_shared=yes ;;
9482     no) enable_shared=no ;;
9483     *)
9484       enable_shared=no
9485       # Look at the argument we got.  We use all the common list separators.
9486       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9487       for pkg in $enableval; do
9488         IFS="$lt_save_ifs"
9489         if test "X$pkg" = "X$p"; then
9490           enable_shared=yes
9491         fi
9492       done
9493       IFS="$lt_save_ifs"
9494       ;;
9495     esac
9496 else
9497   enable_shared=yes
9498 fi
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508   # Check whether --enable-static was given.
9509 if test "${enable_static+set}" = set; then :
9510   enableval=$enable_static; p=${PACKAGE-default}
9511     case $enableval in
9512     yes) enable_static=yes ;;
9513     no) enable_static=no ;;
9514     *)
9515      enable_static=no
9516       # Look at the argument we got.  We use all the common list separators.
9517       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9518       for pkg in $enableval; do
9519         IFS="$lt_save_ifs"
9520         if test "X$pkg" = "X$p"; then
9521           enable_static=yes
9522         fi
9523       done
9524       IFS="$lt_save_ifs"
9525       ;;
9526     esac
9527 else
9528   enable_static=yes
9529 fi
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540 # Check whether --with-pic was given.
9541 if test "${with_pic+set}" = set; then :
9542   withval=$with_pic; pic_mode="$withval"
9543 else
9544   pic_mode=default
9545 fi
9546
9547
9548 test -z "$pic_mode" && pic_mode=default
9549
9550
9551
9552
9553
9554
9555
9556   # Check whether --enable-fast-install was given.
9557 if test "${enable_fast_install+set}" = set; then :
9558   enableval=$enable_fast_install; p=${PACKAGE-default}
9559     case $enableval in
9560     yes) enable_fast_install=yes ;;
9561     no) enable_fast_install=no ;;
9562     *)
9563       enable_fast_install=no
9564       # Look at the argument we got.  We use all the common list separators.
9565       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9566       for pkg in $enableval; do
9567         IFS="$lt_save_ifs"
9568         if test "X$pkg" = "X$p"; then
9569           enable_fast_install=yes
9570         fi
9571       done
9572       IFS="$lt_save_ifs"
9573       ;;
9574     esac
9575 else
9576   enable_fast_install=yes
9577 fi
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589 # This can be used to rebuild libtool when needed
9590 LIBTOOL_DEPS="$ltmain"
9591
9592 # Always use our own libtool.
9593 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620 test -z "$LN_S" && LN_S="ln -s"
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635 if test -n "${ZSH_VERSION+set}" ; then
9636    setopt NO_GLOB_SUBST
9637 fi
9638
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9640 $as_echo_n "checking for objdir... " >&6; }
9641 if ${lt_cv_objdir+:} false; then :
9642   $as_echo_n "(cached) " >&6
9643 else
9644   rm -f .libs 2>/dev/null
9645 mkdir .libs 2>/dev/null
9646 if test -d .libs; then
9647   lt_cv_objdir=.libs
9648 else
9649   # MS-DOS does not allow filenames that begin with a dot.
9650   lt_cv_objdir=_libs
9651 fi
9652 rmdir .libs 2>/dev/null
9653 fi
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9655 $as_echo "$lt_cv_objdir" >&6; }
9656 objdir=$lt_cv_objdir
9657
9658
9659
9660
9661
9662 cat >>confdefs.h <<_ACEOF
9663 #define LT_OBJDIR "$lt_cv_objdir/"
9664 _ACEOF
9665
9666
9667
9668
9669 case $host_os in
9670 aix3*)
9671   # AIX sometimes has problems with the GCC collect2 program.  For some
9672   # reason, if we set the COLLECT_NAMES environment variable, the problems
9673   # vanish in a puff of smoke.
9674   if test "X${COLLECT_NAMES+set}" != Xset; then
9675     COLLECT_NAMES=
9676     export COLLECT_NAMES
9677   fi
9678   ;;
9679 esac
9680
9681 # Global variables:
9682 ofile=libtool
9683 can_build_shared=yes
9684
9685 # All known linkers require a `.a' archive for static linking (except MSVC,
9686 # which needs '.lib').
9687 libext=a
9688
9689 with_gnu_ld="$lt_cv_prog_gnu_ld"
9690
9691 old_CC="$CC"
9692 old_CFLAGS="$CFLAGS"
9693
9694 # Set sane defaults for various variables
9695 test -z "$CC" && CC=cc
9696 test -z "$LTCC" && LTCC=$CC
9697 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9698 test -z "$LD" && LD=ld
9699 test -z "$ac_objext" && ac_objext=o
9700
9701 for cc_temp in $compiler""; do
9702   case $cc_temp in
9703     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9704     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9705     \-*) ;;
9706     *) break;;
9707   esac
9708 done
9709 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9710
9711
9712 # Only perform the check for file, if the check method requires it
9713 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9714 case $deplibs_check_method in
9715 file_magic*)
9716   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9718 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9719 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9720   $as_echo_n "(cached) " >&6
9721 else
9722   case $MAGIC_CMD in
9723 [\\/*] |  ?:[\\/]*)
9724   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9725   ;;
9726 *)
9727   lt_save_MAGIC_CMD="$MAGIC_CMD"
9728   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9729   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9730   for ac_dir in $ac_dummy; do
9731     IFS="$lt_save_ifs"
9732     test -z "$ac_dir" && ac_dir=.
9733     if test -f $ac_dir/${ac_tool_prefix}file; then
9734       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9735       if test -n "$file_magic_test_file"; then
9736         case $deplibs_check_method in
9737         "file_magic "*)
9738           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9739           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9740           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9741             $EGREP "$file_magic_regex" > /dev/null; then
9742             :
9743           else
9744             cat <<_LT_EOF 1>&2
9745
9746 *** Warning: the command libtool uses to detect shared libraries,
9747 *** $file_magic_cmd, produces output that libtool cannot recognize.
9748 *** The result is that libtool may fail to recognize shared libraries
9749 *** as such.  This will affect the creation of libtool libraries that
9750 *** depend on shared libraries, but programs linked with such libtool
9751 *** libraries will work regardless of this problem.  Nevertheless, you
9752 *** may want to report the problem to your system manager and/or to
9753 *** bug-libtool@gnu.org
9754
9755 _LT_EOF
9756           fi ;;
9757         esac
9758       fi
9759       break
9760     fi
9761   done
9762   IFS="$lt_save_ifs"
9763   MAGIC_CMD="$lt_save_MAGIC_CMD"
9764   ;;
9765 esac
9766 fi
9767
9768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9769 if test -n "$MAGIC_CMD"; then
9770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9771 $as_echo "$MAGIC_CMD" >&6; }
9772 else
9773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 $as_echo "no" >&6; }
9775 fi
9776
9777
9778
9779
9780
9781 if test -z "$lt_cv_path_MAGIC_CMD"; then
9782   if test -n "$ac_tool_prefix"; then
9783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9784 $as_echo_n "checking for file... " >&6; }
9785 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9786   $as_echo_n "(cached) " >&6
9787 else
9788   case $MAGIC_CMD in
9789 [\\/*] |  ?:[\\/]*)
9790   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9791   ;;
9792 *)
9793   lt_save_MAGIC_CMD="$MAGIC_CMD"
9794   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9795   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9796   for ac_dir in $ac_dummy; do
9797     IFS="$lt_save_ifs"
9798     test -z "$ac_dir" && ac_dir=.
9799     if test -f $ac_dir/file; then
9800       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9801       if test -n "$file_magic_test_file"; then
9802         case $deplibs_check_method in
9803         "file_magic "*)
9804           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9805           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9806           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9807             $EGREP "$file_magic_regex" > /dev/null; then
9808             :
9809           else
9810             cat <<_LT_EOF 1>&2
9811
9812 *** Warning: the command libtool uses to detect shared libraries,
9813 *** $file_magic_cmd, produces output that libtool cannot recognize.
9814 *** The result is that libtool may fail to recognize shared libraries
9815 *** as such.  This will affect the creation of libtool libraries that
9816 *** depend on shared libraries, but programs linked with such libtool
9817 *** libraries will work regardless of this problem.  Nevertheless, you
9818 *** may want to report the problem to your system manager and/or to
9819 *** bug-libtool@gnu.org
9820
9821 _LT_EOF
9822           fi ;;
9823         esac
9824       fi
9825       break
9826     fi
9827   done
9828   IFS="$lt_save_ifs"
9829   MAGIC_CMD="$lt_save_MAGIC_CMD"
9830   ;;
9831 esac
9832 fi
9833
9834 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9835 if test -n "$MAGIC_CMD"; then
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9837 $as_echo "$MAGIC_CMD" >&6; }
9838 else
9839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9841 fi
9842
9843
9844   else
9845     MAGIC_CMD=:
9846   fi
9847 fi
9848
9849   fi
9850   ;;
9851 esac
9852
9853 # Use C for the default configuration in the libtool script
9854
9855 lt_save_CC="$CC"
9856 ac_ext=c
9857 ac_cpp='$CPP $CPPFLAGS'
9858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9861
9862
9863 # Source file extension for C test sources.
9864 ac_ext=c
9865
9866 # Object file extension for compiled C test sources.
9867 objext=o
9868 objext=$objext
9869
9870 # Code to be used in simple compile tests
9871 lt_simple_compile_test_code="int some_variable = 0;"
9872
9873 # Code to be used in simple link tests
9874 lt_simple_link_test_code='int main(){return(0);}'
9875
9876
9877
9878
9879
9880
9881
9882 # If no C compiler was specified, use CC.
9883 LTCC=${LTCC-"$CC"}
9884
9885 # If no C compiler flags were specified, use CFLAGS.
9886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9887
9888 # Allow CC to be a program name with arguments.
9889 compiler=$CC
9890
9891 # Save the default compiler, since it gets overwritten when the other
9892 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9893 compiler_DEFAULT=$CC
9894
9895 # save warnings/boilerplate of simple test code
9896 ac_outfile=conftest.$ac_objext
9897 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9899 _lt_compiler_boilerplate=`cat conftest.err`
9900 $RM conftest*
9901
9902 ac_outfile=conftest.$ac_objext
9903 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9905 _lt_linker_boilerplate=`cat conftest.err`
9906 $RM -r conftest*
9907
9908
9909 ## CAVEAT EMPTOR:
9910 ## There is no encapsulation within the following macros, do not change
9911 ## the running order or otherwise move them around unless you know exactly
9912 ## what you are doing...
9913 if test -n "$compiler"; then
9914
9915 lt_prog_compiler_no_builtin_flag=
9916
9917 if test "$GCC" = yes; then
9918   case $cc_basename in
9919   nvcc*)
9920     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9921   *)
9922     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9923   esac
9924
9925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9926 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9927 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9928   $as_echo_n "(cached) " >&6
9929 else
9930   lt_cv_prog_compiler_rtti_exceptions=no
9931    ac_outfile=conftest.$ac_objext
9932    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9933    lt_compiler_flag="-fno-rtti -fno-exceptions"
9934    # Insert the option either (1) after the last *FLAGS variable, or
9935    # (2) before a word containing "conftest.", or (3) at the end.
9936    # Note that $ac_compile itself does not contain backslashes and begins
9937    # with a dollar sign (not a hyphen), so the echo should work correctly.
9938    # The option is referenced via a variable to avoid confusing sed.
9939    lt_compile=`echo "$ac_compile" | $SED \
9940    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9941    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9942    -e 's:$: $lt_compiler_flag:'`
9943    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9944    (eval "$lt_compile" 2>conftest.err)
9945    ac_status=$?
9946    cat conftest.err >&5
9947    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948    if (exit $ac_status) && test -s "$ac_outfile"; then
9949      # The compiler can only warn and ignore the option if not recognized
9950      # So say no if there are warnings other than the usual output.
9951      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9952      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9953      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9954        lt_cv_prog_compiler_rtti_exceptions=yes
9955      fi
9956    fi
9957    $RM conftest*
9958
9959 fi
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9961 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9962
9963 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9964     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9965 else
9966     :
9967 fi
9968
9969 fi
9970
9971
9972
9973
9974
9975
9976   lt_prog_compiler_wl=
9977 lt_prog_compiler_pic=
9978 lt_prog_compiler_static=
9979
9980
9981   if test "$GCC" = yes; then
9982     lt_prog_compiler_wl='-Wl,'
9983     lt_prog_compiler_static='-static'
9984
9985     case $host_os in
9986       aix*)
9987       # All AIX code is PIC.
9988       if test "$host_cpu" = ia64; then
9989         # AIX 5 now supports IA64 processor
9990         lt_prog_compiler_static='-Bstatic'
9991       fi
9992       ;;
9993
9994     amigaos*)
9995       case $host_cpu in
9996       powerpc)
9997             # see comment about AmigaOS4 .so support
9998             lt_prog_compiler_pic='-fPIC'
9999         ;;
10000       m68k)
10001             # FIXME: we need at least 68020 code to build shared libraries, but
10002             # adding the `-m68020' flag to GCC prevents building anything better,
10003             # like `-m68040'.
10004             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10005         ;;
10006       esac
10007       ;;
10008
10009     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10010       # PIC is the default for these OSes.
10011       ;;
10012
10013     mingw* | cygwin* | pw32* | os2* | cegcc*)
10014       # This hack is so that the source file can tell whether it is being
10015       # built for inclusion in a dll (and should export symbols for example).
10016       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10017       # (--disable-auto-import) libraries
10018       lt_prog_compiler_pic='-DDLL_EXPORT'
10019       ;;
10020
10021     darwin* | rhapsody*)
10022       # PIC is the default on this platform
10023       # Common symbols not allowed in MH_DYLIB files
10024       lt_prog_compiler_pic='-fno-common'
10025       ;;
10026
10027     haiku*)
10028       # PIC is the default for Haiku.
10029       # The "-static" flag exists, but is broken.
10030       lt_prog_compiler_static=
10031       ;;
10032
10033     hpux*)
10034       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10035       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10036       # sets the default TLS model and affects inlining.
10037       case $host_cpu in
10038       hppa*64*)
10039         # +Z the default
10040         ;;
10041       *)
10042         lt_prog_compiler_pic='-fPIC'
10043         ;;
10044       esac
10045       ;;
10046
10047     interix[3-9]*)
10048       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10049       # Instead, we relocate shared libraries at runtime.
10050       ;;
10051
10052     msdosdjgpp*)
10053       # Just because we use GCC doesn't mean we suddenly get shared libraries
10054       # on systems that don't support them.
10055       lt_prog_compiler_can_build_shared=no
10056       enable_shared=no
10057       ;;
10058
10059     *nto* | *qnx*)
10060       # QNX uses GNU C++, but need to define -shared option too, otherwise
10061       # it will coredump.
10062       lt_prog_compiler_pic='-fPIC -shared'
10063       ;;
10064
10065     sysv4*MP*)
10066       if test -d /usr/nec; then
10067         lt_prog_compiler_pic=-Kconform_pic
10068       fi
10069       ;;
10070
10071     *)
10072       lt_prog_compiler_pic='-fPIC'
10073       ;;
10074     esac
10075
10076     case $cc_basename in
10077     nvcc*) # Cuda Compiler Driver 2.2
10078       lt_prog_compiler_wl='-Xlinker '
10079       lt_prog_compiler_pic='-Xcompiler -fPIC'
10080       ;;
10081     esac
10082   else
10083     # PORTME Check for flag to pass linker flags through the system compiler.
10084     case $host_os in
10085     aix*)
10086       lt_prog_compiler_wl='-Wl,'
10087       if test "$host_cpu" = ia64; then
10088         # AIX 5 now supports IA64 processor
10089         lt_prog_compiler_static='-Bstatic'
10090       else
10091         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10092       fi
10093       ;;
10094
10095     mingw* | cygwin* | pw32* | os2* | cegcc*)
10096       # This hack is so that the source file can tell whether it is being
10097       # built for inclusion in a dll (and should export symbols for example).
10098       lt_prog_compiler_pic='-DDLL_EXPORT'
10099       ;;
10100
10101     hpux9* | hpux10* | hpux11*)
10102       lt_prog_compiler_wl='-Wl,'
10103       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10104       # not for PA HP-UX.
10105       case $host_cpu in
10106       hppa*64*|ia64*)
10107         # +Z the default
10108         ;;
10109       *)
10110         lt_prog_compiler_pic='+Z'
10111         ;;
10112       esac
10113       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10114       lt_prog_compiler_static='${wl}-a ${wl}archive'
10115       ;;
10116
10117     irix5* | irix6* | nonstopux*)
10118       lt_prog_compiler_wl='-Wl,'
10119       # PIC (with -KPIC) is the default.
10120       lt_prog_compiler_static='-non_shared'
10121       ;;
10122
10123     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10124       case $cc_basename in
10125       # old Intel for x86_64 which still supported -KPIC.
10126       ecc*)
10127         lt_prog_compiler_wl='-Wl,'
10128         lt_prog_compiler_pic='-KPIC'
10129         lt_prog_compiler_static='-static'
10130         ;;
10131       # icc used to be incompatible with GCC.
10132       # ICC 10 doesn't accept -KPIC any more.
10133       icc* | ifort*)
10134         lt_prog_compiler_wl='-Wl,'
10135         lt_prog_compiler_pic='-fPIC'
10136         lt_prog_compiler_static='-static'
10137         ;;
10138       # Lahey Fortran 8.1.
10139       lf95*)
10140         lt_prog_compiler_wl='-Wl,'
10141         lt_prog_compiler_pic='--shared'
10142         lt_prog_compiler_static='--static'
10143         ;;
10144       nagfor*)
10145         # NAG Fortran compiler
10146         lt_prog_compiler_wl='-Wl,-Wl,,'
10147         lt_prog_compiler_pic='-PIC'
10148         lt_prog_compiler_static='-Bstatic'
10149         ;;
10150       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10151         # Portland Group compilers (*not* the Pentium gcc compiler,
10152         # which looks to be a dead project)
10153         lt_prog_compiler_wl='-Wl,'
10154         lt_prog_compiler_pic='-fpic'
10155         lt_prog_compiler_static='-Bstatic'
10156         ;;
10157       ccc*)
10158         lt_prog_compiler_wl='-Wl,'
10159         # All Alpha code is PIC.
10160         lt_prog_compiler_static='-non_shared'
10161         ;;
10162       xl* | bgxl* | bgf* | mpixl*)
10163         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10164         lt_prog_compiler_wl='-Wl,'
10165         lt_prog_compiler_pic='-qpic'
10166         lt_prog_compiler_static='-qstaticlink'
10167         ;;
10168       *)
10169         case `$CC -V 2>&1 | sed 5q` in
10170         *Sun\ F* | *Sun*Fortran*)
10171           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10172           lt_prog_compiler_pic='-KPIC'
10173           lt_prog_compiler_static='-Bstatic'
10174           lt_prog_compiler_wl=''
10175           ;;
10176         *Sun\ C*)
10177           # Sun C 5.9
10178           lt_prog_compiler_pic='-KPIC'
10179           lt_prog_compiler_static='-Bstatic'
10180           lt_prog_compiler_wl='-Wl,'
10181           ;;
10182         esac
10183         ;;
10184       esac
10185       ;;
10186
10187     newsos6)
10188       lt_prog_compiler_pic='-KPIC'
10189       lt_prog_compiler_static='-Bstatic'
10190       ;;
10191
10192     *nto* | *qnx*)
10193       # QNX uses GNU C++, but need to define -shared option too, otherwise
10194       # it will coredump.
10195       lt_prog_compiler_pic='-fPIC -shared'
10196       ;;
10197
10198     osf3* | osf4* | osf5*)
10199       lt_prog_compiler_wl='-Wl,'
10200       # All OSF/1 code is PIC.
10201       lt_prog_compiler_static='-non_shared'
10202       ;;
10203
10204     rdos*)
10205       lt_prog_compiler_static='-non_shared'
10206       ;;
10207
10208     solaris*)
10209       lt_prog_compiler_pic='-KPIC'
10210       lt_prog_compiler_static='-Bstatic'
10211       case $cc_basename in
10212       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10213         lt_prog_compiler_wl='-Qoption ld ';;
10214       *)
10215         lt_prog_compiler_wl='-Wl,';;
10216       esac
10217       ;;
10218
10219     sunos4*)
10220       lt_prog_compiler_wl='-Qoption ld '
10221       lt_prog_compiler_pic='-PIC'
10222       lt_prog_compiler_static='-Bstatic'
10223       ;;
10224
10225     sysv4 | sysv4.2uw2* | sysv4.3*)
10226       lt_prog_compiler_wl='-Wl,'
10227       lt_prog_compiler_pic='-KPIC'
10228       lt_prog_compiler_static='-Bstatic'
10229       ;;
10230
10231     sysv4*MP*)
10232       if test -d /usr/nec ;then
10233         lt_prog_compiler_pic='-Kconform_pic'
10234         lt_prog_compiler_static='-Bstatic'
10235       fi
10236       ;;
10237
10238     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10239       lt_prog_compiler_wl='-Wl,'
10240       lt_prog_compiler_pic='-KPIC'
10241       lt_prog_compiler_static='-Bstatic'
10242       ;;
10243
10244     unicos*)
10245       lt_prog_compiler_wl='-Wl,'
10246       lt_prog_compiler_can_build_shared=no
10247       ;;
10248
10249     uts4*)
10250       lt_prog_compiler_pic='-pic'
10251       lt_prog_compiler_static='-Bstatic'
10252       ;;
10253
10254     *)
10255       lt_prog_compiler_can_build_shared=no
10256       ;;
10257     esac
10258   fi
10259
10260 case $host_os in
10261   # For platforms which do not support PIC, -DPIC is meaningless:
10262   *djgpp*)
10263     lt_prog_compiler_pic=
10264     ;;
10265   *)
10266     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10267     ;;
10268 esac
10269
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10271 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10272 if ${lt_cv_prog_compiler_pic+:} false; then :
10273   $as_echo_n "(cached) " >&6
10274 else
10275   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10276 fi
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10278 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10279 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10280
10281 #
10282 # Check to make sure the PIC flag actually works.
10283 #
10284 if test -n "$lt_prog_compiler_pic"; then
10285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10286 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10287 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10288   $as_echo_n "(cached) " >&6
10289 else
10290   lt_cv_prog_compiler_pic_works=no
10291    ac_outfile=conftest.$ac_objext
10292    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10293    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10294    # Insert the option either (1) after the last *FLAGS variable, or
10295    # (2) before a word containing "conftest.", or (3) at the end.
10296    # Note that $ac_compile itself does not contain backslashes and begins
10297    # with a dollar sign (not a hyphen), so the echo should work correctly.
10298    # The option is referenced via a variable to avoid confusing sed.
10299    lt_compile=`echo "$ac_compile" | $SED \
10300    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10301    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10302    -e 's:$: $lt_compiler_flag:'`
10303    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10304    (eval "$lt_compile" 2>conftest.err)
10305    ac_status=$?
10306    cat conftest.err >&5
10307    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308    if (exit $ac_status) && test -s "$ac_outfile"; then
10309      # The compiler can only warn and ignore the option if not recognized
10310      # So say no if there are warnings other than the usual output.
10311      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10312      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10313      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10314        lt_cv_prog_compiler_pic_works=yes
10315      fi
10316    fi
10317    $RM conftest*
10318
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10321 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10322
10323 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10324     case $lt_prog_compiler_pic in
10325      "" | " "*) ;;
10326      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10327      esac
10328 else
10329     lt_prog_compiler_pic=
10330      lt_prog_compiler_can_build_shared=no
10331 fi
10332
10333 fi
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345 #
10346 # Check to make sure the static flag actually works.
10347 #
10348 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10350 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10351 if ${lt_cv_prog_compiler_static_works+:} false; then :
10352   $as_echo_n "(cached) " >&6
10353 else
10354   lt_cv_prog_compiler_static_works=no
10355    save_LDFLAGS="$LDFLAGS"
10356    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10357    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10358    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10359      # The linker can only warn and ignore the option if not recognized
10360      # So say no if there are warnings
10361      if test -s conftest.err; then
10362        # Append any errors to the config.log.
10363        cat conftest.err 1>&5
10364        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10365        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10366        if diff conftest.exp conftest.er2 >/dev/null; then
10367          lt_cv_prog_compiler_static_works=yes
10368        fi
10369      else
10370        lt_cv_prog_compiler_static_works=yes
10371      fi
10372    fi
10373    $RM -r conftest*
10374    LDFLAGS="$save_LDFLAGS"
10375
10376 fi
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10378 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10379
10380 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10381     :
10382 else
10383     lt_prog_compiler_static=
10384 fi
10385
10386
10387
10388
10389
10390
10391
10392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10393 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10394 if ${lt_cv_prog_compiler_c_o+:} false; then :
10395   $as_echo_n "(cached) " >&6
10396 else
10397   lt_cv_prog_compiler_c_o=no
10398    $RM -r conftest 2>/dev/null
10399    mkdir conftest
10400    cd conftest
10401    mkdir out
10402    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10403
10404    lt_compiler_flag="-o out/conftest2.$ac_objext"
10405    # Insert the option either (1) after the last *FLAGS variable, or
10406    # (2) before a word containing "conftest.", or (3) at the end.
10407    # Note that $ac_compile itself does not contain backslashes and begins
10408    # with a dollar sign (not a hyphen), so the echo should work correctly.
10409    lt_compile=`echo "$ac_compile" | $SED \
10410    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10411    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10412    -e 's:$: $lt_compiler_flag:'`
10413    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10414    (eval "$lt_compile" 2>out/conftest.err)
10415    ac_status=$?
10416    cat out/conftest.err >&5
10417    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10419    then
10420      # The compiler can only warn and ignore the option if not recognized
10421      # So say no if there are warnings
10422      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10423      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10424      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10425        lt_cv_prog_compiler_c_o=yes
10426      fi
10427    fi
10428    chmod u+w . 2>&5
10429    $RM conftest*
10430    # SGI C++ compiler will create directory out/ii_files/ for
10431    # template instantiation
10432    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10433    $RM out/* && rmdir out
10434    cd ..
10435    $RM -r conftest
10436    $RM conftest*
10437
10438 fi
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10440 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10441
10442
10443
10444
10445
10446
10447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10448 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10449 if ${lt_cv_prog_compiler_c_o+:} false; then :
10450   $as_echo_n "(cached) " >&6
10451 else
10452   lt_cv_prog_compiler_c_o=no
10453    $RM -r conftest 2>/dev/null
10454    mkdir conftest
10455    cd conftest
10456    mkdir out
10457    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10458
10459    lt_compiler_flag="-o out/conftest2.$ac_objext"
10460    # Insert the option either (1) after the last *FLAGS variable, or
10461    # (2) before a word containing "conftest.", or (3) at the end.
10462    # Note that $ac_compile itself does not contain backslashes and begins
10463    # with a dollar sign (not a hyphen), so the echo should work correctly.
10464    lt_compile=`echo "$ac_compile" | $SED \
10465    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10466    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10467    -e 's:$: $lt_compiler_flag:'`
10468    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10469    (eval "$lt_compile" 2>out/conftest.err)
10470    ac_status=$?
10471    cat out/conftest.err >&5
10472    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10474    then
10475      # The compiler can only warn and ignore the option if not recognized
10476      # So say no if there are warnings
10477      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10478      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10479      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10480        lt_cv_prog_compiler_c_o=yes
10481      fi
10482    fi
10483    chmod u+w . 2>&5
10484    $RM conftest*
10485    # SGI C++ compiler will create directory out/ii_files/ for
10486    # template instantiation
10487    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10488    $RM out/* && rmdir out
10489    cd ..
10490    $RM -r conftest
10491    $RM conftest*
10492
10493 fi
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10495 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10496
10497
10498
10499
10500 hard_links="nottested"
10501 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10502   # do not overwrite the value of need_locks provided by the user
10503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10504 $as_echo_n "checking if we can lock with hard links... " >&6; }
10505   hard_links=yes
10506   $RM conftest*
10507   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10508   touch conftest.a
10509   ln conftest.a conftest.b 2>&5 || hard_links=no
10510   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10512 $as_echo "$hard_links" >&6; }
10513   if test "$hard_links" = no; then
10514     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10515 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10516     need_locks=warn
10517   fi
10518 else
10519   need_locks=no
10520 fi
10521
10522
10523
10524
10525
10526
10527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10528 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10529
10530   runpath_var=
10531   allow_undefined_flag=
10532   always_export_symbols=no
10533   archive_cmds=
10534   archive_expsym_cmds=
10535   compiler_needs_object=no
10536   enable_shared_with_static_runtimes=no
10537   export_dynamic_flag_spec=
10538   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10539   hardcode_automatic=no
10540   hardcode_direct=no
10541   hardcode_direct_absolute=no
10542   hardcode_libdir_flag_spec=
10543   hardcode_libdir_flag_spec_ld=
10544   hardcode_libdir_separator=
10545   hardcode_minus_L=no
10546   hardcode_shlibpath_var=unsupported
10547   inherit_rpath=no
10548   link_all_deplibs=unknown
10549   module_cmds=
10550   module_expsym_cmds=
10551   old_archive_from_new_cmds=
10552   old_archive_from_expsyms_cmds=
10553   thread_safe_flag_spec=
10554   whole_archive_flag_spec=
10555   # include_expsyms should be a list of space-separated symbols to be *always*
10556   # included in the symbol list
10557   include_expsyms=
10558   # exclude_expsyms can be an extended regexp of symbols to exclude
10559   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10560   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10561   # as well as any symbol that contains `d'.
10562   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10563   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10564   # platforms (ab)use it in PIC code, but their linkers get confused if
10565   # the symbol is explicitly referenced.  Since portable code cannot
10566   # rely on this symbol name, it's probably fine to never include it in
10567   # preloaded symbol tables.
10568   # Exclude shared library initialization/finalization symbols.
10569   extract_expsyms_cmds=
10570
10571   case $host_os in
10572   cygwin* | mingw* | pw32* | cegcc*)
10573     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10574     # When not using gcc, we currently assume that we are using
10575     # Microsoft Visual C++.
10576     if test "$GCC" != yes; then
10577       with_gnu_ld=no
10578     fi
10579     ;;
10580   interix*)
10581     # we just hope/assume this is gcc and not c89 (= MSVC++)
10582     with_gnu_ld=yes
10583     ;;
10584   openbsd*)
10585     with_gnu_ld=no
10586     ;;
10587   esac
10588
10589   ld_shlibs=yes
10590
10591   # On some targets, GNU ld is compatible enough with the native linker
10592   # that we're better off using the native interface for both.
10593   lt_use_gnu_ld_interface=no
10594   if test "$with_gnu_ld" = yes; then
10595     case $host_os in
10596       aix*)
10597         # The AIX port of GNU ld has always aspired to compatibility
10598         # with the native linker.  However, as the warning in the GNU ld
10599         # block says, versions before 2.19.5* couldn't really create working
10600         # shared libraries, regardless of the interface used.
10601         case `$LD -v 2>&1` in
10602           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10603           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10604           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10605           *)
10606             lt_use_gnu_ld_interface=yes
10607             ;;
10608         esac
10609         ;;
10610       *)
10611         lt_use_gnu_ld_interface=yes
10612         ;;
10613     esac
10614   fi
10615
10616   if test "$lt_use_gnu_ld_interface" = yes; then
10617     # If archive_cmds runs LD, not CC, wlarc should be empty
10618     wlarc='${wl}'
10619
10620     # Set some defaults for GNU ld with shared library support. These
10621     # are reset later if shared libraries are not supported. Putting them
10622     # here allows them to be overridden if necessary.
10623     runpath_var=LD_RUN_PATH
10624     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10625     export_dynamic_flag_spec='${wl}--export-dynamic'
10626     # ancient GNU ld didn't support --whole-archive et. al.
10627     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10628       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10629     else
10630       whole_archive_flag_spec=
10631     fi
10632     supports_anon_versioning=no
10633     case `$LD -v 2>&1` in
10634       *GNU\ gold*) supports_anon_versioning=yes ;;
10635       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10636       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10637       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10638       *\ 2.11.*) ;; # other 2.11 versions
10639       *) supports_anon_versioning=yes ;;
10640     esac
10641
10642     # See if GNU ld supports shared libraries.
10643     case $host_os in
10644     aix[3-9]*)
10645       # On AIX/PPC, the GNU linker is very broken
10646       if test "$host_cpu" != ia64; then
10647         ld_shlibs=no
10648         cat <<_LT_EOF 1>&2
10649
10650 *** Warning: the GNU linker, at least up to release 2.19, is reported
10651 *** to be unable to reliably create shared libraries on AIX.
10652 *** Therefore, libtool is disabling shared libraries support.  If you
10653 *** really care for shared libraries, you may want to install binutils
10654 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10655 *** You will then need to restart the configuration process.
10656
10657 _LT_EOF
10658       fi
10659       ;;
10660
10661     amigaos*)
10662       case $host_cpu in
10663       powerpc)
10664             # see comment about AmigaOS4 .so support
10665             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10666             archive_expsym_cmds=''
10667         ;;
10668       m68k)
10669             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)'
10670             hardcode_libdir_flag_spec='-L$libdir'
10671             hardcode_minus_L=yes
10672         ;;
10673       esac
10674       ;;
10675
10676     beos*)
10677       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10678         allow_undefined_flag=unsupported
10679         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10680         # support --undefined.  This deserves some investigation.  FIXME
10681         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10682       else
10683         ld_shlibs=no
10684       fi
10685       ;;
10686
10687     cygwin* | mingw* | pw32* | cegcc*)
10688       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10689       # as there is no search path for DLLs.
10690       hardcode_libdir_flag_spec='-L$libdir'
10691       export_dynamic_flag_spec='${wl}--export-all-symbols'
10692       allow_undefined_flag=unsupported
10693       always_export_symbols=no
10694       enable_shared_with_static_runtimes=yes
10695       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10696       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10697
10698       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10699         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10700         # If the export-symbols file already is a .def file (1st line
10701         # is EXPORTS), use it as is; otherwise, prepend...
10702         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10703           cp $export_symbols $output_objdir/$soname.def;
10704         else
10705           echo EXPORTS > $output_objdir/$soname.def;
10706           cat $export_symbols >> $output_objdir/$soname.def;
10707         fi~
10708         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10709       else
10710         ld_shlibs=no
10711       fi
10712       ;;
10713
10714     haiku*)
10715       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10716       link_all_deplibs=yes
10717       ;;
10718
10719     interix[3-9]*)
10720       hardcode_direct=no
10721       hardcode_shlibpath_var=no
10722       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10723       export_dynamic_flag_spec='${wl}-E'
10724       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10725       # Instead, shared libraries are loaded at an image base (0x10000000 by
10726       # default) and relocated if they conflict, which is a slow very memory
10727       # consuming and fragmenting process.  To avoid this, we pick a random,
10728       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10729       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10730       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10731       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'
10732       ;;
10733
10734     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10735       tmp_diet=no
10736       if test "$host_os" = linux-dietlibc; then
10737         case $cc_basename in
10738           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10739         esac
10740       fi
10741       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10742          && test "$tmp_diet" = no
10743       then
10744         tmp_addflag=' $pic_flag'
10745         tmp_sharedflag='-shared'
10746         case $cc_basename,$host_cpu in
10747         pgcc*)                          # Portland Group C compiler
10748           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10749           tmp_addflag=' $pic_flag'
10750           ;;
10751         pgf77* | pgf90* | pgf95* | pgfortran*)
10752                                         # Portland Group f77 and f90 compilers
10753           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10754           tmp_addflag=' $pic_flag -Mnomain' ;;
10755         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10756           tmp_addflag=' -i_dynamic' ;;
10757         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10758           tmp_addflag=' -i_dynamic -nofor_main' ;;
10759         ifc* | ifort*)                  # Intel Fortran compiler
10760           tmp_addflag=' -nofor_main' ;;
10761         lf95*)                          # Lahey Fortran 8.1
10762           whole_archive_flag_spec=
10763           tmp_sharedflag='--shared' ;;
10764         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10765           tmp_sharedflag='-qmkshrobj'
10766           tmp_addflag= ;;
10767         nvcc*)  # Cuda Compiler Driver 2.2
10768           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10769           compiler_needs_object=yes
10770           ;;
10771         esac
10772         case `$CC -V 2>&1 | sed 5q` in
10773         *Sun\ C*)                       # Sun C 5.9
10774           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10775           compiler_needs_object=yes
10776           tmp_sharedflag='-G' ;;
10777         *Sun\ F*)                       # Sun Fortran 8.3
10778           tmp_sharedflag='-G' ;;
10779         esac
10780         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10781
10782         if test "x$supports_anon_versioning" = xyes; then
10783           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10784             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10785             echo "local: *; };" >> $output_objdir/$libname.ver~
10786             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10787         fi
10788
10789         case $cc_basename in
10790         xlf* | bgf* | bgxlf* | mpixlf*)
10791           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10792           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10793           hardcode_libdir_flag_spec=
10794           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10795           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10796           if test "x$supports_anon_versioning" = xyes; then
10797             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10798               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10799               echo "local: *; };" >> $output_objdir/$libname.ver~
10800               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10801           fi
10802           ;;
10803         esac
10804       else
10805         ld_shlibs=no
10806       fi
10807       ;;
10808
10809     netbsd*)
10810       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10811         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10812         wlarc=
10813       else
10814         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10815         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10816       fi
10817       ;;
10818
10819     solaris*)
10820       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10821         ld_shlibs=no
10822         cat <<_LT_EOF 1>&2
10823
10824 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10825 *** create shared libraries on Solaris systems.  Therefore, libtool
10826 *** is disabling shared libraries support.  We urge you to upgrade GNU
10827 *** binutils to release 2.9.1 or newer.  Another option is to modify
10828 *** your PATH or compiler configuration so that the native linker is
10829 *** used, and then restart.
10830
10831 _LT_EOF
10832       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10833         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10834         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10835       else
10836         ld_shlibs=no
10837       fi
10838       ;;
10839
10840     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10841       case `$LD -v 2>&1` in
10842         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10843         ld_shlibs=no
10844         cat <<_LT_EOF 1>&2
10845
10846 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10847 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10848 *** is disabling shared libraries support.  We urge you to upgrade GNU
10849 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10850 *** your PATH or compiler configuration so that the native linker is
10851 *** used, and then restart.
10852
10853 _LT_EOF
10854         ;;
10855         *)
10856           # For security reasons, it is highly recommended that you always
10857           # use absolute paths for naming shared libraries, and exclude the
10858           # DT_RUNPATH tag from executables and libraries.  But doing so
10859           # requires that you compile everything twice, which is a pain.
10860           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10861             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10862             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10863             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10864           else
10865             ld_shlibs=no
10866           fi
10867         ;;
10868       esac
10869       ;;
10870
10871     sunos4*)
10872       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10873       wlarc=
10874       hardcode_direct=yes
10875       hardcode_shlibpath_var=no
10876       ;;
10877
10878     *)
10879       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10880         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10881         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10882       else
10883         ld_shlibs=no
10884       fi
10885       ;;
10886     esac
10887
10888     if test "$ld_shlibs" = no; then
10889       runpath_var=
10890       hardcode_libdir_flag_spec=
10891       export_dynamic_flag_spec=
10892       whole_archive_flag_spec=
10893     fi
10894   else
10895     # PORTME fill in a description of your system's linker (not GNU ld)
10896     case $host_os in
10897     aix3*)
10898       allow_undefined_flag=unsupported
10899       always_export_symbols=yes
10900       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'
10901       # Note: this linker hardcodes the directories in LIBPATH if there
10902       # are no directories specified by -L.
10903       hardcode_minus_L=yes
10904       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10905         # Neither direct hardcoding nor static linking is supported with a
10906         # broken collect2.
10907         hardcode_direct=unsupported
10908       fi
10909       ;;
10910
10911     aix[4-9]*)
10912       if test "$host_cpu" = ia64; then
10913         # On IA64, the linker does run time linking by default, so we don't
10914         # have to do anything special.
10915         aix_use_runtimelinking=no
10916         exp_sym_flag='-Bexport'
10917         no_entry_flag=""
10918       else
10919         # If we're using GNU nm, then we don't want the "-C" option.
10920         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10921         # Also, AIX nm treats weak defined symbols like other global
10922         # defined symbols, whereas GNU nm marks them as "W".
10923         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10924           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10925         else
10926           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'
10927         fi
10928         aix_use_runtimelinking=no
10929
10930         # Test if we are trying to use run time linking or normal
10931         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10932         # need to do runtime linking.
10933         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10934           for ld_flag in $LDFLAGS; do
10935           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10936             aix_use_runtimelinking=yes
10937             break
10938           fi
10939           done
10940           ;;
10941         esac
10942
10943         exp_sym_flag='-bexport'
10944         no_entry_flag='-bnoentry'
10945       fi
10946
10947       # When large executables or shared objects are built, AIX ld can
10948       # have problems creating the table of contents.  If linking a library
10949       # or program results in "error TOC overflow" add -mminimal-toc to
10950       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10951       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10952
10953       archive_cmds=''
10954       hardcode_direct=yes
10955       hardcode_direct_absolute=yes
10956       hardcode_libdir_separator=':'
10957       link_all_deplibs=yes
10958       file_list_spec='${wl}-f,'
10959
10960       if test "$GCC" = yes; then
10961         case $host_os in aix4.[012]|aix4.[012].*)
10962         # We only want to do this on AIX 4.2 and lower, the check
10963         # below for broken collect2 doesn't work under 4.3+
10964           collect2name=`${CC} -print-prog-name=collect2`
10965           if test -f "$collect2name" &&
10966            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10967           then
10968           # We have reworked collect2
10969           :
10970           else
10971           # We have old collect2
10972           hardcode_direct=unsupported
10973           # It fails to find uninstalled libraries when the uninstalled
10974           # path is not listed in the libpath.  Setting hardcode_minus_L
10975           # to unsupported forces relinking
10976           hardcode_minus_L=yes
10977           hardcode_libdir_flag_spec='-L$libdir'
10978           hardcode_libdir_separator=
10979           fi
10980           ;;
10981         esac
10982         shared_flag='-shared'
10983         if test "$aix_use_runtimelinking" = yes; then
10984           shared_flag="$shared_flag "'${wl}-G'
10985         fi
10986       else
10987         # not using gcc
10988         if test "$host_cpu" = ia64; then
10989         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10990         # chokes on -Wl,-G. The following line is correct:
10991           shared_flag='-G'
10992         else
10993           if test "$aix_use_runtimelinking" = yes; then
10994             shared_flag='${wl}-G'
10995           else
10996             shared_flag='${wl}-bM:SRE'
10997           fi
10998         fi
10999       fi
11000
11001       export_dynamic_flag_spec='${wl}-bexpall'
11002       # It seems that -bexpall does not export symbols beginning with
11003       # underscore (_), so it is better to generate a list of symbols to export.
11004       always_export_symbols=yes
11005       if test "$aix_use_runtimelinking" = yes; then
11006         # Warning - without using the other runtime loading flags (-brtl),
11007         # -berok will link without error, but may produce a broken library.
11008         allow_undefined_flag='-berok'
11009         # Determine the default libpath from the value encoded in an
11010         # empty executable.
11011         if test "${lt_cv_aix_libpath+set}" = set; then
11012   aix_libpath=$lt_cv_aix_libpath
11013 else
11014   if ${lt_cv_aix_libpath_+:} false; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h.  */
11019
11020 int
11021 main ()
11022 {
11023
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 if ac_fn_c_try_link "$LINENO"; then :
11029
11030   lt_aix_libpath_sed='
11031       /Import File Strings/,/^$/ {
11032           /^0/ {
11033               s/^0  *\([^ ]*\) *$/\1/
11034               p
11035           }
11036       }'
11037   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11038   # Check for a 64-bit object if we didn't find anything.
11039   if test -z "$lt_cv_aix_libpath_"; then
11040     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11041   fi
11042 fi
11043 rm -f core conftest.err conftest.$ac_objext \
11044     conftest$ac_exeext conftest.$ac_ext
11045   if test -z "$lt_cv_aix_libpath_"; then
11046     lt_cv_aix_libpath_="/usr/lib:/lib"
11047   fi
11048
11049 fi
11050
11051   aix_libpath=$lt_cv_aix_libpath_
11052 fi
11053
11054         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11055         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11056       else
11057         if test "$host_cpu" = ia64; then
11058           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11059           allow_undefined_flag="-z nodefs"
11060           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"
11061         else
11062          # Determine the default libpath from the value encoded in an
11063          # empty executable.
11064          if test "${lt_cv_aix_libpath+set}" = set; then
11065   aix_libpath=$lt_cv_aix_libpath
11066 else
11067   if ${lt_cv_aix_libpath_+:} false; then :
11068   $as_echo_n "(cached) " >&6
11069 else
11070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h.  */
11072
11073 int
11074 main ()
11075 {
11076
11077   ;
11078   return 0;
11079 }
11080 _ACEOF
11081 if ac_fn_c_try_link "$LINENO"; then :
11082
11083   lt_aix_libpath_sed='
11084       /Import File Strings/,/^$/ {
11085           /^0/ {
11086               s/^0  *\([^ ]*\) *$/\1/
11087               p
11088           }
11089       }'
11090   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11091   # Check for a 64-bit object if we didn't find anything.
11092   if test -z "$lt_cv_aix_libpath_"; then
11093     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11094   fi
11095 fi
11096 rm -f core conftest.err conftest.$ac_objext \
11097     conftest$ac_exeext conftest.$ac_ext
11098   if test -z "$lt_cv_aix_libpath_"; then
11099     lt_cv_aix_libpath_="/usr/lib:/lib"
11100   fi
11101
11102 fi
11103
11104   aix_libpath=$lt_cv_aix_libpath_
11105 fi
11106
11107          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11108           # Warning - without using the other run time loading flags,
11109           # -berok will link without error, but may produce a broken library.
11110           no_undefined_flag=' ${wl}-bernotok'
11111           allow_undefined_flag=' ${wl}-berok'
11112           if test "$with_gnu_ld" = yes; then
11113             # We only use this code for GNU lds that support --whole-archive.
11114             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11115           else
11116             # Exported symbols can be pulled into shared objects from archives
11117             whole_archive_flag_spec='$convenience'
11118           fi
11119           archive_cmds_need_lc=yes
11120           # This is similar to how AIX traditionally builds its shared libraries.
11121           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'
11122         fi
11123       fi
11124       ;;
11125
11126     amigaos*)
11127       case $host_cpu in
11128       powerpc)
11129             # see comment about AmigaOS4 .so support
11130             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11131             archive_expsym_cmds=''
11132         ;;
11133       m68k)
11134             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)'
11135             hardcode_libdir_flag_spec='-L$libdir'
11136             hardcode_minus_L=yes
11137         ;;
11138       esac
11139       ;;
11140
11141     bsdi[45]*)
11142       export_dynamic_flag_spec=-rdynamic
11143       ;;
11144
11145     cygwin* | mingw* | pw32* | cegcc*)
11146       # When not using gcc, we currently assume that we are using
11147       # Microsoft Visual C++.
11148       # hardcode_libdir_flag_spec is actually meaningless, as there is
11149       # no search path for DLLs.
11150       case $cc_basename in
11151       cl*)
11152         # Native MSVC
11153         hardcode_libdir_flag_spec=' '
11154         allow_undefined_flag=unsupported
11155         always_export_symbols=yes
11156         file_list_spec='@'
11157         # Tell ltmain to make .lib files, not .a files.
11158         libext=lib
11159         # Tell ltmain to make .dll files, not .so files.
11160         shrext_cmds=".dll"
11161         # FIXME: Setting linknames here is a bad hack.
11162         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11163         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11164             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11165           else
11166             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11167           fi~
11168           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11169           linknames='
11170         # The linker will not automatically build a static lib if we build a DLL.
11171         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11172         enable_shared_with_static_runtimes=yes
11173         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11174         # Don't use ranlib
11175         old_postinstall_cmds='chmod 644 $oldlib'
11176         postlink_cmds='lt_outputfile="@OUTPUT@"~
11177           lt_tool_outputfile="@TOOL_OUTPUT@"~
11178           case $lt_outputfile in
11179             *.exe|*.EXE) ;;
11180             *)
11181               lt_outputfile="$lt_outputfile.exe"
11182               lt_tool_outputfile="$lt_tool_outputfile.exe"
11183               ;;
11184           esac~
11185           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11186             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11187             $RM "$lt_outputfile.manifest";
11188           fi'
11189         ;;
11190       *)
11191         # Assume MSVC wrapper
11192         hardcode_libdir_flag_spec=' '
11193         allow_undefined_flag=unsupported
11194         # Tell ltmain to make .lib files, not .a files.
11195         libext=lib
11196         # Tell ltmain to make .dll files, not .so files.
11197         shrext_cmds=".dll"
11198         # FIXME: Setting linknames here is a bad hack.
11199         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11200         # The linker will automatically build a .lib file if we build a DLL.
11201         old_archive_from_new_cmds='true'
11202         # FIXME: Should let the user specify the lib program.
11203         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11204         enable_shared_with_static_runtimes=yes
11205         ;;
11206       esac
11207       ;;
11208
11209     darwin* | rhapsody*)
11210
11211
11212   archive_cmds_need_lc=no
11213   hardcode_direct=no
11214   hardcode_automatic=yes
11215   hardcode_shlibpath_var=unsupported
11216   if test "$lt_cv_ld_force_load" = "yes"; then
11217     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11218   else
11219     whole_archive_flag_spec=''
11220   fi
11221   link_all_deplibs=yes
11222   allow_undefined_flag="$_lt_dar_allow_undefined"
11223   case $cc_basename in
11224      ifort*) _lt_dar_can_shared=yes ;;
11225      *) _lt_dar_can_shared=$GCC ;;
11226   esac
11227   if test "$_lt_dar_can_shared" = "yes"; then
11228     output_verbose_link_cmd=func_echo_all
11229     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11230     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11231     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}"
11232     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}"
11233
11234   else
11235   ld_shlibs=no
11236   fi
11237
11238       ;;
11239
11240     dgux*)
11241       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11242       hardcode_libdir_flag_spec='-L$libdir'
11243       hardcode_shlibpath_var=no
11244       ;;
11245
11246     freebsd1*)
11247       ld_shlibs=no
11248       ;;
11249
11250     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11251     # support.  Future versions do this automatically, but an explicit c++rt0.o
11252     # does not break anything, and helps significantly (at the cost of a little
11253     # extra space).
11254     freebsd2.2*)
11255       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11256       hardcode_libdir_flag_spec='-R$libdir'
11257       hardcode_direct=yes
11258       hardcode_shlibpath_var=no
11259       ;;
11260
11261     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11262     freebsd2*)
11263       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11264       hardcode_direct=yes
11265       hardcode_minus_L=yes
11266       hardcode_shlibpath_var=no
11267       ;;
11268
11269     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11270     freebsd* | dragonfly*)
11271       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11272       hardcode_libdir_flag_spec='-R$libdir'
11273       hardcode_direct=yes
11274       hardcode_shlibpath_var=no
11275       ;;
11276
11277     hpux9*)
11278       if test "$GCC" = yes; then
11279         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11280       else
11281         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'
11282       fi
11283       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11284       hardcode_libdir_separator=:
11285       hardcode_direct=yes
11286
11287       # hardcode_minus_L: Not really in the search PATH,
11288       # but as the default location of the library.
11289       hardcode_minus_L=yes
11290       export_dynamic_flag_spec='${wl}-E'
11291       ;;
11292
11293     hpux10*)
11294       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11295         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11296       else
11297         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11298       fi
11299       if test "$with_gnu_ld" = no; then
11300         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11301         hardcode_libdir_flag_spec_ld='+b $libdir'
11302         hardcode_libdir_separator=:
11303         hardcode_direct=yes
11304         hardcode_direct_absolute=yes
11305         export_dynamic_flag_spec='${wl}-E'
11306         # hardcode_minus_L: Not really in the search PATH,
11307         # but as the default location of the library.
11308         hardcode_minus_L=yes
11309       fi
11310       ;;
11311
11312     hpux11*)
11313       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11314         case $host_cpu in
11315         hppa*64*)
11316           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11317           ;;
11318         ia64*)
11319           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11320           ;;
11321         *)
11322           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11323           ;;
11324         esac
11325       else
11326         case $host_cpu in
11327         hppa*64*)
11328           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11329           ;;
11330         ia64*)
11331           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11332           ;;
11333         *)
11334
11335           # Older versions of the 11.00 compiler do not understand -b yet
11336           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11337           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11338 $as_echo_n "checking if $CC understands -b... " >&6; }
11339 if ${lt_cv_prog_compiler__b+:} false; then :
11340   $as_echo_n "(cached) " >&6
11341 else
11342   lt_cv_prog_compiler__b=no
11343    save_LDFLAGS="$LDFLAGS"
11344    LDFLAGS="$LDFLAGS -b"
11345    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11346    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11347      # The linker can only warn and ignore the option if not recognized
11348      # So say no if there are warnings
11349      if test -s conftest.err; then
11350        # Append any errors to the config.log.
11351        cat conftest.err 1>&5
11352        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11353        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11354        if diff conftest.exp conftest.er2 >/dev/null; then
11355          lt_cv_prog_compiler__b=yes
11356        fi
11357      else
11358        lt_cv_prog_compiler__b=yes
11359      fi
11360    fi
11361    $RM -r conftest*
11362    LDFLAGS="$save_LDFLAGS"
11363
11364 fi
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11366 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11367
11368 if test x"$lt_cv_prog_compiler__b" = xyes; then
11369     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11370 else
11371     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11372 fi
11373
11374           ;;
11375         esac
11376       fi
11377       if test "$with_gnu_ld" = no; then
11378         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11379         hardcode_libdir_separator=:
11380
11381         case $host_cpu in
11382         hppa*64*|ia64*)
11383           hardcode_direct=no
11384           hardcode_shlibpath_var=no
11385           ;;
11386         *)
11387           hardcode_direct=yes
11388           hardcode_direct_absolute=yes
11389           export_dynamic_flag_spec='${wl}-E'
11390
11391           # hardcode_minus_L: Not really in the search PATH,
11392           # but as the default location of the library.
11393           hardcode_minus_L=yes
11394           ;;
11395         esac
11396       fi
11397       ;;
11398
11399     irix5* | irix6* | nonstopux*)
11400       if test "$GCC" = yes; then
11401         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11402         # Try to use the -exported_symbol ld option, if it does not
11403         # work, assume that -exports_file does not work either and
11404         # implicitly export all symbols.
11405         # This should be the same for all languages, so no per-tag cache variable.
11406         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11407 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11408 if ${lt_cv_irix_exported_symbol+:} false; then :
11409   $as_echo_n "(cached) " >&6
11410 else
11411   save_LDFLAGS="$LDFLAGS"
11412            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11413            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h.  */
11415 int foo (void) { return 0; }
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418   lt_cv_irix_exported_symbol=yes
11419 else
11420   lt_cv_irix_exported_symbol=no
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext \
11423     conftest$ac_exeext conftest.$ac_ext
11424            LDFLAGS="$save_LDFLAGS"
11425 fi
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11427 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11428         if test "$lt_cv_irix_exported_symbol" = yes; then
11429           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11430         fi
11431       else
11432         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11433         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11434       fi
11435       archive_cmds_need_lc='no'
11436       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11437       hardcode_libdir_separator=:
11438       inherit_rpath=yes
11439       link_all_deplibs=yes
11440       ;;
11441
11442     netbsd*)
11443       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11444         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11445       else
11446         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11447       fi
11448       hardcode_libdir_flag_spec='-R$libdir'
11449       hardcode_direct=yes
11450       hardcode_shlibpath_var=no
11451       ;;
11452
11453     newsos6)
11454       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11455       hardcode_direct=yes
11456       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11457       hardcode_libdir_separator=:
11458       hardcode_shlibpath_var=no
11459       ;;
11460
11461     *nto* | *qnx*)
11462       ;;
11463
11464     openbsd*)
11465       if test -f /usr/libexec/ld.so; then
11466         hardcode_direct=yes
11467         hardcode_shlibpath_var=no
11468         hardcode_direct_absolute=yes
11469         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11470           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11471           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11472           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11473           export_dynamic_flag_spec='${wl}-E'
11474         else
11475           case $host_os in
11476            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11477              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11478              hardcode_libdir_flag_spec='-R$libdir'
11479              ;;
11480            *)
11481              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11482              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11483              ;;
11484           esac
11485         fi
11486       else
11487         ld_shlibs=no
11488       fi
11489       ;;
11490
11491     os2*)
11492       hardcode_libdir_flag_spec='-L$libdir'
11493       hardcode_minus_L=yes
11494       allow_undefined_flag=unsupported
11495       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'
11496       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11497       ;;
11498
11499     osf3*)
11500       if test "$GCC" = yes; then
11501         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11502         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11503       else
11504         allow_undefined_flag=' -expect_unresolved \*'
11505         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11506       fi
11507       archive_cmds_need_lc='no'
11508       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11509       hardcode_libdir_separator=:
11510       ;;
11511
11512     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11513       if test "$GCC" = yes; then
11514         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11515         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11516         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11517       else
11518         allow_undefined_flag=' -expect_unresolved \*'
11519         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11520         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11521         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11522
11523         # Both c and cxx compiler support -rpath directly
11524         hardcode_libdir_flag_spec='-rpath $libdir'
11525       fi
11526       archive_cmds_need_lc='no'
11527       hardcode_libdir_separator=:
11528       ;;
11529
11530     solaris*)
11531       no_undefined_flag=' -z defs'
11532       if test "$GCC" = yes; then
11533         wlarc='${wl}'
11534         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11535         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11536           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11537       else
11538         case `$CC -V 2>&1` in
11539         *"Compilers 5.0"*)
11540           wlarc=''
11541           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11542           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11543           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11544           ;;
11545         *)
11546           wlarc='${wl}'
11547           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11548           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11549           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11550           ;;
11551         esac
11552       fi
11553       hardcode_libdir_flag_spec='-R$libdir'
11554       hardcode_shlibpath_var=no
11555       case $host_os in
11556       solaris2.[0-5] | solaris2.[0-5].*) ;;
11557       *)
11558         # The compiler driver will combine and reorder linker options,
11559         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11560         # but is careful enough not to reorder.
11561         # Supported since Solaris 2.6 (maybe 2.5.1?)
11562         if test "$GCC" = yes; then
11563           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11564         else
11565           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11566         fi
11567         ;;
11568       esac
11569       link_all_deplibs=yes
11570       ;;
11571
11572     sunos4*)
11573       if test "x$host_vendor" = xsequent; then
11574         # Use $CC to link under sequent, because it throws in some extra .o
11575         # files that make .init and .fini sections work.
11576         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11577       else
11578         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11579       fi
11580       hardcode_libdir_flag_spec='-L$libdir'
11581       hardcode_direct=yes
11582       hardcode_minus_L=yes
11583       hardcode_shlibpath_var=no
11584       ;;
11585
11586     sysv4)
11587       case $host_vendor in
11588         sni)
11589           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11590           hardcode_direct=yes # is this really true???
11591         ;;
11592         siemens)
11593           ## LD is ld it makes a PLAMLIB
11594           ## CC just makes a GrossModule.
11595           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11596           reload_cmds='$CC -r -o $output$reload_objs'
11597           hardcode_direct=no
11598         ;;
11599         motorola)
11600           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11601           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11602         ;;
11603       esac
11604       runpath_var='LD_RUN_PATH'
11605       hardcode_shlibpath_var=no
11606       ;;
11607
11608     sysv4.3*)
11609       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11610       hardcode_shlibpath_var=no
11611       export_dynamic_flag_spec='-Bexport'
11612       ;;
11613
11614     sysv4*MP*)
11615       if test -d /usr/nec; then
11616         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11617         hardcode_shlibpath_var=no
11618         runpath_var=LD_RUN_PATH
11619         hardcode_runpath_var=yes
11620         ld_shlibs=yes
11621       fi
11622       ;;
11623
11624     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11625       no_undefined_flag='${wl}-z,text'
11626       archive_cmds_need_lc=no
11627       hardcode_shlibpath_var=no
11628       runpath_var='LD_RUN_PATH'
11629
11630       if test "$GCC" = yes; then
11631         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11632         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11633       else
11634         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11635         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11636       fi
11637       ;;
11638
11639     sysv5* | sco3.2v5* | sco5v6*)
11640       # Note: We can NOT use -z defs as we might desire, because we do not
11641       # link with -lc, and that would cause any symbols used from libc to
11642       # always be unresolved, which means just about no library would
11643       # ever link correctly.  If we're not using GNU ld we use -z text
11644       # though, which does catch some bad symbols but isn't as heavy-handed
11645       # as -z defs.
11646       no_undefined_flag='${wl}-z,text'
11647       allow_undefined_flag='${wl}-z,nodefs'
11648       archive_cmds_need_lc=no
11649       hardcode_shlibpath_var=no
11650       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11651       hardcode_libdir_separator=':'
11652       link_all_deplibs=yes
11653       export_dynamic_flag_spec='${wl}-Bexport'
11654       runpath_var='LD_RUN_PATH'
11655
11656       if test "$GCC" = yes; then
11657         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11658         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11659       else
11660         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11661         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11662       fi
11663       ;;
11664
11665     uts4*)
11666       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11667       hardcode_libdir_flag_spec='-L$libdir'
11668       hardcode_shlibpath_var=no
11669       ;;
11670
11671     *)
11672       ld_shlibs=no
11673       ;;
11674     esac
11675
11676     if test x$host_vendor = xsni; then
11677       case $host in
11678       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11679         export_dynamic_flag_spec='${wl}-Blargedynsym'
11680         ;;
11681       esac
11682     fi
11683   fi
11684
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11686 $as_echo "$ld_shlibs" >&6; }
11687 test "$ld_shlibs" = no && can_build_shared=no
11688
11689 with_gnu_ld=$with_gnu_ld
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705 #
11706 # Do we need to explicitly link libc?
11707 #
11708 case "x$archive_cmds_need_lc" in
11709 x|xyes)
11710   # Assume -lc should be added
11711   archive_cmds_need_lc=yes
11712
11713   if test "$enable_shared" = yes && test "$GCC" = yes; then
11714     case $archive_cmds in
11715     *'~'*)
11716       # FIXME: we may have to deal with multi-command sequences.
11717       ;;
11718     '$CC '*)
11719       # Test whether the compiler implicitly links with -lc since on some
11720       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11721       # to ld, don't add -lc before -lgcc.
11722       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11723 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11724 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11725   $as_echo_n "(cached) " >&6
11726 else
11727   $RM conftest*
11728         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11729
11730         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11731   (eval $ac_compile) 2>&5
11732   ac_status=$?
11733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11734   test $ac_status = 0; } 2>conftest.err; then
11735           soname=conftest
11736           lib=conftest
11737           libobjs=conftest.$ac_objext
11738           deplibs=
11739           wl=$lt_prog_compiler_wl
11740           pic_flag=$lt_prog_compiler_pic
11741           compiler_flags=-v
11742           linker_flags=-v
11743           verstring=
11744           output_objdir=.
11745           libname=conftest
11746           lt_save_allow_undefined_flag=$allow_undefined_flag
11747           allow_undefined_flag=
11748           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11749   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11750   ac_status=$?
11751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11752   test $ac_status = 0; }
11753           then
11754             lt_cv_archive_cmds_need_lc=no
11755           else
11756             lt_cv_archive_cmds_need_lc=yes
11757           fi
11758           allow_undefined_flag=$lt_save_allow_undefined_flag
11759         else
11760           cat conftest.err 1>&5
11761         fi
11762         $RM conftest*
11763
11764 fi
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11766 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11767       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11768       ;;
11769     esac
11770   fi
11771   ;;
11772 esac
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11931 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11932
11933 if test "$GCC" = yes; then
11934   case $host_os in
11935     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11936     *) lt_awk_arg="/^libraries:/" ;;
11937   esac
11938   case $host_os in
11939     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11940     *) lt_sed_strip_eq="s,=/,/,g" ;;
11941   esac
11942   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11943   case $lt_search_path_spec in
11944   *\;*)
11945     # if the path contains ";" then we assume it to be the separator
11946     # otherwise default to the standard path separator (i.e. ":") - it is
11947     # assumed that no part of a normal pathname contains ";" but that should
11948     # okay in the real world where ";" in dirpaths is itself problematic.
11949     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11950     ;;
11951   *)
11952     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11953     ;;
11954   esac
11955   # Ok, now we have the path, separated by spaces, we can step through it
11956   # and add multilib dir if necessary.
11957   lt_tmp_lt_search_path_spec=
11958   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11959   for lt_sys_path in $lt_search_path_spec; do
11960     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11961       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11962     else
11963       test -d "$lt_sys_path" && \
11964         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11965     fi
11966   done
11967   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11968 BEGIN {RS=" "; FS="/|\n";} {
11969   lt_foo="";
11970   lt_count=0;
11971   for (lt_i = NF; lt_i > 0; lt_i--) {
11972     if ($lt_i != "" && $lt_i != ".") {
11973       if ($lt_i == "..") {
11974         lt_count++;
11975       } else {
11976         if (lt_count == 0) {
11977           lt_foo="/" $lt_i lt_foo;
11978         } else {
11979           lt_count--;
11980         }
11981       }
11982     }
11983   }
11984   if (lt_foo != "") { lt_freq[lt_foo]++; }
11985   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11986 }'`
11987   # AWK program above erroneously prepends '/' to C:/dos/paths
11988   # for these hosts.
11989   case $host_os in
11990     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11991       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11992   esac
11993   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11994 else
11995   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11996 fi
11997 library_names_spec=
11998 libname_spec='lib$name'
11999 soname_spec=
12000 shrext_cmds=".so"
12001 postinstall_cmds=
12002 postuninstall_cmds=
12003 finish_cmds=
12004 finish_eval=
12005 shlibpath_var=
12006 shlibpath_overrides_runpath=unknown
12007 version_type=none
12008 dynamic_linker="$host_os ld.so"
12009 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12010 need_lib_prefix=unknown
12011 hardcode_into_libs=no
12012
12013 # when you set need_version to no, make sure it does not cause -set_version
12014 # flags to be left without arguments
12015 need_version=unknown
12016
12017 case $host_os in
12018 aix3*)
12019   version_type=linux
12020   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12021   shlibpath_var=LIBPATH
12022
12023   # AIX 3 has no versioning support, so we append a major version to the name.
12024   soname_spec='${libname}${release}${shared_ext}$major'
12025   ;;
12026
12027 aix[4-9]*)
12028   version_type=linux
12029   need_lib_prefix=no
12030   need_version=no
12031   hardcode_into_libs=yes
12032   if test "$host_cpu" = ia64; then
12033     # AIX 5 supports IA64
12034     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12035     shlibpath_var=LD_LIBRARY_PATH
12036   else
12037     # With GCC up to 2.95.x, collect2 would create an import file
12038     # for dependence libraries.  The import file would start with
12039     # the line `#! .'.  This would cause the generated library to
12040     # depend on `.', always an invalid library.  This was fixed in
12041     # development snapshots of GCC prior to 3.0.
12042     case $host_os in
12043       aix4 | aix4.[01] | aix4.[01].*)
12044       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12045            echo ' yes '
12046            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12047         :
12048       else
12049         can_build_shared=no
12050       fi
12051       ;;
12052     esac
12053     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12054     # soname into executable. Probably we can add versioning support to
12055     # collect2, so additional links can be useful in future.
12056     if test "$aix_use_runtimelinking" = yes; then
12057       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12058       # instead of lib<name>.a to let people know that these are not
12059       # typical AIX shared libraries.
12060       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12061     else
12062       # We preserve .a as extension for shared libraries through AIX4.2
12063       # and later when we are not doing run time linking.
12064       library_names_spec='${libname}${release}.a $libname.a'
12065       soname_spec='${libname}${release}${shared_ext}$major'
12066     fi
12067     shlibpath_var=LIBPATH
12068   fi
12069   ;;
12070
12071 amigaos*)
12072   case $host_cpu in
12073   powerpc)
12074     # Since July 2007 AmigaOS4 officially supports .so libraries.
12075     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077     ;;
12078   m68k)
12079     library_names_spec='$libname.ixlibrary $libname.a'
12080     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12081     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
12082     ;;
12083   esac
12084   ;;
12085
12086 beos*)
12087   library_names_spec='${libname}${shared_ext}'
12088   dynamic_linker="$host_os ld.so"
12089   shlibpath_var=LIBRARY_PATH
12090   ;;
12091
12092 bsdi[45]*)
12093   version_type=linux
12094   need_version=no
12095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12096   soname_spec='${libname}${release}${shared_ext}$major'
12097   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12098   shlibpath_var=LD_LIBRARY_PATH
12099   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12100   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12101   # the default ld.so.conf also contains /usr/contrib/lib and
12102   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12103   # libtool to hard-code these into programs
12104   ;;
12105
12106 cygwin* | mingw* | pw32* | cegcc*)
12107   version_type=windows
12108   shrext_cmds=".dll"
12109   need_version=no
12110   need_lib_prefix=no
12111
12112   case $GCC,$cc_basename in
12113   yes,*)
12114     # gcc
12115     library_names_spec='$libname.dll.a'
12116     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12117     postinstall_cmds='base_file=`basename \${file}`~
12118       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12119       dldir=$destdir/`dirname \$dlpath`~
12120       test -d \$dldir || mkdir -p \$dldir~
12121       $install_prog $dir/$dlname \$dldir/$dlname~
12122       chmod a+x \$dldir/$dlname~
12123       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12124         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12125       fi'
12126     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12127       dlpath=$dir/\$dldll~
12128        $RM \$dlpath'
12129     shlibpath_overrides_runpath=yes
12130
12131     case $host_os in
12132     cygwin*)
12133       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12134       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12135
12136       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12137       ;;
12138     mingw* | cegcc*)
12139       # MinGW DLLs use traditional 'lib' prefix
12140       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12141       ;;
12142     pw32*)
12143       # pw32 DLLs use 'pw' prefix rather than 'lib'
12144       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12145       ;;
12146     esac
12147     dynamic_linker='Win32 ld.exe'
12148     ;;
12149
12150   *,cl*)
12151     # Native MSVC
12152     libname_spec='$name'
12153     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12154     library_names_spec='${libname}.dll.lib'
12155
12156     case $build_os in
12157     mingw*)
12158       sys_lib_search_path_spec=
12159       lt_save_ifs=$IFS
12160       IFS=';'
12161       for lt_path in $LIB
12162       do
12163         IFS=$lt_save_ifs
12164         # Let DOS variable expansion print the short 8.3 style file name.
12165         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12166         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12167       done
12168       IFS=$lt_save_ifs
12169       # Convert to MSYS style.
12170       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12171       ;;
12172     cygwin*)
12173       # Convert to unix form, then to dos form, then back to unix form
12174       # but this time dos style (no spaces!) so that the unix form looks
12175       # like /cygdrive/c/PROGRA~1:/cygdr...
12176       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12177       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12178       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12179       ;;
12180     *)
12181       sys_lib_search_path_spec="$LIB"
12182       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12183         # It is most probably a Windows format PATH.
12184         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12185       else
12186         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12187       fi
12188       # FIXME: find the short name or the path components, as spaces are
12189       # common. (e.g. "Program Files" -> "PROGRA~1")
12190       ;;
12191     esac
12192
12193     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12194     postinstall_cmds='base_file=`basename \${file}`~
12195       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12196       dldir=$destdir/`dirname \$dlpath`~
12197       test -d \$dldir || mkdir -p \$dldir~
12198       $install_prog $dir/$dlname \$dldir/$dlname'
12199     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12200       dlpath=$dir/\$dldll~
12201        $RM \$dlpath'
12202     shlibpath_overrides_runpath=yes
12203     dynamic_linker='Win32 link.exe'
12204     ;;
12205
12206   *)
12207     # Assume MSVC wrapper
12208     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12209     dynamic_linker='Win32 ld.exe'
12210     ;;
12211   esac
12212   # FIXME: first we should search . and the directory the executable is in
12213   shlibpath_var=PATH
12214   ;;
12215
12216 darwin* | rhapsody*)
12217   dynamic_linker="$host_os dyld"
12218   version_type=darwin
12219   need_lib_prefix=no
12220   need_version=no
12221   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12222   soname_spec='${libname}${release}${major}$shared_ext'
12223   shlibpath_overrides_runpath=yes
12224   shlibpath_var=DYLD_LIBRARY_PATH
12225   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12226
12227   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12228   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12229   ;;
12230
12231 dgux*)
12232   version_type=linux
12233   need_lib_prefix=no
12234   need_version=no
12235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12236   soname_spec='${libname}${release}${shared_ext}$major'
12237   shlibpath_var=LD_LIBRARY_PATH
12238   ;;
12239
12240 freebsd1*)
12241   dynamic_linker=no
12242   ;;
12243
12244 freebsd* | dragonfly*)
12245   # DragonFly does not have aout.  When/if they implement a new
12246   # versioning mechanism, adjust this.
12247   if test -x /usr/bin/objformat; then
12248     objformat=`/usr/bin/objformat`
12249   else
12250     case $host_os in
12251     freebsd[123]*) objformat=aout ;;
12252     *) objformat=elf ;;
12253     esac
12254   fi
12255   version_type=freebsd-$objformat
12256   case $version_type in
12257     freebsd-elf*)
12258       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12259       need_version=no
12260       need_lib_prefix=no
12261       ;;
12262     freebsd-*)
12263       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12264       need_version=yes
12265       ;;
12266   esac
12267   shlibpath_var=LD_LIBRARY_PATH
12268   case $host_os in
12269   freebsd2*)
12270     shlibpath_overrides_runpath=yes
12271     ;;
12272   freebsd3.[01]* | freebsdelf3.[01]*)
12273     shlibpath_overrides_runpath=yes
12274     hardcode_into_libs=yes
12275     ;;
12276   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12277   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12278     shlibpath_overrides_runpath=no
12279     hardcode_into_libs=yes
12280     ;;
12281   *) # from 4.6 on, and DragonFly
12282     shlibpath_overrides_runpath=yes
12283     hardcode_into_libs=yes
12284     ;;
12285   esac
12286   ;;
12287
12288 gnu*)
12289   version_type=linux
12290   need_lib_prefix=no
12291   need_version=no
12292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12293   soname_spec='${libname}${release}${shared_ext}$major'
12294   shlibpath_var=LD_LIBRARY_PATH
12295   hardcode_into_libs=yes
12296   ;;
12297
12298 haiku*)
12299   version_type=linux
12300   need_lib_prefix=no
12301   need_version=no
12302   dynamic_linker="$host_os runtime_loader"
12303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12304   soname_spec='${libname}${release}${shared_ext}$major'
12305   shlibpath_var=LIBRARY_PATH
12306   shlibpath_overrides_runpath=yes
12307   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12308   hardcode_into_libs=yes
12309   ;;
12310
12311 hpux9* | hpux10* | hpux11*)
12312   # Give a soname corresponding to the major version so that dld.sl refuses to
12313   # link against other versions.
12314   version_type=sunos
12315   need_lib_prefix=no
12316   need_version=no
12317   case $host_cpu in
12318   ia64*)
12319     shrext_cmds='.so'
12320     hardcode_into_libs=yes
12321     dynamic_linker="$host_os dld.so"
12322     shlibpath_var=LD_LIBRARY_PATH
12323     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325     soname_spec='${libname}${release}${shared_ext}$major'
12326     if test "X$HPUX_IA64_MODE" = X32; then
12327       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12328     else
12329       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12330     fi
12331     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12332     ;;
12333   hppa*64*)
12334     shrext_cmds='.sl'
12335     hardcode_into_libs=yes
12336     dynamic_linker="$host_os dld.sl"
12337     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12338     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340     soname_spec='${libname}${release}${shared_ext}$major'
12341     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12343     ;;
12344   *)
12345     shrext_cmds='.sl'
12346     dynamic_linker="$host_os dld.sl"
12347     shlibpath_var=SHLIB_PATH
12348     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12350     soname_spec='${libname}${release}${shared_ext}$major'
12351     ;;
12352   esac
12353   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12354   postinstall_cmds='chmod 555 $lib'
12355   # or fails outright, so override atomically:
12356   install_override_mode=555
12357   ;;
12358
12359 interix[3-9]*)
12360   version_type=linux
12361   need_lib_prefix=no
12362   need_version=no
12363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12364   soname_spec='${libname}${release}${shared_ext}$major'
12365   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12366   shlibpath_var=LD_LIBRARY_PATH
12367   shlibpath_overrides_runpath=no
12368   hardcode_into_libs=yes
12369   ;;
12370
12371 irix5* | irix6* | nonstopux*)
12372   case $host_os in
12373     nonstopux*) version_type=nonstopux ;;
12374     *)
12375         if test "$lt_cv_prog_gnu_ld" = yes; then
12376                 version_type=linux
12377         else
12378                 version_type=irix
12379         fi ;;
12380   esac
12381   need_lib_prefix=no
12382   need_version=no
12383   soname_spec='${libname}${release}${shared_ext}$major'
12384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12385   case $host_os in
12386   irix5* | nonstopux*)
12387     libsuff= shlibsuff=
12388     ;;
12389   *)
12390     case $LD in # libtool.m4 will add one of these switches to LD
12391     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12392       libsuff= shlibsuff= libmagic=32-bit;;
12393     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12394       libsuff=32 shlibsuff=N32 libmagic=N32;;
12395     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12396       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12397     *) libsuff= shlibsuff= libmagic=never-match;;
12398     esac
12399     ;;
12400   esac
12401   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12402   shlibpath_overrides_runpath=no
12403   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12404   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12405   hardcode_into_libs=yes
12406   ;;
12407
12408 # No shared lib support for Linux oldld, aout, or coff.
12409 linux*oldld* | linux*aout* | linux*coff*)
12410   dynamic_linker=no
12411   ;;
12412
12413 # This must be Linux ELF.
12414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12415   version_type=linux
12416   need_lib_prefix=no
12417   need_version=no
12418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419   soname_spec='${libname}${release}${shared_ext}$major'
12420   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12421   shlibpath_var=LD_LIBRARY_PATH
12422   shlibpath_overrides_runpath=no
12423
12424   # Some binutils ld are patched to set DT_RUNPATH
12425   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12426   $as_echo_n "(cached) " >&6
12427 else
12428   lt_cv_shlibpath_overrides_runpath=no
12429     save_LDFLAGS=$LDFLAGS
12430     save_libdir=$libdir
12431     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12432          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12433     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h.  */
12435
12436 int
12437 main ()
12438 {
12439
12440   ;
12441   return 0;
12442 }
12443 _ACEOF
12444 if ac_fn_c_try_link "$LINENO"; then :
12445   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12446   lt_cv_shlibpath_overrides_runpath=yes
12447 fi
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext \
12450     conftest$ac_exeext conftest.$ac_ext
12451     LDFLAGS=$save_LDFLAGS
12452     libdir=$save_libdir
12453
12454 fi
12455
12456   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12457
12458   # This implies no fast_install, which is unacceptable.
12459   # Some rework will be needed to allow for fast_install
12460   # before this can be enabled.
12461   hardcode_into_libs=yes
12462
12463   # Append ld.so.conf contents to the search path
12464   if test -f /etc/ld.so.conf; then
12465     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;s/"//g;/^$/d' | tr '\n' ' '`
12466     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12467   fi
12468
12469   # We used to test for /lib/ld.so.1 and disable shared libraries on
12470   # powerpc, because MkLinux only supported shared libraries with the
12471   # GNU dynamic linker.  Since this was broken with cross compilers,
12472   # most powerpc-linux boxes support dynamic linking these days and
12473   # people can always --disable-shared, the test was removed, and we
12474   # assume the GNU/Linux dynamic linker is in use.
12475   dynamic_linker='GNU/Linux ld.so'
12476   ;;
12477
12478 netbsd*)
12479   version_type=sunos
12480   need_lib_prefix=no
12481   need_version=no
12482   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12484     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12485     dynamic_linker='NetBSD (a.out) ld.so'
12486   else
12487     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12488     soname_spec='${libname}${release}${shared_ext}$major'
12489     dynamic_linker='NetBSD ld.elf_so'
12490   fi
12491   shlibpath_var=LD_LIBRARY_PATH
12492   shlibpath_overrides_runpath=yes
12493   hardcode_into_libs=yes
12494   ;;
12495
12496 newsos6)
12497   version_type=linux
12498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12499   shlibpath_var=LD_LIBRARY_PATH
12500   shlibpath_overrides_runpath=yes
12501   ;;
12502
12503 *nto* | *qnx*)
12504   version_type=qnx
12505   need_lib_prefix=no
12506   need_version=no
12507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12508   soname_spec='${libname}${release}${shared_ext}$major'
12509   shlibpath_var=LD_LIBRARY_PATH
12510   shlibpath_overrides_runpath=no
12511   hardcode_into_libs=yes
12512   dynamic_linker='ldqnx.so'
12513   ;;
12514
12515 openbsd*)
12516   version_type=sunos
12517   sys_lib_dlsearch_path_spec="/usr/lib"
12518   need_lib_prefix=no
12519   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12520   case $host_os in
12521     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12522     *)                          need_version=no  ;;
12523   esac
12524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12525   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12526   shlibpath_var=LD_LIBRARY_PATH
12527   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12528     case $host_os in
12529       openbsd2.[89] | openbsd2.[89].*)
12530         shlibpath_overrides_runpath=no
12531         ;;
12532       *)
12533         shlibpath_overrides_runpath=yes
12534         ;;
12535       esac
12536   else
12537     shlibpath_overrides_runpath=yes
12538   fi
12539   ;;
12540
12541 os2*)
12542   libname_spec='$name'
12543   shrext_cmds=".dll"
12544   need_lib_prefix=no
12545   library_names_spec='$libname${shared_ext} $libname.a'
12546   dynamic_linker='OS/2 ld.exe'
12547   shlibpath_var=LIBPATH
12548   ;;
12549
12550 osf3* | osf4* | osf5*)
12551   version_type=osf
12552   need_lib_prefix=no
12553   need_version=no
12554   soname_spec='${libname}${release}${shared_ext}$major'
12555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12556   shlibpath_var=LD_LIBRARY_PATH
12557   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12558   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12559   ;;
12560
12561 rdos*)
12562   dynamic_linker=no
12563   ;;
12564
12565 solaris*)
12566   version_type=linux
12567   need_lib_prefix=no
12568   need_version=no
12569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570   soname_spec='${libname}${release}${shared_ext}$major'
12571   shlibpath_var=LD_LIBRARY_PATH
12572   shlibpath_overrides_runpath=yes
12573   hardcode_into_libs=yes
12574   # ldd complains unless libraries are executable
12575   postinstall_cmds='chmod +x $lib'
12576   ;;
12577
12578 sunos4*)
12579   version_type=sunos
12580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12581   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12582   shlibpath_var=LD_LIBRARY_PATH
12583   shlibpath_overrides_runpath=yes
12584   if test "$with_gnu_ld" = yes; then
12585     need_lib_prefix=no
12586   fi
12587   need_version=yes
12588   ;;
12589
12590 sysv4 | sysv4.3*)
12591   version_type=linux
12592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12593   soname_spec='${libname}${release}${shared_ext}$major'
12594   shlibpath_var=LD_LIBRARY_PATH
12595   case $host_vendor in
12596     sni)
12597       shlibpath_overrides_runpath=no
12598       need_lib_prefix=no
12599       runpath_var=LD_RUN_PATH
12600       ;;
12601     siemens)
12602       need_lib_prefix=no
12603       ;;
12604     motorola)
12605       need_lib_prefix=no
12606       need_version=no
12607       shlibpath_overrides_runpath=no
12608       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12609       ;;
12610   esac
12611   ;;
12612
12613 sysv4*MP*)
12614   if test -d /usr/nec ;then
12615     version_type=linux
12616     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12617     soname_spec='$libname${shared_ext}.$major'
12618     shlibpath_var=LD_LIBRARY_PATH
12619   fi
12620   ;;
12621
12622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12623   version_type=freebsd-elf
12624   need_lib_prefix=no
12625   need_version=no
12626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12627   soname_spec='${libname}${release}${shared_ext}$major'
12628   shlibpath_var=LD_LIBRARY_PATH
12629   shlibpath_overrides_runpath=yes
12630   hardcode_into_libs=yes
12631   if test "$with_gnu_ld" = yes; then
12632     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12633   else
12634     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12635     case $host_os in
12636       sco3.2v5*)
12637         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12638         ;;
12639     esac
12640   fi
12641   sys_lib_dlsearch_path_spec='/usr/lib'
12642   ;;
12643
12644 tpf*)
12645   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12646   version_type=linux
12647   need_lib_prefix=no
12648   need_version=no
12649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12650   shlibpath_var=LD_LIBRARY_PATH
12651   shlibpath_overrides_runpath=no
12652   hardcode_into_libs=yes
12653   ;;
12654
12655 uts4*)
12656   version_type=linux
12657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658   soname_spec='${libname}${release}${shared_ext}$major'
12659   shlibpath_var=LD_LIBRARY_PATH
12660   ;;
12661
12662 *)
12663   dynamic_linker=no
12664   ;;
12665 esac
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12667 $as_echo "$dynamic_linker" >&6; }
12668 test "$dynamic_linker" = no && can_build_shared=no
12669
12670 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12671 if test "$GCC" = yes; then
12672   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12673 fi
12674
12675 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12676   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12677 fi
12678 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12679   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12680 fi
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12774 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12775 hardcode_action=
12776 if test -n "$hardcode_libdir_flag_spec" ||
12777    test -n "$runpath_var" ||
12778    test "X$hardcode_automatic" = "Xyes" ; then
12779
12780   # We can hardcode non-existent directories.
12781   if test "$hardcode_direct" != no &&
12782      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12783      # have to relink, otherwise we might link with an installed library
12784      # when we should be linking with a yet-to-be-installed one
12785      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12786      test "$hardcode_minus_L" != no; then
12787     # Linking always hardcodes the temporary library directory.
12788     hardcode_action=relink
12789   else
12790     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12791     hardcode_action=immediate
12792   fi
12793 else
12794   # We cannot hardcode anything, or else we can only hardcode existing
12795   # directories.
12796   hardcode_action=unsupported
12797 fi
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12799 $as_echo "$hardcode_action" >&6; }
12800
12801 if test "$hardcode_action" = relink ||
12802    test "$inherit_rpath" = yes; then
12803   # Fast installation is not supported
12804   enable_fast_install=no
12805 elif test "$shlibpath_overrides_runpath" = yes ||
12806      test "$enable_shared" = no; then
12807   # Fast installation is not necessary
12808   enable_fast_install=needless
12809 fi
12810
12811
12812
12813
12814
12815
12816   if test "x$enable_dlopen" != xyes; then
12817   enable_dlopen=unknown
12818   enable_dlopen_self=unknown
12819   enable_dlopen_self_static=unknown
12820 else
12821   lt_cv_dlopen=no
12822   lt_cv_dlopen_libs=
12823
12824   case $host_os in
12825   beos*)
12826     lt_cv_dlopen="load_add_on"
12827     lt_cv_dlopen_libs=
12828     lt_cv_dlopen_self=yes
12829     ;;
12830
12831   mingw* | pw32* | cegcc*)
12832     lt_cv_dlopen="LoadLibrary"
12833     lt_cv_dlopen_libs=
12834     ;;
12835
12836   cygwin*)
12837     lt_cv_dlopen="dlopen"
12838     lt_cv_dlopen_libs=
12839     ;;
12840
12841   darwin*)
12842   # if libdl is installed we need to link against it
12843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12845 if ${ac_cv_lib_dl_dlopen+:} false; then :
12846   $as_echo_n "(cached) " >&6
12847 else
12848   ac_check_lib_save_LIBS=$LIBS
12849 LIBS="-ldl  $LIBS"
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h.  */
12852
12853 /* Override any GCC internal prototype to avoid an error.
12854    Use char because int might match the return type of a GCC
12855    builtin and then its argument prototype would still apply.  */
12856 #ifdef __cplusplus
12857 extern "C"
12858 #endif
12859 char dlopen ();
12860 int
12861 main ()
12862 {
12863 return dlopen ();
12864   ;
12865   return 0;
12866 }
12867 _ACEOF
12868 if ac_fn_c_try_link "$LINENO"; then :
12869   ac_cv_lib_dl_dlopen=yes
12870 else
12871   ac_cv_lib_dl_dlopen=no
12872 fi
12873 rm -f core conftest.err conftest.$ac_objext \
12874     conftest$ac_exeext conftest.$ac_ext
12875 LIBS=$ac_check_lib_save_LIBS
12876 fi
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12879 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12880   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12881 else
12882
12883     lt_cv_dlopen="dyld"
12884     lt_cv_dlopen_libs=
12885     lt_cv_dlopen_self=yes
12886
12887 fi
12888
12889     ;;
12890
12891   *)
12892     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12893 if test "x$ac_cv_func_shl_load" = xyes; then :
12894   lt_cv_dlopen="shl_load"
12895 else
12896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12897 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12898 if ${ac_cv_lib_dld_shl_load+:} false; then :
12899   $as_echo_n "(cached) " >&6
12900 else
12901   ac_check_lib_save_LIBS=$LIBS
12902 LIBS="-ldld  $LIBS"
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h.  */
12905
12906 /* Override any GCC internal prototype to avoid an error.
12907    Use char because int might match the return type of a GCC
12908    builtin and then its argument prototype would still apply.  */
12909 #ifdef __cplusplus
12910 extern "C"
12911 #endif
12912 char shl_load ();
12913 int
12914 main ()
12915 {
12916 return shl_load ();
12917   ;
12918   return 0;
12919 }
12920 _ACEOF
12921 if ac_fn_c_try_link "$LINENO"; then :
12922   ac_cv_lib_dld_shl_load=yes
12923 else
12924   ac_cv_lib_dld_shl_load=no
12925 fi
12926 rm -f core conftest.err conftest.$ac_objext \
12927     conftest$ac_exeext conftest.$ac_ext
12928 LIBS=$ac_check_lib_save_LIBS
12929 fi
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12931 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12932 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12933   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12934 else
12935   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12936 if test "x$ac_cv_func_dlopen" = xyes; then :
12937   lt_cv_dlopen="dlopen"
12938 else
12939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12941 if ${ac_cv_lib_dl_dlopen+:} false; then :
12942   $as_echo_n "(cached) " >&6
12943 else
12944   ac_check_lib_save_LIBS=$LIBS
12945 LIBS="-ldl  $LIBS"
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h.  */
12948
12949 /* Override any GCC internal prototype to avoid an error.
12950    Use char because int might match the return type of a GCC
12951    builtin and then its argument prototype would still apply.  */
12952 #ifdef __cplusplus
12953 extern "C"
12954 #endif
12955 char dlopen ();
12956 int
12957 main ()
12958 {
12959 return dlopen ();
12960   ;
12961   return 0;
12962 }
12963 _ACEOF
12964 if ac_fn_c_try_link "$LINENO"; then :
12965   ac_cv_lib_dl_dlopen=yes
12966 else
12967   ac_cv_lib_dl_dlopen=no
12968 fi
12969 rm -f core conftest.err conftest.$ac_objext \
12970     conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_lib_save_LIBS
12972 fi
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12974 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12975 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12976   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12977 else
12978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12979 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12980 if ${ac_cv_lib_svld_dlopen+:} false; then :
12981   $as_echo_n "(cached) " >&6
12982 else
12983   ac_check_lib_save_LIBS=$LIBS
12984 LIBS="-lsvld  $LIBS"
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h.  */
12987
12988 /* Override any GCC internal prototype to avoid an error.
12989    Use char because int might match the return type of a GCC
12990    builtin and then its argument prototype would still apply.  */
12991 #ifdef __cplusplus
12992 extern "C"
12993 #endif
12994 char dlopen ();
12995 int
12996 main ()
12997 {
12998 return dlopen ();
12999   ;
13000   return 0;
13001 }
13002 _ACEOF
13003 if ac_fn_c_try_link "$LINENO"; then :
13004   ac_cv_lib_svld_dlopen=yes
13005 else
13006   ac_cv_lib_svld_dlopen=no
13007 fi
13008 rm -f core conftest.err conftest.$ac_objext \
13009     conftest$ac_exeext conftest.$ac_ext
13010 LIBS=$ac_check_lib_save_LIBS
13011 fi
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13013 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13014 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13015   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13016 else
13017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13018 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13019 if ${ac_cv_lib_dld_dld_link+:} false; then :
13020   $as_echo_n "(cached) " >&6
13021 else
13022   ac_check_lib_save_LIBS=$LIBS
13023 LIBS="-ldld  $LIBS"
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h.  */
13026
13027 /* Override any GCC internal prototype to avoid an error.
13028    Use char because int might match the return type of a GCC
13029    builtin and then its argument prototype would still apply.  */
13030 #ifdef __cplusplus
13031 extern "C"
13032 #endif
13033 char dld_link ();
13034 int
13035 main ()
13036 {
13037 return dld_link ();
13038   ;
13039   return 0;
13040 }
13041 _ACEOF
13042 if ac_fn_c_try_link "$LINENO"; then :
13043   ac_cv_lib_dld_dld_link=yes
13044 else
13045   ac_cv_lib_dld_dld_link=no
13046 fi
13047 rm -f core conftest.err conftest.$ac_objext \
13048     conftest$ac_exeext conftest.$ac_ext
13049 LIBS=$ac_check_lib_save_LIBS
13050 fi
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13052 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13053 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13054   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13055 fi
13056
13057
13058 fi
13059
13060
13061 fi
13062
13063
13064 fi
13065
13066
13067 fi
13068
13069
13070 fi
13071
13072     ;;
13073   esac
13074
13075   if test "x$lt_cv_dlopen" != xno; then
13076     enable_dlopen=yes
13077   else
13078     enable_dlopen=no
13079   fi
13080
13081   case $lt_cv_dlopen in
13082   dlopen)
13083     save_CPPFLAGS="$CPPFLAGS"
13084     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13085
13086     save_LDFLAGS="$LDFLAGS"
13087     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13088
13089     save_LIBS="$LIBS"
13090     LIBS="$lt_cv_dlopen_libs $LIBS"
13091
13092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13093 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13094 if ${lt_cv_dlopen_self+:} false; then :
13095   $as_echo_n "(cached) " >&6
13096 else
13097           if test "$cross_compiling" = yes; then :
13098   lt_cv_dlopen_self=cross
13099 else
13100   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13101   lt_status=$lt_dlunknown
13102   cat > conftest.$ac_ext <<_LT_EOF
13103 #line $LINENO "configure"
13104 #include "confdefs.h"
13105
13106 #if HAVE_DLFCN_H
13107 #include <dlfcn.h>
13108 #endif
13109
13110 #include <stdio.h>
13111
13112 #ifdef RTLD_GLOBAL
13113 #  define LT_DLGLOBAL           RTLD_GLOBAL
13114 #else
13115 #  ifdef DL_GLOBAL
13116 #    define LT_DLGLOBAL         DL_GLOBAL
13117 #  else
13118 #    define LT_DLGLOBAL         0
13119 #  endif
13120 #endif
13121
13122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13123    find out it does not work in some platform. */
13124 #ifndef LT_DLLAZY_OR_NOW
13125 #  ifdef RTLD_LAZY
13126 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13127 #  else
13128 #    ifdef DL_LAZY
13129 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13130 #    else
13131 #      ifdef RTLD_NOW
13132 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13133 #      else
13134 #        ifdef DL_NOW
13135 #          define LT_DLLAZY_OR_NOW      DL_NOW
13136 #        else
13137 #          define LT_DLLAZY_OR_NOW      0
13138 #        endif
13139 #      endif
13140 #    endif
13141 #  endif
13142 #endif
13143
13144 /* When -fvisbility=hidden is used, assume the code has been annotated
13145    correspondingly for the symbols needed.  */
13146 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13147 int fnord () __attribute__((visibility("default")));
13148 #endif
13149
13150 int fnord () { return 42; }
13151 int main ()
13152 {
13153   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13154   int status = $lt_dlunknown;
13155
13156   if (self)
13157     {
13158       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13159       else
13160         {
13161           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13162           else puts (dlerror ());
13163         }
13164       /* dlclose (self); */
13165     }
13166   else
13167     puts (dlerror ());
13168
13169   return status;
13170 }
13171 _LT_EOF
13172   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13173   (eval $ac_link) 2>&5
13174   ac_status=$?
13175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13177     (./conftest; exit; ) >&5 2>/dev/null
13178     lt_status=$?
13179     case x$lt_status in
13180       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13181       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13182       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13183     esac
13184   else :
13185     # compilation failed
13186     lt_cv_dlopen_self=no
13187   fi
13188 fi
13189 rm -fr conftest*
13190
13191
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13194 $as_echo "$lt_cv_dlopen_self" >&6; }
13195
13196     if test "x$lt_cv_dlopen_self" = xyes; then
13197       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13198       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13199 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13200 if ${lt_cv_dlopen_self_static+:} false; then :
13201   $as_echo_n "(cached) " >&6
13202 else
13203           if test "$cross_compiling" = yes; then :
13204   lt_cv_dlopen_self_static=cross
13205 else
13206   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13207   lt_status=$lt_dlunknown
13208   cat > conftest.$ac_ext <<_LT_EOF
13209 #line $LINENO "configure"
13210 #include "confdefs.h"
13211
13212 #if HAVE_DLFCN_H
13213 #include <dlfcn.h>
13214 #endif
13215
13216 #include <stdio.h>
13217
13218 #ifdef RTLD_GLOBAL
13219 #  define LT_DLGLOBAL           RTLD_GLOBAL
13220 #else
13221 #  ifdef DL_GLOBAL
13222 #    define LT_DLGLOBAL         DL_GLOBAL
13223 #  else
13224 #    define LT_DLGLOBAL         0
13225 #  endif
13226 #endif
13227
13228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13229    find out it does not work in some platform. */
13230 #ifndef LT_DLLAZY_OR_NOW
13231 #  ifdef RTLD_LAZY
13232 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13233 #  else
13234 #    ifdef DL_LAZY
13235 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13236 #    else
13237 #      ifdef RTLD_NOW
13238 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13239 #      else
13240 #        ifdef DL_NOW
13241 #          define LT_DLLAZY_OR_NOW      DL_NOW
13242 #        else
13243 #          define LT_DLLAZY_OR_NOW      0
13244 #        endif
13245 #      endif
13246 #    endif
13247 #  endif
13248 #endif
13249
13250 /* When -fvisbility=hidden is used, assume the code has been annotated
13251    correspondingly for the symbols needed.  */
13252 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13253 int fnord () __attribute__((visibility("default")));
13254 #endif
13255
13256 int fnord () { return 42; }
13257 int main ()
13258 {
13259   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13260   int status = $lt_dlunknown;
13261
13262   if (self)
13263     {
13264       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13265       else
13266         {
13267           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13268           else puts (dlerror ());
13269         }
13270       /* dlclose (self); */
13271     }
13272   else
13273     puts (dlerror ());
13274
13275   return status;
13276 }
13277 _LT_EOF
13278   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13279   (eval $ac_link) 2>&5
13280   ac_status=$?
13281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13282   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13283     (./conftest; exit; ) >&5 2>/dev/null
13284     lt_status=$?
13285     case x$lt_status in
13286       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13287       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13288       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13289     esac
13290   else :
13291     # compilation failed
13292     lt_cv_dlopen_self_static=no
13293   fi
13294 fi
13295 rm -fr conftest*
13296
13297
13298 fi
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13300 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13301     fi
13302
13303     CPPFLAGS="$save_CPPFLAGS"
13304     LDFLAGS="$save_LDFLAGS"
13305     LIBS="$save_LIBS"
13306     ;;
13307   esac
13308
13309   case $lt_cv_dlopen_self in
13310   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13311   *) enable_dlopen_self=unknown ;;
13312   esac
13313
13314   case $lt_cv_dlopen_self_static in
13315   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13316   *) enable_dlopen_self_static=unknown ;;
13317   esac
13318 fi
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336 striplib=
13337 old_striplib=
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13339 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13340 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13341   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13342   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13344 $as_echo "yes" >&6; }
13345 else
13346 # FIXME - insert some real tests, host_os isn't really good enough
13347   case $host_os in
13348   darwin*)
13349     if test -n "$STRIP" ; then
13350       striplib="$STRIP -x"
13351       old_striplib="$STRIP -S"
13352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13353 $as_echo "yes" >&6; }
13354     else
13355       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13357     fi
13358     ;;
13359   *)
13360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13362     ;;
13363   esac
13364 fi
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377   # Report which library types will actually be built
13378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13379 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13381 $as_echo "$can_build_shared" >&6; }
13382
13383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13384 $as_echo_n "checking whether to build shared libraries... " >&6; }
13385   test "$can_build_shared" = "no" && enable_shared=no
13386
13387   # On AIX, shared libraries and static libraries use the same namespace, and
13388   # are all built from PIC.
13389   case $host_os in
13390   aix3*)
13391     test "$enable_shared" = yes && enable_static=no
13392     if test -n "$RANLIB"; then
13393       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13394       postinstall_cmds='$RANLIB $lib'
13395     fi
13396     ;;
13397
13398   aix[4-9]*)
13399     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13400       test "$enable_shared" = yes && enable_static=no
13401     fi
13402     ;;
13403   esac
13404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13405 $as_echo "$enable_shared" >&6; }
13406
13407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13408 $as_echo_n "checking whether to build static libraries... " >&6; }
13409   # Make sure either enable_shared or enable_static is yes.
13410   test "$enable_shared" = yes || enable_static=yes
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13412 $as_echo "$enable_static" >&6; }
13413
13414
13415
13416
13417 fi
13418 ac_ext=c
13419 ac_cpp='$CPP $CPPFLAGS'
13420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13423
13424 CC="$lt_save_CC"
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438         ac_config_commands="$ac_config_commands libtool"
13439
13440
13441
13442
13443 # Only expand once:
13444
13445
13446
13447 if test "$enable_shared" = "no"; then
13448     with_noexec=no
13449     enable_dlopen=no
13450     lt_cv_dlopen=none
13451     lt_cv_dlopen_libs=
13452 else
13453     eval _shrext="$shrext_cmds"
13454     # Darwin uses .dylib for libraries but .so for modules
13455     if test X"$_shrext" = X".dylib"; then
13456         SOEXT=".so"
13457     else
13458         SOEXT="$_shrext"
13459     fi
13460 fi
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13462 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13463
13464 # Check whether --with-noexec was given.
13465 if test "${with_noexec+set}" = set; then :
13466   withval=$with_noexec; case $with_noexec in
13467     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
13468                 ;;
13469     no)         ;;
13470     *)          ;;
13471 esac
13472 else
13473   with_noexec="$libexecdir/sudo_noexec$_shrext"
13474 fi
13475
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13477 $as_echo "$with_noexec" >&6; }
13478 NOEXECFILE="sudo_noexec$_shrext"
13479 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
13480
13481 if test X"$with_devel" = X"yes" -a -n "$GCC"; then
13482     CFLAGS="${CFLAGS} -Wall"
13483 fi
13484
13485 # Extract the first word of "uname", so it can be a program name with args.
13486 set dummy uname; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_prog_UNAMEPROG+:} false; then :
13490   $as_echo_n "(cached) " >&6
13491 else
13492   if test -n "$UNAMEPROG"; then
13493   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
13494 else
13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $PATH
13497 do
13498   IFS=$as_save_IFS
13499   test -z "$as_dir" && as_dir=.
13500     for ac_exec_ext in '' $ac_executable_extensions; do
13501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13502     ac_cv_prog_UNAMEPROG="uname"
13503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504     break 2
13505   fi
13506 done
13507   done
13508 IFS=$as_save_IFS
13509
13510 fi
13511 fi
13512 UNAMEPROG=$ac_cv_prog_UNAMEPROG
13513 if test -n "$UNAMEPROG"; then
13514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13515 $as_echo "$UNAMEPROG" >&6; }
13516 else
13517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13519 fi
13520
13521
13522 # Extract the first word of "tr", so it can be a program name with args.
13523 set dummy tr; ac_word=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525 $as_echo_n "checking for $ac_word... " >&6; }
13526 if ${ac_cv_prog_TRPROG+:} false; then :
13527   $as_echo_n "(cached) " >&6
13528 else
13529   if test -n "$TRPROG"; then
13530   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
13531 else
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13534 do
13535   IFS=$as_save_IFS
13536   test -z "$as_dir" && as_dir=.
13537     for ac_exec_ext in '' $ac_executable_extensions; do
13538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13539     ac_cv_prog_TRPROG="tr"
13540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13541     break 2
13542   fi
13543 done
13544   done
13545 IFS=$as_save_IFS
13546
13547 fi
13548 fi
13549 TRPROG=$ac_cv_prog_TRPROG
13550 if test -n "$TRPROG"; then
13551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13552 $as_echo "$TRPROG" >&6; }
13553 else
13554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 $as_echo "no" >&6; }
13556 fi
13557
13558
13559 for ac_prog in nroff mandoc
13560 do
13561   # Extract the first word of "$ac_prog", so it can be a program name with args.
13562 set dummy $ac_prog; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if ${ac_cv_prog_NROFFPROG+:} false; then :
13566   $as_echo_n "(cached) " >&6
13567 else
13568   if test -n "$NROFFPROG"; then
13569   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
13570 else
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13573 do
13574   IFS=$as_save_IFS
13575   test -z "$as_dir" && as_dir=.
13576     for ac_exec_ext in '' $ac_executable_extensions; do
13577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13578     ac_cv_prog_NROFFPROG="$ac_prog"
13579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13580     break 2
13581   fi
13582 done
13583   done
13584 IFS=$as_save_IFS
13585
13586 fi
13587 fi
13588 NROFFPROG=$ac_cv_prog_NROFFPROG
13589 if test -n "$NROFFPROG"; then
13590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13591 $as_echo "$NROFFPROG" >&6; }
13592 else
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13595 fi
13596
13597
13598   test -n "$NROFFPROG" && break
13599 done
13600
13601 if test -n "$NROFFPROG"; then
13602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -c option" >&5
13603 $as_echo_n "checking whether $NROFFPROG supports the -c option... " >&6; }
13604 if ${sudo_cv_var_nroff_opt_c+:} false; then :
13605   $as_echo_n "(cached) " >&6
13606 else
13607   if $NROFFPROG -c </dev/null >/dev/null 2>&1; then
13608             sudo_cv_var_nroff_opt_c=yes
13609         else
13610             sudo_cv_var_nroff_opt_c=no
13611         fi
13612
13613 fi
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_c" >&5
13615 $as_echo "$sudo_cv_var_nroff_opt_c" >&6; }
13616     if test "$sudo_cv_var_nroff_opt_c" = "yes"; then
13617         NROFFPROG="$NROFFPROG -c"
13618     fi
13619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -Tascii option" >&5
13620 $as_echo_n "checking whether $NROFFPROG supports the -Tascii option... " >&6; }
13621 if ${sudo_cv_var_nroff_opt_Tascii+:} false; then :
13622   $as_echo_n "(cached) " >&6
13623 else
13624   if $NROFFPROG -Tascii </dev/null >/dev/null 2>&1; then
13625             sudo_cv_var_nroff_opt_Tascii=yes
13626         else
13627             sudo_cv_var_nroff_opt_Tascii=no
13628         fi
13629     if test "$sudo_cv_var_nroff_opt_Tascii" = "yes"; then
13630         NROFFPROG="$NROFFPROG -Tascii"
13631     fi
13632
13633 fi
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_Tascii" >&5
13635 $as_echo "$sudo_cv_var_nroff_opt_Tascii" >&6; }
13636 else
13637     MANTYPE="cat"
13638     mansrcdir='$(srcdir)'
13639 fi
13640
13641 if test -n "$sudo_cv_prev_host"; then
13642     if test "$sudo_cv_prev_host" != "$host"; then
13643         as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13644     else
13645         { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13646 $as_echo_n "checking previous host type... " >&6; }
13647         if ${sudo_cv_prev_host+:} false; then :
13648   $as_echo_n "(cached) " >&6
13649 else
13650   sudo_cv_prev_host="$host"
13651 fi
13652
13653         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13654 $as_echo "$sudo_cv_prev_host" >&6; }
13655     fi
13656 else
13657     # this will produce no output since there is no cached value
13658     if ${sudo_cv_prev_host+:} false; then :
13659   $as_echo_n "(cached) " >&6
13660 else
13661   sudo_cv_prev_host="$host"
13662 fi
13663
13664 fi
13665
13666 if test -n "$host_os"; then
13667     OS=`echo $host_os | sed 's/[0-9].*//'`
13668     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13669     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13670 else
13671     OS="unknown"
13672     OSREV=0
13673     OSMAJOR=0
13674 fi
13675
13676 case "$host" in
13677     *-*-sunos4*)
13678                 # getcwd(3) opens a pipe to getpwd(1)!?!
13679                 BROKEN_GETCWD=1
13680
13681                 # system headers lack prototypes but gcc helps...
13682                 if test -n "$GCC"; then
13683                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13684                 fi
13685
13686                 shadow_funcs="getpwanam issecure"
13687                 ;;
13688     *-*-solaris2*)
13689                 # To get the crypt(3) prototype (so we pass -Wall)
13690                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13691                 # AFS support needs -lucb
13692                 if test "$with_AFS" = "yes"; then
13693                     AFS_LIBS="-lc -lucb"
13694                 fi
13695                 : ${mansectsu='1m'}
13696                 : ${mansectform='4'}
13697                 : ${with_rpath='yes'}
13698                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13699                 for ac_func in priv_set
13700 do :
13701   ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13702 if test "x$ac_cv_func_priv_set" = xyes; then :
13703   cat >>confdefs.h <<_ACEOF
13704 #define HAVE_PRIV_SET 1
13705 _ACEOF
13706
13707 fi
13708 done
13709
13710                 ;;
13711     *-*-aix*)
13712                 # To get all prototypes (so we pass -Wall)
13713                 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13714                 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
13715                 if test X"$with_blibpath" != X"no"; then
13716                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
13717 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
13718                     O_LDFLAGS="$LDFLAGS"
13719                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
13720                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h.  */
13722
13723 int
13724 main ()
13725 {
13726
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 if ac_fn_c_try_link "$LINENO"; then :
13732
13733                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13734                             blibpath="$with_blibpath"
13735                         elif test -n "$GCC"; then
13736                             blibpath="/usr/lib:/lib:/usr/local/lib"
13737                         else
13738                             blibpath="/usr/lib:/lib"
13739                         fi
13740                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13741 $as_echo "yes" >&6; }
13742
13743 else
13744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13746 fi
13747 rm -f core conftest.err conftest.$ac_objext \
13748     conftest$ac_exeext conftest.$ac_ext
13749                 fi
13750                 LDFLAGS="$O_LDFLAGS"
13751
13752                 # Use authenticate(3) as the default authentication method
13753                 if test X"$with_aixauth" = X""; then
13754                     for ac_func in authenticate
13755 do :
13756   ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13757 if test "x$ac_cv_func_authenticate" = xyes; then :
13758   cat >>confdefs.h <<_ACEOF
13759 #define HAVE_AUTHENTICATE 1
13760 _ACEOF
13761  AUTH_EXCL_DEF="AIX_AUTH"
13762 fi
13763 done
13764
13765                 fi
13766
13767                 # AIX analog of nsswitch.conf, enabled by default
13768
13769 # Check whether --with-netsvc was given.
13770 if test "${with_netsvc+set}" = set; then :
13771   withval=$with_netsvc; case $with_netsvc in
13772                     no)         ;;
13773                     yes)        with_netsvc="/etc/netsvc.conf"
13774                                 ;;
13775                     *)          ;;
13776                 esac
13777 fi
13778
13779                 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
13780                     with_netsvc="/etc/netsvc.conf"
13781                 fi
13782
13783                 # For implementing getgrouplist()
13784                 for ac_func in getgrset
13785 do :
13786   ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
13787 if test "x$ac_cv_func_getgrset" = xyes; then :
13788   cat >>confdefs.h <<_ACEOF
13789 #define HAVE_GETGRSET 1
13790 _ACEOF
13791
13792 fi
13793 done
13794
13795
13796                 # LDR_PRELOAD is supported in AIX 5.3 and later
13797                 case "$OSREV" in
13798                     1-4.*) with_noexec=no ;;
13799                 esac
13800
13801                 # AIX-specific functions
13802                 for ac_func in getuserattr setauthdb
13803 do :
13804   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13805 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13806 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13807   cat >>confdefs.h <<_ACEOF
13808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13809 _ACEOF
13810
13811 fi
13812 done
13813
13814                 COMMON_OBJS="$COMMON_OBJS aix.lo"
13815                 ;;
13816     *-*-hiuxmpp*)
13817                 : ${mansectsu='1m'}
13818                 : ${mansectform='4'}
13819                 ;;
13820     *-*-hpux*)
13821                 # AFS support needs -lBSD
13822                 if test "$with_AFS" = "yes"; then
13823                     AFS_LIBS="-lc -lBSD"
13824                 fi
13825                 : ${mansectsu='1m'}
13826                 : ${mansectform='4'}
13827
13828                 # The HP bundled compiler cannot generate shared libs
13829                 if test -z "$GCC"; then
13830                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
13831 $as_echo_n "checking for HP bundled C compiler... " >&6; }
13832 if ${sudo_cv_var_hpccbundled+:} false; then :
13833   $as_echo_n "(cached) " >&6
13834 else
13835   if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
13836                             sudo_cv_var_hpccbundled=yes
13837                         else
13838                             sudo_cv_var_hpccbundled=no
13839                         fi
13840
13841 fi
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
13843 $as_echo "$sudo_cv_var_hpccbundled" >&6; }
13844                     if test "$sudo_cv_var_hpccbundled" = "yes"; then
13845                         as_fn_error $? "The HP bundled C compiler is unable to build Sudo, you must use gcc or the HP ANSI C compiler instead." "$LINENO" 5
13846                     fi
13847                 fi
13848
13849                 # Build PA-RISC1.1 objects for better portability
13850                 case "$host_cpu" in
13851                     hppa2-9*)
13852                         _CFLAGS="$CFLAGS"
13853                         if test -n "$GCC"; then
13854                             portable_flag="-march=1.1"
13855                         else
13856                             portable_flag="+DAportable"
13857                         fi
13858                         CFLAGS="$CFLAGS $portable_flag"
13859                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
13860 $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
13861 if ${sudo_cv_var_daportable+:} false; then :
13862   $as_echo_n "(cached) " >&6
13863 else
13864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h.  */
13866
13867 int
13868 main ()
13869 {
13870
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 if ac_fn_c_try_link "$LINENO"; then :
13876   sudo_cv_var_daportable=yes
13877 else
13878   sudo_cv_var_daportable=no
13879
13880 fi
13881 rm -f core conftest.err conftest.$ac_objext \
13882     conftest$ac_exeext conftest.$ac_ext
13883
13884
13885 fi
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
13887 $as_echo "$sudo_cv_var_daportable" >&6; }
13888                         if test X"$sudo_cv_var_daportable" != X"yes"; then
13889                             CFLAGS="$_CFLAGS"
13890                         fi
13891                         ;;
13892                 esac
13893
13894                 case "$host" in
13895                         *-*-hpux1-8.*)
13896                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13897
13898                         ;;
13899                         *-*-hpux9.*)
13900                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13901
13902
13903                             shadow_funcs="getspwuid"
13904
13905                             # DCE support (requires ANSI C compiler)
13906                             if test "$with_DCE" = "yes"; then
13907                                 # order of libs in 9.X is important. -lc_r must be last
13908                                 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
13909                                 LIBS="${LIBS} -ldce -lM -lc_r"
13910                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
13911                             fi
13912                         ;;
13913                         *-*-hpux10.*)
13914                             shadow_funcs="getprpwnam iscomsec"
13915                             shadow_libs="-lsec"
13916                             # HP-UX 10.20 libc has an incompatible getline
13917                             ac_cv_func_getline="no"
13918                         ;;
13919                         *)
13920                             shadow_funcs="getspnam iscomsec"
13921                             shadow_libs="-lsec"
13922                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13923                         ;;
13924                 esac
13925                 ;;
13926     *-dec-osf*)
13927                 # ignore envariables wrt dynamic lib path
13928                 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
13929
13930                 : ${CHECKSIA='true'}
13931                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
13932 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
13933                 # Check whether --enable-sia was given.
13934 if test "${enable_sia+set}" = set; then :
13935   enableval=$enable_sia;  case "$enableval" in
13936                     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13938                                 CHECKSIA=true
13939                                 ;;
13940                     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941 $as_echo "yes" >&6; }
13942                                 CHECKSIA=false
13943                                 ;;
13944                     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13946                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
13947 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
13948                                 ;;
13949                   esac
13950
13951 else
13952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953 $as_echo "no" >&6; }
13954 fi
13955
13956
13957                 shadow_funcs="getprpwnam dispcrypt"
13958                 # OSF/1 4.x and higher need -ldb too
13959                 if test $OSMAJOR -lt 4; then
13960                     shadow_libs="-lsecurity -laud -lm"
13961                 else
13962                     shadow_libs="-lsecurity -ldb -laud -lm"
13963                 fi
13964
13965                 # use SIA by default, if we have it
13966                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
13967
13968                 #
13969                 # Some versions of Digital Unix ship with a broken
13970                 # copy of prot.h, which we need for shadow passwords.
13971                 # XXX - make should remove this as part of distclean
13972                 #
13973                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
13974 $as_echo_n "checking for broken prot.h... " >&6; }
13975                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h.  */
13977
13978 #include <sys/types.h>
13979 #include <sys/security.h>
13980 #include <prot.h>
13981
13982 int
13983 main ()
13984 {
13985 exit(0);
13986   ;
13987   return 0;
13988 }
13989 _ACEOF
13990 if ac_fn_c_try_compile "$LINENO"; then :
13991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
13993 else
13994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
13995 $as_echo "yes, fixing locally" >&6; }
13996                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
13997
13998 fi
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000                 : ${mansectsu='8'}
14001                 : ${mansectform='4'}
14002                 ;;
14003     *-*-irix*)
14004                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
14005                 if test -z "$NROFFPROG"; then
14006                     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)'
14007                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14008                         if test -d /usr/share/catman/local; then
14009                             mandir="/usr/share/catman/local"
14010                         else
14011                             mandir="/usr/catman/local"
14012                         fi
14013                     fi
14014                 else
14015                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14016                         if test -d "/usr/share/man/local"; then
14017                             mandir="/usr/share/man/local"
14018                         else
14019                             mandir="/usr/man/local"
14020                         fi
14021                     fi
14022                 fi
14023                 # IRIX <= 4 needs -lsun
14024                 if test "$OSMAJOR" -le 4; then
14025                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14026 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14027 if ${ac_cv_lib_sun_getpwnam+:} false; then :
14028   $as_echo_n "(cached) " >&6
14029 else
14030   ac_check_lib_save_LIBS=$LIBS
14031 LIBS="-lsun  $LIBS"
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h.  */
14034
14035 /* Override any GCC internal prototype to avoid an error.
14036    Use char because int might match the return type of a GCC
14037    builtin and then its argument prototype would still apply.  */
14038 #ifdef __cplusplus
14039 extern "C"
14040 #endif
14041 char getpwnam ();
14042 int
14043 main ()
14044 {
14045 return getpwnam ();
14046   ;
14047   return 0;
14048 }
14049 _ACEOF
14050 if ac_fn_c_try_link "$LINENO"; then :
14051   ac_cv_lib_sun_getpwnam=yes
14052 else
14053   ac_cv_lib_sun_getpwnam=no
14054 fi
14055 rm -f core conftest.err conftest.$ac_objext \
14056     conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14058 fi
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14060 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14061 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14062   LIBS="${LIBS} -lsun"
14063 fi
14064
14065                 fi
14066                 : ${mansectsu='1m'}
14067                 : ${mansectform='4'}
14068                 ;;
14069     *-*-linux*|*-*-k*bsd*-gnu)
14070                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14071                 # Some Linux versions need to link with -lshadow
14072                 shadow_funcs="getspnam"
14073                 shadow_libs_optional="-lshadow"
14074                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14075                 ;;
14076     *-convex-bsd*)
14077                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14078                 if test -z "$GCC"; then
14079                     CFLAGS="${CFLAGS} -D__STDC__"
14080                 fi
14081
14082                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14083                 shadow_funcs="getprpwnam"
14084                 shadow_libs="-lprot"
14085                 ;;
14086     *-*-ultrix*)
14087                 OS="ultrix"
14088                 shadow_funcs="getauthuid"
14089                 shadow_libs="-lauth"
14090                 ;;
14091     *-*-riscos*)
14092                 LIBS="${LIBS} -lsun -lbsd"
14093                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
14094                 OSDEFS="${OSDEFS} -D_MIPS"
14095                 : ${mansectsu='1m'}
14096                 : ${mansectform='4'}
14097                 ;;
14098     *-*-isc*)
14099                 OSDEFS="${OSDEFS} -D_ISC"
14100                 LIB_CRYPT=1
14101                 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14102
14103                 shadow_funcs="getspnam"
14104                 shadow_libs="-lsec"
14105
14106                 : ${mansectsu='1m'}
14107                 : ${mansectform='4'}
14108                 ;;
14109     *-*-sco*|*-sco-*)
14110                 shadow_funcs="getprpwnam"
14111                 shadow_libs="-lprot -lx"
14112                 : ${mansectsu='1m'}
14113                 : ${mansectform='4'}
14114                 ;;
14115     m88k-motorola-sysv*)
14116                 # motorolla's cc (a variant of gcc) does -O but not -O2
14117                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14118                 : ${mansectsu='1m'}
14119                 : ${mansectform='4'}
14120                 ;;
14121     *-sequent-sysv*)
14122                 shadow_funcs="getspnam"
14123                 shadow_libs="-lsec"
14124                 : ${mansectsu='1m'}
14125                 : ${mansectform='4'}
14126                 : ${with_rpath='yes'}
14127                 ;;
14128     *-ncr-sysv4*|*-ncr-sysvr4*)
14129                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14130 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14131 if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14132   $as_echo_n "(cached) " >&6
14133 else
14134   ac_check_lib_save_LIBS=$LIBS
14135 LIBS="-lc89  $LIBS"
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h.  */
14138
14139 /* Override any GCC internal prototype to avoid an error.
14140    Use char because int might match the return type of a GCC
14141    builtin and then its argument prototype would still apply.  */
14142 #ifdef __cplusplus
14143 extern "C"
14144 #endif
14145 char strcasecmp ();
14146 int
14147 main ()
14148 {
14149 return strcasecmp ();
14150   ;
14151   return 0;
14152 }
14153 _ACEOF
14154 if ac_fn_c_try_link "$LINENO"; then :
14155   ac_cv_lib_c89_strcasecmp=yes
14156 else
14157   ac_cv_lib_c89_strcasecmp=no
14158 fi
14159 rm -f core conftest.err conftest.$ac_objext \
14160     conftest$ac_exeext conftest.$ac_ext
14161 LIBS=$ac_check_lib_save_LIBS
14162 fi
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14164 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14165 if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14166   LIBS="${LIBS} -lc89"
14167 fi
14168
14169                 : ${mansectsu='1m'}
14170                 : ${mansectform='4'}
14171                 : ${with_rpath='yes'}
14172                 ;;
14173     *-ccur-sysv4*|*-ccur-sysvr4*)
14174                 LIBS="${LIBS} -lgen"
14175                 : ${mansectsu='1m'}
14176                 : ${mansectform='4'}
14177                 : ${with_rpath='yes'}
14178                 ;;
14179     *-*-bsdi*)
14180                 SKIP_SETREUID=yes
14181                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
14182                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
14183                     case "$OSMAJOR" in
14184                         2|3)    { $as_echo "$as_me:${as_lineno-$LINENO}: using shlicc as CC" >&5
14185 $as_echo "$as_me: using shlicc as CC" >&6;}
14186                                 ac_cv_prog_CC=shlicc
14187                                 CC="$ac_cv_prog_CC"
14188                                 ;;
14189                     esac
14190                 fi
14191                 # Check for newer BSD auth API (just check for >= 3.0?)
14192                 if test -z "$with_bsdauth"; then
14193                     for ac_func in auth_challenge
14194 do :
14195   ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14196 if test "x$ac_cv_func_auth_challenge" = xyes; then :
14197   cat >>confdefs.h <<_ACEOF
14198 #define HAVE_AUTH_CHALLENGE 1
14199 _ACEOF
14200  AUTH_EXCL_DEF="BSD_AUTH"
14201 fi
14202 done
14203
14204                 fi
14205                 ;;
14206     *-*-freebsd*)
14207                 # FreeBSD has a real setreuid(2) starting with 2.1 and
14208                 # backported to 2.0.5.  We just take 2.1 and above...
14209                 case "$OSREV" in
14210                 0.*|1.*|2.0*)
14211                     SKIP_SETREUID=yes
14212                     ;;
14213                 esac
14214                 if test "${with_skey-'no'}" = "yes"; then
14215                      SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14216                 fi
14217                 CHECKSHADOW="false"
14218                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14219                 : ${with_logincap='maybe'}
14220                 ;;
14221     *-*-*openbsd*)
14222                 # OpenBSD has a real setreuid(2) starting with 3.3 but
14223                 # we will use setreuid(2) instead.
14224                 SKIP_SETREUID=yes
14225                 CHECKSHADOW="false"
14226                 # OpenBSD >= 3.0 supports BSD auth
14227                 if test -z "$with_bsdauth"; then
14228                     case "$OSREV" in
14229                     0-2.*)
14230                         ;;
14231                     *)
14232                         AUTH_EXCL_DEF="BSD_AUTH"
14233                         ;;
14234                     esac
14235                 fi
14236                 : ${with_logincap='maybe'}
14237                 ;;
14238     *-*-*netbsd*)
14239                 # NetBSD has a real setreuid(2) starting with 1.3.2
14240                 case "$OSREV" in
14241                 0.9*|1.012*|1.3|1.3.1)
14242                     SKIP_SETREUID=yes
14243                     ;;
14244                 esac
14245                 CHECKSHADOW="false"
14246                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14247                 : ${with_logincap='maybe'}
14248                 ;;
14249     *-*-dragonfly*)
14250                 if test "${with_skey-'no'}" = "yes"; then
14251                      SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14252                 fi
14253                 CHECKSHADOW="false"
14254                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14255                 : ${with_logincap='yes'}
14256                 ;;
14257     *-*-*bsd*)
14258                 CHECKSHADOW="false"
14259                 ;;
14260     *-*-darwin*)
14261                 # Darwin has a real setreuid(2) starting with 9.0
14262                 if test $OSMAJOR -lt 9; then
14263                     SKIP_SETREUID=yes
14264                 fi
14265                 CHECKSHADOW="false"
14266                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14267                 : ${with_logincap='yes'}
14268                 ;;
14269     *-*-nextstep*)
14270                 # lockf() on is broken on the NeXT -- use flock instead
14271                 ac_cv_func_lockf=no
14272                 ac_cv_func_flock=yes
14273                 ;;
14274     *-*-*sysv4*)
14275                 : ${mansectsu='1m'}
14276                 : ${mansectform='4'}
14277                 : ${with_rpath='yes'}
14278                 ;;
14279     *-*-sysv*)
14280                 : ${mansectsu='1m'}
14281                 : ${mansectform='4'}
14282                 ;;
14283     *-gnu*)
14284                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14285                 ;;
14286 esac
14287
14288 AUTH_REG=${AUTH_REG# }
14289 AUTH_EXCL=${AUTH_EXCL# }
14290 if test -n "$AUTH_EXCL"; then
14291     set -- $AUTH_EXCL
14292     if test $# != 1; then
14293         as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14294     fi
14295     if test -n "$AUTH_REG"; then
14296         as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14297     fi
14298 fi
14299 if test X"${with_skey}${with_opie}" = X"yesyes"; then
14300     as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14301 fi
14302
14303 : ${mansectsu='8'}
14304 : ${mansectform='5'}
14305
14306 if test -n "$with_libpath"; then
14307     for i in ${with_libpath}; do
14308
14309     if test X"$with_rpath" = X"yes"; then
14310         case "$host" in
14311             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
14312                         ;;
14313             *)          LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
14314                         ;;
14315         esac
14316     else
14317         LDFLAGS="${LDFLAGS} -L$i"
14318     fi
14319     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14320         blibpath_add="${blibpath_add}:$i"
14321     fi
14322
14323     done
14324 fi
14325 if test -n "$with_libraries"; then
14326     for i in ${with_libraries}; do
14327         case $i in
14328             -l*)        ;;
14329             *.a)        ;;
14330             *.o)        ;;
14331             *)  i="-l${i}";;
14332         esac
14333         LIBS="${LIBS} ${i}"
14334     done
14335 fi
14336
14337 if test $ac_cv_c_compiler_gnu = yes; then
14338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14339 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14340 if ${ac_cv_prog_gcc_traditional+:} false; then :
14341   $as_echo_n "(cached) " >&6
14342 else
14343     ac_pattern="Autoconf.*'x'"
14344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h.  */
14346 #include <sgtty.h>
14347 Autoconf TIOCGETP
14348 _ACEOF
14349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14350   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14351   ac_cv_prog_gcc_traditional=yes
14352 else
14353   ac_cv_prog_gcc_traditional=no
14354 fi
14355 rm -f conftest*
14356
14357
14358   if test $ac_cv_prog_gcc_traditional = no; then
14359     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h.  */
14361 #include <termio.h>
14362 Autoconf TCGETA
14363 _ACEOF
14364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14365   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14366   ac_cv_prog_gcc_traditional=yes
14367 fi
14368 rm -f conftest*
14369
14370   fi
14371 fi
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14373 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14374   if test $ac_cv_prog_gcc_traditional = yes; then
14375     CC="$CC -traditional"
14376   fi
14377 fi
14378
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14380 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14381 if ${ac_cv_c_const+:} false; then :
14382   $as_echo_n "(cached) " >&6
14383 else
14384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h.  */
14386
14387 int
14388 main ()
14389 {
14390 /* FIXME: Include the comments suggested by Paul. */
14391 #ifndef __cplusplus
14392   /* Ultrix mips cc rejects this.  */
14393   typedef int charset[2];
14394   const charset cs;
14395   /* SunOS 4.1.1 cc rejects this.  */
14396   char const *const *pcpcc;
14397   char **ppc;
14398   /* NEC SVR4.0.2 mips cc rejects this.  */
14399   struct point {int x, y;};
14400   static struct point const zero = {0,0};
14401   /* AIX XL C 1.02.0.0 rejects this.
14402      It does not let you subtract one const X* pointer from another in
14403      an arm of an if-expression whose if-part is not a constant
14404      expression */
14405   const char *g = "string";
14406   pcpcc = &g + (g ? g-g : 0);
14407   /* HPUX 7.0 cc rejects these. */
14408   ++pcpcc;
14409   ppc = (char**) pcpcc;
14410   pcpcc = (char const *const *) ppc;
14411   { /* SCO 3.2v4 cc rejects this.  */
14412     char *t;
14413     char const *s = 0 ? (char *) 0 : (char const *) 0;
14414
14415     *t++ = 0;
14416     if (s) return 0;
14417   }
14418   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14419     int x[] = {25, 17};
14420     const int *foo = &x[0];
14421     ++foo;
14422   }
14423   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14424     typedef const int *iptr;
14425     iptr p = 0;
14426     ++p;
14427   }
14428   { /* AIX XL C 1.02.0.0 rejects this saying
14429        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14430     struct s { int j; const int *ap[3]; };
14431     struct s *b; b->j = 5;
14432   }
14433   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14434     const int foo = 10;
14435     if (!foo) return 0;
14436   }
14437   return !cs[0] && !zero.x;
14438 #endif
14439
14440   ;
14441   return 0;
14442 }
14443 _ACEOF
14444 if ac_fn_c_try_compile "$LINENO"; then :
14445   ac_cv_c_const=yes
14446 else
14447   ac_cv_c_const=no
14448 fi
14449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450 fi
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14452 $as_echo "$ac_cv_c_const" >&6; }
14453 if test $ac_cv_c_const = no; then
14454
14455 $as_echo "#define const /**/" >>confdefs.h
14456
14457 fi
14458
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14460 $as_echo_n "checking for working volatile... " >&6; }
14461 if ${ac_cv_c_volatile+:} false; then :
14462   $as_echo_n "(cached) " >&6
14463 else
14464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h.  */
14466
14467 int
14468 main ()
14469 {
14470
14471 volatile int x;
14472 int * volatile y = (int *) 0;
14473 return !x && !y;
14474   ;
14475   return 0;
14476 }
14477 _ACEOF
14478 if ac_fn_c_try_compile "$LINENO"; then :
14479   ac_cv_c_volatile=yes
14480 else
14481   ac_cv_c_volatile=no
14482 fi
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484 fi
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14486 $as_echo "$ac_cv_c_volatile" >&6; }
14487 if test $ac_cv_c_volatile = no; then
14488
14489 $as_echo "#define volatile /**/" >>confdefs.h
14490
14491 fi
14492
14493 if test X"$with_gnu_ld" != "yes" -a -n "$GCC"; then
14494     _CFLAGS="$CFLAGS"
14495     CFLAGS="$CFLAGS -static-libgcc"
14496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -static-libgcc" >&5
14497 $as_echo_n "checking whether $CC understands -static-libgcc... " >&6; }
14498 if ${sudo_cv_var_gcc_static_libgcc+:} false; then :
14499   $as_echo_n "(cached) " >&6
14500 else
14501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h.  */
14503
14504 int
14505 main ()
14506 {
14507
14508   ;
14509   return 0;
14510 }
14511 _ACEOF
14512 if ac_fn_c_try_link "$LINENO"; then :
14513   sudo_cv_var_gcc_static_libgcc=yes
14514 else
14515   sudo_cv_var_gcc_static_libgcc=no
14516
14517 fi
14518 rm -f core conftest.err conftest.$ac_objext \
14519     conftest$ac_exeext conftest.$ac_ext
14520
14521
14522 fi
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gcc_static_libgcc" >&5
14524 $as_echo "$sudo_cv_var_gcc_static_libgcc" >&6; }
14525     CFLAGS="$_CFLAGS"
14526     if test "$sudo_cv_var_gcc_static_libgcc" = "yes"; then
14527         LTLDFLAGS="$LTLDFLAGS -Wc,-static-libgcc"
14528     fi
14529 fi
14530 for ac_prog in 'bison -y' byacc
14531 do
14532   # Extract the first word of "$ac_prog", so it can be a program name with args.
14533 set dummy $ac_prog; ac_word=$2
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14535 $as_echo_n "checking for $ac_word... " >&6; }
14536 if ${ac_cv_prog_YACC+:} false; then :
14537   $as_echo_n "(cached) " >&6
14538 else
14539   if test -n "$YACC"; then
14540   ac_cv_prog_YACC="$YACC" # Let the user override the test.
14541 else
14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14544 do
14545   IFS=$as_save_IFS
14546   test -z "$as_dir" && as_dir=.
14547     for ac_exec_ext in '' $ac_executable_extensions; do
14548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14549     ac_cv_prog_YACC="$ac_prog"
14550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14551     break 2
14552   fi
14553 done
14554   done
14555 IFS=$as_save_IFS
14556
14557 fi
14558 fi
14559 YACC=$ac_cv_prog_YACC
14560 if test -n "$YACC"; then
14561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14562 $as_echo "$YACC" >&6; }
14563 else
14564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14565 $as_echo "no" >&6; }
14566 fi
14567
14568
14569   test -n "$YACC" && break
14570 done
14571 test -n "$YACC" || YACC="yacc"
14572
14573 # Extract the first word of "flex", so it can be a program name with args.
14574 set dummy flex; ac_word=$2
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14576 $as_echo_n "checking for $ac_word... " >&6; }
14577 if ${ac_cv_path_FLEX+:} false; then :
14578   $as_echo_n "(cached) " >&6
14579 else
14580   case $FLEX in
14581   [\\/]* | ?:[\\/]*)
14582   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14583   ;;
14584   *)
14585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586 for as_dir in $PATH
14587 do
14588   IFS=$as_save_IFS
14589   test -z "$as_dir" && as_dir=.
14590     for ac_exec_ext in '' $ac_executable_extensions; do
14591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14592     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14594     break 2
14595   fi
14596 done
14597   done
14598 IFS=$as_save_IFS
14599
14600   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14601   ;;
14602 esac
14603 fi
14604 FLEX=$ac_cv_path_FLEX
14605 if test -n "$FLEX"; then
14606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14607 $as_echo "$FLEX" >&6; }
14608 else
14609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14610 $as_echo "no" >&6; }
14611 fi
14612
14613
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14615 $as_echo_n "checking for mv... " >&6; }
14616 found=no
14617 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14618     if test -f "$p"; then
14619         found=yes
14620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14621 $as_echo "$p" >&6; }
14622         cat >>confdefs.h <<EOF
14623 #define _PATH_MV "$p"
14624 EOF
14625
14626         break
14627     fi
14628 done
14629 if test X"$found" != X"yes"; then
14630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14631 $as_echo "not found" >&6; }
14632 fi
14633
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14635 $as_echo_n "checking for bourne shell... " >&6; }
14636 found=no
14637 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14638     if test -f "$p"; then
14639         found=yes
14640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14641 $as_echo "$p" >&6; }
14642         cat >>confdefs.h <<EOF
14643 #define _PATH_BSHELL "$p"
14644 EOF
14645
14646         break
14647     fi
14648 done
14649 if test X"$found" != X"yes"; then
14650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14651 $as_echo "not found" >&6; }
14652 fi
14653
14654 if test -z "$with_sendmail"; then
14655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14656 $as_echo_n "checking for sendmail... " >&6; }
14657 found=no
14658 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14659     if test -f "$p"; then
14660         found=yes
14661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14662 $as_echo "$p" >&6; }
14663         cat >>confdefs.h <<EOF
14664 #define _PATH_SUDO_SENDMAIL "$p"
14665 EOF
14666
14667         break
14668     fi
14669 done
14670 if test X"$found" != X"yes"; then
14671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14672 $as_echo "not found" >&6; }
14673 fi
14674
14675 fi
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14677 $as_echo_n "checking for vi... " >&6; }
14678 found=no
14679 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
14680     if test -f "$editor"; then
14681         found=yes
14682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
14683 $as_echo "$editor" >&6; }
14684         cat >>confdefs.h <<EOF
14685 #define _PATH_VI "$editor"
14686 EOF
14687
14688         break
14689     fi
14690 done
14691 if test X"$found" != X"yes"; then
14692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14693 $as_echo "not found" >&6; }
14694 fi
14695
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
14697 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
14698 if test X"$with_logfac" = X""; then
14699     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h.  */
14701 #include <syslog.h>
14702 int
14703 main ()
14704 {
14705 int i = LOG_AUTHPRIV; (void)i;
14706   ;
14707   return 0;
14708 }
14709 _ACEOF
14710 if ac_fn_c_try_compile "$LINENO"; then :
14711   logfac=authpriv
14712 fi
14713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14714 fi
14715
14716 cat >>confdefs.h <<_ACEOF
14717 #define LOGFAC "$logfac"
14718 _ACEOF
14719
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
14721 $as_echo "$logfac" >&6; }
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14723 $as_echo_n "checking for ANSI C header files... " >&6; }
14724 if ${ac_cv_header_stdc+:} false; then :
14725   $as_echo_n "(cached) " >&6
14726 else
14727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h.  */
14729 #include <stdlib.h>
14730 #include <stdarg.h>
14731 #include <string.h>
14732 #include <float.h>
14733
14734 int
14735 main ()
14736 {
14737
14738   ;
14739   return 0;
14740 }
14741 _ACEOF
14742 if ac_fn_c_try_compile "$LINENO"; then :
14743   ac_cv_header_stdc=yes
14744 else
14745   ac_cv_header_stdc=no
14746 fi
14747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14748
14749 if test $ac_cv_header_stdc = yes; then
14750   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h.  */
14753 #include <string.h>
14754
14755 _ACEOF
14756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14757   $EGREP "memchr" >/dev/null 2>&1; then :
14758
14759 else
14760   ac_cv_header_stdc=no
14761 fi
14762 rm -f conftest*
14763
14764 fi
14765
14766 if test $ac_cv_header_stdc = yes; then
14767   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h.  */
14770 #include <stdlib.h>
14771
14772 _ACEOF
14773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14774   $EGREP "free" >/dev/null 2>&1; then :
14775
14776 else
14777   ac_cv_header_stdc=no
14778 fi
14779 rm -f conftest*
14780
14781 fi
14782
14783 if test $ac_cv_header_stdc = yes; then
14784   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14785   if test "$cross_compiling" = yes; then :
14786   :
14787 else
14788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h.  */
14790 #include <ctype.h>
14791 #include <stdlib.h>
14792 #if ((' ' & 0x0FF) == 0x020)
14793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14795 #else
14796 # define ISLOWER(c) \
14797                    (('a' <= (c) && (c) <= 'i') \
14798                      || ('j' <= (c) && (c) <= 'r') \
14799                      || ('s' <= (c) && (c) <= 'z'))
14800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14801 #endif
14802
14803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14804 int
14805 main ()
14806 {
14807   int i;
14808   for (i = 0; i < 256; i++)
14809     if (XOR (islower (i), ISLOWER (i))
14810         || toupper (i) != TOUPPER (i))
14811       return 2;
14812   return 0;
14813 }
14814 _ACEOF
14815 if ac_fn_c_try_run "$LINENO"; then :
14816
14817 else
14818   ac_cv_header_stdc=no
14819 fi
14820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14821   conftest.$ac_objext conftest.beam conftest.$ac_ext
14822 fi
14823
14824 fi
14825 fi
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14827 $as_echo "$ac_cv_header_stdc" >&6; }
14828 if test $ac_cv_header_stdc = yes; then
14829
14830 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14831
14832 fi
14833
14834 ac_header_dirent=no
14835 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14836   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14838 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14839 if eval \${$as_ac_Header+:} false; then :
14840   $as_echo_n "(cached) " >&6
14841 else
14842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h.  */
14844 #include <sys/types.h>
14845 #include <$ac_hdr>
14846
14847 int
14848 main ()
14849 {
14850 if ((DIR *) 0)
14851 return 0;
14852   ;
14853   return 0;
14854 }
14855 _ACEOF
14856 if ac_fn_c_try_compile "$LINENO"; then :
14857   eval "$as_ac_Header=yes"
14858 else
14859   eval "$as_ac_Header=no"
14860 fi
14861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14862 fi
14863 eval ac_res=\$$as_ac_Header
14864                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14865 $as_echo "$ac_res" >&6; }
14866 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14867   cat >>confdefs.h <<_ACEOF
14868 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14869 _ACEOF
14870
14871 ac_header_dirent=$ac_hdr; break
14872 fi
14873
14874 done
14875 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14876 if test $ac_header_dirent = dirent.h; then
14877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14878 $as_echo_n "checking for library containing opendir... " >&6; }
14879 if ${ac_cv_search_opendir+:} false; then :
14880   $as_echo_n "(cached) " >&6
14881 else
14882   ac_func_search_save_LIBS=$LIBS
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h.  */
14885
14886 /* Override any GCC internal prototype to avoid an error.
14887    Use char because int might match the return type of a GCC
14888    builtin and then its argument prototype would still apply.  */
14889 #ifdef __cplusplus
14890 extern "C"
14891 #endif
14892 char opendir ();
14893 int
14894 main ()
14895 {
14896 return opendir ();
14897   ;
14898   return 0;
14899 }
14900 _ACEOF
14901 for ac_lib in '' dir; do
14902   if test -z "$ac_lib"; then
14903     ac_res="none required"
14904   else
14905     ac_res=-l$ac_lib
14906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14907   fi
14908   if ac_fn_c_try_link "$LINENO"; then :
14909   ac_cv_search_opendir=$ac_res
14910 fi
14911 rm -f core conftest.err conftest.$ac_objext \
14912     conftest$ac_exeext
14913   if ${ac_cv_search_opendir+:} false; then :
14914   break
14915 fi
14916 done
14917 if ${ac_cv_search_opendir+:} false; then :
14918
14919 else
14920   ac_cv_search_opendir=no
14921 fi
14922 rm conftest.$ac_ext
14923 LIBS=$ac_func_search_save_LIBS
14924 fi
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14926 $as_echo "$ac_cv_search_opendir" >&6; }
14927 ac_res=$ac_cv_search_opendir
14928 if test "$ac_res" != no; then :
14929   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14930
14931 fi
14932
14933 else
14934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14935 $as_echo_n "checking for library containing opendir... " >&6; }
14936 if ${ac_cv_search_opendir+:} false; then :
14937   $as_echo_n "(cached) " >&6
14938 else
14939   ac_func_search_save_LIBS=$LIBS
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h.  */
14942
14943 /* Override any GCC internal prototype to avoid an error.
14944    Use char because int might match the return type of a GCC
14945    builtin and then its argument prototype would still apply.  */
14946 #ifdef __cplusplus
14947 extern "C"
14948 #endif
14949 char opendir ();
14950 int
14951 main ()
14952 {
14953 return opendir ();
14954   ;
14955   return 0;
14956 }
14957 _ACEOF
14958 for ac_lib in '' x; do
14959   if test -z "$ac_lib"; then
14960     ac_res="none required"
14961   else
14962     ac_res=-l$ac_lib
14963     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14964   fi
14965   if ac_fn_c_try_link "$LINENO"; then :
14966   ac_cv_search_opendir=$ac_res
14967 fi
14968 rm -f core conftest.err conftest.$ac_objext \
14969     conftest$ac_exeext
14970   if ${ac_cv_search_opendir+:} false; then :
14971   break
14972 fi
14973 done
14974 if ${ac_cv_search_opendir+:} false; then :
14975
14976 else
14977   ac_cv_search_opendir=no
14978 fi
14979 rm conftest.$ac_ext
14980 LIBS=$ac_func_search_save_LIBS
14981 fi
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14983 $as_echo "$ac_cv_search_opendir" >&6; }
14984 ac_res=$ac_cv_search_opendir
14985 if test "$ac_res" != no; then :
14986   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14987
14988 fi
14989
14990 fi
14991
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14993 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14994 if ${ac_cv_header_time+:} false; then :
14995   $as_echo_n "(cached) " >&6
14996 else
14997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h.  */
14999 #include <sys/types.h>
15000 #include <sys/time.h>
15001 #include <time.h>
15002
15003 int
15004 main ()
15005 {
15006 if ((struct tm *) 0)
15007 return 0;
15008   ;
15009   return 0;
15010 }
15011 _ACEOF
15012 if ac_fn_c_try_compile "$LINENO"; then :
15013   ac_cv_header_time=yes
15014 else
15015   ac_cv_header_time=no
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 fi
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15020 $as_echo "$ac_cv_header_time" >&6; }
15021 if test $ac_cv_header_time = yes; then
15022
15023 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15024
15025 fi
15026
15027 for ac_header in malloc.h paths.h utime.h netgroup.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15028 do :
15029   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15030 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15031 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15032   cat >>confdefs.h <<_ACEOF
15033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15034 _ACEOF
15035
15036 fi
15037
15038 done
15039
15040 # Check whether --enable-largefile was given.
15041 if test "${enable_largefile+set}" = set; then :
15042   enableval=$enable_largefile;
15043 fi
15044
15045 if test "$enable_largefile" != no; then
15046
15047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15048 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15049 if ${ac_cv_sys_largefile_CC+:} false; then :
15050   $as_echo_n "(cached) " >&6
15051 else
15052   ac_cv_sys_largefile_CC=no
15053      if test "$GCC" != yes; then
15054        ac_save_CC=$CC
15055        while :; do
15056          # IRIX 6.2 and later do not support large files by default,
15057          # so use the C compiler's -n32 option if that helps.
15058          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h.  */
15060 #include <sys/types.h>
15061  /* Check that off_t can represent 2**63 - 1 correctly.
15062     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15063     since some C++ compilers masquerading as C compilers
15064     incorrectly reject 9223372036854775807.  */
15065 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15066   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15067                        && LARGE_OFF_T % 2147483647 == 1)
15068                       ? 1 : -1];
15069 int
15070 main ()
15071 {
15072
15073   ;
15074   return 0;
15075 }
15076 _ACEOF
15077          if ac_fn_c_try_compile "$LINENO"; then :
15078   break
15079 fi
15080 rm -f core conftest.err conftest.$ac_objext
15081          CC="$CC -n32"
15082          if ac_fn_c_try_compile "$LINENO"; then :
15083   ac_cv_sys_largefile_CC=' -n32'; break
15084 fi
15085 rm -f core conftest.err conftest.$ac_objext
15086          break
15087        done
15088        CC=$ac_save_CC
15089        rm -f conftest.$ac_ext
15090     fi
15091 fi
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15093 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15094   if test "$ac_cv_sys_largefile_CC" != no; then
15095     CC=$CC$ac_cv_sys_largefile_CC
15096   fi
15097
15098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15099 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15100 if ${ac_cv_sys_file_offset_bits+:} false; then :
15101   $as_echo_n "(cached) " >&6
15102 else
15103   while :; do
15104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h.  */
15106 #include <sys/types.h>
15107  /* Check that off_t can represent 2**63 - 1 correctly.
15108     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15109     since some C++ compilers masquerading as C compilers
15110     incorrectly reject 9223372036854775807.  */
15111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15112   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15113                        && LARGE_OFF_T % 2147483647 == 1)
15114                       ? 1 : -1];
15115 int
15116 main ()
15117 {
15118
15119   ;
15120   return 0;
15121 }
15122 _ACEOF
15123 if ac_fn_c_try_compile "$LINENO"; then :
15124   ac_cv_sys_file_offset_bits=no; break
15125 fi
15126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h.  */
15129 #define _FILE_OFFSET_BITS 64
15130 #include <sys/types.h>
15131  /* Check that off_t can represent 2**63 - 1 correctly.
15132     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15133     since some C++ compilers masquerading as C compilers
15134     incorrectly reject 9223372036854775807.  */
15135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15136   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15137                        && LARGE_OFF_T % 2147483647 == 1)
15138                       ? 1 : -1];
15139 int
15140 main ()
15141 {
15142
15143   ;
15144   return 0;
15145 }
15146 _ACEOF
15147 if ac_fn_c_try_compile "$LINENO"; then :
15148   ac_cv_sys_file_offset_bits=64; break
15149 fi
15150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151   ac_cv_sys_file_offset_bits=unknown
15152   break
15153 done
15154 fi
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15156 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15157 case $ac_cv_sys_file_offset_bits in #(
15158   no | unknown) ;;
15159   *)
15160 cat >>confdefs.h <<_ACEOF
15161 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15162 _ACEOF
15163 ;;
15164 esac
15165 rm -rf conftest*
15166   if test $ac_cv_sys_file_offset_bits = unknown; then
15167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15168 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15169 if ${ac_cv_sys_large_files+:} false; then :
15170   $as_echo_n "(cached) " >&6
15171 else
15172   while :; do
15173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h.  */
15175 #include <sys/types.h>
15176  /* Check that off_t can represent 2**63 - 1 correctly.
15177     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15178     since some C++ compilers masquerading as C compilers
15179     incorrectly reject 9223372036854775807.  */
15180 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15181   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15182                        && LARGE_OFF_T % 2147483647 == 1)
15183                       ? 1 : -1];
15184 int
15185 main ()
15186 {
15187
15188   ;
15189   return 0;
15190 }
15191 _ACEOF
15192 if ac_fn_c_try_compile "$LINENO"; then :
15193   ac_cv_sys_large_files=no; break
15194 fi
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h.  */
15198 #define _LARGE_FILES 1
15199 #include <sys/types.h>
15200  /* Check that off_t can represent 2**63 - 1 correctly.
15201     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15202     since some C++ compilers masquerading as C compilers
15203     incorrectly reject 9223372036854775807.  */
15204 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15205   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15206                        && LARGE_OFF_T % 2147483647 == 1)
15207                       ? 1 : -1];
15208 int
15209 main ()
15210 {
15211
15212   ;
15213   return 0;
15214 }
15215 _ACEOF
15216 if ac_fn_c_try_compile "$LINENO"; then :
15217   ac_cv_sys_large_files=1; break
15218 fi
15219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220   ac_cv_sys_large_files=unknown
15221   break
15222 done
15223 fi
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15225 $as_echo "$ac_cv_sys_large_files" >&6; }
15226 case $ac_cv_sys_large_files in #(
15227   no | unknown) ;;
15228   *)
15229 cat >>confdefs.h <<_ACEOF
15230 #define _LARGE_FILES $ac_cv_sys_large_files
15231 _ACEOF
15232 ;;
15233 esac
15234 rm -rf conftest*
15235   fi
15236 fi
15237
15238 case "$host" in
15239     *-*-hpux11.*)
15240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15241 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15242 if ${sudo_cv_xopen_source_extended+:} false; then :
15243   $as_echo_n "(cached) " >&6
15244 else
15245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h.  */
15247 $ac_includes_default
15248         #include <sys/socket.h>
15249 int
15250 main ()
15251 {
15252
15253   ;
15254   return 0;
15255 }
15256 _ACEOF
15257 if ac_fn_c_try_compile "$LINENO"; then :
15258   sudo_cv_xopen_source_extended=no
15259 else
15260
15261             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h.  */
15263 #define _XOPEN_SOURCE_EXTENDED
15264             $ac_includes_default
15265             #include <sys/socket.h>
15266 int
15267 main ()
15268 {
15269
15270   ;
15271   return 0;
15272 }
15273 _ACEOF
15274 if ac_fn_c_try_compile "$LINENO"; then :
15275   sudo_cv_xopen_source_extended=yes
15276 else
15277   sudo_cv_xopen_source_extended=error
15278 fi
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280
15281 fi
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 fi
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15285 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15286         if test "$sudo_cv_xopen_source_extended" = "yes"; then
15287             OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15288             cat >>confdefs.h <<\EOF
15289 #define _XOPEN_SOURCE_EXTENDED 1
15290 EOF
15291
15292         fi
15293         ;;
15294 esac
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15296 $as_echo_n "checking POSIX termios... " >&6; }
15297 if ${ac_cv_sys_posix_termios+:} false; then :
15298   $as_echo_n "(cached) " >&6
15299 else
15300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h.  */
15302 #include <sys/types.h>
15303 #include <unistd.h>
15304 #include <termios.h>
15305
15306 int
15307 main ()
15308 {
15309 /* SunOS 4.0.3 has termios.h but not the library calls.  */
15310    tcgetattr(0, 0);
15311   ;
15312   return 0;
15313 }
15314 _ACEOF
15315 if ac_fn_c_try_link "$LINENO"; then :
15316   ac_cv_sys_posix_termios=yes
15317 else
15318   ac_cv_sys_posix_termios=no
15319 fi
15320 rm -f core conftest.err conftest.$ac_objext \
15321     conftest$ac_exeext conftest.$ac_ext
15322 fi
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15324 $as_echo "$ac_cv_sys_posix_termios" >&6; }
15325
15326 if test "$ac_cv_sys_posix_termios" != "yes"; then
15327     as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15328 fi
15329
15330 maildir=no
15331 if test X"$ac_cv_header_paths_h" = X"yes"; then
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h.  */
15334 $ac_includes_default
15335 #include <paths.h>
15336 int
15337 main ()
15338 {
15339 char *p = _PATH_MAILDIR;
15340   ;
15341   return 0;
15342 }
15343 _ACEOF
15344 if ac_fn_c_try_compile "$LINENO"; then :
15345   maildir=yes
15346 fi
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 fi
15349 if test $maildir = no; then
15350     # Solaris has maillock.h which defines MAILDIR
15351     for ac_header in maillock.h
15352 do :
15353   ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15354 if test "x$ac_cv_header_maillock_h" = xyes; then :
15355   cat >>confdefs.h <<_ACEOF
15356 #define HAVE_MAILLOCK_H 1
15357 _ACEOF
15358
15359         cat >>confdefs.h <<\EOF
15360 #define _PATH_MAILDIR MAILDIR
15361 EOF
15362
15363         maildir=yes
15364
15365 fi
15366
15367 done
15368
15369     if test $maildir = no; then
15370         for d in /var/mail /var/spool/mail /usr/spool/mail; do
15371             if test -d "$d"; then
15372                 maildir=yes
15373                 cat >>confdefs.h <<EOF
15374 #define _PATH_MAILDIR "$d"
15375 EOF
15376
15377                 break
15378             fi
15379         done
15380         if test $maildir = no; then
15381             # unable to find mail dir, hope for the best
15382             cat >>confdefs.h <<EOF
15383 #define _PATH_MAILDIR "/var/mail"
15384 EOF
15385
15386         fi
15387     fi
15388 fi
15389
15390 if test ${with_logincap-'no'} != "no"; then
15391     for ac_header in login_cap.h
15392 do :
15393   ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15394 if test "x$ac_cv_header_login_cap_h" = xyes; then :
15395   cat >>confdefs.h <<_ACEOF
15396 #define HAVE_LOGIN_CAP_H 1
15397 _ACEOF
15398  LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15399         case "$OS" in
15400             freebsd|netbsd)
15401                 SUDO_LIBS="${SUDO_LIBS} -lutil"
15402                 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15403                 ;;
15404         esac
15405
15406 fi
15407
15408 done
15409
15410 fi
15411 if test ${with_project-'no'} != "no"; then
15412     ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15413 if test "x$ac_cv_header_project_h" = xyes; then :
15414
15415         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15416 $as_echo_n "checking for setproject in -lproject... " >&6; }
15417 if ${ac_cv_lib_project_setproject+:} false; then :
15418   $as_echo_n "(cached) " >&6
15419 else
15420   ac_check_lib_save_LIBS=$LIBS
15421 LIBS="-lproject  $LIBS"
15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h.  */
15424
15425 /* Override any GCC internal prototype to avoid an error.
15426    Use char because int might match the return type of a GCC
15427    builtin and then its argument prototype would still apply.  */
15428 #ifdef __cplusplus
15429 extern "C"
15430 #endif
15431 char setproject ();
15432 int
15433 main ()
15434 {
15435 return setproject ();
15436   ;
15437   return 0;
15438 }
15439 _ACEOF
15440 if ac_fn_c_try_link "$LINENO"; then :
15441   ac_cv_lib_project_setproject=yes
15442 else
15443   ac_cv_lib_project_setproject=no
15444 fi
15445 rm -f core conftest.err conftest.$ac_objext \
15446     conftest$ac_exeext conftest.$ac_ext
15447 LIBS=$ac_check_lib_save_LIBS
15448 fi
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15450 $as_echo "$ac_cv_lib_project_setproject" >&6; }
15451 if test "x$ac_cv_lib_project_setproject" = xyes; then :
15452
15453             $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15454
15455             SUDO_LIBS="${SUDO_LIBS} -lproject"
15456
15457 fi
15458
15459
15460 fi
15461
15462
15463 fi
15464 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15465 if test "x$ac_cv_type_mode_t" = xyes; then :
15466
15467 else
15468
15469 cat >>confdefs.h <<_ACEOF
15470 #define mode_t int
15471 _ACEOF
15472
15473 fi
15474
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15476 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15477 if ${ac_cv_type_uid_t+:} false; then :
15478   $as_echo_n "(cached) " >&6
15479 else
15480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h.  */
15482 #include <sys/types.h>
15483
15484 _ACEOF
15485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15486   $EGREP "uid_t" >/dev/null 2>&1; then :
15487   ac_cv_type_uid_t=yes
15488 else
15489   ac_cv_type_uid_t=no
15490 fi
15491 rm -f conftest*
15492
15493 fi
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15495 $as_echo "$ac_cv_type_uid_t" >&6; }
15496 if test $ac_cv_type_uid_t = no; then
15497
15498 $as_echo "#define uid_t int" >>confdefs.h
15499
15500
15501 $as_echo "#define gid_t int" >>confdefs.h
15502
15503 fi
15504
15505 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
15506 if test "x$ac_cv_type___signed_char" = xyes; then :
15507
15508 else
15509   ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
15510 if test "x$ac_cv_type_signed_char" = xyes; then :
15511   $as_echo "#define __signed signed" >>confdefs.h
15512
15513 else
15514   $as_echo "#define __signed /**/" >>confdefs.h
15515
15516 fi
15517
15518 fi
15519
15520 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
15521 #include <signal.h>
15522 "
15523 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15524
15525 else
15526   $as_echo "#define sig_atomic_t int" >>confdefs.h
15527
15528 fi
15529
15530 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
15531 #include <signal.h>
15532 "
15533 if test "x$ac_cv_type_sigaction_t" = xyes; then :
15534
15535 cat >>confdefs.h <<_ACEOF
15536 #define HAVE_SIGACTION_T 1
15537 _ACEOF
15538
15539 $as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
15540
15541 fi
15542
15543 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
15544 #if TIME_WITH_SYS_TIME
15545 # include <sys/time.h>
15546 #endif
15547 #include <time.h>
15548 "
15549 if test "x$ac_cv_type_struct_timespec" = xyes; then :
15550   $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
15551
15552 fi
15553
15554 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
15555 #include <netinet/in.h>
15556 "
15557 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15558
15559 cat >>confdefs.h <<_ACEOF
15560 #define HAVE_STRUCT_IN6_ADDR 1
15561 _ACEOF
15562
15563 $as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
15564
15565 fi
15566
15567
15568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15569 $as_echo_n "checking for long long int... " >&6; }
15570 if ${ac_cv_type_long_long_int+:} false; then :
15571   $as_echo_n "(cached) " >&6
15572 else
15573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15574 /* end confdefs.h.  */
15575
15576   /* For now, do not test the preprocessor; as of 2007 there are too many
15577          implementations with broken preprocessors.  Perhaps this can
15578          be revisited in 2012.  In the meantime, code should not expect
15579          #if to work with literals wider than 32 bits.  */
15580       /* Test literals.  */
15581       long long int ll = 9223372036854775807ll;
15582       long long int nll = -9223372036854775807LL;
15583       unsigned long long int ull = 18446744073709551615ULL;
15584       /* Test constant expressions.   */
15585       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15586                      ? 1 : -1)];
15587       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15588                      ? 1 : -1)];
15589       int i = 63;
15590 int
15591 main ()
15592 {
15593 /* Test availability of runtime routines for shift and division.  */
15594       long long int llmax = 9223372036854775807ll;
15595       unsigned long long int ullmax = 18446744073709551615ull;
15596       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15597               | (llmax / ll) | (llmax % ll)
15598               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15599               | (ullmax / ull) | (ullmax % ull));
15600   ;
15601   return 0;
15602 }
15603
15604 _ACEOF
15605 if ac_fn_c_try_link "$LINENO"; then :
15606                         if test "$cross_compiling" = yes; then :
15607   ac_cv_type_long_long_int=yes
15608 else
15609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h.  */
15611 #include <limits.h>
15612                #ifndef LLONG_MAX
15613                # define HALF \
15614                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15615                # define LLONG_MAX (HALF - 1 + HALF)
15616                #endif
15617 int
15618 main ()
15619 {
15620 long long int n = 1;
15621                int i;
15622                for (i = 0; ; i++)
15623                  {
15624                    long long int m = n << i;
15625                    if (m >> i != n)
15626                      return 1;
15627                    if (LLONG_MAX / 2 < m)
15628                      break;
15629                  }
15630                return 0;
15631   ;
15632   return 0;
15633 }
15634 _ACEOF
15635 if ac_fn_c_try_run "$LINENO"; then :
15636   ac_cv_type_long_long_int=yes
15637 else
15638   ac_cv_type_long_long_int=no
15639 fi
15640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15641   conftest.$ac_objext conftest.beam conftest.$ac_ext
15642 fi
15643
15644 else
15645   ac_cv_type_long_long_int=no
15646 fi
15647 rm -f core conftest.err conftest.$ac_objext \
15648     conftest$ac_exeext conftest.$ac_ext
15649 fi
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15651 $as_echo "$ac_cv_type_long_long_int" >&6; }
15652   if test $ac_cv_type_long_long_int = yes; then
15653
15654 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15655
15656   fi
15657
15658 # The cast to long int works around a bug in the HP C Compiler
15659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15661 # This bug is HP SR number 8606223364.
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
15663 $as_echo_n "checking size of long int... " >&6; }
15664 if ${ac_cv_sizeof_long_int+:} false; then :
15665   $as_echo_n "(cached) " >&6
15666 else
15667   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
15668
15669 else
15670   if test "$ac_cv_type_long_int" = yes; then
15671      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15673 as_fn_error 77 "cannot compute sizeof (long int)
15674 See \`config.log' for more details" "$LINENO" 5; }
15675    else
15676      ac_cv_sizeof_long_int=0
15677    fi
15678 fi
15679
15680 fi
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
15682 $as_echo "$ac_cv_sizeof_long_int" >&6; }
15683
15684
15685
15686 cat >>confdefs.h <<_ACEOF
15687 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15688 _ACEOF
15689
15690
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
15692 $as_echo_n "checking for size_t... " >&6; }
15693 if ${sudo_cv_type_size_t+:} false; then :
15694   $as_echo_n "(cached) " >&6
15695 else
15696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h.  */
15698 #include <sys/types.h>
15699 #include <stdio.h>
15700 #if STDC_HEADERS
15701 #include <stdlib.h>
15702 #endif
15703 #if HAVE_UNISTD_H
15704 #include <unistd.h>
15705 #endif
15706 _ACEOF
15707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15708   $EGREP "size_t" >/dev/null 2>&1; then :
15709   sudo_cv_type_size_t=yes
15710 else
15711   sudo_cv_type_size_t=no
15712 fi
15713 rm -f conftest*
15714
15715 fi
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
15717 $as_echo "$sudo_cv_type_size_t" >&6; }
15718 if test $sudo_cv_type_size_t = no; then
15719
15720 $as_echo "#define size_t int" >>confdefs.h
15721
15722 fi
15723
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15725 $as_echo_n "checking for ssize_t... " >&6; }
15726 if ${sudo_cv_type_ssize_t+:} false; then :
15727   $as_echo_n "(cached) " >&6
15728 else
15729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15730 /* end confdefs.h.  */
15731 #include <sys/types.h>
15732 #include <stdio.h>
15733 #if STDC_HEADERS
15734 #include <stdlib.h>
15735 #endif
15736 #if HAVE_UNISTD_H
15737 #include <unistd.h>
15738 #endif
15739 _ACEOF
15740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15741   $EGREP "ssize_t" >/dev/null 2>&1; then :
15742   sudo_cv_type_ssize_t=yes
15743 else
15744   sudo_cv_type_ssize_t=no
15745 fi
15746 rm -f conftest*
15747
15748 fi
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
15750 $as_echo "$sudo_cv_type_ssize_t" >&6; }
15751 if test $sudo_cv_type_ssize_t = no; then
15752
15753 $as_echo "#define ssize_t int" >>confdefs.h
15754
15755 fi
15756
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
15758 $as_echo_n "checking for dev_t... " >&6; }
15759 if ${sudo_cv_type_dev_t+:} false; then :
15760   $as_echo_n "(cached) " >&6
15761 else
15762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h.  */
15764 #include <sys/types.h>
15765 #include <stdio.h>
15766 #if STDC_HEADERS
15767 #include <stdlib.h>
15768 #endif
15769 #if HAVE_UNISTD_H
15770 #include <unistd.h>
15771 #endif
15772 _ACEOF
15773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15774   $EGREP "dev_t" >/dev/null 2>&1; then :
15775   sudo_cv_type_dev_t=yes
15776 else
15777   sudo_cv_type_dev_t=no
15778 fi
15779 rm -f conftest*
15780
15781 fi
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
15783 $as_echo "$sudo_cv_type_dev_t" >&6; }
15784 if test $sudo_cv_type_dev_t = no; then
15785
15786 $as_echo "#define dev_t int" >>confdefs.h
15787
15788 fi
15789
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
15791 $as_echo_n "checking for ino_t... " >&6; }
15792 if ${sudo_cv_type_ino_t+:} false; then :
15793   $as_echo_n "(cached) " >&6
15794 else
15795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h.  */
15797 #include <sys/types.h>
15798 #include <stdio.h>
15799 #if STDC_HEADERS
15800 #include <stdlib.h>
15801 #endif
15802 #if HAVE_UNISTD_H
15803 #include <unistd.h>
15804 #endif
15805 _ACEOF
15806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15807   $EGREP "ino_t" >/dev/null 2>&1; then :
15808   sudo_cv_type_ino_t=yes
15809 else
15810   sudo_cv_type_ino_t=no
15811 fi
15812 rm -f conftest*
15813
15814 fi
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
15816 $as_echo "$sudo_cv_type_ino_t" >&6; }
15817 if test $sudo_cv_type_ino_t = no; then
15818
15819 $as_echo "#define ino_t unsigned int" >>confdefs.h
15820
15821 fi
15822
15823
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
15825 $as_echo_n "checking max length of uid_t... " >&6; }
15826 if ${sudo_cv_uid_t_len+:} false; then :
15827   $as_echo_n "(cached) " >&6
15828 else
15829   rm -f conftestdata
15830 if test "$cross_compiling" = yes; then :
15831   sudo_cv_uid_t_len=10
15832 else
15833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h.  */
15835 #include <stdio.h>
15836 #include <pwd.h>
15837 #include <limits.h>
15838 #include <sys/types.h>
15839 #include <sys/param.h>
15840 main() {
15841   FILE *f;
15842   char b[1024];
15843   uid_t u = (uid_t) -1;
15844
15845   if ((f = fopen("conftestdata", "w")) == NULL)
15846     exit(1);
15847
15848   (void) sprintf(b, "%lu", (unsigned long) u);
15849   (void) fprintf(f, "%d\n", strlen(b));
15850   (void) fclose(f);
15851   exit(0);
15852 }
15853 _ACEOF
15854 if ac_fn_c_try_run "$LINENO"; then :
15855   sudo_cv_uid_t_len=`cat conftestdata`
15856 else
15857   sudo_cv_uid_t_len=10
15858 fi
15859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15860   conftest.$ac_objext conftest.beam conftest.$ac_ext
15861 fi
15862
15863
15864 fi
15865
15866 rm -f conftestdata
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
15868 $as_echo "$sudo_cv_uid_t_len" >&6; }
15869
15870 cat >>confdefs.h <<_ACEOF
15871 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15872 _ACEOF
15873
15874
15875
15876     ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
15877           #include <sys/socket.h>
15878
15879 "
15880 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15881
15882 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
15883
15884 fi
15885
15886
15887 _CFLAGS="$CFLAGS"
15888 CFLAGS="$CFLAGS $OSDEFS"
15889 if test $ac_cv_header_utmpx_h = "yes"; then
15890     ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
15891         #include <sys/types.h>
15892         #include <utmpx.h>
15893
15894 "
15895 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
15896
15897 cat >>confdefs.h <<_ACEOF
15898 #define HAVE_STRUCT_UTMPX_UT_ID 1
15899 _ACEOF
15900
15901
15902 fi
15903 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
15904         #include <sys/types.h>
15905         #include <utmpx.h>
15906
15907 "
15908 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
15909
15910 cat >>confdefs.h <<_ACEOF
15911 #define HAVE_STRUCT_UTMPX_UT_PID 1
15912 _ACEOF
15913
15914
15915 fi
15916 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
15917         #include <sys/types.h>
15918         #include <utmpx.h>
15919
15920 "
15921 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
15922
15923 cat >>confdefs.h <<_ACEOF
15924 #define HAVE_STRUCT_UTMPX_UT_TV 1
15925 _ACEOF
15926
15927
15928 fi
15929 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
15930         #include <sys/types.h>
15931         #include <utmpx.h>
15932
15933 "
15934 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
15935
15936 cat >>confdefs.h <<_ACEOF
15937 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15938 _ACEOF
15939
15940
15941 fi
15942
15943                 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
15944         #include <sys/types.h>
15945         #include <utmpx.h>
15946
15947 "
15948 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
15949
15950 cat >>confdefs.h <<_ACEOF
15951 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
15952 _ACEOF
15953
15954 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
15955
15956 else
15957
15958         ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
15959             #include <sys/types.h>
15960             #include <utmpx.h>
15961
15962 "
15963 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
15964
15965 cat >>confdefs.h <<_ACEOF
15966 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
15967 _ACEOF
15968
15969 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
15970
15971 fi
15972
15973
15974 fi
15975
15976 else
15977     ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
15978         #include <sys/types.h>
15979         #include <utmp.h>
15980
15981 "
15982 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
15983
15984 cat >>confdefs.h <<_ACEOF
15985 #define HAVE_STRUCT_UTMP_UT_ID 1
15986 _ACEOF
15987
15988
15989 fi
15990 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
15991         #include <sys/types.h>
15992         #include <utmp.h>
15993
15994 "
15995 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
15996
15997 cat >>confdefs.h <<_ACEOF
15998 #define HAVE_STRUCT_UTMP_UT_PID 1
15999 _ACEOF
16000
16001
16002 fi
16003 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16004         #include <sys/types.h>
16005         #include <utmp.h>
16006
16007 "
16008 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16009
16010 cat >>confdefs.h <<_ACEOF
16011 #define HAVE_STRUCT_UTMP_UT_TV 1
16012 _ACEOF
16013
16014
16015 fi
16016 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16017         #include <sys/types.h>
16018         #include <utmp.h>
16019
16020 "
16021 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16022
16023 cat >>confdefs.h <<_ACEOF
16024 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16025 _ACEOF
16026
16027
16028 fi
16029 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16030         #include <sys/types.h>
16031         #include <utmp.h>
16032
16033 "
16034 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16035
16036 cat >>confdefs.h <<_ACEOF
16037 #define HAVE_STRUCT_UTMP_UT_USER 1
16038 _ACEOF
16039
16040
16041 fi
16042
16043                 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16044         #include <sys/types.h>
16045         #include <utmp.h>
16046
16047 "
16048 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16049
16050 cat >>confdefs.h <<_ACEOF
16051 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16052 _ACEOF
16053
16054 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16055
16056 else
16057
16058         ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16059             #include <sys/types.h>
16060             #include <utmp.h>
16061
16062 "
16063 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16064
16065 cat >>confdefs.h <<_ACEOF
16066 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16067 _ACEOF
16068
16069 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16070
16071 fi
16072
16073
16074 fi
16075
16076 fi
16077 CFLAGS="$_CFLAGS"
16078
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16080 $as_echo_n "checking type of array argument to getgroups... " >&6; }
16081 if ${ac_cv_type_getgroups+:} false; then :
16082   $as_echo_n "(cached) " >&6
16083 else
16084   if test "$cross_compiling" = yes; then :
16085   ac_cv_type_getgroups=cross
16086 else
16087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h.  */
16089 /* Thanks to Mike Rendell for this test.  */
16090 $ac_includes_default
16091 #define NGID 256
16092 #undef MAX
16093 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16094
16095 int
16096 main ()
16097 {
16098   gid_t gidset[NGID];
16099   int i, n;
16100   union { gid_t gval; long int lval; }  val;
16101
16102   val.lval = -1;
16103   for (i = 0; i < NGID; i++)
16104     gidset[i] = val.gval;
16105   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16106                  gidset);
16107   /* Exit non-zero if getgroups seems to require an array of ints.  This
16108      happens when gid_t is short int but getgroups modifies an array
16109      of ints.  */
16110   return n > 0 && gidset[n] != val.gval;
16111 }
16112 _ACEOF
16113 if ac_fn_c_try_run "$LINENO"; then :
16114   ac_cv_type_getgroups=gid_t
16115 else
16116   ac_cv_type_getgroups=int
16117 fi
16118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16119   conftest.$ac_objext conftest.beam conftest.$ac_ext
16120 fi
16121
16122 if test $ac_cv_type_getgroups = cross; then
16123         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h.  */
16125 #include <unistd.h>
16126
16127 _ACEOF
16128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16129   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16130   ac_cv_type_getgroups=gid_t
16131 else
16132   ac_cv_type_getgroups=int
16133 fi
16134 rm -f conftest*
16135
16136 fi
16137 fi
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16139 $as_echo "$ac_cv_type_getgroups" >&6; }
16140
16141 cat >>confdefs.h <<_ACEOF
16142 #define GETGROUPS_T $ac_cv_type_getgroups
16143 _ACEOF
16144
16145
16146 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16147 if test "x$ac_cv_type_size_t" = xyes; then :
16148
16149 else
16150
16151 cat >>confdefs.h <<_ACEOF
16152 #define size_t unsigned int
16153 _ACEOF
16154
16155 fi
16156
16157 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16158 if test "x$ac_cv_func_getgroups" = xyes; then :
16159
16160 fi
16161
16162
16163 # If we don't yet have getgroups, see if it's in -lbsd.
16164 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16165 ac_save_LIBS=$LIBS
16166 if test $ac_cv_func_getgroups = no; then
16167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16168 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16169 if ${ac_cv_lib_bsd_getgroups+:} false; then :
16170   $as_echo_n "(cached) " >&6
16171 else
16172   ac_check_lib_save_LIBS=$LIBS
16173 LIBS="-lbsd  $LIBS"
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h.  */
16176
16177 /* Override any GCC internal prototype to avoid an error.
16178    Use char because int might match the return type of a GCC
16179    builtin and then its argument prototype would still apply.  */
16180 #ifdef __cplusplus
16181 extern "C"
16182 #endif
16183 char getgroups ();
16184 int
16185 main ()
16186 {
16187 return getgroups ();
16188   ;
16189   return 0;
16190 }
16191 _ACEOF
16192 if ac_fn_c_try_link "$LINENO"; then :
16193   ac_cv_lib_bsd_getgroups=yes
16194 else
16195   ac_cv_lib_bsd_getgroups=no
16196 fi
16197 rm -f core conftest.err conftest.$ac_objext \
16198     conftest$ac_exeext conftest.$ac_ext
16199 LIBS=$ac_check_lib_save_LIBS
16200 fi
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16202 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16203 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16204   GETGROUPS_LIB=-lbsd
16205 fi
16206
16207 fi
16208
16209 # Run the program to test the functionality of the system-supplied
16210 # getgroups function only if there is such a function.
16211 if test $ac_cv_func_getgroups = yes; then
16212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16213 $as_echo_n "checking for working getgroups... " >&6; }
16214 if ${ac_cv_func_getgroups_works+:} false; then :
16215   $as_echo_n "(cached) " >&6
16216 else
16217   if test "$cross_compiling" = yes; then :
16218   ac_cv_func_getgroups_works=no
16219 else
16220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h.  */
16222 $ac_includes_default
16223 int
16224 main ()
16225 {
16226 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
16227        return getgroups (0, 0) == -1;
16228   ;
16229   return 0;
16230 }
16231 _ACEOF
16232 if ac_fn_c_try_run "$LINENO"; then :
16233   ac_cv_func_getgroups_works=yes
16234 else
16235   ac_cv_func_getgroups_works=no
16236 fi
16237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16238   conftest.$ac_objext conftest.beam conftest.$ac_ext
16239 fi
16240
16241
16242 fi
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16244 $as_echo "$ac_cv_func_getgroups_works" >&6; }
16245 else
16246   ac_cv_func_getgroups_works=no
16247 fi
16248 if test $ac_cv_func_getgroups_works = yes; then
16249
16250 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16251
16252 fi
16253 LIBS=$ac_save_LIBS
16254
16255 for ac_func in strrchr sysconf tzset strftime fstat \
16256                regcomp setlocale nl_langinfo getaddrinfo mbr_check_membership \
16257                setrlimit64 sysctl
16258 do :
16259   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16260 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16261 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16262   cat >>confdefs.h <<_ACEOF
16263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16264 _ACEOF
16265
16266 fi
16267 done
16268
16269 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16270 if test "x$ac_cv_func_getgrouplist" = xyes; then :
16271   $as_echo "#define HAVE_GETGROUPLIST 1" >>confdefs.h
16272
16273 else
16274   case " $LIBOBJS " in
16275   *" getgrouplist.$ac_objext "* ) ;;
16276   *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16277  ;;
16278 esac
16279
16280 fi
16281
16282
16283 for ac_func in getline
16284 do :
16285   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16286 if test "x$ac_cv_func_getline" = xyes; then :
16287   cat >>confdefs.h <<_ACEOF
16288 #define HAVE_GETLINE 1
16289 _ACEOF
16290
16291 else
16292
16293     case " $LIBOBJS " in
16294   *" getline.$ac_objext "* ) ;;
16295   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16296  ;;
16297 esac
16298
16299     for ac_func in fgetln
16300 do :
16301   ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16302 if test "x$ac_cv_func_fgetln" = xyes; then :
16303   cat >>confdefs.h <<_ACEOF
16304 #define HAVE_FGETLN 1
16305 _ACEOF
16306
16307 fi
16308 done
16309
16310
16311 fi
16312 done
16313
16314 utmp_style=LEGACY
16315 for ac_func in getutxid getutid
16316 do :
16317   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16318 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16319 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16320   cat >>confdefs.h <<_ACEOF
16321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16322 _ACEOF
16323  utmp_style=POSIX; break
16324 fi
16325 done
16326
16327 if test "$utmp_style" = "LEGACY"; then
16328     for ac_func in getttyent ttyslot
16329 do :
16330   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16333   cat >>confdefs.h <<_ACEOF
16334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16335 _ACEOF
16336  break
16337 fi
16338 done
16339
16340 fi
16341
16342 for ac_func in openpty
16343 do :
16344   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
16345 if test "x$ac_cv_func_openpty" = xyes; then :
16346   cat >>confdefs.h <<_ACEOF
16347 #define HAVE_OPENPTY 1
16348 _ACEOF
16349  for ac_header in util.h pty.h
16350 do :
16351   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16352 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16353 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16354   cat >>confdefs.h <<_ACEOF
16355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16356 _ACEOF
16357  break
16358 fi
16359
16360 done
16361
16362 else
16363
16364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
16365 $as_echo_n "checking for openpty in -lutil... " >&6; }
16366 if ${ac_cv_lib_util_openpty+:} false; then :
16367   $as_echo_n "(cached) " >&6
16368 else
16369   ac_check_lib_save_LIBS=$LIBS
16370 LIBS="-lutil  $LIBS"
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h.  */
16373
16374 /* Override any GCC internal prototype to avoid an error.
16375    Use char because int might match the return type of a GCC
16376    builtin and then its argument prototype would still apply.  */
16377 #ifdef __cplusplus
16378 extern "C"
16379 #endif
16380 char openpty ();
16381 int
16382 main ()
16383 {
16384 return openpty ();
16385   ;
16386   return 0;
16387 }
16388 _ACEOF
16389 if ac_fn_c_try_link "$LINENO"; then :
16390   ac_cv_lib_util_openpty=yes
16391 else
16392   ac_cv_lib_util_openpty=no
16393 fi
16394 rm -f core conftest.err conftest.$ac_objext \
16395     conftest$ac_exeext conftest.$ac_ext
16396 LIBS=$ac_check_lib_save_LIBS
16397 fi
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
16399 $as_echo "$ac_cv_lib_util_openpty" >&6; }
16400 if test "x$ac_cv_lib_util_openpty" = xyes; then :
16401
16402         for ac_header in util.h pty.h
16403 do :
16404   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16405 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16406 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16407   cat >>confdefs.h <<_ACEOF
16408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16409 _ACEOF
16410  break
16411 fi
16412
16413 done
16414
16415         case "$SUDO_LIBS" in
16416             *-lutil*) ;;
16417             *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
16418         esac
16419         $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
16420
16421
16422 else
16423
16424         for ac_func in _getpty
16425 do :
16426   ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
16427 if test "x$ac_cv_func__getpty" = xyes; then :
16428   cat >>confdefs.h <<_ACEOF
16429 #define HAVE__GETPTY 1
16430 _ACEOF
16431
16432 else
16433
16434             for ac_func in grantpt
16435 do :
16436   ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16437 if test "x$ac_cv_func_grantpt" = xyes; then :
16438   cat >>confdefs.h <<_ACEOF
16439 #define HAVE_GRANTPT 1
16440 _ACEOF
16441
16442                 for ac_func in posix_openpt
16443 do :
16444   ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
16445 if test "x$ac_cv_func_posix_openpt" = xyes; then :
16446   cat >>confdefs.h <<_ACEOF
16447 #define HAVE_POSIX_OPENPT 1
16448 _ACEOF
16449
16450 fi
16451 done
16452
16453
16454 else
16455
16456                 for ac_func in revoke
16457 do :
16458   ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
16459 if test "x$ac_cv_func_revoke" = xyes; then :
16460   cat >>confdefs.h <<_ACEOF
16461 #define HAVE_REVOKE 1
16462 _ACEOF
16463
16464 fi
16465 done
16466
16467
16468 fi
16469 done
16470
16471
16472 fi
16473 done
16474
16475
16476 fi
16477
16478
16479 fi
16480 done
16481
16482 for ac_func in unsetenv
16483 do :
16484   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16485 if test "x$ac_cv_func_unsetenv" = xyes; then :
16486   cat >>confdefs.h <<_ACEOF
16487 #define HAVE_UNSETENV 1
16488 _ACEOF
16489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
16490 $as_echo_n "checking whether unsetenv returns void... " >&6; }
16491 if ${sudo_cv_func_unsetenv_void+:} false; then :
16492   $as_echo_n "(cached) " >&6
16493 else
16494   if test "$cross_compiling" = yes; then :
16495   sudo_cv_func_unsetenv_void=no
16496 else
16497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h.  */
16499 $ac_includes_default
16500         int unsetenv();
16501
16502 int
16503 main ()
16504 {
16505
16506         return unsetenv("FOO") != 0;
16507
16508   ;
16509   return 0;
16510 }
16511
16512 _ACEOF
16513 if ac_fn_c_try_run "$LINENO"; then :
16514   sudo_cv_func_unsetenv_void=no
16515 else
16516   sudo_cv_func_unsetenv_void=yes
16517 fi
16518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16519   conftest.$ac_objext conftest.beam conftest.$ac_ext
16520 fi
16521
16522 fi
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
16524 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
16525     if test $sudo_cv_func_unsetenv_void = yes; then
16526
16527 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
16528
16529     fi
16530
16531 else
16532   case " $LIBOBJS " in
16533   *" unsetenv.$ac_objext "* ) ;;
16534   *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
16535  ;;
16536 esac
16537
16538 fi
16539 done
16540
16541 if test -z "$SKIP_SETRESUID"; then
16542     for ac_func in setresuid
16543 do :
16544   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
16545 if test "x$ac_cv_func_setresuid" = xyes; then :
16546   cat >>confdefs.h <<_ACEOF
16547 #define HAVE_SETRESUID 1
16548 _ACEOF
16549
16550         SKIP_SETREUID=yes
16551         for ac_func in getresuid
16552 do :
16553   ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
16554 if test "x$ac_cv_func_getresuid" = xyes; then :
16555   cat >>confdefs.h <<_ACEOF
16556 #define HAVE_GETRESUID 1
16557 _ACEOF
16558
16559 fi
16560 done
16561
16562
16563 fi
16564 done
16565
16566 fi
16567 if test -z "$SKIP_SETREUID"; then
16568     for ac_func in setreuid
16569 do :
16570   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
16571 if test "x$ac_cv_func_setreuid" = xyes; then :
16572   cat >>confdefs.h <<_ACEOF
16573 #define HAVE_SETREUID 1
16574 _ACEOF
16575  SKIP_SETEUID=yes
16576 fi
16577 done
16578
16579 fi
16580 if test -z "$SKIP_SETEUID"; then
16581     for ac_func in seteuid
16582 do :
16583   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
16584 if test "x$ac_cv_func_seteuid" = xyes; then :
16585   cat >>confdefs.h <<_ACEOF
16586 #define HAVE_SETEUID 1
16587 _ACEOF
16588
16589 fi
16590 done
16591
16592 fi
16593 if test X"$with_interfaces" != X"no"; then
16594     for ac_func in getifaddrs
16595 do :
16596   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
16597 if test "x$ac_cv_func_getifaddrs" = xyes; then :
16598   cat >>confdefs.h <<_ACEOF
16599 #define HAVE_GETIFADDRS 1
16600 _ACEOF
16601  for ac_func in freeifaddrs
16602 do :
16603   ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
16604 if test "x$ac_cv_func_freeifaddrs" = xyes; then :
16605   cat >>confdefs.h <<_ACEOF
16606 #define HAVE_FREEIFADDRS 1
16607 _ACEOF
16608
16609 fi
16610 done
16611
16612 fi
16613 done
16614
16615 fi
16616 if test -z "$BROKEN_GETCWD"; then
16617     ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
16618 if test "x$ac_cv_func_getcwd" = xyes; then :
16619   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
16620
16621 else
16622   case " $LIBOBJS " in
16623   *" getcwd.$ac_objext "* ) ;;
16624   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
16625  ;;
16626 esac
16627
16628 fi
16629
16630
16631 fi
16632 for ac_func in glob
16633 do :
16634   ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
16635 if test "x$ac_cv_func_glob" = xyes; then :
16636   cat >>confdefs.h <<_ACEOF
16637 #define HAVE_GLOB 1
16638 _ACEOF
16639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16640 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h.  */
16643 #include <glob.h>
16644 int
16645 main ()
16646 {
16647 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16648   ;
16649   return 0;
16650 }
16651 _ACEOF
16652 if ac_fn_c_try_compile "$LINENO"; then :
16653   $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
16654
16655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16656 $as_echo "yes" >&6; }
16657 else
16658   case " $LIBOBJS " in
16659   *" glob.$ac_objext "* ) ;;
16660   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16661  ;;
16662 esac
16663
16664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665 $as_echo "no" >&6; }
16666 fi
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668 else
16669   case " $LIBOBJS " in
16670   *" glob.$ac_objext "* ) ;;
16671   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16672  ;;
16673 esac
16674
16675 fi
16676 done
16677
16678 for ac_func in lockf flock
16679 do :
16680   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16682 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16683   cat >>confdefs.h <<_ACEOF
16684 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16685 _ACEOF
16686  break
16687 fi
16688 done
16689
16690 for ac_func in innetgr _innetgr
16691 do :
16692   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16693 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16694 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16695   cat >>confdefs.h <<_ACEOF
16696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16697 _ACEOF
16698  for ac_func in getdomainname
16699 do :
16700   ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
16701 if test "x$ac_cv_func_getdomainname" = xyes; then :
16702   cat >>confdefs.h <<_ACEOF
16703 #define HAVE_GETDOMAINNAME 1
16704 _ACEOF
16705
16706 fi
16707 done
16708  break
16709 fi
16710 done
16711
16712 for ac_func in utimes
16713 do :
16714   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
16715 if test "x$ac_cv_func_utimes" = xyes; then :
16716   cat >>confdefs.h <<_ACEOF
16717 #define HAVE_UTIMES 1
16718 _ACEOF
16719  for ac_func in futimes futimesat
16720 do :
16721   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16722 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16723 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16724   cat >>confdefs.h <<_ACEOF
16725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16726 _ACEOF
16727  break
16728 fi
16729 done
16730
16731 else
16732   for ac_func in futime
16733 do :
16734   ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
16735 if test "x$ac_cv_func_futime" = xyes; then :
16736   cat >>confdefs.h <<_ACEOF
16737 #define HAVE_FUTIME 1
16738 _ACEOF
16739
16740 fi
16741 done
16742  case " $LIBOBJS " in
16743   *" utimes.$ac_objext "* ) ;;
16744   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
16745  ;;
16746 esac
16747
16748 fi
16749 done
16750
16751 for ac_func in killpg
16752 do :
16753   ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
16754 if test "x$ac_cv_func_killpg" = xyes; then :
16755   cat >>confdefs.h <<_ACEOF
16756 #define HAVE_KILLPG 1
16757 _ACEOF
16758
16759 else
16760   case " $LIBOBJS " in
16761   *" killpg.$ac_objext "* ) ;;
16762   *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
16763  ;;
16764 esac
16765
16766 fi
16767 done
16768
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
16770 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
16771 if ${sudo_cv_func_fnmatch+:} false; then :
16772   $as_echo_n "(cached) " >&6
16773 else
16774   rm -f conftestdata; > conftestdata
16775 if test "$cross_compiling" = yes; then :
16776   sudo_cv_func_fnmatch=no
16777 else
16778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779 /* end confdefs.h.  */
16780 #include <fnmatch.h>
16781 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
16782 _ACEOF
16783 if ac_fn_c_try_run "$LINENO"; then :
16784   sudo_cv_func_fnmatch=yes
16785 else
16786   sudo_cv_func_fnmatch=no
16787 fi
16788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16789   conftest.$ac_objext conftest.beam conftest.$ac_ext
16790 fi
16791
16792 rm -f core core.* *.core
16793 fi
16794
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
16796 $as_echo "$sudo_cv_func_fnmatch" >&6; }
16797 if test $sudo_cv_func_fnmatch = yes; then :
16798   $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
16799
16800 else
16801   case " $LIBOBJS " in
16802   *" fnmatch.$ac_objext "* ) ;;
16803   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
16804  ;;
16805 esac
16806
16807 fi
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
16809 $as_echo_n "checking for isblank... " >&6; }
16810 if ${sudo_cv_func_isblank+:} false; then :
16811   $as_echo_n "(cached) " >&6
16812 else
16813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h.  */
16815 #include <ctype.h>
16816 int
16817 main ()
16818 {
16819 return (isblank('a'));
16820   ;
16821   return 0;
16822 }
16823 _ACEOF
16824 if ac_fn_c_try_link "$LINENO"; then :
16825   sudo_cv_func_isblank=yes
16826 else
16827   sudo_cv_func_isblank=no
16828 fi
16829 rm -f core conftest.err conftest.$ac_objext \
16830     conftest$ac_exeext conftest.$ac_ext
16831 fi
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
16833 $as_echo "$sudo_cv_func_isblank" >&6; }
16834
16835   if test "$sudo_cv_func_isblank" = "yes"; then
16836
16837 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
16838
16839   else
16840     case " $LIBOBJS " in
16841   *" isblank.$ac_objext "* ) ;;
16842   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
16843  ;;
16844 esac
16845
16846   fi
16847
16848 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
16849 if test "x$ac_cv_func_memrchr" = xyes; then :
16850   $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
16851
16852 else
16853   case " $LIBOBJS " in
16854   *" memrchr.$ac_objext "* ) ;;
16855   *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
16856  ;;
16857 esac
16858
16859 fi
16860
16861 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16862 if test "x$ac_cv_func_strlcpy" = xyes; then :
16863   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16864
16865 else
16866   case " $LIBOBJS " in
16867   *" strlcpy.$ac_objext "* ) ;;
16868   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
16869  ;;
16870 esac
16871
16872 fi
16873
16874 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
16875 if test "x$ac_cv_func_strlcat" = xyes; then :
16876   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
16877
16878 else
16879   case " $LIBOBJS " in
16880   *" strlcat.$ac_objext "* ) ;;
16881   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
16882  ;;
16883 esac
16884
16885 fi
16886
16887 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
16888 if test "x$ac_cv_func_setenv" = xyes; then :
16889   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
16890
16891 else
16892   case " $LIBOBJS " in
16893   *" setenv.$ac_objext "* ) ;;
16894   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
16895  ;;
16896 esac
16897
16898 fi
16899
16900
16901 for ac_func in nanosleep
16902 do :
16903   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
16904 if test "x$ac_cv_func_nanosleep" = xyes; then :
16905   cat >>confdefs.h <<_ACEOF
16906 #define HAVE_NANOSLEEP 1
16907 _ACEOF
16908
16909 else
16910
16911     # On Solaris, nanosleep is in librt
16912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
16913 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
16914 if ${ac_cv_lib_rt_nanosleep+:} false; then :
16915   $as_echo_n "(cached) " >&6
16916 else
16917   ac_check_lib_save_LIBS=$LIBS
16918 LIBS="-lrt  $LIBS"
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h.  */
16921
16922 /* Override any GCC internal prototype to avoid an error.
16923    Use char because int might match the return type of a GCC
16924    builtin and then its argument prototype would still apply.  */
16925 #ifdef __cplusplus
16926 extern "C"
16927 #endif
16928 char nanosleep ();
16929 int
16930 main ()
16931 {
16932 return nanosleep ();
16933   ;
16934   return 0;
16935 }
16936 _ACEOF
16937 if ac_fn_c_try_link "$LINENO"; then :
16938   ac_cv_lib_rt_nanosleep=yes
16939 else
16940   ac_cv_lib_rt_nanosleep=no
16941 fi
16942 rm -f core conftest.err conftest.$ac_objext \
16943     conftest$ac_exeext conftest.$ac_ext
16944 LIBS=$ac_check_lib_save_LIBS
16945 fi
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
16947 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
16948 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
16949   REPLAY_LIBS="${REPLAY_LIBS} -lrt"
16950 else
16951   case " $LIBOBJS " in
16952   *" nanosleep.$ac_objext "* ) ;;
16953   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
16954  ;;
16955 esac
16956
16957 fi
16958
16959
16960 fi
16961 done
16962
16963 for ac_func in closefrom
16964 do :
16965   ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
16966 if test "x$ac_cv_func_closefrom" = xyes; then :
16967   cat >>confdefs.h <<_ACEOF
16968 #define HAVE_CLOSEFROM 1
16969 _ACEOF
16970
16971 else
16972   case " $LIBOBJS " in
16973   *" closefrom.$ac_objext "* ) ;;
16974   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
16975  ;;
16976 esac
16977
16978     ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
16979           #include <fcntl.h>
16980 "
16981 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
16982   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
16983
16984 fi
16985
16986
16987 fi
16988 done
16989
16990 for ac_func in mkstemps mkdtemp
16991 do :
16992   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16993 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16994 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16995   cat >>confdefs.h <<_ACEOF
16996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16997 _ACEOF
16998
16999 else
17000
17001     for ac_func in random lrand48
17002 do :
17003   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17004 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17005 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17006   cat >>confdefs.h <<_ACEOF
17007 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17008 _ACEOF
17009  break
17010 fi
17011 done
17012
17013     case " $LIBOBJS " in
17014   *" mktemp.$ac_objext "* ) ;;
17015   *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17016  ;;
17017 esac
17018
17019
17020 fi
17021 done
17022
17023 for ac_func in snprintf vsnprintf asprintf vasprintf
17024 do :
17025   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17026 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17027 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17028   cat >>confdefs.h <<_ACEOF
17029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17030 _ACEOF
17031
17032 else
17033   NEED_SNPRINTF=1
17034 fi
17035 done
17036
17037 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17038     ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17039 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17040   $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17041
17042         ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17043 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17044   $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17045
17046 fi
17047
17048 else
17049   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17050 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17051   $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17052
17053 fi
17054
17055 fi
17056
17057 fi
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h.  */
17060 #include <sys/types.h>
17061 #include <$ac_header_dirent>
17062 int
17063 main ()
17064 {
17065 DIR *d; (void)dirfd(d);
17066   ;
17067   return 0;
17068 }
17069 _ACEOF
17070 if ac_fn_c_try_link "$LINENO"; then :
17071   $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17072
17073 else
17074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h.  */
17076 #include <sys/types.h>
17077 #include <$ac_header_dirent>
17078 int
17079 main ()
17080 {
17081 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17082   ;
17083   return 0;
17084 }
17085 _ACEOF
17086 if ac_fn_c_try_link "$LINENO"; then :
17087   $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17088
17089 fi
17090 rm -f core conftest.err conftest.$ac_objext \
17091     conftest$ac_exeext conftest.$ac_ext
17092 fi
17093 rm -f core conftest.err conftest.$ac_objext \
17094     conftest$ac_exeext conftest.$ac_ext
17095 if test -n "$NEED_SNPRINTF"; then
17096     case " $LIBOBJS " in
17097   *" snprintf.$ac_objext "* ) ;;
17098   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17099  ;;
17100 esac
17101
17102 fi
17103 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17104 if test "x$ac_cv_func_socket" = xyes; then :
17105
17106 else
17107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17108 $as_echo_n "checking for socket in -lsocket... " >&6; }
17109 if ${ac_cv_lib_socket_socket+:} false; then :
17110   $as_echo_n "(cached) " >&6
17111 else
17112   ac_check_lib_save_LIBS=$LIBS
17113 LIBS="-lsocket  $LIBS"
17114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17115 /* end confdefs.h.  */
17116
17117 /* Override any GCC internal prototype to avoid an error.
17118    Use char because int might match the return type of a GCC
17119    builtin and then its argument prototype would still apply.  */
17120 #ifdef __cplusplus
17121 extern "C"
17122 #endif
17123 char socket ();
17124 int
17125 main ()
17126 {
17127 return socket ();
17128   ;
17129   return 0;
17130 }
17131 _ACEOF
17132 if ac_fn_c_try_link "$LINENO"; then :
17133   ac_cv_lib_socket_socket=yes
17134 else
17135   ac_cv_lib_socket_socket=no
17136 fi
17137 rm -f core conftest.err conftest.$ac_objext \
17138     conftest$ac_exeext conftest.$ac_ext
17139 LIBS=$ac_check_lib_save_LIBS
17140 fi
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17142 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17143 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17144   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
17145 else
17146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
17147 $as_echo_n "checking for socket in -linet... " >&6; }
17148 if ${ac_cv_lib_inet_socket+:} false; then :
17149   $as_echo_n "(cached) " >&6
17150 else
17151   ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-linet  $LIBS"
17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h.  */
17155
17156 /* Override any GCC internal prototype to avoid an error.
17157    Use char because int might match the return type of a GCC
17158    builtin and then its argument prototype would still apply.  */
17159 #ifdef __cplusplus
17160 extern "C"
17161 #endif
17162 char socket ();
17163 int
17164 main ()
17165 {
17166 return socket ();
17167   ;
17168   return 0;
17169 }
17170 _ACEOF
17171 if ac_fn_c_try_link "$LINENO"; then :
17172   ac_cv_lib_inet_socket=yes
17173 else
17174   ac_cv_lib_inet_socket=no
17175 fi
17176 rm -f core conftest.err conftest.$ac_objext \
17177     conftest$ac_exeext conftest.$ac_ext
17178 LIBS=$ac_check_lib_save_LIBS
17179 fi
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
17181 $as_echo "$ac_cv_lib_inet_socket" >&6; }
17182 if test "x$ac_cv_lib_inet_socket" = xyes; then :
17183   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17184 else
17185   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
17186 $as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17188 $as_echo_n "checking for socket in -lsocket... " >&6; }
17189 if ${ac_cv_lib_socket_socket_lnsl+:} false; then :
17190   $as_echo_n "(cached) " >&6
17191 else
17192   ac_check_lib_save_LIBS=$LIBS
17193 LIBS="-lsocket -lnsl $LIBS"
17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h.  */
17196
17197 /* Override any GCC internal prototype to avoid an error.
17198    Use char because int might match the return type of a GCC
17199    builtin and then its argument prototype would still apply.  */
17200 #ifdef __cplusplus
17201 extern "C"
17202 #endif
17203 char socket ();
17204 int
17205 main ()
17206 {
17207 return socket ();
17208   ;
17209   return 0;
17210 }
17211 _ACEOF
17212 if ac_fn_c_try_link "$LINENO"; then :
17213   ac_cv_lib_socket_socket_lnsl=yes
17214 else
17215   ac_cv_lib_socket_socket_lnsl=no
17216 fi
17217 rm -f core conftest.err conftest.$ac_objext \
17218     conftest$ac_exeext conftest.$ac_ext
17219 LIBS=$ac_check_lib_save_LIBS
17220 fi
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
17222 $as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
17223 if test "x$ac_cv_lib_socket_socket_lnsl" = xyes; then :
17224   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
17225 fi
17226
17227 fi
17228
17229 fi
17230
17231 fi
17232
17233 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17234 if test "x$ac_cv_func_inet_addr" = xyes; then :
17235
17236 else
17237   ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17238 if test "x$ac_cv_func___inet_addr" = xyes; then :
17239
17240 else
17241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
17242 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
17243 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
17244   $as_echo_n "(cached) " >&6
17245 else
17246   ac_check_lib_save_LIBS=$LIBS
17247 LIBS="-lnsl  $LIBS"
17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h.  */
17250
17251 /* Override any GCC internal prototype to avoid an error.
17252    Use char because int might match the return type of a GCC
17253    builtin and then its argument prototype would still apply.  */
17254 #ifdef __cplusplus
17255 extern "C"
17256 #endif
17257 char inet_addr ();
17258 int
17259 main ()
17260 {
17261 return inet_addr ();
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"; then :
17267   ac_cv_lib_nsl_inet_addr=yes
17268 else
17269   ac_cv_lib_nsl_inet_addr=no
17270 fi
17271 rm -f core conftest.err conftest.$ac_objext \
17272     conftest$ac_exeext conftest.$ac_ext
17273 LIBS=$ac_check_lib_save_LIBS
17274 fi
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
17276 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
17277 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
17278   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
17279 else
17280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
17281 $as_echo_n "checking for inet_addr in -linet... " >&6; }
17282 if ${ac_cv_lib_inet_inet_addr+:} false; then :
17283   $as_echo_n "(cached) " >&6
17284 else
17285   ac_check_lib_save_LIBS=$LIBS
17286 LIBS="-linet  $LIBS"
17287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288 /* end confdefs.h.  */
17289
17290 /* Override any GCC internal prototype to avoid an error.
17291    Use char because int might match the return type of a GCC
17292    builtin and then its argument prototype would still apply.  */
17293 #ifdef __cplusplus
17294 extern "C"
17295 #endif
17296 char inet_addr ();
17297 int
17298 main ()
17299 {
17300 return inet_addr ();
17301   ;
17302   return 0;
17303 }
17304 _ACEOF
17305 if ac_fn_c_try_link "$LINENO"; then :
17306   ac_cv_lib_inet_inet_addr=yes
17307 else
17308   ac_cv_lib_inet_inet_addr=no
17309 fi
17310 rm -f core conftest.err conftest.$ac_objext \
17311     conftest$ac_exeext conftest.$ac_ext
17312 LIBS=$ac_check_lib_save_LIBS
17313 fi
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
17315 $as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
17316 if test "x$ac_cv_lib_inet_inet_addr" = xyes; then :
17317   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17318 else
17319   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
17320 $as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
17322 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
17323 if ${ac_cv_lib_socket_inet_addr_lnsl+:} false; then :
17324   $as_echo_n "(cached) " >&6
17325 else
17326   ac_check_lib_save_LIBS=$LIBS
17327 LIBS="-lsocket -lnsl $LIBS"
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h.  */
17330
17331 /* Override any GCC internal prototype to avoid an error.
17332    Use char because int might match the return type of a GCC
17333    builtin and then its argument prototype would still apply.  */
17334 #ifdef __cplusplus
17335 extern "C"
17336 #endif
17337 char inet_addr ();
17338 int
17339 main ()
17340 {
17341 return inet_addr ();
17342   ;
17343   return 0;
17344 }
17345 _ACEOF
17346 if ac_fn_c_try_link "$LINENO"; then :
17347   ac_cv_lib_socket_inet_addr_lnsl=yes
17348 else
17349   ac_cv_lib_socket_inet_addr_lnsl=no
17350 fi
17351 rm -f core conftest.err conftest.$ac_objext \
17352     conftest$ac_exeext conftest.$ac_ext
17353 LIBS=$ac_check_lib_save_LIBS
17354 fi
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
17356 $as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
17357 if test "x$ac_cv_lib_socket_inet_addr_lnsl" = xyes; then :
17358   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
17359 fi
17360
17361 fi
17362
17363 fi
17364
17365 fi
17366
17367 fi
17368
17369 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17370 if test "x$ac_cv_func_syslog" = xyes; then :
17371
17372 else
17373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
17374 $as_echo_n "checking for syslog in -lsocket... " >&6; }
17375 if ${ac_cv_lib_socket_syslog+:} false; then :
17376   $as_echo_n "(cached) " >&6
17377 else
17378   ac_check_lib_save_LIBS=$LIBS
17379 LIBS="-lsocket  $LIBS"
17380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381 /* end confdefs.h.  */
17382
17383 /* Override any GCC internal prototype to avoid an error.
17384    Use char because int might match the return type of a GCC
17385    builtin and then its argument prototype would still apply.  */
17386 #ifdef __cplusplus
17387 extern "C"
17388 #endif
17389 char syslog ();
17390 int
17391 main ()
17392 {
17393 return syslog ();
17394   ;
17395   return 0;
17396 }
17397 _ACEOF
17398 if ac_fn_c_try_link "$LINENO"; then :
17399   ac_cv_lib_socket_syslog=yes
17400 else
17401   ac_cv_lib_socket_syslog=no
17402 fi
17403 rm -f core conftest.err conftest.$ac_objext \
17404     conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17406 fi
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
17408 $as_echo "$ac_cv_lib_socket_syslog" >&6; }
17409 if test "x$ac_cv_lib_socket_syslog" = xyes; then :
17410   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
17411 else
17412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
17413 $as_echo_n "checking for syslog in -lnsl... " >&6; }
17414 if ${ac_cv_lib_nsl_syslog+:} false; then :
17415   $as_echo_n "(cached) " >&6
17416 else
17417   ac_check_lib_save_LIBS=$LIBS
17418 LIBS="-lnsl  $LIBS"
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h.  */
17421
17422 /* Override any GCC internal prototype to avoid an error.
17423    Use char because int might match the return type of a GCC
17424    builtin and then its argument prototype would still apply.  */
17425 #ifdef __cplusplus
17426 extern "C"
17427 #endif
17428 char syslog ();
17429 int
17430 main ()
17431 {
17432 return syslog ();
17433   ;
17434   return 0;
17435 }
17436 _ACEOF
17437 if ac_fn_c_try_link "$LINENO"; then :
17438   ac_cv_lib_nsl_syslog=yes
17439 else
17440   ac_cv_lib_nsl_syslog=no
17441 fi
17442 rm -f core conftest.err conftest.$ac_objext \
17443     conftest$ac_exeext conftest.$ac_ext
17444 LIBS=$ac_check_lib_save_LIBS
17445 fi
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
17447 $as_echo "$ac_cv_lib_nsl_syslog" >&6; }
17448 if test "x$ac_cv_lib_nsl_syslog" = xyes; then :
17449   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
17450 else
17451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
17452 $as_echo_n "checking for syslog in -linet... " >&6; }
17453 if ${ac_cv_lib_inet_syslog+:} false; then :
17454   $as_echo_n "(cached) " >&6
17455 else
17456   ac_check_lib_save_LIBS=$LIBS
17457 LIBS="-linet  $LIBS"
17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h.  */
17460
17461 /* Override any GCC internal prototype to avoid an error.
17462    Use char because int might match the return type of a GCC
17463    builtin and then its argument prototype would still apply.  */
17464 #ifdef __cplusplus
17465 extern "C"
17466 #endif
17467 char syslog ();
17468 int
17469 main ()
17470 {
17471 return syslog ();
17472   ;
17473   return 0;
17474 }
17475 _ACEOF
17476 if ac_fn_c_try_link "$LINENO"; then :
17477   ac_cv_lib_inet_syslog=yes
17478 else
17479   ac_cv_lib_inet_syslog=no
17480 fi
17481 rm -f core conftest.err conftest.$ac_objext \
17482     conftest$ac_exeext conftest.$ac_ext
17483 LIBS=$ac_check_lib_save_LIBS
17484 fi
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
17486 $as_echo "$ac_cv_lib_inet_syslog" >&6; }
17487 if test "x$ac_cv_lib_inet_syslog" = xyes; then :
17488   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
17489 fi
17490
17491 fi
17492
17493 fi
17494
17495 fi
17496
17497 for ac_func in getprogname
17498 do :
17499   ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17500 if test "x$ac_cv_func_getprogname" = xyes; then :
17501   cat >>confdefs.h <<_ACEOF
17502 #define HAVE_GETPROGNAME 1
17503 _ACEOF
17504
17505 else
17506
17507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
17508 $as_echo_n "checking for __progname... " >&6; }
17509     if ${sudo_cv___progname+:} false; then :
17510   $as_echo_n "(cached) " >&6
17511 else
17512
17513     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h.  */
17515
17516 int
17517 main ()
17518 {
17519 extern char *__progname; (void)puts(__progname);
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 if ac_fn_c_try_link "$LINENO"; then :
17525   sudo_cv___progname=yes
17526 else
17527   sudo_cv___progname=no
17528 fi
17529 rm -f core conftest.err conftest.$ac_objext \
17530     conftest$ac_exeext conftest.$ac_ext
17531 fi
17532
17533     if test "$sudo_cv___progname" = "yes"; then
17534         $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17535
17536     else
17537         case " $LIBOBJS " in
17538   *" getprogname.$ac_objext "* ) ;;
17539   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
17540  ;;
17541 esac
17542
17543     fi
17544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
17545 $as_echo "$sudo_cv___progname" >&6; }
17546
17547 fi
17548 done
17549
17550
17551 # gettext() and friends may be located in libc (Linux and Solaris)
17552 # or in libintl.  However, it is possible to have libintl installed
17553 # even when gettext() is present in libc.  In the case of GNU libintl,
17554 # gettext() will be defined to gettext_libintl in libintl.h.
17555 # Since gcc prefers /usr/local/include to /usr/include, we need to
17556 # make sure we use the gettext() that matches the include file.
17557 if test "$enable_nls" != "no"; then
17558     if test "$enable_nls" != "yes"; then
17559         CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
17560
17561     if test X"$with_rpath" = X"yes"; then
17562         case "$host" in
17563             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,+b,$enable_nls/lib"
17564                         ;;
17565             *)          LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,-R$enable_nls/lib"
17566                         ;;
17567         esac
17568     else
17569         LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
17570     fi
17571     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17572         blibpath_add="${blibpath_add}:$enable_nls/lib"
17573     fi
17574
17575     fi
17576     OLIBS="$LIBS"
17577     for l in "libc" "-lintl" "-lintl -liconv"; do
17578         if test "$l" = "libc"; then
17579             # If user specified a dir for libintl ignore libc
17580             if test "$enable_nls" != "yes"; then
17581                 continue
17582             fi
17583             gettext_name=sudo_cv_gettext
17584             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
17585 $as_echo_n "checking for gettext... " >&6; }
17586         else
17587             LIBS="$OLIBS $l"
17588             gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
17589             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
17590 $as_echo_n "checking for gettext in $l... " >&6; }
17591         fi
17592         if eval \${$gettext_name+:} false; then :
17593   $as_echo_n "(cached) " >&6
17594 else
17595
17596                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h.  */
17598
17599                         #include <libintl.h>
17600 int
17601 main ()
17602 {
17603 (void)gettext((char *)0);
17604   ;
17605   return 0;
17606 }
17607
17608 _ACEOF
17609 if ac_fn_c_try_link "$LINENO"; then :
17610   eval $gettext_name=yes
17611 else
17612   eval $gettext_name=no
17613
17614 fi
17615 rm -f core conftest.err conftest.$ac_objext \
17616     conftest$ac_exeext conftest.$ac_ext
17617
17618 fi
17619
17620         eval gettext_result="\$$gettext_name"
17621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
17622 $as_echo "$gettext_result" >&6; }
17623         test "$gettext_result" = "yes" && break
17624     done
17625     LIBS="$OLIBS"
17626
17627     if test "$sudo_cv_gettext" = "yes"; then
17628         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17629
17630         SUDO_NLS=enabled
17631     elif test "$sudo_cv_gettext_lintl" = "yes"; then
17632         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17633
17634         SUDO_NLS=enabled
17635         LIBINTL="-lintl"
17636     elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
17637         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17638
17639         SUDO_NLS=enabled
17640         LIBINTL="-lintl -liconv"
17641     fi
17642 fi
17643
17644 case "$enable_zlib" in
17645     yes)
17646         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
17647 $as_echo_n "checking for gzdopen in -lz... " >&6; }
17648 if ${ac_cv_lib_z_gzdopen+:} false; then :
17649   $as_echo_n "(cached) " >&6
17650 else
17651   ac_check_lib_save_LIBS=$LIBS
17652 LIBS="-lz  $LIBS"
17653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h.  */
17655
17656 /* Override any GCC internal prototype to avoid an error.
17657    Use char because int might match the return type of a GCC
17658    builtin and then its argument prototype would still apply.  */
17659 #ifdef __cplusplus
17660 extern "C"
17661 #endif
17662 char gzdopen ();
17663 int
17664 main ()
17665 {
17666 return gzdopen ();
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 if ac_fn_c_try_link "$LINENO"; then :
17672   ac_cv_lib_z_gzdopen=yes
17673 else
17674   ac_cv_lib_z_gzdopen=no
17675 fi
17676 rm -f core conftest.err conftest.$ac_objext \
17677     conftest$ac_exeext conftest.$ac_ext
17678 LIBS=$ac_check_lib_save_LIBS
17679 fi
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
17681 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
17682 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
17683
17684             for ac_header in zlib.h
17685 do :
17686   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17687 if test "x$ac_cv_header_zlib_h" = xyes; then :
17688   cat >>confdefs.h <<_ACEOF
17689 #define HAVE_ZLIB_H 1
17690 _ACEOF
17691  ZLIB="-lz"
17692 else
17693   enable_zlib=builtin
17694 fi
17695
17696 done
17697
17698
17699 fi
17700
17701         ;;
17702     no)
17703         ;;
17704     system)
17705         $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17706
17707         ZLIB="-lz"
17708         ;;
17709     builtin)
17710         # handled below
17711         ;;
17712     *)
17713         $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17714
17715         CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
17716
17717     if test X"$with_rpath" = X"yes"; then
17718         case "$host" in
17719             *-*-hpux*)  ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
17720                         ;;
17721             *)          ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
17722                         ;;
17723         esac
17724     else
17725         ZLIB="${ZLIB} -L$enable_zlib/lib"
17726     fi
17727     if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
17728         blibpath_add="${blibpath_add}:$enable_zlib/lib"
17729     fi
17730
17731         ZLIB="${ZLIB} -lz"
17732         ;;
17733 esac
17734 if test X"$enable_zlib" = X"builtin"; then
17735     $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17736
17737     CPPFLAGS="${CPPFLAGS}"' -I$(top_srcdir)/zlib'
17738     ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
17739     ZLIB_SRC=zlib
17740     ac_config_headers="$ac_config_headers zlib/zconf.h"
17741
17742     ac_config_files="$ac_config_files zlib/Makefile"
17743
17744 fi
17745
17746 for ac_func in strsignal
17747 do :
17748   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17749 if test "x$ac_cv_func_strsignal" = xyes; then :
17750   cat >>confdefs.h <<_ACEOF
17751 #define HAVE_STRSIGNAL 1
17752 _ACEOF
17753
17754 else
17755
17756     case " $LIBOBJS " in
17757   *" strsignal.$ac_objext "* ) ;;
17758   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
17759  ;;
17760 esac
17761
17762     HAVE_SIGLIST="false"
17763     ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
17764 $ac_includes_default
17765 #include <signal.h>
17766
17767 "
17768 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
17769   ac_have_decl=1
17770 else
17771   ac_have_decl=0
17772 fi
17773
17774 cat >>confdefs.h <<_ACEOF
17775 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
17776 _ACEOF
17777 if test $ac_have_decl = 1; then :
17778
17779         HAVE_SIGLIST="true"
17780         break
17781
17782 fi
17783 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
17784 $ac_includes_default
17785 #include <signal.h>
17786
17787 "
17788 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
17789   ac_have_decl=1
17790 else
17791   ac_have_decl=0
17792 fi
17793
17794 cat >>confdefs.h <<_ACEOF
17795 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
17796 _ACEOF
17797 if test $ac_have_decl = 1; then :
17798
17799         HAVE_SIGLIST="true"
17800         break
17801
17802 fi
17803 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
17804 $ac_includes_default
17805 #include <signal.h>
17806
17807 "
17808 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
17809   ac_have_decl=1
17810 else
17811   ac_have_decl=0
17812 fi
17813
17814 cat >>confdefs.h <<_ACEOF
17815 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
17816 _ACEOF
17817 if test $ac_have_decl = 1; then :
17818
17819         HAVE_SIGLIST="true"
17820         break
17821
17822 fi
17823
17824     if test "$HAVE_SIGLIST" != "true"; then
17825         case " $LIBOBJS " in
17826   *" siglist.$ac_objext "* ) ;;
17827   *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
17828  ;;
17829 esac
17830
17831     fi
17832
17833 fi
17834 done
17835
17836
17837 if test ${with_netsvc-"no"} != "no"; then
17838     cat >>confdefs.h <<EOF
17839 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
17840 EOF
17841
17842     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
17843 elif test ${with_nsswitch-"yes"} != "no"; then
17844     cat >>confdefs.h <<EOF
17845 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
17846 EOF
17847
17848     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
17849 fi
17850
17851
17852 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
17853     for auth in $AUTH_EXCL_DEF; do
17854         case $auth in
17855             AIX_AUTH)   with_aixauth=maybe;;
17856             BSD_AUTH)   with_bsdauth=maybe;;
17857             PAM)        with_pam=maybe;;
17858             SIA)        CHECKSIA=true;;
17859         esac
17860     done
17861 fi
17862
17863 if test ${with_pam-"no"} != "no"; then
17864     # We already link with -ldl (see LIBDL below) so no need for that here.
17865     SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
17866
17867                     for ac_header in security/pam_appl.h pam/pam_appl.h
17868 do :
17869   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17870 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17872   cat >>confdefs.h <<_ACEOF
17873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17874 _ACEOF
17875  with_pam=yes; break
17876 fi
17877
17878 done
17879
17880     if test "$with_pam" = "yes"; then
17881         $as_echo "#define HAVE_PAM 1" >>confdefs.h
17882
17883         AUTH_OBJS="$AUTH_OBJS pam.lo";
17884         AUTH_EXCL=PAM
17885
17886
17887 # Check whether --with-pam-login was given.
17888 if test "${with_pam_login+set}" = set; then :
17889   withval=$with_pam_login; case $with_pam_login in
17890             yes)        $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
17891
17892                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
17893 $as_echo_n "checking whether to use PAM login... " >&6; }
17894                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17895 $as_echo "yes" >&6; }
17896                         ;;
17897             no)         ;;
17898             *)          as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
17899                         ;;
17900         esac
17901 fi
17902
17903
17904         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
17905 $as_echo_n "checking whether to use PAM session support... " >&6; }
17906         # Check whether --enable-pam_session was given.
17907 if test "${enable_pam_session+set}" = set; then :
17908   enableval=$enable_pam_session;  case "$enableval" in
17909                 yes)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17910 $as_echo "yes" >&6; }
17911                         ;;
17912                 no)             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17913 $as_echo "no" >&6; }
17914                             $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
17915
17916                             ;;
17917                 *)              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17918 $as_echo "no" >&6; }
17919                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
17920 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
17921                             ;;
17922             esac
17923 else
17924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17925 $as_echo "yes" >&6; }
17926 fi
17927
17928     fi
17929 fi
17930
17931 if test ${with_aixauth-'no'} != "no"; then
17932     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
17933         { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
17934 $as_echo "$as_me: using AIX general authentication" >&6;}
17935         $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
17936
17937         AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
17938         SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
17939         AUTH_EXCL=AIX_AUTH
17940     fi
17941 fi
17942
17943 if test ${with_bsdauth-'no'} != "no"; then
17944     ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
17945 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
17946   $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
17947
17948         AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
17949         BSDAUTH_USAGE='[-a auth_type] '
17950         AUTH_EXCL=BSD_AUTH; BAMAN=1
17951 else
17952   as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
17953 fi
17954
17955
17956 fi
17957
17958 if test ${CHECKSIA-'false'} = "true"; then
17959     for ac_func in sia_ses_init
17960 do :
17961   ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
17962 if test "x$ac_cv_func_sia_ses_init" = xyes; then :
17963   cat >>confdefs.h <<_ACEOF
17964 #define HAVE_SIA_SES_INIT 1
17965 _ACEOF
17966  found=true
17967 else
17968   found=false
17969 fi
17970 done
17971
17972     if test "$found" = "true"; then
17973         AUTH_EXCL=SIA
17974         AUTH_OBJS="$AUTH_OBJS sia.lo"
17975     fi
17976 fi
17977
17978 if test ${with_fwtk-'no'} != "no"; then
17979     if test "$with_fwtk" != "yes"; then
17980
17981     if test X"$with_rpath" = X"yes"; then
17982         case "$host" in
17983             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
17984                         ;;
17985             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
17986                         ;;
17987         esac
17988     else
17989         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
17990     fi
17991     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
17992         blibpath_add="${blibpath_add}:${with_fwtk}"
17993     fi
17994
17995         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
17996         with_fwtk=yes
17997     fi
17998     SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
17999     AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18000 fi
18001
18002 if test ${with_SecurID-'no'} != "no"; then
18003     if test "$with_SecurID" != "yes"; then
18004         :
18005     elif test -d /usr/ace/examples; then
18006         with_SecurID=/usr/ace/examples
18007     else
18008         with_SecurID=/usr/ace
18009     fi
18010     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18011     _LDFLAGS="${LDFLAGS}"
18012
18013     if test X"$with_rpath" = X"yes"; then
18014         case "$host" in
18015             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18016                         ;;
18017             *)          LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18018                         ;;
18019         esac
18020     else
18021         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
18022     fi
18023     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18024         blibpath_add="${blibpath_add}:${with_SecurID}"
18025     fi
18026
18027     #
18028     # Determine whether to use the new or old SecurID API
18029     #
18030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
18031 $as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
18032 if ${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+:} false; then :
18033   $as_echo_n "(cached) " >&6
18034 else
18035   ac_check_lib_save_LIBS=$LIBS
18036 LIBS="-laceclnt
18037             -lpthread
18038
18039      $LIBS"
18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h.  */
18042
18043 /* Override any GCC internal prototype to avoid an error.
18044    Use char because int might match the return type of a GCC
18045    builtin and then its argument prototype would still apply.  */
18046 #ifdef __cplusplus
18047 extern "C"
18048 #endif
18049 char SD_Init ();
18050 int
18051 main ()
18052 {
18053 return SD_Init ();
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 if ac_fn_c_try_link "$LINENO"; then :
18059   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
18060 else
18061   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
18062 fi
18063 rm -f core conftest.err conftest.$ac_objext \
18064     conftest$ac_exeext conftest.$ac_ext
18065 LIBS=$ac_check_lib_save_LIBS
18066 fi
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
18068 $as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
18069 if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = xyes; then :
18070
18071             AUTH_OBJS="$AUTH_OBJS securid5.lo";
18072             SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
18073
18074
18075
18076     if test X"$with_rpath" = X"yes"; then
18077         case "$host" in
18078             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18079                         ;;
18080             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18081                         ;;
18082         esac
18083     else
18084         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID}"
18085     fi
18086     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18087         blibpath_add="${blibpath_add}:${with_SecurID}"
18088     fi
18089
18090
18091 else
18092
18093             AUTH_OBJS="$AUTH_OBJS securid.lo";
18094             SUDOERS_LIBS="${SUDOERS_LIBS} ${with_SecurID}/sdiclient.a"
18095
18096 fi
18097
18098     LDFLAGS="${_LDFLAGS}"
18099 fi
18100
18101
18102 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
18103     for auth in $AUTH_DEF; do
18104         case $auth in
18105             passwd)     : ${with_passwd='maybe'};;
18106         esac
18107     done
18108 fi
18109
18110 if test ${with_kerb4-'no'} != "no"; then
18111     $as_echo "#define HAVE_KERB4 1" >>confdefs.h
18112
18113                 O_LDFLAGS="$LDFLAGS"
18114     if test "$with_kerb4" = "yes"; then
18115         found=no
18116         O_CPPFLAGS="$CPPFLAGS"
18117         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
18118             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18119             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h.  */
18121 #include <krb.h>
18122 int
18123 main ()
18124 {
18125
18126   ;
18127   return 0;
18128 }
18129 _ACEOF
18130 if ac_fn_c_try_cpp "$LINENO"; then :
18131   found=yes; break
18132 fi
18133 rm -f conftest.err conftest.i conftest.$ac_ext
18134         done
18135         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
18136     else
18137
18138     if test X"$with_rpath" = X"yes"; then
18139         case "$host" in
18140             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
18141                         ;;
18142             *)          LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
18143                         ;;
18144         esac
18145     else
18146         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
18147     fi
18148     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18149         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
18150     fi
18151
18152
18153     if test X"$with_rpath" = X"yes"; then
18154         case "$host" in
18155             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
18156                         ;;
18157             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
18158                         ;;
18159         esac
18160     else
18161         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb4}/lib"
18162     fi
18163     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18164         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
18165     fi
18166
18167         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
18168         ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18169 if test "x$ac_cv_header_krb_h" = xyes; then :
18170   found=yes
18171 else
18172   found=no
18173 fi
18174
18175
18176     fi
18177     if test X"$found" = X"no"; then
18178         { $as_echo "$as_me:${as_lineno-$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
18179 $as_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;}
18180     fi
18181
18182                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18183 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18184 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
18185   $as_echo_n "(cached) " >&6
18186 else
18187   ac_check_lib_save_LIBS=$LIBS
18188 LIBS="-ldes  $LIBS"
18189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190 /* end confdefs.h.  */
18191
18192 /* Override any GCC internal prototype to avoid an error.
18193    Use char because int might match the return type of a GCC
18194    builtin and then its argument prototype would still apply.  */
18195 #ifdef __cplusplus
18196 extern "C"
18197 #endif
18198 char des_cbc_encrypt ();
18199 int
18200 main ()
18201 {
18202 return des_cbc_encrypt ();
18203   ;
18204   return 0;
18205 }
18206 _ACEOF
18207 if ac_fn_c_try_link "$LINENO"; then :
18208   ac_cv_lib_des_des_cbc_encrypt=yes
18209 else
18210   ac_cv_lib_des_des_cbc_encrypt=no
18211 fi
18212 rm -f core conftest.err conftest.$ac_objext \
18213     conftest$ac_exeext conftest.$ac_ext
18214 LIBS=$ac_check_lib_save_LIBS
18215 fi
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18217 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18218 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
18219   K4LIBS="-ldes"
18220 else
18221
18222         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18223 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18224 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
18225   $as_echo_n "(cached) " >&6
18226 else
18227   ac_check_lib_save_LIBS=$LIBS
18228 LIBS="-ldes425  $LIBS"
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h.  */
18231
18232 /* Override any GCC internal prototype to avoid an error.
18233    Use char because int might match the return type of a GCC
18234    builtin and then its argument prototype would still apply.  */
18235 #ifdef __cplusplus
18236 extern "C"
18237 #endif
18238 char des_cbc_encrypt ();
18239 int
18240 main ()
18241 {
18242 return des_cbc_encrypt ();
18243   ;
18244   return 0;
18245 }
18246 _ACEOF
18247 if ac_fn_c_try_link "$LINENO"; then :
18248   ac_cv_lib_des425_des_cbc_encrypt=yes
18249 else
18250   ac_cv_lib_des425_des_cbc_encrypt=no
18251 fi
18252 rm -f core conftest.err conftest.$ac_objext \
18253     conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18255 fi
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18257 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18258 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
18259   K4LIBS="-ldes425"
18260 else
18261   K4LIBS=""
18262 fi
18263
18264
18265 fi
18266
18267                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
18268 $as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
18269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18270 /* end confdefs.h.  */
18271 #include <krb.h>
18272 int
18273 main ()
18274 {
18275 const char *tmp = krb4_version;
18276   ;
18277   return 0;
18278 }
18279 _ACEOF
18280 if ac_fn_c_try_compile "$LINENO"; then :
18281
18282             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18283 $as_echo "yes" >&6; }
18284             K4LIBS="${K4LIBS} -lcom_err"
18285             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18286 $as_echo_n "checking for main in -lroken... " >&6; }
18287 if ${ac_cv_lib_roken_main+:} false; then :
18288   $as_echo_n "(cached) " >&6
18289 else
18290   ac_check_lib_save_LIBS=$LIBS
18291 LIBS="-lroken  $LIBS"
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h.  */
18294
18295
18296 int
18297 main ()
18298 {
18299 return main ();
18300   ;
18301   return 0;
18302 }
18303 _ACEOF
18304 if ac_fn_c_try_link "$LINENO"; then :
18305   ac_cv_lib_roken_main=yes
18306 else
18307   ac_cv_lib_roken_main=no
18308 fi
18309 rm -f core conftest.err conftest.$ac_objext \
18310     conftest$ac_exeext conftest.$ac_ext
18311 LIBS=$ac_check_lib_save_LIBS
18312 fi
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18314 $as_echo "$ac_cv_lib_roken_main" >&6; }
18315 if test "x$ac_cv_lib_roken_main" = xyes; then :
18316   K4LIBS="${K4LIBS} -lroken"
18317 fi
18318
18319
18320 else
18321
18322             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18323 $as_echo "no" >&6; }
18324
18325
18326 fi
18327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18328                 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
18330 $as_echo_n "checking for main in -lkrb... " >&6; }
18331 if eval \${$as_ac_Lib+:} false; then :
18332   $as_echo_n "(cached) " >&6
18333 else
18334   ac_check_lib_save_LIBS=$LIBS
18335 LIBS="-lkrb $K4LIBS $LIBS"
18336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18337 /* end confdefs.h.  */
18338
18339
18340 int
18341 main ()
18342 {
18343 return main ();
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 if ac_fn_c_try_link "$LINENO"; then :
18349   eval "$as_ac_Lib=yes"
18350 else
18351   eval "$as_ac_Lib=no"
18352 fi
18353 rm -f core conftest.err conftest.$ac_objext \
18354     conftest$ac_exeext conftest.$ac_ext
18355 LIBS=$ac_check_lib_save_LIBS
18356 fi
18357 eval ac_res=\$$as_ac_Lib
18358                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18359 $as_echo "$ac_res" >&6; }
18360 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18361   K4LIBS="-lkrb $K4LIBS"
18362 else
18363
18364         as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
18366 $as_echo_n "checking for main in -lkrb4... " >&6; }
18367 if eval \${$as_ac_Lib+:} false; then :
18368   $as_echo_n "(cached) " >&6
18369 else
18370   ac_check_lib_save_LIBS=$LIBS
18371 LIBS="-lkrb4 $K4LIBS $LIBS"
18372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18373 /* end confdefs.h.  */
18374
18375
18376 int
18377 main ()
18378 {
18379 return main ();
18380   ;
18381   return 0;
18382 }
18383 _ACEOF
18384 if ac_fn_c_try_link "$LINENO"; then :
18385   eval "$as_ac_Lib=yes"
18386 else
18387   eval "$as_ac_Lib=no"
18388 fi
18389 rm -f core conftest.err conftest.$ac_objext \
18390     conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18392 fi
18393 eval ac_res=\$$as_ac_Lib
18394                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18395 $as_echo "$ac_res" >&6; }
18396 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18397   K4LIBS="-lkrb4 $K4LIBS"
18398 else
18399   K4LIBS="-lkrb $K4LIBS"
18400             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDOERS_LDFLAGS and possibly add Kerberos libs to SUDOERS_LIBS" >&5
18401 $as_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 SUDOERS_LDFLAGS and possibly add Kerberos libs to SUDOERS_LIBS" >&2;}
18402
18403 fi
18404
18405
18406 fi
18407
18408     LDFLAGS="$O_LDFLAGS"
18409     SUDOERS_LIBS="${SUDOERS_LIBS} $K4LIBS"
18410     AUTH_OBJS="$AUTH_OBJS kerb4.lo"
18411 fi
18412
18413 if test ${with_kerb5-'no'} != "no"; then
18414     # Extract the first word of "krb5-config", so it can be a program name with args.
18415 set dummy krb5-config; ac_word=$2
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18417 $as_echo_n "checking for $ac_word... " >&6; }
18418 if ${ac_cv_prog_KRB5CONFIG+:} false; then :
18419   $as_echo_n "(cached) " >&6
18420 else
18421   if test -n "$KRB5CONFIG"; then
18422   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
18423 else
18424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18425 for as_dir in $PATH
18426 do
18427   IFS=$as_save_IFS
18428   test -z "$as_dir" && as_dir=.
18429     for ac_exec_ext in '' $ac_executable_extensions; do
18430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18431     ac_cv_prog_KRB5CONFIG="yes"
18432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18433     break 2
18434   fi
18435 done
18436   done
18437 IFS=$as_save_IFS
18438
18439   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
18440 fi
18441 fi
18442 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
18443 if test -n "$KRB5CONFIG"; then
18444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
18445 $as_echo "$KRB5CONFIG" >&6; }
18446 else
18447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18448 $as_echo "no" >&6; }
18449 fi
18450
18451
18452     if test -n "$KRB5CONFIG"; then
18453         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18454
18455         AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18456         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
18457         SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
18458                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18459 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18460         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h.  */
18462 #include <krb5.h>
18463 int
18464 main ()
18465 {
18466 const char *tmp = heimdal_version;
18467   ;
18468   return 0;
18469 }
18470 _ACEOF
18471 if ac_fn_c_try_compile "$LINENO"; then :
18472
18473                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18474 $as_echo "yes" >&6; }
18475                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18476
18477
18478 else
18479
18480                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18481 $as_echo "no" >&6; }
18482
18483
18484 fi
18485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18486     else
18487         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18488
18489                                 if test "$with_kerb5" = "yes"; then
18490             found=no
18491             O_CPPFLAGS="$CPPFLAGS"
18492             for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
18493                 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18494                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495 /* end confdefs.h.  */
18496 #include <krb5.h>
18497 int
18498 main ()
18499 {
18500
18501   ;
18502   return 0;
18503 }
18504 _ACEOF
18505 if ac_fn_c_try_cpp "$LINENO"; then :
18506   found=yes; break
18507 fi
18508 rm -f conftest.err conftest.i conftest.$ac_ext
18509             done
18510             if test X"$found" = X"no"; then
18511                 CPPFLAGS="$O_CPPFLAGS"
18512                 { $as_echo "$as_me:${as_lineno-$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
18513 $as_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;}
18514             fi
18515         else
18516
18517     if test X"$with_rpath" = X"yes"; then
18518         case "$host" in
18519             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
18520                         ;;
18521             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
18522                         ;;
18523         esac
18524     else
18525         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
18526     fi
18527     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18528         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
18529     fi
18530
18531             CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
18532         fi
18533
18534                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18535 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18536         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h.  */
18538 #include <krb5.h>
18539 int
18540 main ()
18541 {
18542 const char *tmp = heimdal_version;
18543   ;
18544   return 0;
18545 }
18546 _ACEOF
18547 if ac_fn_c_try_compile "$LINENO"; then :
18548
18549                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18550 $as_echo "yes" >&6; }
18551                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18552
18553                 # XXX - need to check whether -lcrypo is needed!
18554                 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
18555                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18556 $as_echo_n "checking for main in -lroken... " >&6; }
18557 if ${ac_cv_lib_roken_main+:} false; then :
18558   $as_echo_n "(cached) " >&6
18559 else
18560   ac_check_lib_save_LIBS=$LIBS
18561 LIBS="-lroken  $LIBS"
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h.  */
18564
18565
18566 int
18567 main ()
18568 {
18569 return main ();
18570   ;
18571   return 0;
18572 }
18573 _ACEOF
18574 if ac_fn_c_try_link "$LINENO"; then :
18575   ac_cv_lib_roken_main=yes
18576 else
18577   ac_cv_lib_roken_main=no
18578 fi
18579 rm -f core conftest.err conftest.$ac_objext \
18580     conftest$ac_exeext conftest.$ac_ext
18581 LIBS=$ac_check_lib_save_LIBS
18582 fi
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18584 $as_echo "$ac_cv_lib_roken_main" >&6; }
18585 if test "x$ac_cv_lib_roken_main" = xyes; then :
18586   SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
18587 fi
18588
18589
18590 else
18591
18592                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18593 $as_echo "no" >&6; }
18594                 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
18595                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
18596 $as_echo_n "checking for main in -lkrb5support... " >&6; }
18597 if ${ac_cv_lib_krb5support_main+:} false; then :
18598   $as_echo_n "(cached) " >&6
18599 else
18600   ac_check_lib_save_LIBS=$LIBS
18601 LIBS="-lkrb5support  $LIBS"
18602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603 /* end confdefs.h.  */
18604
18605
18606 int
18607 main ()
18608 {
18609 return main ();
18610   ;
18611   return 0;
18612 }
18613 _ACEOF
18614 if ac_fn_c_try_link "$LINENO"; then :
18615   ac_cv_lib_krb5support_main=yes
18616 else
18617   ac_cv_lib_krb5support_main=no
18618 fi
18619 rm -f core conftest.err conftest.$ac_objext \
18620     conftest$ac_exeext conftest.$ac_ext
18621 LIBS=$ac_check_lib_save_LIBS
18622 fi
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
18624 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
18625 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
18626   SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
18627 fi
18628
18629
18630 fi
18631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18632         AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18633     fi
18634     _LIBS="$LIBS"
18635     LIBS="${LIBS} ${SUDOERS_LIBS}"
18636     for ac_func in krb5_verify_user krb5_init_secure_context
18637 do :
18638   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18640 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18641   cat >>confdefs.h <<_ACEOF
18642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18643 _ACEOF
18644
18645 fi
18646 done
18647
18648     for ac_func in krb5_get_init_creds_opt_alloc
18649 do :
18650   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
18651 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
18652   cat >>confdefs.h <<_ACEOF
18653 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
18654 _ACEOF
18655
18656         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
18657 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
18658 if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
18659   $as_echo_n "(cached) " >&6
18660 else
18661
18662                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663 /* end confdefs.h.  */
18664 #include <krb5.h>
18665 int
18666 main ()
18667 {
18668 krb5_get_init_creds_opt_free(NULL, NULL);
18669
18670   ;
18671   return 0;
18672 }
18673 _ACEOF
18674 if ac_fn_c_try_compile "$LINENO"; then :
18675   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
18676 else
18677   sudo_cv_krb5_get_init_creds_opt_free_two_args=no
18678
18679 fi
18680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18681
18682
18683 fi
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
18685 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
18686
18687 fi
18688 done
18689
18690     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
18691         $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
18692
18693     fi
18694     LIBS="$_LIBS"
18695 fi
18696
18697 if test ${with_AFS-'no'} = "yes"; then
18698
18699     # looks like the "standard" place for AFS libs is /usr/afsws/lib
18700     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
18701     for i in $AFSLIBDIRS; do
18702         if test -d ${i}; then
18703
18704     if test X"$with_rpath" = X"yes"; then
18705         case "$host" in
18706             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
18707                         ;;
18708             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
18709                         ;;
18710         esac
18711     else
18712         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
18713     fi
18714     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18715         blibpath_add="${blibpath_add}:$i"
18716     fi
18717
18718             FOUND_AFSLIBDIR=true
18719         fi
18720     done
18721     if test -z "$FOUND_AFSLIBDIR"; then
18722         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&5
18723 $as_echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
18724     fi
18725
18726     # Order is important here.  Note that we build AFS_LIBS from right to left
18727     # since AFS_LIBS may be initialized with BSD compat libs that must go last
18728     AFS_LIBS="-laudit ${AFS_LIBS}"
18729     for i in $AFSLIBDIRS; do
18730         if test -f ${i}/util.a; then
18731             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
18732             FOUND_UTIL_A=true
18733             break;
18734         fi
18735     done
18736     if test -z "$FOUND_UTIL_A"; then
18737         AFS_LIBS="-lutil ${AFS_LIBS}"
18738     fi
18739     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
18740
18741     # AFS includes may live in /usr/include on some machines...
18742     for i in /usr/afsws/include; do
18743         if test -d ${i}; then
18744             CPPFLAGS="${CPPFLAGS} -I${i}"
18745             FOUND_AFSINCDIR=true
18746         fi
18747     done
18748
18749     if test -z "$FOUND_AFSLIBDIR"; then
18750         { $as_echo "$as_me:${as_lineno-$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
18751 $as_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;}
18752     fi
18753
18754     AUTH_OBJS="$AUTH_OBJS afs.lo"
18755 fi
18756
18757 if test ${with_DCE-'no'} = "yes"; then
18758     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
18759     SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
18760     AUTH_OBJS="$AUTH_OBJS dce.lo"
18761 fi
18762
18763 if test "${with_skey-'no'}" = "yes"; then
18764     O_LDFLAGS="$LDFLAGS"
18765     if test "$with_skey" != "yes"; then
18766         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
18767
18768     if test X"$with_rpath" = X"yes"; then
18769         case "$host" in
18770             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18771                         ;;
18772             *)          LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18773                         ;;
18774         esac
18775     else
18776         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
18777     fi
18778     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18779         blibpath_add="${blibpath_add}:${with_skey}/lib"
18780     fi
18781
18782
18783     if test X"$with_rpath" = X"yes"; then
18784         case "$host" in
18785             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18786                         ;;
18787             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18788                         ;;
18789         esac
18790     else
18791         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
18792     fi
18793     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18794         blibpath_add="${blibpath_add}:${with_skey}/lib"
18795     fi
18796
18797         ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18798 "
18799 if test "x$ac_cv_header_skey_h" = xyes; then :
18800   found=yes
18801 else
18802   found=no
18803 fi
18804
18805
18806     else
18807         found=no
18808         O_CPPFLAGS="$CPPFLAGS"
18809         for dir in "" "/usr/local" "/usr/contrib"; do
18810             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
18811             ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18812 "
18813 if test "x$ac_cv_header_skey_h" = xyes; then :
18814   found=yes; break
18815 fi
18816
18817
18818         done
18819         if test "$found" = "no" -o -z "$dir"; then
18820             CPPFLAGS="$O_CPPFLAGS"
18821         else
18822
18823     if test X"$with_rpath" = X"yes"; then
18824         case "$host" in
18825             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18826                         ;;
18827             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18828                         ;;
18829         esac
18830     else
18831         LDFLAGS="${LDFLAGS} -L${dir}/lib"
18832     fi
18833     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18834         blibpath_add="${blibpath_add}:${dir}/lib"
18835     fi
18836
18837
18838     if test X"$with_rpath" = X"yes"; then
18839         case "$host" in
18840             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18841                         ;;
18842             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18843                         ;;
18844         esac
18845     else
18846         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
18847     fi
18848     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18849         blibpath_add="${blibpath_add}:${dir}/lib"
18850     fi
18851
18852         fi
18853         if test "$found" = "no"; then
18854             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
18855 $as_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;}
18856         fi
18857     fi
18858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
18859 $as_echo_n "checking for main in -lskey... " >&6; }
18860 if ${ac_cv_lib_skey_main+:} false; then :
18861   $as_echo_n "(cached) " >&6
18862 else
18863   ac_check_lib_save_LIBS=$LIBS
18864 LIBS="-lskey  $LIBS"
18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h.  */
18867
18868
18869 int
18870 main ()
18871 {
18872 return main ();
18873   ;
18874   return 0;
18875 }
18876 _ACEOF
18877 if ac_fn_c_try_link "$LINENO"; then :
18878   ac_cv_lib_skey_main=yes
18879 else
18880   ac_cv_lib_skey_main=no
18881 fi
18882 rm -f core conftest.err conftest.$ac_objext \
18883     conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18885 fi
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
18887 $as_echo "$ac_cv_lib_skey_main" >&6; }
18888 if test "x$ac_cv_lib_skey_main" = xyes; then :
18889   found=yes
18890 else
18891   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&5
18892 $as_echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&2;}
18893 fi
18894
18895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
18896 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
18897 if ${ac_cv_lib_skey_skeyaccess+:} false; then :
18898   $as_echo_n "(cached) " >&6
18899 else
18900   ac_check_lib_save_LIBS=$LIBS
18901 LIBS="-lskey  $LIBS"
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h.  */
18904
18905 /* Override any GCC internal prototype to avoid an error.
18906    Use char because int might match the return type of a GCC
18907    builtin and then its argument prototype would still apply.  */
18908 #ifdef __cplusplus
18909 extern "C"
18910 #endif
18911 char skeyaccess ();
18912 int
18913 main ()
18914 {
18915 return skeyaccess ();
18916   ;
18917   return 0;
18918 }
18919 _ACEOF
18920 if ac_fn_c_try_link "$LINENO"; then :
18921   ac_cv_lib_skey_skeyaccess=yes
18922 else
18923   ac_cv_lib_skey_skeyaccess=no
18924 fi
18925 rm -f core conftest.err conftest.$ac_objext \
18926     conftest$ac_exeext conftest.$ac_ext
18927 LIBS=$ac_check_lib_save_LIBS
18928 fi
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
18930 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
18931 if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
18932   $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
18933
18934 fi
18935
18936
18937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
18938 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
18939     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18940 /* end confdefs.h.  */
18941 #include <stdio.h>
18942             #include <skey.h>
18943 int
18944 main ()
18945 {
18946 skeychallenge(NULL, NULL, NULL, 0);
18947
18948   ;
18949   return 0;
18950 }
18951 _ACEOF
18952 if ac_fn_c_try_compile "$LINENO"; then :
18953
18954             $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
18955
18956             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18957 $as_echo "yes" >&6; }
18958
18959 else
18960
18961             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18962 $as_echo "no" >&6; }
18963
18964
18965 fi
18966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18967
18968     LDFLAGS="$O_LDFLAGS"
18969     SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
18970     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
18971 fi
18972
18973 if test "${with_opie-'no'}" = "yes"; then
18974     O_LDFLAGS="$LDFLAGS"
18975     if test "$with_opie" != "yes"; then
18976         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
18977
18978     if test X"$with_rpath" = X"yes"; then
18979         case "$host" in
18980             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18981                         ;;
18982             *)          LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
18983                         ;;
18984         esac
18985     else
18986         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
18987     fi
18988     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18989         blibpath_add="${blibpath_add}:${with_opie}/lib"
18990     fi
18991
18992
18993     if test X"$with_rpath" = X"yes"; then
18994         case "$host" in
18995             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18996                         ;;
18997             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
18998                         ;;
18999         esac
19000     else
19001         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
19002     fi
19003     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19004         blibpath_add="${blibpath_add}:${with_opie}/lib"
19005     fi
19006
19007         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h.  */
19009 #include <opie.h>
19010 int
19011 main ()
19012 {
19013
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 if ac_fn_c_try_cpp "$LINENO"; then :
19019   found=yes
19020 else
19021   found=no
19022 fi
19023 rm -f conftest.err conftest.i conftest.$ac_ext
19024     else
19025         found=no
19026         O_CPPFLAGS="$CPPFLAGS"
19027         for dir in "" "/usr/local" "/usr/contrib"; do
19028             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19029             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h.  */
19031 #include <opie.h>
19032 int
19033 main ()
19034 {
19035
19036   ;
19037   return 0;
19038 }
19039 _ACEOF
19040 if ac_fn_c_try_cpp "$LINENO"; then :
19041   found=yes; break
19042 fi
19043 rm -f conftest.err conftest.i conftest.$ac_ext
19044         done
19045         if test "$found" = "no" -o -z "$dir"; then
19046             CPPFLAGS="$O_CPPFLAGS"
19047         else
19048
19049     if test X"$with_rpath" = X"yes"; then
19050         case "$host" in
19051             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19052                         ;;
19053             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19054                         ;;
19055         esac
19056     else
19057         LDFLAGS="${LDFLAGS} -L${dir}/lib"
19058     fi
19059     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19060         blibpath_add="${blibpath_add}:${dir}/lib"
19061     fi
19062
19063
19064     if test X"$with_rpath" = X"yes"; then
19065         case "$host" in
19066             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19067                         ;;
19068             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19069                         ;;
19070         esac
19071     else
19072         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19073     fi
19074     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19075         blibpath_add="${blibpath_add}:${dir}/lib"
19076     fi
19077
19078         fi
19079         if test "$found" = "no"; then
19080             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
19081 $as_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;}
19082         fi
19083     fi
19084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19085 $as_echo_n "checking for main in -lopie... " >&6; }
19086 if ${ac_cv_lib_opie_main+:} false; then :
19087   $as_echo_n "(cached) " >&6
19088 else
19089   ac_check_lib_save_LIBS=$LIBS
19090 LIBS="-lopie  $LIBS"
19091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19092 /* end confdefs.h.  */
19093
19094
19095 int
19096 main ()
19097 {
19098 return main ();
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 if ac_fn_c_try_link "$LINENO"; then :
19104   ac_cv_lib_opie_main=yes
19105 else
19106   ac_cv_lib_opie_main=no
19107 fi
19108 rm -f core conftest.err conftest.$ac_objext \
19109     conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19111 fi
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19113 $as_echo "$ac_cv_lib_opie_main" >&6; }
19114 if test "x$ac_cv_lib_opie_main" = xyes; then :
19115   found=yes
19116 else
19117   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&5
19118 $as_echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&2;}
19119 fi
19120
19121     LDFLAGS="$O_LDFLAGS"
19122     SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19123     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19124 fi
19125
19126 if test ${with_passwd-'no'} != "no"; then
19127                 if test -z "$LIB_CRYPT"; then
19128         _LIBS="$LIBS"
19129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19130 $as_echo_n "checking for library containing crypt... " >&6; }
19131 if ${ac_cv_search_crypt+:} false; then :
19132   $as_echo_n "(cached) " >&6
19133 else
19134   ac_func_search_save_LIBS=$LIBS
19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136 /* end confdefs.h.  */
19137
19138 /* Override any GCC internal prototype to avoid an error.
19139    Use char because int might match the return type of a GCC
19140    builtin and then its argument prototype would still apply.  */
19141 #ifdef __cplusplus
19142 extern "C"
19143 #endif
19144 char crypt ();
19145 int
19146 main ()
19147 {
19148 return crypt ();
19149   ;
19150   return 0;
19151 }
19152 _ACEOF
19153 for ac_lib in '' crypt crypt_d ufc; do
19154   if test -z "$ac_lib"; then
19155     ac_res="none required"
19156   else
19157     ac_res=-l$ac_lib
19158     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19159   fi
19160   if ac_fn_c_try_link "$LINENO"; then :
19161   ac_cv_search_crypt=$ac_res
19162 fi
19163 rm -f core conftest.err conftest.$ac_objext \
19164     conftest$ac_exeext
19165   if ${ac_cv_search_crypt+:} false; then :
19166   break
19167 fi
19168 done
19169 if ${ac_cv_search_crypt+:} false; then :
19170
19171 else
19172   ac_cv_search_crypt=no
19173 fi
19174 rm conftest.$ac_ext
19175 LIBS=$ac_func_search_save_LIBS
19176 fi
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19178 $as_echo "$ac_cv_search_crypt" >&6; }
19179 ac_res=$ac_cv_search_crypt
19180 if test "$ac_res" != no; then :
19181   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19182   test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19183 fi
19184
19185         LIBS="$_LIBS"
19186     fi
19187
19188     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19189         _LIBS="$LIBS"
19190         LIBS="$LIBS $shadow_libs"
19191         found=no
19192         for ac_func in $shadow_funcs
19193 do :
19194   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19196 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19197   cat >>confdefs.h <<_ACEOF
19198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19199 _ACEOF
19200  found=yes
19201 fi
19202 done
19203
19204         if test "$found" = "yes"; then
19205             SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19206         elif test -n "$shadow_libs_optional"; then
19207             LIBS="$LIBS $shadow_libs_optional"
19208             for ac_func in $shadow_funcs
19209 do :
19210   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19213   cat >>confdefs.h <<_ACEOF
19214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19215 _ACEOF
19216  found=yes
19217 fi
19218 done
19219
19220             if test "$found" = "yes"; then
19221                 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19222             fi
19223         fi
19224         if test "$found" = "yes"; then
19225             case "$shadow_funcs" in
19226                 *getprpwnam*) SECUREWARE=1;;
19227             esac
19228             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19229         else
19230             LIBS="$_LIBS"
19231         fi
19232         CHECKSHADOW=false
19233     fi
19234     if test "$CHECKSHADOW" = "true"; then
19235         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19236 $as_echo_n "checking for library containing getspnam... " >&6; }
19237 if ${ac_cv_search_getspnam+:} false; then :
19238   $as_echo_n "(cached) " >&6
19239 else
19240   ac_func_search_save_LIBS=$LIBS
19241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19242 /* end confdefs.h.  */
19243
19244 /* Override any GCC internal prototype to avoid an error.
19245    Use char because int might match the return type of a GCC
19246    builtin and then its argument prototype would still apply.  */
19247 #ifdef __cplusplus
19248 extern "C"
19249 #endif
19250 char getspnam ();
19251 int
19252 main ()
19253 {
19254 return getspnam ();
19255   ;
19256   return 0;
19257 }
19258 _ACEOF
19259 for ac_lib in '' gen; do
19260   if test -z "$ac_lib"; then
19261     ac_res="none required"
19262   else
19263     ac_res=-l$ac_lib
19264     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19265   fi
19266   if ac_fn_c_try_link "$LINENO"; then :
19267   ac_cv_search_getspnam=$ac_res
19268 fi
19269 rm -f core conftest.err conftest.$ac_objext \
19270     conftest$ac_exeext
19271   if ${ac_cv_search_getspnam+:} false; then :
19272   break
19273 fi
19274 done
19275 if ${ac_cv_search_getspnam+:} false; then :
19276
19277 else
19278   ac_cv_search_getspnam=no
19279 fi
19280 rm conftest.$ac_ext
19281 LIBS=$ac_func_search_save_LIBS
19282 fi
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19284 $as_echo "$ac_cv_search_getspnam" >&6; }
19285 ac_res=$ac_cv_search_getspnam
19286 if test "$ac_res" != no; then :
19287   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19288   $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19289  CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19290 fi
19291
19292     fi
19293     if test "$CHECKSHADOW" = "true"; then
19294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19295 $as_echo_n "checking for library containing getprpwnam... " >&6; }
19296 if ${ac_cv_search_getprpwnam+:} false; then :
19297   $as_echo_n "(cached) " >&6
19298 else
19299   ac_func_search_save_LIBS=$LIBS
19300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19301 /* end confdefs.h.  */
19302
19303 /* Override any GCC internal prototype to avoid an error.
19304    Use char because int might match the return type of a GCC
19305    builtin and then its argument prototype would still apply.  */
19306 #ifdef __cplusplus
19307 extern "C"
19308 #endif
19309 char getprpwnam ();
19310 int
19311 main ()
19312 {
19313 return getprpwnam ();
19314   ;
19315   return 0;
19316 }
19317 _ACEOF
19318 for ac_lib in '' sec security prot; do
19319   if test -z "$ac_lib"; then
19320     ac_res="none required"
19321   else
19322     ac_res=-l$ac_lib
19323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19324   fi
19325   if ac_fn_c_try_link "$LINENO"; then :
19326   ac_cv_search_getprpwnam=$ac_res
19327 fi
19328 rm -f core conftest.err conftest.$ac_objext \
19329     conftest$ac_exeext
19330   if ${ac_cv_search_getprpwnam+:} false; then :
19331   break
19332 fi
19333 done
19334 if ${ac_cv_search_getprpwnam+:} false; then :
19335
19336 else
19337   ac_cv_search_getprpwnam=no
19338 fi
19339 rm conftest.$ac_ext
19340 LIBS=$ac_func_search_save_LIBS
19341 fi
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19343 $as_echo "$ac_cv_search_getprpwnam" >&6; }
19344 ac_res=$ac_cv_search_getprpwnam
19345 if test "$ac_res" != no; then :
19346   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19347   $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19348  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19349 fi
19350
19351     fi
19352     if test -n "$SECUREWARE"; then
19353         for ac_func in bigcrypt set_auth_parameters initprivs
19354 do :
19355   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19356 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19357 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19358   cat >>confdefs.h <<_ACEOF
19359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19360 _ACEOF
19361
19362 fi
19363 done
19364
19365         AUTH_OBJS="$AUTH_OBJS secureware.lo"
19366     fi
19367 fi
19368
19369 if test ${with_ldap-'no'} != "no"; then
19370     _LDFLAGS="$LDFLAGS"
19371     if test "$with_ldap" != "yes"; then
19372
19373     if test X"$with_rpath" = X"yes"; then
19374         case "$host" in
19375             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19376                         ;;
19377             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19378                         ;;
19379         esac
19380     else
19381         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19382     fi
19383     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19384         blibpath_add="${blibpath_add}:${with_ldap}/lib"
19385     fi
19386
19387
19388     if test X"$with_rpath" = X"yes"; then
19389         case "$host" in
19390             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19391                         ;;
19392             *)          LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19393                         ;;
19394         esac
19395     else
19396         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
19397     fi
19398     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19399         blibpath_add="${blibpath_add}:${with_ldap}/lib"
19400     fi
19401
19402         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19403         with_ldap=yes
19404     fi
19405     SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
19406     LDAP=""
19407
19408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
19409 $as_echo_n "checking for LDAP libraries... " >&6; }
19410     LDAP_LIBS=""
19411     _LIBS="$LIBS"
19412     found=no
19413     for l in -lldap -llber '-lssl -lcrypto'; do
19414         LIBS="${LIBS} $l"
19415         LDAP_LIBS="${LDAP_LIBS} $l"
19416         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h.  */
19418 #include <sys/types.h>
19419         #include <lber.h>
19420         #include <ldap.h>
19421 int
19422 main ()
19423 {
19424 (void)ldap_init(0, 0)
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 if ac_fn_c_try_link "$LINENO"; then :
19430   found=yes; break
19431 fi
19432 rm -f core conftest.err conftest.$ac_objext \
19433     conftest$ac_exeext conftest.$ac_ext
19434     done
19435         if test "$found" = "no"; then
19436         LIBS="${_LIBS} -lldap"
19437         LDAP_LIBS="-lldap"
19438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
19439 $as_echo "not found, using -lldap" >&6; }
19440     else
19441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
19442 $as_echo "$LDAP_LIBS" >&6; }
19443     fi
19444         OLIBS="$LIBS"
19445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
19446 $as_echo_n "checking for library containing ber_set_option... " >&6; }
19447 if ${ac_cv_search_ber_set_option+:} false; then :
19448   $as_echo_n "(cached) " >&6
19449 else
19450   ac_func_search_save_LIBS=$LIBS
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h.  */
19453
19454 /* Override any GCC internal prototype to avoid an error.
19455    Use char because int might match the return type of a GCC
19456    builtin and then its argument prototype would still apply.  */
19457 #ifdef __cplusplus
19458 extern "C"
19459 #endif
19460 char ber_set_option ();
19461 int
19462 main ()
19463 {
19464 return ber_set_option ();
19465   ;
19466   return 0;
19467 }
19468 _ACEOF
19469 for ac_lib in '' lber; do
19470   if test -z "$ac_lib"; then
19471     ac_res="none required"
19472   else
19473     ac_res=-l$ac_lib
19474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19475   fi
19476   if ac_fn_c_try_link "$LINENO"; then :
19477   ac_cv_search_ber_set_option=$ac_res
19478 fi
19479 rm -f core conftest.err conftest.$ac_objext \
19480     conftest$ac_exeext
19481   if ${ac_cv_search_ber_set_option+:} false; then :
19482   break
19483 fi
19484 done
19485 if ${ac_cv_search_ber_set_option+:} false; then :
19486
19487 else
19488   ac_cv_search_ber_set_option=no
19489 fi
19490 rm conftest.$ac_ext
19491 LIBS=$ac_func_search_save_LIBS
19492 fi
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
19494 $as_echo "$ac_cv_search_ber_set_option" >&6; }
19495 ac_res=$ac_cv_search_ber_set_option
19496 if test "$ac_res" != no; then :
19497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19498   found=yes
19499 else
19500   found=no
19501 fi
19502
19503     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
19504         LDAP_LIBS="$LDAP_LIBS -llber"
19505     fi
19506         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
19507 $as_echo_n "checking whether lber.h is needed... " >&6; }
19508     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h.  */
19510 #include <sys/types.h>
19511     #include <ldap.h>
19512 int
19513 main ()
19514 {
19515 (void)ldap_init(0, 0)
19516   ;
19517   return 0;
19518 }
19519 _ACEOF
19520 if ac_fn_c_try_link "$LINENO"; then :
19521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19522 $as_echo "no" >&6; }
19523 else
19524
19525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19526 $as_echo "yes" >&6; }
19527     $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
19528
19529 fi
19530 rm -f core conftest.err conftest.$ac_objext \
19531     conftest$ac_exeext conftest.$ac_ext
19532
19533     for ac_header in sasl/sasl.h sasl.h
19534 do :
19535   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19536 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19537 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19538   cat >>confdefs.h <<_ACEOF
19539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19540 _ACEOF
19541  for ac_func in ldap_sasl_interactive_bind_s
19542 do :
19543   ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
19544 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
19545   cat >>confdefs.h <<_ACEOF
19546 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
19547 _ACEOF
19548
19549 fi
19550 done
19551
19552 else
19553   break
19554 fi
19555
19556 done
19557
19558     for ac_header in ldap_ssl.h mps/ldap_ssl.h
19559 do :
19560   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19561 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
19562 "
19563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19564   cat >>confdefs.h <<_ACEOF
19565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19566 _ACEOF
19567  break
19568 fi
19569
19570 done
19571
19572     for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
19573 do :
19574   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19575 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19576 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19577   cat >>confdefs.h <<_ACEOF
19578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19579 _ACEOF
19580
19581 fi
19582 done
19583
19584     for ac_func in ldap_search_ext_s ldap_search_st
19585 do :
19586   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19588 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19589   cat >>confdefs.h <<_ACEOF
19590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19591 _ACEOF
19592  break
19593 fi
19594 done
19595
19596
19597     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
19598         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
19599 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
19600 if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
19601   $as_echo_n "(cached) " >&6
19602 else
19603   ac_check_lib_save_LIBS=$LIBS
19604 LIBS="-lgssapi  $LIBS"
19605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19606 /* end confdefs.h.  */
19607
19608 /* Override any GCC internal prototype to avoid an error.
19609    Use char because int might match the return type of a GCC
19610    builtin and then its argument prototype would still apply.  */
19611 #ifdef __cplusplus
19612 extern "C"
19613 #endif
19614 char gss_krb5_ccache_name ();
19615 int
19616 main ()
19617 {
19618 return gss_krb5_ccache_name ();
19619   ;
19620   return 0;
19621 }
19622 _ACEOF
19623 if ac_fn_c_try_link "$LINENO"; then :
19624   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
19625 else
19626   ac_cv_lib_gssapi_gss_krb5_ccache_name=no
19627 fi
19628 rm -f core conftest.err conftest.$ac_objext \
19629     conftest$ac_exeext conftest.$ac_ext
19630 LIBS=$ac_check_lib_save_LIBS
19631 fi
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
19633 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
19634 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
19635   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19636
19637             LDAP_LIBS="${LDAP_LIBS} -lgssapi"
19638 else
19639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
19640 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
19641 if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
19642   $as_echo_n "(cached) " >&6
19643 else
19644   ac_check_lib_save_LIBS=$LIBS
19645 LIBS="-lgssapi_krb5  $LIBS"
19646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19647 /* end confdefs.h.  */
19648
19649 /* Override any GCC internal prototype to avoid an error.
19650    Use char because int might match the return type of a GCC
19651    builtin and then its argument prototype would still apply.  */
19652 #ifdef __cplusplus
19653 extern "C"
19654 #endif
19655 char gss_krb5_ccache_name ();
19656 int
19657 main ()
19658 {
19659 return gss_krb5_ccache_name ();
19660   ;
19661   return 0;
19662 }
19663 _ACEOF
19664 if ac_fn_c_try_link "$LINENO"; then :
19665   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
19666 else
19667   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
19668 fi
19669 rm -f core conftest.err conftest.$ac_objext \
19670     conftest$ac_exeext conftest.$ac_ext
19671 LIBS=$ac_check_lib_save_LIBS
19672 fi
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
19674 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
19675 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
19676   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19677
19678                 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
19679 fi
19680
19681
19682 fi
19683
19684
19685         # gssapi headers may be separate or part of Kerberos V
19686         found=no
19687         O_CPPFLAGS="$CPPFLAGS"
19688         for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
19689             test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
19690             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h.  */
19692 #include <gssapi/gssapi.h>
19693 int
19694 main ()
19695 {
19696
19697   ;
19698   return 0;
19699 }
19700 _ACEOF
19701 if ac_fn_c_try_cpp "$LINENO"; then :
19702   found="gssapi/gssapi.h"; break
19703 else
19704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h.  */
19706 #include <gssapi.h>
19707 int
19708 main ()
19709 {
19710
19711   ;
19712   return 0;
19713 }
19714 _ACEOF
19715 if ac_fn_c_try_cpp "$LINENO"; then :
19716   found="gssapi.h"; break
19717 fi
19718 rm -f conftest.err conftest.i conftest.$ac_ext
19719 fi
19720 rm -f conftest.err conftest.i conftest.$ac_ext
19721         done
19722         if test X"$found" != X"no"; then
19723             for ac_header in $found
19724 do :
19725   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19726 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19727 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19728   cat >>confdefs.h <<_ACEOF
19729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19730 _ACEOF
19731
19732 fi
19733
19734 done
19735
19736             if test X"$found" = X"gssapi/gssapi.h"; then
19737                 for ac_header in gssapi/gssapi_krb5.h
19738 do :
19739   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
19740 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
19741   cat >>confdefs.h <<_ACEOF
19742 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
19743 _ACEOF
19744
19745 fi
19746
19747 done
19748
19749             fi
19750         else
19751             CPPFLAGS="$O_CPPFLAGS"
19752             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
19753 $as_echo "$as_me: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&2;}
19754         fi
19755     fi
19756
19757     SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
19758     LIBS="$_LIBS"
19759     LDFLAGS="$_LDFLAGS"
19760 fi
19761
19762 #
19763 # How to do dynamic object loading.
19764 # We support dlopen() and sh_load(), else fall back to static loading.
19765 #
19766 case "$lt_cv_dlopen" in
19767     dlopen)
19768         $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
19769
19770         SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19771         LT_STATIC="--tag=disable-static"
19772         ;;
19773     shl_load)
19774         $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19775
19776         SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19777         LT_STATIC="--tag=disable-static"
19778         case " $LIBOBJS " in
19779   *" dlopen.$ac_objext "* ) ;;
19780   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19781  ;;
19782 esac
19783
19784         ;;
19785     *)
19786         if test X"${ac_cv_func_dlopen}" = X"yes"; then
19787             as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
19788         fi
19789         # Preload sudoers module symbols
19790         SUDO_OBJS="${SUDO_OBJS} preload.o"
19791         SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
19792         LT_STATIC=""
19793         case " $LIBOBJS " in
19794   *" dlopen.$ac_objext "* ) ;;
19795   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19796  ;;
19797 esac
19798
19799         ;;
19800 esac
19801
19802 #
19803 # Add library needed for dynamic loading, if any.
19804 #
19805 LIBDL="$lt_cv_dlopen_libs"
19806 if test X"$LIBDL" != X""; then
19807     SUDO_LIBS="${SUDO_LIBS} $LIBDL"
19808     SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
19809 fi
19810
19811 # On HP-UX, you cannot dlopen() a shared object that uses pthreads
19812 # unless the main program is linked against -lpthread.  Since we
19813 # have no knowledge what libraries a plugin may depend on, we always
19814 # link against -lpthread on HP-UX if it is available.
19815 # This check should go after all other libraries tests.
19816 case "$host" in
19817     *-*-hpux*)
19818         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
19819 $as_echo_n "checking for main in -lpthread... " >&6; }
19820 if ${ac_cv_lib_pthread_main+:} false; then :
19821   $as_echo_n "(cached) " >&6
19822 else
19823   ac_check_lib_save_LIBS=$LIBS
19824 LIBS="-lpthread  $LIBS"
19825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19826 /* end confdefs.h.  */
19827
19828
19829 int
19830 main ()
19831 {
19832 return main ();
19833   ;
19834   return 0;
19835 }
19836 _ACEOF
19837 if ac_fn_c_try_link "$LINENO"; then :
19838   ac_cv_lib_pthread_main=yes
19839 else
19840   ac_cv_lib_pthread_main=no
19841 fi
19842 rm -f core conftest.err conftest.$ac_objext \
19843     conftest$ac_exeext conftest.$ac_ext
19844 LIBS=$ac_check_lib_save_LIBS
19845 fi
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
19847 $as_echo "$ac_cv_lib_pthread_main" >&6; }
19848 if test "x$ac_cv_lib_pthread_main" = xyes; then :
19849   SUDO_LIBS="${SUDO_LIBS} -lpthread"
19850 fi
19851
19852         ;;
19853 esac
19854
19855 if test -n "$blibpath"; then
19856     if test -n "$blibpath_add"; then
19857         SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
19858     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
19859         SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
19860     fi
19861 fi
19862
19863 if test "$utmp_style" = "LEGACY"; then
19864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
19865 $as_echo_n "checking for utmp file path... " >&6; }
19866 found=no
19867 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
19868     if test -r "$p"; then
19869         found=yes
19870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
19871 $as_echo "$p" >&6; }
19872         cat >>confdefs.h <<EOF
19873 #define _PATH_UTMP "$p"
19874 EOF
19875
19876         break
19877     fi
19878 done
19879 if test X"$found" != X"yes"; then
19880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19881 $as_echo "not found" >&6; }
19882 fi
19883
19884 fi
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
19886 $as_echo_n "checking for log file location... " >&6; }
19887 if test -n "$with_logpath"; then
19888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
19889 $as_echo "$with_logpath" >&6; }
19890     cat >>confdefs.h <<EOF
19891 #define _PATH_SUDO_LOGFILE "$with_logpath"
19892 EOF
19893
19894 elif test -d "/var/log"; then
19895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
19896 $as_echo "/var/log/sudo.log" >&6; }
19897     cat >>confdefs.h <<\EOF
19898 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
19899 EOF
19900
19901 elif test -d "/var/adm"; then
19902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
19903 $as_echo "/var/adm/sudo.log" >&6; }
19904     cat >>confdefs.h <<\EOF
19905 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
19906 EOF
19907
19908 elif test -d "/usr/adm"; then
19909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
19910 $as_echo "/usr/adm/sudo.log" >&6; }
19911     cat >>confdefs.h <<\EOF
19912 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
19913 EOF
19914
19915 else
19916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
19917 $as_echo "unknown" >&6; }
19918 fi
19919
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
19921 $as_echo_n "checking for timestamp file location... " >&6; }
19922 timedir="$with_timedir"
19923 if test -z "$timedir"; then
19924     for d in /var/db /var/lib /var/adm /usr/adm; do
19925         if test -d "$d"; then
19926             timedir="$d/sudo"
19927             break
19928         fi
19929     done
19930 fi
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
19932 $as_echo "$timedir" >&6; }
19933 cat >>confdefs.h <<EOF
19934 #define _PATH_SUDO_TIMEDIR "$timedir"
19935 EOF
19936
19937
19938
19939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
19940 $as_echo_n "checking for I/O log dir location... " >&6; }
19941     if test "${with_iologdir-yes}" != "yes"; then
19942         iolog_dir="$with_iologdir"
19943     elif test -d "/var/log"; then
19944         iolog_dir="/var/log/sudo-io"
19945     elif test -d "/var/adm"; then
19946         iolog_dir="/var/adm/sudo-io"
19947     else
19948         iolog_dir="/usr/adm/sudo-io"
19949     fi
19950     if test "${with_iologdir}" != "no"; then
19951         cat >>confdefs.h <<EOF
19952 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
19953 EOF
19954
19955     fi
19956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
19957 $as_echo "$iolog_dir" >&6; }
19958
19959
19960 case "$with_passwd" in
19961 yes|maybe)
19962     AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
19963     ;;
19964 *)
19965     $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
19966
19967     if test -z "$AUTH_OBJS"; then
19968         as_fn_error $? "no authentication methods defined." "$LINENO" 5
19969     fi
19970     ;;
19971 esac
19972 AUTH_OBJS=${AUTH_OBJS# }
19973 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
19975 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
19976
19977 if test -n "$LIBS"; then
19978     L="$LIBS"
19979     LIBS=
19980     for l in ${L}; do
19981         dupe=0
19982         for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
19983             test $l = $sl && dupe=1
19984         done
19985         test $dupe = 0 && LIBS="${LIBS} $l"
19986     done
19987 fi
19988
19989 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
19990
19991 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
19992     oexec_prefix="$exec_prefix"
19993     if test "$exec_prefix" = '$(prefix)'; then
19994         if test "$prefix" = "NONE"; then
19995             exec_prefix="$ac_default_prefix"
19996         else
19997             exec_prefix="$prefix"
19998         fi
19999     fi
20000     if test X"$with_noexec" != X"no"; then
20001         PROGS="${PROGS} libsudo_noexec.la"
20002         INSTALL_NOEXEC="install-noexec"
20003
20004         eval noexec_file="$with_noexec"
20005         cat >>confdefs.h <<EOF
20006 #define _PATH_SUDO_NOEXEC "$noexec_file"
20007 EOF
20008
20009     fi
20010     if test X"$with_selinux" != X"no"; then
20011         eval sesh_file="$libexecdir/sesh"
20012         cat >>confdefs.h <<EOF
20013 #define _PATH_SUDO_SESH "$sesh_file"
20014 EOF
20015
20016     fi
20017     eval PLUGINDIR="$with_plugindir"
20018     cat >>confdefs.h <<EOF
20019 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
20020 EOF
20021
20022     cat >>confdefs.h <<EOF
20023 #define SUDOERS_PLUGIN "sudoers${SOEXT}"
20024 EOF
20025
20026     exec_prefix="$oexec_prefix"
20027 fi
20028
20029 if test X"$prefix" = X"NONE"; then
20030     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
20031 else
20032     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
20033 fi
20034 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
20035 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
20036 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
20037 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
20038 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
20039 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
20040 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
20041
20042 ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/sample_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
20043
20044 cat >confcache <<\_ACEOF
20045 # This file is a shell script that caches the results of configure
20046 # tests run on this system so they can be shared between configure
20047 # scripts and configure runs, see configure's option --config-cache.
20048 # It is not useful on other systems.  If it contains results you don't
20049 # want to keep, you may remove or edit it.
20050 #
20051 # config.status only pays attention to the cache file if you give it
20052 # the --recheck option to rerun configure.
20053 #
20054 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20055 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20056 # following values.
20057
20058 _ACEOF
20059
20060 # The following way of writing the cache mishandles newlines in values,
20061 # but we know of no workaround that is simple, portable, and efficient.
20062 # So, we kill variables containing newlines.
20063 # Ultrix sh set writes to stderr and can't be redirected directly,
20064 # and sets the high bit in the cache file unless we assign to the vars.
20065 (
20066   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20067     eval ac_val=\$$ac_var
20068     case $ac_val in #(
20069     *${as_nl}*)
20070       case $ac_var in #(
20071       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20072 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20073       esac
20074       case $ac_var in #(
20075       _ | IFS | as_nl) ;; #(
20076       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20077       *) { eval $ac_var=; unset $ac_var;} ;;
20078       esac ;;
20079     esac
20080   done
20081
20082   (set) 2>&1 |
20083     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20084     *${as_nl}ac_space=\ *)
20085       # `set' does not quote correctly, so add quotes: double-quote
20086       # substitution turns \\\\ into \\, and sed turns \\ into \.
20087       sed -n \
20088         "s/'/'\\\\''/g;
20089           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20090       ;; #(
20091     *)
20092       # `set' quotes correctly as required by POSIX, so do not add quotes.
20093       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20094       ;;
20095     esac |
20096     sort
20097 ) |
20098   sed '
20099      /^ac_cv_env_/b end
20100      t clear
20101      :clear
20102      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20103      t end
20104      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20105      :end' >>confcache
20106 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20107   if test -w "$cache_file"; then
20108     if test "x$cache_file" != "x/dev/null"; then
20109       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20110 $as_echo "$as_me: updating cache $cache_file" >&6;}
20111       if test ! -f "$cache_file" || test -h "$cache_file"; then
20112         cat confcache >"$cache_file"
20113       else
20114         case $cache_file in #(
20115         */* | ?:*)
20116           mv -f confcache "$cache_file"$$ &&
20117           mv -f "$cache_file"$$ "$cache_file" ;; #(
20118         *)
20119           mv -f confcache "$cache_file" ;;
20120         esac
20121       fi
20122     fi
20123   else
20124     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20125 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20126   fi
20127 fi
20128 rm -f confcache
20129
20130 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20131 # Let make expand exec_prefix.
20132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20133
20134 DEFS=-DHAVE_CONFIG_H
20135
20136 ac_libobjs=
20137 ac_ltlibobjs=
20138 U=
20139 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20140   # 1. Remove the extension, and $U if already installed.
20141   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20142   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20143   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20144   #    will be set to the directory where LIBOBJS objects are built.
20145   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20146   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20147 done
20148 LIBOBJS=$ac_libobjs
20149
20150 LTLIBOBJS=$ac_ltlibobjs
20151
20152
20153
20154 : "${CONFIG_STATUS=./config.status}"
20155 ac_write_fail=0
20156 ac_clean_files_save=$ac_clean_files
20157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20159 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20160 as_write_fail=0
20161 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20162 #! $SHELL
20163 # Generated by $as_me.
20164 # Run this file to recreate the current configuration.
20165 # Compiler output produced by configure, useful for debugging
20166 # configure, is in config.log if it exists.
20167
20168 debug=false
20169 ac_cs_recheck=false
20170 ac_cs_silent=false
20171
20172 SHELL=\${CONFIG_SHELL-$SHELL}
20173 export SHELL
20174 _ASEOF
20175 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20176 ## -------------------- ##
20177 ## M4sh Initialization. ##
20178 ## -------------------- ##
20179
20180 # Be more Bourne compatible
20181 DUALCASE=1; export DUALCASE # for MKS sh
20182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20183   emulate sh
20184   NULLCMD=:
20185   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20186   # is contrary to our usage.  Disable this feature.
20187   alias -g '${1+"$@"}'='"$@"'
20188   setopt NO_GLOB_SUBST
20189 else
20190   case `(set -o) 2>/dev/null` in #(
20191   *posix*) :
20192     set -o posix ;; #(
20193   *) :
20194      ;;
20195 esac
20196 fi
20197
20198
20199 as_nl='
20200 '
20201 export as_nl
20202 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20203 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20204 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20205 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20206 # Prefer a ksh shell builtin over an external printf program on Solaris,
20207 # but without wasting forks for bash or zsh.
20208 if test -z "$BASH_VERSION$ZSH_VERSION" \
20209     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20210   as_echo='print -r --'
20211   as_echo_n='print -rn --'
20212 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20213   as_echo='printf %s\n'
20214   as_echo_n='printf %s'
20215 else
20216   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20217     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20218     as_echo_n='/usr/ucb/echo -n'
20219   else
20220     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20221     as_echo_n_body='eval
20222       arg=$1;
20223       case $arg in #(
20224       *"$as_nl"*)
20225         expr "X$arg" : "X\\(.*\\)$as_nl";
20226         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20227       esac;
20228       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20229     '
20230     export as_echo_n_body
20231     as_echo_n='sh -c $as_echo_n_body as_echo'
20232   fi
20233   export as_echo_body
20234   as_echo='sh -c $as_echo_body as_echo'
20235 fi
20236
20237 # The user is always right.
20238 if test "${PATH_SEPARATOR+set}" != set; then
20239   PATH_SEPARATOR=:
20240   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20241     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20242       PATH_SEPARATOR=';'
20243   }
20244 fi
20245
20246
20247 # IFS
20248 # We need space, tab and new line, in precisely that order.  Quoting is
20249 # there to prevent editors from complaining about space-tab.
20250 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20251 # splitting by setting IFS to empty value.)
20252 IFS=" ""        $as_nl"
20253
20254 # Find who we are.  Look in the path if we contain no directory separator.
20255 as_myself=
20256 case $0 in #((
20257   *[\\/]* ) as_myself=$0 ;;
20258   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20259 for as_dir in $PATH
20260 do
20261   IFS=$as_save_IFS
20262   test -z "$as_dir" && as_dir=.
20263     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20264   done
20265 IFS=$as_save_IFS
20266
20267      ;;
20268 esac
20269 # We did not find ourselves, most probably we were run as `sh COMMAND'
20270 # in which case we are not to be found in the path.
20271 if test "x$as_myself" = x; then
20272   as_myself=$0
20273 fi
20274 if test ! -f "$as_myself"; then
20275   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20276   exit 1
20277 fi
20278
20279 # Unset variables that we do not need and which cause bugs (e.g. in
20280 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20281 # suppresses any "Segmentation fault" message there.  '((' could
20282 # trigger a bug in pdksh 5.2.14.
20283 for as_var in BASH_ENV ENV MAIL MAILPATH
20284 do eval test x\${$as_var+set} = xset \
20285   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20286 done
20287 PS1='$ '
20288 PS2='> '
20289 PS4='+ '
20290
20291 # NLS nuisances.
20292 LC_ALL=C
20293 export LC_ALL
20294 LANGUAGE=C
20295 export LANGUAGE
20296
20297 # CDPATH.
20298 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20299
20300
20301 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20302 # ----------------------------------------
20303 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20304 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20305 # script with STATUS, using 1 if that was 0.
20306 as_fn_error ()
20307 {
20308   as_status=$1; test $as_status -eq 0 && as_status=1
20309   if test "$4"; then
20310     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20311     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20312   fi
20313   $as_echo "$as_me: error: $2" >&2
20314   as_fn_exit $as_status
20315 } # as_fn_error
20316
20317
20318 # as_fn_set_status STATUS
20319 # -----------------------
20320 # Set $? to STATUS, without forking.
20321 as_fn_set_status ()
20322 {
20323   return $1
20324 } # as_fn_set_status
20325
20326 # as_fn_exit STATUS
20327 # -----------------
20328 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20329 as_fn_exit ()
20330 {
20331   set +e
20332   as_fn_set_status $1
20333   exit $1
20334 } # as_fn_exit
20335
20336 # as_fn_unset VAR
20337 # ---------------
20338 # Portably unset VAR.
20339 as_fn_unset ()
20340 {
20341   { eval $1=; unset $1;}
20342 }
20343 as_unset=as_fn_unset
20344 # as_fn_append VAR VALUE
20345 # ----------------------
20346 # Append the text in VALUE to the end of the definition contained in VAR. Take
20347 # advantage of any shell optimizations that allow amortized linear growth over
20348 # repeated appends, instead of the typical quadratic growth present in naive
20349 # implementations.
20350 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20351   eval 'as_fn_append ()
20352   {
20353     eval $1+=\$2
20354   }'
20355 else
20356   as_fn_append ()
20357   {
20358     eval $1=\$$1\$2
20359   }
20360 fi # as_fn_append
20361
20362 # as_fn_arith ARG...
20363 # ------------------
20364 # Perform arithmetic evaluation on the ARGs, and store the result in the
20365 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20366 # must be portable across $(()) and expr.
20367 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20368   eval 'as_fn_arith ()
20369   {
20370     as_val=$(( $* ))
20371   }'
20372 else
20373   as_fn_arith ()
20374   {
20375     as_val=`expr "$@" || test $? -eq 1`
20376   }
20377 fi # as_fn_arith
20378
20379
20380 if expr a : '\(a\)' >/dev/null 2>&1 &&
20381    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20382   as_expr=expr
20383 else
20384   as_expr=false
20385 fi
20386
20387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20388   as_basename=basename
20389 else
20390   as_basename=false
20391 fi
20392
20393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20394   as_dirname=dirname
20395 else
20396   as_dirname=false
20397 fi
20398
20399 as_me=`$as_basename -- "$0" ||
20400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20401          X"$0" : 'X\(//\)$' \| \
20402          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20403 $as_echo X/"$0" |
20404     sed '/^.*\/\([^/][^/]*\)\/*$/{
20405             s//\1/
20406             q
20407           }
20408           /^X\/\(\/\/\)$/{
20409             s//\1/
20410             q
20411           }
20412           /^X\/\(\/\).*/{
20413             s//\1/
20414             q
20415           }
20416           s/.*/./; q'`
20417
20418 # Avoid depending upon Character Ranges.
20419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20422 as_cr_digits='0123456789'
20423 as_cr_alnum=$as_cr_Letters$as_cr_digits
20424
20425 ECHO_C= ECHO_N= ECHO_T=
20426 case `echo -n x` in #(((((
20427 -n*)
20428   case `echo 'xy\c'` in
20429   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20430   xy)  ECHO_C='\c';;
20431   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20432        ECHO_T=' ';;
20433   esac;;
20434 *)
20435   ECHO_N='-n';;
20436 esac
20437
20438 rm -f conf$$ conf$$.exe conf$$.file
20439 if test -d conf$$.dir; then
20440   rm -f conf$$.dir/conf$$.file
20441 else
20442   rm -f conf$$.dir
20443   mkdir conf$$.dir 2>/dev/null
20444 fi
20445 if (echo >conf$$.file) 2>/dev/null; then
20446   if ln -s conf$$.file conf$$ 2>/dev/null; then
20447     as_ln_s='ln -s'
20448     # ... but there are two gotchas:
20449     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20450     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20451     # In both cases, we have to default to `cp -p'.
20452     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20453       as_ln_s='cp -p'
20454   elif ln conf$$.file conf$$ 2>/dev/null; then
20455     as_ln_s=ln
20456   else
20457     as_ln_s='cp -p'
20458   fi
20459 else
20460   as_ln_s='cp -p'
20461 fi
20462 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20463 rmdir conf$$.dir 2>/dev/null
20464
20465
20466 # as_fn_mkdir_p
20467 # -------------
20468 # Create "$as_dir" as a directory, including parents if necessary.
20469 as_fn_mkdir_p ()
20470 {
20471
20472   case $as_dir in #(
20473   -*) as_dir=./$as_dir;;
20474   esac
20475   test -d "$as_dir" || eval $as_mkdir_p || {
20476     as_dirs=
20477     while :; do
20478       case $as_dir in #(
20479       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20480       *) as_qdir=$as_dir;;
20481       esac
20482       as_dirs="'$as_qdir' $as_dirs"
20483       as_dir=`$as_dirname -- "$as_dir" ||
20484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20485          X"$as_dir" : 'X\(//\)[^/]' \| \
20486          X"$as_dir" : 'X\(//\)$' \| \
20487          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20488 $as_echo X"$as_dir" |
20489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20490             s//\1/
20491             q
20492           }
20493           /^X\(\/\/\)[^/].*/{
20494             s//\1/
20495             q
20496           }
20497           /^X\(\/\/\)$/{
20498             s//\1/
20499             q
20500           }
20501           /^X\(\/\).*/{
20502             s//\1/
20503             q
20504           }
20505           s/.*/./; q'`
20506       test -d "$as_dir" && break
20507     done
20508     test -z "$as_dirs" || eval "mkdir $as_dirs"
20509   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20510
20511
20512 } # as_fn_mkdir_p
20513 if mkdir -p . 2>/dev/null; then
20514   as_mkdir_p='mkdir -p "$as_dir"'
20515 else
20516   test -d ./-p && rmdir ./-p
20517   as_mkdir_p=false
20518 fi
20519
20520 if test -x / >/dev/null 2>&1; then
20521   as_test_x='test -x'
20522 else
20523   if ls -dL / >/dev/null 2>&1; then
20524     as_ls_L_option=L
20525   else
20526     as_ls_L_option=
20527   fi
20528   as_test_x='
20529     eval sh -c '\''
20530       if test -d "$1"; then
20531         test -d "$1/.";
20532       else
20533         case $1 in #(
20534         -*)set "./$1";;
20535         esac;
20536         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20537         ???[sx]*):;;*)false;;esac;fi
20538     '\'' sh
20539   '
20540 fi
20541 as_executable_p=$as_test_x
20542
20543 # Sed expression to map a string onto a valid CPP name.
20544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20545
20546 # Sed expression to map a string onto a valid variable name.
20547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20548
20549
20550 exec 6>&1
20551 ## ----------------------------------- ##
20552 ## Main body of $CONFIG_STATUS script. ##
20553 ## ----------------------------------- ##
20554 _ASEOF
20555 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20556
20557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20558 # Save the log message, to keep $0 and so on meaningful, and to
20559 # report actual input values of CONFIG_FILES etc. instead of their
20560 # values after options handling.
20561 ac_log="
20562 This file was extended by sudo $as_me 1.8.2, which was
20563 generated by GNU Autoconf 2.68.  Invocation command line was
20564
20565   CONFIG_FILES    = $CONFIG_FILES
20566   CONFIG_HEADERS  = $CONFIG_HEADERS
20567   CONFIG_LINKS    = $CONFIG_LINKS
20568   CONFIG_COMMANDS = $CONFIG_COMMANDS
20569   $ $0 $@
20570
20571 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20572 "
20573
20574 _ACEOF
20575
20576 case $ac_config_files in *"
20577 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20578 esac
20579
20580 case $ac_config_headers in *"
20581 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20582 esac
20583
20584
20585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20586 # Files that config.status was made for.
20587 config_files="$ac_config_files"
20588 config_headers="$ac_config_headers"
20589 config_commands="$ac_config_commands"
20590
20591 _ACEOF
20592
20593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20594 ac_cs_usage="\
20595 \`$as_me' instantiates files and other configuration actions
20596 from templates according to the current configuration.  Unless the files
20597 and actions are specified as TAGs, all are instantiated by default.
20598
20599 Usage: $0 [OPTION]... [TAG]...
20600
20601   -h, --help       print this help, then exit
20602   -V, --version    print version number and configuration settings, then exit
20603       --config     print configuration, then exit
20604   -q, --quiet, --silent
20605                    do not print progress messages
20606   -d, --debug      don't remove temporary files
20607       --recheck    update $as_me by reconfiguring in the same conditions
20608       --file=FILE[:TEMPLATE]
20609                    instantiate the configuration file FILE
20610       --header=FILE[:TEMPLATE]
20611                    instantiate the configuration header FILE
20612
20613 Configuration files:
20614 $config_files
20615
20616 Configuration headers:
20617 $config_headers
20618
20619 Configuration commands:
20620 $config_commands
20621
20622 Report bugs to <http://www.sudo.ws/bugs/>."
20623
20624 _ACEOF
20625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20626 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20627 ac_cs_version="\\
20628 sudo config.status 1.8.2
20629 configured by $0, generated by GNU Autoconf 2.68,
20630   with options \\"\$ac_cs_config\\"
20631
20632 Copyright (C) 2010 Free Software Foundation, Inc.
20633 This config.status script is free software; the Free Software Foundation
20634 gives unlimited permission to copy, distribute and modify it."
20635
20636 ac_pwd='$ac_pwd'
20637 srcdir='$srcdir'
20638 AWK='$AWK'
20639 test -n "\$AWK" || AWK=awk
20640 _ACEOF
20641
20642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20643 # The default lists apply if the user does not specify any file.
20644 ac_need_defaults=:
20645 while test $# != 0
20646 do
20647   case $1 in
20648   --*=?*)
20649     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20650     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20651     ac_shift=:
20652     ;;
20653   --*=)
20654     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20655     ac_optarg=
20656     ac_shift=:
20657     ;;
20658   *)
20659     ac_option=$1
20660     ac_optarg=$2
20661     ac_shift=shift
20662     ;;
20663   esac
20664
20665   case $ac_option in
20666   # Handling of the options.
20667   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20668     ac_cs_recheck=: ;;
20669   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20670     $as_echo "$ac_cs_version"; exit ;;
20671   --config | --confi | --conf | --con | --co | --c )
20672     $as_echo "$ac_cs_config"; exit ;;
20673   --debug | --debu | --deb | --de | --d | -d )
20674     debug=: ;;
20675   --file | --fil | --fi | --f )
20676     $ac_shift
20677     case $ac_optarg in
20678     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20679     '') as_fn_error $? "missing file argument" ;;
20680     esac
20681     as_fn_append CONFIG_FILES " '$ac_optarg'"
20682     ac_need_defaults=false;;
20683   --header | --heade | --head | --hea )
20684     $ac_shift
20685     case $ac_optarg in
20686     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20687     esac
20688     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20689     ac_need_defaults=false;;
20690   --he | --h)
20691     # Conflict between --help and --header
20692     as_fn_error $? "ambiguous option: \`$1'
20693 Try \`$0 --help' for more information.";;
20694   --help | --hel | -h )
20695     $as_echo "$ac_cs_usage"; exit ;;
20696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20697   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20698     ac_cs_silent=: ;;
20699
20700   # This is an error.
20701   -*) as_fn_error $? "unrecognized option: \`$1'
20702 Try \`$0 --help' for more information." ;;
20703
20704   *) as_fn_append ac_config_targets " $1"
20705      ac_need_defaults=false ;;
20706
20707   esac
20708   shift
20709 done
20710
20711 ac_configure_extra_args=
20712
20713 if $ac_cs_silent; then
20714   exec 6>/dev/null
20715   ac_configure_extra_args="$ac_configure_extra_args --silent"
20716 fi
20717
20718 _ACEOF
20719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20720 if \$ac_cs_recheck; then
20721   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20722   shift
20723   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20724   CONFIG_SHELL='$SHELL'
20725   export CONFIG_SHELL
20726   exec "\$@"
20727 fi
20728
20729 _ACEOF
20730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20731 exec 5>>config.log
20732 {
20733   echo
20734   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20735 ## Running $as_me. ##
20736 _ASBOX
20737   $as_echo "$ac_log"
20738 } >&5
20739
20740 _ACEOF
20741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20742 #
20743 # INIT-COMMANDS
20744 #
20745
20746
20747 # The HP-UX ksh and POSIX shell print the target directory to stdout
20748 # if CDPATH is set.
20749 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20750
20751 sed_quote_subst='$sed_quote_subst'
20752 double_quote_subst='$double_quote_subst'
20753 delay_variable_subst='$delay_variable_subst'
20754 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20755 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20756 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20757 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20758 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20759 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20760 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20761 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20762 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20763 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20764 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20765 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20766 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20767 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20768 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20769 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20770 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20771 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20772 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20773 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20774 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20775 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20776 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20777 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20778 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20779 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20780 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20781 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20782 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20783 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20784 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20785 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20786 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20787 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20788 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20789 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20790 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20791 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20792 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20793 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20794 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20795 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20796 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20797 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20798 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20799 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20800 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20801 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20802 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20803 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20804 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20805 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20806 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20807 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20808 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20809 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20810 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20811 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20812 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20813 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20814 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20815 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20816 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20817 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20818 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20819 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20820 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20821 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20822 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20823 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20824 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20825 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20826 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20827 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20828 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20829 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20830 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20831 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20832 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20833 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20834 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20835 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20836 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20837 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20838 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20839 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20840 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20841 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20842 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20843 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20844 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20845 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20846 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20847 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20848 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20849 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20850 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20851 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20852 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20853 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20854 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20855 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20856 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20857 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20858 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20859 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20860 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20861 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20862 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20863 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20864 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20865 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20866 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20867 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20868 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20869 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20870 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20871 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20872 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20873 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20874 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20875 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20876 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20877 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20878 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20879 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20880 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20881 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20882 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20883 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20884
20885 LTCC='$LTCC'
20886 LTCFLAGS='$LTCFLAGS'
20887 compiler='$compiler_DEFAULT'
20888
20889 # A function that is used when there is no print builtin or printf.
20890 func_fallback_echo ()
20891 {
20892   eval 'cat <<_LTECHO_EOF
20893 \$1
20894 _LTECHO_EOF'
20895 }
20896
20897 # Quote evaled strings.
20898 for var in SHELL \
20899 ECHO \
20900 SED \
20901 GREP \
20902 EGREP \
20903 FGREP \
20904 LD \
20905 NM \
20906 LN_S \
20907 lt_SP2NL \
20908 lt_NL2SP \
20909 reload_flag \
20910 OBJDUMP \
20911 deplibs_check_method \
20912 file_magic_cmd \
20913 file_magic_glob \
20914 want_nocaseglob \
20915 DLLTOOL \
20916 sharedlib_from_linklib_cmd \
20917 AR \
20918 AR_FLAGS \
20919 archiver_list_spec \
20920 STRIP \
20921 RANLIB \
20922 CC \
20923 CFLAGS \
20924 compiler \
20925 lt_cv_sys_global_symbol_pipe \
20926 lt_cv_sys_global_symbol_to_cdecl \
20927 lt_cv_sys_global_symbol_to_c_name_address \
20928 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20929 nm_file_list_spec \
20930 lt_prog_compiler_no_builtin_flag \
20931 lt_prog_compiler_pic \
20932 lt_prog_compiler_wl \
20933 lt_prog_compiler_static \
20934 lt_cv_prog_compiler_c_o \
20935 need_locks \
20936 MANIFEST_TOOL \
20937 DSYMUTIL \
20938 NMEDIT \
20939 LIPO \
20940 OTOOL \
20941 OTOOL64 \
20942 shrext_cmds \
20943 export_dynamic_flag_spec \
20944 whole_archive_flag_spec \
20945 compiler_needs_object \
20946 with_gnu_ld \
20947 allow_undefined_flag \
20948 no_undefined_flag \
20949 hardcode_libdir_flag_spec \
20950 hardcode_libdir_flag_spec_ld \
20951 hardcode_libdir_separator \
20952 exclude_expsyms \
20953 include_expsyms \
20954 file_list_spec \
20955 variables_saved_for_relink \
20956 libname_spec \
20957 library_names_spec \
20958 soname_spec \
20959 install_override_mode \
20960 finish_eval \
20961 old_striplib \
20962 striplib; do
20963     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20964     *[\\\\\\\`\\"\\\$]*)
20965       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20966       ;;
20967     *)
20968       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20969       ;;
20970     esac
20971 done
20972
20973 # Double-quote double-evaled strings.
20974 for var in reload_cmds \
20975 old_postinstall_cmds \
20976 old_postuninstall_cmds \
20977 old_archive_cmds \
20978 extract_expsyms_cmds \
20979 old_archive_from_new_cmds \
20980 old_archive_from_expsyms_cmds \
20981 archive_cmds \
20982 archive_expsym_cmds \
20983 module_cmds \
20984 module_expsym_cmds \
20985 export_symbols_cmds \
20986 prelink_cmds \
20987 postlink_cmds \
20988 postinstall_cmds \
20989 postuninstall_cmds \
20990 finish_cmds \
20991 sys_lib_search_path_spec \
20992 sys_lib_dlsearch_path_spec; do
20993     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20994     *[\\\\\\\`\\"\\\$]*)
20995       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20996       ;;
20997     *)
20998       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20999       ;;
21000     esac
21001 done
21002
21003 ac_aux_dir='$ac_aux_dir'
21004 xsi_shell='$xsi_shell'
21005 lt_shell_append='$lt_shell_append'
21006
21007 # See if we are running on zsh, and set the options which allow our
21008 # commands through without removal of \ escapes INIT.
21009 if test -n "\${ZSH_VERSION+set}" ; then
21010    setopt NO_GLOB_SUBST
21011 fi
21012
21013
21014     PACKAGE='$PACKAGE'
21015     VERSION='$VERSION'
21016     TIMESTAMP='$TIMESTAMP'
21017     RM='$RM'
21018     ofile='$ofile'
21019
21020
21021
21022
21023 _ACEOF
21024
21025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21026
21027 # Handling of arguments.
21028 for ac_config_target in $ac_config_targets
21029 do
21030   case $ac_config_target in
21031     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21032     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
21033     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21034     "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
21035     "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
21036     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21037     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
21038     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
21039     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21040     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21041     "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
21042     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21043     "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
21044     "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
21045     "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
21046     "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
21047
21048   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21049   esac
21050 done
21051
21052
21053 # If the user did not use the arguments to specify the items to instantiate,
21054 # then the envvar interface is used.  Set only those that are not.
21055 # We use the long form for the default assignment because of an extremely
21056 # bizarre bug on SunOS 4.1.3.
21057 if $ac_need_defaults; then
21058   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21059   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21060   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21061 fi
21062
21063 # Have a temporary directory for convenience.  Make it in the build tree
21064 # simply because there is no reason against having it here, and in addition,
21065 # creating and moving files from /tmp can sometimes cause problems.
21066 # Hook for its removal unless debugging.
21067 # Note that there is a small window in which the directory will not be cleaned:
21068 # after its creation but before its name has been assigned to `$tmp'.
21069 $debug ||
21070 {
21071   tmp= ac_tmp=
21072   trap 'exit_status=$?
21073   : "${ac_tmp:=$tmp}"
21074   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21075 ' 0
21076   trap 'as_fn_exit 1' 1 2 13 15
21077 }
21078 # Create a (secure) tmp directory for tmp files.
21079
21080 {
21081   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21082   test -d "$tmp"
21083 }  ||
21084 {
21085   tmp=./conf$$-$RANDOM
21086   (umask 077 && mkdir "$tmp")
21087 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21088 ac_tmp=$tmp
21089
21090 # Set up the scripts for CONFIG_FILES section.
21091 # No need to generate them if there are no CONFIG_FILES.
21092 # This happens for instance with `./config.status config.h'.
21093 if test -n "$CONFIG_FILES"; then
21094
21095
21096 ac_cr=`echo X | tr X '\015'`
21097 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21098 # But we know of no other shell where ac_cr would be empty at this
21099 # point, so we can use a bashism as a fallback.
21100 if test "x$ac_cr" = x; then
21101   eval ac_cr=\$\'\\r\'
21102 fi
21103 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21104 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21105   ac_cs_awk_cr='\\r'
21106 else
21107   ac_cs_awk_cr=$ac_cr
21108 fi
21109
21110 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21111 _ACEOF
21112
21113
21114 {
21115   echo "cat >conf$$subs.awk <<_ACEOF" &&
21116   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21117   echo "_ACEOF"
21118 } >conf$$subs.sh ||
21119   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21120 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21121 ac_delim='%!_!# '
21122 for ac_last_try in false false false false false :; do
21123   . ./conf$$subs.sh ||
21124     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21125
21126   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21127   if test $ac_delim_n = $ac_delim_num; then
21128     break
21129   elif $ac_last_try; then
21130     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21131   else
21132     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21133   fi
21134 done
21135 rm -f conf$$subs.sh
21136
21137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21138 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21139 _ACEOF
21140 sed -n '
21141 h
21142 s/^/S["/; s/!.*/"]=/
21143 p
21144 g
21145 s/^[^!]*!//
21146 :repl
21147 t repl
21148 s/'"$ac_delim"'$//
21149 t delim
21150 :nl
21151 h
21152 s/\(.\{148\}\)..*/\1/
21153 t more1
21154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21155 p
21156 n
21157 b repl
21158 :more1
21159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21160 p
21161 g
21162 s/.\{148\}//
21163 t nl
21164 :delim
21165 h
21166 s/\(.\{148\}\)..*/\1/
21167 t more2
21168 s/["\\]/\\&/g; s/^/"/; s/$/"/
21169 p
21170 b
21171 :more2
21172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21173 p
21174 g
21175 s/.\{148\}//
21176 t delim
21177 ' <conf$$subs.awk | sed '
21178 /^[^""]/{
21179   N
21180   s/\n//
21181 }
21182 ' >>$CONFIG_STATUS || ac_write_fail=1
21183 rm -f conf$$subs.awk
21184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21185 _ACAWK
21186 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21187   for (key in S) S_is_set[key] = 1
21188   FS = "\a"
21189
21190 }
21191 {
21192   line = $ 0
21193   nfields = split(line, field, "@")
21194   substed = 0
21195   len = length(field[1])
21196   for (i = 2; i < nfields; i++) {
21197     key = field[i]
21198     keylen = length(key)
21199     if (S_is_set[key]) {
21200       value = S[key]
21201       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21202       len += length(value) + length(field[++i])
21203       substed = 1
21204     } else
21205       len += 1 + keylen
21206   }
21207
21208   print line
21209 }
21210
21211 _ACAWK
21212 _ACEOF
21213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21215   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21216 else
21217   cat
21218 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21219   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21220 _ACEOF
21221
21222 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21223 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21224 # trailing colons and then remove the whole line if VPATH becomes empty
21225 # (actually we leave an empty line to preserve line numbers).
21226 if test "x$srcdir" = x.; then
21227   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21228 h
21229 s///
21230 s/^/:/
21231 s/[      ]*$/:/
21232 s/:\$(srcdir):/:/g
21233 s/:\${srcdir}:/:/g
21234 s/:@srcdir@:/:/g
21235 s/^:*//
21236 s/:*$//
21237 x
21238 s/\(=[   ]*\).*/\1/
21239 G
21240 s/\n//
21241 s/^[^=]*=[       ]*$//
21242 }'
21243 fi
21244
21245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21246 fi # test -n "$CONFIG_FILES"
21247
21248 # Set up the scripts for CONFIG_HEADERS section.
21249 # No need to generate them if there are no CONFIG_HEADERS.
21250 # This happens for instance with `./config.status Makefile'.
21251 if test -n "$CONFIG_HEADERS"; then
21252 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21253 BEGIN {
21254 _ACEOF
21255
21256 # Transform confdefs.h into an awk script `defines.awk', embedded as
21257 # here-document in config.status, that substitutes the proper values into
21258 # config.h.in to produce config.h.
21259
21260 # Create a delimiter string that does not exist in confdefs.h, to ease
21261 # handling of long lines.
21262 ac_delim='%!_!# '
21263 for ac_last_try in false false :; do
21264   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21265   if test -z "$ac_tt"; then
21266     break
21267   elif $ac_last_try; then
21268     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21269   else
21270     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21271   fi
21272 done
21273
21274 # For the awk script, D is an array of macro values keyed by name,
21275 # likewise P contains macro parameters if any.  Preserve backslash
21276 # newline sequences.
21277
21278 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21279 sed -n '
21280 s/.\{148\}/&'"$ac_delim"'/g
21281 t rset
21282 :rset
21283 s/^[     ]*#[    ]*define[       ][      ]*/ /
21284 t def
21285 d
21286 :def
21287 s/\\$//
21288 t bsnl
21289 s/["\\]/\\&/g
21290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21291 D["\1"]=" \3"/p
21292 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21293 d
21294 :bsnl
21295 s/["\\]/\\&/g
21296 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21297 D["\1"]=" \3\\\\\\n"\\/p
21298 t cont
21299 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21300 t cont
21301 d
21302 :cont
21303 n
21304 s/.\{148\}/&'"$ac_delim"'/g
21305 t clear
21306 :clear
21307 s/\\$//
21308 t bsnlc
21309 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21310 d
21311 :bsnlc
21312 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21313 b cont
21314 ' <confdefs.h | sed '
21315 s/'"$ac_delim"'/"\\\
21316 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21317
21318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21319   for (key in D) D_is_set[key] = 1
21320   FS = "\a"
21321 }
21322 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21323   line = \$ 0
21324   split(line, arg, " ")
21325   if (arg[1] == "#") {
21326     defundef = arg[2]
21327     mac1 = arg[3]
21328   } else {
21329     defundef = substr(arg[1], 2)
21330     mac1 = arg[2]
21331   }
21332   split(mac1, mac2, "(") #)
21333   macro = mac2[1]
21334   prefix = substr(line, 1, index(line, defundef) - 1)
21335   if (D_is_set[macro]) {
21336     # Preserve the white space surrounding the "#".
21337     print prefix "define", macro P[macro] D[macro]
21338     next
21339   } else {
21340     # Replace #undef with comments.  This is necessary, for example,
21341     # in the case of _POSIX_SOURCE, which is predefined and required
21342     # on some systems where configure will not decide to define it.
21343     if (defundef == "undef") {
21344       print "/*", prefix defundef, macro, "*/"
21345       next
21346     }
21347   }
21348 }
21349 { print }
21350 _ACAWK
21351 _ACEOF
21352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21353   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21354 fi # test -n "$CONFIG_HEADERS"
21355
21356
21357 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21358 shift
21359 for ac_tag
21360 do
21361   case $ac_tag in
21362   :[FHLC]) ac_mode=$ac_tag; continue;;
21363   esac
21364   case $ac_mode$ac_tag in
21365   :[FHL]*:*);;
21366   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21367   :[FH]-) ac_tag=-:-;;
21368   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21369   esac
21370   ac_save_IFS=$IFS
21371   IFS=:
21372   set x $ac_tag
21373   IFS=$ac_save_IFS
21374   shift
21375   ac_file=$1
21376   shift
21377
21378   case $ac_mode in
21379   :L) ac_source=$1;;
21380   :[FH])
21381     ac_file_inputs=
21382     for ac_f
21383     do
21384       case $ac_f in
21385       -) ac_f="$ac_tmp/stdin";;
21386       *) # Look for the file first in the build tree, then in the source tree
21387          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21388          # because $ac_f cannot contain `:'.
21389          test -f "$ac_f" ||
21390            case $ac_f in
21391            [\\/$]*) false;;
21392            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21393            esac ||
21394            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21395       esac
21396       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21397       as_fn_append ac_file_inputs " '$ac_f'"
21398     done
21399
21400     # Let's still pretend it is `configure' which instantiates (i.e., don't
21401     # use $as_me), people would be surprised to read:
21402     #    /* config.h.  Generated by config.status.  */
21403     configure_input='Generated from '`
21404           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21405         `' by configure.'
21406     if test x"$ac_file" != x-; then
21407       configure_input="$ac_file.  $configure_input"
21408       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21409 $as_echo "$as_me: creating $ac_file" >&6;}
21410     fi
21411     # Neutralize special characters interpreted by sed in replacement strings.
21412     case $configure_input in #(
21413     *\&* | *\|* | *\\* )
21414        ac_sed_conf_input=`$as_echo "$configure_input" |
21415        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21416     *) ac_sed_conf_input=$configure_input;;
21417     esac
21418
21419     case $ac_tag in
21420     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21421       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21422     esac
21423     ;;
21424   esac
21425
21426   ac_dir=`$as_dirname -- "$ac_file" ||
21427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21428          X"$ac_file" : 'X\(//\)[^/]' \| \
21429          X"$ac_file" : 'X\(//\)$' \| \
21430          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21431 $as_echo X"$ac_file" |
21432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21433             s//\1/
21434             q
21435           }
21436           /^X\(\/\/\)[^/].*/{
21437             s//\1/
21438             q
21439           }
21440           /^X\(\/\/\)$/{
21441             s//\1/
21442             q
21443           }
21444           /^X\(\/\).*/{
21445             s//\1/
21446             q
21447           }
21448           s/.*/./; q'`
21449   as_dir="$ac_dir"; as_fn_mkdir_p
21450   ac_builddir=.
21451
21452 case "$ac_dir" in
21453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21454 *)
21455   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21456   # A ".." for each directory in $ac_dir_suffix.
21457   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21458   case $ac_top_builddir_sub in
21459   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21460   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21461   esac ;;
21462 esac
21463 ac_abs_top_builddir=$ac_pwd
21464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21465 # for backward compatibility:
21466 ac_top_builddir=$ac_top_build_prefix
21467
21468 case $srcdir in
21469   .)  # We are building in place.
21470     ac_srcdir=.
21471     ac_top_srcdir=$ac_top_builddir_sub
21472     ac_abs_top_srcdir=$ac_pwd ;;
21473   [\\/]* | ?:[\\/]* )  # Absolute name.
21474     ac_srcdir=$srcdir$ac_dir_suffix;
21475     ac_top_srcdir=$srcdir
21476     ac_abs_top_srcdir=$srcdir ;;
21477   *) # Relative name.
21478     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21479     ac_top_srcdir=$ac_top_build_prefix$srcdir
21480     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21481 esac
21482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21483
21484
21485   case $ac_mode in
21486   :F)
21487   #
21488   # CONFIG_FILE
21489   #
21490
21491 _ACEOF
21492
21493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21494 # If the template does not know about datarootdir, expand it.
21495 # FIXME: This hack should be removed a few years after 2.60.
21496 ac_datarootdir_hack=; ac_datarootdir_seen=
21497 ac_sed_dataroot='
21498 /datarootdir/ {
21499   p
21500   q
21501 }
21502 /@datadir@/p
21503 /@docdir@/p
21504 /@infodir@/p
21505 /@localedir@/p
21506 /@mandir@/p'
21507 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21508 *datarootdir*) ac_datarootdir_seen=yes;;
21509 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21510   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21511 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21512 _ACEOF
21513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21514   ac_datarootdir_hack='
21515   s&@datadir@&$datadir&g
21516   s&@docdir@&$docdir&g
21517   s&@infodir@&$infodir&g
21518   s&@localedir@&$localedir&g
21519   s&@mandir@&$mandir&g
21520   s&\\\${datarootdir}&$datarootdir&g' ;;
21521 esac
21522 _ACEOF
21523
21524 # Neutralize VPATH when `$srcdir' = `.'.
21525 # Shell code in configure.ac might set extrasub.
21526 # FIXME: do we really want to maintain this feature?
21527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21528 ac_sed_extra="$ac_vpsub
21529 $extrasub
21530 _ACEOF
21531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21532 :t
21533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21534 s|@configure_input@|$ac_sed_conf_input|;t t
21535 s&@top_builddir@&$ac_top_builddir_sub&;t t
21536 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21537 s&@srcdir@&$ac_srcdir&;t t
21538 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21539 s&@top_srcdir@&$ac_top_srcdir&;t t
21540 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21541 s&@builddir@&$ac_builddir&;t t
21542 s&@abs_builddir@&$ac_abs_builddir&;t t
21543 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21544 $ac_datarootdir_hack
21545 "
21546 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21547   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21548
21549 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21550   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21551   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21552       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21553   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21554 which seems to be undefined.  Please make sure it is defined" >&5
21555 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21556 which seems to be undefined.  Please make sure it is defined" >&2;}
21557
21558   rm -f "$ac_tmp/stdin"
21559   case $ac_file in
21560   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21561   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21562   esac \
21563   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21564  ;;
21565   :H)
21566   #
21567   # CONFIG_HEADER
21568   #
21569   if test x"$ac_file" != x-; then
21570     {
21571       $as_echo "/* $configure_input  */" \
21572       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21573     } >"$ac_tmp/config.h" \
21574       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21575     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21576       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21577 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21578     else
21579       rm -f "$ac_file"
21580       mv "$ac_tmp/config.h" "$ac_file" \
21581         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21582     fi
21583   else
21584     $as_echo "/* $configure_input  */" \
21585       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21586       || as_fn_error $? "could not create -" "$LINENO" 5
21587   fi
21588  ;;
21589
21590   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21591 $as_echo "$as_me: executing $ac_file commands" >&6;}
21592  ;;
21593   esac
21594
21595
21596   case $ac_file$ac_mode in
21597     "libtool":C)
21598
21599     # See if we are running on zsh, and set the options which allow our
21600     # commands through without removal of \ escapes.
21601     if test -n "${ZSH_VERSION+set}" ; then
21602       setopt NO_GLOB_SUBST
21603     fi
21604
21605     cfgfile="${ofile}T"
21606     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21607     $RM "$cfgfile"
21608
21609     cat <<_LT_EOF >> "$cfgfile"
21610 #! $SHELL
21611
21612 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21613 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21614 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21615 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21616 #
21617 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21618 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21619 #                 Inc.
21620 #   Written by Gordon Matzigkeit, 1996
21621 #
21622 #   This file is part of GNU Libtool.
21623 #
21624 # GNU Libtool is free software; you can redistribute it and/or
21625 # modify it under the terms of the GNU General Public License as
21626 # published by the Free Software Foundation; either version 2 of
21627 # the License, or (at your option) any later version.
21628 #
21629 # As a special exception to the GNU General Public License,
21630 # if you distribute this file as part of a program or library that
21631 # is built using GNU Libtool, you may include this file under the
21632 # same distribution terms that you use for the rest of that program.
21633 #
21634 # GNU Libtool is distributed in the hope that it will be useful,
21635 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21636 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21637 # GNU General Public License for more details.
21638 #
21639 # You should have received a copy of the GNU General Public License
21640 # along with GNU Libtool; see the file COPYING.  If not, a copy
21641 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21642 # obtained by writing to the Free Software Foundation, Inc.,
21643 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21644
21645
21646 # The names of the tagged configurations supported by this script.
21647 available_tags=""
21648
21649 # ### BEGIN LIBTOOL CONFIG
21650
21651 # Which release of libtool.m4 was used?
21652 macro_version=$macro_version
21653 macro_revision=$macro_revision
21654
21655 # Whether or not to build shared libraries.
21656 build_libtool_libs=$enable_shared
21657
21658 # Whether or not to build static libraries.
21659 build_old_libs=$enable_static
21660
21661 # What type of objects to build.
21662 pic_mode=$pic_mode
21663
21664 # Whether or not to optimize for fast installation.
21665 fast_install=$enable_fast_install
21666
21667 # Shell to use when invoking shell scripts.
21668 SHELL=$lt_SHELL
21669
21670 # An echo program that protects backslashes.
21671 ECHO=$lt_ECHO
21672
21673 # The host system.
21674 host_alias=$host_alias
21675 host=$host
21676 host_os=$host_os
21677
21678 # The build system.
21679 build_alias=$build_alias
21680 build=$build
21681 build_os=$build_os
21682
21683 # A sed program that does not truncate output.
21684 SED=$lt_SED
21685
21686 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21687 Xsed="\$SED -e 1s/^X//"
21688
21689 # A grep program that handles long lines.
21690 GREP=$lt_GREP
21691
21692 # An ERE matcher.
21693 EGREP=$lt_EGREP
21694
21695 # A literal string matcher.
21696 FGREP=$lt_FGREP
21697
21698 # A BSD- or MS-compatible name lister.
21699 NM=$lt_NM
21700
21701 # Whether we need soft or hard links.
21702 LN_S=$lt_LN_S
21703
21704 # What is the maximum length of a command?
21705 max_cmd_len=$max_cmd_len
21706
21707 # Object file suffix (normally "o").
21708 objext=$ac_objext
21709
21710 # Executable file suffix (normally "").
21711 exeext=$exeext
21712
21713 # whether the shell understands "unset".
21714 lt_unset=$lt_unset
21715
21716 # turn spaces into newlines.
21717 SP2NL=$lt_lt_SP2NL
21718
21719 # turn newlines into spaces.
21720 NL2SP=$lt_lt_NL2SP
21721
21722 # convert \$build file names to \$host format.
21723 to_host_file_cmd=$lt_cv_to_host_file_cmd
21724
21725 # convert \$build files to toolchain format.
21726 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21727
21728 # An object symbol dumper.
21729 OBJDUMP=$lt_OBJDUMP
21730
21731 # Method to check whether dependent libraries are shared objects.
21732 deplibs_check_method=$lt_deplibs_check_method
21733
21734 # Command to use when deplibs_check_method = "file_magic".
21735 file_magic_cmd=$lt_file_magic_cmd
21736
21737 # How to find potential files when deplibs_check_method = "file_magic".
21738 file_magic_glob=$lt_file_magic_glob
21739
21740 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21741 want_nocaseglob=$lt_want_nocaseglob
21742
21743 # DLL creation program.
21744 DLLTOOL=$lt_DLLTOOL
21745
21746 # Command to associate shared and link libraries.
21747 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21748
21749 # The archiver.
21750 AR=$lt_AR
21751
21752 # Flags to create an archive.
21753 AR_FLAGS=$lt_AR_FLAGS
21754
21755 # How to feed a file listing to the archiver.
21756 archiver_list_spec=$lt_archiver_list_spec
21757
21758 # A symbol stripping program.
21759 STRIP=$lt_STRIP
21760
21761 # Commands used to install an old-style archive.
21762 RANLIB=$lt_RANLIB
21763 old_postinstall_cmds=$lt_old_postinstall_cmds
21764 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21765
21766 # Whether to use a lock for old archive extraction.
21767 lock_old_archive_extraction=$lock_old_archive_extraction
21768
21769 # A C compiler.
21770 LTCC=$lt_CC
21771
21772 # LTCC compiler flags.
21773 LTCFLAGS=$lt_CFLAGS
21774
21775 # Take the output of nm and produce a listing of raw symbols and C names.
21776 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21777
21778 # Transform the output of nm in a proper C declaration.
21779 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21780
21781 # Transform the output of nm in a C name address pair.
21782 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21783
21784 # Transform the output of nm in a C name address pair when lib prefix is needed.
21785 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21786
21787 # Specify filename containing input files for \$NM.
21788 nm_file_list_spec=$lt_nm_file_list_spec
21789
21790 # The root where to search for dependent libraries,and in which our libraries should be installed.
21791 lt_sysroot=$lt_sysroot
21792
21793 # The name of the directory that contains temporary libtool files.
21794 objdir=$objdir
21795
21796 # Used to examine libraries when file_magic_cmd begins with "file".
21797 MAGIC_CMD=$MAGIC_CMD
21798
21799 # Must we lock files when doing compilation?
21800 need_locks=$lt_need_locks
21801
21802 # Manifest tool.
21803 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21804
21805 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21806 DSYMUTIL=$lt_DSYMUTIL
21807
21808 # Tool to change global to local symbols on Mac OS X.
21809 NMEDIT=$lt_NMEDIT
21810
21811 # Tool to manipulate fat objects and archives on Mac OS X.
21812 LIPO=$lt_LIPO
21813
21814 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21815 OTOOL=$lt_OTOOL
21816
21817 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21818 OTOOL64=$lt_OTOOL64
21819
21820 # Old archive suffix (normally "a").
21821 libext=$libext
21822
21823 # Shared library suffix (normally ".so").
21824 shrext_cmds=$lt_shrext_cmds
21825
21826 # The commands to extract the exported symbol list from a shared archive.
21827 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21828
21829 # Variables whose values should be saved in libtool wrapper scripts and
21830 # restored at link time.
21831 variables_saved_for_relink=$lt_variables_saved_for_relink
21832
21833 # Do we need the "lib" prefix for modules?
21834 need_lib_prefix=$need_lib_prefix
21835
21836 # Do we need a version for libraries?
21837 need_version=$need_version
21838
21839 # Library versioning type.
21840 version_type=$version_type
21841
21842 # Shared library runtime path variable.
21843 runpath_var=$runpath_var
21844
21845 # Shared library path variable.
21846 shlibpath_var=$shlibpath_var
21847
21848 # Is shlibpath searched before the hard-coded library search path?
21849 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21850
21851 # Format of library name prefix.
21852 libname_spec=$lt_libname_spec
21853
21854 # List of archive names.  First name is the real one, the rest are links.
21855 # The last name is the one that the linker finds with -lNAME
21856 library_names_spec=$lt_library_names_spec
21857
21858 # The coded name of the library, if different from the real name.
21859 soname_spec=$lt_soname_spec
21860
21861 # Permission mode override for installation of shared libraries.
21862 install_override_mode=$lt_install_override_mode
21863
21864 # Command to use after installation of a shared archive.
21865 postinstall_cmds=$lt_postinstall_cmds
21866
21867 # Command to use after uninstallation of a shared archive.
21868 postuninstall_cmds=$lt_postuninstall_cmds
21869
21870 # Commands used to finish a libtool library installation in a directory.
21871 finish_cmds=$lt_finish_cmds
21872
21873 # As "finish_cmds", except a single script fragment to be evaled but
21874 # not shown.
21875 finish_eval=$lt_finish_eval
21876
21877 # Whether we should hardcode library paths into libraries.
21878 hardcode_into_libs=$hardcode_into_libs
21879
21880 # Compile-time system search path for libraries.
21881 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21882
21883 # Run-time system search path for libraries.
21884 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21885
21886 # Whether dlopen is supported.
21887 dlopen_support=$enable_dlopen
21888
21889 # Whether dlopen of programs is supported.
21890 dlopen_self=$enable_dlopen_self
21891
21892 # Whether dlopen of statically linked programs is supported.
21893 dlopen_self_static=$enable_dlopen_self_static
21894
21895 # Commands to strip libraries.
21896 old_striplib=$lt_old_striplib
21897 striplib=$lt_striplib
21898
21899
21900 # The linker used to build libraries.
21901 LD=$lt_LD
21902
21903 # How to create reloadable object files.
21904 reload_flag=$lt_reload_flag
21905 reload_cmds=$lt_reload_cmds
21906
21907 # Commands used to build an old-style archive.
21908 old_archive_cmds=$lt_old_archive_cmds
21909
21910 # A language specific compiler.
21911 CC=$lt_compiler
21912
21913 # Is the compiler the GNU compiler?
21914 with_gcc=$GCC
21915
21916 # Compiler flag to turn off builtin functions.
21917 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21918
21919 # Additional compiler flags for building library objects.
21920 pic_flag=$lt_lt_prog_compiler_pic
21921
21922 # How to pass a linker flag through the compiler.
21923 wl=$lt_lt_prog_compiler_wl
21924
21925 # Compiler flag to prevent dynamic linking.
21926 link_static_flag=$lt_lt_prog_compiler_static
21927
21928 # Does compiler simultaneously support -c and -o options?
21929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21930
21931 # Whether or not to add -lc for building shared libraries.
21932 build_libtool_need_lc=$archive_cmds_need_lc
21933
21934 # Whether or not to disallow shared libs when runtime libs are static.
21935 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21936
21937 # Compiler flag to allow reflexive dlopens.
21938 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21939
21940 # Compiler flag to generate shared objects directly from archives.
21941 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21942
21943 # Whether the compiler copes with passing no objects directly.
21944 compiler_needs_object=$lt_compiler_needs_object
21945
21946 # Create an old-style archive from a shared archive.
21947 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21948
21949 # Create a temporary old-style archive to link instead of a shared archive.
21950 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21951
21952 # Commands used to build a shared archive.
21953 archive_cmds=$lt_archive_cmds
21954 archive_expsym_cmds=$lt_archive_expsym_cmds
21955
21956 # Commands used to build a loadable module if different from building
21957 # a shared archive.
21958 module_cmds=$lt_module_cmds
21959 module_expsym_cmds=$lt_module_expsym_cmds
21960
21961 # Whether we are building with GNU ld or not.
21962 with_gnu_ld=$lt_with_gnu_ld
21963
21964 # Flag that allows shared libraries with undefined symbols to be built.
21965 allow_undefined_flag=$lt_allow_undefined_flag
21966
21967 # Flag that enforces no undefined symbols.
21968 no_undefined_flag=$lt_no_undefined_flag
21969
21970 # Flag to hardcode \$libdir into a binary during linking.
21971 # This must work even if \$libdir does not exist
21972 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21973
21974 # If ld is used when linking, flag to hardcode \$libdir into a binary
21975 # during linking.  This must work even if \$libdir does not exist.
21976 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21977
21978 # Whether we need a single "-rpath" flag with a separated argument.
21979 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21980
21981 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21982 # DIR into the resulting binary.
21983 hardcode_direct=$hardcode_direct
21984
21985 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21986 # DIR into the resulting binary and the resulting library dependency is
21987 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21988 # library is relocated.
21989 hardcode_direct_absolute=$hardcode_direct_absolute
21990
21991 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21992 # into the resulting binary.
21993 hardcode_minus_L=$hardcode_minus_L
21994
21995 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21996 # into the resulting binary.
21997 hardcode_shlibpath_var=$hardcode_shlibpath_var
21998
21999 # Set to "yes" if building a shared library automatically hardcodes DIR
22000 # into the library and all subsequent libraries and executables linked
22001 # against it.
22002 hardcode_automatic=$hardcode_automatic
22003
22004 # Set to yes if linker adds runtime paths of dependent libraries
22005 # to runtime path list.
22006 inherit_rpath=$inherit_rpath
22007
22008 # Whether libtool must link a program against all its dependency libraries.
22009 link_all_deplibs=$link_all_deplibs
22010
22011 # Set to "yes" if exported symbols are required.
22012 always_export_symbols=$always_export_symbols
22013
22014 # The commands to list exported symbols.
22015 export_symbols_cmds=$lt_export_symbols_cmds
22016
22017 # Symbols that should not be listed in the preloaded symbols.
22018 exclude_expsyms=$lt_exclude_expsyms
22019
22020 # Symbols that must always be exported.
22021 include_expsyms=$lt_include_expsyms
22022
22023 # Commands necessary for linking programs (against libraries) with templates.
22024 prelink_cmds=$lt_prelink_cmds
22025
22026 # Commands necessary for finishing linking programs.
22027 postlink_cmds=$lt_postlink_cmds
22028
22029 # Specify filename containing input files.
22030 file_list_spec=$lt_file_list_spec
22031
22032 # How to hardcode a shared library path into an executable.
22033 hardcode_action=$hardcode_action
22034
22035 # ### END LIBTOOL CONFIG
22036
22037 _LT_EOF
22038
22039   case $host_os in
22040   aix3*)
22041     cat <<\_LT_EOF >> "$cfgfile"
22042 # AIX sometimes has problems with the GCC collect2 program.  For some
22043 # reason, if we set the COLLECT_NAMES environment variable, the problems
22044 # vanish in a puff of smoke.
22045 if test "X${COLLECT_NAMES+set}" != Xset; then
22046   COLLECT_NAMES=
22047   export COLLECT_NAMES
22048 fi
22049 _LT_EOF
22050     ;;
22051   esac
22052
22053
22054 ltmain="$ac_aux_dir/ltmain.sh"
22055
22056
22057   # We use sed instead of cat because bash on DJGPP gets confused if
22058   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22059   # text mode, it properly converts lines to CR/LF.  This bash problem
22060   # is reportedly fixed, but why not run on old versions too?
22061   sed '$q' "$ltmain" >> "$cfgfile" \
22062      || (rm -f "$cfgfile"; exit 1)
22063
22064   if test x"$xsi_shell" = xyes; then
22065   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22066 func_dirname ()\
22067 {\
22068 \    case ${1} in\
22069 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22070 \      *  ) func_dirname_result="${3}" ;;\
22071 \    esac\
22072 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22073   && mv -f "$cfgfile.tmp" "$cfgfile" \
22074     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22075 test 0 -eq $? || _lt_function_replace_fail=:
22076
22077
22078   sed -e '/^func_basename ()$/,/^} # func_basename /c\
22079 func_basename ()\
22080 {\
22081 \    func_basename_result="${1##*/}"\
22082 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22083   && mv -f "$cfgfile.tmp" "$cfgfile" \
22084     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22085 test 0 -eq $? || _lt_function_replace_fail=:
22086
22087
22088   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22089 func_dirname_and_basename ()\
22090 {\
22091 \    case ${1} in\
22092 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22093 \      *  ) func_dirname_result="${3}" ;;\
22094 \    esac\
22095 \    func_basename_result="${1##*/}"\
22096 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22097   && mv -f "$cfgfile.tmp" "$cfgfile" \
22098     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22099 test 0 -eq $? || _lt_function_replace_fail=:
22100
22101
22102   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22103 func_stripname ()\
22104 {\
22105 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22106 \    # positional parameters, so assign one to ordinary parameter first.\
22107 \    func_stripname_result=${3}\
22108 \    func_stripname_result=${func_stripname_result#"${1}"}\
22109 \    func_stripname_result=${func_stripname_result%"${2}"}\
22110 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22111   && mv -f "$cfgfile.tmp" "$cfgfile" \
22112     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22113 test 0 -eq $? || _lt_function_replace_fail=:
22114
22115
22116   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22117 func_split_long_opt ()\
22118 {\
22119 \    func_split_long_opt_name=${1%%=*}\
22120 \    func_split_long_opt_arg=${1#*=}\
22121 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22122   && mv -f "$cfgfile.tmp" "$cfgfile" \
22123     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22124 test 0 -eq $? || _lt_function_replace_fail=:
22125
22126
22127   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22128 func_split_short_opt ()\
22129 {\
22130 \    func_split_short_opt_arg=${1#??}\
22131 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22132 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22133   && mv -f "$cfgfile.tmp" "$cfgfile" \
22134     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22135 test 0 -eq $? || _lt_function_replace_fail=:
22136
22137
22138   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22139 func_lo2o ()\
22140 {\
22141 \    case ${1} in\
22142 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22143 \      *)    func_lo2o_result=${1} ;;\
22144 \    esac\
22145 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22146   && mv -f "$cfgfile.tmp" "$cfgfile" \
22147     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22148 test 0 -eq $? || _lt_function_replace_fail=:
22149
22150
22151   sed -e '/^func_xform ()$/,/^} # func_xform /c\
22152 func_xform ()\
22153 {\
22154     func_xform_result=${1%.*}.lo\
22155 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22156   && mv -f "$cfgfile.tmp" "$cfgfile" \
22157     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22158 test 0 -eq $? || _lt_function_replace_fail=:
22159
22160
22161   sed -e '/^func_arith ()$/,/^} # func_arith /c\
22162 func_arith ()\
22163 {\
22164     func_arith_result=$(( $* ))\
22165 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22166   && mv -f "$cfgfile.tmp" "$cfgfile" \
22167     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22168 test 0 -eq $? || _lt_function_replace_fail=:
22169
22170
22171   sed -e '/^func_len ()$/,/^} # func_len /c\
22172 func_len ()\
22173 {\
22174     func_len_result=${#1}\
22175 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22176   && mv -f "$cfgfile.tmp" "$cfgfile" \
22177     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22178 test 0 -eq $? || _lt_function_replace_fail=:
22179
22180 fi
22181
22182 if test x"$lt_shell_append" = xyes; then
22183   sed -e '/^func_append ()$/,/^} # func_append /c\
22184 func_append ()\
22185 {\
22186     eval "${1}+=\\${2}"\
22187 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22188   && mv -f "$cfgfile.tmp" "$cfgfile" \
22189     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22190 test 0 -eq $? || _lt_function_replace_fail=:
22191
22192
22193   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22194 func_append_quoted ()\
22195 {\
22196 \    func_quote_for_eval "${2}"\
22197 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22198 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22199   && mv -f "$cfgfile.tmp" "$cfgfile" \
22200     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22201 test 0 -eq $? || _lt_function_replace_fail=:
22202
22203
22204   # Save a `func_append' function call where possible by direct use of '+='
22205   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22206     && mv -f "$cfgfile.tmp" "$cfgfile" \
22207       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22208   test 0 -eq $? || _lt_function_replace_fail=:
22209 else
22210   # Save a `func_append' function call even when '+=' is not available
22211   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22212     && mv -f "$cfgfile.tmp" "$cfgfile" \
22213       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22214   test 0 -eq $? || _lt_function_replace_fail=:
22215 fi
22216
22217 if test x"$_lt_function_replace_fail" = x":"; then
22218   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22219 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22220 fi
22221
22222
22223    mv -f "$cfgfile" "$ofile" ||
22224     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22225   chmod +x "$ofile"
22226
22227  ;;
22228
22229   esac
22230 done # for ac_tag
22231
22232
22233 as_fn_exit 0
22234 _ACEOF
22235 ac_clean_files=$ac_clean_files_save
22236
22237 test $ac_write_fail = 0 ||
22238   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22239
22240
22241 # configure is writing to config.log, and then calls config.status.
22242 # config.status does its own redirection, appending to config.log.
22243 # Unfortunately, on DOS this fails, as config.log is still kept open
22244 # by configure, so config.status won't be able to write to it; its
22245 # output is simply discarded.  So we exec the FD to /dev/null,
22246 # effectively closing config.log, so it can be properly (re)opened and
22247 # appended to by config.status.  When coming back to configure, we
22248 # need to make the FD available again.
22249 if test "$no_create" != yes; then
22250   ac_cs_success=:
22251   ac_config_status_args=
22252   test "$silent" = yes &&
22253     ac_config_status_args="$ac_config_status_args --quiet"
22254   exec 5>/dev/null
22255   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22256   exec 5>>config.log
22257   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22258   # would make configure fail if this is the last instruction.
22259   $ac_cs_success || as_fn_exit 1
22260 fi
22261 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22262   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22263 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22264 fi
22265
22266
22267 if test "$with_pam" = "yes"; then
22268     case $host in
22269         *-*-linux*)
22270             { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
22271 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
22272             ;;
22273     esac
22274 fi
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367