another obsolete patch
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for sudo 1.7.4.
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 Free Software Foundation,
10 # 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 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.sudo.ws/bugs/ about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='sudo'
703 PACKAGE_TARNAME='sudo'
704 PACKAGE_VERSION='1.7.4'
705 PACKAGE_STRING='sudo 1.7.4'
706 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
707 PACKAGE_URL=''
708
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 #  include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 #  include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 ac_subst_vars='LTLIBOBJS
746 KRB5CONFIG
747 LIBOBJS
748 FLEX
749 YFLAGS
750 YACC
751 NROFFPROG
752 TRPROG
753 UNAMEPROG
754 OTOOL64
755 OTOOL
756 LIPO
757 NMEDIT
758 DSYMUTIL
759 lt_ECHO
760 STRIP
761 OBJDUMP
762 LN_S
763 NM
764 ac_ct_DUMPBIN
765 DUMPBIN
766 LD
767 FGREP
768 EGREP
769 GREP
770 SED
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 RANLIB
780 AR
781 CPP
782 OBJEXT
783 EXEEXT
784 ac_ct_CC
785 CC
786 editor
787 secure_path
788 netsvc_conf
789 nsswitch_conf
790 ldap_secret
791 ldap_conf
792 path_info
793 root_sudo
794 insults
795 tty_tickets
796 passwd_tries
797 env_editor
798 runas_default
799 fqdn
800 badpass_message
801 mailsub
802 mailto
803 mail_no_perms
804 mail_no_host
805 mail_no_user
806 ignore_dot
807 loglen
808 badpri
809 goodpri
810 logfac
811 lecture
812 long_otp_prompt
813 passprompt
814 sudo_umask
815 password_timeout
816 timeout
817 timedir
818 CONFIGURE_ARGS
819 ZLIB
820 LOGINCAP_USAGE
821 REPLAY
822 LDAP
823 SELINUX_USAGE
824 BSDAUTH_USAGE
825 DONT_LEAK_PATH_INFO
826 INSTALL_NOEXEC
827 noexec_file
828 NOEXECDIR
829 NOEXECFILE
830 mansrcdir
831 mansectform
832 mansectsu
833 devdir
834 SEMAN
835 LCMAN
836 BAMAN
837 DEV
838 SUDOERS_GID
839 SUDOERS_UID
840 SUDOERS_MODE
841 MAN_POSTINSTALL
842 MANTYPE
843 AUTH_OBJS
844 OSDEFS
845 GETGROUPS_LIB
846 AFS_LIBS
847 NET_LIBS
848 SUDO_LIBS
849 SUDO_OBJS
850 SUDO_LDFLAGS
851 COMMON_OBJS
852 LDFLAGS
853 CPPFLAGS
854 PROGS
855 CFLAGS
856 LIBTOOL
857 HAVE_BSM_AUDIT
858 target_alias
859 host_alias
860 build_alias
861 LIBS
862 ECHO_T
863 ECHO_N
864 ECHO_C
865 DEFS
866 mandir
867 localedir
868 libdir
869 psdir
870 pdfdir
871 dvidir
872 htmldir
873 infodir
874 docdir
875 oldincludedir
876 includedir
877 localstatedir
878 sharedstatedir
879 sysconfdir
880 datadir
881 datarootdir
882 libexecdir
883 sbindir
884 bindir
885 program_transform_name
886 prefix
887 exec_prefix
888 PACKAGE_URL
889 PACKAGE_BUGREPORT
890 PACKAGE_STRING
891 PACKAGE_VERSION
892 PACKAGE_TARNAME
893 PACKAGE_NAME
894 PATH_SEPARATOR
895 SHELL'
896 ac_subst_files=''
897 ac_user_opts='
898 enable_option_checking
899 with_otp_only
900 with_alertmail
901 with_devel
902 with_CC
903 with_rpath
904 with_blibpath
905 with_bsm_audit
906 with_linux_audit
907 with_incpath
908 with_libpath
909 with_libraries
910 with_efence
911 with_csops
912 with_passwd
913 with_skey
914 with_opie
915 with_long_otp_prompt
916 with_SecurID
917 with_fwtk
918 with_kerb4
919 with_kerb5
920 with_aixauth
921 with_pam
922 with_AFS
923 with_DCE
924 with_logincap
925 with_bsdauth
926 with_project
927 with_lecture
928 with_logging
929 with_logfac
930 with_goodpri
931 with_badpri
932 with_logpath
933 with_loglen
934 with_ignore_dot
935 with_mail_if_no_user
936 with_mail_if_no_host
937 with_mail_if_noperms
938 with_mailto
939 with_mailsubject
940 with_passprompt
941 with_badpass_message
942 with_fqdn
943 with_timedir
944 with_iologdir
945 with_sendmail
946 with_sudoers_mode
947 with_sudoers_uid
948 with_sudoers_gid
949 with_umask
950 with_runas_default
951 with_exempt
952 with_editor
953 with_env_editor
954 with_passwd_tries
955 with_timeout
956 with_password_timeout
957 with_tty_tickets
958 with_insults
959 with_all_insults
960 with_classic_insults
961 with_csops_insults
962 with_hal_insults
963 with_goons_insults
964 with_nsswitch
965 with_ldap
966 with_ldap_conf_file
967 with_ldap_secret_file
968 with_pc_insults
969 with_secure_path
970 with_interfaces
971 with_stow
972 with_askpass
973 with_libvas
974 with_libvas_rpath
975 enable_authentication
976 enable_root_mailer
977 enable_setreuid
978 enable_setresuid
979 enable_shadow
980 enable_root_sudo
981 enable_log_host
982 enable_noargs_shell
983 enable_shell_sets_home
984 enable_path_info
985 enable_env_debug
986 enable_warnings
987 enable_admin_flag
988 with_selinux
989 enable_gss_krb5_ccache_name
990 enable_shared
991 enable_static
992 with_pic
993 enable_fast_install
994 with_gnu_ld
995 enable_libtool_lock
996 with_noexec
997 with_netsvc
998 enable_sia
999 with_pam_login
1000 enable_pam_session
1001 enable_zlib
1002 '
1003       ac_precious_vars='build_alias
1004 host_alias
1005 target_alias
1006 CC
1007 CFLAGS
1008 LDFLAGS
1009 LIBS
1010 CPPFLAGS
1011 CPP
1012 YACC
1013 YFLAGS'
1014
1015
1016 # Initialize some variables set by options.
1017 ac_init_help=
1018 ac_init_version=false
1019 ac_unrecognized_opts=
1020 ac_unrecognized_sep=
1021 # The variables have the same names as the options, with
1022 # dashes changed to underlines.
1023 cache_file=/dev/null
1024 exec_prefix=NONE
1025 no_create=
1026 no_recursion=
1027 prefix=NONE
1028 program_prefix=NONE
1029 program_suffix=NONE
1030 program_transform_name=s,x,x,
1031 silent=
1032 site=
1033 srcdir=
1034 verbose=
1035 x_includes=NONE
1036 x_libraries=NONE
1037
1038 # Installation directory options.
1039 # These are left unexpanded so users can "make install exec_prefix=/foo"
1040 # and all the variables that are supposed to be based on exec_prefix
1041 # by default will actually change.
1042 # Use braces instead of parens because sh, perl, etc. also accept them.
1043 # (The list follows the same order as the GNU Coding Standards.)
1044 bindir='${exec_prefix}/bin'
1045 sbindir='${exec_prefix}/sbin'
1046 libexecdir='${exec_prefix}/libexec'
1047 datarootdir='${prefix}/share'
1048 datadir='${datarootdir}'
1049 sysconfdir='${prefix}/etc'
1050 sharedstatedir='${prefix}/com'
1051 localstatedir='${prefix}/var'
1052 includedir='${prefix}/include'
1053 oldincludedir='/usr/include'
1054 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1055 infodir='${datarootdir}/info'
1056 htmldir='${docdir}'
1057 dvidir='${docdir}'
1058 pdfdir='${docdir}'
1059 psdir='${docdir}'
1060 libdir='${exec_prefix}/lib'
1061 localedir='${datarootdir}/locale'
1062 mandir='${datarootdir}/man'
1063
1064 ac_prev=
1065 ac_dashdash=
1066 for ac_option
1067 do
1068   # If the previous option needs an argument, assign it.
1069   if test -n "$ac_prev"; then
1070     eval $ac_prev=\$ac_option
1071     ac_prev=
1072     continue
1073   fi
1074
1075   case $ac_option in
1076   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1077   *)    ac_optarg=yes ;;
1078   esac
1079
1080   # Accept the important Cygnus configure options, so we can diagnose typos.
1081
1082   case $ac_dashdash$ac_option in
1083   --)
1084     ac_dashdash=yes ;;
1085
1086   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1087     ac_prev=bindir ;;
1088   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1089     bindir=$ac_optarg ;;
1090
1091   -build | --build | --buil | --bui | --bu)
1092     ac_prev=build_alias ;;
1093   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1094     build_alias=$ac_optarg ;;
1095
1096   -cache-file | --cache-file | --cache-fil | --cache-fi \
1097   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1098     ac_prev=cache_file ;;
1099   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1100   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1101     cache_file=$ac_optarg ;;
1102
1103   --config-cache | -C)
1104     cache_file=config.cache ;;
1105
1106   -datadir | --datadir | --datadi | --datad)
1107     ac_prev=datadir ;;
1108   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1109     datadir=$ac_optarg ;;
1110
1111   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1112   | --dataroo | --dataro | --datar)
1113     ac_prev=datarootdir ;;
1114   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1115   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1116     datarootdir=$ac_optarg ;;
1117
1118   -disable-* | --disable-*)
1119     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1120     # Reject names that are not valid shell variable names.
1121     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122       as_fn_error "invalid feature name: $ac_useropt"
1123     ac_useropt_orig=$ac_useropt
1124     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125     case $ac_user_opts in
1126       *"
1127 "enable_$ac_useropt"
1128 "*) ;;
1129       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1130          ac_unrecognized_sep=', ';;
1131     esac
1132     eval enable_$ac_useropt=no ;;
1133
1134   -docdir | --docdir | --docdi | --doc | --do)
1135     ac_prev=docdir ;;
1136   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1137     docdir=$ac_optarg ;;
1138
1139   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1140     ac_prev=dvidir ;;
1141   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1142     dvidir=$ac_optarg ;;
1143
1144   -enable-* | --enable-*)
1145     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148       as_fn_error "invalid feature name: $ac_useropt"
1149     ac_useropt_orig=$ac_useropt
1150     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151     case $ac_user_opts in
1152       *"
1153 "enable_$ac_useropt"
1154 "*) ;;
1155       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1156          ac_unrecognized_sep=', ';;
1157     esac
1158     eval enable_$ac_useropt=\$ac_optarg ;;
1159
1160   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1161   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1162   | --exec | --exe | --ex)
1163     ac_prev=exec_prefix ;;
1164   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1165   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1166   | --exec=* | --exe=* | --ex=*)
1167     exec_prefix=$ac_optarg ;;
1168
1169   -gas | --gas | --ga | --g)
1170     # Obsolete; use --with-gas.
1171     with_gas=yes ;;
1172
1173   -help | --help | --hel | --he | -h)
1174     ac_init_help=long ;;
1175   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1176     ac_init_help=recursive ;;
1177   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1178     ac_init_help=short ;;
1179
1180   -host | --host | --hos | --ho)
1181     ac_prev=host_alias ;;
1182   -host=* | --host=* | --hos=* | --ho=*)
1183     host_alias=$ac_optarg ;;
1184
1185   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1186     ac_prev=htmldir ;;
1187   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1188   | --ht=*)
1189     htmldir=$ac_optarg ;;
1190
1191   -includedir | --includedir | --includedi | --included | --include \
1192   | --includ | --inclu | --incl | --inc)
1193     ac_prev=includedir ;;
1194   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1195   | --includ=* | --inclu=* | --incl=* | --inc=*)
1196     includedir=$ac_optarg ;;
1197
1198   -infodir | --infodir | --infodi | --infod | --info | --inf)
1199     ac_prev=infodir ;;
1200   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1201     infodir=$ac_optarg ;;
1202
1203   -libdir | --libdir | --libdi | --libd)
1204     ac_prev=libdir ;;
1205   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1206     libdir=$ac_optarg ;;
1207
1208   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1209   | --libexe | --libex | --libe)
1210     ac_prev=libexecdir ;;
1211   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1212   | --libexe=* | --libex=* | --libe=*)
1213     libexecdir=$ac_optarg ;;
1214
1215   -localedir | --localedir | --localedi | --localed | --locale)
1216     ac_prev=localedir ;;
1217   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1218     localedir=$ac_optarg ;;
1219
1220   -localstatedir | --localstatedir | --localstatedi | --localstated \
1221   | --localstate | --localstat | --localsta | --localst | --locals)
1222     ac_prev=localstatedir ;;
1223   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1224   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1225     localstatedir=$ac_optarg ;;
1226
1227   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1228     ac_prev=mandir ;;
1229   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1230     mandir=$ac_optarg ;;
1231
1232   -nfp | --nfp | --nf)
1233     # Obsolete; use --without-fp.
1234     with_fp=no ;;
1235
1236   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1237   | --no-cr | --no-c | -n)
1238     no_create=yes ;;
1239
1240   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1241   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1242     no_recursion=yes ;;
1243
1244   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1245   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1246   | --oldin | --oldi | --old | --ol | --o)
1247     ac_prev=oldincludedir ;;
1248   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1249   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1250   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1251     oldincludedir=$ac_optarg ;;
1252
1253   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1254     ac_prev=prefix ;;
1255   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1256     prefix=$ac_optarg ;;
1257
1258   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1259   | --program-pre | --program-pr | --program-p)
1260     ac_prev=program_prefix ;;
1261   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1262   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1263     program_prefix=$ac_optarg ;;
1264
1265   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1266   | --program-suf | --program-su | --program-s)
1267     ac_prev=program_suffix ;;
1268   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1269   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1270     program_suffix=$ac_optarg ;;
1271
1272   -program-transform-name | --program-transform-name \
1273   | --program-transform-nam | --program-transform-na \
1274   | --program-transform-n | --program-transform- \
1275   | --program-transform | --program-transfor \
1276   | --program-transfo | --program-transf \
1277   | --program-trans | --program-tran \
1278   | --progr-tra | --program-tr | --program-t)
1279     ac_prev=program_transform_name ;;
1280   -program-transform-name=* | --program-transform-name=* \
1281   | --program-transform-nam=* | --program-transform-na=* \
1282   | --program-transform-n=* | --program-transform-=* \
1283   | --program-transform=* | --program-transfor=* \
1284   | --program-transfo=* | --program-transf=* \
1285   | --program-trans=* | --program-tran=* \
1286   | --progr-tra=* | --program-tr=* | --program-t=*)
1287     program_transform_name=$ac_optarg ;;
1288
1289   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1290     ac_prev=pdfdir ;;
1291   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1292     pdfdir=$ac_optarg ;;
1293
1294   -psdir | --psdir | --psdi | --psd | --ps)
1295     ac_prev=psdir ;;
1296   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1297     psdir=$ac_optarg ;;
1298
1299   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1300   | -silent | --silent | --silen | --sile | --sil)
1301     silent=yes ;;
1302
1303   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1304     ac_prev=sbindir ;;
1305   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1306   | --sbi=* | --sb=*)
1307     sbindir=$ac_optarg ;;
1308
1309   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1310   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1311   | --sharedst | --shareds | --shared | --share | --shar \
1312   | --sha | --sh)
1313     ac_prev=sharedstatedir ;;
1314   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1315   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1316   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1317   | --sha=* | --sh=*)
1318     sharedstatedir=$ac_optarg ;;
1319
1320   -site | --site | --sit)
1321     ac_prev=site ;;
1322   -site=* | --site=* | --sit=*)
1323     site=$ac_optarg ;;
1324
1325   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1326     ac_prev=srcdir ;;
1327   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1328     srcdir=$ac_optarg ;;
1329
1330   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1331   | --syscon | --sysco | --sysc | --sys | --sy)
1332     ac_prev=sysconfdir ;;
1333   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1334   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1335     sysconfdir=$ac_optarg ;;
1336
1337   -target | --target | --targe | --targ | --tar | --ta | --t)
1338     ac_prev=target_alias ;;
1339   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1340     target_alias=$ac_optarg ;;
1341
1342   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1343     verbose=yes ;;
1344
1345   -version | --version | --versio | --versi | --vers | -V)
1346     ac_init_version=: ;;
1347
1348   -with-* | --with-*)
1349     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1350     # Reject names that are not valid shell variable names.
1351     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352       as_fn_error "invalid package name: $ac_useropt"
1353     ac_useropt_orig=$ac_useropt
1354     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355     case $ac_user_opts in
1356       *"
1357 "with_$ac_useropt"
1358 "*) ;;
1359       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1360          ac_unrecognized_sep=', ';;
1361     esac
1362     eval with_$ac_useropt=\$ac_optarg ;;
1363
1364   -without-* | --without-*)
1365     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1366     # Reject names that are not valid shell variable names.
1367     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368       as_fn_error "invalid package name: $ac_useropt"
1369     ac_useropt_orig=$ac_useropt
1370     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1371     case $ac_user_opts in
1372       *"
1373 "with_$ac_useropt"
1374 "*) ;;
1375       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1376          ac_unrecognized_sep=', ';;
1377     esac
1378     eval with_$ac_useropt=no ;;
1379
1380   --x)
1381     # Obsolete; use --with-x.
1382     with_x=yes ;;
1383
1384   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1385   | --x-incl | --x-inc | --x-in | --x-i)
1386     ac_prev=x_includes ;;
1387   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1388   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1389     x_includes=$ac_optarg ;;
1390
1391   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1392   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1393     ac_prev=x_libraries ;;
1394   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1395   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1396     x_libraries=$ac_optarg ;;
1397
1398   -*) as_fn_error "unrecognized option: \`$ac_option'
1399 Try \`$0 --help' for more information."
1400     ;;
1401
1402   *=*)
1403     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1404     # Reject names that are not valid shell variable names.
1405     case $ac_envvar in #(
1406       '' | [0-9]* | *[!_$as_cr_alnum]* )
1407       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1408     esac
1409     eval $ac_envvar=\$ac_optarg
1410     export $ac_envvar ;;
1411
1412   *)
1413     # FIXME: should be removed in autoconf 3.0.
1414     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1415     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1416       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1417     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1418     ;;
1419
1420   esac
1421 done
1422
1423 if test -n "$ac_prev"; then
1424   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1425   as_fn_error "missing argument to $ac_option"
1426 fi
1427
1428 if test -n "$ac_unrecognized_opts"; then
1429   case $enable_option_checking in
1430     no) ;;
1431     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1432     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1433   esac
1434 fi
1435
1436 # Check all directory arguments for consistency.
1437 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1438                 datadir sysconfdir sharedstatedir localstatedir includedir \
1439                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1440                 libdir localedir mandir
1441 do
1442   eval ac_val=\$$ac_var
1443   # Remove trailing slashes.
1444   case $ac_val in
1445     */ )
1446       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1447       eval $ac_var=\$ac_val;;
1448   esac
1449   # Be sure to have absolute directory names.
1450   case $ac_val in
1451     [\\/$]* | ?:[\\/]* )  continue;;
1452     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1453   esac
1454   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1455 done
1456
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1460 build=$build_alias
1461 host=$host_alias
1462 target=$target_alias
1463
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466   if test "x$build_alias" = x; then
1467     cross_compiling=maybe
1468     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469     If a cross compiler is detected then cross compile mode will be used." >&2
1470   elif test "x$build_alias" != "x$host_alias"; then
1471     cross_compiling=yes
1472   fi
1473 fi
1474
1475 ac_tool_prefix=
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477
1478 test "$silent" = yes && exec 6>/dev/null
1479
1480
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484   as_fn_error "working directory cannot be determined"
1485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486   as_fn_error "pwd does not report name of working directory"
1487
1488
1489 # Find the source files, if location was not specified.
1490 if test -z "$srcdir"; then
1491   ac_srcdir_defaulted=yes
1492   # Try the directory containing this script, then the parent directory.
1493   ac_confdir=`$as_dirname -- "$as_myself" ||
1494 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1495          X"$as_myself" : 'X\(//\)[^/]' \| \
1496          X"$as_myself" : 'X\(//\)$' \| \
1497          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1498 $as_echo X"$as_myself" |
1499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\/\)[^/].*/{
1504             s//\1/
1505             q
1506           }
1507           /^X\(\/\/\)$/{
1508             s//\1/
1509             q
1510           }
1511           /^X\(\/\).*/{
1512             s//\1/
1513             q
1514           }
1515           s/.*/./; q'`
1516   srcdir=$ac_confdir
1517   if test ! -r "$srcdir/$ac_unique_file"; then
1518     srcdir=..
1519   fi
1520 else
1521   ac_srcdir_defaulted=no
1522 fi
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1524   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1525   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1526 fi
1527 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1528 ac_abs_confdir=`(
1529         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1530         pwd)`
1531 # When building in place, set srcdir=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1533   srcdir=.
1534 fi
1535 # Remove unnecessary trailing slashes from srcdir.
1536 # Double slashes in file names in object file debugging info
1537 # mess up M-x gdb in Emacs.
1538 case $srcdir in
1539 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1540 esac
1541 for ac_var in $ac_precious_vars; do
1542   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543   eval ac_env_${ac_var}_value=\$${ac_var}
1544   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1546 done
1547
1548 #
1549 # Report the --help message.
1550 #
1551 if test "$ac_init_help" = "long"; then
1552   # Omit some internal or obsolete options to make the list less imposing.
1553   # This message is too long to be a string in the A/UX 3.1 sh.
1554   cat <<_ACEOF
1555 \`configure' configures sudo 1.7.4 to adapt to many kinds of systems.
1556
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1558
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE.  See below for descriptions of some of the useful variables.
1561
1562 Defaults for the options are specified in brackets.
1563
1564 Configuration:
1565   -h, --help              display this help and exit
1566       --help=short        display options specific to this package
1567       --help=recursive    display the short help of all the included packages
1568   -V, --version           display version information and exit
1569   -q, --quiet, --silent   do not print \`checking...' messages
1570       --cache-file=FILE   cache test results in FILE [disabled]
1571   -C, --config-cache      alias for \`--cache-file=config.cache'
1572   -n, --no-create         do not create output files
1573       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1574
1575 Installation directories:
1576   --prefix=PREFIX         install architecture-independent files in PREFIX
1577                           [$ac_default_prefix]
1578   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1579                           [PREFIX]
1580
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1585
1586 For better control, use the options below.
1587
1588 Fine tuning of the installation directories:
1589   --bindir=DIR            user executables [EPREFIX/bin]
1590   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1591   --libexecdir=DIR        program executables [EPREFIX/libexec]
1592   --sysconfdir=DIR        read-only single-machine data [/etc]
1593   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1594   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1595   --libdir=DIR            object code libraries [EPREFIX/lib]
1596   --includedir=DIR        C header files [PREFIX/include]
1597   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1598   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1599   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1600   --infodir=DIR           info documentation [DATAROOTDIR/info]
1601   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1602   --mandir=DIR            man documentation [DATAROOTDIR/man]
1603   --docdir=DIR            documentation root [DATAROOTDIR/doc/sudo]
1604   --htmldir=DIR           html documentation [DOCDIR]
1605   --dvidir=DIR            dvi documentation [DOCDIR]
1606   --pdfdir=DIR            pdf documentation [DOCDIR]
1607   --psdir=DIR             ps documentation [DOCDIR]
1608 _ACEOF
1609
1610   cat <<\_ACEOF
1611
1612 System types:
1613   --build=BUILD     configure for building on BUILD [guessed]
1614   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1615 _ACEOF
1616 fi
1617
1618 if test -n "$ac_init_help"; then
1619   case $ac_init_help in
1620      short | recursive ) echo "Configuration of sudo 1.7.4:";;
1621    esac
1622   cat <<\_ACEOF
1623
1624 Optional Features:
1625   --disable-option-checking  ignore unrecognized --enable/--with options
1626   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1627   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1628   --disable-authentication
1629                           Do not require authentication by default
1630   --disable-root-mailer   Don't run the mailer as root, run as the user
1631   --disable-setreuid      Don't try to use the setreuid() function
1632   --disable-setresuid     Don't try to use the setresuid() function
1633   --disable-shadow        Never use shadow passwords
1634   --disable-root-sudo     Don't allow root to run sudo
1635   --enable-log-host       Log the hostname in the log file
1636   --enable-noargs-shell   If sudo is given no arguments run a shell
1637   --enable-shell-sets-home
1638                           Set $HOME to target user in shell mode
1639   --disable-path-info     Print 'command not allowed' not 'command not found'
1640   --enable-env-debug      Whether to enable environment debugging.
1641   --enable-warnings       Whether to enable compiler warnings
1642   --enable-admin-flag     Whether to create a Ubuntu-style admin flag file
1643   --enable-gss-krb5-ccache-name
1644                           Use GSS-API to set the Kerberos V cred cache name
1645   --enable-shared[=PKGS]  build shared libraries [default=yes]
1646   --enable-static[=PKGS]  build static libraries [default=yes]
1647   --enable-fast-install[=PKGS]
1648                           optimize for fast installation [default=yes]
1649   --disable-libtool-lock  avoid locking (might break parallel builds)
1650   --disable-sia           Disable SIA on Digital UNIX
1651   --disable-pam-session   Disable PAM session support
1652   --enable-zlib[=PATH]    Whether to enable or disable zlib
1653
1654 Optional Packages:
1655   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1656   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1657   --with-otp-only         deprecated
1658   --with-alertmail        deprecated
1659   --with-devel            add development options
1660   --with-CC               C compiler to use
1661   --with-rpath            pass -R flag in addition to -L for lib paths
1662   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1663   --with-bsm-audit        enable BSM audit support
1664   --with-linux-audit      enable Linux audit support
1665   --with-incpath          additional places to look for include files
1666   --with-libpath          additional places to look for libraries
1667   --with-libraries        additional libraries to link with
1668   --with-efence           link with -lefence for malloc() debugging
1669   --with-csops            add CSOps standard options
1670   --without-passwd        don't use passwd/shadow file for authentication
1671   --with-skey=DIR         enable S/Key support
1672   --with-opie=DIR         enable OPIE support
1673   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1674   --with-SecurID[=DIR]    enable SecurID support
1675   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1676   --with-kerb4[=DIR]      enable Kerberos IV support
1677   --with-kerb5[=DIR]      enable Kerberos V support
1678   --with-aixauth          enable AIX general authentication support
1679   --with-pam              enable PAM support
1680   --with-AFS              enable AFS support
1681   --with-DCE              enable DCE support
1682   --with-logincap         enable BSD login class support
1683   --with-bsdauth          enable BSD authentication support
1684   --with-project          enable Solaris project support
1685   --without-lecture       don't print lecture for first-time sudoer
1686   --with-logging          log via syslog, file, or both
1687   --with-logfac           syslog facility to log with (default is "auth")
1688   --with-goodpri          syslog priority for commands (def is "notice")
1689   --with-badpri           syslog priority for failures (def is "alert")
1690   --with-logpath          path to the sudo log file
1691   --with-loglen           maximum length of a log file line (default is 80)
1692   --with-ignore-dot       ignore '.' in the PATH
1693   --without-mail-if-no-user
1694                           do not send mail if user not in sudoers
1695   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1696   --with-mail-if-noperms  send mail if user not allowed to run command
1697   --with-mailto           who should get sudo mail (default is "root")
1698   --with-mailsubject      subject of sudo mail
1699   --with-passprompt       default password prompt
1700   --with-badpass-message  message the user sees when the password is wrong
1701   --with-fqdn             expect fully qualified hosts in sudoers
1702   --with-timedir          path to the sudo timestamp dir
1703   --with-iologdir=DIR     directory to store sudo I/O log files in
1704   --with-sendmail         set path to sendmail
1705   --without-sendmail      do not send mail at all
1706   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1707   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1708   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1709   --with-umask            umask with which the prog should run (default is
1710                           022)
1711   --without-umask         Preserves the umask of the user invoking sudo.
1712   --with-runas-default    User to run commands as (default is "root")
1713   --with-exempt=group     no passwd needed for users in this group
1714   --with-editor=path      Default editor for visudo (defaults to vi)
1715   --with-env-editor       Use the environment variable EDITOR for visudo
1716   --with-passwd-tries     number of tries to enter password (default is 3)
1717   --with-timeout          minutes before sudo asks for passwd again (def is 5
1718                           minutes)
1719   --with-password-timeout passwd prompt timeout in minutes (default is 5
1720                           minutes)
1721   --with-tty-tickets      use a different ticket file for each tty
1722   --with-insults          insult the user for entering an incorrect password
1723   --with-all-insults      include all the sudo insult sets
1724   --with-classic-insults  include the insults from the "classic" sudo
1725   --with-csops-insults    include CSOps insults
1726   --with-hal-insults      include 2001-like insults
1727   --with-goons-insults    include the insults from the "Goon Show"
1728   --with-nsswitch[=PATH]  path to nsswitch.conf
1729   --with-ldap[=DIR]       enable LDAP support
1730   --with-ldap-conf-file   path to LDAP configuration file
1731   --with-ldap-secret-file path to LDAP secret password file
1732   --with-pc-insults       replace politically incorrect insults with less
1733                           offensive ones
1734   --with-secure-path      override the user's path with a built-in one
1735   --without-interfaces    don't try to read the ip addr of ether interfaces
1736   --with-stow             properly handle GNU stow packaging
1737   --with-askpass=PATH     Fully qualified pathname of askpass helper
1738   --with-libvas=NAME      Name of the libvas shared library
1739                           (default=libvas.so)
1740   --with-libvas-rpath=PATH
1741                           Path to look for libvas in [default=/opt/quest/lib]
1742   --with-selinux          enable SELinux support
1743   --with-pic              try to use only PIC/non-PIC objects [default=use
1744                           both]
1745   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1746   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1747   --with-netsvc[=PATH]    path to netsvc.conf
1748   --with-pam-login        enable specific PAM session for sudo -i
1749
1750 Some influential environment variables:
1751   CC          C compiler command
1752   CFLAGS      C compiler flags
1753   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1754               nonstandard directory <lib dir>
1755   LIBS        libraries to pass to the linker, e.g. -l<library>
1756   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1757               you have headers in a nonstandard directory <include dir>
1758   CPP         C preprocessor
1759   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1760               the first program found out of: `bison -y', `byacc', `yacc'.
1761   YFLAGS      The list of arguments that will be passed by default to $YACC.
1762               This script will default YFLAGS to the empty string to avoid a
1763               default value of `-d' given by some make applications.
1764
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1767
1768 Report bugs to <http://www.sudo.ws/bugs/>.
1769 _ACEOF
1770 ac_status=$?
1771 fi
1772
1773 if test "$ac_init_help" = "recursive"; then
1774   # If there are subdirs, report their specific --help.
1775   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776     test -d "$ac_dir" ||
1777       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1778       continue
1779     ac_builddir=.
1780
1781 case "$ac_dir" in
1782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 *)
1784   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785   # A ".." for each directory in $ac_dir_suffix.
1786   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787   case $ac_top_builddir_sub in
1788   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790   esac ;;
1791 esac
1792 ac_abs_top_builddir=$ac_pwd
1793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794 # for backward compatibility:
1795 ac_top_builddir=$ac_top_build_prefix
1796
1797 case $srcdir in
1798   .)  # We are building in place.
1799     ac_srcdir=.
1800     ac_top_srcdir=$ac_top_builddir_sub
1801     ac_abs_top_srcdir=$ac_pwd ;;
1802   [\\/]* | ?:[\\/]* )  # Absolute name.
1803     ac_srcdir=$srcdir$ac_dir_suffix;
1804     ac_top_srcdir=$srcdir
1805     ac_abs_top_srcdir=$srcdir ;;
1806   *) # Relative name.
1807     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808     ac_top_srcdir=$ac_top_build_prefix$srcdir
1809     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1810 esac
1811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1812
1813     cd "$ac_dir" || { ac_status=$?; continue; }
1814     # Check for guested configure.
1815     if test -f "$ac_srcdir/configure.gnu"; then
1816       echo &&
1817       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818     elif test -f "$ac_srcdir/configure"; then
1819       echo &&
1820       $SHELL "$ac_srcdir/configure" --help=recursive
1821     else
1822       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1823     fi || ac_status=$?
1824     cd "$ac_pwd" || { ac_status=$?; break; }
1825   done
1826 fi
1827
1828 test -n "$ac_init_help" && exit $ac_status
1829 if $ac_init_version; then
1830   cat <<\_ACEOF
1831 sudo configure 1.7.4
1832 generated by GNU Autoconf 2.65
1833
1834 Copyright (C) 2009 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1837 _ACEOF
1838   exit
1839 fi
1840
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1844
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   rm -f conftest.$ac_objext
1852   if { { ac_try="$ac_compile"
1853 case "(($ac_try" in
1854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855   *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859   (eval "$ac_compile") 2>conftest.err
1860   ac_status=$?
1861   if test -s conftest.err; then
1862     grep -v '^ *+' conftest.err >conftest.er1
1863     cat conftest.er1 >&5
1864     mv -f conftest.er1 conftest.err
1865   fi
1866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867   test $ac_status = 0; } && {
1868          test -z "$ac_c_werror_flag" ||
1869          test ! -s conftest.err
1870        } && test -s conftest.$ac_objext; then :
1871   ac_retval=0
1872 else
1873   $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876         ac_retval=1
1877 fi
1878   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879   as_fn_set_status $ac_retval
1880
1881 } # ac_fn_c_try_compile
1882
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_link ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   rm -f conftest.$ac_objext conftest$ac_exeext
1890   if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893   *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897   (eval "$ac_link") 2>conftest.err
1898   ac_status=$?
1899   if test -s conftest.err; then
1900     grep -v '^ *+' conftest.err >conftest.er1
1901     cat conftest.er1 >&5
1902     mv -f conftest.er1 conftest.err
1903   fi
1904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905   test $ac_status = 0; } && {
1906          test -z "$ac_c_werror_flag" ||
1907          test ! -s conftest.err
1908        } && test -s conftest$ac_exeext && {
1909          test "$cross_compiling" = yes ||
1910          $as_test_x conftest$ac_exeext
1911        }; then :
1912   ac_retval=0
1913 else
1914   $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917         ac_retval=1
1918 fi
1919   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921   # interfere with the next link command; also delete a directory that is
1922   # left behind by Apple's compiler.  We do this before executing the actions.
1923   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925   as_fn_set_status $ac_retval
1926
1927 } # ac_fn_c_try_link
1928
1929 # ac_fn_c_try_cpp LINENO
1930 # ----------------------
1931 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_c_try_cpp ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   if { { ac_try="$ac_cpp conftest.$ac_ext"
1936 case "(($ac_try" in
1937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938   *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1943   ac_status=$?
1944   if test -s conftest.err; then
1945     grep -v '^ *+' conftest.err >conftest.er1
1946     cat conftest.er1 >&5
1947     mv -f conftest.er1 conftest.err
1948   fi
1949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950   test $ac_status = 0; } >/dev/null && {
1951          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1952          test ! -s conftest.err
1953        }; then :
1954   ac_retval=0
1955 else
1956   $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959     ac_retval=1
1960 fi
1961   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962   as_fn_set_status $ac_retval
1963
1964 } # ac_fn_c_try_cpp
1965
1966 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists and can be compiled using the include files in
1969 # INCLUDES, setting the cache variable VAR accordingly.
1970 ac_fn_c_check_header_compile ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1976   $as_echo_n "(cached) " >&6
1977 else
1978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h.  */
1980 $4
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984   eval "$3=yes"
1985 else
1986   eval "$3=no"
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 fi
1990 eval ac_res=\$$3
1991                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1994
1995 } # ac_fn_c_check_header_compile
1996
1997 # ac_fn_c_try_run LINENO
1998 # ----------------------
1999 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2000 # that executables *can* be run.
2001 ac_fn_c_try_run ()
2002 {
2003   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004   if { { ac_try="$ac_link"
2005 case "(($ac_try" in
2006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007   *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011   (eval "$ac_link") 2>&5
2012   ac_status=$?
2013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2015   { { case "(($ac_try" in
2016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017   *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021   (eval "$ac_try") 2>&5
2022   ac_status=$?
2023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024   test $ac_status = 0; }; }; then :
2025   ac_retval=0
2026 else
2027   $as_echo "$as_me: program exited with status $ac_status" >&5
2028        $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2030
2031        ac_retval=$ac_status
2032 fi
2033   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035   as_fn_set_status $ac_retval
2036
2037 } # ac_fn_c_try_run
2038
2039 # ac_fn_c_check_func LINENO FUNC VAR
2040 # ----------------------------------
2041 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2042 ac_fn_c_check_func ()
2043 {
2044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2048   $as_echo_n "(cached) " >&6
2049 else
2050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h.  */
2052 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2054 #define $2 innocuous_$2
2055
2056 /* System header to define __stub macros and hopefully few prototypes,
2057     which can conflict with char $2 (); below.
2058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059     <limits.h> exists even on freestanding compilers.  */
2060
2061 #ifdef __STDC__
2062 # include <limits.h>
2063 #else
2064 # include <assert.h>
2065 #endif
2066
2067 #undef $2
2068
2069 /* Override any GCC internal prototype to avoid an error.
2070    Use char because int might match the return type of a GCC
2071    builtin and then its argument prototype would still apply.  */
2072 #ifdef __cplusplus
2073 extern "C"
2074 #endif
2075 char $2 ();
2076 /* The GNU C library defines this for functions which it implements
2077     to always fail with ENOSYS.  Some functions are actually named
2078     something starting with __ and the normal name is an alias.  */
2079 #if defined __stub_$2 || defined __stub___$2
2080 choke me
2081 #endif
2082
2083 int
2084 main ()
2085 {
2086 return $2 ();
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_link "$LINENO"; then :
2092   eval "$3=yes"
2093 else
2094   eval "$3=no"
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext \
2097     conftest$ac_exeext conftest.$ac_ext
2098 fi
2099 eval ac_res=\$$3
2100                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103
2104 } # ac_fn_c_check_func
2105
2106 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2107 # -------------------------------------------------------
2108 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2109 # the include files in INCLUDES and setting the cache variable VAR
2110 # accordingly.
2111 ac_fn_c_check_header_mongrel ()
2112 {
2113   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118   $as_echo_n "(cached) " >&6
2119 fi
2120 eval ac_res=\$$3
2121                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 else
2124   # Is the header compilable?
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2126 $as_echo_n "checking $2 usability... " >&6; }
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h.  */
2129 $4
2130 #include <$2>
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133   ac_header_compiler=yes
2134 else
2135   ac_header_compiler=no
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2139 $as_echo "$ac_header_compiler" >&6; }
2140
2141 # Is the header present?
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2143 $as_echo_n "checking $2 presence... " >&6; }
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h.  */
2146 #include <$2>
2147 _ACEOF
2148 if ac_fn_c_try_cpp "$LINENO"; then :
2149   ac_header_preproc=yes
2150 else
2151   ac_header_preproc=no
2152 fi
2153 rm -f conftest.err conftest.$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2155 $as_echo "$ac_header_preproc" >&6; }
2156
2157 # So?  What about this header?
2158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2159   yes:no: )
2160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2161 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2162     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2164     ;;
2165   no:yes:* )
2166     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2167 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2168     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2169 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2170     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2171 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2172     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2173 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2174     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2175 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2176 ( cat <<\_ASBOX
2177 ## --------------------------------------- ##
2178 ## Report this to http://www.sudo.ws/bugs/ ##
2179 ## --------------------------------------- ##
2180 _ASBOX
2181      ) | sed "s/^/$as_me: WARNING:     /" >&2
2182     ;;
2183 esac
2184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187   $as_echo_n "(cached) " >&6
2188 else
2189   eval "$3=\$ac_header_compiler"
2190 fi
2191 eval ac_res=\$$3
2192                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 fi
2195   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196
2197 } # ac_fn_c_check_header_mongrel
2198
2199 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2200 # -------------------------------------------
2201 # Tests whether TYPE exists after having included INCLUDES, setting cache
2202 # variable VAR accordingly.
2203 ac_fn_c_check_type ()
2204 {
2205   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209   $as_echo_n "(cached) " >&6
2210 else
2211   eval "$3=no"
2212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h.  */
2214 $4
2215 int
2216 main ()
2217 {
2218 if (sizeof ($2))
2219          return 0;
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h.  */
2227 $4
2228 int
2229 main ()
2230 {
2231 if (sizeof (($2)))
2232             return 0;
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238
2239 else
2240   eval "$3=yes"
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 eval ac_res=\$$3
2247                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250
2251 } # ac_fn_c_check_type
2252
2253 # ac_fn_c_check_decl LINENO SYMBOL VAR
2254 # ------------------------------------
2255 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2256 ac_fn_c_check_decl ()
2257 {
2258   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2260 $as_echo_n "checking whether $2 is declared... " >&6; }
2261 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2262   $as_echo_n "(cached) " >&6
2263 else
2264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h.  */
2266 $4
2267 int
2268 main ()
2269 {
2270 #ifndef $2
2271   (void) $2;
2272 #endif
2273
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279   eval "$3=yes"
2280 else
2281   eval "$3=no"
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 fi
2285 eval ac_res=\$$3
2286                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2289
2290 } # ac_fn_c_check_decl
2291
2292 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2293 # ----------------------------------------------------
2294 # Tries to find if the field MEMBER exists in type AGGR, after including
2295 # INCLUDES, setting cache variable VAR accordingly.
2296 ac_fn_c_check_member ()
2297 {
2298   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2300 $as_echo_n "checking for $2.$3... " >&6; }
2301 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2302   $as_echo_n "(cached) " >&6
2303 else
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $5
2307 int
2308 main ()
2309 {
2310 static $2 ac_aggr;
2311 if (ac_aggr.$3)
2312 return 0;
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318   eval "$4=yes"
2319 else
2320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h.  */
2322 $5
2323 int
2324 main ()
2325 {
2326 static $2 ac_aggr;
2327 if (sizeof ac_aggr.$3)
2328 return 0;
2329   ;
2330   return 0;
2331 }
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334   eval "$4=yes"
2335 else
2336   eval "$4=no"
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 fi
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 fi
2342 eval ac_res=\$$4
2343                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346
2347 } # ac_fn_c_check_member
2348 cat >config.log <<_ACEOF
2349 This file contains any messages produced by compilers while
2350 running configure, to aid debugging if configure makes a mistake.
2351
2352 It was created by sudo $as_me 1.7.4, which was
2353 generated by GNU Autoconf 2.65.  Invocation command line was
2354
2355   $ $0 $@
2356
2357 _ACEOF
2358 exec 5>>config.log
2359 {
2360 cat <<_ASUNAME
2361 ## --------- ##
2362 ## Platform. ##
2363 ## --------- ##
2364
2365 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2366 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2367 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2368 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2369 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2370
2371 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2372 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2373
2374 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2375 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2376 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2377 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2378 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2379 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2380 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2381
2382 _ASUNAME
2383
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387   IFS=$as_save_IFS
2388   test -z "$as_dir" && as_dir=.
2389     $as_echo "PATH: $as_dir"
2390   done
2391 IFS=$as_save_IFS
2392
2393 } >&5
2394
2395 cat >&5 <<_ACEOF
2396
2397
2398 ## ----------- ##
2399 ## Core tests. ##
2400 ## ----------- ##
2401
2402 _ACEOF
2403
2404
2405 # Keep a trace of the command line.
2406 # Strip out --no-create and --no-recursion so they do not pile up.
2407 # Strip out --silent because we don't want to record it for future runs.
2408 # Also quote any args containing shell meta-characters.
2409 # Make two passes to allow for proper duplicate-argument suppression.
2410 ac_configure_args=
2411 ac_configure_args0=
2412 ac_configure_args1=
2413 ac_must_keep_next=false
2414 for ac_pass in 1 2
2415 do
2416   for ac_arg
2417   do
2418     case $ac_arg in
2419     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2420     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2421     | -silent | --silent | --silen | --sile | --sil)
2422       continue ;;
2423     *\'*)
2424       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2425     esac
2426     case $ac_pass in
2427     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2428     2)
2429       as_fn_append ac_configure_args1 " '$ac_arg'"
2430       if test $ac_must_keep_next = true; then
2431         ac_must_keep_next=false # Got value, back to normal.
2432       else
2433         case $ac_arg in
2434           *=* | --config-cache | -C | -disable-* | --disable-* \
2435           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2436           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2437           | -with-* | --with-* | -without-* | --without-* | --x)
2438             case "$ac_configure_args0 " in
2439               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2440             esac
2441             ;;
2442           -* ) ac_must_keep_next=true ;;
2443         esac
2444       fi
2445       as_fn_append ac_configure_args " '$ac_arg'"
2446       ;;
2447     esac
2448   done
2449 done
2450 { ac_configure_args0=; unset ac_configure_args0;}
2451 { ac_configure_args1=; unset ac_configure_args1;}
2452
2453 # When interrupted or exit'd, cleanup temporary files, and complete
2454 # config.log.  We remove comments because anyway the quotes in there
2455 # would cause problems or look ugly.
2456 # WARNING: Use '\'' to represent an apostrophe within the trap.
2457 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2458 trap 'exit_status=$?
2459   # Save into config.log some information that might help in debugging.
2460   {
2461     echo
2462
2463     cat <<\_ASBOX
2464 ## ---------------- ##
2465 ## Cache variables. ##
2466 ## ---------------- ##
2467 _ASBOX
2468     echo
2469     # The following way of writing the cache mishandles newlines in values,
2470 (
2471   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2472     eval ac_val=\$$ac_var
2473     case $ac_val in #(
2474     *${as_nl}*)
2475       case $ac_var in #(
2476       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2478       esac
2479       case $ac_var in #(
2480       _ | IFS | as_nl) ;; #(
2481       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2482       *) { eval $ac_var=; unset $ac_var;} ;;
2483       esac ;;
2484     esac
2485   done
2486   (set) 2>&1 |
2487     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2488     *${as_nl}ac_space=\ *)
2489       sed -n \
2490         "s/'\''/'\''\\\\'\'''\''/g;
2491           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2492       ;; #(
2493     *)
2494       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2495       ;;
2496     esac |
2497     sort
2498 )
2499     echo
2500
2501     cat <<\_ASBOX
2502 ## ----------------- ##
2503 ## Output variables. ##
2504 ## ----------------- ##
2505 _ASBOX
2506     echo
2507     for ac_var in $ac_subst_vars
2508     do
2509       eval ac_val=\$$ac_var
2510       case $ac_val in
2511       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2512       esac
2513       $as_echo "$ac_var='\''$ac_val'\''"
2514     done | sort
2515     echo
2516
2517     if test -n "$ac_subst_files"; then
2518       cat <<\_ASBOX
2519 ## ------------------- ##
2520 ## File substitutions. ##
2521 ## ------------------- ##
2522 _ASBOX
2523       echo
2524       for ac_var in $ac_subst_files
2525       do
2526         eval ac_val=\$$ac_var
2527         case $ac_val in
2528         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529         esac
2530         $as_echo "$ac_var='\''$ac_val'\''"
2531       done | sort
2532       echo
2533     fi
2534
2535     if test -s confdefs.h; then
2536       cat <<\_ASBOX
2537 ## ----------- ##
2538 ## confdefs.h. ##
2539 ## ----------- ##
2540 _ASBOX
2541       echo
2542       cat confdefs.h
2543       echo
2544     fi
2545     test "$ac_signal" != 0 &&
2546       $as_echo "$as_me: caught signal $ac_signal"
2547     $as_echo "$as_me: exit $exit_status"
2548   } >&5
2549   rm -f core *.core core.conftest.* &&
2550     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2551     exit $exit_status
2552 ' 0
2553 for ac_signal in 1 2 13 15; do
2554   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2555 done
2556 ac_signal=0
2557
2558 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2559 rm -f -r conftest* confdefs.h
2560
2561 $as_echo "/* confdefs.h */" > confdefs.h
2562
2563 # Predefined preprocessor variables.
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_NAME "$PACKAGE_NAME"
2567 _ACEOF
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2571 _ACEOF
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2575 _ACEOF
2576
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_STRING "$PACKAGE_STRING"
2579 _ACEOF
2580
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2583 _ACEOF
2584
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_URL "$PACKAGE_URL"
2587 _ACEOF
2588
2589
2590 # Let the site file select an alternate cache file if it wants to.
2591 # Prefer an explicitly selected file to automatically selected ones.
2592 ac_site_file1=NONE
2593 ac_site_file2=NONE
2594 if test -n "$CONFIG_SITE"; then
2595   ac_site_file1=$CONFIG_SITE
2596 elif test "x$prefix" != xNONE; then
2597   ac_site_file1=$prefix/share/config.site
2598   ac_site_file2=$prefix/etc/config.site
2599 else
2600   ac_site_file1=$ac_default_prefix/share/config.site
2601   ac_site_file2=$ac_default_prefix/etc/config.site
2602 fi
2603 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2604 do
2605   test "x$ac_site_file" = xNONE && continue
2606   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2607     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2608 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2609     sed 's/^/| /' "$ac_site_file" >&5
2610     . "$ac_site_file"
2611   fi
2612 done
2613
2614 if test -r "$cache_file"; then
2615   # Some versions of bash will fail to source /dev/null (special files
2616   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2617   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619 $as_echo "$as_me: loading cache $cache_file" >&6;}
2620     case $cache_file in
2621       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622       *)                      . "./$cache_file";;
2623     esac
2624   fi
2625 else
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627 $as_echo "$as_me: creating cache $cache_file" >&6;}
2628   >$cache_file
2629 fi
2630
2631 # Check that the precious variables saved in the cache have kept the same
2632 # value.
2633 ac_cache_corrupted=false
2634 for ac_var in $ac_precious_vars; do
2635   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2636   eval ac_new_set=\$ac_env_${ac_var}_set
2637   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2638   eval ac_new_val=\$ac_env_${ac_var}_value
2639   case $ac_old_set,$ac_new_set in
2640     set,)
2641       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2643       ac_cache_corrupted=: ;;
2644     ,set)
2645       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2646 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2647       ac_cache_corrupted=: ;;
2648     ,);;
2649     *)
2650       if test "x$ac_old_val" != "x$ac_new_val"; then
2651         # differences in whitespace do not lead to failure.
2652         ac_old_val_w=`echo x $ac_old_val`
2653         ac_new_val_w=`echo x $ac_new_val`
2654         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2655           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2656 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2657           ac_cache_corrupted=:
2658         else
2659           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2660 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2661           eval $ac_var=\$ac_old_val
2662         fi
2663         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2664 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2665         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2666 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2667       fi;;
2668   esac
2669   # Pass precious variables to config.status.
2670   if test "$ac_new_set" = set; then
2671     case $ac_new_val in
2672     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2673     *) ac_arg=$ac_var=$ac_new_val ;;
2674     esac
2675     case " $ac_configure_args " in
2676       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2677       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2678     esac
2679   fi
2680 done
2681 if $ac_cache_corrupted; then
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2685 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2686   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2687 fi
2688 ## -------------------- ##
2689 ## Main body of script. ##
2690 ## -------------------- ##
2691
2692 ac_ext=c
2693 ac_cpp='$CPP $CPPFLAGS'
2694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697
2698
2699 ac_config_headers="$ac_config_headers config.h pathnames.h"
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2702 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776 #
2777 # Begin initial values for man page substitution
2778 #
2779 timedir=/var/adm/sudo
2780 timeout=5
2781 password_timeout=5
2782 sudo_umask=0022
2783 passprompt="Password:"
2784 long_otp_prompt=off
2785 lecture=once
2786 logfac=auth
2787 goodpri=notice
2788 badpri=alert
2789 loglen=80
2790 ignore_dot=off
2791 mail_no_user=on
2792 mail_no_host=off
2793 mail_no_perms=off
2794 mailto=root
2795 mailsub="*** SECURITY information for %h ***"
2796 badpass_message="Sorry, try again."
2797 fqdn=off
2798 runas_default=root
2799 env_editor=off
2800 editor=vi
2801 passwd_tries=3
2802 tty_tickets=on
2803 insults=off
2804 root_sudo=on
2805 path_info=on
2806 ldap_conf=/etc/ldap.conf
2807 ldap_secret=/etc/ldap.secret
2808 netsvc_conf=/etc/netsvc.conf
2809 noexec_file=/usr/local/libexec/sudo_noexec.so
2810 nsswitch_conf=/etc/nsswitch.conf
2811 secure_path="not set"
2812 #
2813 # End initial values for man page substitution
2814 #
2815 INSTALL_NOEXEC=
2816 devdir='$(srcdir)'
2817 PROGS="sudo visudo"
2818 : ${MANTYPE='man'}
2819 : ${mansrcdir='.'}
2820 : ${SUDOERS_MODE='0440'}
2821 : ${SUDOERS_UID='0'}
2822 : ${SUDOERS_GID='0'}
2823 DEV="#"
2824 LDAP="#"
2825 REPLAY="#"
2826 BAMAN=0
2827 LCMAN=0
2828 SEMAN=0
2829 ZLIB=
2830 AUTH_OBJS=
2831 AUTH_REG=
2832 AUTH_EXCL=
2833 AUTH_EXCL_DEF=
2834 AUTH_DEF=passwd
2835
2836 CHECKSHADOW=true
2837 shadow_defs=
2838 shadow_funcs=
2839 shadow_libs=
2840 shadow_libs_optional=
2841
2842 CONFIGURE_ARGS="$@"
2843
2844
2845
2846 # Check whether --with-otp-only was given.
2847 if test "${with_otp_only+set}" = set; then :
2848   withval=$with_otp_only; case $with_otp_only in
2849     yes)        with_passwd="no"
2850                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
2851 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2852                 ;;
2853 esac
2854 fi
2855
2856
2857
2858 # Check whether --with-alertmail was given.
2859 if test "${with_alertmail+set}" = set; then :
2860   withval=$with_alertmail; case $with_alertmail in
2861     *)          with_mailto="$with_alertmail"
2862                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
2863 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2864                 ;;
2865 esac
2866 fi
2867
2868
2869
2870
2871 # Check whether --with-devel was given.
2872 if test "${with_devel+set}" = set; then :
2873   withval=$with_devel; case $with_devel in
2874     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
2875 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2876                 PROGS="${PROGS} testsudoers"
2877                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2878                 DEV=""
2879                 devdir=.
2880                 ;;
2881     no)         ;;
2882     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2883 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2884                 ;;
2885 esac
2886 fi
2887
2888 if test X"$with_devel" != X"yes"; then
2889     ac_cv_prog_cc_g=no
2890 fi
2891
2892
2893 # Check whether --with-CC was given.
2894 if test "${with_CC+set}" = set; then :
2895   withval=$with_CC; case $with_CC in
2896     yes)        as_fn_error "\"must give --with-CC an argument.\"" "$LINENO" 5
2897                 ;;
2898     no)         as_fn_error "\"illegal argument: --without-CC.\"" "$LINENO" 5
2899                 ;;
2900     *)          CC=$with_CC
2901                 ;;
2902 esac
2903 fi
2904
2905
2906
2907 # Check whether --with-rpath was given.
2908 if test "${with_rpath+set}" = set; then :
2909   withval=$with_rpath; case $with_rpath in
2910     yes|no)     ;;
2911     *)          as_fn_error "\"--with-rpath does not take an argument.\"" "$LINENO" 5
2912                 ;;
2913 esac
2914 fi
2915
2916
2917
2918 # Check whether --with-blibpath was given.
2919 if test "${with_blibpath+set}" = set; then :
2920   withval=$with_blibpath; case $with_blibpath in
2921     yes|no)     ;;
2922     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
2923 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2924                 ;;
2925 esac
2926 fi
2927
2928
2929
2930 # Check whether --with-bsm-audit was given.
2931 if test "${with_bsm_audit+set}" = set; then :
2932   withval=$with_bsm_audit; case $with_bsm_audit in
2933     yes)        $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
2934
2935                 SUDO_LIBS="${SUDO_LIBS} -lbsm"
2936                 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
2937                 ;;
2938     no)         ;;
2939     *)          as_fn_error "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
2940                 ;;
2941 esac
2942 fi
2943
2944
2945 ac_ext=c
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950 if test -n "$ac_tool_prefix"; then
2951   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2952 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if test "${ac_cv_prog_CC+set}" = set; then :
2956   $as_echo_n "(cached) " >&6
2957 else
2958   if test -n "$CC"; then
2959   ac_cv_prog_CC="$CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964   IFS=$as_save_IFS
2965   test -z "$as_dir" && as_dir=.
2966     for ac_exec_ext in '' $ac_executable_extensions; do
2967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970     break 2
2971   fi
2972 done
2973   done
2974 IFS=$as_save_IFS
2975
2976 fi
2977 fi
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988 fi
2989 if test -z "$ac_cv_prog_CC"; then
2990   ac_ct_CC=$CC
2991   # Extract the first word of "gcc", so it can be a program name with args.
2992 set dummy gcc; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2996   $as_echo_n "(cached) " >&6
2997 else
2998   if test -n "$ac_ct_CC"; then
2999   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004   IFS=$as_save_IFS
3005   test -z "$as_dir" && as_dir=.
3006     for ac_exec_ext in '' $ac_executable_extensions; do
3007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008     ac_cv_prog_ac_ct_CC="gcc"
3009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010     break 2
3011   fi
3012 done
3013   done
3014 IFS=$as_save_IFS
3015
3016 fi
3017 fi
3018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3019 if test -n "$ac_ct_CC"; then
3020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3021 $as_echo "$ac_ct_CC" >&6; }
3022 else
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3025 fi
3026
3027   if test "x$ac_ct_CC" = x; then
3028     CC=""
3029   else
3030     case $cross_compiling:$ac_tool_warned in
3031 yes:)
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036     CC=$ac_ct_CC
3037   fi
3038 else
3039   CC="$ac_cv_prog_CC"
3040 fi
3041
3042 if test -z "$CC"; then
3043           if test -n "$ac_tool_prefix"; then
3044     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3045 set dummy ${ac_tool_prefix}cc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then :
3049   $as_echo_n "(cached) " >&6
3050 else
3051   if test -n "$CC"; then
3052   ac_cv_prog_CC="$CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059     for ac_exec_ext in '' $ac_executable_extensions; do
3060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061     ac_cv_prog_CC="${ac_tool_prefix}cc"
3062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063     break 2
3064   fi
3065 done
3066   done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 CC=$ac_cv_prog_CC
3072 if test -n "$CC"; then
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3075 else
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081   fi
3082 fi
3083 if test -z "$CC"; then
3084   # Extract the first word of "cc", so it can be a program name with args.
3085 set dummy cc; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if test "${ac_cv_prog_CC+set}" = set; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if test -n "$CC"; then
3092   ac_cv_prog_CC="$CC" # Let the user override the test.
3093 else
3094   ac_prog_rejected=no
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098   IFS=$as_save_IFS
3099   test -z "$as_dir" && as_dir=.
3100     for ac_exec_ext in '' $ac_executable_extensions; do
3101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3103        ac_prog_rejected=yes
3104        continue
3105      fi
3106     ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
3115   # We found a bogon in the path, so make sure we never use it.
3116   set dummy $ac_cv_prog_CC
3117   shift
3118   if test $# != 0; then
3119     # We chose a different compiler from the bogus one.
3120     # However, it has the same basename, so the bogon will be chosen
3121     # first if we set CC to just the basename; use the full file name.
3122     shift
3123     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3124   fi
3125 fi
3126 fi
3127 fi
3128 CC=$ac_cv_prog_CC
3129 if test -n "$CC"; then
3130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3132 else
3133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 fi
3136
3137
3138 fi
3139 if test -z "$CC"; then
3140   if test -n "$ac_tool_prefix"; then
3141   for ac_prog in cl.exe
3142   do
3143     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if test "${ac_cv_prog_CC+set}" = set; then :
3148   $as_echo_n "(cached) " >&6
3149 else
3150   if test -n "$CC"; then
3151   ac_cv_prog_CC="$CC" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156   IFS=$as_save_IFS
3157   test -z "$as_dir" && as_dir=.
3158     for ac_exec_ext in '' $ac_executable_extensions; do
3159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162     break 2
3163   fi
3164 done
3165   done
3166 IFS=$as_save_IFS
3167
3168 fi
3169 fi
3170 CC=$ac_cv_prog_CC
3171 if test -n "$CC"; then
3172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173 $as_echo "$CC" >&6; }
3174 else
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 fi
3178
3179
3180     test -n "$CC" && break
3181   done
3182 fi
3183 if test -z "$CC"; then
3184   ac_ct_CC=$CC
3185   for ac_prog in cl.exe
3186 do
3187   # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy $ac_prog; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3192   $as_echo_n "(cached) " >&6
3193 else
3194   if test -n "$ac_ct_CC"; then
3195   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202     for ac_exec_ext in '' $ac_executable_extensions; do
3203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204     ac_cv_prog_ac_ct_CC="$ac_prog"
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 fi
3213 fi
3214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215 if test -n "$ac_ct_CC"; then
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3217 $as_echo "$ac_ct_CC" >&6; }
3218 else
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224   test -n "$ac_ct_CC" && break
3225 done
3226
3227   if test "x$ac_ct_CC" = x; then
3228     CC=""
3229   else
3230     case $cross_compiling:$ac_tool_warned in
3231 yes:)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234 ac_tool_warned=yes ;;
3235 esac
3236     CC=$ac_ct_CC
3237   fi
3238 fi
3239
3240 fi
3241
3242
3243 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error "no acceptable C compiler found in \$PATH
3246 See \`config.log' for more details." "$LINENO" 5; }
3247
3248 # Provide some information about the compiler.
3249 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3250 set X $ac_compile
3251 ac_compiler=$2
3252 for ac_option in --version -v -V -qversion; do
3253   { { ac_try="$ac_compiler $ac_option >&5"
3254 case "(($ac_try" in
3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256   *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3261   ac_status=$?
3262   if test -s conftest.err; then
3263     sed '10a\
3264 ... rest of stderr output deleted ...
3265          10q' conftest.err >conftest.er1
3266     cat conftest.er1 >&5
3267   fi
3268   rm -f conftest.er1 conftest.err
3269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270   test $ac_status = 0; }
3271 done
3272
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h.  */
3275
3276 int
3277 main ()
3278 {
3279
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 ac_clean_files_save=$ac_clean_files
3285 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3286 # Try to create an executable without -o first, disregard a.out.
3287 # It will help us diagnose broken compilers, and finding out an intuition
3288 # of exeext.
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3290 $as_echo_n "checking whether the C compiler works... " >&6; }
3291 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3292
3293 # The possible output files:
3294 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3295
3296 ac_rmfiles=
3297 for ac_file in $ac_files
3298 do
3299   case $ac_file in
3300     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3302   esac
3303 done
3304 rm -f $ac_rmfiles
3305
3306 if { { ac_try="$ac_link_default"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313   (eval "$ac_link_default") 2>&5
3314   ac_status=$?
3315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316   test $ac_status = 0; }; then :
3317   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3318 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3319 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3320 # so that the user can short-circuit this test for compilers unknown to
3321 # Autoconf.
3322 for ac_file in $ac_files ''
3323 do
3324   test -f "$ac_file" || continue
3325   case $ac_file in
3326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3327         ;;
3328     [ab].out )
3329         # We found the default executable, but exeext='' is most
3330         # certainly right.
3331         break;;
3332     *.* )
3333         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3334         then :; else
3335            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336         fi
3337         # We set ac_cv_exeext here because the later test for it is not
3338         # safe: cross compilers may not add the suffix if given an `-o'
3339         # argument, so we may need to know it at that point already.
3340         # Even if this section looks crufty: it has the advantage of
3341         # actually working.
3342         break;;
3343     * )
3344         break;;
3345   esac
3346 done
3347 test "$ac_cv_exeext" = no && ac_cv_exeext=
3348
3349 else
3350   ac_file=''
3351 fi
3352 if test -z "$ac_file"; then :
3353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3355 $as_echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 { as_fn_set_status 77
3361 as_fn_error "C compiler cannot create executables
3362 See \`config.log' for more details." "$LINENO" 5; }; }
3363 else
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365 $as_echo "yes" >&6; }
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3368 $as_echo_n "checking for C compiler default output file name... " >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3370 $as_echo "$ac_file" >&6; }
3371 ac_exeext=$ac_cv_exeext
3372
3373 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3374 ac_clean_files=$ac_clean_files_save
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3376 $as_echo_n "checking for suffix of executables... " >&6; }
3377 if { { ac_try="$ac_link"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384   (eval "$ac_link") 2>&5
3385   ac_status=$?
3386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387   test $ac_status = 0; }; then :
3388   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3389 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3390 # work properly (i.e., refer to `conftest.exe'), while it won't with
3391 # `rm'.
3392 for ac_file in conftest.exe conftest conftest.*; do
3393   test -f "$ac_file" || continue
3394   case $ac_file in
3395     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3396     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3397           break;;
3398     * ) break;;
3399   esac
3400 done
3401 else
3402   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error "cannot compute suffix of executables: cannot compile and link
3405 See \`config.log' for more details." "$LINENO" 5; }
3406 fi
3407 rm -f conftest conftest$ac_cv_exeext
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3409 $as_echo "$ac_cv_exeext" >&6; }
3410
3411 rm -f conftest.$ac_ext
3412 EXEEXT=$ac_cv_exeext
3413 ac_exeext=$EXEEXT
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h.  */
3416 #include <stdio.h>
3417 int
3418 main ()
3419 {
3420 FILE *f = fopen ("conftest.out", "w");
3421  return ferror (f) || fclose (f) != 0;
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 ac_clean_files="$ac_clean_files conftest.out"
3428 # Check that the compiler produces executables we can run.  If not, either
3429 # the compiler is broken, or we cross compile.
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3431 $as_echo_n "checking whether we are cross compiling... " >&6; }
3432 if test "$cross_compiling" != yes; then
3433   { { ac_try="$ac_link"
3434 case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440   (eval "$ac_link") 2>&5
3441   ac_status=$?
3442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443   test $ac_status = 0; }
3444   if { ac_try='./conftest$ac_cv_exeext'
3445   { { case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451   (eval "$ac_try") 2>&5
3452   ac_status=$?
3453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454   test $ac_status = 0; }; }; then
3455     cross_compiling=no
3456   else
3457     if test "$cross_compiling" = maybe; then
3458         cross_compiling=yes
3459     else
3460         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error "cannot run C compiled programs.
3463 If you meant to cross compile, use \`--host'.
3464 See \`config.log' for more details." "$LINENO" 5; }
3465     fi
3466   fi
3467 fi
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3469 $as_echo "$cross_compiling" >&6; }
3470
3471 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3472 ac_clean_files=$ac_clean_files_save
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3474 $as_echo_n "checking for suffix of object files... " >&6; }
3475 if test "${ac_cv_objext+set}" = set; then :
3476   $as_echo_n "(cached) " >&6
3477 else
3478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h.  */
3480
3481 int
3482 main ()
3483 {
3484
3485   ;
3486   return 0;
3487 }
3488 _ACEOF
3489 rm -f conftest.o conftest.obj
3490 if { { ac_try="$ac_compile"
3491 case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497   (eval "$ac_compile") 2>&5
3498   ac_status=$?
3499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500   test $ac_status = 0; }; then :
3501   for ac_file in conftest.o conftest.obj conftest.*; do
3502   test -f "$ac_file" || continue;
3503   case $ac_file in
3504     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3505     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3506        break;;
3507   esac
3508 done
3509 else
3510   $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error "cannot compute suffix of object files: cannot compile
3516 See \`config.log' for more details." "$LINENO" 5; }
3517 fi
3518 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3521 $as_echo "$ac_cv_objext" >&6; }
3522 OBJEXT=$ac_cv_objext
3523 ac_objext=$OBJEXT
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3525 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3526 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3527   $as_echo_n "(cached) " >&6
3528 else
3529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h.  */
3531
3532 int
3533 main ()
3534 {
3535 #ifndef __GNUC__
3536        choke me
3537 #endif
3538
3539   ;
3540   return 0;
3541 }
3542 _ACEOF
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544   ac_compiler_gnu=yes
3545 else
3546   ac_compiler_gnu=no
3547 fi
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3550
3551 fi
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3553 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3554 if test $ac_compiler_gnu = yes; then
3555   GCC=yes
3556 else
3557   GCC=
3558 fi
3559 ac_test_CFLAGS=${CFLAGS+set}
3560 ac_save_CFLAGS=$CFLAGS
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3562 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3563 if test "${ac_cv_prog_cc_g+set}" = set; then :
3564   $as_echo_n "(cached) " >&6
3565 else
3566   ac_save_c_werror_flag=$ac_c_werror_flag
3567    ac_c_werror_flag=yes
3568    ac_cv_prog_cc_g=no
3569    CFLAGS="-g"
3570    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h.  */
3572
3573 int
3574 main ()
3575 {
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582   ac_cv_prog_cc_g=yes
3583 else
3584   CFLAGS=""
3585       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h.  */
3587
3588 int
3589 main ()
3590 {
3591
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597
3598 else
3599   ac_c_werror_flag=$ac_save_c_werror_flag
3600          CFLAGS="-g"
3601          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h.  */
3603
3604 int
3605 main ()
3606 {
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613   ac_cv_prog_cc_g=yes
3614 fi
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 fi
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620    ac_c_werror_flag=$ac_save_c_werror_flag
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3623 $as_echo "$ac_cv_prog_cc_g" >&6; }
3624 if test "$ac_test_CFLAGS" = set; then
3625   CFLAGS=$ac_save_CFLAGS
3626 elif test $ac_cv_prog_cc_g = yes; then
3627   if test "$GCC" = yes; then
3628     CFLAGS="-g -O2"
3629   else
3630     CFLAGS="-g"
3631   fi
3632 else
3633   if test "$GCC" = yes; then
3634     CFLAGS="-O2"
3635   else
3636     CFLAGS=
3637   fi
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3640 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3641 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3642   $as_echo_n "(cached) " >&6
3643 else
3644   ac_cv_prog_cc_c89=no
3645 ac_save_CC=$CC
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h.  */
3648 #include <stdarg.h>
3649 #include <stdio.h>
3650 #include <sys/types.h>
3651 #include <sys/stat.h>
3652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3653 struct buf { int x; };
3654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3655 static char *e (p, i)
3656      char **p;
3657      int i;
3658 {
3659   return p[i];
3660 }
3661 static char *f (char * (*g) (char **, int), char **p, ...)
3662 {
3663   char *s;
3664   va_list v;
3665   va_start (v,p);
3666   s = g (p, va_arg (v,int));
3667   va_end (v);
3668   return s;
3669 }
3670
3671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3672    function prototypes and stuff, but not '\xHH' hex character constants.
3673    These don't provoke an error unfortunately, instead are silently treated
3674    as 'x'.  The following induces an error, until -std is added to get
3675    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3676    array size at least.  It's necessary to write '\x00'==0 to get something
3677    that's true only with -std.  */
3678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3679
3680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3681    inside strings and character constants.  */
3682 #define FOO(x) 'x'
3683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3684
3685 int test (int i, double x);
3686 struct s1 {int (*f) (int a);};
3687 struct s2 {int (*f) (double a);};
3688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3689 int argc;
3690 char **argv;
3691 int
3692 main ()
3693 {
3694 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3695   ;
3696   return 0;
3697 }
3698 _ACEOF
3699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3700         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3701 do
3702   CC="$ac_save_CC $ac_arg"
3703   if ac_fn_c_try_compile "$LINENO"; then :
3704   ac_cv_prog_cc_c89=$ac_arg
3705 fi
3706 rm -f core conftest.err conftest.$ac_objext
3707   test "x$ac_cv_prog_cc_c89" != "xno" && break
3708 done
3709 rm -f conftest.$ac_ext
3710 CC=$ac_save_CC
3711
3712 fi
3713 # AC_CACHE_VAL
3714 case "x$ac_cv_prog_cc_c89" in
3715   x)
3716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3717 $as_echo "none needed" >&6; } ;;
3718   xno)
3719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3720 $as_echo "unsupported" >&6; } ;;
3721   *)
3722     CC="$CC $ac_cv_prog_cc_c89"
3723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3724 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3725 esac
3726 if test "x$ac_cv_prog_cc_c89" != xno; then :
3727
3728 fi
3729
3730 ac_ext=c
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735
3736
3737
3738 # Check whether --with-linux-audit was given.
3739 if test "${with_linux_audit+set}" = set; then :
3740   withval=$with_linux_audit; case $with_linux_audit in
3741     yes)
3742                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h.  */
3744 #include <libaudit.h>
3745 int
3746 main ()
3747 {
3748 int i = AUDIT_USER_CMD; (void)i;
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754
3755                     $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3756
3757                     SUDO_LIBS="${SUDO_LIBS} -laudit"
3758                     SUDO_OBJS="${SUDO_OBJS} linux_audit.o"
3759
3760 else
3761
3762                     as_fn_error "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3763
3764 fi
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766                 ;;
3767     no)         ;;
3768     *)          as_fn_error "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3769                 ;;
3770 esac
3771 fi
3772
3773
3774
3775 # Check whether --with-incpath was given.
3776 if test "${with_incpath+set}" = set; then :
3777   withval=$with_incpath; case $with_incpath in
3778     yes)        as_fn_error "\"must give --with-incpath an argument.\"" "$LINENO" 5
3779                 ;;
3780     no)         as_fn_error "\"--without-incpath not supported.\"" "$LINENO" 5
3781                 ;;
3782     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3783 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3784                 for i in ${with_incpath}; do
3785                     CPPFLAGS="${CPPFLAGS} -I${i}"
3786                 done
3787                 ;;
3788 esac
3789 fi
3790
3791
3792
3793 # Check whether --with-libpath was given.
3794 if test "${with_libpath+set}" = set; then :
3795   withval=$with_libpath; case $with_libpath in
3796     yes)        as_fn_error "\"must give --with-libpath an argument.\"" "$LINENO" 5
3797                 ;;
3798     no)         as_fn_error "\"--without-libpath not supported.\"" "$LINENO" 5
3799                 ;;
3800     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3801 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3802                 ;;
3803 esac
3804 fi
3805
3806
3807
3808 # Check whether --with-libraries was given.
3809 if test "${with_libraries+set}" = set; then :
3810   withval=$with_libraries; case $with_libraries in
3811     yes)        as_fn_error "\"must give --with-libraries an argument.\"" "$LINENO" 5
3812                 ;;
3813     no)         as_fn_error "\"--without-libraries not supported.\"" "$LINENO" 5
3814                 ;;
3815     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3816 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3817                 ;;
3818 esac
3819 fi
3820
3821
3822
3823 # Check whether --with-efence was given.
3824 if test "${with_efence+set}" = set; then :
3825   withval=$with_efence; case $with_efence in
3826     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
3827 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
3828                 LIBS="${LIBS} -lefence"
3829                 if test -f /usr/local/lib/libefence.a; then
3830                     with_libpath="${with_libpath} /usr/local/lib"
3831                 fi
3832                 ;;
3833     no)         ;;
3834     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
3835 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
3836                 ;;
3837 esac
3838 fi
3839
3840
3841
3842 # Check whether --with-csops was given.
3843 if test "${with_csops+set}" = set; then :
3844   withval=$with_csops; case $with_csops in
3845     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
3846 $as_echo "$as_me: Adding CSOps standard options" >&6;}
3847                 CHECKSIA=false
3848                 with_ignore_dot=yes
3849                 insults=on
3850                 with_classic_insults=yes
3851                 with_csops_insults=yes
3852                 with_env_editor=yes
3853                 : ${mansectsu='8'}
3854                 : ${mansectform='5'}
3855                 ;;
3856     no)         ;;
3857     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
3858 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
3859                 ;;
3860 esac
3861 fi
3862
3863
3864
3865 # Check whether --with-passwd was given.
3866 if test "${with_passwd+set}" = set; then :
3867   withval=$with_passwd; case $with_passwd in
3868     yes|no)     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
3869 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
3870                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
3871 $as_echo "$with_passwd" >&6; }
3872                 AUTH_DEF=""
3873                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
3874                 ;;
3875     *)          as_fn_error "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
3876                 ;;
3877 esac
3878 fi
3879
3880
3881
3882 # Check whether --with-skey was given.
3883 if test "${with_skey+set}" = set; then :
3884   withval=$with_skey; case $with_skey in
3885     no)         with_skey=""
3886                 ;;
3887     *)          $as_echo "#define HAVE_SKEY 1" >>confdefs.h
3888
3889                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
3890 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
3891                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3892 $as_echo "yes" >&6; }
3893                 AUTH_REG="$AUTH_REG S/Key"
3894                 ;;
3895 esac
3896 fi
3897
3898
3899
3900 # Check whether --with-opie was given.
3901 if test "${with_opie+set}" = set; then :
3902   withval=$with_opie; case $with_opie in
3903     no)         with_opie=""
3904                 ;;
3905     *)          $as_echo "#define HAVE_OPIE 1" >>confdefs.h
3906
3907                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
3908 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
3909                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 $as_echo "yes" >&6; }
3911                 AUTH_REG="$AUTH_REG NRL_OPIE"
3912                 ;;
3913 esac
3914 fi
3915
3916
3917
3918 # Check whether --with-long-otp-prompt was given.
3919 if test "${with_long_otp_prompt+set}" = set; then :
3920   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
3921     yes)        $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
3922
3923                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
3924 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
3925                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3926 $as_echo "yes" >&6; }
3927                 long_otp_prompt=on
3928                 ;;
3929     no)         long_otp_prompt=off
3930                 ;;
3931     *)          as_fn_error "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
3932                 ;;
3933 esac
3934 fi
3935
3936
3937
3938 # Check whether --with-SecurID was given.
3939 if test "${with_SecurID+set}" = set; then :
3940   withval=$with_SecurID; case $with_SecurID in
3941     no)         with_SecurID="";;
3942     *)          $as_echo "#define HAVE_SECURID 1" >>confdefs.h
3943
3944                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
3945 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
3946                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3948                 AUTH_EXCL="$AUTH_EXCL SecurID"
3949                 ;;
3950 esac
3951 fi
3952
3953
3954
3955 # Check whether --with-fwtk was given.
3956 if test "${with_fwtk+set}" = set; then :
3957   withval=$with_fwtk; case $with_fwtk in
3958     no)         with_fwtk="";;
3959     *)          $as_echo "#define HAVE_FWTK 1" >>confdefs.h
3960
3961                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
3962 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
3963                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3965                 AUTH_EXCL="$AUTH_EXCL FWTK"
3966                 ;;
3967 esac
3968 fi
3969
3970
3971
3972 # Check whether --with-kerb4 was given.
3973 if test "${with_kerb4+set}" = set; then :
3974   withval=$with_kerb4; case $with_kerb4 in
3975     no)         with_kerb4="";;
3976     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5
3977 $as_echo_n "checking whether to try kerberos IV authentication... " >&6; }
3978                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3979 $as_echo "yes" >&6; }
3980                 AUTH_REG="$AUTH_REG kerb4"
3981                 ;;
3982 esac
3983 fi
3984
3985
3986
3987 # Check whether --with-kerb5 was given.
3988 if test "${with_kerb5+set}" = set; then :
3989   withval=$with_kerb5; case $with_kerb5 in
3990     no)         with_kerb5="";;
3991     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
3992 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
3993                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3994 $as_echo "yes" >&6; }
3995                 AUTH_REG="$AUTH_REG kerb5"
3996                 ;;
3997 esac
3998 fi
3999
4000
4001
4002 # Check whether --with-aixauth was given.
4003 if test "${with_aixauth+set}" = set; then :
4004   withval=$with_aixauth; case $with_aixauth in
4005     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4006     no)         ;;
4007     *)          as_fn_error "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4008                 ;;
4009 esac
4010 fi
4011
4012
4013
4014 # Check whether --with-pam was given.
4015 if test "${with_pam+set}" = set; then :
4016   withval=$with_pam; case $with_pam in
4017     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
4018     no)         ;;
4019     *)          as_fn_error "\"--with-pam does not take an argument.\"" "$LINENO" 5
4020                 ;;
4021 esac
4022 fi
4023
4024
4025
4026 # Check whether --with-AFS was given.
4027 if test "${with_AFS+set}" = set; then :
4028   withval=$with_AFS; case $with_AFS in
4029     yes)        $as_echo "#define HAVE_AFS 1" >>confdefs.h
4030
4031                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4032 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4033                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4034 $as_echo "yes" >&6; }
4035                 AUTH_REG="$AUTH_REG AFS"
4036                 ;;
4037     no)         ;;
4038     *)          as_fn_error "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4039                 ;;
4040 esac
4041 fi
4042
4043
4044
4045 # Check whether --with-DCE was given.
4046 if test "${with_DCE+set}" = set; then :
4047   withval=$with_DCE; case $with_DCE in
4048     yes)        $as_echo "#define HAVE_DCE 1" >>confdefs.h
4049
4050                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4051 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4052                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4053 $as_echo "yes" >&6; }
4054                 AUTH_REG="$AUTH_REG DCE"
4055                 ;;
4056     no)         ;;
4057     *)          as_fn_error "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4058                 ;;
4059 esac
4060 fi
4061
4062
4063
4064 # Check whether --with-logincap was given.
4065 if test "${with_logincap+set}" = set; then :
4066   withval=$with_logincap; case $with_logincap in
4067     yes|no)     ;;
4068     *)          as_fn_error "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4069                 ;;
4070 esac
4071 fi
4072
4073
4074
4075 # Check whether --with-bsdauth was given.
4076 if test "${with_bsdauth+set}" = set; then :
4077   withval=$with_bsdauth; case $with_bsdauth in
4078     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4079     no)         ;;
4080     *)          as_fn_error "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4081                 ;;
4082 esac
4083 fi
4084
4085
4086
4087 # Check whether --with-project was given.
4088 if test "${with_project+set}" = set; then :
4089   withval=$with_project; case $with_project in
4090     yes|no)     ;;
4091     no) ;;
4092     *)          as_fn_error "\"--with-project does not take an argument.\"" "$LINENO" 5
4093                 ;;
4094 esac
4095 fi
4096
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4099 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4100
4101 # Check whether --with-lecture was given.
4102 if test "${with_lecture+set}" = set; then :
4103   withval=$with_lecture; case $with_lecture in
4104     yes|short|always)   lecture=once
4105                 ;;
4106     no|none|never)      lecture=never
4107                 ;;
4108     *)          as_fn_error "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4109                 ;;
4110 esac
4111 fi
4112
4113 if test "$lecture" = "once"; then
4114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4115 $as_echo "yes" >&6; }
4116 else
4117     $as_echo "#define NO_LECTURE 1" >>confdefs.h
4118
4119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 fi
4122
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4124 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4125
4126 # Check whether --with-logging was given.
4127 if test "${with_logging+set}" = set; then :
4128   withval=$with_logging; case $with_logging in
4129     yes)        as_fn_error "\"must give --with-logging an argument.\"" "$LINENO" 5
4130                 ;;
4131     no)         as_fn_error "\"--without-logging not supported.\"" "$LINENO" 5
4132                 ;;
4133     syslog)     $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4134
4135                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4136 $as_echo "syslog" >&6; }
4137                 ;;
4138     file)       $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4139
4140                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4141 $as_echo "file" >&6; }
4142                 ;;
4143     both)       $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4144
4145                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4146 $as_echo "both" >&6; }
4147                 ;;
4148     *)          as_fn_error "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4149                 ;;
4150 esac
4151 else
4152   $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4154 $as_echo "syslog" >&6; }
4155 fi
4156
4157
4158
4159 # Check whether --with-logfac was given.
4160 if test "${with_logfac+set}" = set; then :
4161   withval=$with_logfac; case $with_logfac in
4162     yes)        as_fn_error "\"must give --with-logfac an argument.\"" "$LINENO" 5
4163                 ;;
4164     no)         as_fn_error "\"--without-logfac not supported.\"" "$LINENO" 5
4165                 ;;
4166     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
4167                 ;;
4168     *)          as_fn_error "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4169                 ;;
4170 esac
4171 fi
4172
4173
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4175 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4176
4177 # Check whether --with-goodpri was given.
4178 if test "${with_goodpri+set}" = set; then :
4179   withval=$with_goodpri; case $with_goodpri in
4180     yes)        as_fn_error "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4181                 ;;
4182     no)         as_fn_error "\"--without-goodpri not supported.\"" "$LINENO" 5
4183                 ;;
4184     alert|crit|debug|emerg|err|info|notice|warning)
4185                 goodpri=$with_goodpri
4186                 ;;
4187     *)          as_fn_error "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4188                 ;;
4189 esac
4190 fi
4191
4192
4193 cat >>confdefs.h <<_ACEOF
4194 #define PRI_SUCCESS "$goodpri"
4195 _ACEOF
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4198 $as_echo "$goodpri" >&6; }
4199
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4201 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4202
4203 # Check whether --with-badpri was given.
4204 if test "${with_badpri+set}" = set; then :
4205   withval=$with_badpri; case $with_badpri in
4206     yes)        as_fn_error "\"must give --with-badpri an argument.\"" "$LINENO" 5
4207                 ;;
4208     no)         as_fn_error "\"--without-badpri not supported.\"" "$LINENO" 5
4209                 ;;
4210     alert|crit|debug|emerg|err|info|notice|warning)
4211                 badpri=$with_badpri
4212                 ;;
4213     *)          as_fn_error "$with_badpri is not a supported syslog priority." "$LINENO" 5
4214                 ;;
4215 esac
4216 fi
4217
4218
4219 cat >>confdefs.h <<_ACEOF
4220 #define PRI_FAILURE "$badpri"
4221 _ACEOF
4222
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4224 $as_echo "$badpri" >&6; }
4225
4226
4227 # Check whether --with-logpath was given.
4228 if test "${with_logpath+set}" = set; then :
4229   withval=$with_logpath; case $with_logpath in
4230     yes)        as_fn_error "\"must give --with-logpath an argument.\"" "$LINENO" 5
4231                 ;;
4232     no)         as_fn_error "\"--without-logpath not supported.\"" "$LINENO" 5
4233                 ;;
4234 esac
4235 fi
4236
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4239 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4240
4241 # Check whether --with-loglen was given.
4242 if test "${with_loglen+set}" = set; then :
4243   withval=$with_loglen; case $with_loglen in
4244     yes)        as_fn_error "\"must give --with-loglen an argument.\"" "$LINENO" 5
4245                 ;;
4246     no)         as_fn_error "\"--without-loglen not supported.\"" "$LINENO" 5
4247                 ;;
4248     [0-9]*)     loglen=$with_loglen
4249                 ;;
4250     *)          as_fn_error "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4251                 ;;
4252 esac
4253 fi
4254
4255
4256 cat >>confdefs.h <<_ACEOF
4257 #define MAXLOGFILELEN $loglen
4258 _ACEOF
4259
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4261 $as_echo "$loglen" >&6; }
4262
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4264 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4265
4266 # Check whether --with-ignore-dot was given.
4267 if test "${with_ignore_dot+set}" = set; then :
4268   withval=$with_ignore_dot; case $with_ignore_dot in
4269     yes)        ignore_dot=on
4270                 ;;
4271     no)         ignore_dot=off
4272                 ;;
4273     *)          as_fn_error "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4274                 ;;
4275 esac
4276 fi
4277
4278 if test "$ignore_dot" = "on"; then
4279     $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4280
4281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4282 $as_echo "yes" >&6; }
4283 else
4284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4286 fi
4287
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4289 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4290
4291 # Check whether --with-mail-if-no-user was given.
4292 if test "${with_mail_if_no_user+set}" = set; then :
4293   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4294     yes)        mail_no_user=on
4295                 ;;
4296     no)         mail_no_user=off
4297                 ;;
4298     *)          as_fn_error "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4299                 ;;
4300 esac
4301 fi
4302
4303 if test "$mail_no_user" = "on"; then
4304     $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4305
4306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4307 $as_echo "yes" >&6; }
4308 else
4309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4314 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4315
4316 # Check whether --with-mail-if-no-host was given.
4317 if test "${with_mail_if_no_host+set}" = set; then :
4318   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4319     yes)        mail_no_host=on
4320                 ;;
4321     no)         mail_no_host=off
4322                 ;;
4323     *)          as_fn_error "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4324                 ;;
4325 esac
4326 fi
4327
4328 if test "$mail_no_host" = "on"; then
4329     $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4330
4331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4332 $as_echo "yes" >&6; }
4333 else
4334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4336 fi
4337
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4339 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4340
4341 # Check whether --with-mail-if-noperms was given.
4342 if test "${with_mail_if_noperms+set}" = set; then :
4343   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4344     yes)        mail_noperms=on
4345                 ;;
4346     no)         mail_noperms=off
4347                 ;;
4348     *)          as_fn_error "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4349                 ;;
4350 esac
4351 fi
4352
4353 if test "$mail_noperms" = "on"; then
4354     $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4355
4356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4357 $as_echo "yes" >&6; }
4358 else
4359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 fi
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4364 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4365
4366 # Check whether --with-mailto was given.
4367 if test "${with_mailto+set}" = set; then :
4368   withval=$with_mailto; case $with_mailto in
4369     yes)        as_fn_error "\"must give --with-mailto an argument.\"" "$LINENO" 5
4370                 ;;
4371     no)         as_fn_error "\"--without-mailto not supported.\"" "$LINENO" 5
4372                 ;;
4373     *)          mailto=$with_mailto
4374                 ;;
4375 esac
4376 fi
4377
4378
4379 cat >>confdefs.h <<_ACEOF
4380 #define MAILTO "$mailto"
4381 _ACEOF
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4384 $as_echo "$mailto" >&6; }
4385
4386
4387 # Check whether --with-mailsubject was given.
4388 if test "${with_mailsubject+set}" = set; then :
4389   withval=$with_mailsubject; case $with_mailsubject in
4390     yes)        as_fn_error "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4391                 ;;
4392     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4393 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4394                 ;;
4395     *)          mailsub="$with_mailsubject"
4396                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4397 $as_echo_n "checking sudo mail subject... " >&6; }
4398                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4399 $as_echo "Using alert mail subject: $mailsub" >&6; }
4400                 ;;
4401 esac
4402 fi
4403
4404
4405 cat >>confdefs.h <<_ACEOF
4406 #define MAILSUBJECT "$mailsub"
4407 _ACEOF
4408
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4411 $as_echo_n "checking for bad password prompt... " >&6; }
4412
4413 # Check whether --with-passprompt was given.
4414 if test "${with_passprompt+set}" = set; then :
4415   withval=$with_passprompt; case $with_passprompt in
4416     yes)        as_fn_error "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4417                 ;;
4418     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4419 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4420                 ;;
4421     *)          passprompt="$with_passprompt"
4422 esac
4423 fi
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4426 $as_echo "$passprompt" >&6; }
4427
4428 cat >>confdefs.h <<_ACEOF
4429 #define PASSPROMPT "$passprompt"
4430 _ACEOF
4431
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4434 $as_echo_n "checking for bad password message... " >&6; }
4435
4436 # Check whether --with-badpass-message was given.
4437 if test "${with_badpass_message+set}" = set; then :
4438   withval=$with_badpass_message; case $with_badpass_message in
4439     yes)        as_fn_error "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4440                 ;;
4441     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4442 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4443                 ;;
4444     *)          badpass_message="$with_badpass_message"
4445                 ;;
4446 esac
4447 fi
4448
4449
4450 cat >>confdefs.h <<_ACEOF
4451 #define INCORRECT_PASSWORD "$badpass_message"
4452 _ACEOF
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4455 $as_echo "$badpass_message" >&6; }
4456
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4458 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4459
4460 # Check whether --with-fqdn was given.
4461 if test "${with_fqdn+set}" = set; then :
4462   withval=$with_fqdn; case $with_fqdn in
4463     yes)        fqdn=on
4464                 ;;
4465     no)         fqdn=off
4466                 ;;
4467     *)          as_fn_error "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4468                 ;;
4469 esac
4470 fi
4471
4472 if test "$fqdn" = "on"; then
4473     $as_echo "#define FQDN 1" >>confdefs.h
4474
4475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4476 $as_echo "yes" >&6; }
4477 else
4478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480 fi
4481
4482
4483 # Check whether --with-timedir was given.
4484 if test "${with_timedir+set}" = set; then :
4485   withval=$with_timedir; case $with_timedir in
4486     yes)        as_fn_error "\"must give --with-timedir an argument.\"" "$LINENO" 5
4487                 ;;
4488     no)         as_fn_error "\"--without-timedir not supported.\"" "$LINENO" 5
4489                 ;;
4490 esac
4491 fi
4492
4493
4494
4495 # Check whether --with-iologdir was given.
4496 if test "${with_iologdir+set}" = set; then :
4497   withval=$with_iologdir; case $with_iologdir in
4498     yes)        ;;
4499     no)         ;;
4500 esac
4501 fi
4502
4503
4504
4505 # Check whether --with-sendmail was given.
4506 if test "${with_sendmail+set}" = set; then :
4507   withval=$with_sendmail; case $with_sendmail in
4508     yes)        with_sendmail=""
4509                 ;;
4510     no)         ;;
4511     *)          cat >>confdefs.h <<EOF
4512 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4513 EOF
4514
4515                 ;;
4516 esac
4517 fi
4518
4519
4520
4521 # Check whether --with-sudoers-mode was given.
4522 if test "${with_sudoers_mode+set}" = set; then :
4523   withval=$with_sudoers_mode; case $with_sudoers_mode in
4524     yes)        as_fn_error "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4525                 ;;
4526     no)         as_fn_error "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4527                 ;;
4528     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
4529                 ;;
4530     0*)         SUDOERS_MODE=$with_sudoers_mode
4531                 ;;
4532     *)          as_fn_error "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4533                 ;;
4534 esac
4535 fi
4536
4537
4538
4539 # Check whether --with-sudoers-uid was given.
4540 if test "${with_sudoers_uid+set}" = set; then :
4541   withval=$with_sudoers_uid; case $with_sudoers_uid in
4542     yes)        as_fn_error "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4543                 ;;
4544     no)         as_fn_error "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4545                 ;;
4546     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
4547                 ;;
4548     *)          as_fn_error "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4549                 ;;
4550 esac
4551 fi
4552
4553
4554
4555 # Check whether --with-sudoers-gid was given.
4556 if test "${with_sudoers_gid+set}" = set; then :
4557   withval=$with_sudoers_gid; case $with_sudoers_gid in
4558     yes)        as_fn_error "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4559                 ;;
4560     no)         as_fn_error "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4561                 ;;
4562     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
4563                 ;;
4564     *)          as_fn_error "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4565                 ;;
4566 esac
4567 fi
4568
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4571 $as_echo_n "checking for umask programs should be run with... " >&6; }
4572
4573 # Check whether --with-umask was given.
4574 if test "${with_umask+set}" = set; then :
4575   withval=$with_umask; case $with_umask in
4576     yes)        as_fn_error "\"must give --with-umask an argument.\"" "$LINENO" 5
4577                 ;;
4578     no)         sudo_umask=0777
4579                 ;;
4580     [0-9]*)     sudo_umask=$with_umask
4581                 ;;
4582     *)          as_fn_error "\"you must enter a numeric mask.\"" "$LINENO" 5
4583                 ;;
4584 esac
4585 fi
4586
4587
4588 cat >>confdefs.h <<_ACEOF
4589 #define SUDO_UMASK $sudo_umask
4590 _ACEOF
4591
4592 if test "$sudo_umask" = "0777"; then
4593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4594 $as_echo "user" >&6; }
4595 else
4596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4597 $as_echo "$sudo_umask" >&6; }
4598 fi
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4601 $as_echo_n "checking for default user to run commands as... " >&6; }
4602
4603 # Check whether --with-runas-default was given.
4604 if test "${with_runas_default+set}" = set; then :
4605   withval=$with_runas_default; case $with_runas_default in
4606     yes)        as_fn_error "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4607                 ;;
4608     no)         as_fn_error "\"--without-runas-default not supported.\"" "$LINENO" 5
4609                 ;;
4610     *)          runas_default="$with_runas_default"
4611                 ;;
4612 esac
4613 fi
4614
4615
4616 cat >>confdefs.h <<_ACEOF
4617 #define RUNAS_DEFAULT "$runas_default"
4618 _ACEOF
4619
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4621 $as_echo "$runas_default" >&6; }
4622
4623
4624 # Check whether --with-exempt was given.
4625 if test "${with_exempt+set}" = set; then :
4626   withval=$with_exempt; case $with_exempt in
4627     yes)        as_fn_error "\"must give --with-exempt an argument.\"" "$LINENO" 5
4628                 ;;
4629     no)         as_fn_error "\"--without-exempt not supported.\"" "$LINENO" 5
4630                 ;;
4631     *)
4632 cat >>confdefs.h <<_ACEOF
4633 #define EXEMPTGROUP "$with_exempt"
4634 _ACEOF
4635
4636                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4637 $as_echo_n "checking for group to be exempt from password... " >&6; }
4638                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4639 $as_echo "$with_exempt" >&6; }
4640                 ;;
4641 esac
4642 fi
4643
4644
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4646 $as_echo_n "checking for editor that visudo should use... " >&6; }
4647
4648 # Check whether --with-editor was given.
4649 if test "${with_editor+set}" = set; then :
4650   withval=$with_editor; case $with_editor in
4651     yes)        as_fn_error "\"must give --with-editor an argument.\"" "$LINENO" 5
4652                 ;;
4653     no)         as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4654                 ;;
4655     *)
4656 cat >>confdefs.h <<_ACEOF
4657 #define EDITOR "$with_editor"
4658 _ACEOF
4659
4660                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4661 $as_echo "$with_editor" >&6; }
4662                 editor="$with_editor"
4663                 ;;
4664 esac
4665 else
4666   $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4668 $as_echo "vi" >&6; }
4669 fi
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4673 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4674
4675 # Check whether --with-env-editor was given.
4676 if test "${with_env_editor+set}" = set; then :
4677   withval=$with_env_editor; case $with_env_editor in
4678     yes)        env_editor=on
4679                 ;;
4680     no)         env_editor=off
4681                 ;;
4682     *)          as_fn_error "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4683                 ;;
4684 esac
4685 fi
4686
4687 if test "$env_editor" = "on"; then
4688     $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4689
4690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4691 $as_echo "yes" >&6; }
4692 else
4693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4695 fi
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4698 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4699
4700 # Check whether --with-passwd-tries was given.
4701 if test "${with_passwd_tries+set}" = set; then :
4702   withval=$with_passwd_tries; case $with_passwd_tries in
4703     yes)        ;;
4704     no)         as_fn_error "\"--without-editor not supported.\"" "$LINENO" 5
4705                 ;;
4706     [1-9]*)     passwd_tries=$with_passwd_tries
4707                 ;;
4708     *)          as_fn_error "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4709                 ;;
4710 esac
4711 fi
4712
4713
4714 cat >>confdefs.h <<_ACEOF
4715 #define TRIES_FOR_PASSWORD $passwd_tries
4716 _ACEOF
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4719 $as_echo "$passwd_tries" >&6; }
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4722 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4723
4724 # Check whether --with-timeout was given.
4725 if test "${with_timeout+set}" = set; then :
4726   withval=$with_timeout; case $with_timeout in
4727     yes)        ;;
4728     no)         timeout=0
4729                 ;;
4730     [0-9]*)     timeout=$with_timeout
4731                 ;;
4732     *)          as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4733                 ;;
4734 esac
4735 fi
4736
4737
4738 cat >>confdefs.h <<_ACEOF
4739 #define TIMEOUT $timeout
4740 _ACEOF
4741
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4743 $as_echo "$timeout" >&6; }
4744
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4746 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4747
4748 # Check whether --with-password-timeout was given.
4749 if test "${with_password_timeout+set}" = set; then :
4750   withval=$with_password_timeout; case $with_password_timeout in
4751     yes)        ;;
4752     no)         password_timeout=0
4753                 ;;
4754     [0-9]*)     password_timeout=$with_password_timeout
4755                 ;;
4756     *)          as_fn_error "\"you must enter the numer of minutes.\"" "$LINENO" 5
4757                 ;;
4758 esac
4759 fi
4760
4761
4762 cat >>confdefs.h <<_ACEOF
4763 #define PASSWORD_TIMEOUT $password_timeout
4764 _ACEOF
4765
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4767 $as_echo "$password_timeout" >&6; }
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4770 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4771
4772 # Check whether --with-tty-tickets was given.
4773 if test "${with_tty_tickets+set}" = set; then :
4774   withval=$with_tty_tickets; case $with_tty_tickets in
4775     yes)        tty_tickets=on
4776                 ;;
4777     no)         tty_tickets=off
4778                 ;;
4779     *)          as_fn_error "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4780                 ;;
4781 esac
4782 fi
4783
4784 if test "$tty_tickets" = "off"; then
4785     $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4786
4787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4789 else
4790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4791 $as_echo "yes" >&6; }
4792 fi
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4795 $as_echo_n "checking whether to include insults... " >&6; }
4796
4797 # Check whether --with-insults was given.
4798 if test "${with_insults+set}" = set; then :
4799   withval=$with_insults; case $with_insults in
4800     yes)        insults=on
4801                 with_classic_insults=yes
4802                 with_csops_insults=yes
4803                 ;;
4804     disabled)   insults=off
4805                 with_classic_insults=yes
4806                 with_csops_insults=yes
4807                 ;;
4808     no)         insults=off
4809                 ;;
4810     *)          as_fn_error "\"--with-insults does not take an argument.\"" "$LINENO" 5
4811                 ;;
4812 esac
4813 fi
4814
4815 if test "$insults" = "on"; then
4816     $as_echo "#define USE_INSULTS 1" >>confdefs.h
4817
4818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4819 $as_echo "yes" >&6; }
4820 else
4821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4823 fi
4824
4825
4826 # Check whether --with-all-insults was given.
4827 if test "${with_all_insults+set}" = set; then :
4828   withval=$with_all_insults; case $with_all_insults in
4829     yes)        with_classic_insults=yes
4830                 with_csops_insults=yes
4831                 with_hal_insults=yes
4832                 with_goons_insults=yes
4833                 ;;
4834     no)         ;;
4835     *)          as_fn_error "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
4836                 ;;
4837 esac
4838 fi
4839
4840
4841
4842 # Check whether --with-classic-insults was given.
4843 if test "${with_classic_insults+set}" = set; then :
4844   withval=$with_classic_insults; case $with_classic_insults in
4845     yes)        $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
4846
4847                 ;;
4848     no)         ;;
4849     *)          as_fn_error "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
4850                 ;;
4851 esac
4852 fi
4853
4854
4855
4856 # Check whether --with-csops-insults was given.
4857 if test "${with_csops_insults+set}" = set; then :
4858   withval=$with_csops_insults; case $with_csops_insults in
4859     yes)        $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
4860
4861                 ;;
4862     no)         ;;
4863     *)          as_fn_error "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
4864                 ;;
4865 esac
4866 fi
4867
4868
4869
4870 # Check whether --with-hal-insults was given.
4871 if test "${with_hal_insults+set}" = set; then :
4872   withval=$with_hal_insults; case $with_hal_insults in
4873     yes)        $as_echo "#define HAL_INSULTS 1" >>confdefs.h
4874
4875                 ;;
4876     no)         ;;
4877     *)          as_fn_error "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
4878                 ;;
4879 esac
4880 fi
4881
4882
4883
4884 # Check whether --with-goons-insults was given.
4885 if test "${with_goons_insults+set}" = set; then :
4886   withval=$with_goons_insults; case $with_goons_insults in
4887     yes)        $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
4888
4889                 ;;
4890     no)         ;;
4891     *)          as_fn_error "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
4892                 ;;
4893 esac
4894 fi
4895
4896
4897
4898 # Check whether --with-nsswitch was given.
4899 if test "${with_nsswitch+set}" = set; then :
4900   withval=$with_nsswitch; case $with_nsswitch in
4901     no)         ;;
4902     yes)        with_nsswitch="/etc/nsswitch.conf"
4903                 ;;
4904     *)          ;;
4905 esac
4906 fi
4907
4908
4909
4910 # Check whether --with-ldap was given.
4911 if test "${with_ldap+set}" = set; then :
4912   withval=$with_ldap; case $with_ldap in
4913     no)         ;;
4914     *)          $as_echo "#define HAVE_LDAP 1" >>confdefs.h
4915
4916                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
4917 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
4918                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919 $as_echo "yes" >&6; }
4920                 ;;
4921 esac
4922 fi
4923
4924
4925
4926 # Check whether --with-ldap-conf-file was given.
4927 if test "${with_ldap_conf_file+set}" = set; then :
4928   withval=$with_ldap_conf_file;
4929 fi
4930
4931 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
4932 cat >>confdefs.h <<EOF
4933 #define _PATH_LDAP_CONF "$ldap_conf"
4934 EOF
4935
4936
4937
4938 # Check whether --with-ldap-secret-file was given.
4939 if test "${with_ldap_secret_file+set}" = set; then :
4940   withval=$with_ldap_secret_file;
4941 fi
4942
4943 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
4944 cat >>confdefs.h <<EOF
4945 #define _PATH_LDAP_SECRET "$ldap_secret"
4946 EOF
4947
4948
4949
4950 # Check whether --with-pc-insults was given.
4951 if test "${with_pc_insults+set}" = set; then :
4952   withval=$with_pc_insults; case $with_pc_insults in
4953     yes)        $as_echo "#define PC_INSULTS 1" >>confdefs.h
4954
4955                 ;;
4956     no)         ;;
4957     *)          as_fn_error "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
4958                 ;;
4959 esac
4960 fi
4961
4962
4963 if test "$insults" = "on"; then
4964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
4965 $as_echo_n "checking which insult sets to include... " >&6; }
4966     i=""
4967     test "$with_goons_insults" = "yes" && i="goons ${i}"
4968     test "$with_hal_insults" = "yes" && i="hal ${i}"
4969     test "$with_csops_insults" = "yes" && i="csops ${i}"
4970     test "$with_classic_insults" = "yes" && i="classic ${i}"
4971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
4972 $as_echo "$i" >&6; }
4973 fi
4974
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
4976 $as_echo_n "checking whether to override the user's path... " >&6; }
4977
4978 # Check whether --with-secure-path was given.
4979 if test "${with_secure_path+set}" = set; then :
4980   withval=$with_secure_path; case $with_secure_path in
4981     yes)        with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
4982                 cat >>confdefs.h <<_ACEOF
4983 #define SECURE_PATH "$with_secure_path"
4984 _ACEOF
4985
4986                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
4987 $as_echo "$with_secure_path" >&6; }
4988                 secure_path="set to $with_secure_path"
4989                 ;;
4990     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992                 ;;
4993     *)          cat >>confdefs.h <<_ACEOF
4994 #define SECURE_PATH "$with_secure_path"
4995 _ACEOF
4996
4997                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
4998 $as_echo "$with_secure_path" >&6; }
4999                 secure_path="set to F<$with_secure_path>"
5000                 ;;
5001 esac
5002 else
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5005 fi
5006
5007
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5009 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5010
5011 # Check whether --with-interfaces was given.
5012 if test "${with_interfaces+set}" = set; then :
5013   withval=$with_interfaces; case $with_interfaces in
5014     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5015 $as_echo "yes" >&6; }
5016                 ;;
5017     no)         $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5018
5019                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021                 ;;
5022     *)          as_fn_error "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5023                 ;;
5024 esac
5025 else
5026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5027 $as_echo "yes" >&6; }
5028 fi
5029
5030
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5032 $as_echo_n "checking whether stow should be used... " >&6; }
5033
5034 # Check whether --with-stow was given.
5035 if test "${with_stow+set}" = set; then :
5036   withval=$with_stow; case $with_stow in
5037     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5038 $as_echo "yes" >&6; }
5039                 $as_echo "#define USE_STOW 1" >>confdefs.h
5040
5041                 ;;
5042     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5044                 ;;
5045     *)          as_fn_error "\"--with-stow does not take an argument.\"" "$LINENO" 5
5046                 ;;
5047 esac
5048 else
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5051 fi
5052
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5055 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5056
5057 # Check whether --with-askpass was given.
5058 if test "${with_askpass+set}" = set; then :
5059   withval=$with_askpass; case $with_askpass in
5060     yes)        as_fn_error "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5061                 ;;
5062     no)         ;;
5063     *)          cat >>confdefs.h <<EOF
5064 #define _PATH_SUDO_ASKPASS "$with_askpass"
5065 EOF
5066
5067                 ;;
5068 esac
5069 else
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5072 fi
5073
5074
5075
5076 # Check whether --with-libvas was given.
5077 if test "${with_libvas+set}" = set; then :
5078   withval=$with_libvas; case $with_libvas in
5079     yes)        with_libvas=libvas.so
5080                 ;;
5081     no)         ;;
5082     *)
5083 cat >>confdefs.h <<_ACEOF
5084 #define LIBVAS_SO "$with_libvas"
5085 _ACEOF
5086
5087                 ;;
5088 esac
5089 if test X"$with_libvas" != X"no"; then
5090
5091 cat >>confdefs.h <<_ACEOF
5092 #define LIBVAS_SO "$with_libvas"
5093 _ACEOF
5094
5095     $as_echo "#define USING_NONUNIX_GROUPS 1" >>confdefs.h
5096
5097     COMMON_OBJS="$COMMON_OBJS vasgroups.o"
5098
5099 # Check whether --with-libvas-rpath was given.
5100 if test "${with_libvas_rpath+set}" = set; then :
5101   withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
5102 else
5103   LIBVAS_RPATH=/opt/quest/lib
5104 fi
5105
5106                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
5107 $as_echo_n "checking for main in -ldl... " >&6; }
5108 if test "${ac_cv_lib_dl_main+set}" = set; then :
5109   $as_echo_n "(cached) " >&6
5110 else
5111   ac_check_lib_save_LIBS=$LIBS
5112 LIBS="-ldl  $LIBS"
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h.  */
5115
5116
5117 int
5118 main ()
5119 {
5120 return main ();
5121   ;
5122   return 0;
5123 }
5124 _ACEOF
5125 if ac_fn_c_try_link "$LINENO"; then :
5126   ac_cv_lib_dl_main=yes
5127 else
5128   ac_cv_lib_dl_main=no
5129 fi
5130 rm -f core conftest.err conftest.$ac_objext \
5131     conftest$ac_exeext conftest.$ac_ext
5132 LIBS=$ac_check_lib_save_LIBS
5133 fi
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
5135 $as_echo "$ac_cv_lib_dl_main" >&6; }
5136 if test "x$ac_cv_lib_dl_main" = x""yes; then :
5137   cat >>confdefs.h <<_ACEOF
5138 #define HAVE_LIBDL 1
5139 _ACEOF
5140
5141   LIBS="-ldl $LIBS"
5142
5143 fi
5144
5145 fi
5146
5147 fi
5148
5149
5150
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5152 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5153 # Check whether --enable-authentication was given.
5154 if test "${enable_authentication+set}" = set; then :
5155   enableval=$enable_authentication;  case "$enableval" in
5156     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5157 $as_echo "yes" >&6; }
5158                 ;;
5159     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161                 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5162
5163                 ;;
5164     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5167 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5168                 ;;
5169   esac
5170
5171 else
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5173 $as_echo "yes" >&6; }
5174 fi
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5178 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5179 # Check whether --enable-root-mailer was given.
5180 if test "${enable_root_mailer+set}" = set; then :
5181   enableval=$enable_root_mailer;  case "$enableval" in
5182     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184                 ;;
5185     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5186 $as_echo "yes" >&6; }
5187                 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5188
5189                 ;;
5190     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5193 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5194                 ;;
5195   esac
5196
5197 else
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5200 fi
5201
5202
5203 # Check whether --enable-setreuid was given.
5204 if test "${enable_setreuid+set}" = set; then :
5205   enableval=$enable_setreuid;  case "$enableval" in
5206     no)         SKIP_SETREUID=yes
5207                 ;;
5208     *)          ;;
5209   esac
5210
5211 fi
5212
5213
5214 # Check whether --enable-setresuid was given.
5215 if test "${enable_setresuid+set}" = set; then :
5216   enableval=$enable_setresuid;  case "$enableval" in
5217     no)         SKIP_SETRESUID=yes
5218                 ;;
5219     *)          ;;
5220   esac
5221
5222 fi
5223
5224
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5226 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5227 # Check whether --enable-shadow was given.
5228 if test "${enable_shadow+set}" = set; then :
5229   enableval=$enable_shadow;  case "$enableval" in
5230     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232                 ;;
5233     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5234 $as_echo "yes" >&6; }
5235                 CHECKSHADOW="false"
5236                 ;;
5237     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5240 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5241                 ;;
5242   esac
5243
5244 else
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5247 fi
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5251 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5252 # Check whether --enable-root-sudo was given.
5253 if test "${enable_root_sudo+set}" = set; then :
5254   enableval=$enable_root_sudo;  case "$enableval" in
5255     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5256 $as_echo "yes" >&6; }
5257                 ;;
5258     no)         $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5259
5260                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5262                 root_sudo=off
5263                 ;;
5264     *)          as_fn_error "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5265                 ;;
5266   esac
5267
5268 else
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270 $as_echo "yes" >&6; }
5271 fi
5272
5273
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5275 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5276 # Check whether --enable-log-host was given.
5277 if test "${enable_log_host+set}" = set; then :
5278   enableval=$enable_log_host;  case "$enableval" in
5279     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5280 $as_echo "yes" >&6; }
5281                 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5282
5283                 ;;
5284     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
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-log-host: $enableval" >&5
5290 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $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 to invoke a shell if sudo is given no arguments" >&5
5301 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5302 # Check whether --enable-noargs-shell was given.
5303 if test "${enable_noargs_shell+set}" = set; then :
5304   enableval=$enable_noargs_shell;  case "$enableval" in
5305     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5307                 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5308
5309                 ;;
5310     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312                 ;;
5313     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5316 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5317                 ;;
5318   esac
5319
5320 else
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5323 fi
5324
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5327 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5328 # Check whether --enable-shell-sets-home was given.
5329 if test "${enable_shell_sets_home+set}" = set; then :
5330   enableval=$enable_shell_sets_home;  case "$enableval" in
5331     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5332 $as_echo "yes" >&6; }
5333                 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5334
5335                 ;;
5336     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338                 ;;
5339     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5341                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5342 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5343                 ;;
5344   esac
5345
5346 else
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5353 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5354 # Check whether --enable-path_info was given.
5355 if test "${enable_path_info+set}" = set; then :
5356   enableval=$enable_path_info;  case "$enableval" in
5357     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359                 ;;
5360     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5361 $as_echo "yes" >&6; }
5362                 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5363
5364                 path_info=off
5365                 ;;
5366     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5369 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5370                 ;;
5371   esac
5372
5373 else
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5380 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5381 # Check whether --enable-env_debug was given.
5382 if test "${enable_env_debug+set}" = set; then :
5383   enableval=$enable_env_debug;  case "$enableval" in
5384     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5385 $as_echo "yes" >&6; }
5386                 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5387
5388                 ;;
5389     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391                 ;;
5392     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5395 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5396                 ;;
5397   esac
5398
5399 else
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5404
5405 # Check whether --enable-warnings was given.
5406 if test "${enable_warnings+set}" = set; then :
5407   enableval=$enable_warnings;  case "$enableval" in
5408     yes)    if test X"$with_devel" != X"yes" -a -n "$GCC"; then
5409                 CFLAGS="${CFLAGS} -Wall"
5410             fi
5411             ;;
5412     no)     ;;
5413     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5414 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5415             ;;
5416   esac
5417
5418 fi
5419
5420
5421 # Check whether --enable-admin-flag was given.
5422 if test "${enable_admin_flag+set}" = set; then :
5423   enableval=$enable_admin_flag;  case "$enableval" in
5424     yes)    $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5425
5426             ;;
5427     no)     ;;
5428     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5429 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5430             ;;
5431   esac
5432
5433 fi
5434
5435
5436
5437 # Check whether --with-selinux was given.
5438 if test "${with_selinux+set}" = set; then :
5439   withval=$with_selinux; case $with_selinux in
5440     yes)        SELINUX_USAGE="[-r role] [-t type] "
5441                 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5442
5443                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5444                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5445                 PROGS="${PROGS} sesh"
5446                 SEMAN=1
5447                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5448 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5449 if test "${ac_cv_lib_selinux_setkeycreatecon+set}" = set; then :
5450   $as_echo_n "(cached) " >&6
5451 else
5452   ac_check_lib_save_LIBS=$LIBS
5453 LIBS="-lselinux  $LIBS"
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h.  */
5456
5457 /* Override any GCC internal prototype to avoid an error.
5458    Use char because int might match the return type of a GCC
5459    builtin and then its argument prototype would still apply.  */
5460 #ifdef __cplusplus
5461 extern "C"
5462 #endif
5463 char setkeycreatecon ();
5464 int
5465 main ()
5466 {
5467 return setkeycreatecon ();
5468   ;
5469   return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_c_try_link "$LINENO"; then :
5473   ac_cv_lib_selinux_setkeycreatecon=yes
5474 else
5475   ac_cv_lib_selinux_setkeycreatecon=no
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext \
5478     conftest$ac_exeext conftest.$ac_ext
5479 LIBS=$ac_check_lib_save_LIBS
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5482 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5483 if test "x$ac_cv_lib_selinux_setkeycreatecon" = x""yes; then :
5484   $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5485
5486 fi
5487
5488                 ;;
5489     no)         ;;
5490     *)          as_fn_error "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5491                 ;;
5492 esac
5493 fi
5494
5495
5496 # Check whether --enable-gss_krb5_ccache_name was given.
5497 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5498   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5499 else
5500   check_gss_krb5_ccache_name=no
5501 fi
5502
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5505 $as_echo_n "checking for library containing strerror... " >&6; }
5506 if test "${ac_cv_search_strerror+set}" = set; then :
5507   $as_echo_n "(cached) " >&6
5508 else
5509   ac_func_search_save_LIBS=$LIBS
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h.  */
5512
5513 /* Override any GCC internal prototype to avoid an error.
5514    Use char because int might match the return type of a GCC
5515    builtin and then its argument prototype would still apply.  */
5516 #ifdef __cplusplus
5517 extern "C"
5518 #endif
5519 char strerror ();
5520 int
5521 main ()
5522 {
5523 return strerror ();
5524   ;
5525   return 0;
5526 }
5527 _ACEOF
5528 for ac_lib in '' cposix; do
5529   if test -z "$ac_lib"; then
5530     ac_res="none required"
5531   else
5532     ac_res=-l$ac_lib
5533     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5534   fi
5535   if ac_fn_c_try_link "$LINENO"; then :
5536   ac_cv_search_strerror=$ac_res
5537 fi
5538 rm -f core conftest.err conftest.$ac_objext \
5539     conftest$ac_exeext
5540   if test "${ac_cv_search_strerror+set}" = set; then :
5541   break
5542 fi
5543 done
5544 if test "${ac_cv_search_strerror+set}" = set; then :
5545
5546 else
5547   ac_cv_search_strerror=no
5548 fi
5549 rm conftest.$ac_ext
5550 LIBS=$ac_func_search_save_LIBS
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5553 $as_echo "$ac_cv_search_strerror" >&6; }
5554 ac_res=$ac_cv_search_strerror
5555 if test "$ac_res" != no; then :
5556   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5557
5558 fi
5559
5560 ac_ext=c
5561 ac_cpp='$CPP $CPPFLAGS'
5562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5566 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5567 # On Suns, sometimes $CPP names a directory.
5568 if test -n "$CPP" && test -d "$CPP"; then
5569   CPP=
5570 fi
5571 if test -z "$CPP"; then
5572   if test "${ac_cv_prog_CPP+set}" = set; then :
5573   $as_echo_n "(cached) " >&6
5574 else
5575       # Double quotes because CPP needs to be expanded
5576     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5577     do
5578       ac_preproc_ok=false
5579 for ac_c_preproc_warn_flag in '' yes
5580 do
5581   # Use a header file that comes with gcc, so configuring glibc
5582   # with a fresh cross-compiler works.
5583   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584   # <limits.h> exists even on freestanding compilers.
5585   # On the NeXT, cc -E runs the code through the compiler's parser,
5586   # not just through cpp. "Syntax error" is here to catch this case.
5587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h.  */
5589 #ifdef __STDC__
5590 # include <limits.h>
5591 #else
5592 # include <assert.h>
5593 #endif
5594                      Syntax error
5595 _ACEOF
5596 if ac_fn_c_try_cpp "$LINENO"; then :
5597
5598 else
5599   # Broken: fails on valid input.
5600 continue
5601 fi
5602 rm -f conftest.err conftest.$ac_ext
5603
5604   # OK, works on sane cases.  Now check whether nonexistent headers
5605   # can be detected and how.
5606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h.  */
5608 #include <ac_nonexistent.h>
5609 _ACEOF
5610 if ac_fn_c_try_cpp "$LINENO"; then :
5611   # Broken: success on invalid input.
5612 continue
5613 else
5614   # Passes both tests.
5615 ac_preproc_ok=:
5616 break
5617 fi
5618 rm -f conftest.err conftest.$ac_ext
5619
5620 done
5621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5622 rm -f conftest.err conftest.$ac_ext
5623 if $ac_preproc_ok; then :
5624   break
5625 fi
5626
5627     done
5628     ac_cv_prog_CPP=$CPP
5629
5630 fi
5631   CPP=$ac_cv_prog_CPP
5632 else
5633   ac_cv_prog_CPP=$CPP
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5636 $as_echo "$CPP" >&6; }
5637 ac_preproc_ok=false
5638 for ac_c_preproc_warn_flag in '' yes
5639 do
5640   # Use a header file that comes with gcc, so configuring glibc
5641   # with a fresh cross-compiler works.
5642   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5643   # <limits.h> exists even on freestanding compilers.
5644   # On the NeXT, cc -E runs the code through the compiler's parser,
5645   # not just through cpp. "Syntax error" is here to catch this case.
5646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h.  */
5648 #ifdef __STDC__
5649 # include <limits.h>
5650 #else
5651 # include <assert.h>
5652 #endif
5653                      Syntax error
5654 _ACEOF
5655 if ac_fn_c_try_cpp "$LINENO"; then :
5656
5657 else
5658   # Broken: fails on valid input.
5659 continue
5660 fi
5661 rm -f conftest.err conftest.$ac_ext
5662
5663   # OK, works on sane cases.  Now check whether nonexistent headers
5664   # can be detected and how.
5665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h.  */
5667 #include <ac_nonexistent.h>
5668 _ACEOF
5669 if ac_fn_c_try_cpp "$LINENO"; then :
5670   # Broken: success on invalid input.
5671 continue
5672 else
5673   # Passes both tests.
5674 ac_preproc_ok=:
5675 break
5676 fi
5677 rm -f conftest.err conftest.$ac_ext
5678
5679 done
5680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5681 rm -f conftest.err conftest.$ac_ext
5682 if $ac_preproc_ok; then :
5683
5684 else
5685   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5687 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5688 See \`config.log' for more details." "$LINENO" 5; }
5689 fi
5690
5691 ac_ext=c
5692 ac_cpp='$CPP $CPPFLAGS'
5693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696
5697 if test -n "$ac_tool_prefix"; then
5698   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5699 set dummy ${ac_tool_prefix}ar; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if test "${ac_cv_prog_AR+set}" = set; then :
5703   $as_echo_n "(cached) " >&6
5704 else
5705   if test -n "$AR"; then
5706   ac_cv_prog_AR="$AR" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713     for ac_exec_ext in '' $ac_executable_extensions; do
5714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715     ac_cv_prog_AR="${ac_tool_prefix}ar"
5716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720   done
5721 IFS=$as_save_IFS
5722
5723 fi
5724 fi
5725 AR=$ac_cv_prog_AR
5726 if test -n "$AR"; then
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5728 $as_echo "$AR" >&6; }
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5732 fi
5733
5734
5735 fi
5736 if test -z "$ac_cv_prog_AR"; then
5737   ac_ct_AR=$AR
5738   # Extract the first word of "ar", so it can be a program name with args.
5739 set dummy ar; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5743   $as_echo_n "(cached) " >&6
5744 else
5745   if test -n "$ac_ct_AR"; then
5746   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755     ac_cv_prog_ac_ct_AR="ar"
5756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760   done
5761 IFS=$as_save_IFS
5762
5763 fi
5764 fi
5765 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5766 if test -n "$ac_ct_AR"; then
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5768 $as_echo "$ac_ct_AR" >&6; }
5769 else
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772 fi
5773
5774   if test "x$ac_ct_AR" = x; then
5775     AR="false"
5776   else
5777     case $cross_compiling:$ac_tool_warned in
5778 yes:)
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5781 ac_tool_warned=yes ;;
5782 esac
5783     AR=$ac_ct_AR
5784   fi
5785 else
5786   AR="$ac_cv_prog_AR"
5787 fi
5788
5789 if test -n "$ac_tool_prefix"; then
5790   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5791 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5795   $as_echo_n "(cached) " >&6
5796 else
5797   if test -n "$RANLIB"; then
5798   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803   IFS=$as_save_IFS
5804   test -z "$as_dir" && as_dir=.
5805     for ac_exec_ext in '' $ac_executable_extensions; do
5806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809     break 2
5810   fi
5811 done
5812   done
5813 IFS=$as_save_IFS
5814
5815 fi
5816 fi
5817 RANLIB=$ac_cv_prog_RANLIB
5818 if test -n "$RANLIB"; then
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5820 $as_echo "$RANLIB" >&6; }
5821 else
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5824 fi
5825
5826
5827 fi
5828 if test -z "$ac_cv_prog_RANLIB"; then
5829   ac_ct_RANLIB=$RANLIB
5830   # Extract the first word of "ranlib", so it can be a program name with args.
5831 set dummy ranlib; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   if test -n "$ac_ct_RANLIB"; then
5838   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845     for ac_exec_ext in '' $ac_executable_extensions; do
5846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847     ac_cv_prog_ac_ct_RANLIB="ranlib"
5848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852   done
5853 IFS=$as_save_IFS
5854
5855 fi
5856 fi
5857 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5858 if test -n "$ac_ct_RANLIB"; then
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5860 $as_echo "$ac_ct_RANLIB" >&6; }
5861 else
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 fi
5865
5866   if test "x$ac_ct_RANLIB" = x; then
5867     RANLIB=":"
5868   else
5869     case $cross_compiling:$ac_tool_warned in
5870 yes:)
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5873 ac_tool_warned=yes ;;
5874 esac
5875     RANLIB=$ac_ct_RANLIB
5876   fi
5877 else
5878   RANLIB="$ac_cv_prog_RANLIB"
5879 fi
5880
5881
5882 ac_aux_dir=
5883 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5884   for ac_t in install-sh install.sh shtool; do
5885     if test -f "$ac_dir/$ac_t"; then
5886       ac_aux_dir=$ac_dir
5887       ac_install_sh="$ac_aux_dir/$ac_t -c"
5888       break 2
5889     fi
5890   done
5891 done
5892 if test -z "$ac_aux_dir"; then
5893   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5894 fi
5895
5896 # These three variables are undocumented and unsupported,
5897 # and are intended to be withdrawn in a future Autoconf release.
5898 # They can cause serious problems if a builder's source tree is in a directory
5899 # whose full name contains unusual characters.
5900 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5901 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5902 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5903
5904
5905 # Make sure we can run config.sub.
5906 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5907   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5910 $as_echo_n "checking build system type... " >&6; }
5911 if test "${ac_cv_build+set}" = set; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   ac_build_alias=$build_alias
5915 test "x$ac_build_alias" = x &&
5916   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5917 test "x$ac_build_alias" = x &&
5918   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5919 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5920   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5921
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5924 $as_echo "$ac_cv_build" >&6; }
5925 case $ac_cv_build in
5926 *-*-*) ;;
5927 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5928 esac
5929 build=$ac_cv_build
5930 ac_save_IFS=$IFS; IFS='-'
5931 set x $ac_cv_build
5932 shift
5933 build_cpu=$1
5934 build_vendor=$2
5935 shift; shift
5936 # Remember, the first character of IFS is used to create $*,
5937 # except with old shells:
5938 build_os=$*
5939 IFS=$ac_save_IFS
5940 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5944 $as_echo_n "checking host system type... " >&6; }
5945 if test "${ac_cv_host+set}" = set; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   if test "x$host_alias" = x; then
5949   ac_cv_host=$ac_cv_build
5950 else
5951   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5952     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5953 fi
5954
5955 fi
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5957 $as_echo "$ac_cv_host" >&6; }
5958 case $ac_cv_host in
5959 *-*-*) ;;
5960 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5961 esac
5962 host=$ac_cv_host
5963 ac_save_IFS=$IFS; IFS='-'
5964 set x $ac_cv_host
5965 shift
5966 host_cpu=$1
5967 host_vendor=$2
5968 shift; shift
5969 # Remember, the first character of IFS is used to create $*,
5970 # except with old shells:
5971 host_os=$*
5972 IFS=$ac_save_IFS
5973 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5974
5975
5976
5977
5978 case `pwd` in
5979   *\ * | *\     *)
5980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5981 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5982 esac
5983
5984
5985
5986 macro_version='2.2.6b'
5987 macro_revision='1.3017'
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001 ltmain="$ac_aux_dir/ltmain.sh"
6002
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6004 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6005 if test "${ac_cv_path_SED+set}" = set; then :
6006   $as_echo_n "(cached) " >&6
6007 else
6008             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6009      for ac_i in 1 2 3 4 5 6 7; do
6010        ac_script="$ac_script$as_nl$ac_script"
6011      done
6012      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6013      { ac_script=; unset ac_script;}
6014      if test -z "$SED"; then
6015   ac_path_SED_found=false
6016   # Loop through the user's path and test for each of PROGNAME-LIST
6017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022     for ac_prog in sed gsed; do
6023     for ac_exec_ext in '' $ac_executable_extensions; do
6024       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6025       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6026 # Check for GNU ac_path_SED and select it if it is found.
6027   # Check for GNU $ac_path_SED
6028 case `"$ac_path_SED" --version 2>&1` in
6029 *GNU*)
6030   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6031 *)
6032   ac_count=0
6033   $as_echo_n 0123456789 >"conftest.in"
6034   while :
6035   do
6036     cat "conftest.in" "conftest.in" >"conftest.tmp"
6037     mv "conftest.tmp" "conftest.in"
6038     cp "conftest.in" "conftest.nl"
6039     $as_echo '' >> "conftest.nl"
6040     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6041     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6042     as_fn_arith $ac_count + 1 && ac_count=$as_val
6043     if test $ac_count -gt ${ac_path_SED_max-0}; then
6044       # Best one so far, save it but keep looking for a better one
6045       ac_cv_path_SED="$ac_path_SED"
6046       ac_path_SED_max=$ac_count
6047     fi
6048     # 10*(2^10) chars as input seems more than enough
6049     test $ac_count -gt 10 && break
6050   done
6051   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6052 esac
6053
6054       $ac_path_SED_found && break 3
6055     done
6056   done
6057   done
6058 IFS=$as_save_IFS
6059   if test -z "$ac_cv_path_SED"; then
6060     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6061   fi
6062 else
6063   ac_cv_path_SED=$SED
6064 fi
6065
6066 fi
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6068 $as_echo "$ac_cv_path_SED" >&6; }
6069  SED="$ac_cv_path_SED"
6070   rm -f conftest.sed
6071
6072 test -z "$SED" && SED=sed
6073 Xsed="$SED -e 1s/^X//"
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6086 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6087 if test "${ac_cv_path_GREP+set}" = set; then :
6088   $as_echo_n "(cached) " >&6
6089 else
6090   if test -z "$GREP"; then
6091   ac_path_GREP_found=false
6092   # Loop through the user's path and test for each of PROGNAME-LIST
6093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6095 do
6096   IFS=$as_save_IFS
6097   test -z "$as_dir" && as_dir=.
6098     for ac_prog in grep ggrep; do
6099     for ac_exec_ext in '' $ac_executable_extensions; do
6100       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6101       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6102 # Check for GNU ac_path_GREP and select it if it is found.
6103   # Check for GNU $ac_path_GREP
6104 case `"$ac_path_GREP" --version 2>&1` in
6105 *GNU*)
6106   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6107 *)
6108   ac_count=0
6109   $as_echo_n 0123456789 >"conftest.in"
6110   while :
6111   do
6112     cat "conftest.in" "conftest.in" >"conftest.tmp"
6113     mv "conftest.tmp" "conftest.in"
6114     cp "conftest.in" "conftest.nl"
6115     $as_echo 'GREP' >> "conftest.nl"
6116     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6117     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6118     as_fn_arith $ac_count + 1 && ac_count=$as_val
6119     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6120       # Best one so far, save it but keep looking for a better one
6121       ac_cv_path_GREP="$ac_path_GREP"
6122       ac_path_GREP_max=$ac_count
6123     fi
6124     # 10*(2^10) chars as input seems more than enough
6125     test $ac_count -gt 10 && break
6126   done
6127   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6128 esac
6129
6130       $ac_path_GREP_found && break 3
6131     done
6132   done
6133   done
6134 IFS=$as_save_IFS
6135   if test -z "$ac_cv_path_GREP"; then
6136     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6137   fi
6138 else
6139   ac_cv_path_GREP=$GREP
6140 fi
6141
6142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6144 $as_echo "$ac_cv_path_GREP" >&6; }
6145  GREP="$ac_cv_path_GREP"
6146
6147
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6149 $as_echo_n "checking for egrep... " >&6; }
6150 if test "${ac_cv_path_EGREP+set}" = set; then :
6151   $as_echo_n "(cached) " >&6
6152 else
6153   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6154    then ac_cv_path_EGREP="$GREP -E"
6155    else
6156      if test -z "$EGREP"; then
6157   ac_path_EGREP_found=false
6158   # Loop through the user's path and test for each of PROGNAME-LIST
6159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164     for ac_prog in egrep; do
6165     for ac_exec_ext in '' $ac_executable_extensions; do
6166       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6167       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6168 # Check for GNU ac_path_EGREP and select it if it is found.
6169   # Check for GNU $ac_path_EGREP
6170 case `"$ac_path_EGREP" --version 2>&1` in
6171 *GNU*)
6172   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6173 *)
6174   ac_count=0
6175   $as_echo_n 0123456789 >"conftest.in"
6176   while :
6177   do
6178     cat "conftest.in" "conftest.in" >"conftest.tmp"
6179     mv "conftest.tmp" "conftest.in"
6180     cp "conftest.in" "conftest.nl"
6181     $as_echo 'EGREP' >> "conftest.nl"
6182     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6183     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6184     as_fn_arith $ac_count + 1 && ac_count=$as_val
6185     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6186       # Best one so far, save it but keep looking for a better one
6187       ac_cv_path_EGREP="$ac_path_EGREP"
6188       ac_path_EGREP_max=$ac_count
6189     fi
6190     # 10*(2^10) chars as input seems more than enough
6191     test $ac_count -gt 10 && break
6192   done
6193   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6194 esac
6195
6196       $ac_path_EGREP_found && break 3
6197     done
6198   done
6199   done
6200 IFS=$as_save_IFS
6201   if test -z "$ac_cv_path_EGREP"; then
6202     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6203   fi
6204 else
6205   ac_cv_path_EGREP=$EGREP
6206 fi
6207
6208    fi
6209 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6211 $as_echo "$ac_cv_path_EGREP" >&6; }
6212  EGREP="$ac_cv_path_EGREP"
6213
6214
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6216 $as_echo_n "checking for fgrep... " >&6; }
6217 if test "${ac_cv_path_FGREP+set}" = set; then :
6218   $as_echo_n "(cached) " >&6
6219 else
6220   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6221    then ac_cv_path_FGREP="$GREP -F"
6222    else
6223      if test -z "$FGREP"; then
6224   ac_path_FGREP_found=false
6225   # Loop through the user's path and test for each of PROGNAME-LIST
6226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6228 do
6229   IFS=$as_save_IFS
6230   test -z "$as_dir" && as_dir=.
6231     for ac_prog in fgrep; do
6232     for ac_exec_ext in '' $ac_executable_extensions; do
6233       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6234       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6235 # Check for GNU ac_path_FGREP and select it if it is found.
6236   # Check for GNU $ac_path_FGREP
6237 case `"$ac_path_FGREP" --version 2>&1` in
6238 *GNU*)
6239   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6240 *)
6241   ac_count=0
6242   $as_echo_n 0123456789 >"conftest.in"
6243   while :
6244   do
6245     cat "conftest.in" "conftest.in" >"conftest.tmp"
6246     mv "conftest.tmp" "conftest.in"
6247     cp "conftest.in" "conftest.nl"
6248     $as_echo 'FGREP' >> "conftest.nl"
6249     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6250     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6251     as_fn_arith $ac_count + 1 && ac_count=$as_val
6252     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6253       # Best one so far, save it but keep looking for a better one
6254       ac_cv_path_FGREP="$ac_path_FGREP"
6255       ac_path_FGREP_max=$ac_count
6256     fi
6257     # 10*(2^10) chars as input seems more than enough
6258     test $ac_count -gt 10 && break
6259   done
6260   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6261 esac
6262
6263       $ac_path_FGREP_found && break 3
6264     done
6265   done
6266   done
6267 IFS=$as_save_IFS
6268   if test -z "$ac_cv_path_FGREP"; then
6269     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6270   fi
6271 else
6272   ac_cv_path_FGREP=$FGREP
6273 fi
6274
6275    fi
6276 fi
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6278 $as_echo "$ac_cv_path_FGREP" >&6; }
6279  FGREP="$ac_cv_path_FGREP"
6280
6281
6282 test -z "$GREP" && GREP=grep
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 # Check whether --with-gnu-ld was given.
6303 if test "${with_gnu_ld+set}" = set; then :
6304   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6305 else
6306   with_gnu_ld=no
6307 fi
6308
6309 ac_prog=ld
6310 if test "$GCC" = yes; then
6311   # Check if gcc -print-prog-name=ld gives a path.
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6313 $as_echo_n "checking for ld used by $CC... " >&6; }
6314   case $host in
6315   *-*-mingw*)
6316     # gcc leaves a trailing carriage return which upsets mingw
6317     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6318   *)
6319     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6320   esac
6321   case $ac_prog in
6322     # Accept absolute paths.
6323     [\\/]* | ?:[\\/]*)
6324       re_direlt='/[^/][^/]*/\.\./'
6325       # Canonicalize the pathname of ld
6326       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6327       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6328         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6329       done
6330       test -z "$LD" && LD="$ac_prog"
6331       ;;
6332   "")
6333     # If it fails, then pretend we aren't using GCC.
6334     ac_prog=ld
6335     ;;
6336   *)
6337     # If it is relative, then search for the first ld in PATH.
6338     with_gnu_ld=unknown
6339     ;;
6340   esac
6341 elif test "$with_gnu_ld" = yes; then
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6343 $as_echo_n "checking for GNU ld... " >&6; }
6344 else
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6346 $as_echo_n "checking for non-GNU ld... " >&6; }
6347 fi
6348 if test "${lt_cv_path_LD+set}" = set; then :
6349   $as_echo_n "(cached) " >&6
6350 else
6351   if test -z "$LD"; then
6352   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6353   for ac_dir in $PATH; do
6354     IFS="$lt_save_ifs"
6355     test -z "$ac_dir" && ac_dir=.
6356     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6357       lt_cv_path_LD="$ac_dir/$ac_prog"
6358       # Check to see if the program is GNU ld.  I'd rather use --version,
6359       # but apparently some variants of GNU ld only accept -v.
6360       # Break only if it was the GNU/non-GNU ld that we prefer.
6361       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6362       *GNU* | *'with BFD'*)
6363         test "$with_gnu_ld" != no && break
6364         ;;
6365       *)
6366         test "$with_gnu_ld" != yes && break
6367         ;;
6368       esac
6369     fi
6370   done
6371   IFS="$lt_save_ifs"
6372 else
6373   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6374 fi
6375 fi
6376
6377 LD="$lt_cv_path_LD"
6378 if test -n "$LD"; then
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6380 $as_echo "$LD" >&6; }
6381 else
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6387 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6388 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6389   $as_echo_n "(cached) " >&6
6390 else
6391   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6392 case `$LD -v 2>&1 </dev/null` in
6393 *GNU* | *'with BFD'*)
6394   lt_cv_prog_gnu_ld=yes
6395   ;;
6396 *)
6397   lt_cv_prog_gnu_ld=no
6398   ;;
6399 esac
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6402 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6403 with_gnu_ld=$lt_cv_prog_gnu_ld
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6414 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6415 if test "${lt_cv_path_NM+set}" = set; then :
6416   $as_echo_n "(cached) " >&6
6417 else
6418   if test -n "$NM"; then
6419   # Let the user override the test.
6420   lt_cv_path_NM="$NM"
6421 else
6422   lt_nm_to_check="${ac_tool_prefix}nm"
6423   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6424     lt_nm_to_check="$lt_nm_to_check nm"
6425   fi
6426   for lt_tmp_nm in $lt_nm_to_check; do
6427     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6428     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6429       IFS="$lt_save_ifs"
6430       test -z "$ac_dir" && ac_dir=.
6431       tmp_nm="$ac_dir/$lt_tmp_nm"
6432       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6433         # Check to see if the nm accepts a BSD-compat flag.
6434         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6435         #   nm: unknown option "B" ignored
6436         # Tru64's nm complains that /dev/null is an invalid object file
6437         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6438         */dev/null* | *'Invalid file or object type'*)
6439           lt_cv_path_NM="$tmp_nm -B"
6440           break
6441           ;;
6442         *)
6443           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6444           */dev/null*)
6445             lt_cv_path_NM="$tmp_nm -p"
6446             break
6447             ;;
6448           *)
6449             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6450             continue # so that we can try to find one that supports BSD flags
6451             ;;
6452           esac
6453           ;;
6454         esac
6455       fi
6456     done
6457     IFS="$lt_save_ifs"
6458   done
6459   : ${lt_cv_path_NM=no}
6460 fi
6461 fi
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6463 $as_echo "$lt_cv_path_NM" >&6; }
6464 if test "$lt_cv_path_NM" != "no"; then
6465   NM="$lt_cv_path_NM"
6466 else
6467   # Didn't find any BSD compatible name lister, look for dumpbin.
6468   if test -n "$ac_tool_prefix"; then
6469   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6470   do
6471     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   if test -n "$DUMPBIN"; then
6479   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486     for ac_exec_ext in '' $ac_executable_extensions; do
6487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493   done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 DUMPBIN=$ac_cv_prog_DUMPBIN
6499 if test -n "$DUMPBIN"; then
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6501 $as_echo "$DUMPBIN" >&6; }
6502 else
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507
6508     test -n "$DUMPBIN" && break
6509   done
6510 fi
6511 if test -z "$DUMPBIN"; then
6512   ac_ct_DUMPBIN=$DUMPBIN
6513   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6514 do
6515   # Extract the first word of "$ac_prog", so it can be a program name with args.
6516 set dummy $ac_prog; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6520   $as_echo_n "(cached) " >&6
6521 else
6522   if test -n "$ac_ct_DUMPBIN"; then
6523   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530     for ac_exec_ext in '' $ac_executable_extensions; do
6531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537   done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
6542 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6543 if test -n "$ac_ct_DUMPBIN"; then
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6545 $as_echo "$ac_ct_DUMPBIN" >&6; }
6546 else
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550
6551
6552   test -n "$ac_ct_DUMPBIN" && break
6553 done
6554
6555   if test "x$ac_ct_DUMPBIN" = x; then
6556     DUMPBIN=":"
6557   else
6558     case $cross_compiling:$ac_tool_warned in
6559 yes:)
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6563 esac
6564     DUMPBIN=$ac_ct_DUMPBIN
6565   fi
6566 fi
6567
6568
6569   if test "$DUMPBIN" != ":"; then
6570     NM="$DUMPBIN"
6571   fi
6572 fi
6573 test -z "$NM" && NM=nm
6574
6575
6576
6577
6578
6579
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6581 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6582 if test "${lt_cv_nm_interface+set}" = set; then :
6583   $as_echo_n "(cached) " >&6
6584 else
6585   lt_cv_nm_interface="BSD nm"
6586   echo "int some_variable = 0;" > conftest.$ac_ext
6587   (eval echo "\"\$as_me:6587: $ac_compile\"" >&5)
6588   (eval "$ac_compile" 2>conftest.err)
6589   cat conftest.err >&5
6590   (eval echo "\"\$as_me:6590: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6591   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6592   cat conftest.err >&5
6593   (eval echo "\"\$as_me:6593: output\"" >&5)
6594   cat conftest.out >&5
6595   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6596     lt_cv_nm_interface="MS dumpbin"
6597   fi
6598   rm -f conftest*
6599 fi
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6601 $as_echo "$lt_cv_nm_interface" >&6; }
6602
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6604 $as_echo_n "checking whether ln -s works... " >&6; }
6605 LN_S=$as_ln_s
6606 if test "$LN_S" = "ln -s"; then
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6608 $as_echo "yes" >&6; }
6609 else
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6611 $as_echo "no, using $LN_S" >&6; }
6612 fi
6613
6614 # find the maximum length of command line arguments
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6616 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6617 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6618   $as_echo_n "(cached) " >&6
6619 else
6620     i=0
6621   teststring="ABCD"
6622
6623   case $build_os in
6624   msdosdjgpp*)
6625     # On DJGPP, this test can blow up pretty badly due to problems in libc
6626     # (any single argument exceeding 2000 bytes causes a buffer overrun
6627     # during glob expansion).  Even if it were fixed, the result of this
6628     # check would be larger than it should be.
6629     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6630     ;;
6631
6632   gnu*)
6633     # Under GNU Hurd, this test is not required because there is
6634     # no limit to the length of command line arguments.
6635     # Libtool will interpret -1 as no limit whatsoever
6636     lt_cv_sys_max_cmd_len=-1;
6637     ;;
6638
6639   cygwin* | mingw* | cegcc*)
6640     # On Win9x/ME, this test blows up -- it succeeds, but takes
6641     # about 5 minutes as the teststring grows exponentially.
6642     # Worse, since 9x/ME are not pre-emptively multitasking,
6643     # you end up with a "frozen" computer, even though with patience
6644     # the test eventually succeeds (with a max line length of 256k).
6645     # Instead, let's just punt: use the minimum linelength reported by
6646     # all of the supported platforms: 8192 (on NT/2K/XP).
6647     lt_cv_sys_max_cmd_len=8192;
6648     ;;
6649
6650   amigaos*)
6651     # On AmigaOS with pdksh, this test takes hours, literally.
6652     # So we just punt and use a minimum line length of 8192.
6653     lt_cv_sys_max_cmd_len=8192;
6654     ;;
6655
6656   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6657     # This has been around since 386BSD, at least.  Likely further.
6658     if test -x /sbin/sysctl; then
6659       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6660     elif test -x /usr/sbin/sysctl; then
6661       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6662     else
6663       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6664     fi
6665     # And add a safety zone
6666     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6667     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6668     ;;
6669
6670   interix*)
6671     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6672     lt_cv_sys_max_cmd_len=196608
6673     ;;
6674
6675   osf*)
6676     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6677     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6678     # nice to cause kernel panics so lets avoid the loop below.
6679     # First set a reasonable default.
6680     lt_cv_sys_max_cmd_len=16384
6681     #
6682     if test -x /sbin/sysconfig; then
6683       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6684         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6685       esac
6686     fi
6687     ;;
6688   sco3.2v5*)
6689     lt_cv_sys_max_cmd_len=102400
6690     ;;
6691   sysv5* | sco5v6* | sysv4.2uw2*)
6692     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6693     if test -n "$kargmax"; then
6694       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6695     else
6696       lt_cv_sys_max_cmd_len=32768
6697     fi
6698     ;;
6699   *)
6700     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6701     if test -n "$lt_cv_sys_max_cmd_len"; then
6702       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6703       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6704     else
6705       # Make teststring a little bigger before we do anything with it.
6706       # a 1K string should be a reasonable start.
6707       for i in 1 2 3 4 5 6 7 8 ; do
6708         teststring=$teststring$teststring
6709       done
6710       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6711       # If test is not a shell built-in, we'll probably end up computing a
6712       # maximum length that is only half of the actual maximum length, but
6713       # we can't tell.
6714       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6715                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6716               test $i != 17 # 1/2 MB should be enough
6717       do
6718         i=`expr $i + 1`
6719         teststring=$teststring$teststring
6720       done
6721       # Only check the string length outside the loop.
6722       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6723       teststring=
6724       # Add a significant safety factor because C++ compilers can tack on
6725       # massive amounts of additional arguments before passing them to the
6726       # linker.  It appears as though 1/2 is a usable value.
6727       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6728     fi
6729     ;;
6730   esac
6731
6732 fi
6733
6734 if test -n $lt_cv_sys_max_cmd_len ; then
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6736 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6737 else
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6739 $as_echo "none" >&6; }
6740 fi
6741 max_cmd_len=$lt_cv_sys_max_cmd_len
6742
6743
6744
6745
6746
6747
6748 : ${CP="cp -f"}
6749 : ${MV="mv -f"}
6750 : ${RM="rm -f"}
6751
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6753 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6754 # Try some XSI features
6755 xsi_shell=no
6756 ( _lt_dummy="a/b/c"
6757   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6758       = c,a/b,, \
6759     && eval 'test $(( 1 + 1 )) -eq 2 \
6760     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6761   && xsi_shell=yes
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6763 $as_echo "$xsi_shell" >&6; }
6764
6765
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6767 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6768 lt_shell_append=no
6769 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6770     >/dev/null 2>&1 \
6771   && lt_shell_append=yes
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6773 $as_echo "$lt_shell_append" >&6; }
6774
6775
6776 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6777   lt_unset=unset
6778 else
6779   lt_unset=false
6780 fi
6781
6782
6783
6784
6785
6786 # test EBCDIC or ASCII
6787 case `echo X|tr X '\101'` in
6788  A) # ASCII based system
6789     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6790   lt_SP2NL='tr \040 \012'
6791   lt_NL2SP='tr \015\012 \040\040'
6792   ;;
6793  *) # EBCDIC based system
6794   lt_SP2NL='tr \100 \n'
6795   lt_NL2SP='tr \r\n \100\100'
6796   ;;
6797 esac
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6808 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6809 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   lt_cv_ld_reload_flag='-r'
6813 fi
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6815 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6816 reload_flag=$lt_cv_ld_reload_flag
6817 case $reload_flag in
6818 "" | " "*) ;;
6819 *) reload_flag=" $reload_flag" ;;
6820 esac
6821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6822 case $host_os in
6823   darwin*)
6824     if test "$GCC" = yes; then
6825       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6826     else
6827       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6828     fi
6829     ;;
6830 esac
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840 if test -n "$ac_tool_prefix"; then
6841   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6842 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6846   $as_echo_n "(cached) " >&6
6847 else
6848   if test -n "$OBJDUMP"; then
6849   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6850 else
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854   IFS=$as_save_IFS
6855   test -z "$as_dir" && as_dir=.
6856     for ac_exec_ext in '' $ac_executable_extensions; do
6857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860     break 2
6861   fi
6862 done
6863   done
6864 IFS=$as_save_IFS
6865
6866 fi
6867 fi
6868 OBJDUMP=$ac_cv_prog_OBJDUMP
6869 if test -n "$OBJDUMP"; then
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6871 $as_echo "$OBJDUMP" >&6; }
6872 else
6873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6875 fi
6876
6877
6878 fi
6879 if test -z "$ac_cv_prog_OBJDUMP"; then
6880   ac_ct_OBJDUMP=$OBJDUMP
6881   # Extract the first word of "objdump", so it can be a program name with args.
6882 set dummy objdump; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6886   $as_echo_n "(cached) " >&6
6887 else
6888   if test -n "$ac_ct_OBJDUMP"; then
6889   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6890 else
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894   IFS=$as_save_IFS
6895   test -z "$as_dir" && as_dir=.
6896     for ac_exec_ext in '' $ac_executable_extensions; do
6897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6898     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900     break 2
6901   fi
6902 done
6903   done
6904 IFS=$as_save_IFS
6905
6906 fi
6907 fi
6908 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6909 if test -n "$ac_ct_OBJDUMP"; then
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6911 $as_echo "$ac_ct_OBJDUMP" >&6; }
6912 else
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6915 fi
6916
6917   if test "x$ac_ct_OBJDUMP" = x; then
6918     OBJDUMP="false"
6919   else
6920     case $cross_compiling:$ac_tool_warned in
6921 yes:)
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924 ac_tool_warned=yes ;;
6925 esac
6926     OBJDUMP=$ac_ct_OBJDUMP
6927   fi
6928 else
6929   OBJDUMP="$ac_cv_prog_OBJDUMP"
6930 fi
6931
6932 test -z "$OBJDUMP" && OBJDUMP=objdump
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6943 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6944 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6945   $as_echo_n "(cached) " >&6
6946 else
6947   lt_cv_file_magic_cmd='$MAGIC_CMD'
6948 lt_cv_file_magic_test_file=
6949 lt_cv_deplibs_check_method='unknown'
6950 # Need to set the preceding variable on all platforms that support
6951 # interlibrary dependencies.
6952 # 'none' -- dependencies not supported.
6953 # `unknown' -- same as none, but documents that we really don't know.
6954 # 'pass_all' -- all dependencies passed with no checks.
6955 # 'test_compile' -- check by making test program.
6956 # 'file_magic [[regex]]' -- check by looking for files in library path
6957 # which responds to the $file_magic_cmd with a given extended regex.
6958 # If you have `file' or equivalent on your system and you're not sure
6959 # whether `pass_all' will *always* work, you probably want this one.
6960
6961 case $host_os in
6962 aix[4-9]*)
6963   lt_cv_deplibs_check_method=pass_all
6964   ;;
6965
6966 beos*)
6967   lt_cv_deplibs_check_method=pass_all
6968   ;;
6969
6970 bsdi[45]*)
6971   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6972   lt_cv_file_magic_cmd='/usr/bin/file -L'
6973   lt_cv_file_magic_test_file=/shlib/libc.so
6974   ;;
6975
6976 cygwin*)
6977   # func_win32_libid is a shell function defined in ltmain.sh
6978   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6979   lt_cv_file_magic_cmd='func_win32_libid'
6980   ;;
6981
6982 mingw* | pw32*)
6983   # Base MSYS/MinGW do not provide the 'file' command needed by
6984   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6985   # unless we find 'file', for example because we are cross-compiling.
6986   if ( file / ) >/dev/null 2>&1; then
6987     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6988     lt_cv_file_magic_cmd='func_win32_libid'
6989   else
6990     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6991     lt_cv_file_magic_cmd='$OBJDUMP -f'
6992   fi
6993   ;;
6994
6995 cegcc)
6996   # use the weaker test based on 'objdump'. See mingw*.
6997   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6998   lt_cv_file_magic_cmd='$OBJDUMP -f'
6999   ;;
7000
7001 darwin* | rhapsody*)
7002   lt_cv_deplibs_check_method=pass_all
7003   ;;
7004
7005 freebsd* | dragonfly*)
7006   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7007     case $host_cpu in
7008     i*86 )
7009       # Not sure whether the presence of OpenBSD here was a mistake.
7010       # Let's accept both of them until this is cleared up.
7011       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7012       lt_cv_file_magic_cmd=/usr/bin/file
7013       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7014       ;;
7015     esac
7016   else
7017     lt_cv_deplibs_check_method=pass_all
7018   fi
7019   ;;
7020
7021 gnu*)
7022   lt_cv_deplibs_check_method=pass_all
7023   ;;
7024
7025 hpux10.20* | hpux11*)
7026   lt_cv_file_magic_cmd=/usr/bin/file
7027   case $host_cpu in
7028   ia64*)
7029     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7030     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7031     ;;
7032   hppa*64*)
7033     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7034     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7035     ;;
7036   *)
7037     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7038     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7039     ;;
7040   esac
7041   ;;
7042
7043 interix[3-9]*)
7044   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7045   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7046   ;;
7047
7048 irix5* | irix6* | nonstopux*)
7049   case $LD in
7050   *-32|*"-32 ") libmagic=32-bit;;
7051   *-n32|*"-n32 ") libmagic=N32;;
7052   *-64|*"-64 ") libmagic=64-bit;;
7053   *) libmagic=never-match;;
7054   esac
7055   lt_cv_deplibs_check_method=pass_all
7056   ;;
7057
7058 # This must be Linux ELF.
7059 linux* | k*bsd*-gnu)
7060   lt_cv_deplibs_check_method=pass_all
7061   ;;
7062
7063 netbsd*)
7064   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7066   else
7067     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7068   fi
7069   ;;
7070
7071 newos6*)
7072   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7073   lt_cv_file_magic_cmd=/usr/bin/file
7074   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7075   ;;
7076
7077 *nto* | *qnx*)
7078   lt_cv_deplibs_check_method=pass_all
7079   ;;
7080
7081 openbsd*)
7082   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7083     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7084   else
7085     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7086   fi
7087   ;;
7088
7089 osf3* | osf4* | osf5*)
7090   lt_cv_deplibs_check_method=pass_all
7091   ;;
7092
7093 rdos*)
7094   lt_cv_deplibs_check_method=pass_all
7095   ;;
7096
7097 solaris*)
7098   lt_cv_deplibs_check_method=pass_all
7099   ;;
7100
7101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7102   lt_cv_deplibs_check_method=pass_all
7103   ;;
7104
7105 sysv4 | sysv4.3*)
7106   case $host_vendor in
7107   motorola)
7108     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]'
7109     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7110     ;;
7111   ncr)
7112     lt_cv_deplibs_check_method=pass_all
7113     ;;
7114   sequent)
7115     lt_cv_file_magic_cmd='/bin/file'
7116     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7117     ;;
7118   sni)
7119     lt_cv_file_magic_cmd='/bin/file'
7120     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7121     lt_cv_file_magic_test_file=/lib/libc.so
7122     ;;
7123   siemens)
7124     lt_cv_deplibs_check_method=pass_all
7125     ;;
7126   pc)
7127     lt_cv_deplibs_check_method=pass_all
7128     ;;
7129   esac
7130   ;;
7131
7132 tpf*)
7133   lt_cv_deplibs_check_method=pass_all
7134   ;;
7135 esac
7136
7137 fi
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7139 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7140 file_magic_cmd=$lt_cv_file_magic_cmd
7141 deplibs_check_method=$lt_cv_deplibs_check_method
7142 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155 if test -n "$ac_tool_prefix"; then
7156   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7157 set dummy ${ac_tool_prefix}ar; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if test "${ac_cv_prog_AR+set}" = set; then :
7161   $as_echo_n "(cached) " >&6
7162 else
7163   if test -n "$AR"; then
7164   ac_cv_prog_AR="$AR" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171     for ac_exec_ext in '' $ac_executable_extensions; do
7172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173     ac_cv_prog_AR="${ac_tool_prefix}ar"
7174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178   done
7179 IFS=$as_save_IFS
7180
7181 fi
7182 fi
7183 AR=$ac_cv_prog_AR
7184 if test -n "$AR"; then
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7186 $as_echo "$AR" >&6; }
7187 else
7188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7190 fi
7191
7192
7193 fi
7194 if test -z "$ac_cv_prog_AR"; then
7195   ac_ct_AR=$AR
7196   # Extract the first word of "ar", so it can be a program name with args.
7197 set dummy ar; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7201   $as_echo_n "(cached) " >&6
7202 else
7203   if test -n "$ac_ct_AR"; then
7204   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7205 else
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7208 do
7209   IFS=$as_save_IFS
7210   test -z "$as_dir" && as_dir=.
7211     for ac_exec_ext in '' $ac_executable_extensions; do
7212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213     ac_cv_prog_ac_ct_AR="ar"
7214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215     break 2
7216   fi
7217 done
7218   done
7219 IFS=$as_save_IFS
7220
7221 fi
7222 fi
7223 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7224 if test -n "$ac_ct_AR"; then
7225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7226 $as_echo "$ac_ct_AR" >&6; }
7227 else
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7230 fi
7231
7232   if test "x$ac_ct_AR" = x; then
7233     AR="false"
7234   else
7235     case $cross_compiling:$ac_tool_warned in
7236 yes:)
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239 ac_tool_warned=yes ;;
7240 esac
7241     AR=$ac_ct_AR
7242   fi
7243 else
7244   AR="$ac_cv_prog_AR"
7245 fi
7246
7247 test -z "$AR" && AR=ar
7248 test -z "$AR_FLAGS" && AR_FLAGS=cru
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260 if test -n "$ac_tool_prefix"; then
7261   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}strip; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if test "${ac_cv_prog_STRIP+set}" = set; then :
7266   $as_echo_n "(cached) " >&6
7267 else
7268   if test -n "$STRIP"; then
7269   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276     for ac_exec_ext in '' $ac_executable_extensions; do
7277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283   done
7284 IFS=$as_save_IFS
7285
7286 fi
7287 fi
7288 STRIP=$ac_cv_prog_STRIP
7289 if test -n "$STRIP"; then
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7291 $as_echo "$STRIP" >&6; }
7292 else
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297
7298 fi
7299 if test -z "$ac_cv_prog_STRIP"; then
7300   ac_ct_STRIP=$STRIP
7301   # Extract the first word of "strip", so it can be a program name with args.
7302 set dummy strip; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308   if test -n "$ac_ct_STRIP"; then
7309   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316     for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_prog_ac_ct_STRIP="strip"
7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323   done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7329 if test -n "$ac_ct_STRIP"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7331 $as_echo "$ac_ct_STRIP" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337   if test "x$ac_ct_STRIP" = x; then
7338     STRIP=":"
7339   else
7340     case $cross_compiling:$ac_tool_warned in
7341 yes:)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7345 esac
7346     STRIP=$ac_ct_STRIP
7347   fi
7348 else
7349   STRIP="$ac_cv_prog_STRIP"
7350 fi
7351
7352 test -z "$STRIP" && STRIP=:
7353
7354
7355
7356
7357
7358
7359 if test -n "$ac_tool_prefix"; then
7360   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7365   $as_echo_n "(cached) " >&6
7366 else
7367   if test -n "$RANLIB"; then
7368   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373   IFS=$as_save_IFS
7374   test -z "$as_dir" && as_dir=.
7375     for ac_exec_ext in '' $ac_executable_extensions; do
7376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379     break 2
7380   fi
7381 done
7382   done
7383 IFS=$as_save_IFS
7384
7385 fi
7386 fi
7387 RANLIB=$ac_cv_prog_RANLIB
7388 if test -n "$RANLIB"; then
7389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7390 $as_echo "$RANLIB" >&6; }
7391 else
7392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395
7396
7397 fi
7398 if test -z "$ac_cv_prog_RANLIB"; then
7399   ac_ct_RANLIB=$RANLIB
7400   # Extract the first word of "ranlib", so it can be a program name with args.
7401 set dummy ranlib; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7405   $as_echo_n "(cached) " >&6
7406 else
7407   if test -n "$ac_ct_RANLIB"; then
7408   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413   IFS=$as_save_IFS
7414   test -z "$as_dir" && as_dir=.
7415     for ac_exec_ext in '' $ac_executable_extensions; do
7416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417     ac_cv_prog_ac_ct_RANLIB="ranlib"
7418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419     break 2
7420   fi
7421 done
7422   done
7423 IFS=$as_save_IFS
7424
7425 fi
7426 fi
7427 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7428 if test -n "$ac_ct_RANLIB"; then
7429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7430 $as_echo "$ac_ct_RANLIB" >&6; }
7431 else
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7434 fi
7435
7436   if test "x$ac_ct_RANLIB" = x; then
7437     RANLIB=":"
7438   else
7439     case $cross_compiling:$ac_tool_warned in
7440 yes:)
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7443 ac_tool_warned=yes ;;
7444 esac
7445     RANLIB=$ac_ct_RANLIB
7446   fi
7447 else
7448   RANLIB="$ac_cv_prog_RANLIB"
7449 fi
7450
7451 test -z "$RANLIB" && RANLIB=:
7452
7453
7454
7455
7456
7457
7458 # Determine commands to create old-style static archives.
7459 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7460 old_postinstall_cmds='chmod 644 $oldlib'
7461 old_postuninstall_cmds=
7462
7463 if test -n "$RANLIB"; then
7464   case $host_os in
7465   openbsd*)
7466     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7467     ;;
7468   *)
7469     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7470     ;;
7471   esac
7472   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7473 fi
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508 # If no C compiler was specified, use CC.
7509 LTCC=${LTCC-"$CC"}
7510
7511 # If no C compiler flags were specified, use CFLAGS.
7512 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7513
7514 # Allow CC to be a program name with arguments.
7515 compiler=$CC
7516
7517
7518 # Check for command to grab the raw symbol name followed by C symbol from nm.
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7520 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7521 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7522   $as_echo_n "(cached) " >&6
7523 else
7524
7525 # These are sane defaults that work on at least a few old systems.
7526 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7527
7528 # Character class describing NM global symbol codes.
7529 symcode='[BCDEGRST]'
7530
7531 # Regexp to match symbols that can be accessed directly from C.
7532 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7533
7534 # Define system-specific variables.
7535 case $host_os in
7536 aix*)
7537   symcode='[BCDT]'
7538   ;;
7539 cygwin* | mingw* | pw32* | cegcc*)
7540   symcode='[ABCDGISTW]'
7541   ;;
7542 hpux*)
7543   if test "$host_cpu" = ia64; then
7544     symcode='[ABCDEGRST]'
7545   fi
7546   ;;
7547 irix* | nonstopux*)
7548   symcode='[BCDEGRST]'
7549   ;;
7550 osf*)
7551   symcode='[BCDEGQRST]'
7552   ;;
7553 solaris*)
7554   symcode='[BDRT]'
7555   ;;
7556 sco3.2v5*)
7557   symcode='[DT]'
7558   ;;
7559 sysv4.2uw2*)
7560   symcode='[DT]'
7561   ;;
7562 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7563   symcode='[ABDT]'
7564   ;;
7565 sysv4)
7566   symcode='[DFNSTU]'
7567   ;;
7568 esac
7569
7570 # If we're using GNU nm, then use its standard symbol codes.
7571 case `$NM -V 2>&1` in
7572 *GNU* | *'with BFD'*)
7573   symcode='[ABCDGIRSTW]' ;;
7574 esac
7575
7576 # Transform an extracted symbol line into a proper C declaration.
7577 # Some systems (esp. on ia64) link data and code symbols differently,
7578 # so use this general approach.
7579 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7580
7581 # Transform an extracted symbol line into symbol name and symbol address
7582 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7583 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'"
7584
7585 # Handle CRLF in mingw tool chain
7586 opt_cr=
7587 case $build_os in
7588 mingw*)
7589   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7590   ;;
7591 esac
7592
7593 # Try without a prefix underscore, then with it.
7594 for ac_symprfx in "" "_"; do
7595
7596   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7597   symxfrm="\\1 $ac_symprfx\\2 \\2"
7598
7599   # Write the raw and C identifiers.
7600   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7601     # Fake it for dumpbin and say T for any non-static function
7602     # and D for any global variable.
7603     # Also find C++ and __fastcall symbols from MSVC++,
7604     # which start with @ or ?.
7605     lt_cv_sys_global_symbol_pipe="$AWK '"\
7606 "     {last_section=section; section=\$ 3};"\
7607 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7608 "     \$ 0!~/External *\|/{next};"\
7609 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7610 "     {if(hide[section]) next};"\
7611 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7612 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7613 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7614 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7615 "     ' prfx=^$ac_symprfx"
7616   else
7617     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7618   fi
7619
7620   # Check to see that the pipe works correctly.
7621   pipe_works=no
7622
7623   rm -f conftest*
7624   cat > conftest.$ac_ext <<_LT_EOF
7625 #ifdef __cplusplus
7626 extern "C" {
7627 #endif
7628 char nm_test_var;
7629 void nm_test_func(void);
7630 void nm_test_func(void){}
7631 #ifdef __cplusplus
7632 }
7633 #endif
7634 int main(){nm_test_var='a';nm_test_func();return(0);}
7635 _LT_EOF
7636
7637   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7638   (eval $ac_compile) 2>&5
7639   ac_status=$?
7640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7641   test $ac_status = 0; }; then
7642     # Now try to grab the symbols.
7643     nlist=conftest.nm
7644     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7645   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7646   ac_status=$?
7647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7648   test $ac_status = 0; } && test -s "$nlist"; then
7649       # Try sorting and uniquifying the output.
7650       if sort "$nlist" | uniq > "$nlist"T; then
7651         mv -f "$nlist"T "$nlist"
7652       else
7653         rm -f "$nlist"T
7654       fi
7655
7656       # Make sure that we snagged all the symbols we need.
7657       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7658         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7659           cat <<_LT_EOF > conftest.$ac_ext
7660 #ifdef __cplusplus
7661 extern "C" {
7662 #endif
7663
7664 _LT_EOF
7665           # Now generate the symbol file.
7666           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7667
7668           cat <<_LT_EOF >> conftest.$ac_ext
7669
7670 /* The mapping between symbol names and symbols.  */
7671 const struct {
7672   const char *name;
7673   void       *address;
7674 }
7675 lt__PROGRAM__LTX_preloaded_symbols[] =
7676 {
7677   { "@PROGRAM@", (void *) 0 },
7678 _LT_EOF
7679           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7680           cat <<\_LT_EOF >> conftest.$ac_ext
7681   {0, (void *) 0}
7682 };
7683
7684 /* This works around a problem in FreeBSD linker */
7685 #ifdef FREEBSD_WORKAROUND
7686 static const void *lt_preloaded_setup() {
7687   return lt__PROGRAM__LTX_preloaded_symbols;
7688 }
7689 #endif
7690
7691 #ifdef __cplusplus
7692 }
7693 #endif
7694 _LT_EOF
7695           # Now try linking the two files.
7696           mv conftest.$ac_objext conftstm.$ac_objext
7697           lt_save_LIBS="$LIBS"
7698           lt_save_CFLAGS="$CFLAGS"
7699           LIBS="conftstm.$ac_objext"
7700           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7701           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7702   (eval $ac_link) 2>&5
7703   ac_status=$?
7704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7705   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7706             pipe_works=yes
7707           fi
7708           LIBS="$lt_save_LIBS"
7709           CFLAGS="$lt_save_CFLAGS"
7710         else
7711           echo "cannot find nm_test_func in $nlist" >&5
7712         fi
7713       else
7714         echo "cannot find nm_test_var in $nlist" >&5
7715       fi
7716     else
7717       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7718     fi
7719   else
7720     echo "$progname: failed program was:" >&5
7721     cat conftest.$ac_ext >&5
7722   fi
7723   rm -rf conftest* conftst*
7724
7725   # Do not use the global_symbol_pipe unless it works.
7726   if test "$pipe_works" = yes; then
7727     break
7728   else
7729     lt_cv_sys_global_symbol_pipe=
7730   fi
7731 done
7732
7733 fi
7734
7735 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7736   lt_cv_sys_global_symbol_to_cdecl=
7737 fi
7738 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7740 $as_echo "failed" >&6; }
7741 else
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7743 $as_echo "ok" >&6; }
7744 fi
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767 # Check whether --enable-libtool-lock was given.
7768 if test "${enable_libtool_lock+set}" = set; then :
7769   enableval=$enable_libtool_lock;
7770 fi
7771
7772 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7773
7774 # Some flags need to be propagated to the compiler or linker for good
7775 # libtool support.
7776 case $host in
7777 ia64-*-hpux*)
7778   # Find out which ABI we are using.
7779   echo 'int i;' > conftest.$ac_ext
7780   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7781   (eval $ac_compile) 2>&5
7782   ac_status=$?
7783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7784   test $ac_status = 0; }; then
7785     case `/usr/bin/file conftest.$ac_objext` in
7786       *ELF-32*)
7787         HPUX_IA64_MODE="32"
7788         ;;
7789       *ELF-64*)
7790         HPUX_IA64_MODE="64"
7791         ;;
7792     esac
7793   fi
7794   rm -rf conftest*
7795   ;;
7796 *-*-irix6*)
7797   # Find out which ABI we are using.
7798   echo '#line 7798 "configure"' > conftest.$ac_ext
7799   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7800   (eval $ac_compile) 2>&5
7801   ac_status=$?
7802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803   test $ac_status = 0; }; then
7804     if test "$lt_cv_prog_gnu_ld" = yes; then
7805       case `/usr/bin/file conftest.$ac_objext` in
7806         *32-bit*)
7807           LD="${LD-ld} -melf32bsmip"
7808           ;;
7809         *N32*)
7810           LD="${LD-ld} -melf32bmipn32"
7811           ;;
7812         *64-bit*)
7813           LD="${LD-ld} -melf64bmip"
7814         ;;
7815       esac
7816     else
7817       case `/usr/bin/file conftest.$ac_objext` in
7818         *32-bit*)
7819           LD="${LD-ld} -32"
7820           ;;
7821         *N32*)
7822           LD="${LD-ld} -n32"
7823           ;;
7824         *64-bit*)
7825           LD="${LD-ld} -64"
7826           ;;
7827       esac
7828     fi
7829   fi
7830   rm -rf conftest*
7831   ;;
7832
7833 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7834 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7835   # Find out which ABI we are using.
7836   echo 'int i;' > conftest.$ac_ext
7837   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7838   (eval $ac_compile) 2>&5
7839   ac_status=$?
7840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7841   test $ac_status = 0; }; then
7842     case `/usr/bin/file conftest.o` in
7843       *32-bit*)
7844         case $host in
7845           x86_64-*kfreebsd*-gnu)
7846             LD="${LD-ld} -m elf_i386_fbsd"
7847             ;;
7848           x86_64-*linux*)
7849             LD="${LD-ld} -m elf_i386"
7850             ;;
7851           ppc64-*linux*|powerpc64-*linux*)
7852             LD="${LD-ld} -m elf32ppclinux"
7853             ;;
7854           s390x-*linux*)
7855             LD="${LD-ld} -m elf_s390"
7856             ;;
7857           sparc64-*linux*)
7858             LD="${LD-ld} -m elf32_sparc"
7859             ;;
7860         esac
7861         ;;
7862       *64-bit*)
7863         case $host in
7864           x86_64-*kfreebsd*-gnu)
7865             LD="${LD-ld} -m elf_x86_64_fbsd"
7866             ;;
7867           x86_64-*linux*)
7868             LD="${LD-ld} -m elf_x86_64"
7869             ;;
7870           ppc*-*linux*|powerpc*-*linux*)
7871             LD="${LD-ld} -m elf64ppc"
7872             ;;
7873           s390*-*linux*|s390*-*tpf*)
7874             LD="${LD-ld} -m elf64_s390"
7875             ;;
7876           sparc*-*linux*)
7877             LD="${LD-ld} -m elf64_sparc"
7878             ;;
7879         esac
7880         ;;
7881     esac
7882   fi
7883   rm -rf conftest*
7884   ;;
7885
7886 *-*-sco3.2v5*)
7887   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7888   SAVE_CFLAGS="$CFLAGS"
7889   CFLAGS="$CFLAGS -belf"
7890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7891 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7892 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7893   $as_echo_n "(cached) " >&6
7894 else
7895   ac_ext=c
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h.  */
7903
7904 int
7905 main ()
7906 {
7907
7908   ;
7909   return 0;
7910 }
7911 _ACEOF
7912 if ac_fn_c_try_link "$LINENO"; then :
7913   lt_cv_cc_needs_belf=yes
7914 else
7915   lt_cv_cc_needs_belf=no
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext \
7918     conftest$ac_exeext conftest.$ac_ext
7919      ac_ext=c
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924
7925 fi
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7927 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7928   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7929     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7930     CFLAGS="$SAVE_CFLAGS"
7931   fi
7932   ;;
7933 sparc*-*solaris*)
7934   # Find out which ABI we are using.
7935   echo 'int i;' > conftest.$ac_ext
7936   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7937   (eval $ac_compile) 2>&5
7938   ac_status=$?
7939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7940   test $ac_status = 0; }; then
7941     case `/usr/bin/file conftest.o` in
7942     *64-bit*)
7943       case $lt_cv_prog_gnu_ld in
7944       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7945       *)
7946         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7947           LD="${LD-ld} -64"
7948         fi
7949         ;;
7950       esac
7951       ;;
7952     esac
7953   fi
7954   rm -rf conftest*
7955   ;;
7956 esac
7957
7958 need_locks="$enable_libtool_lock"
7959
7960
7961   case $host_os in
7962     rhapsody* | darwin*)
7963     if test -n "$ac_tool_prefix"; then
7964   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7965 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7969   $as_echo_n "(cached) " >&6
7970 else
7971   if test -n "$DSYMUTIL"; then
7972   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977   IFS=$as_save_IFS
7978   test -z "$as_dir" && as_dir=.
7979     for ac_exec_ext in '' $ac_executable_extensions; do
7980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7981     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983     break 2
7984   fi
7985 done
7986   done
7987 IFS=$as_save_IFS
7988
7989 fi
7990 fi
7991 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7992 if test -n "$DSYMUTIL"; then
7993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7994 $as_echo "$DSYMUTIL" >&6; }
7995 else
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 fi
7999
8000
8001 fi
8002 if test -z "$ac_cv_prog_DSYMUTIL"; then
8003   ac_ct_DSYMUTIL=$DSYMUTIL
8004   # Extract the first word of "dsymutil", so it can be a program name with args.
8005 set dummy dsymutil; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8009   $as_echo_n "(cached) " >&6
8010 else
8011   if test -n "$ac_ct_DSYMUTIL"; then
8012   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017   IFS=$as_save_IFS
8018   test -z "$as_dir" && as_dir=.
8019     for ac_exec_ext in '' $ac_executable_extensions; do
8020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023     break 2
8024   fi
8025 done
8026   done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8032 if test -n "$ac_ct_DSYMUTIL"; then
8033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8034 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8035 else
8036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8038 fi
8039
8040   if test "x$ac_ct_DSYMUTIL" = x; then
8041     DSYMUTIL=":"
8042   else
8043     case $cross_compiling:$ac_tool_warned in
8044 yes:)
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8047 ac_tool_warned=yes ;;
8048 esac
8049     DSYMUTIL=$ac_ct_DSYMUTIL
8050   fi
8051 else
8052   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8053 fi
8054
8055     if test -n "$ac_tool_prefix"; then
8056   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8057 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8061   $as_echo_n "(cached) " >&6
8062 else
8063   if test -n "$NMEDIT"; then
8064   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069   IFS=$as_save_IFS
8070   test -z "$as_dir" && as_dir=.
8071     for ac_exec_ext in '' $ac_executable_extensions; do
8072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075     break 2
8076   fi
8077 done
8078   done
8079 IFS=$as_save_IFS
8080
8081 fi
8082 fi
8083 NMEDIT=$ac_cv_prog_NMEDIT
8084 if test -n "$NMEDIT"; then
8085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8086 $as_echo "$NMEDIT" >&6; }
8087 else
8088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8090 fi
8091
8092
8093 fi
8094 if test -z "$ac_cv_prog_NMEDIT"; then
8095   ac_ct_NMEDIT=$NMEDIT
8096   # Extract the first word of "nmedit", so it can be a program name with args.
8097 set dummy nmedit; ac_word=$2
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099 $as_echo_n "checking for $ac_word... " >&6; }
8100 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8101   $as_echo_n "(cached) " >&6
8102 else
8103   if test -n "$ac_ct_NMEDIT"; then
8104   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8105 else
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8108 do
8109   IFS=$as_save_IFS
8110   test -z "$as_dir" && as_dir=.
8111     for ac_exec_ext in '' $ac_executable_extensions; do
8112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8113     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115     break 2
8116   fi
8117 done
8118   done
8119 IFS=$as_save_IFS
8120
8121 fi
8122 fi
8123 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8124 if test -n "$ac_ct_NMEDIT"; then
8125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8126 $as_echo "$ac_ct_NMEDIT" >&6; }
8127 else
8128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8130 fi
8131
8132   if test "x$ac_ct_NMEDIT" = x; then
8133     NMEDIT=":"
8134   else
8135     case $cross_compiling:$ac_tool_warned in
8136 yes:)
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8139 ac_tool_warned=yes ;;
8140 esac
8141     NMEDIT=$ac_ct_NMEDIT
8142   fi
8143 else
8144   NMEDIT="$ac_cv_prog_NMEDIT"
8145 fi
8146
8147     if test -n "$ac_tool_prefix"; then
8148   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8149 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if test "${ac_cv_prog_LIPO+set}" = set; then :
8153   $as_echo_n "(cached) " >&6
8154 else
8155   if test -n "$LIPO"; then
8156   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8157 else
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8160 do
8161   IFS=$as_save_IFS
8162   test -z "$as_dir" && as_dir=.
8163     for ac_exec_ext in '' $ac_executable_extensions; do
8164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8165     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167     break 2
8168   fi
8169 done
8170   done
8171 IFS=$as_save_IFS
8172
8173 fi
8174 fi
8175 LIPO=$ac_cv_prog_LIPO
8176 if test -n "$LIPO"; then
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8178 $as_echo "$LIPO" >&6; }
8179 else
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183
8184
8185 fi
8186 if test -z "$ac_cv_prog_LIPO"; then
8187   ac_ct_LIPO=$LIPO
8188   # Extract the first word of "lipo", so it can be a program name with args.
8189 set dummy lipo; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195   if test -n "$ac_ct_LIPO"; then
8196   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201   IFS=$as_save_IFS
8202   test -z "$as_dir" && as_dir=.
8203     for ac_exec_ext in '' $ac_executable_extensions; do
8204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8205     ac_cv_prog_ac_ct_LIPO="lipo"
8206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207     break 2
8208   fi
8209 done
8210   done
8211 IFS=$as_save_IFS
8212
8213 fi
8214 fi
8215 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8216 if test -n "$ac_ct_LIPO"; then
8217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8218 $as_echo "$ac_ct_LIPO" >&6; }
8219 else
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8222 fi
8223
8224   if test "x$ac_ct_LIPO" = x; then
8225     LIPO=":"
8226   else
8227     case $cross_compiling:$ac_tool_warned in
8228 yes:)
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8231 ac_tool_warned=yes ;;
8232 esac
8233     LIPO=$ac_ct_LIPO
8234   fi
8235 else
8236   LIPO="$ac_cv_prog_LIPO"
8237 fi
8238
8239     if test -n "$ac_tool_prefix"; then
8240   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8241 set dummy ${ac_tool_prefix}otool; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8245   $as_echo_n "(cached) " >&6
8246 else
8247   if test -n "$OTOOL"; then
8248   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253   IFS=$as_save_IFS
8254   test -z "$as_dir" && as_dir=.
8255     for ac_exec_ext in '' $ac_executable_extensions; do
8256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259     break 2
8260   fi
8261 done
8262   done
8263 IFS=$as_save_IFS
8264
8265 fi
8266 fi
8267 OTOOL=$ac_cv_prog_OTOOL
8268 if test -n "$OTOOL"; then
8269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8270 $as_echo "$OTOOL" >&6; }
8271 else
8272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8274 fi
8275
8276
8277 fi
8278 if test -z "$ac_cv_prog_OTOOL"; then
8279   ac_ct_OTOOL=$OTOOL
8280   # Extract the first word of "otool", so it can be a program name with args.
8281 set dummy otool; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   if test -n "$ac_ct_OTOOL"; then
8288   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8289 else
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293   IFS=$as_save_IFS
8294   test -z "$as_dir" && as_dir=.
8295     for ac_exec_ext in '' $ac_executable_extensions; do
8296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297     ac_cv_prog_ac_ct_OTOOL="otool"
8298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299     break 2
8300   fi
8301 done
8302   done
8303 IFS=$as_save_IFS
8304
8305 fi
8306 fi
8307 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8308 if test -n "$ac_ct_OTOOL"; then
8309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8310 $as_echo "$ac_ct_OTOOL" >&6; }
8311 else
8312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316   if test "x$ac_ct_OTOOL" = x; then
8317     OTOOL=":"
8318   else
8319     case $cross_compiling:$ac_tool_warned in
8320 yes:)
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8323 ac_tool_warned=yes ;;
8324 esac
8325     OTOOL=$ac_ct_OTOOL
8326   fi
8327 else
8328   OTOOL="$ac_cv_prog_OTOOL"
8329 fi
8330
8331     if test -n "$ac_tool_prefix"; then
8332   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8333 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8337   $as_echo_n "(cached) " >&6
8338 else
8339   if test -n "$OTOOL64"; then
8340   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8341 else
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8344 do
8345   IFS=$as_save_IFS
8346   test -z "$as_dir" && as_dir=.
8347     for ac_exec_ext in '' $ac_executable_extensions; do
8348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8349     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351     break 2
8352   fi
8353 done
8354   done
8355 IFS=$as_save_IFS
8356
8357 fi
8358 fi
8359 OTOOL64=$ac_cv_prog_OTOOL64
8360 if test -n "$OTOOL64"; then
8361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8362 $as_echo "$OTOOL64" >&6; }
8363 else
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366 fi
8367
8368
8369 fi
8370 if test -z "$ac_cv_prog_OTOOL64"; then
8371   ac_ct_OTOOL64=$OTOOL64
8372   # Extract the first word of "otool64", so it can be a program name with args.
8373 set dummy otool64; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8377   $as_echo_n "(cached) " >&6
8378 else
8379   if test -n "$ac_ct_OTOOL64"; then
8380   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385   IFS=$as_save_IFS
8386   test -z "$as_dir" && as_dir=.
8387     for ac_exec_ext in '' $ac_executable_extensions; do
8388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8389     ac_cv_prog_ac_ct_OTOOL64="otool64"
8390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391     break 2
8392   fi
8393 done
8394   done
8395 IFS=$as_save_IFS
8396
8397 fi
8398 fi
8399 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8400 if test -n "$ac_ct_OTOOL64"; then
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8402 $as_echo "$ac_ct_OTOOL64" >&6; }
8403 else
8404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408   if test "x$ac_ct_OTOOL64" = x; then
8409     OTOOL64=":"
8410   else
8411     case $cross_compiling:$ac_tool_warned in
8412 yes:)
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8415 ac_tool_warned=yes ;;
8416 esac
8417     OTOOL64=$ac_ct_OTOOL64
8418   fi
8419 else
8420   OTOOL64="$ac_cv_prog_OTOOL64"
8421 fi
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8450 $as_echo_n "checking for -single_module linker flag... " >&6; }
8451 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8452   $as_echo_n "(cached) " >&6
8453 else
8454   lt_cv_apple_cc_single_mod=no
8455       if test -z "${LT_MULTI_MODULE}"; then
8456         # By default we will add the -single_module flag. You can override
8457         # by either setting the environment variable LT_MULTI_MODULE
8458         # non-empty at configure time, or by adding -multi_module to the
8459         # link flags.
8460         rm -rf libconftest.dylib*
8461         echo "int foo(void){return 1;}" > conftest.c
8462         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8463 -dynamiclib -Wl,-single_module conftest.c" >&5
8464         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8465           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8466         _lt_result=$?
8467         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8468           lt_cv_apple_cc_single_mod=yes
8469         else
8470           cat conftest.err >&5
8471         fi
8472         rm -rf libconftest.dylib*
8473         rm -f conftest.*
8474       fi
8475 fi
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8477 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8479 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8480 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8481   $as_echo_n "(cached) " >&6
8482 else
8483   lt_cv_ld_exported_symbols_list=no
8484       save_LDFLAGS=$LDFLAGS
8485       echo "_main" > conftest.sym
8486       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8487       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h.  */
8489
8490 int
8491 main ()
8492 {
8493
8494   ;
8495   return 0;
8496 }
8497 _ACEOF
8498 if ac_fn_c_try_link "$LINENO"; then :
8499   lt_cv_ld_exported_symbols_list=yes
8500 else
8501   lt_cv_ld_exported_symbols_list=no
8502 fi
8503 rm -f core conftest.err conftest.$ac_objext \
8504     conftest$ac_exeext conftest.$ac_ext
8505         LDFLAGS="$save_LDFLAGS"
8506
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8509 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8510     case $host_os in
8511     rhapsody* | darwin1.[012])
8512       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8513     darwin1.*)
8514       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8515     darwin*) # darwin 5.x on
8516       # if running on 10.5 or later, the deployment target defaults
8517       # to the OS version, if on x86, and 10.4, the deployment
8518       # target defaults to 10.4. Don't you love it?
8519       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8520         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8521           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8522         10.[012]*)
8523           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8524         10.*)
8525           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8526       esac
8527     ;;
8528   esac
8529     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8530       _lt_dar_single_mod='$single_module'
8531     fi
8532     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8533       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8534     else
8535       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8536     fi
8537     if test "$DSYMUTIL" != ":"; then
8538       _lt_dsymutil='~$DSYMUTIL $lib || :'
8539     else
8540       _lt_dsymutil=
8541     fi
8542     ;;
8543   esac
8544
8545
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8547 $as_echo_n "checking for ANSI C header files... " >&6; }
8548 if test "${ac_cv_header_stdc+set}" = set; then :
8549   $as_echo_n "(cached) " >&6
8550 else
8551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h.  */
8553 #include <stdlib.h>
8554 #include <stdarg.h>
8555 #include <string.h>
8556 #include <float.h>
8557
8558 int
8559 main ()
8560 {
8561
8562   ;
8563   return 0;
8564 }
8565 _ACEOF
8566 if ac_fn_c_try_compile "$LINENO"; then :
8567   ac_cv_header_stdc=yes
8568 else
8569   ac_cv_header_stdc=no
8570 fi
8571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572
8573 if test $ac_cv_header_stdc = yes; then
8574   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h.  */
8577 #include <string.h>
8578
8579 _ACEOF
8580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8581   $EGREP "memchr" >/dev/null 2>&1; then :
8582
8583 else
8584   ac_cv_header_stdc=no
8585 fi
8586 rm -f conftest*
8587
8588 fi
8589
8590 if test $ac_cv_header_stdc = yes; then
8591   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h.  */
8594 #include <stdlib.h>
8595
8596 _ACEOF
8597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8598   $EGREP "free" >/dev/null 2>&1; then :
8599
8600 else
8601   ac_cv_header_stdc=no
8602 fi
8603 rm -f conftest*
8604
8605 fi
8606
8607 if test $ac_cv_header_stdc = yes; then
8608   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8609   if test "$cross_compiling" = yes; then :
8610   :
8611 else
8612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h.  */
8614 #include <ctype.h>
8615 #include <stdlib.h>
8616 #if ((' ' & 0x0FF) == 0x020)
8617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8619 #else
8620 # define ISLOWER(c) \
8621                    (('a' <= (c) && (c) <= 'i') \
8622                      || ('j' <= (c) && (c) <= 'r') \
8623                      || ('s' <= (c) && (c) <= 'z'))
8624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8625 #endif
8626
8627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8628 int
8629 main ()
8630 {
8631   int i;
8632   for (i = 0; i < 256; i++)
8633     if (XOR (islower (i), ISLOWER (i))
8634         || toupper (i) != TOUPPER (i))
8635       return 2;
8636   return 0;
8637 }
8638 _ACEOF
8639 if ac_fn_c_try_run "$LINENO"; then :
8640
8641 else
8642   ac_cv_header_stdc=no
8643 fi
8644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8645   conftest.$ac_objext conftest.beam conftest.$ac_ext
8646 fi
8647
8648 fi
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8651 $as_echo "$ac_cv_header_stdc" >&6; }
8652 if test $ac_cv_header_stdc = yes; then
8653
8654 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8655
8656 fi
8657
8658 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8659 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8660                   inttypes.h stdint.h unistd.h
8661 do :
8662   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8663 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8664 "
8665 eval as_val=\$$as_ac_Header
8666    if test "x$as_val" = x""yes; then :
8667   cat >>confdefs.h <<_ACEOF
8668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8669 _ACEOF
8670
8671 fi
8672
8673 done
8674
8675
8676 for ac_header in dlfcn.h
8677 do :
8678   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8679 "
8680 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8681   cat >>confdefs.h <<_ACEOF
8682 #define HAVE_DLFCN_H 1
8683 _ACEOF
8684
8685 fi
8686
8687 done
8688
8689
8690
8691 # Set options
8692
8693
8694
8695         enable_dlopen=no
8696
8697
8698   enable_win32_dll=no
8699
8700
8701             # Check whether --enable-shared was given.
8702 if test "${enable_shared+set}" = set; then :
8703   enableval=$enable_shared; p=${PACKAGE-default}
8704     case $enableval in
8705     yes) enable_shared=yes ;;
8706     no) enable_shared=no ;;
8707     *)
8708       enable_shared=no
8709       # Look at the argument we got.  We use all the common list separators.
8710       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8711       for pkg in $enableval; do
8712         IFS="$lt_save_ifs"
8713         if test "X$pkg" = "X$p"; then
8714           enable_shared=yes
8715         fi
8716       done
8717       IFS="$lt_save_ifs"
8718       ;;
8719     esac
8720 else
8721   enable_shared=yes
8722 fi
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732   # Check whether --enable-static was given.
8733 if test "${enable_static+set}" = set; then :
8734   enableval=$enable_static; p=${PACKAGE-default}
8735     case $enableval in
8736     yes) enable_static=yes ;;
8737     no) enable_static=no ;;
8738     *)
8739      enable_static=no
8740       # Look at the argument we got.  We use all the common list separators.
8741       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8742       for pkg in $enableval; do
8743         IFS="$lt_save_ifs"
8744         if test "X$pkg" = "X$p"; then
8745           enable_static=yes
8746         fi
8747       done
8748       IFS="$lt_save_ifs"
8749       ;;
8750     esac
8751 else
8752   enable_static=yes
8753 fi
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764 # Check whether --with-pic was given.
8765 if test "${with_pic+set}" = set; then :
8766   withval=$with_pic; pic_mode="$withval"
8767 else
8768   pic_mode=default
8769 fi
8770
8771
8772 test -z "$pic_mode" && pic_mode=default
8773
8774
8775
8776
8777
8778
8779
8780   # Check whether --enable-fast-install was given.
8781 if test "${enable_fast_install+set}" = set; then :
8782   enableval=$enable_fast_install; p=${PACKAGE-default}
8783     case $enableval in
8784     yes) enable_fast_install=yes ;;
8785     no) enable_fast_install=no ;;
8786     *)
8787       enable_fast_install=no
8788       # Look at the argument we got.  We use all the common list separators.
8789       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8790       for pkg in $enableval; do
8791         IFS="$lt_save_ifs"
8792         if test "X$pkg" = "X$p"; then
8793           enable_fast_install=yes
8794         fi
8795       done
8796       IFS="$lt_save_ifs"
8797       ;;
8798     esac
8799 else
8800   enable_fast_install=yes
8801 fi
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813 # This can be used to rebuild libtool when needed
8814 LIBTOOL_DEPS="$ltmain"
8815
8816 # Always use our own libtool.
8817 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843 test -z "$LN_S" && LN_S="ln -s"
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858 if test -n "${ZSH_VERSION+set}" ; then
8859    setopt NO_GLOB_SUBST
8860 fi
8861
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8863 $as_echo_n "checking for objdir... " >&6; }
8864 if test "${lt_cv_objdir+set}" = set; then :
8865   $as_echo_n "(cached) " >&6
8866 else
8867   rm -f .libs 2>/dev/null
8868 mkdir .libs 2>/dev/null
8869 if test -d .libs; then
8870   lt_cv_objdir=.libs
8871 else
8872   # MS-DOS does not allow filenames that begin with a dot.
8873   lt_cv_objdir=_libs
8874 fi
8875 rmdir .libs 2>/dev/null
8876 fi
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8878 $as_echo "$lt_cv_objdir" >&6; }
8879 objdir=$lt_cv_objdir
8880
8881
8882
8883
8884
8885 cat >>confdefs.h <<_ACEOF
8886 #define LT_OBJDIR "$lt_cv_objdir/"
8887 _ACEOF
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905 case $host_os in
8906 aix3*)
8907   # AIX sometimes has problems with the GCC collect2 program.  For some
8908   # reason, if we set the COLLECT_NAMES environment variable, the problems
8909   # vanish in a puff of smoke.
8910   if test "X${COLLECT_NAMES+set}" != Xset; then
8911     COLLECT_NAMES=
8912     export COLLECT_NAMES
8913   fi
8914   ;;
8915 esac
8916
8917 # Sed substitution that helps us do robust quoting.  It backslashifies
8918 # metacharacters that are still active within double-quoted strings.
8919 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8920
8921 # Same as above, but do not quote variable references.
8922 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8923
8924 # Sed substitution to delay expansion of an escaped shell variable in a
8925 # double_quote_subst'ed string.
8926 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8927
8928 # Sed substitution to delay expansion of an escaped single quote.
8929 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8930
8931 # Sed substitution to avoid accidental globbing in evaled expressions
8932 no_glob_subst='s/\*/\\\*/g'
8933
8934 # Global variables:
8935 ofile=libtool
8936 can_build_shared=yes
8937
8938 # All known linkers require a `.a' archive for static linking (except MSVC,
8939 # which needs '.lib').
8940 libext=a
8941
8942 with_gnu_ld="$lt_cv_prog_gnu_ld"
8943
8944 old_CC="$CC"
8945 old_CFLAGS="$CFLAGS"
8946
8947 # Set sane defaults for various variables
8948 test -z "$CC" && CC=cc
8949 test -z "$LTCC" && LTCC=$CC
8950 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8951 test -z "$LD" && LD=ld
8952 test -z "$ac_objext" && ac_objext=o
8953
8954 for cc_temp in $compiler""; do
8955   case $cc_temp in
8956     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8957     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8958     \-*) ;;
8959     *) break;;
8960   esac
8961 done
8962 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8963
8964
8965 # Only perform the check for file, if the check method requires it
8966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8967 case $deplibs_check_method in
8968 file_magic*)
8969   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8971 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8972 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8973   $as_echo_n "(cached) " >&6
8974 else
8975   case $MAGIC_CMD in
8976 [\\/*] |  ?:[\\/]*)
8977   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8978   ;;
8979 *)
8980   lt_save_MAGIC_CMD="$MAGIC_CMD"
8981   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8982   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8983   for ac_dir in $ac_dummy; do
8984     IFS="$lt_save_ifs"
8985     test -z "$ac_dir" && ac_dir=.
8986     if test -f $ac_dir/${ac_tool_prefix}file; then
8987       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8988       if test -n "$file_magic_test_file"; then
8989         case $deplibs_check_method in
8990         "file_magic "*)
8991           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8992           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8993           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8994             $EGREP "$file_magic_regex" > /dev/null; then
8995             :
8996           else
8997             cat <<_LT_EOF 1>&2
8998
8999 *** Warning: the command libtool uses to detect shared libraries,
9000 *** $file_magic_cmd, produces output that libtool cannot recognize.
9001 *** The result is that libtool may fail to recognize shared libraries
9002 *** as such.  This will affect the creation of libtool libraries that
9003 *** depend on shared libraries, but programs linked with such libtool
9004 *** libraries will work regardless of this problem.  Nevertheless, you
9005 *** may want to report the problem to your system manager and/or to
9006 *** bug-libtool@gnu.org
9007
9008 _LT_EOF
9009           fi ;;
9010         esac
9011       fi
9012       break
9013     fi
9014   done
9015   IFS="$lt_save_ifs"
9016   MAGIC_CMD="$lt_save_MAGIC_CMD"
9017   ;;
9018 esac
9019 fi
9020
9021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9022 if test -n "$MAGIC_CMD"; then
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9024 $as_echo "$MAGIC_CMD" >&6; }
9025 else
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029
9030
9031
9032
9033
9034 if test -z "$lt_cv_path_MAGIC_CMD"; then
9035   if test -n "$ac_tool_prefix"; then
9036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9037 $as_echo_n "checking for file... " >&6; }
9038 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9039   $as_echo_n "(cached) " >&6
9040 else
9041   case $MAGIC_CMD in
9042 [\\/*] |  ?:[\\/]*)
9043   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9044   ;;
9045 *)
9046   lt_save_MAGIC_CMD="$MAGIC_CMD"
9047   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9048   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9049   for ac_dir in $ac_dummy; do
9050     IFS="$lt_save_ifs"
9051     test -z "$ac_dir" && ac_dir=.
9052     if test -f $ac_dir/file; then
9053       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9054       if test -n "$file_magic_test_file"; then
9055         case $deplibs_check_method in
9056         "file_magic "*)
9057           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9058           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9059           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9060             $EGREP "$file_magic_regex" > /dev/null; then
9061             :
9062           else
9063             cat <<_LT_EOF 1>&2
9064
9065 *** Warning: the command libtool uses to detect shared libraries,
9066 *** $file_magic_cmd, produces output that libtool cannot recognize.
9067 *** The result is that libtool may fail to recognize shared libraries
9068 *** as such.  This will affect the creation of libtool libraries that
9069 *** depend on shared libraries, but programs linked with such libtool
9070 *** libraries will work regardless of this problem.  Nevertheless, you
9071 *** may want to report the problem to your system manager and/or to
9072 *** bug-libtool@gnu.org
9073
9074 _LT_EOF
9075           fi ;;
9076         esac
9077       fi
9078       break
9079     fi
9080   done
9081   IFS="$lt_save_ifs"
9082   MAGIC_CMD="$lt_save_MAGIC_CMD"
9083   ;;
9084 esac
9085 fi
9086
9087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9088 if test -n "$MAGIC_CMD"; then
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9090 $as_echo "$MAGIC_CMD" >&6; }
9091 else
9092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9094 fi
9095
9096
9097   else
9098     MAGIC_CMD=:
9099   fi
9100 fi
9101
9102   fi
9103   ;;
9104 esac
9105
9106 # Use C for the default configuration in the libtool script
9107
9108 lt_save_CC="$CC"
9109 ac_ext=c
9110 ac_cpp='$CPP $CPPFLAGS'
9111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9114
9115
9116 # Source file extension for C test sources.
9117 ac_ext=c
9118
9119 # Object file extension for compiled C test sources.
9120 objext=o
9121 objext=$objext
9122
9123 # Code to be used in simple compile tests
9124 lt_simple_compile_test_code="int some_variable = 0;"
9125
9126 # Code to be used in simple link tests
9127 lt_simple_link_test_code='int main(){return(0);}'
9128
9129
9130
9131
9132
9133
9134
9135 # If no C compiler was specified, use CC.
9136 LTCC=${LTCC-"$CC"}
9137
9138 # If no C compiler flags were specified, use CFLAGS.
9139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9140
9141 # Allow CC to be a program name with arguments.
9142 compiler=$CC
9143
9144 # Save the default compiler, since it gets overwritten when the other
9145 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9146 compiler_DEFAULT=$CC
9147
9148 # save warnings/boilerplate of simple test code
9149 ac_outfile=conftest.$ac_objext
9150 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9152 _lt_compiler_boilerplate=`cat conftest.err`
9153 $RM conftest*
9154
9155 ac_outfile=conftest.$ac_objext
9156 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9158 _lt_linker_boilerplate=`cat conftest.err`
9159 $RM -r conftest*
9160
9161
9162 ## CAVEAT EMPTOR:
9163 ## There is no encapsulation within the following macros, do not change
9164 ## the running order or otherwise move them around unless you know exactly
9165 ## what you are doing...
9166 if test -n "$compiler"; then
9167
9168 lt_prog_compiler_no_builtin_flag=
9169
9170 if test "$GCC" = yes; then
9171   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9172
9173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9174 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9175 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9176   $as_echo_n "(cached) " >&6
9177 else
9178   lt_cv_prog_compiler_rtti_exceptions=no
9179    ac_outfile=conftest.$ac_objext
9180    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9181    lt_compiler_flag="-fno-rtti -fno-exceptions"
9182    # Insert the option either (1) after the last *FLAGS variable, or
9183    # (2) before a word containing "conftest.", or (3) at the end.
9184    # Note that $ac_compile itself does not contain backslashes and begins
9185    # with a dollar sign (not a hyphen), so the echo should work correctly.
9186    # The option is referenced via a variable to avoid confusing sed.
9187    lt_compile=`echo "$ac_compile" | $SED \
9188    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9189    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9190    -e 's:$: $lt_compiler_flag:'`
9191    (eval echo "\"\$as_me:9191: $lt_compile\"" >&5)
9192    (eval "$lt_compile" 2>conftest.err)
9193    ac_status=$?
9194    cat conftest.err >&5
9195    echo "$as_me:9195: \$? = $ac_status" >&5
9196    if (exit $ac_status) && test -s "$ac_outfile"; then
9197      # The compiler can only warn and ignore the option if not recognized
9198      # So say no if there are warnings other than the usual output.
9199      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9200      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9202        lt_cv_prog_compiler_rtti_exceptions=yes
9203      fi
9204    fi
9205    $RM conftest*
9206
9207 fi
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9209 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9210
9211 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9212     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9213 else
9214     :
9215 fi
9216
9217 fi
9218
9219
9220
9221
9222
9223
9224   lt_prog_compiler_wl=
9225 lt_prog_compiler_pic=
9226 lt_prog_compiler_static=
9227
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9229 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9230
9231   if test "$GCC" = yes; then
9232     lt_prog_compiler_wl='-Wl,'
9233     lt_prog_compiler_static='-static'
9234
9235     case $host_os in
9236       aix*)
9237       # All AIX code is PIC.
9238       if test "$host_cpu" = ia64; then
9239         # AIX 5 now supports IA64 processor
9240         lt_prog_compiler_static='-Bstatic'
9241       fi
9242       ;;
9243
9244     amigaos*)
9245       case $host_cpu in
9246       powerpc)
9247             # see comment about AmigaOS4 .so support
9248             lt_prog_compiler_pic='-fPIC'
9249         ;;
9250       m68k)
9251             # FIXME: we need at least 68020 code to build shared libraries, but
9252             # adding the `-m68020' flag to GCC prevents building anything better,
9253             # like `-m68040'.
9254             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9255         ;;
9256       esac
9257       ;;
9258
9259     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9260       # PIC is the default for these OSes.
9261       ;;
9262
9263     mingw* | cygwin* | pw32* | os2* | cegcc*)
9264       # This hack is so that the source file can tell whether it is being
9265       # built for inclusion in a dll (and should export symbols for example).
9266       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9267       # (--disable-auto-import) libraries
9268       lt_prog_compiler_pic='-DDLL_EXPORT'
9269       ;;
9270
9271     darwin* | rhapsody*)
9272       # PIC is the default on this platform
9273       # Common symbols not allowed in MH_DYLIB files
9274       lt_prog_compiler_pic='-fno-common'
9275       ;;
9276
9277     hpux*)
9278       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9279       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9280       # sets the default TLS model and affects inlining.
9281       case $host_cpu in
9282       hppa*64*)
9283         # +Z the default
9284         ;;
9285       *)
9286         lt_prog_compiler_pic='-fPIC'
9287         ;;
9288       esac
9289       ;;
9290
9291     interix[3-9]*)
9292       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9293       # Instead, we relocate shared libraries at runtime.
9294       ;;
9295
9296     msdosdjgpp*)
9297       # Just because we use GCC doesn't mean we suddenly get shared libraries
9298       # on systems that don't support them.
9299       lt_prog_compiler_can_build_shared=no
9300       enable_shared=no
9301       ;;
9302
9303     *nto* | *qnx*)
9304       # QNX uses GNU C++, but need to define -shared option too, otherwise
9305       # it will coredump.
9306       lt_prog_compiler_pic='-fPIC -shared'
9307       ;;
9308
9309     sysv4*MP*)
9310       if test -d /usr/nec; then
9311         lt_prog_compiler_pic=-Kconform_pic
9312       fi
9313       ;;
9314
9315     *)
9316       lt_prog_compiler_pic='-fPIC'
9317       ;;
9318     esac
9319   else
9320     # PORTME Check for flag to pass linker flags through the system compiler.
9321     case $host_os in
9322     aix*)
9323       lt_prog_compiler_wl='-Wl,'
9324       if test "$host_cpu" = ia64; then
9325         # AIX 5 now supports IA64 processor
9326         lt_prog_compiler_static='-Bstatic'
9327       else
9328         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9329       fi
9330       ;;
9331
9332     mingw* | cygwin* | pw32* | os2* | cegcc*)
9333       # This hack is so that the source file can tell whether it is being
9334       # built for inclusion in a dll (and should export symbols for example).
9335       lt_prog_compiler_pic='-DDLL_EXPORT'
9336       ;;
9337
9338     hpux9* | hpux10* | hpux11*)
9339       lt_prog_compiler_wl='-Wl,'
9340       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9341       # not for PA HP-UX.
9342       case $host_cpu in
9343       hppa*64*|ia64*)
9344         # +Z the default
9345         ;;
9346       *)
9347         lt_prog_compiler_pic='+Z'
9348         ;;
9349       esac
9350       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9351       lt_prog_compiler_static='${wl}-a ${wl}archive'
9352       ;;
9353
9354     irix5* | irix6* | nonstopux*)
9355       lt_prog_compiler_wl='-Wl,'
9356       # PIC (with -KPIC) is the default.
9357       lt_prog_compiler_static='-non_shared'
9358       ;;
9359
9360     linux* | k*bsd*-gnu)
9361       case $cc_basename in
9362       # old Intel for x86_64 which still supported -KPIC.
9363       ecc*)
9364         lt_prog_compiler_wl='-Wl,'
9365         lt_prog_compiler_pic='-KPIC'
9366         lt_prog_compiler_static='-static'
9367         ;;
9368       # icc used to be incompatible with GCC.
9369       # ICC 10 doesn't accept -KPIC any more.
9370       icc* | ifort*)
9371         lt_prog_compiler_wl='-Wl,'
9372         lt_prog_compiler_pic='-fPIC'
9373         lt_prog_compiler_static='-static'
9374         ;;
9375       # Lahey Fortran 8.1.
9376       lf95*)
9377         lt_prog_compiler_wl='-Wl,'
9378         lt_prog_compiler_pic='--shared'
9379         lt_prog_compiler_static='--static'
9380         ;;
9381       pgcc* | pgf77* | pgf90* | pgf95*)
9382         # Portland Group compilers (*not* the Pentium gcc compiler,
9383         # which looks to be a dead project)
9384         lt_prog_compiler_wl='-Wl,'
9385         lt_prog_compiler_pic='-fpic'
9386         lt_prog_compiler_static='-Bstatic'
9387         ;;
9388       ccc*)
9389         lt_prog_compiler_wl='-Wl,'
9390         # All Alpha code is PIC.
9391         lt_prog_compiler_static='-non_shared'
9392         ;;
9393       xl*)
9394         # IBM XL C 8.0/Fortran 10.1 on PPC
9395         lt_prog_compiler_wl='-Wl,'
9396         lt_prog_compiler_pic='-qpic'
9397         lt_prog_compiler_static='-qstaticlink'
9398         ;;
9399       *)
9400         case `$CC -V 2>&1 | sed 5q` in
9401         *Sun\ C*)
9402           # Sun C 5.9
9403           lt_prog_compiler_pic='-KPIC'
9404           lt_prog_compiler_static='-Bstatic'
9405           lt_prog_compiler_wl='-Wl,'
9406           ;;
9407         *Sun\ F*)
9408           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9409           lt_prog_compiler_pic='-KPIC'
9410           lt_prog_compiler_static='-Bstatic'
9411           lt_prog_compiler_wl=''
9412           ;;
9413         esac
9414         ;;
9415       esac
9416       ;;
9417
9418     newsos6)
9419       lt_prog_compiler_pic='-KPIC'
9420       lt_prog_compiler_static='-Bstatic'
9421       ;;
9422
9423     *nto* | *qnx*)
9424       # QNX uses GNU C++, but need to define -shared option too, otherwise
9425       # it will coredump.
9426       lt_prog_compiler_pic='-fPIC -shared'
9427       ;;
9428
9429     osf3* | osf4* | osf5*)
9430       lt_prog_compiler_wl='-Wl,'
9431       # All OSF/1 code is PIC.
9432       lt_prog_compiler_static='-non_shared'
9433       ;;
9434
9435     rdos*)
9436       lt_prog_compiler_static='-non_shared'
9437       ;;
9438
9439     solaris*)
9440       lt_prog_compiler_pic='-KPIC'
9441       lt_prog_compiler_static='-Bstatic'
9442       case $cc_basename in
9443       f77* | f90* | f95*)
9444         lt_prog_compiler_wl='-Qoption ld ';;
9445       *)
9446         lt_prog_compiler_wl='-Wl,';;
9447       esac
9448       ;;
9449
9450     sunos4*)
9451       lt_prog_compiler_wl='-Qoption ld '
9452       lt_prog_compiler_pic='-PIC'
9453       lt_prog_compiler_static='-Bstatic'
9454       ;;
9455
9456     sysv4 | sysv4.2uw2* | sysv4.3*)
9457       lt_prog_compiler_wl='-Wl,'
9458       lt_prog_compiler_pic='-KPIC'
9459       lt_prog_compiler_static='-Bstatic'
9460       ;;
9461
9462     sysv4*MP*)
9463       if test -d /usr/nec ;then
9464         lt_prog_compiler_pic='-Kconform_pic'
9465         lt_prog_compiler_static='-Bstatic'
9466       fi
9467       ;;
9468
9469     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9470       lt_prog_compiler_wl='-Wl,'
9471       lt_prog_compiler_pic='-KPIC'
9472       lt_prog_compiler_static='-Bstatic'
9473       ;;
9474
9475     unicos*)
9476       lt_prog_compiler_wl='-Wl,'
9477       lt_prog_compiler_can_build_shared=no
9478       ;;
9479
9480     uts4*)
9481       lt_prog_compiler_pic='-pic'
9482       lt_prog_compiler_static='-Bstatic'
9483       ;;
9484
9485     *)
9486       lt_prog_compiler_can_build_shared=no
9487       ;;
9488     esac
9489   fi
9490
9491 case $host_os in
9492   # For platforms which do not support PIC, -DPIC is meaningless:
9493   *djgpp*)
9494     lt_prog_compiler_pic=
9495     ;;
9496   *)
9497     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9498     ;;
9499 esac
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9501 $as_echo "$lt_prog_compiler_pic" >&6; }
9502
9503
9504
9505
9506
9507
9508 #
9509 # Check to make sure the PIC flag actually works.
9510 #
9511 if test -n "$lt_prog_compiler_pic"; then
9512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9513 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9514 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9515   $as_echo_n "(cached) " >&6
9516 else
9517   lt_cv_prog_compiler_pic_works=no
9518    ac_outfile=conftest.$ac_objext
9519    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9520    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9521    # Insert the option either (1) after the last *FLAGS variable, or
9522    # (2) before a word containing "conftest.", or (3) at the end.
9523    # Note that $ac_compile itself does not contain backslashes and begins
9524    # with a dollar sign (not a hyphen), so the echo should work correctly.
9525    # The option is referenced via a variable to avoid confusing sed.
9526    lt_compile=`echo "$ac_compile" | $SED \
9527    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9528    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9529    -e 's:$: $lt_compiler_flag:'`
9530    (eval echo "\"\$as_me:9530: $lt_compile\"" >&5)
9531    (eval "$lt_compile" 2>conftest.err)
9532    ac_status=$?
9533    cat conftest.err >&5
9534    echo "$as_me:9534: \$? = $ac_status" >&5
9535    if (exit $ac_status) && test -s "$ac_outfile"; then
9536      # The compiler can only warn and ignore the option if not recognized
9537      # So say no if there are warnings other than the usual output.
9538      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9539      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9540      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9541        lt_cv_prog_compiler_pic_works=yes
9542      fi
9543    fi
9544    $RM conftest*
9545
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9548 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9549
9550 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9551     case $lt_prog_compiler_pic in
9552      "" | " "*) ;;
9553      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9554      esac
9555 else
9556     lt_prog_compiler_pic=
9557      lt_prog_compiler_can_build_shared=no
9558 fi
9559
9560 fi
9561
9562
9563
9564
9565
9566
9567 #
9568 # Check to make sure the static flag actually works.
9569 #
9570 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9572 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9573 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9574   $as_echo_n "(cached) " >&6
9575 else
9576   lt_cv_prog_compiler_static_works=no
9577    save_LDFLAGS="$LDFLAGS"
9578    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9579    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9580    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9581      # The linker can only warn and ignore the option if not recognized
9582      # So say no if there are warnings
9583      if test -s conftest.err; then
9584        # Append any errors to the config.log.
9585        cat conftest.err 1>&5
9586        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9587        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9588        if diff conftest.exp conftest.er2 >/dev/null; then
9589          lt_cv_prog_compiler_static_works=yes
9590        fi
9591      else
9592        lt_cv_prog_compiler_static_works=yes
9593      fi
9594    fi
9595    $RM -r conftest*
9596    LDFLAGS="$save_LDFLAGS"
9597
9598 fi
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9600 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9601
9602 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9603     :
9604 else
9605     lt_prog_compiler_static=
9606 fi
9607
9608
9609
9610
9611
9612
9613
9614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9615 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9616 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9617   $as_echo_n "(cached) " >&6
9618 else
9619   lt_cv_prog_compiler_c_o=no
9620    $RM -r conftest 2>/dev/null
9621    mkdir conftest
9622    cd conftest
9623    mkdir out
9624    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9625
9626    lt_compiler_flag="-o out/conftest2.$ac_objext"
9627    # Insert the option either (1) after the last *FLAGS variable, or
9628    # (2) before a word containing "conftest.", or (3) at the end.
9629    # Note that $ac_compile itself does not contain backslashes and begins
9630    # with a dollar sign (not a hyphen), so the echo should work correctly.
9631    lt_compile=`echo "$ac_compile" | $SED \
9632    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9633    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9634    -e 's:$: $lt_compiler_flag:'`
9635    (eval echo "\"\$as_me:9635: $lt_compile\"" >&5)
9636    (eval "$lt_compile" 2>out/conftest.err)
9637    ac_status=$?
9638    cat out/conftest.err >&5
9639    echo "$as_me:9639: \$? = $ac_status" >&5
9640    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9641    then
9642      # The compiler can only warn and ignore the option if not recognized
9643      # So say no if there are warnings
9644      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9645      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9646      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9647        lt_cv_prog_compiler_c_o=yes
9648      fi
9649    fi
9650    chmod u+w . 2>&5
9651    $RM conftest*
9652    # SGI C++ compiler will create directory out/ii_files/ for
9653    # template instantiation
9654    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9655    $RM out/* && rmdir out
9656    cd ..
9657    $RM -r conftest
9658    $RM conftest*
9659
9660 fi
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9662 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9663
9664
9665
9666
9667
9668
9669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9670 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9671 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9672   $as_echo_n "(cached) " >&6
9673 else
9674   lt_cv_prog_compiler_c_o=no
9675    $RM -r conftest 2>/dev/null
9676    mkdir conftest
9677    cd conftest
9678    mkdir out
9679    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9680
9681    lt_compiler_flag="-o out/conftest2.$ac_objext"
9682    # Insert the option either (1) after the last *FLAGS variable, or
9683    # (2) before a word containing "conftest.", or (3) at the end.
9684    # Note that $ac_compile itself does not contain backslashes and begins
9685    # with a dollar sign (not a hyphen), so the echo should work correctly.
9686    lt_compile=`echo "$ac_compile" | $SED \
9687    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9688    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9689    -e 's:$: $lt_compiler_flag:'`
9690    (eval echo "\"\$as_me:9690: $lt_compile\"" >&5)
9691    (eval "$lt_compile" 2>out/conftest.err)
9692    ac_status=$?
9693    cat out/conftest.err >&5
9694    echo "$as_me:9694: \$? = $ac_status" >&5
9695    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9696    then
9697      # The compiler can only warn and ignore the option if not recognized
9698      # So say no if there are warnings
9699      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9700      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9701      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9702        lt_cv_prog_compiler_c_o=yes
9703      fi
9704    fi
9705    chmod u+w . 2>&5
9706    $RM conftest*
9707    # SGI C++ compiler will create directory out/ii_files/ for
9708    # template instantiation
9709    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9710    $RM out/* && rmdir out
9711    cd ..
9712    $RM -r conftest
9713    $RM conftest*
9714
9715 fi
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9717 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9718
9719
9720
9721
9722 hard_links="nottested"
9723 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9724   # do not overwrite the value of need_locks provided by the user
9725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9726 $as_echo_n "checking if we can lock with hard links... " >&6; }
9727   hard_links=yes
9728   $RM conftest*
9729   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9730   touch conftest.a
9731   ln conftest.a conftest.b 2>&5 || hard_links=no
9732   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9734 $as_echo "$hard_links" >&6; }
9735   if test "$hard_links" = no; then
9736     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9737 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9738     need_locks=warn
9739   fi
9740 else
9741   need_locks=no
9742 fi
9743
9744
9745
9746
9747
9748
9749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9750 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9751
9752   runpath_var=
9753   allow_undefined_flag=
9754   always_export_symbols=no
9755   archive_cmds=
9756   archive_expsym_cmds=
9757   compiler_needs_object=no
9758   enable_shared_with_static_runtimes=no
9759   export_dynamic_flag_spec=
9760   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9761   hardcode_automatic=no
9762   hardcode_direct=no
9763   hardcode_direct_absolute=no
9764   hardcode_libdir_flag_spec=
9765   hardcode_libdir_flag_spec_ld=
9766   hardcode_libdir_separator=
9767   hardcode_minus_L=no
9768   hardcode_shlibpath_var=unsupported
9769   inherit_rpath=no
9770   link_all_deplibs=unknown
9771   module_cmds=
9772   module_expsym_cmds=
9773   old_archive_from_new_cmds=
9774   old_archive_from_expsyms_cmds=
9775   thread_safe_flag_spec=
9776   whole_archive_flag_spec=
9777   # include_expsyms should be a list of space-separated symbols to be *always*
9778   # included in the symbol list
9779   include_expsyms=
9780   # exclude_expsyms can be an extended regexp of symbols to exclude
9781   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9782   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9783   # as well as any symbol that contains `d'.
9784   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9785   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9786   # platforms (ab)use it in PIC code, but their linkers get confused if
9787   # the symbol is explicitly referenced.  Since portable code cannot
9788   # rely on this symbol name, it's probably fine to never include it in
9789   # preloaded symbol tables.
9790   # Exclude shared library initialization/finalization symbols.
9791   extract_expsyms_cmds=
9792
9793   case $host_os in
9794   cygwin* | mingw* | pw32* | cegcc*)
9795     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9796     # When not using gcc, we currently assume that we are using
9797     # Microsoft Visual C++.
9798     if test "$GCC" != yes; then
9799       with_gnu_ld=no
9800     fi
9801     ;;
9802   interix*)
9803     # we just hope/assume this is gcc and not c89 (= MSVC++)
9804     with_gnu_ld=yes
9805     ;;
9806   openbsd*)
9807     with_gnu_ld=no
9808     ;;
9809   esac
9810
9811   ld_shlibs=yes
9812   if test "$with_gnu_ld" = yes; then
9813     # If archive_cmds runs LD, not CC, wlarc should be empty
9814     wlarc='${wl}'
9815
9816     # Set some defaults for GNU ld with shared library support. These
9817     # are reset later if shared libraries are not supported. Putting them
9818     # here allows them to be overridden if necessary.
9819     runpath_var=LD_RUN_PATH
9820     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821     export_dynamic_flag_spec='${wl}--export-dynamic'
9822     # ancient GNU ld didn't support --whole-archive et. al.
9823     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9824       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9825     else
9826       whole_archive_flag_spec=
9827     fi
9828     supports_anon_versioning=no
9829     case `$LD -v 2>&1` in
9830       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9831       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9832       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9833       *\ 2.11.*) ;; # other 2.11 versions
9834       *) supports_anon_versioning=yes ;;
9835     esac
9836
9837     # See if GNU ld supports shared libraries.
9838     case $host_os in
9839     aix[3-9]*)
9840       # On AIX/PPC, the GNU linker is very broken
9841       if test "$host_cpu" != ia64; then
9842         ld_shlibs=no
9843         cat <<_LT_EOF 1>&2
9844
9845 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9846 *** to be unable to reliably create shared libraries on AIX.
9847 *** Therefore, libtool is disabling shared libraries support.  If you
9848 *** really care for shared libraries, you may want to modify your PATH
9849 *** so that a non-GNU linker is found, and then restart.
9850
9851 _LT_EOF
9852       fi
9853       ;;
9854
9855     amigaos*)
9856       case $host_cpu in
9857       powerpc)
9858             # see comment about AmigaOS4 .so support
9859             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9860             archive_expsym_cmds=''
9861         ;;
9862       m68k)
9863             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)'
9864             hardcode_libdir_flag_spec='-L$libdir'
9865             hardcode_minus_L=yes
9866         ;;
9867       esac
9868       ;;
9869
9870     beos*)
9871       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9872         allow_undefined_flag=unsupported
9873         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9874         # support --undefined.  This deserves some investigation.  FIXME
9875         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9876       else
9877         ld_shlibs=no
9878       fi
9879       ;;
9880
9881     cygwin* | mingw* | pw32* | cegcc*)
9882       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9883       # as there is no search path for DLLs.
9884       hardcode_libdir_flag_spec='-L$libdir'
9885       allow_undefined_flag=unsupported
9886       always_export_symbols=no
9887       enable_shared_with_static_runtimes=yes
9888       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9889
9890       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9891         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9892         # If the export-symbols file already is a .def file (1st line
9893         # is EXPORTS), use it as is; otherwise, prepend...
9894         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9895           cp $export_symbols $output_objdir/$soname.def;
9896         else
9897           echo EXPORTS > $output_objdir/$soname.def;
9898           cat $export_symbols >> $output_objdir/$soname.def;
9899         fi~
9900         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9901       else
9902         ld_shlibs=no
9903       fi
9904       ;;
9905
9906     interix[3-9]*)
9907       hardcode_direct=no
9908       hardcode_shlibpath_var=no
9909       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9910       export_dynamic_flag_spec='${wl}-E'
9911       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9912       # Instead, shared libraries are loaded at an image base (0x10000000 by
9913       # default) and relocated if they conflict, which is a slow very memory
9914       # consuming and fragmenting process.  To avoid this, we pick a random,
9915       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9916       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9917       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9918       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'
9919       ;;
9920
9921     gnu* | linux* | tpf* | k*bsd*-gnu)
9922       tmp_diet=no
9923       if test "$host_os" = linux-dietlibc; then
9924         case $cc_basename in
9925           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9926         esac
9927       fi
9928       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9929          && test "$tmp_diet" = no
9930       then
9931         tmp_addflag=
9932         tmp_sharedflag='-shared'
9933         case $cc_basename,$host_cpu in
9934         pgcc*)                          # Portland Group C compiler
9935           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9936           tmp_addflag=' $pic_flag'
9937           ;;
9938         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9939           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9940           tmp_addflag=' $pic_flag -Mnomain' ;;
9941         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9942           tmp_addflag=' -i_dynamic' ;;
9943         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9944           tmp_addflag=' -i_dynamic -nofor_main' ;;
9945         ifc* | ifort*)                  # Intel Fortran compiler
9946           tmp_addflag=' -nofor_main' ;;
9947         lf95*)                          # Lahey Fortran 8.1
9948           whole_archive_flag_spec=
9949           tmp_sharedflag='--shared' ;;
9950         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9951           tmp_sharedflag='-qmkshrobj'
9952           tmp_addflag= ;;
9953         esac
9954         case `$CC -V 2>&1 | sed 5q` in
9955         *Sun\ C*)                       # Sun C 5.9
9956           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9957           compiler_needs_object=yes
9958           tmp_sharedflag='-G' ;;
9959         *Sun\ F*)                       # Sun Fortran 8.3
9960           tmp_sharedflag='-G' ;;
9961         esac
9962         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963
9964         if test "x$supports_anon_versioning" = xyes; then
9965           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9966             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9967             echo "local: *; };" >> $output_objdir/$libname.ver~
9968             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9969         fi
9970
9971         case $cc_basename in
9972         xlf*)
9973           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9974           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9975           hardcode_libdir_flag_spec=
9976           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9977           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9978           if test "x$supports_anon_versioning" = xyes; then
9979             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9980               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9981               echo "local: *; };" >> $output_objdir/$libname.ver~
9982               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9983           fi
9984           ;;
9985         esac
9986       else
9987         ld_shlibs=no
9988       fi
9989       ;;
9990
9991     netbsd*)
9992       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9993         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9994         wlarc=
9995       else
9996         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9997         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9998       fi
9999       ;;
10000
10001     solaris*)
10002       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10003         ld_shlibs=no
10004         cat <<_LT_EOF 1>&2
10005
10006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10007 *** create shared libraries on Solaris systems.  Therefore, libtool
10008 *** is disabling shared libraries support.  We urge you to upgrade GNU
10009 *** binutils to release 2.9.1 or newer.  Another option is to modify
10010 *** your PATH or compiler configuration so that the native linker is
10011 *** used, and then restart.
10012
10013 _LT_EOF
10014       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10015         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10017       else
10018         ld_shlibs=no
10019       fi
10020       ;;
10021
10022     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10023       case `$LD -v 2>&1` in
10024         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10025         ld_shlibs=no
10026         cat <<_LT_EOF 1>&2
10027
10028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10029 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10030 *** is disabling shared libraries support.  We urge you to upgrade GNU
10031 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10032 *** your PATH or compiler configuration so that the native linker is
10033 *** used, and then restart.
10034
10035 _LT_EOF
10036         ;;
10037         *)
10038           # For security reasons, it is highly recommended that you always
10039           # use absolute paths for naming shared libraries, and exclude the
10040           # DT_RUNPATH tag from executables and libraries.  But doing so
10041           # requires that you compile everything twice, which is a pain.
10042           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10043             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10044             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10045             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10046           else
10047             ld_shlibs=no
10048           fi
10049         ;;
10050       esac
10051       ;;
10052
10053     sunos4*)
10054       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10055       wlarc=
10056       hardcode_direct=yes
10057       hardcode_shlibpath_var=no
10058       ;;
10059
10060     *)
10061       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10062         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10063         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10064       else
10065         ld_shlibs=no
10066       fi
10067       ;;
10068     esac
10069
10070     if test "$ld_shlibs" = no; then
10071       runpath_var=
10072       hardcode_libdir_flag_spec=
10073       export_dynamic_flag_spec=
10074       whole_archive_flag_spec=
10075     fi
10076   else
10077     # PORTME fill in a description of your system's linker (not GNU ld)
10078     case $host_os in
10079     aix3*)
10080       allow_undefined_flag=unsupported
10081       always_export_symbols=yes
10082       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'
10083       # Note: this linker hardcodes the directories in LIBPATH if there
10084       # are no directories specified by -L.
10085       hardcode_minus_L=yes
10086       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10087         # Neither direct hardcoding nor static linking is supported with a
10088         # broken collect2.
10089         hardcode_direct=unsupported
10090       fi
10091       ;;
10092
10093     aix[4-9]*)
10094       if test "$host_cpu" = ia64; then
10095         # On IA64, the linker does run time linking by default, so we don't
10096         # have to do anything special.
10097         aix_use_runtimelinking=no
10098         exp_sym_flag='-Bexport'
10099         no_entry_flag=""
10100       else
10101         # If we're using GNU nm, then we don't want the "-C" option.
10102         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10103         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10104           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10105         else
10106           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'
10107         fi
10108         aix_use_runtimelinking=no
10109
10110         # Test if we are trying to use run time linking or normal
10111         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10112         # need to do runtime linking.
10113         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10114           for ld_flag in $LDFLAGS; do
10115           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10116             aix_use_runtimelinking=yes
10117             break
10118           fi
10119           done
10120           ;;
10121         esac
10122
10123         exp_sym_flag='-bexport'
10124         no_entry_flag='-bnoentry'
10125       fi
10126
10127       # When large executables or shared objects are built, AIX ld can
10128       # have problems creating the table of contents.  If linking a library
10129       # or program results in "error TOC overflow" add -mminimal-toc to
10130       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10131       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10132
10133       archive_cmds=''
10134       hardcode_direct=yes
10135       hardcode_direct_absolute=yes
10136       hardcode_libdir_separator=':'
10137       link_all_deplibs=yes
10138       file_list_spec='${wl}-f,'
10139
10140       if test "$GCC" = yes; then
10141         case $host_os in aix4.[012]|aix4.[012].*)
10142         # We only want to do this on AIX 4.2 and lower, the check
10143         # below for broken collect2 doesn't work under 4.3+
10144           collect2name=`${CC} -print-prog-name=collect2`
10145           if test -f "$collect2name" &&
10146            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10147           then
10148           # We have reworked collect2
10149           :
10150           else
10151           # We have old collect2
10152           hardcode_direct=unsupported
10153           # It fails to find uninstalled libraries when the uninstalled
10154           # path is not listed in the libpath.  Setting hardcode_minus_L
10155           # to unsupported forces relinking
10156           hardcode_minus_L=yes
10157           hardcode_libdir_flag_spec='-L$libdir'
10158           hardcode_libdir_separator=
10159           fi
10160           ;;
10161         esac
10162         shared_flag='-shared'
10163         if test "$aix_use_runtimelinking" = yes; then
10164           shared_flag="$shared_flag "'${wl}-G'
10165         fi
10166       else
10167         # not using gcc
10168         if test "$host_cpu" = ia64; then
10169         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10170         # chokes on -Wl,-G. The following line is correct:
10171           shared_flag='-G'
10172         else
10173           if test "$aix_use_runtimelinking" = yes; then
10174             shared_flag='${wl}-G'
10175           else
10176             shared_flag='${wl}-bM:SRE'
10177           fi
10178         fi
10179       fi
10180
10181       export_dynamic_flag_spec='${wl}-bexpall'
10182       # It seems that -bexpall does not export symbols beginning with
10183       # underscore (_), so it is better to generate a list of symbols to export.
10184       always_export_symbols=yes
10185       if test "$aix_use_runtimelinking" = yes; then
10186         # Warning - without using the other runtime loading flags (-brtl),
10187         # -berok will link without error, but may produce a broken library.
10188         allow_undefined_flag='-berok'
10189         # Determine the default libpath from the value encoded in an
10190         # empty executable.
10191         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h.  */
10193
10194 int
10195 main ()
10196 {
10197
10198   ;
10199   return 0;
10200 }
10201 _ACEOF
10202 if ac_fn_c_try_link "$LINENO"; then :
10203
10204 lt_aix_libpath_sed='
10205     /Import File Strings/,/^$/ {
10206         /^0/ {
10207             s/^0  *\(.*\)$/\1/
10208             p
10209         }
10210     }'
10211 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10212 # Check for a 64-bit object if we didn't find anything.
10213 if test -z "$aix_libpath"; then
10214   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10215 fi
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext \
10218     conftest$ac_exeext conftest.$ac_ext
10219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10220
10221         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10222         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10223       else
10224         if test "$host_cpu" = ia64; then
10225           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10226           allow_undefined_flag="-z nodefs"
10227           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"
10228         else
10229          # Determine the default libpath from the value encoded in an
10230          # empty executable.
10231          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h.  */
10233
10234 int
10235 main ()
10236 {
10237
10238   ;
10239   return 0;
10240 }
10241 _ACEOF
10242 if ac_fn_c_try_link "$LINENO"; then :
10243
10244 lt_aix_libpath_sed='
10245     /Import File Strings/,/^$/ {
10246         /^0/ {
10247             s/^0  *\(.*\)$/\1/
10248             p
10249         }
10250     }'
10251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10252 # Check for a 64-bit object if we didn't find anything.
10253 if test -z "$aix_libpath"; then
10254   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10255 fi
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext \
10258     conftest$ac_exeext conftest.$ac_ext
10259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10260
10261          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10262           # Warning - without using the other run time loading flags,
10263           # -berok will link without error, but may produce a broken library.
10264           no_undefined_flag=' ${wl}-bernotok'
10265           allow_undefined_flag=' ${wl}-berok'
10266           # Exported symbols can be pulled into shared objects from archives
10267           whole_archive_flag_spec='$convenience'
10268           archive_cmds_need_lc=yes
10269           # This is similar to how AIX traditionally builds its shared libraries.
10270           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'
10271         fi
10272       fi
10273       ;;
10274
10275     amigaos*)
10276       case $host_cpu in
10277       powerpc)
10278             # see comment about AmigaOS4 .so support
10279             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10280             archive_expsym_cmds=''
10281         ;;
10282       m68k)
10283             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)'
10284             hardcode_libdir_flag_spec='-L$libdir'
10285             hardcode_minus_L=yes
10286         ;;
10287       esac
10288       ;;
10289
10290     bsdi[45]*)
10291       export_dynamic_flag_spec=-rdynamic
10292       ;;
10293
10294     cygwin* | mingw* | pw32* | cegcc*)
10295       # When not using gcc, we currently assume that we are using
10296       # Microsoft Visual C++.
10297       # hardcode_libdir_flag_spec is actually meaningless, as there is
10298       # no search path for DLLs.
10299       hardcode_libdir_flag_spec=' '
10300       allow_undefined_flag=unsupported
10301       # Tell ltmain to make .lib files, not .a files.
10302       libext=lib
10303       # Tell ltmain to make .dll files, not .so files.
10304       shrext_cmds=".dll"
10305       # FIXME: Setting linknames here is a bad hack.
10306       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10307       # The linker will automatically build a .lib file if we build a DLL.
10308       old_archive_from_new_cmds='true'
10309       # FIXME: Should let the user specify the lib program.
10310       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10311       fix_srcfile_path='`cygpath -w "$srcfile"`'
10312       enable_shared_with_static_runtimes=yes
10313       ;;
10314
10315     darwin* | rhapsody*)
10316
10317
10318   archive_cmds_need_lc=no
10319   hardcode_direct=no
10320   hardcode_automatic=yes
10321   hardcode_shlibpath_var=unsupported
10322   whole_archive_flag_spec=''
10323   link_all_deplibs=yes
10324   allow_undefined_flag="$_lt_dar_allow_undefined"
10325   case $cc_basename in
10326      ifort*) _lt_dar_can_shared=yes ;;
10327      *) _lt_dar_can_shared=$GCC ;;
10328   esac
10329   if test "$_lt_dar_can_shared" = "yes"; then
10330     output_verbose_link_cmd=echo
10331     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10332     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10333     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}"
10334     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}"
10335
10336   else
10337   ld_shlibs=no
10338   fi
10339
10340       ;;
10341
10342     dgux*)
10343       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344       hardcode_libdir_flag_spec='-L$libdir'
10345       hardcode_shlibpath_var=no
10346       ;;
10347
10348     freebsd1*)
10349       ld_shlibs=no
10350       ;;
10351
10352     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10353     # support.  Future versions do this automatically, but an explicit c++rt0.o
10354     # does not break anything, and helps significantly (at the cost of a little
10355     # extra space).
10356     freebsd2.2*)
10357       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10358       hardcode_libdir_flag_spec='-R$libdir'
10359       hardcode_direct=yes
10360       hardcode_shlibpath_var=no
10361       ;;
10362
10363     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10364     freebsd2*)
10365       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10366       hardcode_direct=yes
10367       hardcode_minus_L=yes
10368       hardcode_shlibpath_var=no
10369       ;;
10370
10371     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10372     freebsd* | dragonfly*)
10373       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10374       hardcode_libdir_flag_spec='-R$libdir'
10375       hardcode_direct=yes
10376       hardcode_shlibpath_var=no
10377       ;;
10378
10379     hpux9*)
10380       if test "$GCC" = yes; then
10381         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10382       else
10383         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'
10384       fi
10385       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10386       hardcode_libdir_separator=:
10387       hardcode_direct=yes
10388
10389       # hardcode_minus_L: Not really in the search PATH,
10390       # but as the default location of the library.
10391       hardcode_minus_L=yes
10392       export_dynamic_flag_spec='${wl}-E'
10393       ;;
10394
10395     hpux10*)
10396       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10397         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10398       else
10399         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10400       fi
10401       if test "$with_gnu_ld" = no; then
10402         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10403         hardcode_libdir_flag_spec_ld='+b $libdir'
10404         hardcode_libdir_separator=:
10405         hardcode_direct=yes
10406         hardcode_direct_absolute=yes
10407         export_dynamic_flag_spec='${wl}-E'
10408         # hardcode_minus_L: Not really in the search PATH,
10409         # but as the default location of the library.
10410         hardcode_minus_L=yes
10411       fi
10412       ;;
10413
10414     hpux11*)
10415       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10416         case $host_cpu in
10417         hppa*64*)
10418           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10419           ;;
10420         ia64*)
10421           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10422           ;;
10423         *)
10424           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10425           ;;
10426         esac
10427       else
10428         case $host_cpu in
10429         hppa*64*)
10430           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10431           ;;
10432         ia64*)
10433           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10434           ;;
10435         *)
10436           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10437           ;;
10438         esac
10439       fi
10440       if test "$with_gnu_ld" = no; then
10441         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10442         hardcode_libdir_separator=:
10443
10444         case $host_cpu in
10445         hppa*64*|ia64*)
10446           hardcode_direct=no
10447           hardcode_shlibpath_var=no
10448           ;;
10449         *)
10450           hardcode_direct=yes
10451           hardcode_direct_absolute=yes
10452           export_dynamic_flag_spec='${wl}-E'
10453
10454           # hardcode_minus_L: Not really in the search PATH,
10455           # but as the default location of the library.
10456           hardcode_minus_L=yes
10457           ;;
10458         esac
10459       fi
10460       ;;
10461
10462     irix5* | irix6* | nonstopux*)
10463       if test "$GCC" = yes; then
10464         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10465         # Try to use the -exported_symbol ld option, if it does not
10466         # work, assume that -exports_file does not work either and
10467         # implicitly export all symbols.
10468         save_LDFLAGS="$LDFLAGS"
10469         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10470         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h.  */
10472 int foo(void) {}
10473 _ACEOF
10474 if ac_fn_c_try_link "$LINENO"; then :
10475   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10476
10477 fi
10478 rm -f core conftest.err conftest.$ac_objext \
10479     conftest$ac_exeext conftest.$ac_ext
10480         LDFLAGS="$save_LDFLAGS"
10481       else
10482         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10483         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10484       fi
10485       archive_cmds_need_lc='no'
10486       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10487       hardcode_libdir_separator=:
10488       inherit_rpath=yes
10489       link_all_deplibs=yes
10490       ;;
10491
10492     netbsd*)
10493       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10494         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10495       else
10496         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10497       fi
10498       hardcode_libdir_flag_spec='-R$libdir'
10499       hardcode_direct=yes
10500       hardcode_shlibpath_var=no
10501       ;;
10502
10503     newsos6)
10504       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10505       hardcode_direct=yes
10506       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10507       hardcode_libdir_separator=:
10508       hardcode_shlibpath_var=no
10509       ;;
10510
10511     *nto* | *qnx*)
10512       ;;
10513
10514     openbsd*)
10515       if test -f /usr/libexec/ld.so; then
10516         hardcode_direct=yes
10517         hardcode_shlibpath_var=no
10518         hardcode_direct_absolute=yes
10519         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10520           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10521           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10522           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10523           export_dynamic_flag_spec='${wl}-E'
10524         else
10525           case $host_os in
10526            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10527              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10528              hardcode_libdir_flag_spec='-R$libdir'
10529              ;;
10530            *)
10531              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10532              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10533              ;;
10534           esac
10535         fi
10536       else
10537         ld_shlibs=no
10538       fi
10539       ;;
10540
10541     os2*)
10542       hardcode_libdir_flag_spec='-L$libdir'
10543       hardcode_minus_L=yes
10544       allow_undefined_flag=unsupported
10545       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'
10546       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10547       ;;
10548
10549     osf3*)
10550       if test "$GCC" = yes; then
10551         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10552         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10553       else
10554         allow_undefined_flag=' -expect_unresolved \*'
10555         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10556       fi
10557       archive_cmds_need_lc='no'
10558       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10559       hardcode_libdir_separator=:
10560       ;;
10561
10562     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10563       if test "$GCC" = yes; then
10564         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10565         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10566         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10567       else
10568         allow_undefined_flag=' -expect_unresolved \*'
10569         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10570         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~
10571         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10572
10573         # Both c and cxx compiler support -rpath directly
10574         hardcode_libdir_flag_spec='-rpath $libdir'
10575       fi
10576       archive_cmds_need_lc='no'
10577       hardcode_libdir_separator=:
10578       ;;
10579
10580     solaris*)
10581       no_undefined_flag=' -z defs'
10582       if test "$GCC" = yes; then
10583         wlarc='${wl}'
10584         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10585         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10586           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10587       else
10588         case `$CC -V 2>&1` in
10589         *"Compilers 5.0"*)
10590           wlarc=''
10591           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10593           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10594           ;;
10595         *)
10596           wlarc='${wl}'
10597           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10598           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10599           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10600           ;;
10601         esac
10602       fi
10603       hardcode_libdir_flag_spec='-R$libdir'
10604       hardcode_shlibpath_var=no
10605       case $host_os in
10606       solaris2.[0-5] | solaris2.[0-5].*) ;;
10607       *)
10608         # The compiler driver will combine and reorder linker options,
10609         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10610         # but is careful enough not to reorder.
10611         # Supported since Solaris 2.6 (maybe 2.5.1?)
10612         if test "$GCC" = yes; then
10613           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10614         else
10615           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10616         fi
10617         ;;
10618       esac
10619       link_all_deplibs=yes
10620       ;;
10621
10622     sunos4*)
10623       if test "x$host_vendor" = xsequent; then
10624         # Use $CC to link under sequent, because it throws in some extra .o
10625         # files that make .init and .fini sections work.
10626         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10627       else
10628         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10629       fi
10630       hardcode_libdir_flag_spec='-L$libdir'
10631       hardcode_direct=yes
10632       hardcode_minus_L=yes
10633       hardcode_shlibpath_var=no
10634       ;;
10635
10636     sysv4)
10637       case $host_vendor in
10638         sni)
10639           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640           hardcode_direct=yes # is this really true???
10641         ;;
10642         siemens)
10643           ## LD is ld it makes a PLAMLIB
10644           ## CC just makes a GrossModule.
10645           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10646           reload_cmds='$CC -r -o $output$reload_objs'
10647           hardcode_direct=no
10648         ;;
10649         motorola)
10650           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10651           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10652         ;;
10653       esac
10654       runpath_var='LD_RUN_PATH'
10655       hardcode_shlibpath_var=no
10656       ;;
10657
10658     sysv4.3*)
10659       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10660       hardcode_shlibpath_var=no
10661       export_dynamic_flag_spec='-Bexport'
10662       ;;
10663
10664     sysv4*MP*)
10665       if test -d /usr/nec; then
10666         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10667         hardcode_shlibpath_var=no
10668         runpath_var=LD_RUN_PATH
10669         hardcode_runpath_var=yes
10670         ld_shlibs=yes
10671       fi
10672       ;;
10673
10674     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10675       no_undefined_flag='${wl}-z,text'
10676       archive_cmds_need_lc=no
10677       hardcode_shlibpath_var=no
10678       runpath_var='LD_RUN_PATH'
10679
10680       if test "$GCC" = yes; then
10681         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10683       else
10684         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10686       fi
10687       ;;
10688
10689     sysv5* | sco3.2v5* | sco5v6*)
10690       # Note: We can NOT use -z defs as we might desire, because we do not
10691       # link with -lc, and that would cause any symbols used from libc to
10692       # always be unresolved, which means just about no library would
10693       # ever link correctly.  If we're not using GNU ld we use -z text
10694       # though, which does catch some bad symbols but isn't as heavy-handed
10695       # as -z defs.
10696       no_undefined_flag='${wl}-z,text'
10697       allow_undefined_flag='${wl}-z,nodefs'
10698       archive_cmds_need_lc=no
10699       hardcode_shlibpath_var=no
10700       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10701       hardcode_libdir_separator=':'
10702       link_all_deplibs=yes
10703       export_dynamic_flag_spec='${wl}-Bexport'
10704       runpath_var='LD_RUN_PATH'
10705
10706       if test "$GCC" = yes; then
10707         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10709       else
10710         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10712       fi
10713       ;;
10714
10715     uts4*)
10716       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10717       hardcode_libdir_flag_spec='-L$libdir'
10718       hardcode_shlibpath_var=no
10719       ;;
10720
10721     *)
10722       ld_shlibs=no
10723       ;;
10724     esac
10725
10726     if test x$host_vendor = xsni; then
10727       case $host in
10728       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10729         export_dynamic_flag_spec='${wl}-Blargedynsym'
10730         ;;
10731       esac
10732     fi
10733   fi
10734
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10736 $as_echo "$ld_shlibs" >&6; }
10737 test "$ld_shlibs" = no && can_build_shared=no
10738
10739 with_gnu_ld=$with_gnu_ld
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755 #
10756 # Do we need to explicitly link libc?
10757 #
10758 case "x$archive_cmds_need_lc" in
10759 x|xyes)
10760   # Assume -lc should be added
10761   archive_cmds_need_lc=yes
10762
10763   if test "$enable_shared" = yes && test "$GCC" = yes; then
10764     case $archive_cmds in
10765     *'~'*)
10766       # FIXME: we may have to deal with multi-command sequences.
10767       ;;
10768     '$CC '*)
10769       # Test whether the compiler implicitly links with -lc since on some
10770       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10771       # to ld, don't add -lc before -lgcc.
10772       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10774       $RM conftest*
10775       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10776
10777       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10778   (eval $ac_compile) 2>&5
10779   ac_status=$?
10780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10781   test $ac_status = 0; } 2>conftest.err; then
10782         soname=conftest
10783         lib=conftest
10784         libobjs=conftest.$ac_objext
10785         deplibs=
10786         wl=$lt_prog_compiler_wl
10787         pic_flag=$lt_prog_compiler_pic
10788         compiler_flags=-v
10789         linker_flags=-v
10790         verstring=
10791         output_objdir=.
10792         libname=conftest
10793         lt_save_allow_undefined_flag=$allow_undefined_flag
10794         allow_undefined_flag=
10795         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10796   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10797   ac_status=$?
10798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10799   test $ac_status = 0; }
10800         then
10801           archive_cmds_need_lc=no
10802         else
10803           archive_cmds_need_lc=yes
10804         fi
10805         allow_undefined_flag=$lt_save_allow_undefined_flag
10806       else
10807         cat conftest.err 1>&5
10808       fi
10809       $RM conftest*
10810       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10811 $as_echo "$archive_cmds_need_lc" >&6; }
10812       ;;
10813     esac
10814   fi
10815   ;;
10816 esac
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10975 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10976
10977 if test "$GCC" = yes; then
10978   case $host_os in
10979     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10980     *) lt_awk_arg="/^libraries:/" ;;
10981   esac
10982   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10983   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10984     # if the path contains ";" then we assume it to be the separator
10985     # otherwise default to the standard path separator (i.e. ":") - it is
10986     # assumed that no part of a normal pathname contains ";" but that should
10987     # okay in the real world where ";" in dirpaths is itself problematic.
10988     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10989   else
10990     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10991   fi
10992   # Ok, now we have the path, separated by spaces, we can step through it
10993   # and add multilib dir if necessary.
10994   lt_tmp_lt_search_path_spec=
10995   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10996   for lt_sys_path in $lt_search_path_spec; do
10997     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10998       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10999     else
11000       test -d "$lt_sys_path" && \
11001         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11002     fi
11003   done
11004   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11005 BEGIN {RS=" "; FS="/|\n";} {
11006   lt_foo="";
11007   lt_count=0;
11008   for (lt_i = NF; lt_i > 0; lt_i--) {
11009     if ($lt_i != "" && $lt_i != ".") {
11010       if ($lt_i == "..") {
11011         lt_count++;
11012       } else {
11013         if (lt_count == 0) {
11014           lt_foo="/" $lt_i lt_foo;
11015         } else {
11016           lt_count--;
11017         }
11018       }
11019     }
11020   }
11021   if (lt_foo != "") { lt_freq[lt_foo]++; }
11022   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11023 }'`
11024   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11025 else
11026   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11027 fi
11028 library_names_spec=
11029 libname_spec='lib$name'
11030 soname_spec=
11031 shrext_cmds=".so"
11032 postinstall_cmds=
11033 postuninstall_cmds=
11034 finish_cmds=
11035 finish_eval=
11036 shlibpath_var=
11037 shlibpath_overrides_runpath=unknown
11038 version_type=none
11039 dynamic_linker="$host_os ld.so"
11040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11041 need_lib_prefix=unknown
11042 hardcode_into_libs=no
11043
11044 # when you set need_version to no, make sure it does not cause -set_version
11045 # flags to be left without arguments
11046 need_version=unknown
11047
11048 case $host_os in
11049 aix3*)
11050   version_type=linux
11051   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11052   shlibpath_var=LIBPATH
11053
11054   # AIX 3 has no versioning support, so we append a major version to the name.
11055   soname_spec='${libname}${release}${shared_ext}$major'
11056   ;;
11057
11058 aix[4-9]*)
11059   version_type=linux
11060   need_lib_prefix=no
11061   need_version=no
11062   hardcode_into_libs=yes
11063   if test "$host_cpu" = ia64; then
11064     # AIX 5 supports IA64
11065     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11066     shlibpath_var=LD_LIBRARY_PATH
11067   else
11068     # With GCC up to 2.95.x, collect2 would create an import file
11069     # for dependence libraries.  The import file would start with
11070     # the line `#! .'.  This would cause the generated library to
11071     # depend on `.', always an invalid library.  This was fixed in
11072     # development snapshots of GCC prior to 3.0.
11073     case $host_os in
11074       aix4 | aix4.[01] | aix4.[01].*)
11075       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11076            echo ' yes '
11077            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11078         :
11079       else
11080         can_build_shared=no
11081       fi
11082       ;;
11083     esac
11084     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11085     # soname into executable. Probably we can add versioning support to
11086     # collect2, so additional links can be useful in future.
11087     if test "$aix_use_runtimelinking" = yes; then
11088       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11089       # instead of lib<name>.a to let people know that these are not
11090       # typical AIX shared libraries.
11091       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092     else
11093       # We preserve .a as extension for shared libraries through AIX4.2
11094       # and later when we are not doing run time linking.
11095       library_names_spec='${libname}${release}.a $libname.a'
11096       soname_spec='${libname}${release}${shared_ext}$major'
11097     fi
11098     shlibpath_var=LIBPATH
11099   fi
11100   ;;
11101
11102 amigaos*)
11103   case $host_cpu in
11104   powerpc)
11105     # Since July 2007 AmigaOS4 officially supports .so libraries.
11106     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108     ;;
11109   m68k)
11110     library_names_spec='$libname.ixlibrary $libname.a'
11111     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11112     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11113     ;;
11114   esac
11115   ;;
11116
11117 beos*)
11118   library_names_spec='${libname}${shared_ext}'
11119   dynamic_linker="$host_os ld.so"
11120   shlibpath_var=LIBRARY_PATH
11121   ;;
11122
11123 bsdi[45]*)
11124   version_type=linux
11125   need_version=no
11126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127   soname_spec='${libname}${release}${shared_ext}$major'
11128   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11129   shlibpath_var=LD_LIBRARY_PATH
11130   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11131   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11132   # the default ld.so.conf also contains /usr/contrib/lib and
11133   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11134   # libtool to hard-code these into programs
11135   ;;
11136
11137 cygwin* | mingw* | pw32* | cegcc*)
11138   version_type=windows
11139   shrext_cmds=".dll"
11140   need_version=no
11141   need_lib_prefix=no
11142
11143   case $GCC,$host_os in
11144   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11145     library_names_spec='$libname.dll.a'
11146     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11147     postinstall_cmds='base_file=`basename \${file}`~
11148       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11149       dldir=$destdir/`dirname \$dlpath`~
11150       test -d \$dldir || mkdir -p \$dldir~
11151       $install_prog $dir/$dlname \$dldir/$dlname~
11152       chmod a+x \$dldir/$dlname~
11153       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11154         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11155       fi'
11156     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11157       dlpath=$dir/\$dldll~
11158        $RM \$dlpath'
11159     shlibpath_overrides_runpath=yes
11160
11161     case $host_os in
11162     cygwin*)
11163       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11164       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11165       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11166       ;;
11167     mingw* | cegcc*)
11168       # MinGW DLLs use traditional 'lib' prefix
11169       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11171       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11172         # It is most probably a Windows format PATH printed by
11173         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11174         # path with ; separators, and with drive letters. We can handle the
11175         # drive letters (cygwin fileutils understands them), so leave them,
11176         # especially as we might pass files found there to a mingw objdump,
11177         # which wouldn't understand a cygwinified path. Ahh.
11178         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11179       else
11180         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11181       fi
11182       ;;
11183     pw32*)
11184       # pw32 DLLs use 'pw' prefix rather than 'lib'
11185       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11186       ;;
11187     esac
11188     ;;
11189
11190   *)
11191     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11192     ;;
11193   esac
11194   dynamic_linker='Win32 ld.exe'
11195   # FIXME: first we should search . and the directory the executable is in
11196   shlibpath_var=PATH
11197   ;;
11198
11199 darwin* | rhapsody*)
11200   dynamic_linker="$host_os dyld"
11201   version_type=darwin
11202   need_lib_prefix=no
11203   need_version=no
11204   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11205   soname_spec='${libname}${release}${major}$shared_ext'
11206   shlibpath_overrides_runpath=yes
11207   shlibpath_var=DYLD_LIBRARY_PATH
11208   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11209
11210   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11211   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11212   ;;
11213
11214 dgux*)
11215   version_type=linux
11216   need_lib_prefix=no
11217   need_version=no
11218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11219   soname_spec='${libname}${release}${shared_ext}$major'
11220   shlibpath_var=LD_LIBRARY_PATH
11221   ;;
11222
11223 freebsd1*)
11224   dynamic_linker=no
11225   ;;
11226
11227 freebsd* | dragonfly*)
11228   # DragonFly does not have aout.  When/if they implement a new
11229   # versioning mechanism, adjust this.
11230   if test -x /usr/bin/objformat; then
11231     objformat=`/usr/bin/objformat`
11232   else
11233     case $host_os in
11234     freebsd[123]*) objformat=aout ;;
11235     *) objformat=elf ;;
11236     esac
11237   fi
11238   version_type=freebsd-$objformat
11239   case $version_type in
11240     freebsd-elf*)
11241       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11242       need_version=no
11243       need_lib_prefix=no
11244       ;;
11245     freebsd-*)
11246       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11247       need_version=yes
11248       ;;
11249   esac
11250   shlibpath_var=LD_LIBRARY_PATH
11251   case $host_os in
11252   freebsd2*)
11253     shlibpath_overrides_runpath=yes
11254     ;;
11255   freebsd3.[01]* | freebsdelf3.[01]*)
11256     shlibpath_overrides_runpath=yes
11257     hardcode_into_libs=yes
11258     ;;
11259   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11260   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11261     shlibpath_overrides_runpath=no
11262     hardcode_into_libs=yes
11263     ;;
11264   *) # from 4.6 on, and DragonFly
11265     shlibpath_overrides_runpath=yes
11266     hardcode_into_libs=yes
11267     ;;
11268   esac
11269   ;;
11270
11271 gnu*)
11272   version_type=linux
11273   need_lib_prefix=no
11274   need_version=no
11275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11276   soname_spec='${libname}${release}${shared_ext}$major'
11277   shlibpath_var=LD_LIBRARY_PATH
11278   hardcode_into_libs=yes
11279   ;;
11280
11281 hpux9* | hpux10* | hpux11*)
11282   # Give a soname corresponding to the major version so that dld.sl refuses to
11283   # link against other versions.
11284   version_type=sunos
11285   need_lib_prefix=no
11286   need_version=no
11287   case $host_cpu in
11288   ia64*)
11289     shrext_cmds='.so'
11290     hardcode_into_libs=yes
11291     dynamic_linker="$host_os dld.so"
11292     shlibpath_var=LD_LIBRARY_PATH
11293     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295     soname_spec='${libname}${release}${shared_ext}$major'
11296     if test "X$HPUX_IA64_MODE" = X32; then
11297       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11298     else
11299       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11300     fi
11301     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11302     ;;
11303   hppa*64*)
11304     shrext_cmds='.sl'
11305     hardcode_into_libs=yes
11306     dynamic_linker="$host_os dld.sl"
11307     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11308     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11310     soname_spec='${libname}${release}${shared_ext}$major'
11311     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11312     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11313     ;;
11314   *)
11315     shrext_cmds='.sl'
11316     dynamic_linker="$host_os dld.sl"
11317     shlibpath_var=SHLIB_PATH
11318     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320     soname_spec='${libname}${release}${shared_ext}$major'
11321     ;;
11322   esac
11323   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11324   postinstall_cmds='chmod 555 $lib'
11325   ;;
11326
11327 interix[3-9]*)
11328   version_type=linux
11329   need_lib_prefix=no
11330   need_version=no
11331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11332   soname_spec='${libname}${release}${shared_ext}$major'
11333   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11334   shlibpath_var=LD_LIBRARY_PATH
11335   shlibpath_overrides_runpath=no
11336   hardcode_into_libs=yes
11337   ;;
11338
11339 irix5* | irix6* | nonstopux*)
11340   case $host_os in
11341     nonstopux*) version_type=nonstopux ;;
11342     *)
11343         if test "$lt_cv_prog_gnu_ld" = yes; then
11344                 version_type=linux
11345         else
11346                 version_type=irix
11347         fi ;;
11348   esac
11349   need_lib_prefix=no
11350   need_version=no
11351   soname_spec='${libname}${release}${shared_ext}$major'
11352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11353   case $host_os in
11354   irix5* | nonstopux*)
11355     libsuff= shlibsuff=
11356     ;;
11357   *)
11358     case $LD in # libtool.m4 will add one of these switches to LD
11359     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11360       libsuff= shlibsuff= libmagic=32-bit;;
11361     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11362       libsuff=32 shlibsuff=N32 libmagic=N32;;
11363     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11364       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11365     *) libsuff= shlibsuff= libmagic=never-match;;
11366     esac
11367     ;;
11368   esac
11369   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11370   shlibpath_overrides_runpath=no
11371   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11372   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11373   hardcode_into_libs=yes
11374   ;;
11375
11376 # No shared lib support for Linux oldld, aout, or coff.
11377 linux*oldld* | linux*aout* | linux*coff*)
11378   dynamic_linker=no
11379   ;;
11380
11381 # This must be Linux ELF.
11382 linux* | k*bsd*-gnu)
11383   version_type=linux
11384   need_lib_prefix=no
11385   need_version=no
11386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11387   soname_spec='${libname}${release}${shared_ext}$major'
11388   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11389   shlibpath_var=LD_LIBRARY_PATH
11390   shlibpath_overrides_runpath=no
11391   # Some binutils ld are patched to set DT_RUNPATH
11392   save_LDFLAGS=$LDFLAGS
11393   save_libdir=$libdir
11394   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11395        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h.  */
11398
11399 int
11400 main ()
11401 {
11402
11403   ;
11404   return 0;
11405 }
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11409   shlibpath_overrides_runpath=yes
11410 fi
11411 fi
11412 rm -f core conftest.err conftest.$ac_objext \
11413     conftest$ac_exeext conftest.$ac_ext
11414   LDFLAGS=$save_LDFLAGS
11415   libdir=$save_libdir
11416
11417   # This implies no fast_install, which is unacceptable.
11418   # Some rework will be needed to allow for fast_install
11419   # before this can be enabled.
11420   hardcode_into_libs=yes
11421
11422   # Append ld.so.conf contents to the search path
11423   if test -f /etc/ld.so.conf; then
11424     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11425     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11426   fi
11427
11428   # We used to test for /lib/ld.so.1 and disable shared libraries on
11429   # powerpc, because MkLinux only supported shared libraries with the
11430   # GNU dynamic linker.  Since this was broken with cross compilers,
11431   # most powerpc-linux boxes support dynamic linking these days and
11432   # people can always --disable-shared, the test was removed, and we
11433   # assume the GNU/Linux dynamic linker is in use.
11434   dynamic_linker='GNU/Linux ld.so'
11435   ;;
11436
11437 netbsd*)
11438   version_type=sunos
11439   need_lib_prefix=no
11440   need_version=no
11441   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11443     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11444     dynamic_linker='NetBSD (a.out) ld.so'
11445   else
11446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11447     soname_spec='${libname}${release}${shared_ext}$major'
11448     dynamic_linker='NetBSD ld.elf_so'
11449   fi
11450   shlibpath_var=LD_LIBRARY_PATH
11451   shlibpath_overrides_runpath=yes
11452   hardcode_into_libs=yes
11453   ;;
11454
11455 newsos6)
11456   version_type=linux
11457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11458   shlibpath_var=LD_LIBRARY_PATH
11459   shlibpath_overrides_runpath=yes
11460   ;;
11461
11462 *nto* | *qnx*)
11463   version_type=qnx
11464   need_lib_prefix=no
11465   need_version=no
11466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467   soname_spec='${libname}${release}${shared_ext}$major'
11468   shlibpath_var=LD_LIBRARY_PATH
11469   shlibpath_overrides_runpath=no
11470   hardcode_into_libs=yes
11471   dynamic_linker='ldqnx.so'
11472   ;;
11473
11474 openbsd*)
11475   version_type=sunos
11476   sys_lib_dlsearch_path_spec="/usr/lib"
11477   need_lib_prefix=no
11478   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11479   case $host_os in
11480     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11481     *)                          need_version=no  ;;
11482   esac
11483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11484   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11485   shlibpath_var=LD_LIBRARY_PATH
11486   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11487     case $host_os in
11488       openbsd2.[89] | openbsd2.[89].*)
11489         shlibpath_overrides_runpath=no
11490         ;;
11491       *)
11492         shlibpath_overrides_runpath=yes
11493         ;;
11494       esac
11495   else
11496     shlibpath_overrides_runpath=yes
11497   fi
11498   ;;
11499
11500 os2*)
11501   libname_spec='$name'
11502   shrext_cmds=".dll"
11503   need_lib_prefix=no
11504   library_names_spec='$libname${shared_ext} $libname.a'
11505   dynamic_linker='OS/2 ld.exe'
11506   shlibpath_var=LIBPATH
11507   ;;
11508
11509 osf3* | osf4* | osf5*)
11510   version_type=osf
11511   need_lib_prefix=no
11512   need_version=no
11513   soname_spec='${libname}${release}${shared_ext}$major'
11514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515   shlibpath_var=LD_LIBRARY_PATH
11516   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11517   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11518   ;;
11519
11520 rdos*)
11521   dynamic_linker=no
11522   ;;
11523
11524 solaris*)
11525   version_type=linux
11526   need_lib_prefix=no
11527   need_version=no
11528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529   soname_spec='${libname}${release}${shared_ext}$major'
11530   shlibpath_var=LD_LIBRARY_PATH
11531   shlibpath_overrides_runpath=yes
11532   hardcode_into_libs=yes
11533   # ldd complains unless libraries are executable
11534   postinstall_cmds='chmod +x $lib'
11535   ;;
11536
11537 sunos4*)
11538   version_type=sunos
11539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11540   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11541   shlibpath_var=LD_LIBRARY_PATH
11542   shlibpath_overrides_runpath=yes
11543   if test "$with_gnu_ld" = yes; then
11544     need_lib_prefix=no
11545   fi
11546   need_version=yes
11547   ;;
11548
11549 sysv4 | sysv4.3*)
11550   version_type=linux
11551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552   soname_spec='${libname}${release}${shared_ext}$major'
11553   shlibpath_var=LD_LIBRARY_PATH
11554   case $host_vendor in
11555     sni)
11556       shlibpath_overrides_runpath=no
11557       need_lib_prefix=no
11558       runpath_var=LD_RUN_PATH
11559       ;;
11560     siemens)
11561       need_lib_prefix=no
11562       ;;
11563     motorola)
11564       need_lib_prefix=no
11565       need_version=no
11566       shlibpath_overrides_runpath=no
11567       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11568       ;;
11569   esac
11570   ;;
11571
11572 sysv4*MP*)
11573   if test -d /usr/nec ;then
11574     version_type=linux
11575     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11576     soname_spec='$libname${shared_ext}.$major'
11577     shlibpath_var=LD_LIBRARY_PATH
11578   fi
11579   ;;
11580
11581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11582   version_type=freebsd-elf
11583   need_lib_prefix=no
11584   need_version=no
11585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11586   soname_spec='${libname}${release}${shared_ext}$major'
11587   shlibpath_var=LD_LIBRARY_PATH
11588   shlibpath_overrides_runpath=yes
11589   hardcode_into_libs=yes
11590   if test "$with_gnu_ld" = yes; then
11591     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11592   else
11593     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11594     case $host_os in
11595       sco3.2v5*)
11596         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11597         ;;
11598     esac
11599   fi
11600   sys_lib_dlsearch_path_spec='/usr/lib'
11601   ;;
11602
11603 tpf*)
11604   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11605   version_type=linux
11606   need_lib_prefix=no
11607   need_version=no
11608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609   shlibpath_var=LD_LIBRARY_PATH
11610   shlibpath_overrides_runpath=no
11611   hardcode_into_libs=yes
11612   ;;
11613
11614 uts4*)
11615   version_type=linux
11616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617   soname_spec='${libname}${release}${shared_ext}$major'
11618   shlibpath_var=LD_LIBRARY_PATH
11619   ;;
11620
11621 *)
11622   dynamic_linker=no
11623   ;;
11624 esac
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11626 $as_echo "$dynamic_linker" >&6; }
11627 test "$dynamic_linker" = no && can_build_shared=no
11628
11629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11630 if test "$GCC" = yes; then
11631   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11632 fi
11633
11634 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11635   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11636 fi
11637 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11638   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11639 fi
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11728 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11729 hardcode_action=
11730 if test -n "$hardcode_libdir_flag_spec" ||
11731    test -n "$runpath_var" ||
11732    test "X$hardcode_automatic" = "Xyes" ; then
11733
11734   # We can hardcode non-existent directories.
11735   if test "$hardcode_direct" != no &&
11736      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11737      # have to relink, otherwise we might link with an installed library
11738      # when we should be linking with a yet-to-be-installed one
11739      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11740      test "$hardcode_minus_L" != no; then
11741     # Linking always hardcodes the temporary library directory.
11742     hardcode_action=relink
11743   else
11744     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11745     hardcode_action=immediate
11746   fi
11747 else
11748   # We cannot hardcode anything, or else we can only hardcode existing
11749   # directories.
11750   hardcode_action=unsupported
11751 fi
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11753 $as_echo "$hardcode_action" >&6; }
11754
11755 if test "$hardcode_action" = relink ||
11756    test "$inherit_rpath" = yes; then
11757   # Fast installation is not supported
11758   enable_fast_install=no
11759 elif test "$shlibpath_overrides_runpath" = yes ||
11760      test "$enable_shared" = no; then
11761   # Fast installation is not necessary
11762   enable_fast_install=needless
11763 fi
11764
11765
11766
11767
11768
11769
11770   if test "x$enable_dlopen" != xyes; then
11771   enable_dlopen=unknown
11772   enable_dlopen_self=unknown
11773   enable_dlopen_self_static=unknown
11774 else
11775   lt_cv_dlopen=no
11776   lt_cv_dlopen_libs=
11777
11778   case $host_os in
11779   beos*)
11780     lt_cv_dlopen="load_add_on"
11781     lt_cv_dlopen_libs=
11782     lt_cv_dlopen_self=yes
11783     ;;
11784
11785   mingw* | pw32* | cegcc*)
11786     lt_cv_dlopen="LoadLibrary"
11787     lt_cv_dlopen_libs=
11788     ;;
11789
11790   cygwin*)
11791     lt_cv_dlopen="dlopen"
11792     lt_cv_dlopen_libs=
11793     ;;
11794
11795   darwin*)
11796   # if libdl is installed we need to link against it
11797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11800   $as_echo_n "(cached) " >&6
11801 else
11802   ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-ldl  $LIBS"
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h.  */
11806
11807 /* Override any GCC internal prototype to avoid an error.
11808    Use char because int might match the return type of a GCC
11809    builtin and then its argument prototype would still apply.  */
11810 #ifdef __cplusplus
11811 extern "C"
11812 #endif
11813 char dlopen ();
11814 int
11815 main ()
11816 {
11817 return dlopen ();
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_c_try_link "$LINENO"; then :
11823   ac_cv_lib_dl_dlopen=yes
11824 else
11825   ac_cv_lib_dl_dlopen=no
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext \
11828     conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11833 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11834   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11835 else
11836
11837     lt_cv_dlopen="dyld"
11838     lt_cv_dlopen_libs=
11839     lt_cv_dlopen_self=yes
11840
11841 fi
11842
11843     ;;
11844
11845   *)
11846     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11847 if test "x$ac_cv_func_shl_load" = x""yes; then :
11848   lt_cv_dlopen="shl_load"
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11851 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855   ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-ldld  $LIBS"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h.  */
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861    Use char because int might match the return type of a GCC
11862    builtin and then its argument prototype would still apply.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char shl_load ();
11867 int
11868 main ()
11869 {
11870 return shl_load ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876   ac_cv_lib_dld_shl_load=yes
11877 else
11878   ac_cv_lib_dld_shl_load=no
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext \
11881     conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11885 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11886 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11887   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11888 else
11889   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11890 if test "x$ac_cv_func_dlopen" = x""yes; then :
11891   lt_cv_dlopen="dlopen"
11892 else
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11896   $as_echo_n "(cached) " >&6
11897 else
11898   ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-ldl  $LIBS"
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h.  */
11902
11903 /* Override any GCC internal prototype to avoid an error.
11904    Use char because int might match the return type of a GCC
11905    builtin and then its argument prototype would still apply.  */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char dlopen ();
11910 int
11911 main ()
11912 {
11913 return dlopen ();
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919   ac_cv_lib_dl_dlopen=yes
11920 else
11921   ac_cv_lib_dl_dlopen=no
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext \
11924     conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11929 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11930   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11931 else
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11933 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11934 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11935   $as_echo_n "(cached) " >&6
11936 else
11937   ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lsvld  $LIBS"
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h.  */
11941
11942 /* Override any GCC internal prototype to avoid an error.
11943    Use char because int might match the return type of a GCC
11944    builtin and then its argument prototype would still apply.  */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 char dlopen ();
11949 int
11950 main ()
11951 {
11952 return dlopen ();
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 if ac_fn_c_try_link "$LINENO"; then :
11958   ac_cv_lib_svld_dlopen=yes
11959 else
11960   ac_cv_lib_svld_dlopen=no
11961 fi
11962 rm -f core conftest.err conftest.$ac_objext \
11963     conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11967 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11968 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11969   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11970 else
11971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11972 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11973 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11974   $as_echo_n "(cached) " >&6
11975 else
11976   ac_check_lib_save_LIBS=$LIBS
11977 LIBS="-ldld  $LIBS"
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h.  */
11980
11981 /* Override any GCC internal prototype to avoid an error.
11982    Use char because int might match the return type of a GCC
11983    builtin and then its argument prototype would still apply.  */
11984 #ifdef __cplusplus
11985 extern "C"
11986 #endif
11987 char dld_link ();
11988 int
11989 main ()
11990 {
11991 return dld_link ();
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"; then :
11997   ac_cv_lib_dld_dld_link=yes
11998 else
11999   ac_cv_lib_dld_dld_link=no
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext \
12002     conftest$ac_exeext conftest.$ac_ext
12003 LIBS=$ac_check_lib_save_LIBS
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12006 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12007 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12008   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12009 fi
12010
12011
12012 fi
12013
12014
12015 fi
12016
12017
12018 fi
12019
12020
12021 fi
12022
12023
12024 fi
12025
12026     ;;
12027   esac
12028
12029   if test "x$lt_cv_dlopen" != xno; then
12030     enable_dlopen=yes
12031   else
12032     enable_dlopen=no
12033   fi
12034
12035   case $lt_cv_dlopen in
12036   dlopen)
12037     save_CPPFLAGS="$CPPFLAGS"
12038     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12039
12040     save_LDFLAGS="$LDFLAGS"
12041     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12042
12043     save_LIBS="$LIBS"
12044     LIBS="$lt_cv_dlopen_libs $LIBS"
12045
12046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12047 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12048 if test "${lt_cv_dlopen_self+set}" = set; then :
12049   $as_echo_n "(cached) " >&6
12050 else
12051           if test "$cross_compiling" = yes; then :
12052   lt_cv_dlopen_self=cross
12053 else
12054   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12055   lt_status=$lt_dlunknown
12056   cat > conftest.$ac_ext <<_LT_EOF
12057 #line 12057 "configure"
12058 #include "confdefs.h"
12059
12060 #if HAVE_DLFCN_H
12061 #include <dlfcn.h>
12062 #endif
12063
12064 #include <stdio.h>
12065
12066 #ifdef RTLD_GLOBAL
12067 #  define LT_DLGLOBAL           RTLD_GLOBAL
12068 #else
12069 #  ifdef DL_GLOBAL
12070 #    define LT_DLGLOBAL         DL_GLOBAL
12071 #  else
12072 #    define LT_DLGLOBAL         0
12073 #  endif
12074 #endif
12075
12076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12077    find out it does not work in some platform. */
12078 #ifndef LT_DLLAZY_OR_NOW
12079 #  ifdef RTLD_LAZY
12080 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12081 #  else
12082 #    ifdef DL_LAZY
12083 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12084 #    else
12085 #      ifdef RTLD_NOW
12086 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12087 #      else
12088 #        ifdef DL_NOW
12089 #          define LT_DLLAZY_OR_NOW      DL_NOW
12090 #        else
12091 #          define LT_DLLAZY_OR_NOW      0
12092 #        endif
12093 #      endif
12094 #    endif
12095 #  endif
12096 #endif
12097
12098 void fnord() { int i=42;}
12099 int main ()
12100 {
12101   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12102   int status = $lt_dlunknown;
12103
12104   if (self)
12105     {
12106       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12107       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12108       /* dlclose (self); */
12109     }
12110   else
12111     puts (dlerror ());
12112
12113   return status;
12114 }
12115 _LT_EOF
12116   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12117   (eval $ac_link) 2>&5
12118   ac_status=$?
12119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12120   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12121     (./conftest; exit; ) >&5 2>/dev/null
12122     lt_status=$?
12123     case x$lt_status in
12124       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12125       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12126       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12127     esac
12128   else :
12129     # compilation failed
12130     lt_cv_dlopen_self=no
12131   fi
12132 fi
12133 rm -fr conftest*
12134
12135
12136 fi
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12138 $as_echo "$lt_cv_dlopen_self" >&6; }
12139
12140     if test "x$lt_cv_dlopen_self" = xyes; then
12141       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12142       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12143 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12144 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12145   $as_echo_n "(cached) " >&6
12146 else
12147           if test "$cross_compiling" = yes; then :
12148   lt_cv_dlopen_self_static=cross
12149 else
12150   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12151   lt_status=$lt_dlunknown
12152   cat > conftest.$ac_ext <<_LT_EOF
12153 #line 12153 "configure"
12154 #include "confdefs.h"
12155
12156 #if HAVE_DLFCN_H
12157 #include <dlfcn.h>
12158 #endif
12159
12160 #include <stdio.h>
12161
12162 #ifdef RTLD_GLOBAL
12163 #  define LT_DLGLOBAL           RTLD_GLOBAL
12164 #else
12165 #  ifdef DL_GLOBAL
12166 #    define LT_DLGLOBAL         DL_GLOBAL
12167 #  else
12168 #    define LT_DLGLOBAL         0
12169 #  endif
12170 #endif
12171
12172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12173    find out it does not work in some platform. */
12174 #ifndef LT_DLLAZY_OR_NOW
12175 #  ifdef RTLD_LAZY
12176 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12177 #  else
12178 #    ifdef DL_LAZY
12179 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12180 #    else
12181 #      ifdef RTLD_NOW
12182 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12183 #      else
12184 #        ifdef DL_NOW
12185 #          define LT_DLLAZY_OR_NOW      DL_NOW
12186 #        else
12187 #          define LT_DLLAZY_OR_NOW      0
12188 #        endif
12189 #      endif
12190 #    endif
12191 #  endif
12192 #endif
12193
12194 void fnord() { int i=42;}
12195 int main ()
12196 {
12197   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12198   int status = $lt_dlunknown;
12199
12200   if (self)
12201     {
12202       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12203       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12204       /* dlclose (self); */
12205     }
12206   else
12207     puts (dlerror ());
12208
12209   return status;
12210 }
12211 _LT_EOF
12212   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12213   (eval $ac_link) 2>&5
12214   ac_status=$?
12215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12216   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12217     (./conftest; exit; ) >&5 2>/dev/null
12218     lt_status=$?
12219     case x$lt_status in
12220       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12221       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12222       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12223     esac
12224   else :
12225     # compilation failed
12226     lt_cv_dlopen_self_static=no
12227   fi
12228 fi
12229 rm -fr conftest*
12230
12231
12232 fi
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12234 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12235     fi
12236
12237     CPPFLAGS="$save_CPPFLAGS"
12238     LDFLAGS="$save_LDFLAGS"
12239     LIBS="$save_LIBS"
12240     ;;
12241   esac
12242
12243   case $lt_cv_dlopen_self in
12244   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12245   *) enable_dlopen_self=unknown ;;
12246   esac
12247
12248   case $lt_cv_dlopen_self_static in
12249   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12250   *) enable_dlopen_self_static=unknown ;;
12251   esac
12252 fi
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270 striplib=
12271 old_striplib=
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12273 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12274 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12275   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12276   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12278 $as_echo "yes" >&6; }
12279 else
12280 # FIXME - insert some real tests, host_os isn't really good enough
12281   case $host_os in
12282   darwin*)
12283     if test -n "$STRIP" ; then
12284       striplib="$STRIP -x"
12285       old_striplib="$STRIP -S"
12286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12287 $as_echo "yes" >&6; }
12288     else
12289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12291     fi
12292     ;;
12293   *)
12294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296     ;;
12297   esac
12298 fi
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311   # Report which library types will actually be built
12312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12313 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12315 $as_echo "$can_build_shared" >&6; }
12316
12317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12318 $as_echo_n "checking whether to build shared libraries... " >&6; }
12319   test "$can_build_shared" = "no" && enable_shared=no
12320
12321   # On AIX, shared libraries and static libraries use the same namespace, and
12322   # are all built from PIC.
12323   case $host_os in
12324   aix3*)
12325     test "$enable_shared" = yes && enable_static=no
12326     if test -n "$RANLIB"; then
12327       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12328       postinstall_cmds='$RANLIB $lib'
12329     fi
12330     ;;
12331
12332   aix[4-9]*)
12333     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12334       test "$enable_shared" = yes && enable_static=no
12335     fi
12336     ;;
12337   esac
12338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12339 $as_echo "$enable_shared" >&6; }
12340
12341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12342 $as_echo_n "checking whether to build static libraries... " >&6; }
12343   # Make sure either enable_shared or enable_static is yes.
12344   test "$enable_shared" = yes || enable_static=yes
12345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12346 $as_echo "$enable_static" >&6; }
12347
12348
12349
12350
12351 fi
12352 ac_ext=c
12353 ac_cpp='$CPP $CPPFLAGS'
12354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12357
12358 CC="$lt_save_CC"
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372         ac_config_commands="$ac_config_commands libtool"
12373
12374
12375
12376
12377 # Only expand once:
12378
12379
12380
12381 if test "$enable_shared" = "no"; then
12382     with_noexec=no
12383 else
12384     eval _shrext="$shrext_cmds"
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
12387 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
12388
12389 # Check whether --with-noexec was given.
12390 if test "${with_noexec+set}" = set; then :
12391   withval=$with_noexec; case $with_noexec in
12392     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
12393                 ;;
12394     no)         ;;
12395     *)          ;;
12396 esac
12397 else
12398   with_noexec="$libexecdir/sudo_noexec$_shrext"
12399 fi
12400
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
12402 $as_echo "$with_noexec" >&6; }
12403 NOEXECFILE="sudo_noexec$_shrext"
12404 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
12405
12406 if test X"$with_devel" = X"yes" -a -n "$GCC"; then
12407     CFLAGS="${CFLAGS} -Wall"
12408 fi
12409
12410 # Extract the first word of "uname", so it can be a program name with args.
12411 set dummy uname; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then :
12415   $as_echo_n "(cached) " >&6
12416 else
12417   if test -n "$UNAMEPROG"; then
12418   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
12419 else
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12422 do
12423   IFS=$as_save_IFS
12424   test -z "$as_dir" && as_dir=.
12425     for ac_exec_ext in '' $ac_executable_extensions; do
12426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12427     ac_cv_prog_UNAMEPROG="uname"
12428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429     break 2
12430   fi
12431 done
12432   done
12433 IFS=$as_save_IFS
12434
12435 fi
12436 fi
12437 UNAMEPROG=$ac_cv_prog_UNAMEPROG
12438 if test -n "$UNAMEPROG"; then
12439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
12440 $as_echo "$UNAMEPROG" >&6; }
12441 else
12442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12444 fi
12445
12446
12447 # Extract the first word of "tr", so it can be a program name with args.
12448 set dummy tr; ac_word=$2
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450 $as_echo_n "checking for $ac_word... " >&6; }
12451 if test "${ac_cv_prog_TRPROG+set}" = set; then :
12452   $as_echo_n "(cached) " >&6
12453 else
12454   if test -n "$TRPROG"; then
12455   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
12456 else
12457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12459 do
12460   IFS=$as_save_IFS
12461   test -z "$as_dir" && as_dir=.
12462     for ac_exec_ext in '' $ac_executable_extensions; do
12463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12464     ac_cv_prog_TRPROG="tr"
12465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466     break 2
12467   fi
12468 done
12469   done
12470 IFS=$as_save_IFS
12471
12472 fi
12473 fi
12474 TRPROG=$ac_cv_prog_TRPROG
12475 if test -n "$TRPROG"; then
12476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
12477 $as_echo "$TRPROG" >&6; }
12478 else
12479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12481 fi
12482
12483
12484 for ac_prog in nroff mandoc
12485 do
12486   # Extract the first word of "$ac_prog", so it can be a program name with args.
12487 set dummy $ac_prog; ac_word=$2
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489 $as_echo_n "checking for $ac_word... " >&6; }
12490 if test "${ac_cv_prog_NROFFPROG+set}" = set; then :
12491   $as_echo_n "(cached) " >&6
12492 else
12493   if test -n "$NROFFPROG"; then
12494   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
12495 else
12496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497 for as_dir in $PATH
12498 do
12499   IFS=$as_save_IFS
12500   test -z "$as_dir" && as_dir=.
12501     for ac_exec_ext in '' $ac_executable_extensions; do
12502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12503     ac_cv_prog_NROFFPROG="$ac_prog"
12504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12505     break 2
12506   fi
12507 done
12508   done
12509 IFS=$as_save_IFS
12510
12511 fi
12512 fi
12513 NROFFPROG=$ac_cv_prog_NROFFPROG
12514 if test -n "$NROFFPROG"; then
12515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
12516 $as_echo "$NROFFPROG" >&6; }
12517 else
12518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 $as_echo "no" >&6; }
12520 fi
12521
12522
12523   test -n "$NROFFPROG" && break
12524 done
12525
12526 if test -z "$NROFFPROG"; then
12527     MANTYPE="cat"
12528     mansrcdir='$(srcdir)'
12529 fi
12530
12531 if test -n "$sudo_cv_prev_host"; then
12532     if test "$sudo_cv_prev_host" != "$host"; then
12533         as_fn_error "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
12534     else
12535         { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
12536 $as_echo_n "checking previous host type... " >&6; }
12537         if test "${sudo_cv_prev_host+set}" = set; then :
12538   $as_echo_n "(cached) " >&6
12539 else
12540   sudo_cv_prev_host="$host"
12541 fi
12542
12543         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
12544 $as_echo "$sudo_cv_prev_host" >&6; }
12545     fi
12546 else
12547     # this will produce no output since there is no cached value
12548     if test "${sudo_cv_prev_host+set}" = set; then :
12549   $as_echo_n "(cached) " >&6
12550 else
12551   sudo_cv_prev_host="$host"
12552 fi
12553
12554 fi
12555
12556 if test -n "$host_os"; then
12557     OS=`echo $host_os | sed 's/[0-9].*//'`
12558     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
12559     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
12560 else
12561     OS="unknown"
12562     OSREV=0
12563     OSMAJOR=0
12564 fi
12565
12566 case "$host" in
12567     *-*-sunos4*)
12568                 # getcwd(3) opens a pipe to getpwd(1)!?!
12569                 BROKEN_GETCWD=1
12570
12571                 # system headers lack prototypes but gcc helps...
12572                 if test -n "$GCC"; then
12573                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
12574                 fi
12575
12576                 shadow_funcs="getpwanam issecure"
12577                 ;;
12578     *-*-solaris2*)
12579                 # To get the crypt(3) prototype (so we pass -Wall)
12580                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
12581                 # AFS support needs -lucb
12582                 if test "$with_AFS" = "yes"; then
12583                     AFS_LIBS="-lc -lucb"
12584                 fi
12585                 : ${mansectsu='1m'}
12586                 : ${mansectform='4'}
12587                 : ${with_rpath='yes'}
12588                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12589                 ;;
12590     *-*-aix*)
12591                 # To get all prototypes (so we pass -Wall)
12592                 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
12593                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
12594                 if test X"$with_blibpath" != X"no"; then
12595                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
12596 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
12597                     O_LDFLAGS="$LDFLAGS"
12598                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
12599                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h.  */
12601
12602 int
12603 main ()
12604 {
12605
12606   ;
12607   return 0;
12608 }
12609 _ACEOF
12610 if ac_fn_c_try_link "$LINENO"; then :
12611
12612                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
12613                             blibpath="$with_blibpath"
12614                         elif test -n "$GCC"; then
12615                             blibpath="/usr/lib:/lib:/usr/local/lib"
12616                         else
12617                             blibpath="/usr/lib:/lib"
12618                         fi
12619                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12620 $as_echo "yes" >&6; }
12621
12622 else
12623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625 fi
12626 rm -f core conftest.err conftest.$ac_objext \
12627     conftest$ac_exeext conftest.$ac_ext
12628                 fi
12629                 LDFLAGS="$O_LDFLAGS"
12630
12631                 # Use authenticate(3) as the default authentication method
12632                 if test X"$with_aixauth" = X""; then
12633                     for ac_func in authenticate
12634 do :
12635   ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
12636 if test "x$ac_cv_func_authenticate" = x""yes; then :
12637   cat >>confdefs.h <<_ACEOF
12638 #define HAVE_AUTHENTICATE 1
12639 _ACEOF
12640  AUTH_EXCL_DEF="AIX_AUTH"
12641 fi
12642 done
12643
12644                 fi
12645
12646                 # AIX analog of nsswitch.conf, enabled by default
12647
12648 # Check whether --with-netsvc was given.
12649 if test "${with_netsvc+set}" = set; then :
12650   withval=$with_netsvc; case $with_netsvc in
12651                     no)         ;;
12652                     yes)        with_netsvc="/etc/netsvc.conf"
12653                                 ;;
12654                     *)          ;;
12655                 esac
12656 fi
12657
12658                 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
12659                     with_netsvc="/etc/netsvc.conf"
12660                 fi
12661
12662                 # AIX-specific functions
12663                 for ac_func in getuserattr setauthdb
12664 do :
12665   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12666 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12667 eval as_val=\$$as_ac_var
12668    if test "x$as_val" = x""yes; then :
12669   cat >>confdefs.h <<_ACEOF
12670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12671 _ACEOF
12672
12673 fi
12674 done
12675
12676                 COMMON_OBJS="$COMMON_OBJS aix.o"
12677                 ;;
12678     *-*-hiuxmpp*)
12679                 : ${mansectsu='1m'}
12680                 : ${mansectform='4'}
12681                 ;;
12682     *-*-hpux*)
12683                 # AFS support needs -lBSD
12684                 if test "$with_AFS" = "yes"; then
12685                     AFS_LIBS="-lc -lBSD"
12686                 fi
12687                 : ${mansectsu='1m'}
12688                 : ${mansectform='4'}
12689
12690                 if test -z "$GCC"; then
12691                     # HP-UX bundled compiler can't generate shared objects
12692                     if -z "$pic_flag"; then
12693                         with_noexec=no
12694                     fi
12695
12696                     # Use the +DAportable flag on hppa if it is supported
12697                     case "$host_cpu" in
12698                     hppa*)
12699                         _CFLAGS="$CFLAGS"
12700                         CFLAGS="$CFLAGS +DAportable"
12701                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands +DAportable" >&5
12702 $as_echo_n "checking whether $CC understands +DAportable... " >&6; }
12703 if test "${sudo_cv_var_daportable+set}" = set; then :
12704   $as_echo_n "(cached) " >&6
12705 else
12706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h.  */
12708
12709 int
12710 main ()
12711 {
12712
12713   ;
12714   return 0;
12715 }
12716 _ACEOF
12717 if ac_fn_c_try_link "$LINENO"; then :
12718   sudo_cv_var_daportable=yes
12719 else
12720   sudo_cv_var_daportable=no
12721
12722 fi
12723 rm -f core conftest.err conftest.$ac_objext \
12724     conftest$ac_exeext conftest.$ac_ext
12725
12726
12727 fi
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
12729 $as_echo "$sudo_cv_var_daportable" >&6; }
12730                         if test X"$sudo_cv_var_daportable" != X"yes"; then
12731                             CFLAGS="$_CFLAGS"
12732                         fi
12733                         ;;
12734                     esac
12735                 fi
12736
12737                 case "$host" in
12738                         *-*-hpux1-8.*)
12739                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12740
12741
12742                             # Not sure if setuid binaries are safe in < 9.x
12743                             if test -n "$GCC"; then
12744                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12745                             else
12746                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12747                             fi
12748                         ;;
12749                         *-*-hpux9.*)
12750                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
12751
12752
12753                             shadow_funcs="getspwuid"
12754
12755                             # DCE support (requires ANSI C compiler)
12756                             if test "$with_DCE" = "yes"; then
12757                                 # order of libs in 9.X is important. -lc_r must be last
12758                                 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12759                                 LIBS="${LIBS} -ldce -lM -lc_r"
12760                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12761                             fi
12762                         ;;
12763                         *-*-hpux10.*)
12764                             shadow_funcs="getprpwnam iscomsec"
12765                             shadow_libs="-lsec"
12766                         ;;
12767                         *)
12768                             shadow_funcs="getspnam iscomsec"
12769                             shadow_libs="-lsec"
12770                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12771                         ;;
12772                 esac
12773                 ;;
12774     *-dec-osf*)
12775                 # ignore envariables wrt dynamic lib path
12776                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
12777
12778                 : ${CHECKSIA='true'}
12779                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
12780 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
12781                 # Check whether --enable-sia was given.
12782 if test "${enable_sia+set}" = set; then :
12783   enableval=$enable_sia;  case "$enableval" in
12784                     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12786                                 CHECKSIA=true
12787                                 ;;
12788                     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12789 $as_echo "yes" >&6; }
12790                                 CHECKSIA=false
12791                                 ;;
12792                     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12795 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12796                                 ;;
12797                   esac
12798
12799 else
12800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801 $as_echo "no" >&6; }
12802 fi
12803
12804
12805                 shadow_funcs="getprpwnam dispcrypt"
12806                 # OSF/1 4.x and higher need -ldb too
12807                 if test $OSMAJOR -lt 4; then
12808                     shadow_libs="-lsecurity -laud -lm"
12809                 else
12810                     shadow_libs="-lsecurity -ldb -laud -lm"
12811                 fi
12812
12813                 # use SIA by default, if we have it
12814                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
12815
12816                 #
12817                 # Some versions of Digital Unix ship with a broken
12818                 # copy of prot.h, which we need for shadow passwords.
12819                 # XXX - make should remove this as part of distclean
12820                 #
12821                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
12822 $as_echo_n "checking for broken prot.h... " >&6; }
12823                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h.  */
12825
12826 #include <sys/types.h>
12827 #include <sys/security.h>
12828 #include <prot.h>
12829
12830 int
12831 main ()
12832 {
12833 exit(0);
12834   ;
12835   return 0;
12836 }
12837 _ACEOF
12838 if ac_fn_c_try_compile "$LINENO"; then :
12839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12841 else
12842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
12843 $as_echo "yes, fixing locally" >&6; }
12844                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
12845
12846 fi
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848                 : ${mansectsu='8'}
12849                 : ${mansectform='4'}
12850                 ;;
12851     *-*-irix*)
12852                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
12853                 if test -z "$NROFFPROG"; then
12854                     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)'
12855                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
12856                         if test -d /usr/share/catman/local; then
12857                             mandir="/usr/share/catman/local"
12858                         else
12859                             mandir="/usr/catman/local"
12860                         fi
12861                     fi
12862                 else
12863                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
12864                         if test -d "/usr/share/man/local"; then
12865                             mandir="/usr/share/man/local"
12866                         else
12867                             mandir="/usr/man/local"
12868                         fi
12869                     fi
12870                 fi
12871                 # IRIX <= 4 needs -lsun
12872                 if test "$OSMAJOR" -le 4; then
12873                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
12874 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
12875 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
12876   $as_echo_n "(cached) " >&6
12877 else
12878   ac_check_lib_save_LIBS=$LIBS
12879 LIBS="-lsun  $LIBS"
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h.  */
12882
12883 /* Override any GCC internal prototype to avoid an error.
12884    Use char because int might match the return type of a GCC
12885    builtin and then its argument prototype would still apply.  */
12886 #ifdef __cplusplus
12887 extern "C"
12888 #endif
12889 char getpwnam ();
12890 int
12891 main ()
12892 {
12893 return getpwnam ();
12894   ;
12895   return 0;
12896 }
12897 _ACEOF
12898 if ac_fn_c_try_link "$LINENO"; then :
12899   ac_cv_lib_sun_getpwnam=yes
12900 else
12901   ac_cv_lib_sun_getpwnam=no
12902 fi
12903 rm -f core conftest.err conftest.$ac_objext \
12904     conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
12908 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
12909 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
12910   LIBS="${LIBS} -lsun"
12911 fi
12912
12913                 fi
12914                 : ${mansectsu='1m'}
12915                 : ${mansectform='4'}
12916                 ;;
12917     *-*-linux*|*-*-k*bsd*-gnu)
12918                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12919                 # Some Linux versions need to link with -lshadow
12920                 shadow_funcs="getspnam"
12921                 shadow_libs_optional="-lshadow"
12922                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12923                 ;;
12924     *-convex-bsd*)
12925                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12926                 if test -z "$GCC"; then
12927                     CFLAGS="${CFLAGS} -D__STDC__"
12928                 fi
12929
12930                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12931                 shadow_funcs="getprpwnam"
12932                 shadow_libs="-lprot"
12933                 ;;
12934     *-*-ultrix*)
12935                 OS="ultrix"
12936                 shadow_funcs="getauthuid"
12937                 shadow_libs="-lauth"
12938                 ;;
12939     *-*-riscos*)
12940                 LIBS="${LIBS} -lsun -lbsd"
12941                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12942                 OSDEFS="${OSDEFS} -D_MIPS"
12943                 : ${mansectsu='1m'}
12944                 : ${mansectform='4'}
12945                 ;;
12946     *-*-isc*)
12947                 OSDEFS="${OSDEFS} -D_ISC"
12948                 LIB_CRYPT=1
12949                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12950                 LIBS="${LIBS} -lcrypt"
12951
12952                 shadow_funcs="getspnam"
12953                 shadow_libs="-lsec"
12954
12955                 : ${mansectsu='1m'}
12956                 : ${mansectform='4'}
12957                 ;;
12958     *-*-sco*|*-sco-*)
12959                 shadow_funcs="getprpwnam"
12960                 shadow_libs="-lprot -lx"
12961                 : ${mansectsu='1m'}
12962                 : ${mansectform='4'}
12963                 ;;
12964     m88k-motorola-sysv*)
12965                 # motorolla's cc (a variant of gcc) does -O but not -O2
12966                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12967                 : ${mansectsu='1m'}
12968                 : ${mansectform='4'}
12969                 ;;
12970     *-sequent-sysv*)
12971                 shadow_funcs="getspnam"
12972                 shadow_libs="-lsec"
12973                 : ${mansectsu='1m'}
12974                 : ${mansectform='4'}
12975                 : ${with_rpath='yes'}
12976                 ;;
12977     *-ncr-sysv4*|*-ncr-sysvr4*)
12978                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
12979 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
12980 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then :
12981   $as_echo_n "(cached) " >&6
12982 else
12983   ac_check_lib_save_LIBS=$LIBS
12984 LIBS="-lc89  $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 strcasecmp ();
12995 int
12996 main ()
12997 {
12998 return strcasecmp ();
12999   ;
13000   return 0;
13001 }
13002 _ACEOF
13003 if ac_fn_c_try_link "$LINENO"; then :
13004   ac_cv_lib_c89_strcasecmp=yes
13005 else
13006   ac_cv_lib_c89_strcasecmp=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_c89_strcasecmp" >&5
13013 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
13014 if test "x$ac_cv_lib_c89_strcasecmp" = x""yes; then :
13015   $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
13016  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
13017 fi
13018
13019                 : ${mansectsu='1m'}
13020                 : ${mansectform='4'}
13021                 : ${with_rpath='yes'}
13022                 ;;
13023     *-ccur-sysv4*|*-ccur-sysvr4*)
13024                 LIBS="${LIBS} -lgen"
13025                 SUDO_LIBS="${SUDO_LIBS} -lgen"
13026                 : ${mansectsu='1m'}
13027                 : ${mansectform='4'}
13028                 : ${with_rpath='yes'}
13029                 ;;
13030     *-*-bsdi*)
13031                 SKIP_SETREUID=yes
13032                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
13033                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
13034                     case "$OSMAJOR" in
13035                         2|3)    { $as_echo "$as_me:${as_lineno-$LINENO}: using shlicc as CC" >&5
13036 $as_echo "$as_me: using shlicc as CC" >&6;}
13037                                 ac_cv_prog_CC=shlicc
13038                                 CC="$ac_cv_prog_CC"
13039                                 ;;
13040                     esac
13041                 fi
13042                 # Check for newer BSD auth API (just check for >= 3.0?)
13043                 if test -z "$with_bsdauth"; then
13044                     for ac_func in auth_challenge
13045 do :
13046   ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
13047 if test "x$ac_cv_func_auth_challenge" = x""yes; then :
13048   cat >>confdefs.h <<_ACEOF
13049 #define HAVE_AUTH_CHALLENGE 1
13050 _ACEOF
13051  AUTH_EXCL_DEF="BSD_AUTH"
13052 fi
13053 done
13054
13055                 fi
13056                 ;;
13057     *-*-freebsd*)
13058                 # FreeBSD has a real setreuid(2) starting with 2.1 and
13059                 # backported to 2.0.5.  We just take 2.1 and above...
13060                 case "$OSREV" in
13061                 0.*|1.*|2.0*)
13062                     SKIP_SETREUID=yes
13063                     ;;
13064                 esac
13065                 if test "$with_skey" = "yes"; then
13066                      SUDO_LIBS="${SUDO_LIBS} -lmd"
13067                 fi
13068                 CHECKSHADOW="false"
13069                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13070                 : ${with_logincap='maybe'}
13071                 ;;
13072     *-*-*openbsd*)
13073                 # OpenBSD has a real setreuid(2) starting with 3.3 but
13074                 # we will use setreuid(2) instead.
13075                 SKIP_SETREUID=yes
13076                 CHECKSHADOW="false"
13077                 # OpenBSD >= 3.0 supports BSD auth
13078                 if test -z "$with_bsdauth"; then
13079                     case "$OSREV" in
13080                     0-2.*)
13081                         ;;
13082                     *)
13083                         AUTH_EXCL_DEF="BSD_AUTH"
13084                         ;;
13085                     esac
13086                 fi
13087                 : ${with_logincap='maybe'}
13088                 ;;
13089     *-*-*netbsd*)
13090                 # NetBSD has a real setreuid(2) starting with 1.3.2
13091                 case "$OSREV" in
13092                 0.9*|1.012*|1.3|1.3.1)
13093                     SKIP_SETREUID=yes
13094                     ;;
13095                 esac
13096                 CHECKSHADOW="false"
13097                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13098                 : ${with_logincap='maybe'}
13099                 ;;
13100     *-*-dragonfly*)
13101                 if test "$with_skey" = "yes"; then
13102                      SUDO_LIBS="${SUDO_LIBS} -lmd"
13103                 fi
13104                 CHECKSHADOW="false"
13105                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13106                 : ${with_logincap='yes'}
13107                 ;;
13108     *-*-*bsd*)
13109                 CHECKSHADOW="false"
13110                 ;;
13111     *-*-darwin*)
13112                 # Darwin has a real setreuid(2) starting with 9.0
13113                 if test $OSMAJOR -lt 9; then
13114                     SKIP_SETREUID=yes
13115                 fi
13116                 CHECKSHADOW="false"
13117                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13118                 : ${with_logincap='yes'}
13119                 ;;
13120     *-*-nextstep*)
13121                 # lockf() on is broken on the NeXT -- use flock instead
13122                 ac_cv_func_lockf=no
13123                 ac_cv_func_flock=yes
13124                 ;;
13125     *-*-*sysv4*)
13126                 : ${mansectsu='1m'}
13127                 : ${mansectform='4'}
13128                 : ${with_rpath='yes'}
13129                 ;;
13130     *-*-sysv*)
13131                 : ${mansectsu='1m'}
13132                 : ${mansectform='4'}
13133                 ;;
13134     *-gnu*)
13135                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
13136                 ;;
13137 esac
13138
13139 AUTH_REG=${AUTH_REG# }
13140 AUTH_EXCL=${AUTH_EXCL# }
13141 if test -n "$AUTH_EXCL"; then
13142     set -- $AUTH_EXCL
13143     if test $# != 1; then
13144         as_fn_error "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
13145     fi
13146     if test -n "$AUTH_REG"; then
13147         as_fn_error "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
13148     fi
13149 fi
13150 if test X"${with_skey}${with_opie}" = X"yesyes"; then
13151     as_fn_error "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
13152 fi
13153
13154 : ${mansectsu='8'}
13155 : ${mansectform='5'}
13156
13157 if test -n "$with_libpath"; then
13158     for i in ${with_libpath}; do
13159
13160     if test X"$with_rpath" = X"yes"; then
13161         case "$host" in
13162             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
13163                         ;;
13164             *)          LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
13165                         ;;
13166         esac
13167     else
13168         LDFLAGS="${LDFLAGS} -L$i"
13169     fi
13170     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13171         blibpath_add="${blibpath_add}:$i"
13172     fi
13173
13174     done
13175 fi
13176 if test -n "$with_libraries"; then
13177     for i in ${with_libraries}; do
13178         case $i in
13179             -l*)        ;;
13180             *.a)        ;;
13181             *.o)        ;;
13182             *)  i="-l${i}";;
13183         esac
13184         LIBS="${LIBS} ${i}"
13185     done
13186 fi
13187
13188 if test $ac_cv_c_compiler_gnu = yes; then
13189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13190 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13191 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
13192   $as_echo_n "(cached) " >&6
13193 else
13194     ac_pattern="Autoconf.*'x'"
13195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h.  */
13197 #include <sgtty.h>
13198 Autoconf TIOCGETP
13199 _ACEOF
13200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13201   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13202   ac_cv_prog_gcc_traditional=yes
13203 else
13204   ac_cv_prog_gcc_traditional=no
13205 fi
13206 rm -f conftest*
13207
13208
13209   if test $ac_cv_prog_gcc_traditional = no; then
13210     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h.  */
13212 #include <termio.h>
13213 Autoconf TCGETA
13214 _ACEOF
13215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13217   ac_cv_prog_gcc_traditional=yes
13218 fi
13219 rm -f conftest*
13220
13221   fi
13222 fi
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13224 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13225   if test $ac_cv_prog_gcc_traditional = yes; then
13226     CC="$CC -traditional"
13227   fi
13228 fi
13229
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13231 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13232 if test "${ac_cv_c_const+set}" = set; then :
13233   $as_echo_n "(cached) " >&6
13234 else
13235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h.  */
13237
13238 int
13239 main ()
13240 {
13241 /* FIXME: Include the comments suggested by Paul. */
13242 #ifndef __cplusplus
13243   /* Ultrix mips cc rejects this.  */
13244   typedef int charset[2];
13245   const charset cs;
13246   /* SunOS 4.1.1 cc rejects this.  */
13247   char const *const *pcpcc;
13248   char **ppc;
13249   /* NEC SVR4.0.2 mips cc rejects this.  */
13250   struct point {int x, y;};
13251   static struct point const zero = {0,0};
13252   /* AIX XL C 1.02.0.0 rejects this.
13253      It does not let you subtract one const X* pointer from another in
13254      an arm of an if-expression whose if-part is not a constant
13255      expression */
13256   const char *g = "string";
13257   pcpcc = &g + (g ? g-g : 0);
13258   /* HPUX 7.0 cc rejects these. */
13259   ++pcpcc;
13260   ppc = (char**) pcpcc;
13261   pcpcc = (char const *const *) ppc;
13262   { /* SCO 3.2v4 cc rejects this.  */
13263     char *t;
13264     char const *s = 0 ? (char *) 0 : (char const *) 0;
13265
13266     *t++ = 0;
13267     if (s) return 0;
13268   }
13269   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13270     int x[] = {25, 17};
13271     const int *foo = &x[0];
13272     ++foo;
13273   }
13274   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13275     typedef const int *iptr;
13276     iptr p = 0;
13277     ++p;
13278   }
13279   { /* AIX XL C 1.02.0.0 rejects this saying
13280        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13281     struct s { int j; const int *ap[3]; };
13282     struct s *b; b->j = 5;
13283   }
13284   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13285     const int foo = 10;
13286     if (!foo) return 0;
13287   }
13288   return !cs[0] && !zero.x;
13289 #endif
13290
13291   ;
13292   return 0;
13293 }
13294 _ACEOF
13295 if ac_fn_c_try_compile "$LINENO"; then :
13296   ac_cv_c_const=yes
13297 else
13298   ac_cv_c_const=no
13299 fi
13300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13301 fi
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13303 $as_echo "$ac_cv_c_const" >&6; }
13304 if test $ac_cv_c_const = no; then
13305
13306 $as_echo "#define const /**/" >>confdefs.h
13307
13308 fi
13309
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13311 $as_echo_n "checking for working volatile... " >&6; }
13312 if test "${ac_cv_c_volatile+set}" = set; then :
13313   $as_echo_n "(cached) " >&6
13314 else
13315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h.  */
13317
13318 int
13319 main ()
13320 {
13321
13322 volatile int x;
13323 int * volatile y = (int *) 0;
13324 return !x && !y;
13325   ;
13326   return 0;
13327 }
13328 _ACEOF
13329 if ac_fn_c_try_compile "$LINENO"; then :
13330   ac_cv_c_volatile=yes
13331 else
13332   ac_cv_c_volatile=no
13333 fi
13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13335 fi
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13337 $as_echo "$ac_cv_c_volatile" >&6; }
13338 if test $ac_cv_c_volatile = no; then
13339
13340 $as_echo "#define volatile /**/" >>confdefs.h
13341
13342 fi
13343
13344 for ac_prog in 'bison -y' byacc
13345 do
13346   # Extract the first word of "$ac_prog", so it can be a program name with args.
13347 set dummy $ac_prog; ac_word=$2
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13349 $as_echo_n "checking for $ac_word... " >&6; }
13350 if test "${ac_cv_prog_YACC+set}" = set; then :
13351   $as_echo_n "(cached) " >&6
13352 else
13353   if test -n "$YACC"; then
13354   ac_cv_prog_YACC="$YACC" # Let the user override the test.
13355 else
13356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13357 for as_dir in $PATH
13358 do
13359   IFS=$as_save_IFS
13360   test -z "$as_dir" && as_dir=.
13361     for ac_exec_ext in '' $ac_executable_extensions; do
13362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13363     ac_cv_prog_YACC="$ac_prog"
13364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13365     break 2
13366   fi
13367 done
13368   done
13369 IFS=$as_save_IFS
13370
13371 fi
13372 fi
13373 YACC=$ac_cv_prog_YACC
13374 if test -n "$YACC"; then
13375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13376 $as_echo "$YACC" >&6; }
13377 else
13378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379 $as_echo "no" >&6; }
13380 fi
13381
13382
13383   test -n "$YACC" && break
13384 done
13385 test -n "$YACC" || YACC="yacc"
13386
13387 # Extract the first word of "flex", so it can be a program name with args.
13388 set dummy flex; ac_word=$2
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13390 $as_echo_n "checking for $ac_word... " >&6; }
13391 if test "${ac_cv_path_FLEX+set}" = set; then :
13392   $as_echo_n "(cached) " >&6
13393 else
13394   case $FLEX in
13395   [\\/]* | ?:[\\/]*)
13396   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
13397   ;;
13398   *)
13399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400 for as_dir in $PATH
13401 do
13402   IFS=$as_save_IFS
13403   test -z "$as_dir" && as_dir=.
13404     for ac_exec_ext in '' $ac_executable_extensions; do
13405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13406     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
13407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13408     break 2
13409   fi
13410 done
13411   done
13412 IFS=$as_save_IFS
13413
13414   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
13415   ;;
13416 esac
13417 fi
13418 FLEX=$ac_cv_path_FLEX
13419 if test -n "$FLEX"; then
13420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
13421 $as_echo "$FLEX" >&6; }
13422 else
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13425 fi
13426
13427
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
13429 $as_echo_n "checking for mv... " >&6; }
13430 found=no
13431 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
13432     if test -f "$p"; then
13433         found=yes
13434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13435 $as_echo "$p" >&6; }
13436         cat >>confdefs.h <<EOF
13437 #define _PATH_MV "$p"
13438 EOF
13439
13440         break
13441     fi
13442 done
13443 if test X"$found" != X"yes"; then
13444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13445 $as_echo "not found" >&6; }
13446 fi
13447
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
13449 $as_echo_n "checking for bourne shell... " >&6; }
13450 found=no
13451 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
13452     if test -f "$p"; then
13453         found=yes
13454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13455 $as_echo "$p" >&6; }
13456         cat >>confdefs.h <<EOF
13457 #define _PATH_BSHELL "$p"
13458 EOF
13459
13460         break
13461     fi
13462 done
13463 if test X"$found" != X"yes"; then
13464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13465 $as_echo "not found" >&6; }
13466 fi
13467
13468 if test -z "$with_sendmail"; then
13469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
13470 $as_echo_n "checking for sendmail... " >&6; }
13471 found=no
13472 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
13473     if test -f "$p"; then
13474         found=yes
13475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
13476 $as_echo "$p" >&6; }
13477         cat >>confdefs.h <<EOF
13478 #define _PATH_SUDO_SENDMAIL "$p"
13479 EOF
13480
13481         break
13482     fi
13483 done
13484 if test X"$found" != X"yes"; then
13485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13486 $as_echo "not found" >&6; }
13487 fi
13488
13489 fi
13490 if test -z "$with_editor"; then
13491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
13492 $as_echo_n "checking for vi... " >&6; }
13493 found=no
13494 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
13495     if test -f "$editor"; then
13496         found=yes
13497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
13498 $as_echo "$editor" >&6; }
13499         cat >>confdefs.h <<EOF
13500 #define _PATH_VI "$editor"
13501 EOF
13502
13503         break
13504     fi
13505 done
13506 if test X"$found" != X"yes"; then
13507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13508 $as_echo "not found" >&6; }
13509 fi
13510
13511 fi
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
13513 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
13514 if test X"$with_logfac" = X""; then
13515     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516 /* end confdefs.h.  */
13517 #include <syslog.h>
13518 int
13519 main ()
13520 {
13521 int i = LOG_AUTHPRIV; (void)i;
13522   ;
13523   return 0;
13524 }
13525 _ACEOF
13526 if ac_fn_c_try_compile "$LINENO"; then :
13527   logfac=authpriv
13528 fi
13529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13530 fi
13531
13532 cat >>confdefs.h <<_ACEOF
13533 #define LOGFAC "$logfac"
13534 _ACEOF
13535
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
13537 $as_echo "$logfac" >&6; }
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13539 $as_echo_n "checking for ANSI C header files... " >&6; }
13540 if test "${ac_cv_header_stdc+set}" = set; then :
13541   $as_echo_n "(cached) " >&6
13542 else
13543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h.  */
13545 #include <stdlib.h>
13546 #include <stdarg.h>
13547 #include <string.h>
13548 #include <float.h>
13549
13550 int
13551 main ()
13552 {
13553
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_c_try_compile "$LINENO"; then :
13559   ac_cv_header_stdc=yes
13560 else
13561   ac_cv_header_stdc=no
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564
13565 if test $ac_cv_header_stdc = yes; then
13566   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h.  */
13569 #include <string.h>
13570
13571 _ACEOF
13572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13573   $EGREP "memchr" >/dev/null 2>&1; then :
13574
13575 else
13576   ac_cv_header_stdc=no
13577 fi
13578 rm -f conftest*
13579
13580 fi
13581
13582 if test $ac_cv_header_stdc = yes; then
13583   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h.  */
13586 #include <stdlib.h>
13587
13588 _ACEOF
13589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13590   $EGREP "free" >/dev/null 2>&1; then :
13591
13592 else
13593   ac_cv_header_stdc=no
13594 fi
13595 rm -f conftest*
13596
13597 fi
13598
13599 if test $ac_cv_header_stdc = yes; then
13600   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13601   if test "$cross_compiling" = yes; then :
13602   :
13603 else
13604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h.  */
13606 #include <ctype.h>
13607 #include <stdlib.h>
13608 #if ((' ' & 0x0FF) == 0x020)
13609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13611 #else
13612 # define ISLOWER(c) \
13613                    (('a' <= (c) && (c) <= 'i') \
13614                      || ('j' <= (c) && (c) <= 'r') \
13615                      || ('s' <= (c) && (c) <= 'z'))
13616 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13617 #endif
13618
13619 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13620 int
13621 main ()
13622 {
13623   int i;
13624   for (i = 0; i < 256; i++)
13625     if (XOR (islower (i), ISLOWER (i))
13626         || toupper (i) != TOUPPER (i))
13627       return 2;
13628   return 0;
13629 }
13630 _ACEOF
13631 if ac_fn_c_try_run "$LINENO"; then :
13632
13633 else
13634   ac_cv_header_stdc=no
13635 fi
13636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13637   conftest.$ac_objext conftest.beam conftest.$ac_ext
13638 fi
13639
13640 fi
13641 fi
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13643 $as_echo "$ac_cv_header_stdc" >&6; }
13644 if test $ac_cv_header_stdc = yes; then
13645
13646 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13647
13648 fi
13649
13650 ac_header_dirent=no
13651 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13652   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13654 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13656   $as_echo_n "(cached) " >&6
13657 else
13658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h.  */
13660 #include <sys/types.h>
13661 #include <$ac_hdr>
13662
13663 int
13664 main ()
13665 {
13666 if ((DIR *) 0)
13667 return 0;
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 if ac_fn_c_try_compile "$LINENO"; then :
13673   eval "$as_ac_Header=yes"
13674 else
13675   eval "$as_ac_Header=no"
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13678 fi
13679 eval ac_res=\$$as_ac_Header
13680                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13681 $as_echo "$ac_res" >&6; }
13682 eval as_val=\$$as_ac_Header
13683    if test "x$as_val" = x""yes; then :
13684   cat >>confdefs.h <<_ACEOF
13685 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13686 _ACEOF
13687
13688 ac_header_dirent=$ac_hdr; break
13689 fi
13690
13691 done
13692 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13693 if test $ac_header_dirent = dirent.h; then
13694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13695 $as_echo_n "checking for library containing opendir... " >&6; }
13696 if test "${ac_cv_search_opendir+set}" = set; then :
13697   $as_echo_n "(cached) " >&6
13698 else
13699   ac_func_search_save_LIBS=$LIBS
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h.  */
13702
13703 /* Override any GCC internal prototype to avoid an error.
13704    Use char because int might match the return type of a GCC
13705    builtin and then its argument prototype would still apply.  */
13706 #ifdef __cplusplus
13707 extern "C"
13708 #endif
13709 char opendir ();
13710 int
13711 main ()
13712 {
13713 return opendir ();
13714   ;
13715   return 0;
13716 }
13717 _ACEOF
13718 for ac_lib in '' dir; do
13719   if test -z "$ac_lib"; then
13720     ac_res="none required"
13721   else
13722     ac_res=-l$ac_lib
13723     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13724   fi
13725   if ac_fn_c_try_link "$LINENO"; then :
13726   ac_cv_search_opendir=$ac_res
13727 fi
13728 rm -f core conftest.err conftest.$ac_objext \
13729     conftest$ac_exeext
13730   if test "${ac_cv_search_opendir+set}" = set; then :
13731   break
13732 fi
13733 done
13734 if test "${ac_cv_search_opendir+set}" = set; then :
13735
13736 else
13737   ac_cv_search_opendir=no
13738 fi
13739 rm conftest.$ac_ext
13740 LIBS=$ac_func_search_save_LIBS
13741 fi
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13743 $as_echo "$ac_cv_search_opendir" >&6; }
13744 ac_res=$ac_cv_search_opendir
13745 if test "$ac_res" != no; then :
13746   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13747
13748 fi
13749
13750 else
13751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13752 $as_echo_n "checking for library containing opendir... " >&6; }
13753 if test "${ac_cv_search_opendir+set}" = set; then :
13754   $as_echo_n "(cached) " >&6
13755 else
13756   ac_func_search_save_LIBS=$LIBS
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h.  */
13759
13760 /* Override any GCC internal prototype to avoid an error.
13761    Use char because int might match the return type of a GCC
13762    builtin and then its argument prototype would still apply.  */
13763 #ifdef __cplusplus
13764 extern "C"
13765 #endif
13766 char opendir ();
13767 int
13768 main ()
13769 {
13770 return opendir ();
13771   ;
13772   return 0;
13773 }
13774 _ACEOF
13775 for ac_lib in '' x; do
13776   if test -z "$ac_lib"; then
13777     ac_res="none required"
13778   else
13779     ac_res=-l$ac_lib
13780     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13781   fi
13782   if ac_fn_c_try_link "$LINENO"; then :
13783   ac_cv_search_opendir=$ac_res
13784 fi
13785 rm -f core conftest.err conftest.$ac_objext \
13786     conftest$ac_exeext
13787   if test "${ac_cv_search_opendir+set}" = set; then :
13788   break
13789 fi
13790 done
13791 if test "${ac_cv_search_opendir+set}" = set; then :
13792
13793 else
13794   ac_cv_search_opendir=no
13795 fi
13796 rm conftest.$ac_ext
13797 LIBS=$ac_func_search_save_LIBS
13798 fi
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13800 $as_echo "$ac_cv_search_opendir" >&6; }
13801 ac_res=$ac_cv_search_opendir
13802 if test "$ac_res" != no; then :
13803   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13804
13805 fi
13806
13807 fi
13808
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13810 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13811 if test "${ac_cv_header_time+set}" = set; then :
13812   $as_echo_n "(cached) " >&6
13813 else
13814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h.  */
13816 #include <sys/types.h>
13817 #include <sys/time.h>
13818 #include <time.h>
13819
13820 int
13821 main ()
13822 {
13823 if ((struct tm *) 0)
13824 return 0;
13825   ;
13826   return 0;
13827 }
13828 _ACEOF
13829 if ac_fn_c_try_compile "$LINENO"; then :
13830   ac_cv_header_time=yes
13831 else
13832   ac_cv_header_time=no
13833 fi
13834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13835 fi
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13837 $as_echo "$ac_cv_header_time" >&6; }
13838 if test $ac_cv_header_time = yes; then
13839
13840 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13841
13842 fi
13843
13844 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h
13845 do :
13846   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13847 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13848 eval as_val=\$$as_ac_Header
13849    if test "x$as_val" = x""yes; then :
13850   cat >>confdefs.h <<_ACEOF
13851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13852 _ACEOF
13853
13854 fi
13855
13856 done
13857
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
13859 $as_echo_n "checking POSIX termios... " >&6; }
13860 if test "${ac_cv_sys_posix_termios+set}" = set; then :
13861   $as_echo_n "(cached) " >&6
13862 else
13863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h.  */
13865 #include <sys/types.h>
13866 #include <unistd.h>
13867 #include <termios.h>
13868
13869 int
13870 main ()
13871 {
13872 /* SunOS 4.0.3 has termios.h but not the library calls.  */
13873    tcgetattr(0, 0);
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 if ac_fn_c_try_link "$LINENO"; then :
13879   ac_cv_sys_posix_termios=yes
13880 else
13881   ac_cv_sys_posix_termios=no
13882 fi
13883 rm -f core conftest.err conftest.$ac_objext \
13884     conftest$ac_exeext conftest.$ac_ext
13885 fi
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
13887 $as_echo "$ac_cv_sys_posix_termios" >&6; }
13888
13889 if test "$ac_cv_sys_posix_termios" = "yes"; then
13890     $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
13891
13892 else
13893     for ac_header in termio.h
13894 do :
13895   ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
13896 if test "x$ac_cv_header_termio_h" = x""yes; then :
13897   cat >>confdefs.h <<_ACEOF
13898 #define HAVE_TERMIO_H 1
13899 _ACEOF
13900
13901 fi
13902
13903 done
13904
13905 fi
13906
13907 maildir=no
13908 if test X"$ac_cv_header_paths_h" = X"yes"; then
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h.  */
13911 $ac_includes_default
13912 #include <paths.h>
13913 int main() {char *p = _PATH_MAILDIR;}
13914 int
13915 main ()
13916 {
13917
13918   ;
13919   return 0;
13920 }
13921 _ACEOF
13922 if ac_fn_c_try_compile "$LINENO"; then :
13923   maildir=yes
13924 fi
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13926 fi
13927 if test $maildir = no; then
13928     # Solaris has maillock.h which defines MAILDIR
13929     for ac_header in maillock.h
13930 do :
13931   ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13932 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13933   cat >>confdefs.h <<_ACEOF
13934 #define HAVE_MAILLOCK_H 1
13935 _ACEOF
13936
13937         cat >>confdefs.h <<\EOF
13938 #define _PATH_MAILDIR MAILDIR
13939 EOF
13940
13941         maildir=yes
13942
13943 fi
13944
13945 done
13946
13947     if test $maildir = no; then
13948         for d in /var/mail /var/spool/mail /usr/spool/mail; do
13949             if test -d "$d"; then
13950                 maildir=yes
13951                 cat >>confdefs.h <<EOF
13952 #define _PATH_MAILDIR "$d"
13953 EOF
13954
13955                 break
13956             fi
13957         done
13958         if test $maildir = no; then
13959             # unable to find mail dir, hope for the best
13960             cat >>confdefs.h <<EOF
13961 #define _PATH_MAILDIR "/var/mail"
13962 EOF
13963
13964         fi
13965     fi
13966 fi
13967
13968 if test ${with_logincap-'no'} != "no"; then
13969     for ac_header in login_cap.h
13970 do :
13971   ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
13972 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
13973   cat >>confdefs.h <<_ACEOF
13974 #define HAVE_LOGIN_CAP_H 1
13975 _ACEOF
13976  LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
13977         case "$OS" in
13978             freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
13979             ;;
13980         esac
13981
13982 fi
13983
13984 done
13985
13986 fi
13987 if test ${with_project-'no'} != "no"; then
13988     ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
13989 if test "x$ac_cv_header_project_h" = x""yes; then :
13990   $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
13991
13992         SUDO_LIBS="${SUDO_LIBS} -lproject"
13993 else
13994   -
13995 fi
13996
13997
13998 fi
13999 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14000 if test "x$ac_cv_type_mode_t" = x""yes; then :
14001
14002 else
14003
14004 cat >>confdefs.h <<_ACEOF
14005 #define mode_t int
14006 _ACEOF
14007
14008 fi
14009
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14011 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14012 if test "${ac_cv_type_uid_t+set}" = set; then :
14013   $as_echo_n "(cached) " >&6
14014 else
14015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h.  */
14017 #include <sys/types.h>
14018
14019 _ACEOF
14020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14021   $EGREP "uid_t" >/dev/null 2>&1; then :
14022   ac_cv_type_uid_t=yes
14023 else
14024   ac_cv_type_uid_t=no
14025 fi
14026 rm -f conftest*
14027
14028 fi
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14030 $as_echo "$ac_cv_type_uid_t" >&6; }
14031 if test $ac_cv_type_uid_t = no; then
14032
14033 $as_echo "#define uid_t int" >>confdefs.h
14034
14035
14036 $as_echo "#define gid_t int" >>confdefs.h
14037
14038 fi
14039
14040 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
14041 if test "x$ac_cv_type___signed_char" = x""yes; then :
14042
14043 else
14044   ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
14045 if test "x$ac_cv_type_signed_char" = x""yes; then :
14046   $as_echo "#define __signed signed" >>confdefs.h
14047
14048 else
14049   $as_echo "#define __signed /**/" >>confdefs.h
14050
14051 fi
14052
14053 fi
14054
14055 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
14056 #include <signal.h>
14057 "
14058 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
14059
14060 else
14061   $as_echo "#define sig_atomic_t int" >>confdefs.h
14062
14063 fi
14064
14065 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
14066 #include <signal.h>
14067 "
14068 if test "x$ac_cv_type_sigaction_t" = x""yes; then :
14069
14070 cat >>confdefs.h <<_ACEOF
14071 #define HAVE_SIGACTION_T 1
14072 _ACEOF
14073
14074 $as_echo "#define HAVE_SIGACTION_T 1" >>confdefs.h
14075
14076 fi
14077
14078 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
14079 #if TIME_WITH_SYS_TIME
14080 # include <sys/time.h>
14081 #endif
14082 #include <time.h>
14083 "
14084 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
14085   $as_echo "#define HAVE_TIMESPEC 1" >>confdefs.h
14086
14087 fi
14088
14089 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
14090 #include <netinet/in.h>
14091 "
14092 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then :
14093
14094 cat >>confdefs.h <<_ACEOF
14095 #define HAVE_STRUCT_IN6_ADDR 1
14096 _ACEOF
14097
14098 $as_echo "#define HAVE_IN6_ADDR 1" >>confdefs.h
14099
14100 fi
14101
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
14103 $as_echo_n "checking for size_t... " >&6; }
14104 if test "${sudo_cv_type_size_t+set}" = set; then :
14105   $as_echo_n "(cached) " >&6
14106 else
14107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h.  */
14109 #include <sys/types.h>
14110 #include <stdio.h>
14111 #if STDC_HEADERS
14112 #include <stdlib.h>
14113 #endif
14114 #if HAVE_UNISTD_H
14115 #include <unistd.h>
14116 #endif
14117 _ACEOF
14118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14119   $EGREP "size_t" >/dev/null 2>&1; then :
14120   sudo_cv_type_size_t=yes
14121 else
14122   sudo_cv_type_size_t=no
14123 fi
14124 rm -f conftest*
14125
14126 fi
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_size_t" >&5
14128 $as_echo "$sudo_cv_type_size_t" >&6; }
14129 if test $sudo_cv_type_size_t = no; then
14130
14131 $as_echo "#define size_t int" >>confdefs.h
14132
14133 fi
14134
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14136 $as_echo_n "checking for ssize_t... " >&6; }
14137 if test "${sudo_cv_type_ssize_t+set}" = set; then :
14138   $as_echo_n "(cached) " >&6
14139 else
14140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h.  */
14142 #include <sys/types.h>
14143 #include <stdio.h>
14144 #if STDC_HEADERS
14145 #include <stdlib.h>
14146 #endif
14147 #if HAVE_UNISTD_H
14148 #include <unistd.h>
14149 #endif
14150 _ACEOF
14151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14152   $EGREP "ssize_t" >/dev/null 2>&1; then :
14153   sudo_cv_type_ssize_t=yes
14154 else
14155   sudo_cv_type_ssize_t=no
14156 fi
14157 rm -f conftest*
14158
14159 fi
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ssize_t" >&5
14161 $as_echo "$sudo_cv_type_ssize_t" >&6; }
14162 if test $sudo_cv_type_ssize_t = no; then
14163
14164 $as_echo "#define ssize_t int" >>confdefs.h
14165
14166 fi
14167
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_t" >&5
14169 $as_echo_n "checking for dev_t... " >&6; }
14170 if test "${sudo_cv_type_dev_t+set}" = set; then :
14171   $as_echo_n "(cached) " >&6
14172 else
14173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h.  */
14175 #include <sys/types.h>
14176 #include <stdio.h>
14177 #if STDC_HEADERS
14178 #include <stdlib.h>
14179 #endif
14180 #if HAVE_UNISTD_H
14181 #include <unistd.h>
14182 #endif
14183 _ACEOF
14184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14185   $EGREP "dev_t" >/dev/null 2>&1; then :
14186   sudo_cv_type_dev_t=yes
14187 else
14188   sudo_cv_type_dev_t=no
14189 fi
14190 rm -f conftest*
14191
14192 fi
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_dev_t" >&5
14194 $as_echo "$sudo_cv_type_dev_t" >&6; }
14195 if test $sudo_cv_type_dev_t = no; then
14196
14197 $as_echo "#define dev_t int" >>confdefs.h
14198
14199 fi
14200
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ino_t" >&5
14202 $as_echo_n "checking for ino_t... " >&6; }
14203 if test "${sudo_cv_type_ino_t+set}" = set; then :
14204   $as_echo_n "(cached) " >&6
14205 else
14206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h.  */
14208 #include <sys/types.h>
14209 #include <stdio.h>
14210 #if STDC_HEADERS
14211 #include <stdlib.h>
14212 #endif
14213 #if HAVE_UNISTD_H
14214 #include <unistd.h>
14215 #endif
14216 _ACEOF
14217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14218   $EGREP "ino_t" >/dev/null 2>&1; then :
14219   sudo_cv_type_ino_t=yes
14220 else
14221   sudo_cv_type_ino_t=no
14222 fi
14223 rm -f conftest*
14224
14225 fi
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_ino_t" >&5
14227 $as_echo "$sudo_cv_type_ino_t" >&6; }
14228 if test $sudo_cv_type_ino_t = no; then
14229
14230 $as_echo "#define ino_t unsigned int" >>confdefs.h
14231
14232 fi
14233
14234
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
14236 $as_echo_n "checking max length of uid_t... " >&6; }
14237 if test "${sudo_cv_uid_t_len+set}" = set; then :
14238   $as_echo_n "(cached) " >&6
14239 else
14240   rm -f conftestdata
14241 if test "$cross_compiling" = yes; then :
14242   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14244 as_fn_error "cannot run test program while cross compiling
14245 See \`config.log' for more details." "$LINENO" 5; }
14246 else
14247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h.  */
14249 #include <stdio.h>
14250 #include <pwd.h>
14251 #include <limits.h>
14252 #include <sys/types.h>
14253 #include <sys/param.h>
14254 main() {
14255   FILE *f;
14256   char b[1024];
14257   uid_t u = (uid_t) -1;
14258
14259   if ((f = fopen("conftestdata", "w")) == NULL)
14260     exit(1);
14261
14262   (void) sprintf(b, "%lu", (unsigned long) u);
14263   (void) fprintf(f, "%d\n", strlen(b));
14264   (void) fclose(f);
14265   exit(0);
14266 }
14267 _ACEOF
14268 if ac_fn_c_try_run "$LINENO"; then :
14269   sudo_cv_uid_t_len=`cat conftestdata`
14270 else
14271   sudo_cv_uid_t_len=10
14272 fi
14273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14274   conftest.$ac_objext conftest.beam conftest.$ac_ext
14275 fi
14276
14277
14278 fi
14279
14280 rm -f conftestdata
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
14282 $as_echo "$sudo_cv_uid_t_len" >&6; }
14283
14284 cat >>confdefs.h <<_ACEOF
14285 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14286 _ACEOF
14287
14288
14289 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14290 if test "x$ac_cv_type_long_long" = x""yes; then :
14291
14292 cat >>confdefs.h <<_ACEOF
14293 #define HAVE_LONG_LONG 1
14294 _ACEOF
14295
14296
14297 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
14298
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long and long long equivalence" >&5
14300 $as_echo_n "checking for long and long long equivalence... " >&6; }
14301 if test "${sudo_cv_type_long_is_quad+set}" = set; then :
14302   $as_echo_n "(cached) " >&6
14303 else
14304   if test "$cross_compiling" = yes; then :
14305   sudo_cv_type_long_is_quad=no
14306 else
14307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h.  */
14309
14310 main() {
14311 if (sizeof(long long) == sizeof(long)) exit(0);
14312 else exit(1);
14313 }
14314 _ACEOF
14315 if ac_fn_c_try_run "$LINENO"; then :
14316   sudo_cv_type_long_is_quad=yes
14317 else
14318   sudo_cv_type_long_is_quad=no
14319 fi
14320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14321   conftest.$ac_objext conftest.beam conftest.$ac_ext
14322 fi
14323
14324 rm -f core core.* *.core
14325 fi
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_type_long_is_quad" >&5
14327 $as_echo "$sudo_cv_type_long_is_quad" >&6; }
14328 if test $sudo_cv_type_long_is_quad = yes; then
14329
14330 $as_echo "#define LONG_IS_QUAD 1" >>confdefs.h
14331
14332 fi
14333
14334 fi
14335
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len field in struct sockaddr" >&5
14337 $as_echo_n "checking for sa_len field in struct sockaddr... " >&6; }
14338 if test "${sudo_cv_sock_sa_len+set}" = set; then :
14339   $as_echo_n "(cached) " >&6
14340 else
14341   if test "$cross_compiling" = yes; then :
14342   sudo_cv_sock_sa_len=no
14343 else
14344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h.  */
14346 #include <sys/types.h>
14347 #include <sys/socket.h>
14348 main() {
14349 struct sockaddr s;
14350 s.sa_len = 0;
14351 exit(0);
14352 }
14353 _ACEOF
14354 if ac_fn_c_try_run "$LINENO"; then :
14355   sudo_cv_sock_sa_len=yes
14356 else
14357   sudo_cv_sock_sa_len=no
14358 fi
14359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14360   conftest.$ac_objext conftest.beam conftest.$ac_ext
14361 fi
14362
14363 rm -f core core.* *.core
14364 fi
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_sock_sa_len" >&5
14366 $as_echo "$sudo_cv_sock_sa_len" >&6; }
14367 if test $sudo_cv_sock_sa_len = yes; then
14368
14369 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
14370
14371 fi
14372
14373 case "$DEFS" in
14374     *"RETSIGTYPE"*)     ;;
14375     *)                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14376 $as_echo_n "checking return type of signal handlers... " >&6; }
14377 if test "${ac_cv_type_signal+set}" = set; then :
14378   $as_echo_n "(cached) " >&6
14379 else
14380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h.  */
14382 #include <sys/types.h>
14383 #include <signal.h>
14384
14385 int
14386 main ()
14387 {
14388 return *(signal (0, 0)) (0) == 1;
14389   ;
14390   return 0;
14391 }
14392 _ACEOF
14393 if ac_fn_c_try_compile "$LINENO"; then :
14394   ac_cv_type_signal=int
14395 else
14396   ac_cv_type_signal=void
14397 fi
14398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399 fi
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14401 $as_echo "$ac_cv_type_signal" >&6; }
14402
14403 cat >>confdefs.h <<_ACEOF
14404 #define RETSIGTYPE $ac_cv_type_signal
14405 _ACEOF
14406
14407 ;;
14408 esac
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
14410 $as_echo_n "checking type of array argument to getgroups... " >&6; }
14411 if test "${ac_cv_type_getgroups+set}" = set; then :
14412   $as_echo_n "(cached) " >&6
14413 else
14414   if test "$cross_compiling" = yes; then :
14415   ac_cv_type_getgroups=cross
14416 else
14417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h.  */
14419 /* Thanks to Mike Rendell for this test.  */
14420 $ac_includes_default
14421 #define NGID 256
14422 #undef MAX
14423 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14424
14425 int
14426 main ()
14427 {
14428   gid_t gidset[NGID];
14429   int i, n;
14430   union { gid_t gval; long int lval; }  val;
14431
14432   val.lval = -1;
14433   for (i = 0; i < NGID; i++)
14434     gidset[i] = val.gval;
14435   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14436                  gidset);
14437   /* Exit non-zero if getgroups seems to require an array of ints.  This
14438      happens when gid_t is short int but getgroups modifies an array
14439      of ints.  */
14440   return n > 0 && gidset[n] != val.gval;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_run "$LINENO"; then :
14444   ac_cv_type_getgroups=gid_t
14445 else
14446   ac_cv_type_getgroups=int
14447 fi
14448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14449   conftest.$ac_objext conftest.beam conftest.$ac_ext
14450 fi
14451
14452 if test $ac_cv_type_getgroups = cross; then
14453         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h.  */
14455 #include <unistd.h>
14456
14457 _ACEOF
14458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14459   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
14460   ac_cv_type_getgroups=gid_t
14461 else
14462   ac_cv_type_getgroups=int
14463 fi
14464 rm -f conftest*
14465
14466 fi
14467 fi
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
14469 $as_echo "$ac_cv_type_getgroups" >&6; }
14470
14471 cat >>confdefs.h <<_ACEOF
14472 #define GETGROUPS_T $ac_cv_type_getgroups
14473 _ACEOF
14474
14475
14476 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14477 if test "x$ac_cv_type_size_t" = x""yes; then :
14478
14479 else
14480
14481 cat >>confdefs.h <<_ACEOF
14482 #define size_t unsigned int
14483 _ACEOF
14484
14485 fi
14486
14487 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
14488 if test "x$ac_cv_func_getgroups" = x""yes; then :
14489
14490 fi
14491
14492
14493 # If we don't yet have getgroups, see if it's in -lbsd.
14494 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
14495 ac_save_LIBS=$LIBS
14496 if test $ac_cv_func_getgroups = no; then
14497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
14498 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
14499 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
14500   $as_echo_n "(cached) " >&6
14501 else
14502   ac_check_lib_save_LIBS=$LIBS
14503 LIBS="-lbsd  $LIBS"
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h.  */
14506
14507 /* Override any GCC internal prototype to avoid an error.
14508    Use char because int might match the return type of a GCC
14509    builtin and then its argument prototype would still apply.  */
14510 #ifdef __cplusplus
14511 extern "C"
14512 #endif
14513 char getgroups ();
14514 int
14515 main ()
14516 {
14517 return getgroups ();
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 if ac_fn_c_try_link "$LINENO"; then :
14523   ac_cv_lib_bsd_getgroups=yes
14524 else
14525   ac_cv_lib_bsd_getgroups=no
14526 fi
14527 rm -f core conftest.err conftest.$ac_objext \
14528     conftest$ac_exeext conftest.$ac_ext
14529 LIBS=$ac_check_lib_save_LIBS
14530 fi
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
14532 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
14533 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
14534   GETGROUPS_LIB=-lbsd
14535 fi
14536
14537 fi
14538
14539 # Run the program to test the functionality of the system-supplied
14540 # getgroups function only if there is such a function.
14541 if test $ac_cv_func_getgroups = yes; then
14542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
14543 $as_echo_n "checking for working getgroups... " >&6; }
14544 if test "${ac_cv_func_getgroups_works+set}" = set; then :
14545   $as_echo_n "(cached) " >&6
14546 else
14547   if test "$cross_compiling" = yes; then :
14548   ac_cv_func_getgroups_works=no
14549 else
14550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h.  */
14552 $ac_includes_default
14553 int
14554 main ()
14555 {
14556 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
14557        return getgroups (0, 0) == -1;
14558   ;
14559   return 0;
14560 }
14561 _ACEOF
14562 if ac_fn_c_try_run "$LINENO"; then :
14563   ac_cv_func_getgroups_works=yes
14564 else
14565   ac_cv_func_getgroups_works=no
14566 fi
14567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14568   conftest.$ac_objext conftest.beam conftest.$ac_ext
14569 fi
14570
14571
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
14574 $as_echo "$ac_cv_func_getgroups_works" >&6; }
14575 else
14576   ac_cv_func_getgroups_works=no
14577 fi
14578 if test $ac_cv_func_getgroups_works = yes; then
14579
14580 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
14581
14582 fi
14583 LIBS=$ac_save_LIBS
14584
14585 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
14586                strftime setrlimit initgroups getgroups fstat gettimeofday \
14587                regcomp setlocale getaddrinfo setenv vhangup \
14588                mbr_check_membership setrlimit64
14589 do :
14590   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14591 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14592 eval as_val=\$$as_ac_var
14593    if test "x$as_val" = x""yes; then :
14594   cat >>confdefs.h <<_ACEOF
14595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14596 _ACEOF
14597
14598 fi
14599 done
14600
14601 for ac_func in getline
14602 do :
14603   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14604 if test "x$ac_cv_func_getline" = x""yes; then :
14605   cat >>confdefs.h <<_ACEOF
14606 #define HAVE_GETLINE 1
14607 _ACEOF
14608
14609 else
14610
14611     case " $LIBOBJS " in
14612   *" getline.$ac_objext "* ) ;;
14613   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14614  ;;
14615 esac
14616
14617     for ac_func in fgetln
14618 do :
14619   ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
14620 if test "x$ac_cv_func_fgetln" = x""yes; then :
14621   cat >>confdefs.h <<_ACEOF
14622 #define HAVE_FGETLN 1
14623 _ACEOF
14624
14625 fi
14626 done
14627
14628
14629 fi
14630 done
14631
14632 for ac_func in setsid
14633 do :
14634   ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
14635 if test "x$ac_cv_func_setsid" = x""yes; then :
14636   cat >>confdefs.h <<_ACEOF
14637 #define HAVE_SETSID 1
14638 _ACEOF
14639
14640 else
14641
14642     case " $LIBOBJS " in
14643   *" setsid.$ac_objext "* ) ;;
14644   *) LIBOBJS="$LIBOBJS setsid.$ac_objext"
14645  ;;
14646 esac
14647
14648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14649 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14650 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14651   $as_echo_n "(cached) " >&6
14652 else
14653   if test "$cross_compiling" = yes; then :
14654   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
14655 else
14656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657 /* end confdefs.h.  */
14658 $ac_includes_default
14659 int
14660 main ()
14661 {
14662 /* If this system has a BSD-style setpgrp which takes arguments,
14663   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14664   exit successfully. */
14665   return setpgrp (1,1) != -1;
14666   ;
14667   return 0;
14668 }
14669 _ACEOF
14670 if ac_fn_c_try_run "$LINENO"; then :
14671   ac_cv_func_setpgrp_void=no
14672 else
14673   ac_cv_func_setpgrp_void=yes
14674 fi
14675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14676   conftest.$ac_objext conftest.beam conftest.$ac_ext
14677 fi
14678
14679 fi
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14681 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14682 if test $ac_cv_func_setpgrp_void = yes; then
14683
14684 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14685
14686 fi
14687
14688
14689 fi
14690 done
14691
14692
14693 for ac_func in sysctl getutid getutxid
14694 do :
14695   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14697 eval as_val=\$$as_ac_var
14698    if test "x$as_val" = x""yes; then :
14699   cat >>confdefs.h <<_ACEOF
14700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14701 _ACEOF
14702  break
14703 fi
14704 done
14705
14706
14707 for ac_func in openpty
14708 do :
14709   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
14710 if test "x$ac_cv_func_openpty" = x""yes; then :
14711   cat >>confdefs.h <<_ACEOF
14712 #define HAVE_OPENPTY 1
14713 _ACEOF
14714  for ac_header in util.h pty.h
14715 do :
14716   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14717 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14718 eval as_val=\$$as_ac_Header
14719    if test "x$as_val" = x""yes; then :
14720   cat >>confdefs.h <<_ACEOF
14721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14722 _ACEOF
14723  break
14724 fi
14725
14726 done
14727
14728 else
14729
14730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
14731 $as_echo_n "checking for openpty in -lutil... " >&6; }
14732 if test "${ac_cv_lib_util_openpty+set}" = set; then :
14733   $as_echo_n "(cached) " >&6
14734 else
14735   ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lutil  $LIBS"
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h.  */
14739
14740 /* Override any GCC internal prototype to avoid an error.
14741    Use char because int might match the return type of a GCC
14742    builtin and then its argument prototype would still apply.  */
14743 #ifdef __cplusplus
14744 extern "C"
14745 #endif
14746 char openpty ();
14747 int
14748 main ()
14749 {
14750 return openpty ();
14751   ;
14752   return 0;
14753 }
14754 _ACEOF
14755 if ac_fn_c_try_link "$LINENO"; then :
14756   ac_cv_lib_util_openpty=yes
14757 else
14758   ac_cv_lib_util_openpty=no
14759 fi
14760 rm -f core conftest.err conftest.$ac_objext \
14761     conftest$ac_exeext conftest.$ac_ext
14762 LIBS=$ac_check_lib_save_LIBS
14763 fi
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
14765 $as_echo "$ac_cv_lib_util_openpty" >&6; }
14766 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
14767
14768         for ac_header in util.h pty.h
14769 do :
14770   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14771 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14772 eval as_val=\$$as_ac_Header
14773    if test "x$as_val" = x""yes; then :
14774   cat >>confdefs.h <<_ACEOF
14775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14776 _ACEOF
14777  break
14778 fi
14779
14780 done
14781
14782         SUDO_LIBS="${SUDO_LIBS} -lutil"
14783         $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
14784
14785
14786 else
14787
14788         for ac_func in _getpty
14789 do :
14790   ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
14791 if test "x$ac_cv_func__getpty" = x""yes; then :
14792   cat >>confdefs.h <<_ACEOF
14793 #define HAVE__GETPTY 1
14794 _ACEOF
14795
14796 else
14797
14798             for ac_func in grantpt
14799 do :
14800   ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14801 if test "x$ac_cv_func_grantpt" = x""yes; then :
14802   cat >>confdefs.h <<_ACEOF
14803 #define HAVE_GRANTPT 1
14804 _ACEOF
14805
14806                 for ac_func in posix_openpt
14807 do :
14808   ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
14809 if test "x$ac_cv_func_posix_openpt" = x""yes; then :
14810   cat >>confdefs.h <<_ACEOF
14811 #define HAVE_POSIX_OPENPT 1
14812 _ACEOF
14813
14814 fi
14815 done
14816
14817
14818 else
14819
14820                 for ac_func in revoke
14821 do :
14822   ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
14823 if test "x$ac_cv_func_revoke" = x""yes; then :
14824   cat >>confdefs.h <<_ACEOF
14825 #define HAVE_REVOKE 1
14826 _ACEOF
14827
14828 fi
14829 done
14830
14831
14832 fi
14833 done
14834
14835
14836 fi
14837 done
14838
14839
14840 fi
14841
14842
14843 fi
14844 done
14845
14846 for ac_func in unsetenv
14847 do :
14848   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
14849 if test "x$ac_cv_func_unsetenv" = x""yes; then :
14850   cat >>confdefs.h <<_ACEOF
14851 #define HAVE_UNSETENV 1
14852 _ACEOF
14853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
14854 $as_echo_n "checking whether unsetenv returns void... " >&6; }
14855 if test "${sudo_cv_func_unsetenv_void+set}" = set; then :
14856   $as_echo_n "(cached) " >&6
14857 else
14858   if test "$cross_compiling" = yes; then :
14859   sudo_cv_func_unsetenv_void=yes
14860 else
14861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h.  */
14863 $ac_includes_default
14864         int unsetenv();
14865
14866 int
14867 main ()
14868 {
14869
14870         return unsetenv("FOO") != 0;
14871
14872   ;
14873   return 0;
14874 }
14875
14876 _ACEOF
14877 if ac_fn_c_try_run "$LINENO"; then :
14878   sudo_cv_func_unsetenv_void=no
14879 else
14880   sudo_cv_func_unsetenv_void=yes
14881 fi
14882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14883   conftest.$ac_objext conftest.beam conftest.$ac_ext
14884 fi
14885
14886 fi
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
14888 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
14889     if test $sudo_cv_func_unsetenv_void = yes; then
14890
14891 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
14892
14893     fi
14894
14895 fi
14896 done
14897
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv has a const argument" >&5
14899 $as_echo_n "checking whether putenv has a const argument... " >&6; }
14900 if test "${sudo_cv_func_putenv_const+set}" = set; then :
14901   $as_echo_n "(cached) " >&6
14902 else
14903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h.  */
14905 $ac_includes_default
14906 int putenv(const char *string) {return 0;}
14907 int
14908 main ()
14909 {
14910
14911   ;
14912   return 0;
14913 }
14914 _ACEOF
14915 if ac_fn_c_try_compile "$LINENO"; then :
14916   sudo_cv_func_putenv_const=yes
14917 else
14918   sudo_cv_func_putenv_const=no
14919 fi
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921
14922 fi
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
14924 $as_echo "$sudo_cv_func_putenv_const" >&6; }
14925   if test $sudo_cv_func_putenv_const = yes; then
14926
14927 $as_echo "#define PUTENV_CONST 1" >>confdefs.h
14928
14929   fi
14930
14931 if test -z "$SKIP_SETRESUID"; then
14932     for ac_func in setresuid
14933 do :
14934   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
14935 if test "x$ac_cv_func_setresuid" = x""yes; then :
14936   cat >>confdefs.h <<_ACEOF
14937 #define HAVE_SETRESUID 1
14938 _ACEOF
14939  SKIP_SETREUID=yes
14940 fi
14941 done
14942
14943 fi
14944 if test -z "$SKIP_SETREUID"; then
14945     for ac_func in setreuid
14946 do :
14947   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
14948 if test "x$ac_cv_func_setreuid" = x""yes; then :
14949   cat >>confdefs.h <<_ACEOF
14950 #define HAVE_SETREUID 1
14951 _ACEOF
14952  SKIP_SETEUID=yes
14953 fi
14954 done
14955
14956 fi
14957 if test -z "$SKIP_SETEUID"; then
14958     for ac_func in seteuid
14959 do :
14960   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
14961 if test "x$ac_cv_func_seteuid" = x""yes; then :
14962   cat >>confdefs.h <<_ACEOF
14963 #define HAVE_SETEUID 1
14964 _ACEOF
14965
14966 fi
14967 done
14968
14969 fi
14970 if test X"$with_interfaces" != X"no"; then
14971     for ac_func in getifaddrs
14972 do :
14973   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
14974 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
14975   cat >>confdefs.h <<_ACEOF
14976 #define HAVE_GETIFADDRS 1
14977 _ACEOF
14978  for ac_func in freeifaddrs
14979 do :
14980   ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
14981 if test "x$ac_cv_func_freeifaddrs" = x""yes; then :
14982   cat >>confdefs.h <<_ACEOF
14983 #define HAVE_FREEIFADDRS 1
14984 _ACEOF
14985
14986 fi
14987 done
14988
14989 fi
14990 done
14991
14992 fi
14993 if test -z "$BROKEN_GETCWD"; then
14994     for ac_func in getcwd
14995 do :
14996   ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
14997 if test "x$ac_cv_func_getcwd" = x""yes; then :
14998   cat >>confdefs.h <<_ACEOF
14999 #define HAVE_GETCWD 1
15000 _ACEOF
15001
15002 else
15003   case " $LIBOBJS " in
15004   *" $ac_func.$ac_objext "* ) ;;
15005   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15006  ;;
15007 esac
15008
15009 fi
15010 done
15011
15012
15013 fi
15014 for ac_func in glob
15015 do :
15016   ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
15017 if test "x$ac_cv_func_glob" = x""yes; then :
15018   cat >>confdefs.h <<_ACEOF
15019 #define HAVE_GLOB 1
15020 _ACEOF
15021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15022 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h.  */
15025 #include <glob.h>
15026 int
15027 main ()
15028 {
15029 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15030   ;
15031   return 0;
15032 }
15033 _ACEOF
15034 if ac_fn_c_try_compile "$LINENO"; then :
15035   $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
15036
15037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15038 $as_echo "yes" >&6; }
15039 else
15040   case " $LIBOBJS " in
15041   *" glob.$ac_objext "* ) ;;
15042   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15043  ;;
15044 esac
15045
15046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15047 $as_echo "no" >&6; }
15048 fi
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15050 else
15051   case " $LIBOBJS " in
15052   *" glob.$ac_objext "* ) ;;
15053   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
15054  ;;
15055 esac
15056
15057 fi
15058 done
15059
15060 for ac_func in lockf flock
15061 do :
15062   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15063 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15064 eval as_val=\$$as_ac_var
15065    if test "x$as_val" = x""yes; then :
15066   cat >>confdefs.h <<_ACEOF
15067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15068 _ACEOF
15069  break
15070 fi
15071 done
15072
15073 for ac_func in waitpid wait3
15074 do :
15075   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15076 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15077 eval as_val=\$$as_ac_var
15078    if test "x$as_val" = x""yes; then :
15079   cat >>confdefs.h <<_ACEOF
15080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15081 _ACEOF
15082  break
15083 fi
15084 done
15085
15086 for ac_func in innetgr _innetgr
15087 do :
15088   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15089 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15090 eval as_val=\$$as_ac_var
15091    if test "x$as_val" = x""yes; then :
15092   cat >>confdefs.h <<_ACEOF
15093 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15094 _ACEOF
15095  for ac_func in getdomainname
15096 do :
15097   ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
15098 if test "x$ac_cv_func_getdomainname" = x""yes; then :
15099   cat >>confdefs.h <<_ACEOF
15100 #define HAVE_GETDOMAINNAME 1
15101 _ACEOF
15102
15103 fi
15104 done
15105  break
15106 fi
15107 done
15108
15109 for ac_func in utimes
15110 do :
15111   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15112 if test "x$ac_cv_func_utimes" = x""yes; then :
15113   cat >>confdefs.h <<_ACEOF
15114 #define HAVE_UTIMES 1
15115 _ACEOF
15116  for ac_func in futimes futimesat
15117 do :
15118   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15119 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15120 eval as_val=\$$as_ac_var
15121    if test "x$as_val" = x""yes; then :
15122   cat >>confdefs.h <<_ACEOF
15123 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15124 _ACEOF
15125  break
15126 fi
15127 done
15128
15129 else
15130   for ac_func in futime
15131 do :
15132   ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
15133 if test "x$ac_cv_func_futime" = x""yes; then :
15134   cat >>confdefs.h <<_ACEOF
15135 #define HAVE_FUTIME 1
15136 _ACEOF
15137
15138 fi
15139 done
15140  case " $LIBOBJS " in
15141   *" utimes.$ac_objext "* ) ;;
15142   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
15143  ;;
15144 esac
15145
15146 fi
15147 done
15148
15149 for ac_func in killpg
15150 do :
15151   ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
15152 if test "x$ac_cv_func_killpg" = x""yes; then :
15153   cat >>confdefs.h <<_ACEOF
15154 #define HAVE_KILLPG 1
15155 _ACEOF
15156
15157 else
15158   case " $LIBOBJS " in
15159   *" killpg.$ac_objext "* ) ;;
15160   *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
15161  ;;
15162 esac
15163
15164 fi
15165 done
15166
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
15168 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
15169 if test "${sudo_cv_func_fnmatch+set}" = set; then :
15170   $as_echo_n "(cached) " >&6
15171 else
15172   rm -f conftestdata; > conftestdata
15173 if test "$cross_compiling" = yes; then :
15174   sudo_cv_func_fnmatch=no
15175 else
15176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177 /* end confdefs.h.  */
15178 #include <fnmatch.h>
15179 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
15180 _ACEOF
15181 if ac_fn_c_try_run "$LINENO"; then :
15182   sudo_cv_func_fnmatch=yes
15183 else
15184   sudo_cv_func_fnmatch=no
15185 fi
15186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15187   conftest.$ac_objext conftest.beam conftest.$ac_ext
15188 fi
15189
15190 rm -f core core.* *.core
15191 fi
15192
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
15194 $as_echo "$sudo_cv_func_fnmatch" >&6; }
15195 if test $sudo_cv_func_fnmatch = yes; then :
15196   $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
15197
15198 else
15199   case " $LIBOBJS " in
15200   *" fnmatch.$ac_objext "* ) ;;
15201   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
15202  ;;
15203 esac
15204
15205 fi
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
15207 $as_echo_n "checking for isblank... " >&6; }
15208 if test "${sudo_cv_func_isblank+set}" = set; then :
15209   $as_echo_n "(cached) " >&6
15210 else
15211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h.  */
15213 #include <ctype.h>
15214 int
15215 main ()
15216 {
15217 return (isblank('a'));
15218   ;
15219   return 0;
15220 }
15221 _ACEOF
15222 if ac_fn_c_try_link "$LINENO"; then :
15223   sudo_cv_func_isblank=yes
15224 else
15225   sudo_cv_func_isblank=no
15226 fi
15227 rm -f core conftest.err conftest.$ac_objext \
15228     conftest$ac_exeext conftest.$ac_ext
15229 fi
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
15231 $as_echo "$sudo_cv_func_isblank" >&6; }
15232
15233   if test "$sudo_cv_func_isblank" = "yes"; then
15234
15235 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
15236
15237   else
15238     case " $LIBOBJS " in
15239   *" isblank.$ac_objext "* ) ;;
15240   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
15241  ;;
15242 esac
15243
15244   fi
15245
15246 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
15247 do :
15248   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15249 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15250 eval as_val=\$$as_ac_var
15251    if test "x$as_val" = x""yes; then :
15252   cat >>confdefs.h <<_ACEOF
15253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15254 _ACEOF
15255
15256 else
15257   case " $LIBOBJS " in
15258   *" $ac_func.$ac_objext "* ) ;;
15259   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15260  ;;
15261 esac
15262
15263 fi
15264 done
15265
15266
15267 for ac_func in nanosleep
15268 do :
15269   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
15270 if test "x$ac_cv_func_nanosleep" = x""yes; then :
15271   cat >>confdefs.h <<_ACEOF
15272 #define HAVE_NANOSLEEP 1
15273 _ACEOF
15274
15275 else
15276
15277     # On Solaris, nanosleep is in librt
15278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
15279 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
15280 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
15281   $as_echo_n "(cached) " >&6
15282 else
15283   ac_check_lib_save_LIBS=$LIBS
15284 LIBS="-lrt  $LIBS"
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h.  */
15287
15288 /* Override any GCC internal prototype to avoid an error.
15289    Use char because int might match the return type of a GCC
15290    builtin and then its argument prototype would still apply.  */
15291 #ifdef __cplusplus
15292 extern "C"
15293 #endif
15294 char nanosleep ();
15295 int
15296 main ()
15297 {
15298 return nanosleep ();
15299   ;
15300   return 0;
15301 }
15302 _ACEOF
15303 if ac_fn_c_try_link "$LINENO"; then :
15304   ac_cv_lib_rt_nanosleep=yes
15305 else
15306   ac_cv_lib_rt_nanosleep=no
15307 fi
15308 rm -f core conftest.err conftest.$ac_objext \
15309     conftest$ac_exeext conftest.$ac_ext
15310 LIBS=$ac_check_lib_save_LIBS
15311 fi
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
15313 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
15314 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
15315   LIBS="${LIBS} -lrt"
15316 else
15317   case " $LIBOBJS " in
15318   *" nanosleep.$ac_objext "* ) ;;
15319   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
15320  ;;
15321 esac
15322
15323 fi
15324
15325
15326 fi
15327 done
15328
15329 for ac_func in closefrom
15330 do :
15331   ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
15332 if test "x$ac_cv_func_closefrom" = x""yes; then :
15333   cat >>confdefs.h <<_ACEOF
15334 #define HAVE_CLOSEFROM 1
15335 _ACEOF
15336
15337 else
15338   case " $LIBOBJS " in
15339   *" closefrom.$ac_objext "* ) ;;
15340   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
15341  ;;
15342 esac
15343
15344     ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
15345           #include <fcntl.h>
15346 "
15347 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
15348   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
15349
15350 fi
15351
15352
15353 fi
15354 done
15355
15356 for ac_func in mkstemps
15357 do :
15358   ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
15359 if test "x$ac_cv_func_mkstemps" = x""yes; then :
15360   cat >>confdefs.h <<_ACEOF
15361 #define HAVE_MKSTEMPS 1
15362 _ACEOF
15363
15364 else
15365   SUDO_OBJS="${SUDO_OBJS} mkstemps.o"
15366     for ac_func in random lrand48
15367 do :
15368   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15370 eval as_val=\$$as_ac_var
15371    if test "x$as_val" = x""yes; then :
15372   cat >>confdefs.h <<_ACEOF
15373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15374 _ACEOF
15375  break
15376 fi
15377 done
15378
15379
15380 fi
15381 done
15382
15383 for ac_func in snprintf vsnprintf asprintf vasprintf
15384 do :
15385   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15387 eval as_val=\$$as_ac_var
15388    if test "x$as_val" = x""yes; then :
15389   cat >>confdefs.h <<_ACEOF
15390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15391 _ACEOF
15392
15393 else
15394   NEED_SNPRINTF=1
15395 fi
15396 done
15397
15398 if test X"$ac_cv_type_struct_timespec" != X"no"; then
15399     ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15400 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
15401   $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
15402
15403         ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
15404 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = x""yes; then :
15405   $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
15406
15407 fi
15408
15409 else
15410   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15411 if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then :
15412   $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
15413
15414 fi
15415
15416 fi
15417
15418 fi
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h.  */
15421 #include <sys/types.h>
15422 #include <$ac_header_dirent>
15423 int
15424 main ()
15425 {
15426 DIR *d; (void)dirfd(d);
15427   ;
15428   return 0;
15429 }
15430 _ACEOF
15431 if ac_fn_c_try_link "$LINENO"; then :
15432   $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
15433
15434 else
15435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h.  */
15437 #include <sys/types.h>
15438 #include <$ac_header_dirent>
15439 int
15440 main ()
15441 {
15442 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
15443   ;
15444   return 0;
15445 }
15446 _ACEOF
15447 if ac_fn_c_try_link "$LINENO"; then :
15448   $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
15449
15450 fi
15451 rm -f core conftest.err conftest.$ac_objext \
15452     conftest$ac_exeext conftest.$ac_ext
15453 fi
15454 rm -f core conftest.err conftest.$ac_objext \
15455     conftest$ac_exeext conftest.$ac_ext
15456 if test -n "$NEED_SNPRINTF"; then
15457     case " $LIBOBJS " in
15458   *" snprintf.$ac_objext "* ) ;;
15459   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15460  ;;
15461 esac
15462
15463 fi
15464 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15465 if test "x$ac_cv_func_socket" = x""yes; then :
15466
15467 else
15468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15469 $as_echo_n "checking for socket in -lsocket... " >&6; }
15470 if test "${ac_cv_lib_socket_socket+set}" = set; then :
15471   $as_echo_n "(cached) " >&6
15472 else
15473   ac_check_lib_save_LIBS=$LIBS
15474 LIBS="-lsocket  $LIBS"
15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h.  */
15477
15478 /* Override any GCC internal prototype to avoid an error.
15479    Use char because int might match the return type of a GCC
15480    builtin and then its argument prototype would still apply.  */
15481 #ifdef __cplusplus
15482 extern "C"
15483 #endif
15484 char socket ();
15485 int
15486 main ()
15487 {
15488 return socket ();
15489   ;
15490   return 0;
15491 }
15492 _ACEOF
15493 if ac_fn_c_try_link "$LINENO"; then :
15494   ac_cv_lib_socket_socket=yes
15495 else
15496   ac_cv_lib_socket_socket=no
15497 fi
15498 rm -f core conftest.err conftest.$ac_objext \
15499     conftest$ac_exeext conftest.$ac_ext
15500 LIBS=$ac_check_lib_save_LIBS
15501 fi
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15503 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15504 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
15505   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
15506 else
15507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
15508 $as_echo_n "checking for socket in -linet... " >&6; }
15509 if test "${ac_cv_lib_inet_socket+set}" = set; then :
15510   $as_echo_n "(cached) " >&6
15511 else
15512   ac_check_lib_save_LIBS=$LIBS
15513 LIBS="-linet  $LIBS"
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h.  */
15516
15517 /* Override any GCC internal prototype to avoid an error.
15518    Use char because int might match the return type of a GCC
15519    builtin and then its argument prototype would still apply.  */
15520 #ifdef __cplusplus
15521 extern "C"
15522 #endif
15523 char socket ();
15524 int
15525 main ()
15526 {
15527 return socket ();
15528   ;
15529   return 0;
15530 }
15531 _ACEOF
15532 if ac_fn_c_try_link "$LINENO"; then :
15533   ac_cv_lib_inet_socket=yes
15534 else
15535   ac_cv_lib_inet_socket=no
15536 fi
15537 rm -f core conftest.err conftest.$ac_objext \
15538     conftest$ac_exeext conftest.$ac_ext
15539 LIBS=$ac_check_lib_save_LIBS
15540 fi
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
15542 $as_echo "$ac_cv_lib_inet_socket" >&6; }
15543 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
15544   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
15545 else
15546   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
15547 $as_echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15549 $as_echo_n "checking for socket in -lsocket... " >&6; }
15550 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then :
15551   $as_echo_n "(cached) " >&6
15552 else
15553   ac_check_lib_save_LIBS=$LIBS
15554 LIBS="-lsocket -lnsl $LIBS"
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h.  */
15557
15558 /* Override any GCC internal prototype to avoid an error.
15559    Use char because int might match the return type of a GCC
15560    builtin and then its argument prototype would still apply.  */
15561 #ifdef __cplusplus
15562 extern "C"
15563 #endif
15564 char socket ();
15565 int
15566 main ()
15567 {
15568 return socket ();
15569   ;
15570   return 0;
15571 }
15572 _ACEOF
15573 if ac_fn_c_try_link "$LINENO"; then :
15574   ac_cv_lib_socket_socket_lnsl=yes
15575 else
15576   ac_cv_lib_socket_socket_lnsl=no
15577 fi
15578 rm -f core conftest.err conftest.$ac_objext \
15579     conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15581 fi
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket_lnsl" >&5
15583 $as_echo "$ac_cv_lib_socket_socket_lnsl" >&6; }
15584 if test "x$ac_cv_lib_socket_socket_lnsl" = x""yes; then :
15585   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
15586 fi
15587
15588 fi
15589
15590 fi
15591
15592 fi
15593
15594 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
15595 if test "x$ac_cv_func_inet_addr" = x""yes; then :
15596
15597 else
15598   ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
15599 if test "x$ac_cv_func___inet_addr" = x""yes; then :
15600
15601 else
15602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
15603 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
15604 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
15605   $as_echo_n "(cached) " >&6
15606 else
15607   ac_check_lib_save_LIBS=$LIBS
15608 LIBS="-lnsl  $LIBS"
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h.  */
15611
15612 /* Override any GCC internal prototype to avoid an error.
15613    Use char because int might match the return type of a GCC
15614    builtin and then its argument prototype would still apply.  */
15615 #ifdef __cplusplus
15616 extern "C"
15617 #endif
15618 char inet_addr ();
15619 int
15620 main ()
15621 {
15622 return inet_addr ();
15623   ;
15624   return 0;
15625 }
15626 _ACEOF
15627 if ac_fn_c_try_link "$LINENO"; then :
15628   ac_cv_lib_nsl_inet_addr=yes
15629 else
15630   ac_cv_lib_nsl_inet_addr=no
15631 fi
15632 rm -f core conftest.err conftest.$ac_objext \
15633     conftest$ac_exeext conftest.$ac_ext
15634 LIBS=$ac_check_lib_save_LIBS
15635 fi
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
15637 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
15638 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
15639   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
15640 else
15641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -linet" >&5
15642 $as_echo_n "checking for inet_addr in -linet... " >&6; }
15643 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then :
15644   $as_echo_n "(cached) " >&6
15645 else
15646   ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-linet  $LIBS"
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h.  */
15650
15651 /* Override any GCC internal prototype to avoid an error.
15652    Use char because int might match the return type of a GCC
15653    builtin and then its argument prototype would still apply.  */
15654 #ifdef __cplusplus
15655 extern "C"
15656 #endif
15657 char inet_addr ();
15658 int
15659 main ()
15660 {
15661 return inet_addr ();
15662   ;
15663   return 0;
15664 }
15665 _ACEOF
15666 if ac_fn_c_try_link "$LINENO"; then :
15667   ac_cv_lib_inet_inet_addr=yes
15668 else
15669   ac_cv_lib_inet_inet_addr=no
15670 fi
15671 rm -f core conftest.err conftest.$ac_objext \
15672     conftest$ac_exeext conftest.$ac_ext
15673 LIBS=$ac_check_lib_save_LIBS
15674 fi
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_inet_addr" >&5
15676 $as_echo "$ac_cv_lib_inet_inet_addr" >&6; }
15677 if test "x$ac_cv_lib_inet_inet_addr" = x""yes; then :
15678   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
15679 else
15680   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
15681 $as_echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5
15683 $as_echo_n "checking for inet_addr in -lsocket... " >&6; }
15684 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then :
15685   $as_echo_n "(cached) " >&6
15686 else
15687   ac_check_lib_save_LIBS=$LIBS
15688 LIBS="-lsocket -lnsl $LIBS"
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h.  */
15691
15692 /* Override any GCC internal prototype to avoid an error.
15693    Use char because int might match the return type of a GCC
15694    builtin and then its argument prototype would still apply.  */
15695 #ifdef __cplusplus
15696 extern "C"
15697 #endif
15698 char inet_addr ();
15699 int
15700 main ()
15701 {
15702 return inet_addr ();
15703   ;
15704   return 0;
15705 }
15706 _ACEOF
15707 if ac_fn_c_try_link "$LINENO"; then :
15708   ac_cv_lib_socket_inet_addr_lnsl=yes
15709 else
15710   ac_cv_lib_socket_inet_addr_lnsl=no
15711 fi
15712 rm -f core conftest.err conftest.$ac_objext \
15713     conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15715 fi
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
15717 $as_echo "$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
15718 if test "x$ac_cv_lib_socket_inet_addr_lnsl" = x""yes; then :
15719   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
15720 fi
15721
15722 fi
15723
15724 fi
15725
15726 fi
15727
15728 fi
15729
15730 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
15731 if test "x$ac_cv_func_syslog" = x""yes; then :
15732
15733 else
15734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsocket" >&5
15735 $as_echo_n "checking for syslog in -lsocket... " >&6; }
15736 if test "${ac_cv_lib_socket_syslog+set}" = set; then :
15737   $as_echo_n "(cached) " >&6
15738 else
15739   ac_check_lib_save_LIBS=$LIBS
15740 LIBS="-lsocket  $LIBS"
15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h.  */
15743
15744 /* Override any GCC internal prototype to avoid an error.
15745    Use char because int might match the return type of a GCC
15746    builtin and then its argument prototype would still apply.  */
15747 #ifdef __cplusplus
15748 extern "C"
15749 #endif
15750 char syslog ();
15751 int
15752 main ()
15753 {
15754 return syslog ();
15755   ;
15756   return 0;
15757 }
15758 _ACEOF
15759 if ac_fn_c_try_link "$LINENO"; then :
15760   ac_cv_lib_socket_syslog=yes
15761 else
15762   ac_cv_lib_socket_syslog=no
15763 fi
15764 rm -f core conftest.err conftest.$ac_objext \
15765     conftest$ac_exeext conftest.$ac_ext
15766 LIBS=$ac_check_lib_save_LIBS
15767 fi
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_syslog" >&5
15769 $as_echo "$ac_cv_lib_socket_syslog" >&6; }
15770 if test "x$ac_cv_lib_socket_syslog" = x""yes; then :
15771   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
15772 else
15773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lnsl" >&5
15774 $as_echo_n "checking for syslog in -lnsl... " >&6; }
15775 if test "${ac_cv_lib_nsl_syslog+set}" = set; then :
15776   $as_echo_n "(cached) " >&6
15777 else
15778   ac_check_lib_save_LIBS=$LIBS
15779 LIBS="-lnsl  $LIBS"
15780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h.  */
15782
15783 /* Override any GCC internal prototype to avoid an error.
15784    Use char because int might match the return type of a GCC
15785    builtin and then its argument prototype would still apply.  */
15786 #ifdef __cplusplus
15787 extern "C"
15788 #endif
15789 char syslog ();
15790 int
15791 main ()
15792 {
15793 return syslog ();
15794   ;
15795   return 0;
15796 }
15797 _ACEOF
15798 if ac_fn_c_try_link "$LINENO"; then :
15799   ac_cv_lib_nsl_syslog=yes
15800 else
15801   ac_cv_lib_nsl_syslog=no
15802 fi
15803 rm -f core conftest.err conftest.$ac_objext \
15804     conftest$ac_exeext conftest.$ac_ext
15805 LIBS=$ac_check_lib_save_LIBS
15806 fi
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_syslog" >&5
15808 $as_echo "$ac_cv_lib_nsl_syslog" >&6; }
15809 if test "x$ac_cv_lib_nsl_syslog" = x""yes; then :
15810   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
15811 else
15812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -linet" >&5
15813 $as_echo_n "checking for syslog in -linet... " >&6; }
15814 if test "${ac_cv_lib_inet_syslog+set}" = set; then :
15815   $as_echo_n "(cached) " >&6
15816 else
15817   ac_check_lib_save_LIBS=$LIBS
15818 LIBS="-linet  $LIBS"
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h.  */
15821
15822 /* Override any GCC internal prototype to avoid an error.
15823    Use char because int might match the return type of a GCC
15824    builtin and then its argument prototype would still apply.  */
15825 #ifdef __cplusplus
15826 extern "C"
15827 #endif
15828 char syslog ();
15829 int
15830 main ()
15831 {
15832 return syslog ();
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 if ac_fn_c_try_link "$LINENO"; then :
15838   ac_cv_lib_inet_syslog=yes
15839 else
15840   ac_cv_lib_inet_syslog=no
15841 fi
15842 rm -f core conftest.err conftest.$ac_objext \
15843     conftest$ac_exeext conftest.$ac_ext
15844 LIBS=$ac_check_lib_save_LIBS
15845 fi
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_syslog" >&5
15847 $as_echo "$ac_cv_lib_inet_syslog" >&6; }
15848 if test "x$ac_cv_lib_inet_syslog" = x""yes; then :
15849   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
15850 fi
15851
15852 fi
15853
15854 fi
15855
15856 fi
15857
15858 for ac_func in getprogname
15859 do :
15860   ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
15861 if test "x$ac_cv_func_getprogname" = x""yes; then :
15862   cat >>confdefs.h <<_ACEOF
15863 #define HAVE_GETPROGNAME 1
15864 _ACEOF
15865
15866 else
15867
15868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
15869 $as_echo_n "checking for __progname... " >&6; }
15870     if test "${sudo_cv___progname+set}" = set; then :
15871   $as_echo_n "(cached) " >&6
15872 else
15873
15874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h.  */
15876
15877 int
15878 main ()
15879 {
15880 extern char *__progname; (void)puts(__progname);
15881   ;
15882   return 0;
15883 }
15884 _ACEOF
15885 if ac_fn_c_try_link "$LINENO"; then :
15886   sudo_cv___progname=yes
15887 else
15888   sudo_cv___progname=no
15889 fi
15890 rm -f core conftest.err conftest.$ac_objext \
15891     conftest$ac_exeext conftest.$ac_ext
15892 fi
15893
15894     if test "$sudo_cv___progname" = "yes"; then
15895         $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
15896
15897     else
15898         case " $LIBOBJS " in
15899   *" getprogname.$ac_objext "* ) ;;
15900   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
15901  ;;
15902 esac
15903
15904     fi
15905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
15906 $as_echo "$sudo_cv___progname" >&6; }
15907
15908 fi
15909 done
15910
15911
15912 for ac_func in strsignal
15913 do :
15914   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
15915 if test "x$ac_cv_func_strsignal" = x""yes; then :
15916   cat >>confdefs.h <<_ACEOF
15917 #define HAVE_STRSIGNAL 1
15918 _ACEOF
15919
15920 else
15921
15922     case " $LIBOBJS " in
15923   *" strsignal.$ac_objext "* ) ;;
15924   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
15925  ;;
15926 esac
15927
15928     HAVE_SIGLIST="false"
15929     ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
15930 $ac_includes_default
15931 #include <signal.h>
15932
15933 "
15934 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
15935   ac_have_decl=1
15936 else
15937   ac_have_decl=0
15938 fi
15939
15940 cat >>confdefs.h <<_ACEOF
15941 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
15942 _ACEOF
15943 if test $ac_have_decl = 1; then :
15944
15945         HAVE_SIGLIST="true"
15946         break
15947
15948 fi
15949 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
15950 $ac_includes_default
15951 #include <signal.h>
15952
15953 "
15954 if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
15955   ac_have_decl=1
15956 else
15957   ac_have_decl=0
15958 fi
15959
15960 cat >>confdefs.h <<_ACEOF
15961 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
15962 _ACEOF
15963 if test $ac_have_decl = 1; then :
15964
15965         HAVE_SIGLIST="true"
15966         break
15967
15968 fi
15969 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
15970 $ac_includes_default
15971 #include <signal.h>
15972
15973 "
15974 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
15975   ac_have_decl=1
15976 else
15977   ac_have_decl=0
15978 fi
15979
15980 cat >>confdefs.h <<_ACEOF
15981 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
15982 _ACEOF
15983 if test $ac_have_decl = 1; then :
15984
15985         HAVE_SIGLIST="true"
15986         break
15987
15988 fi
15989
15990     if test "$HAVE_SIGLIST" != "true"; then
15991         case " $LIBOBJS " in
15992   *" siglist.$ac_objext "* ) ;;
15993   *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
15994  ;;
15995 esac
15996
15997     fi
15998
15999 fi
16000 done
16001
16002
16003 if test ${with_netsvc-"no"} != "no"; then
16004     cat >>confdefs.h <<EOF
16005 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
16006 EOF
16007
16008     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
16009 elif test ${with_nsswitch-"yes"} != "no"; then
16010     cat >>confdefs.h <<EOF
16011 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
16012 EOF
16013
16014     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
16015 fi
16016
16017
16018 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
16019     for auth in $AUTH_EXCL_DEF; do
16020         case $auth in
16021             AIX_AUTH)   with_aixauth=maybe;;
16022             BSD_AUTH)   with_bsdauth=maybe;;
16023             PAM)        with_pam=maybe;;
16024             SIA)        CHECKSIA=true;;
16025         esac
16026     done
16027 fi
16028
16029 if test ${with_pam-"no"} != "no"; then
16030                 case "$LIBS" in
16031         *-ldl*) SUDO_LIBS="${SUDO_LIBS} -lpam"
16032                 ;;
16033         *)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
16034 $as_echo_n "checking for main in -ldl... " >&6; }
16035 if test "${ac_cv_lib_dl_main+set}" = set; then :
16036   $as_echo_n "(cached) " >&6
16037 else
16038   ac_check_lib_save_LIBS=$LIBS
16039 LIBS="-ldl  $LIBS"
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h.  */
16042
16043
16044 int
16045 main ()
16046 {
16047 return main ();
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 if ac_fn_c_try_link "$LINENO"; then :
16053   ac_cv_lib_dl_main=yes
16054 else
16055   ac_cv_lib_dl_main=no
16056 fi
16057 rm -f core conftest.err conftest.$ac_objext \
16058     conftest$ac_exeext conftest.$ac_ext
16059 LIBS=$ac_check_lib_save_LIBS
16060 fi
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
16062 $as_echo "$ac_cv_lib_dl_main" >&6; }
16063 if test "x$ac_cv_lib_dl_main" = x""yes; then :
16064   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
16065 else
16066   SUDO_LIBS="${SUDO_LIBS} -lpam"
16067 fi
16068
16069                 ac_cv_lib_dl=ac_cv_lib_dl_main
16070                 ;;
16071     esac
16072
16073                     for ac_header in security/pam_appl.h pam/pam_appl.h
16074 do :
16075   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16076 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16077 eval as_val=\$$as_ac_Header
16078    if test "x$as_val" = x""yes; then :
16079   cat >>confdefs.h <<_ACEOF
16080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16081 _ACEOF
16082  with_pam=yes; break
16083 fi
16084
16085 done
16086
16087     if test "$with_pam" = "yes"; then
16088         $as_echo "#define HAVE_PAM 1" >>confdefs.h
16089
16090         AUTH_OBJS="$AUTH_OBJS pam.o";
16091         AUTH_EXCL=PAM
16092
16093
16094 # Check whether --with-pam-login was given.
16095 if test "${with_pam_login+set}" = set; then :
16096   withval=$with_pam_login; case $with_pam_login in
16097             yes)        $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
16098
16099                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
16100 $as_echo_n "checking whether to use PAM login... " >&6; }
16101                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16102 $as_echo "yes" >&6; }
16103                         ;;
16104             no)         ;;
16105             *)          as_fn_error "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
16106                         ;;
16107         esac
16108 fi
16109
16110
16111         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
16112 $as_echo_n "checking whether to use PAM session support... " >&6; }
16113         # Check whether --enable-pam_session was given.
16114 if test "${enable_pam_session+set}" = set; then :
16115   enableval=$enable_pam_session;  case "$enableval" in
16116                 yes)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16117 $as_echo "yes" >&6; }
16118                         ;;
16119                 no)             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120 $as_echo "no" >&6; }
16121
16122 $as_echo "#define NO_PAM_SESSION /**/" >>confdefs.h
16123
16124                             ;;
16125                 *)              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16127                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
16128 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
16129                             ;;
16130             esac
16131 else
16132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16133 $as_echo "yes" >&6; }
16134 fi
16135
16136
16137         case $host in
16138             *-*-linux*|*-*-solaris*)
16139                     # dgettext() may be defined to dgettext_libintl in the
16140                     # header file, so first check that it links w/ additional
16141                     # libs, then try with -lintl
16142                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h.  */
16144 #include <libintl.h>
16145 int
16146 main ()
16147 {
16148 (void)dgettext((char *)0, (char *)0);
16149   ;
16150   return 0;
16151 }
16152 _ACEOF
16153 if ac_fn_c_try_link "$LINENO"; then :
16154   $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16155
16156 else
16157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16158 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16159 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
16160   $as_echo_n "(cached) " >&6
16161 else
16162   ac_check_lib_save_LIBS=$LIBS
16163 LIBS="-lintl  $LIBS"
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h.  */
16166
16167 /* Override any GCC internal prototype to avoid an error.
16168    Use char because int might match the return type of a GCC
16169    builtin and then its argument prototype would still apply.  */
16170 #ifdef __cplusplus
16171 extern "C"
16172 #endif
16173 char dgettext ();
16174 int
16175 main ()
16176 {
16177 return dgettext ();
16178   ;
16179   return 0;
16180 }
16181 _ACEOF
16182 if ac_fn_c_try_link "$LINENO"; then :
16183   ac_cv_lib_intl_dgettext=yes
16184 else
16185   ac_cv_lib_intl_dgettext=no
16186 fi
16187 rm -f core conftest.err conftest.$ac_objext \
16188     conftest$ac_exeext conftest.$ac_ext
16189 LIBS=$ac_check_lib_save_LIBS
16190 fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16192 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16193 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
16194   LIBS="${LIBS} -lintl"
16195                         $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h
16196
16197 fi
16198
16199 fi
16200 rm -f core conftest.err conftest.$ac_objext \
16201     conftest$ac_exeext conftest.$ac_ext
16202                     ;;
16203         esac
16204     fi
16205 fi
16206
16207 if test ${with_aixauth-'no'} != "no"; then
16208     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
16209         { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
16210 $as_echo "$as_me: using AIX general authentication" >&6;}
16211         $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
16212
16213         AUTH_OBJS="$AUTH_OBJS aix_auth.o";
16214         SUDO_LIBS="${SUDO_LIBS} -ls"
16215         AUTH_EXCL=AIX_AUTH
16216     fi
16217 fi
16218
16219 if test ${with_bsdauth-'no'} != "no"; then
16220     ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
16221 if test "x$ac_cv_header_bsd_auth_h" = x""yes; then :
16222   $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
16223
16224         AUTH_OBJS="$AUTH_OBJS bsdauth.o"
16225         BSDAUTH_USAGE='[-a auth_type] '
16226         AUTH_EXCL=BSD_AUTH; BAMAN=1
16227 else
16228   as_fn_error "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
16229 fi
16230
16231
16232 fi
16233
16234 if test ${CHECKSIA-'false'} = "true"; then
16235     for ac_func in sia_ses_init
16236 do :
16237   ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
16238 if test "x$ac_cv_func_sia_ses_init" = x""yes; then :
16239   cat >>confdefs.h <<_ACEOF
16240 #define HAVE_SIA_SES_INIT 1
16241 _ACEOF
16242  found=true
16243 else
16244   found=false
16245 fi
16246 done
16247
16248     if test "$found" = "true"; then
16249         AUTH_EXCL=SIA
16250         AUTH_OBJS="$AUTH_OBJS sia.o"
16251     fi
16252 fi
16253
16254 if test ${with_fwtk-'no'} != "no"; then
16255     if test "$with_fwtk" != "yes"; then
16256
16257     if test X"$with_rpath" = X"yes"; then
16258         case "$host" in
16259             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
16260                         ;;
16261             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
16262                         ;;
16263         esac
16264     else
16265         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
16266     fi
16267     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16268         blibpath_add="${blibpath_add}:${with_fwtk}"
16269     fi
16270
16271         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
16272         with_fwtk=yes
16273     fi
16274     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
16275     AUTH_OBJS="$AUTH_OBJS fwtk.o"
16276 fi
16277
16278 if test ${with_SecurID-'no'} != "no"; then
16279     if test "$with_SecurID" != "yes"; then
16280         :
16281     elif test -d /usr/ace/examples; then
16282         with_SecurID=/usr/ace/examples
16283     else
16284         with_SecurID=/usr/ace
16285     fi
16286     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
16287     _LDFLAGS="${LDFLAGS}"
16288
16289     if test X"$with_rpath" = X"yes"; then
16290         case "$host" in
16291             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16292                         ;;
16293             *)          LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16294                         ;;
16295         esac
16296     else
16297         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
16298     fi
16299     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16300         blibpath_add="${blibpath_add}:${with_SecurID}"
16301     fi
16302
16303     #
16304     # Determine whether to use the new or old SecurID API
16305     #
16306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
16307 $as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
16308 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then :
16309   $as_echo_n "(cached) " >&6
16310 else
16311   ac_check_lib_save_LIBS=$LIBS
16312 LIBS="-laceclnt
16313             -lpthread
16314
16315      $LIBS"
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h.  */
16318
16319 /* Override any GCC internal prototype to avoid an error.
16320    Use char because int might match the return type of a GCC
16321    builtin and then its argument prototype would still apply.  */
16322 #ifdef __cplusplus
16323 extern "C"
16324 #endif
16325 char SD_Init ();
16326 int
16327 main ()
16328 {
16329 return SD_Init ();
16330   ;
16331   return 0;
16332 }
16333 _ACEOF
16334 if ac_fn_c_try_link "$LINENO"; then :
16335   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
16336 else
16337   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
16338 fi
16339 rm -f core conftest.err conftest.$ac_objext \
16340     conftest$ac_exeext conftest.$ac_ext
16341 LIBS=$ac_check_lib_save_LIBS
16342 fi
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
16344 $as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
16345 if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = x""yes; then :
16346
16347             AUTH_OBJS="$AUTH_OBJS securid5.o";
16348             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
16349
16350
16351
16352     if test X"$with_rpath" = X"yes"; then
16353         case "$host" in
16354             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
16355                         ;;
16356             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
16357                         ;;
16358         esac
16359     else
16360         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
16361     fi
16362     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16363         blibpath_add="${blibpath_add}:${with_SecurID}"
16364     fi
16365
16366
16367 else
16368
16369             AUTH_OBJS="$AUTH_OBJS securid.o";
16370             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
16371
16372 fi
16373
16374     LDFLAGS="${_LDFLAGS}"
16375 fi
16376
16377
16378 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
16379     for auth in $AUTH_DEF; do
16380         case $auth in
16381             passwd)     : ${with_passwd='maybe'};;
16382         esac
16383     done
16384 fi
16385
16386 if test ${with_kerb4-'no'} != "no"; then
16387     $as_echo "#define HAVE_KERB4 1" >>confdefs.h
16388
16389                 O_LDFLAGS="$LDFLAGS"
16390     if test "$with_kerb4" = "yes"; then
16391         found=no
16392         O_CPPFLAGS="$CPPFLAGS"
16393         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
16394             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
16395             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h.  */
16397 #include <krb.h>
16398 _ACEOF
16399 if ac_fn_c_try_cpp "$LINENO"; then :
16400   found=yes; break
16401 fi
16402 rm -f conftest.err conftest.$ac_ext
16403         done
16404         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
16405     else
16406
16407     if test X"$with_rpath" = X"yes"; then
16408         case "$host" in
16409             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16410                         ;;
16411             *)          LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16412                         ;;
16413         esac
16414     else
16415         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
16416     fi
16417     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
16418         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16419     fi
16420
16421
16422     if test X"$with_rpath" = X"yes"; then
16423         case "$host" in
16424             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib"
16425                         ;;
16426             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib"
16427                         ;;
16428         esac
16429     else
16430         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
16431     fi
16432     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16433         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
16434     fi
16435
16436         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
16437         ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16438 if test "x$ac_cv_header_krb_h" = x""yes; then :
16439   found=yes
16440 else
16441   found=no
16442 fi
16443
16444
16445     fi
16446     if test X"$found" = X"no"; then
16447         { $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
16448 $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;}
16449     fi
16450
16451                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16452 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16453 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
16454   $as_echo_n "(cached) " >&6
16455 else
16456   ac_check_lib_save_LIBS=$LIBS
16457 LIBS="-ldes  $LIBS"
16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459 /* end confdefs.h.  */
16460
16461 /* Override any GCC internal prototype to avoid an error.
16462    Use char because int might match the return type of a GCC
16463    builtin and then its argument prototype would still apply.  */
16464 #ifdef __cplusplus
16465 extern "C"
16466 #endif
16467 char des_cbc_encrypt ();
16468 int
16469 main ()
16470 {
16471 return des_cbc_encrypt ();
16472   ;
16473   return 0;
16474 }
16475 _ACEOF
16476 if ac_fn_c_try_link "$LINENO"; then :
16477   ac_cv_lib_des_des_cbc_encrypt=yes
16478 else
16479   ac_cv_lib_des_des_cbc_encrypt=no
16480 fi
16481 rm -f core conftest.err conftest.$ac_objext \
16482     conftest$ac_exeext conftest.$ac_ext
16483 LIBS=$ac_check_lib_save_LIBS
16484 fi
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16486 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16487 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
16488   K4LIBS="-ldes"
16489 else
16490
16491         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16492 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16493 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
16494   $as_echo_n "(cached) " >&6
16495 else
16496   ac_check_lib_save_LIBS=$LIBS
16497 LIBS="-ldes425  $LIBS"
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h.  */
16500
16501 /* Override any GCC internal prototype to avoid an error.
16502    Use char because int might match the return type of a GCC
16503    builtin and then its argument prototype would still apply.  */
16504 #ifdef __cplusplus
16505 extern "C"
16506 #endif
16507 char des_cbc_encrypt ();
16508 int
16509 main ()
16510 {
16511 return des_cbc_encrypt ();
16512   ;
16513   return 0;
16514 }
16515 _ACEOF
16516 if ac_fn_c_try_link "$LINENO"; then :
16517   ac_cv_lib_des425_des_cbc_encrypt=yes
16518 else
16519   ac_cv_lib_des425_des_cbc_encrypt=no
16520 fi
16521 rm -f core conftest.err conftest.$ac_objext \
16522     conftest$ac_exeext conftest.$ac_ext
16523 LIBS=$ac_check_lib_save_LIBS
16524 fi
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16526 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16527 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
16528   K4LIBS="-ldes425"
16529 else
16530   K4LIBS=""
16531 fi
16532
16533
16534 fi
16535
16536                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5
16537 $as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; }
16538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h.  */
16540 #include <krb.h>
16541 int
16542 main ()
16543 {
16544 const char *tmp = krb4_version;
16545   ;
16546   return 0;
16547 }
16548 _ACEOF
16549 if ac_fn_c_try_compile "$LINENO"; then :
16550
16551             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16552 $as_echo "yes" >&6; }
16553             K4LIBS="${K4LIBS} -lcom_err"
16554             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
16555 $as_echo_n "checking for main in -lroken... " >&6; }
16556 if test "${ac_cv_lib_roken_main+set}" = set; then :
16557   $as_echo_n "(cached) " >&6
16558 else
16559   ac_check_lib_save_LIBS=$LIBS
16560 LIBS="-lroken  $LIBS"
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h.  */
16563
16564
16565 int
16566 main ()
16567 {
16568 return main ();
16569   ;
16570   return 0;
16571 }
16572 _ACEOF
16573 if ac_fn_c_try_link "$LINENO"; then :
16574   ac_cv_lib_roken_main=yes
16575 else
16576   ac_cv_lib_roken_main=no
16577 fi
16578 rm -f core conftest.err conftest.$ac_objext \
16579     conftest$ac_exeext conftest.$ac_ext
16580 LIBS=$ac_check_lib_save_LIBS
16581 fi
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
16583 $as_echo "$ac_cv_lib_roken_main" >&6; }
16584 if test "x$ac_cv_lib_roken_main" = x""yes; then :
16585   K4LIBS="${K4LIBS} -lroken"
16586 fi
16587
16588
16589 else
16590
16591             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16592 $as_echo "no" >&6; }
16593
16594
16595 fi
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597                 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5
16599 $as_echo_n "checking for main in -lkrb... " >&6; }
16600 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16601   $as_echo_n "(cached) " >&6
16602 else
16603   ac_check_lib_save_LIBS=$LIBS
16604 LIBS="-lkrb $K4LIBS $LIBS"
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h.  */
16607
16608
16609 int
16610 main ()
16611 {
16612 return main ();
16613   ;
16614   return 0;
16615 }
16616 _ACEOF
16617 if ac_fn_c_try_link "$LINENO"; then :
16618   eval "$as_ac_Lib=yes"
16619 else
16620   eval "$as_ac_Lib=no"
16621 fi
16622 rm -f core conftest.err conftest.$ac_objext \
16623     conftest$ac_exeext conftest.$ac_ext
16624 LIBS=$ac_check_lib_save_LIBS
16625 fi
16626 eval ac_res=\$$as_ac_Lib
16627                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16628 $as_echo "$ac_res" >&6; }
16629 eval as_val=\$$as_ac_Lib
16630    if test "x$as_val" = x""yes; then :
16631   K4LIBS="-lkrb $K4LIBS"
16632 else
16633
16634         as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5
16636 $as_echo_n "checking for main in -lkrb4... " >&6; }
16637 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16638   $as_echo_n "(cached) " >&6
16639 else
16640   ac_check_lib_save_LIBS=$LIBS
16641 LIBS="-lkrb4 $K4LIBS $LIBS"
16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h.  */
16644
16645
16646 int
16647 main ()
16648 {
16649 return main ();
16650   ;
16651   return 0;
16652 }
16653 _ACEOF
16654 if ac_fn_c_try_link "$LINENO"; then :
16655   eval "$as_ac_Lib=yes"
16656 else
16657   eval "$as_ac_Lib=no"
16658 fi
16659 rm -f core conftest.err conftest.$ac_objext \
16660     conftest$ac_exeext conftest.$ac_ext
16661 LIBS=$ac_check_lib_save_LIBS
16662 fi
16663 eval ac_res=\$$as_ac_Lib
16664                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16665 $as_echo "$ac_res" >&6; }
16666 eval as_val=\$$as_ac_Lib
16667    if test "x$as_val" = x""yes; then :
16668   K4LIBS="-lkrb4 $K4LIBS"
16669 else
16670   K4LIBS="-lkrb $K4LIBS"
16671             { $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 SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
16672 $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 SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
16673
16674 fi
16675
16676
16677 fi
16678
16679     LDFLAGS="$O_LDFLAGS"
16680     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
16681     AUTH_OBJS="$AUTH_OBJS kerb4.o"
16682 fi
16683
16684 if test ${with_kerb5-'no'} != "no"; then
16685     # Extract the first word of "krb5-config", so it can be a program name with args.
16686 set dummy krb5-config; ac_word=$2
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16688 $as_echo_n "checking for $ac_word... " >&6; }
16689 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then :
16690   $as_echo_n "(cached) " >&6
16691 else
16692   if test -n "$KRB5CONFIG"; then
16693   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
16694 else
16695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16696 for as_dir in $PATH
16697 do
16698   IFS=$as_save_IFS
16699   test -z "$as_dir" && as_dir=.
16700     for ac_exec_ext in '' $ac_executable_extensions; do
16701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16702     ac_cv_prog_KRB5CONFIG="yes"
16703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16704     break 2
16705   fi
16706 done
16707   done
16708 IFS=$as_save_IFS
16709
16710   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
16711 fi
16712 fi
16713 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
16714 if test -n "$KRB5CONFIG"; then
16715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
16716 $as_echo "$KRB5CONFIG" >&6; }
16717 else
16718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16719 $as_echo "no" >&6; }
16720 fi
16721
16722
16723     if test -n "$KRB5CONFIG"; then
16724         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
16725
16726         AUTH_OBJS="$AUTH_OBJS kerb5.o"
16727         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
16728         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
16729                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16730 $as_echo_n "checking whether we are using Heimdal... " >&6; }
16731         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h.  */
16733 #include <krb5.h>
16734 int
16735 main ()
16736 {
16737 const char *tmp = heimdal_version;
16738   ;
16739   return 0;
16740 }
16741 _ACEOF
16742 if ac_fn_c_try_compile "$LINENO"; then :
16743
16744                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16745 $as_echo "yes" >&6; }
16746                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
16747
16748
16749 else
16750
16751                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16752 $as_echo "no" >&6; }
16753
16754
16755 fi
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757     fi
16758 fi
16759 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
16760     $as_echo "#define HAVE_KERB5 1" >>confdefs.h
16761
16762                 if test "$with_kerb5" = "yes"; then
16763         found=no
16764         O_CPPFLAGS="$CPPFLAGS"
16765         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
16766             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
16767             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h.  */
16769 #include <krb5.h>
16770 _ACEOF
16771 if ac_fn_c_try_cpp "$LINENO"; then :
16772   found=yes; break
16773 fi
16774 rm -f conftest.err conftest.$ac_ext
16775         done
16776         if test X"$found" = X"no"; then
16777             CPPFLAGS="$O_CPPFLAGS"
16778             { $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
16779 $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;}
16780         fi
16781     else
16782
16783     if test X"$with_rpath" = X"yes"; then
16784         case "$host" in
16785             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
16786                         ;;
16787             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
16788                         ;;
16789         esac
16790     else
16791         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
16792     fi
16793     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16794         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
16795     fi
16796
16797         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
16798     fi
16799
16800                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
16801 $as_echo_n "checking whether we are using Heimdal... " >&6; }
16802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h.  */
16804 #include <krb5.h>
16805 int
16806 main ()
16807 {
16808 const char *tmp = heimdal_version;
16809   ;
16810   return 0;
16811 }
16812 _ACEOF
16813 if ac_fn_c_try_compile "$LINENO"; then :
16814
16815             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16816 $as_echo "yes" >&6; }
16817             $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
16818
16819             # XXX - need to check whether -lcrypo is needed!
16820             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
16821             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
16822 $as_echo_n "checking for main in -lroken... " >&6; }
16823 if test "${ac_cv_lib_roken_main+set}" = set; then :
16824   $as_echo_n "(cached) " >&6
16825 else
16826   ac_check_lib_save_LIBS=$LIBS
16827 LIBS="-lroken  $LIBS"
16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h.  */
16830
16831
16832 int
16833 main ()
16834 {
16835 return main ();
16836   ;
16837   return 0;
16838 }
16839 _ACEOF
16840 if ac_fn_c_try_link "$LINENO"; then :
16841   ac_cv_lib_roken_main=yes
16842 else
16843   ac_cv_lib_roken_main=no
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext \
16846     conftest$ac_exeext conftest.$ac_ext
16847 LIBS=$ac_check_lib_save_LIBS
16848 fi
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
16850 $as_echo "$ac_cv_lib_roken_main" >&6; }
16851 if test "x$ac_cv_lib_roken_main" = x""yes; then :
16852   SUDO_LIBS="${SUDO_LIBS} -lroken"
16853 fi
16854
16855
16856 else
16857
16858             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16859 $as_echo "no" >&6; }
16860             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
16861             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
16862 $as_echo_n "checking for main in -lkrb5support... " >&6; }
16863 if test "${ac_cv_lib_krb5support_main+set}" = set; then :
16864   $as_echo_n "(cached) " >&6
16865 else
16866   ac_check_lib_save_LIBS=$LIBS
16867 LIBS="-lkrb5support  $LIBS"
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h.  */
16870
16871
16872 int
16873 main ()
16874 {
16875 return main ();
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 if ac_fn_c_try_link "$LINENO"; then :
16881   ac_cv_lib_krb5support_main=yes
16882 else
16883   ac_cv_lib_krb5support_main=no
16884 fi
16885 rm -f core conftest.err conftest.$ac_objext \
16886     conftest$ac_exeext conftest.$ac_ext
16887 LIBS=$ac_check_lib_save_LIBS
16888 fi
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
16890 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
16891 if test "x$ac_cv_lib_krb5support_main" = x""yes; then :
16892   SUDO_LIBS="${SUDO_LIBS} -lkrb5support"
16893 fi
16894
16895
16896 fi
16897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16898     AUTH_OBJS="$AUTH_OBJS kerb5.o"
16899     _LIBS="$LIBS"
16900     LIBS="${LIBS} ${SUDO_LIBS}"
16901     for ac_func in krb5_verify_user krb5_init_secure_context
16902 do :
16903   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16905 eval as_val=\$$as_ac_var
16906    if test "x$as_val" = x""yes; then :
16907   cat >>confdefs.h <<_ACEOF
16908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16909 _ACEOF
16910
16911 fi
16912 done
16913
16914     for ac_func in krb5_get_init_creds_opt_alloc
16915 do :
16916   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
16917 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = x""yes; then :
16918   cat >>confdefs.h <<_ACEOF
16919 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
16920 _ACEOF
16921
16922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
16923 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
16924 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then :
16925   $as_echo_n "(cached) " >&6
16926 else
16927
16928                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h.  */
16930 #include <krb5.h>
16931 int
16932 main ()
16933 {
16934 krb5_get_init_creds_opt_free(NULL, NULL);
16935
16936   ;
16937   return 0;
16938 }
16939 _ACEOF
16940 if ac_fn_c_try_compile "$LINENO"; then :
16941   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
16942 else
16943   sudo_cv_krb5_get_init_creds_opt_free_two_args=no
16944
16945 fi
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16947
16948
16949 fi
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
16951 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
16952
16953 fi
16954 done
16955
16956     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
16957         $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
16958
16959     fi
16960     LIBS="$_LIBS"
16961 fi
16962
16963 if test ${with_AFS-'no'} = "yes"; then
16964
16965     # looks like the "standard" place for AFS libs is /usr/afsws/lib
16966     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
16967     for i in $AFSLIBDIRS; do
16968         if test -d ${i}; then
16969
16970     if test X"$with_rpath" = X"yes"; then
16971         case "$host" in
16972             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,+b,$i"
16973                         ;;
16974             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,-R$i"
16975                         ;;
16976         esac
16977     else
16978         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
16979     fi
16980     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
16981         blibpath_add="${blibpath_add}:$i"
16982     fi
16983
16984             FOUND_AFSLIBDIR=true
16985         fi
16986     done
16987     if test -z "$FOUND_AFSLIBDIR"; then
16988         { $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 SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5
16989 $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 SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
16990     fi
16991
16992     # Order is important here.  Note that we build AFS_LIBS from right to left
16993     # since AFS_LIBS may be initialized with BSD compat libs that must go last
16994     AFS_LIBS="-laudit ${AFS_LIBS}"
16995     for i in $AFSLIBDIRS; do
16996         if test -f ${i}/util.a; then
16997             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
16998             FOUND_UTIL_A=true
16999             break;
17000         fi
17001     done
17002     if test -z "$FOUND_UTIL_A"; then
17003         AFS_LIBS="-lutil ${AFS_LIBS}"
17004     fi
17005     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
17006
17007     # AFS includes may live in /usr/include on some machines...
17008     for i in /usr/afsws/include; do
17009         if test -d ${i}; then
17010             CPPFLAGS="${CPPFLAGS} -I${i}"
17011             FOUND_AFSINCDIR=true
17012         fi
17013     done
17014
17015     if test -z "$FOUND_AFSLIBDIR"; then
17016         { $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
17017 $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;}
17018     fi
17019
17020     AUTH_OBJS="$AUTH_OBJS afs.o"
17021 fi
17022
17023 if test ${with_DCE-'no'} = "yes"; then
17024     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
17025     SUDO_LIBS="${SUDO_LIBS} -ldce"
17026     AUTH_OBJS="$AUTH_OBJS dce.o"
17027 fi
17028
17029 if test ${with_skey-'no'} = "yes"; then
17030     O_LDFLAGS="$LDFLAGS"
17031     if test "$with_skey" != "yes"; then
17032         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
17033
17034     if test X"$with_rpath" = X"yes"; then
17035         case "$host" in
17036             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17037                         ;;
17038             *)          LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17039                         ;;
17040         esac
17041     else
17042         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
17043     fi
17044     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17045         blibpath_add="${blibpath_add}:${with_skey}/lib"
17046     fi
17047
17048
17049     if test X"$with_rpath" = X"yes"; then
17050         case "$host" in
17051             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
17052                         ;;
17053             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
17054                         ;;
17055         esac
17056     else
17057         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
17058     fi
17059     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17060         blibpath_add="${blibpath_add}:${with_skey}/lib"
17061     fi
17062
17063         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h.  */
17065 #include <skey.h>
17066 _ACEOF
17067 if ac_fn_c_try_cpp "$LINENO"; then :
17068   found=yes
17069 else
17070   found=no
17071 fi
17072 rm -f conftest.err conftest.$ac_ext
17073     else
17074         found=no
17075         O_CPPFLAGS="$CPPFLAGS"
17076         for dir in "" "/usr/local" "/usr/contrib"; do
17077             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17078             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h.  */
17080 #include <skey.h>
17081 _ACEOF
17082 if ac_fn_c_try_cpp "$LINENO"; then :
17083   found=yes; break
17084 fi
17085 rm -f conftest.err conftest.$ac_ext
17086         done
17087         if test "$found" = "no" -o -z "$dir"; then
17088             CPPFLAGS="$O_CPPFLAGS"
17089         else
17090
17091     if test X"$with_rpath" = X"yes"; then
17092         case "$host" in
17093             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17094                         ;;
17095             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17096                         ;;
17097         esac
17098     else
17099         LDFLAGS="${LDFLAGS} -L${dir}/lib"
17100     fi
17101     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17102         blibpath_add="${blibpath_add}:${dir}/lib"
17103     fi
17104
17105
17106     if test X"$with_rpath" = X"yes"; then
17107         case "$host" in
17108             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17109                         ;;
17110             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17111                         ;;
17112         esac
17113     else
17114         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17115     fi
17116     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17117         blibpath_add="${blibpath_add}:${dir}/lib"
17118     fi
17119
17120         fi
17121     fi
17122     if test "$found" = "no"; then
17123         { $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
17124 $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;}
17125     fi
17126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
17127 $as_echo_n "checking for main in -lskey... " >&6; }
17128 if test "${ac_cv_lib_skey_main+set}" = set; then :
17129   $as_echo_n "(cached) " >&6
17130 else
17131   ac_check_lib_save_LIBS=$LIBS
17132 LIBS="-lskey  $LIBS"
17133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134 /* end confdefs.h.  */
17135
17136
17137 int
17138 main ()
17139 {
17140 return main ();
17141   ;
17142   return 0;
17143 }
17144 _ACEOF
17145 if ac_fn_c_try_link "$LINENO"; then :
17146   ac_cv_lib_skey_main=yes
17147 else
17148   ac_cv_lib_skey_main=no
17149 fi
17150 rm -f core conftest.err conftest.$ac_objext \
17151     conftest$ac_exeext conftest.$ac_ext
17152 LIBS=$ac_check_lib_save_LIBS
17153 fi
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
17155 $as_echo "$ac_cv_lib_skey_main" >&6; }
17156 if test "x$ac_cv_lib_skey_main" = x""yes; then :
17157   found=yes
17158 else
17159   { $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 SUDO_LDFLAGS" >&5
17160 $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 SUDO_LDFLAGS" >&2;}
17161 fi
17162
17163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
17164 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
17165 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then :
17166   $as_echo_n "(cached) " >&6
17167 else
17168   ac_check_lib_save_LIBS=$LIBS
17169 LIBS="-lskey  $LIBS"
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h.  */
17172
17173 /* Override any GCC internal prototype to avoid an error.
17174    Use char because int might match the return type of a GCC
17175    builtin and then its argument prototype would still apply.  */
17176 #ifdef __cplusplus
17177 extern "C"
17178 #endif
17179 char skeyaccess ();
17180 int
17181 main ()
17182 {
17183 return skeyaccess ();
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 if ac_fn_c_try_link "$LINENO"; then :
17189   ac_cv_lib_skey_skeyaccess=yes
17190 else
17191   ac_cv_lib_skey_skeyaccess=no
17192 fi
17193 rm -f core conftest.err conftest.$ac_objext \
17194     conftest$ac_exeext conftest.$ac_ext
17195 LIBS=$ac_check_lib_save_LIBS
17196 fi
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
17198 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
17199 if test "x$ac_cv_lib_skey_skeyaccess" = x""yes; then :
17200   $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
17201
17202 fi
17203
17204     LDFLAGS="$O_LDFLAGS"
17205     SUDO_LIBS="${SUDO_LIBS} -lskey"
17206     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17207 fi
17208
17209 if test ${with_opie-'no'} = "yes"; then
17210     O_LDFLAGS="$LDFLAGS"
17211     if test "$with_opie" != "yes"; then
17212         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
17213
17214     if test X"$with_rpath" = X"yes"; then
17215         case "$host" in
17216             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17217                         ;;
17218             *)          LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17219                         ;;
17220         esac
17221     else
17222         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
17223     fi
17224     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17225         blibpath_add="${blibpath_add}:${with_opie}/lib"
17226     fi
17227
17228
17229     if test X"$with_rpath" = X"yes"; then
17230         case "$host" in
17231             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
17232                         ;;
17233             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
17234                         ;;
17235         esac
17236     else
17237         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
17238     fi
17239     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17240         blibpath_add="${blibpath_add}:${with_opie}/lib"
17241     fi
17242
17243         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h.  */
17245 #include <opie.h>
17246 _ACEOF
17247 if ac_fn_c_try_cpp "$LINENO"; then :
17248   found=yes
17249 else
17250   found=no
17251 fi
17252 rm -f conftest.err conftest.$ac_ext
17253     else
17254         found=no
17255         O_CPPFLAGS="$CPPFLAGS"
17256         for dir in "" "/usr/local" "/usr/contrib"; do
17257             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
17258             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h.  */
17260 #include <opie.h>
17261 _ACEOF
17262 if ac_fn_c_try_cpp "$LINENO"; then :
17263   found=yes; break
17264 fi
17265 rm -f conftest.err conftest.$ac_ext
17266         done
17267         if test "$found" = "no" -o -z "$dir"; then
17268             CPPFLAGS="$O_CPPFLAGS"
17269         else
17270
17271     if test X"$with_rpath" = X"yes"; then
17272         case "$host" in
17273             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17274                         ;;
17275             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17276                         ;;
17277         esac
17278     else
17279         LDFLAGS="${LDFLAGS} -L${dir}/lib"
17280     fi
17281     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17282         blibpath_add="${blibpath_add}:${dir}/lib"
17283     fi
17284
17285
17286     if test X"$with_rpath" = X"yes"; then
17287         case "$host" in
17288             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
17289                         ;;
17290             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
17291                         ;;
17292         esac
17293     else
17294         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
17295     fi
17296     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17297         blibpath_add="${blibpath_add}:${dir}/lib"
17298     fi
17299
17300         fi
17301     fi
17302     if test "$found" = "no"; then
17303         { $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
17304 $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;}
17305     fi
17306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
17307 $as_echo_n "checking for main in -lopie... " >&6; }
17308 if test "${ac_cv_lib_opie_main+set}" = set; then :
17309   $as_echo_n "(cached) " >&6
17310 else
17311   ac_check_lib_save_LIBS=$LIBS
17312 LIBS="-lopie  $LIBS"
17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314 /* end confdefs.h.  */
17315
17316
17317 int
17318 main ()
17319 {
17320 return main ();
17321   ;
17322   return 0;
17323 }
17324 _ACEOF
17325 if ac_fn_c_try_link "$LINENO"; then :
17326   ac_cv_lib_opie_main=yes
17327 else
17328   ac_cv_lib_opie_main=no
17329 fi
17330 rm -f core conftest.err conftest.$ac_objext \
17331     conftest$ac_exeext conftest.$ac_ext
17332 LIBS=$ac_check_lib_save_LIBS
17333 fi
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
17335 $as_echo "$ac_cv_lib_opie_main" >&6; }
17336 if test "x$ac_cv_lib_opie_main" = x""yes; then :
17337   found=yes
17338 else
17339   { $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 SUDO_LDFLAGS" >&5
17340 $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 SUDO_LDFLAGS" >&2;}
17341 fi
17342
17343     LDFLAGS="$O_LDFLAGS"
17344     SUDO_LIBS="${SUDO_LIBS} -lopie"
17345     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
17346 fi
17347
17348 if test ${with_passwd-'no'} != "no"; then
17349                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
17350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
17351 $as_echo_n "checking for library containing crypt... " >&6; }
17352 if test "${ac_cv_search_crypt+set}" = set; then :
17353   $as_echo_n "(cached) " >&6
17354 else
17355   ac_func_search_save_LIBS=$LIBS
17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357 /* end confdefs.h.  */
17358
17359 /* Override any GCC internal prototype to avoid an error.
17360    Use char because int might match the return type of a GCC
17361    builtin and then its argument prototype would still apply.  */
17362 #ifdef __cplusplus
17363 extern "C"
17364 #endif
17365 char crypt ();
17366 int
17367 main ()
17368 {
17369 return crypt ();
17370   ;
17371   return 0;
17372 }
17373 _ACEOF
17374 for ac_lib in '' crypt crypt_d ufc; do
17375   if test -z "$ac_lib"; then
17376     ac_res="none required"
17377   else
17378     ac_res=-l$ac_lib
17379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17380   fi
17381   if ac_fn_c_try_link "$LINENO"; then :
17382   ac_cv_search_crypt=$ac_res
17383 fi
17384 rm -f core conftest.err conftest.$ac_objext \
17385     conftest$ac_exeext
17386   if test "${ac_cv_search_crypt+set}" = set; then :
17387   break
17388 fi
17389 done
17390 if test "${ac_cv_search_crypt+set}" = set; then :
17391
17392 else
17393   ac_cv_search_crypt=no
17394 fi
17395 rm conftest.$ac_ext
17396 LIBS=$ac_func_search_save_LIBS
17397 fi
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
17399 $as_echo "$ac_cv_search_crypt" >&6; }
17400 ac_res=$ac_cv_search_crypt
17401 if test "$ac_res" != no; then :
17402   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17403   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17404 fi
17405
17406     fi
17407
17408     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
17409         _LIBS="$LIBS"
17410         LIBS="$LIBS $shadow_libs"
17411         found=no
17412         for ac_func in $shadow_funcs
17413 do :
17414   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17416 eval as_val=\$$as_ac_var
17417    if test "x$as_val" = x""yes; then :
17418   cat >>confdefs.h <<_ACEOF
17419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17420 _ACEOF
17421  found=yes
17422 fi
17423 done
17424
17425         if test "$found" = "yes"; then
17426             SUDO_LIBS="$SUDO_LIBS $shadow_libs"
17427         elif test -n "$shadow_libs_optional"; then
17428             LIBS="$LIBS $shadow_libs_optional"
17429             for ac_func in $shadow_funcs
17430 do :
17431   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17432 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17433 eval as_val=\$$as_ac_var
17434    if test "x$as_val" = x""yes; then :
17435   cat >>confdefs.h <<_ACEOF
17436 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17437 _ACEOF
17438  found=yes
17439 fi
17440 done
17441
17442             if test "$found" = "yes"; then
17443                 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
17444             fi
17445         fi
17446         if test "$found" = "yes"; then
17447             case "$shadow_funcs" in
17448                 *getprpwnam*) SECUREWARE=1;;
17449             esac
17450             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
17451         else
17452             LIBS="$_LIBS"
17453         fi
17454         CHECKSHADOW=false
17455     fi
17456     if test "$CHECKSHADOW" = "true"; then
17457         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
17458 $as_echo_n "checking for library containing getspnam... " >&6; }
17459 if test "${ac_cv_search_getspnam+set}" = set; then :
17460   $as_echo_n "(cached) " >&6
17461 else
17462   ac_func_search_save_LIBS=$LIBS
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h.  */
17465
17466 /* Override any GCC internal prototype to avoid an error.
17467    Use char because int might match the return type of a GCC
17468    builtin and then its argument prototype would still apply.  */
17469 #ifdef __cplusplus
17470 extern "C"
17471 #endif
17472 char getspnam ();
17473 int
17474 main ()
17475 {
17476 return getspnam ();
17477   ;
17478   return 0;
17479 }
17480 _ACEOF
17481 for ac_lib in '' gen; do
17482   if test -z "$ac_lib"; then
17483     ac_res="none required"
17484   else
17485     ac_res=-l$ac_lib
17486     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17487   fi
17488   if ac_fn_c_try_link "$LINENO"; then :
17489   ac_cv_search_getspnam=$ac_res
17490 fi
17491 rm -f core conftest.err conftest.$ac_objext \
17492     conftest$ac_exeext
17493   if test "${ac_cv_search_getspnam+set}" = set; then :
17494   break
17495 fi
17496 done
17497 if test "${ac_cv_search_getspnam+set}" = set; then :
17498
17499 else
17500   ac_cv_search_getspnam=no
17501 fi
17502 rm conftest.$ac_ext
17503 LIBS=$ac_func_search_save_LIBS
17504 fi
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
17506 $as_echo "$ac_cv_search_getspnam" >&6; }
17507 ac_res=$ac_cv_search_getspnam
17508 if test "$ac_res" != no; then :
17509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17510   $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
17511  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17512 fi
17513
17514     fi
17515     if test "$CHECKSHADOW" = "true"; then
17516         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
17517 $as_echo_n "checking for library containing getprpwnam... " >&6; }
17518 if test "${ac_cv_search_getprpwnam+set}" = set; then :
17519   $as_echo_n "(cached) " >&6
17520 else
17521   ac_func_search_save_LIBS=$LIBS
17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h.  */
17524
17525 /* Override any GCC internal prototype to avoid an error.
17526    Use char because int might match the return type of a GCC
17527    builtin and then its argument prototype would still apply.  */
17528 #ifdef __cplusplus
17529 extern "C"
17530 #endif
17531 char getprpwnam ();
17532 int
17533 main ()
17534 {
17535 return getprpwnam ();
17536   ;
17537   return 0;
17538 }
17539 _ACEOF
17540 for ac_lib in '' sec security prot; do
17541   if test -z "$ac_lib"; then
17542     ac_res="none required"
17543   else
17544     ac_res=-l$ac_lib
17545     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17546   fi
17547   if ac_fn_c_try_link "$LINENO"; then :
17548   ac_cv_search_getprpwnam=$ac_res
17549 fi
17550 rm -f core conftest.err conftest.$ac_objext \
17551     conftest$ac_exeext
17552   if test "${ac_cv_search_getprpwnam+set}" = set; then :
17553   break
17554 fi
17555 done
17556 if test "${ac_cv_search_getprpwnam+set}" = set; then :
17557
17558 else
17559   ac_cv_search_getprpwnam=no
17560 fi
17561 rm conftest.$ac_ext
17562 LIBS=$ac_func_search_save_LIBS
17563 fi
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
17565 $as_echo "$ac_cv_search_getprpwnam" >&6; }
17566 ac_res=$ac_cv_search_getprpwnam
17567 if test "$ac_res" != no; then :
17568   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17569   $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
17570  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
17571 fi
17572
17573     fi
17574     if test -n "$SECUREWARE"; then
17575         for ac_func in bigcrypt set_auth_parameters initprivs
17576 do :
17577   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17578 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17579 eval as_val=\$$as_ac_var
17580    if test "x$as_val" = x""yes; then :
17581   cat >>confdefs.h <<_ACEOF
17582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17583 _ACEOF
17584
17585 fi
17586 done
17587
17588         AUTH_OBJS="$AUTH_OBJS secureware.o"
17589     fi
17590 fi
17591
17592 if test ${with_ldap-'no'} != "no"; then
17593     _LDFLAGS="$LDFLAGS"
17594     if test "$with_ldap" != "yes"; then
17595
17596     if test X"$with_rpath" = X"yes"; then
17597         case "$host" in
17598             *-*-hpux*)  SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
17599                         ;;
17600             *)          SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
17601                         ;;
17602         esac
17603     else
17604         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
17605     fi
17606     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
17607         blibpath_add="${blibpath_add}:${with_ldap}/lib"
17608     fi
17609
17610
17611     if test X"$with_rpath" = X"yes"; then
17612         case "$host" in
17613             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
17614                         ;;
17615             *)          LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
17616                         ;;
17617         esac
17618     else
17619         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
17620     fi
17621     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17622         blibpath_add="${blibpath_add}:${with_ldap}/lib"
17623     fi
17624
17625         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
17626         with_ldap=yes
17627     fi
17628     SUDO_OBJS="${SUDO_OBJS} ldap.o"
17629     LDAP=""
17630
17631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
17632 $as_echo_n "checking for LDAP libraries... " >&6; }
17633     LDAP_LIBS=""
17634     _LIBS="$LIBS"
17635     found=no
17636     for l in -lldap -llber '-lssl -lcrypto'; do
17637         LIBS="${LIBS} $l"
17638         LDAP_LIBS="${LDAP_LIBS} $l"
17639         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17640 /* end confdefs.h.  */
17641 #include <sys/types.h>
17642         #include <lber.h>
17643         #include <ldap.h>
17644 int
17645 main ()
17646 {
17647 (void)ldap_init(0, 0)
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 if ac_fn_c_try_link "$LINENO"; then :
17653   found=yes; break
17654 fi
17655 rm -f core conftest.err conftest.$ac_objext \
17656     conftest$ac_exeext conftest.$ac_ext
17657     done
17658         if test "$found" = "no"; then
17659         LIBS="${_LIBS} -lldap"
17660         LDAP_LIBS="-lldap"
17661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
17662 $as_echo "not found, using -lldap" >&6; }
17663     else
17664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
17665 $as_echo "$LDAP_LIBS" >&6; }
17666     fi
17667         OLIBS="$LIBS"
17668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
17669 $as_echo_n "checking for library containing ber_set_option... " >&6; }
17670 if test "${ac_cv_search_ber_set_option+set}" = set; then :
17671   $as_echo_n "(cached) " >&6
17672 else
17673   ac_func_search_save_LIBS=$LIBS
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h.  */
17676
17677 /* Override any GCC internal prototype to avoid an error.
17678    Use char because int might match the return type of a GCC
17679    builtin and then its argument prototype would still apply.  */
17680 #ifdef __cplusplus
17681 extern "C"
17682 #endif
17683 char ber_set_option ();
17684 int
17685 main ()
17686 {
17687 return ber_set_option ();
17688   ;
17689   return 0;
17690 }
17691 _ACEOF
17692 for ac_lib in '' lber; do
17693   if test -z "$ac_lib"; then
17694     ac_res="none required"
17695   else
17696     ac_res=-l$ac_lib
17697     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17698   fi
17699   if ac_fn_c_try_link "$LINENO"; then :
17700   ac_cv_search_ber_set_option=$ac_res
17701 fi
17702 rm -f core conftest.err conftest.$ac_objext \
17703     conftest$ac_exeext
17704   if test "${ac_cv_search_ber_set_option+set}" = set; then :
17705   break
17706 fi
17707 done
17708 if test "${ac_cv_search_ber_set_option+set}" = set; then :
17709
17710 else
17711   ac_cv_search_ber_set_option=no
17712 fi
17713 rm conftest.$ac_ext
17714 LIBS=$ac_func_search_save_LIBS
17715 fi
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
17717 $as_echo "$ac_cv_search_ber_set_option" >&6; }
17718 ac_res=$ac_cv_search_ber_set_option
17719 if test "$ac_res" != no; then :
17720   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17721   found=yes
17722 else
17723   found=no
17724 fi
17725
17726     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
17727         LDAP_LIBS="$LDAP_LIBS -llber"
17728     fi
17729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
17730 $as_echo_n "checking whether lber.h is needed... " >&6; }
17731     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h.  */
17733 #include <sys/types.h>
17734     #include <ldap.h>
17735 int
17736 main ()
17737 {
17738 (void)ldap_init(0, 0)
17739   ;
17740   return 0;
17741 }
17742 _ACEOF
17743 if ac_fn_c_try_link "$LINENO"; then :
17744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17745 $as_echo "no" >&6; }
17746 else
17747
17748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17749 $as_echo "yes" >&6; }
17750     $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
17751
17752 fi
17753 rm -f core conftest.err conftest.$ac_objext \
17754     conftest$ac_exeext conftest.$ac_ext
17755
17756     for ac_header in sasl/sasl.h sasl.h
17757 do :
17758   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17759 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17760 eval as_val=\$$as_ac_Header
17761    if test "x$as_val" = x""yes; then :
17762   cat >>confdefs.h <<_ACEOF
17763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17764 _ACEOF
17765  for ac_func in ldap_sasl_interactive_bind_s
17766 do :
17767   ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
17768 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = x""yes; then :
17769   cat >>confdefs.h <<_ACEOF
17770 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
17771 _ACEOF
17772
17773 fi
17774 done
17775
17776 else
17777   break
17778 fi
17779
17780 done
17781
17782     for ac_header in ldap_ssl.h mps/ldap_ssl.h
17783 do :
17784   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17785 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
17786 "
17787 eval as_val=\$$as_ac_Header
17788    if test "x$as_val" = x""yes; then :
17789   cat >>confdefs.h <<_ACEOF
17790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17791 _ACEOF
17792  break
17793 fi
17794
17795 done
17796
17797     for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
17798 do :
17799   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17800 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17801 eval as_val=\$$as_ac_var
17802    if test "x$as_val" = x""yes; then :
17803   cat >>confdefs.h <<_ACEOF
17804 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17805 _ACEOF
17806
17807 fi
17808 done
17809
17810
17811     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
17812         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
17813 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
17814 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then :
17815   $as_echo_n "(cached) " >&6
17816 else
17817   ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-lgssapi  $LIBS"
17819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17820 /* end confdefs.h.  */
17821
17822 /* Override any GCC internal prototype to avoid an error.
17823    Use char because int might match the return type of a GCC
17824    builtin and then its argument prototype would still apply.  */
17825 #ifdef __cplusplus
17826 extern "C"
17827 #endif
17828 char gss_krb5_ccache_name ();
17829 int
17830 main ()
17831 {
17832 return gss_krb5_ccache_name ();
17833   ;
17834   return 0;
17835 }
17836 _ACEOF
17837 if ac_fn_c_try_link "$LINENO"; then :
17838   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
17839 else
17840   ac_cv_lib_gssapi_gss_krb5_ccache_name=no
17841 fi
17842 rm -f core conftest.err conftest.$ac_objext \
17843     conftest$ac_exeext conftest.$ac_ext
17844 LIBS=$ac_check_lib_save_LIBS
17845 fi
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
17847 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
17848 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = x""yes; then :
17849   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
17850
17851             LDAP_LIBS="${LDAP_LIBS} -lgssapi"
17852 else
17853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
17854 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
17855 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then :
17856   $as_echo_n "(cached) " >&6
17857 else
17858   ac_check_lib_save_LIBS=$LIBS
17859 LIBS="-lgssapi_krb5  $LIBS"
17860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861 /* end confdefs.h.  */
17862
17863 /* Override any GCC internal prototype to avoid an error.
17864    Use char because int might match the return type of a GCC
17865    builtin and then its argument prototype would still apply.  */
17866 #ifdef __cplusplus
17867 extern "C"
17868 #endif
17869 char gss_krb5_ccache_name ();
17870 int
17871 main ()
17872 {
17873 return gss_krb5_ccache_name ();
17874   ;
17875   return 0;
17876 }
17877 _ACEOF
17878 if ac_fn_c_try_link "$LINENO"; then :
17879   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
17880 else
17881   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
17882 fi
17883 rm -f core conftest.err conftest.$ac_objext \
17884     conftest$ac_exeext conftest.$ac_ext
17885 LIBS=$ac_check_lib_save_LIBS
17886 fi
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
17888 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
17889 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = x""yes; then :
17890   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
17891
17892                 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
17893 fi
17894
17895
17896 fi
17897
17898
17899         # gssapi headers may be separate or part of Kerberos V
17900         found=no
17901         O_CPPFLAGS="$CPPFLAGS"
17902         for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
17903             test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
17904             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h.  */
17906 #include <gssapi/gssapi.h>
17907 _ACEOF
17908 if ac_fn_c_try_cpp "$LINENO"; then :
17909   found="gssapi/gssapi.h"; break
17910 else
17911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h.  */
17913 #include <gssapi.h>
17914 _ACEOF
17915 if ac_fn_c_try_cpp "$LINENO"; then :
17916   found="gssapi.h"; break
17917 fi
17918 rm -f conftest.err conftest.$ac_ext
17919 fi
17920 rm -f conftest.err conftest.$ac_ext
17921         done
17922         if test X"$found" != X"no"; then
17923             for ac_header in $found
17924 do :
17925   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17926 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17927 eval as_val=\$$as_ac_Header
17928    if test "x$as_val" = x""yes; then :
17929   cat >>confdefs.h <<_ACEOF
17930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17931 _ACEOF
17932
17933 fi
17934
17935 done
17936
17937             if test X"$found" = X"gssapi/gssapi.h"; then
17938                 for ac_header in gssapi/gssapi_krb5.h
17939 do :
17940   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
17941 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = x""yes; then :
17942   cat >>confdefs.h <<_ACEOF
17943 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
17944 _ACEOF
17945
17946 fi
17947
17948 done
17949
17950             fi
17951         else
17952             CPPFLAGS="$O_CPPFLAGS"
17953             { $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
17954 $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;}
17955         fi
17956     fi
17957
17958     SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
17959     LIBS="$_LIBS"
17960     LDFLAGS="$_LDFLAGS"
17961 fi
17962
17963 if test X"$LIBVAS_RPATH" != X""; then
17964     if test -n "$blibpath"; then
17965         blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
17966     else
17967         case "$host" in
17968             *-*-hpux*)  LDFLAGS="$LDFLAGS -Wl,+b,$LIBVAS_RPATH"
17969                         ;;
17970             *)          LDFLAGS="$LDFLAGS -Wl,-R$LIBVAS_RPATH"
17971                         ;;
17972         esac
17973     fi
17974 fi
17975
17976 if test -n "$blibpath"; then
17977     if test -n "$blibpath_add"; then
17978         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
17979     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
17980         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
17981     fi
17982 fi
17983
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
17985 $as_echo_n "checking for log file location... " >&6; }
17986 if test -n "$with_logpath"; then
17987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
17988 $as_echo "$with_logpath" >&6; }
17989     cat >>confdefs.h <<EOF
17990 #define _PATH_SUDO_LOGFILE "$with_logpath"
17991 EOF
17992
17993 elif test -d "/var/log"; then
17994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
17995 $as_echo "/var/log/sudo.log" >&6; }
17996     cat >>confdefs.h <<\EOF
17997 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
17998 EOF
17999
18000 elif test -d "/var/adm"; then
18001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
18002 $as_echo "/var/adm/sudo.log" >&6; }
18003     cat >>confdefs.h <<\EOF
18004 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
18005 EOF
18006
18007 elif test -d "/usr/adm"; then
18008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
18009 $as_echo "/usr/adm/sudo.log" >&6; }
18010     cat >>confdefs.h <<\EOF
18011 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
18012 EOF
18013
18014 else
18015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
18016 $as_echo "unknown" >&6; }
18017 fi
18018
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
18020 $as_echo_n "checking for timestamp file location... " >&6; }
18021 timedir="$with_timedir"
18022 if test -z "$timedir"; then
18023     for d in /var/db /var/lib /var/adm /usr/adm; do
18024         if test -d "$d"; then
18025             timedir="$d/sudo"
18026             break
18027         fi
18028     done
18029 fi
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
18031 $as_echo "$timedir" >&6; }
18032 cat >>confdefs.h <<EOF
18033 #define _PATH_SUDO_TIMEDIR "$timedir"
18034 EOF
18035
18036
18037
18038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
18039 $as_echo_n "checking for I/O log dir location... " >&6; }
18040     if test "${with_iologdir-yes}" != "yes"; then
18041         :
18042     elif test -d "/var/log"; then
18043         with_iologdir="/var/log/sudo-io"
18044     elif test -d "/var/adm"; then
18045         with_iologdir="/var/adm/sudo-io"
18046     else
18047         with_iologdir="/usr/adm/sudo-io"
18048     fi
18049     if test "${with_iologdir-yes}" != "no"; then
18050         cat >>confdefs.h <<EOF
18051 #define _PATH_SUDO_IO_LOGDIR "$with_iologdir"
18052 EOF
18053
18054     fi
18055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_iologdir" >&5
18056 $as_echo "$with_iologdir" >&6; }
18057
18058
18059 if test "${with_iologdir-yes}" != "no"; then
18060     # Require POSIX job control for I/O log support
18061     for ac_func in tcsetpgrp
18062 do :
18063   ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
18064 if test "x$ac_cv_func_tcsetpgrp" = x""yes; then :
18065   cat >>confdefs.h <<_ACEOF
18066 #define HAVE_TCSETPGRP 1
18067 _ACEOF
18068
18069         SUDO_OBJS="${SUDO_OBJS} exec_pty.o get_pty.o iolog.o"
18070         PROGS="$PROGS sudoreplay"
18071         REPLAY=""
18072
18073         # Check whether --enable-zlib was given.
18074 if test "${enable_zlib+set}" = set; then :
18075   enableval=$enable_zlib;  case "$enable_zlib" in
18076             yes)    $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18077
18078                     ZLIB="-lz"
18079                     ;;
18080             no)     ;;
18081             *)      $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18082
18083                     CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
18084
18085     if test X"$with_rpath" = X"yes"; then
18086         case "$host" in
18087             *-*-hpux*)  ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
18088                         ;;
18089             *)          ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
18090                         ;;
18091         esac
18092     else
18093         ZLIB="${ZLIB} -L$enable_zlib/lib"
18094     fi
18095     if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
18096         blibpath_add="${blibpath_add}:$enable_zlib/lib"
18097     fi
18098
18099                     ZLIB="${ZLIB} -lz"
18100                     ;;
18101           esac
18102
18103 fi
18104
18105         if test X"$enable_zlib" = X""; then
18106             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18107 $as_echo_n "checking for gzdopen in -lz... " >&6; }
18108 if test "${ac_cv_lib_z_gzdopen+set}" = set; then :
18109   $as_echo_n "(cached) " >&6
18110 else
18111   ac_check_lib_save_LIBS=$LIBS
18112 LIBS="-lz  $LIBS"
18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h.  */
18115
18116 /* Override any GCC internal prototype to avoid an error.
18117    Use char because int might match the return type of a GCC
18118    builtin and then its argument prototype would still apply.  */
18119 #ifdef __cplusplus
18120 extern "C"
18121 #endif
18122 char gzdopen ();
18123 int
18124 main ()
18125 {
18126 return gzdopen ();
18127   ;
18128   return 0;
18129 }
18130 _ACEOF
18131 if ac_fn_c_try_link "$LINENO"; then :
18132   ac_cv_lib_z_gzdopen=yes
18133 else
18134   ac_cv_lib_z_gzdopen=no
18135 fi
18136 rm -f core conftest.err conftest.$ac_objext \
18137     conftest$ac_exeext conftest.$ac_ext
18138 LIBS=$ac_check_lib_save_LIBS
18139 fi
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18141 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18142 if test "x$ac_cv_lib_z_gzdopen" = x""yes; then :
18143
18144                 for ac_header in zlib.h
18145 do :
18146   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18147 if test "x$ac_cv_header_zlib_h" = x""yes; then :
18148   cat >>confdefs.h <<_ACEOF
18149 #define HAVE_ZLIB_H 1
18150 _ACEOF
18151  ZLIB="-lz"
18152 fi
18153
18154 done
18155
18156
18157 fi
18158
18159         fi
18160
18161 else
18162
18163         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&5
18164 $as_echo "$as_me: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&2;}
18165         with_iologdir=no
18166
18167 fi
18168 done
18169
18170 fi
18171
18172 case "$with_passwd" in
18173 yes|maybe)
18174     AUTH_OBJS="$AUTH_OBJS passwd.o"
18175     ;;
18176 *)
18177     $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
18178
18179     if test -z "$AUTH_OBJS"; then
18180         as_fn_error "no authentication methods defined." "$LINENO" 5
18181     fi
18182     ;;
18183 esac
18184 AUTH_OBJS=${AUTH_OBJS# }
18185 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
18187 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
18188
18189 if test -n "$LIBS"; then
18190     L="$LIBS"
18191     LIBS=
18192     for l in ${L}; do
18193         dupe=0
18194         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
18195             test $l = $sl && dupe=1
18196         done
18197         test $dupe = 0 && LIBS="${LIBS} $l"
18198     done
18199 fi
18200
18201 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
18202
18203 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
18204     oexec_prefix="$exec_prefix"
18205     if test "$exec_prefix" = '$(prefix)'; then
18206         if test "$prefix" = "NONE"; then
18207             exec_prefix="$ac_default_prefix"
18208         else
18209             exec_prefix="$prefix"
18210         fi
18211     fi
18212     if test X"$with_noexec" != X"no"; then
18213         PROGS="${PROGS} libsudo_noexec.la"
18214         INSTALL_NOEXEC="install-noexec"
18215
18216         eval noexec_file="$with_noexec"
18217         cat >>confdefs.h <<EOF
18218 #define _PATH_SUDO_NOEXEC "$noexec_file"
18219 EOF
18220
18221     fi
18222     if test X"$with_selinux" != X"no"; then
18223         eval sesh_file="$libexecdir/sesh"
18224         cat >>confdefs.h <<EOF
18225 #define _PATH_SUDO_SESH "$sesh_file"
18226 EOF
18227
18228     fi
18229     exec_prefix="$oexec_prefix"
18230 fi
18231
18232 if test X"$prefix" = X"NONE"; then
18233     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
18234 else
18235     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
18236 fi
18237 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
18238 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
18239 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
18240 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
18241 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
18242 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
18243 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
18244
18245 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudoreplay.man sudo_usage.h"
18246
18247 cat >confcache <<\_ACEOF
18248 # This file is a shell script that caches the results of configure
18249 # tests run on this system so they can be shared between configure
18250 # scripts and configure runs, see configure's option --config-cache.
18251 # It is not useful on other systems.  If it contains results you don't
18252 # want to keep, you may remove or edit it.
18253 #
18254 # config.status only pays attention to the cache file if you give it
18255 # the --recheck option to rerun configure.
18256 #
18257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18259 # following values.
18260
18261 _ACEOF
18262
18263 # The following way of writing the cache mishandles newlines in values,
18264 # but we know of no workaround that is simple, portable, and efficient.
18265 # So, we kill variables containing newlines.
18266 # Ultrix sh set writes to stderr and can't be redirected directly,
18267 # and sets the high bit in the cache file unless we assign to the vars.
18268 (
18269   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18270     eval ac_val=\$$ac_var
18271     case $ac_val in #(
18272     *${as_nl}*)
18273       case $ac_var in #(
18274       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18276       esac
18277       case $ac_var in #(
18278       _ | IFS | as_nl) ;; #(
18279       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18280       *) { eval $ac_var=; unset $ac_var;} ;;
18281       esac ;;
18282     esac
18283   done
18284
18285   (set) 2>&1 |
18286     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18287     *${as_nl}ac_space=\ *)
18288       # `set' does not quote correctly, so add quotes: double-quote
18289       # substitution turns \\\\ into \\, and sed turns \\ into \.
18290       sed -n \
18291         "s/'/'\\\\''/g;
18292           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18293       ;; #(
18294     *)
18295       # `set' quotes correctly as required by POSIX, so do not add quotes.
18296       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18297       ;;
18298     esac |
18299     sort
18300 ) |
18301   sed '
18302      /^ac_cv_env_/b end
18303      t clear
18304      :clear
18305      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18306      t end
18307      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18308      :end' >>confcache
18309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18310   if test -w "$cache_file"; then
18311     test "x$cache_file" != "x/dev/null" &&
18312       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18313 $as_echo "$as_me: updating cache $cache_file" >&6;}
18314     cat confcache >$cache_file
18315   else
18316     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18317 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18318   fi
18319 fi
18320 rm -f confcache
18321
18322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18323 # Let make expand exec_prefix.
18324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18325
18326 DEFS=-DHAVE_CONFIG_H
18327
18328 ac_libobjs=
18329 ac_ltlibobjs=
18330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18331   # 1. Remove the extension, and $U if already installed.
18332   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18333   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18334   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18335   #    will be set to the directory where LIBOBJS objects are built.
18336   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18337   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18338 done
18339 LIBOBJS=$ac_libobjs
18340
18341 LTLIBOBJS=$ac_ltlibobjs
18342
18343
18344
18345 : ${CONFIG_STATUS=./config.status}
18346 ac_write_fail=0
18347 ac_clean_files_save=$ac_clean_files
18348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18350 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18351 as_write_fail=0
18352 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18353 #! $SHELL
18354 # Generated by $as_me.
18355 # Run this file to recreate the current configuration.
18356 # Compiler output produced by configure, useful for debugging
18357 # configure, is in config.log if it exists.
18358
18359 debug=false
18360 ac_cs_recheck=false
18361 ac_cs_silent=false
18362
18363 SHELL=\${CONFIG_SHELL-$SHELL}
18364 export SHELL
18365 _ASEOF
18366 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18367 ## -------------------- ##
18368 ## M4sh Initialization. ##
18369 ## -------------------- ##
18370
18371 # Be more Bourne compatible
18372 DUALCASE=1; export DUALCASE # for MKS sh
18373 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18374   emulate sh
18375   NULLCMD=:
18376   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18377   # is contrary to our usage.  Disable this feature.
18378   alias -g '${1+"$@"}'='"$@"'
18379   setopt NO_GLOB_SUBST
18380 else
18381   case `(set -o) 2>/dev/null` in #(
18382   *posix*) :
18383     set -o posix ;; #(
18384   *) :
18385      ;;
18386 esac
18387 fi
18388
18389
18390 as_nl='
18391 '
18392 export as_nl
18393 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18394 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18397 # Prefer a ksh shell builtin over an external printf program on Solaris,
18398 # but without wasting forks for bash or zsh.
18399 if test -z "$BASH_VERSION$ZSH_VERSION" \
18400     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18401   as_echo='print -r --'
18402   as_echo_n='print -rn --'
18403 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18404   as_echo='printf %s\n'
18405   as_echo_n='printf %s'
18406 else
18407   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18408     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18409     as_echo_n='/usr/ucb/echo -n'
18410   else
18411     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18412     as_echo_n_body='eval
18413       arg=$1;
18414       case $arg in #(
18415       *"$as_nl"*)
18416         expr "X$arg" : "X\\(.*\\)$as_nl";
18417         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18418       esac;
18419       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18420     '
18421     export as_echo_n_body
18422     as_echo_n='sh -c $as_echo_n_body as_echo'
18423   fi
18424   export as_echo_body
18425   as_echo='sh -c $as_echo_body as_echo'
18426 fi
18427
18428 # The user is always right.
18429 if test "${PATH_SEPARATOR+set}" != set; then
18430   PATH_SEPARATOR=:
18431   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18432     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18433       PATH_SEPARATOR=';'
18434   }
18435 fi
18436
18437
18438 # IFS
18439 # We need space, tab and new line, in precisely that order.  Quoting is
18440 # there to prevent editors from complaining about space-tab.
18441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18442 # splitting by setting IFS to empty value.)
18443 IFS=" ""        $as_nl"
18444
18445 # Find who we are.  Look in the path if we contain no directory separator.
18446 case $0 in #((
18447   *[\\/]* ) as_myself=$0 ;;
18448   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18449 for as_dir in $PATH
18450 do
18451   IFS=$as_save_IFS
18452   test -z "$as_dir" && as_dir=.
18453     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18454   done
18455 IFS=$as_save_IFS
18456
18457      ;;
18458 esac
18459 # We did not find ourselves, most probably we were run as `sh COMMAND'
18460 # in which case we are not to be found in the path.
18461 if test "x$as_myself" = x; then
18462   as_myself=$0
18463 fi
18464 if test ! -f "$as_myself"; then
18465   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18466   exit 1
18467 fi
18468
18469 # Unset variables that we do not need and which cause bugs (e.g. in
18470 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18471 # suppresses any "Segmentation fault" message there.  '((' could
18472 # trigger a bug in pdksh 5.2.14.
18473 for as_var in BASH_ENV ENV MAIL MAILPATH
18474 do eval test x\${$as_var+set} = xset \
18475   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18476 done
18477 PS1='$ '
18478 PS2='> '
18479 PS4='+ '
18480
18481 # NLS nuisances.
18482 LC_ALL=C
18483 export LC_ALL
18484 LANGUAGE=C
18485 export LANGUAGE
18486
18487 # CDPATH.
18488 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18489
18490
18491 # as_fn_error ERROR [LINENO LOG_FD]
18492 # ---------------------------------
18493 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18494 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18495 # script with status $?, using 1 if that was 0.
18496 as_fn_error ()
18497 {
18498   as_status=$?; test $as_status -eq 0 && as_status=1
18499   if test "$3"; then
18500     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18501     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18502   fi
18503   $as_echo "$as_me: error: $1" >&2
18504   as_fn_exit $as_status
18505 } # as_fn_error
18506
18507
18508 # as_fn_set_status STATUS
18509 # -----------------------
18510 # Set $? to STATUS, without forking.
18511 as_fn_set_status ()
18512 {
18513   return $1
18514 } # as_fn_set_status
18515
18516 # as_fn_exit STATUS
18517 # -----------------
18518 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18519 as_fn_exit ()
18520 {
18521   set +e
18522   as_fn_set_status $1
18523   exit $1
18524 } # as_fn_exit
18525
18526 # as_fn_unset VAR
18527 # ---------------
18528 # Portably unset VAR.
18529 as_fn_unset ()
18530 {
18531   { eval $1=; unset $1;}
18532 }
18533 as_unset=as_fn_unset
18534 # as_fn_append VAR VALUE
18535 # ----------------------
18536 # Append the text in VALUE to the end of the definition contained in VAR. Take
18537 # advantage of any shell optimizations that allow amortized linear growth over
18538 # repeated appends, instead of the typical quadratic growth present in naive
18539 # implementations.
18540 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18541   eval 'as_fn_append ()
18542   {
18543     eval $1+=\$2
18544   }'
18545 else
18546   as_fn_append ()
18547   {
18548     eval $1=\$$1\$2
18549   }
18550 fi # as_fn_append
18551
18552 # as_fn_arith ARG...
18553 # ------------------
18554 # Perform arithmetic evaluation on the ARGs, and store the result in the
18555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18556 # must be portable across $(()) and expr.
18557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18558   eval 'as_fn_arith ()
18559   {
18560     as_val=$(( $* ))
18561   }'
18562 else
18563   as_fn_arith ()
18564   {
18565     as_val=`expr "$@" || test $? -eq 1`
18566   }
18567 fi # as_fn_arith
18568
18569
18570 if expr a : '\(a\)' >/dev/null 2>&1 &&
18571    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18572   as_expr=expr
18573 else
18574   as_expr=false
18575 fi
18576
18577 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18578   as_basename=basename
18579 else
18580   as_basename=false
18581 fi
18582
18583 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18584   as_dirname=dirname
18585 else
18586   as_dirname=false
18587 fi
18588
18589 as_me=`$as_basename -- "$0" ||
18590 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18591          X"$0" : 'X\(//\)$' \| \
18592          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18593 $as_echo X/"$0" |
18594     sed '/^.*\/\([^/][^/]*\)\/*$/{
18595             s//\1/
18596             q
18597           }
18598           /^X\/\(\/\/\)$/{
18599             s//\1/
18600             q
18601           }
18602           /^X\/\(\/\).*/{
18603             s//\1/
18604             q
18605           }
18606           s/.*/./; q'`
18607
18608 # Avoid depending upon Character Ranges.
18609 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18610 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18611 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18612 as_cr_digits='0123456789'
18613 as_cr_alnum=$as_cr_Letters$as_cr_digits
18614
18615 ECHO_C= ECHO_N= ECHO_T=
18616 case `echo -n x` in #(((((
18617 -n*)
18618   case `echo 'xy\c'` in
18619   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18620   xy)  ECHO_C='\c';;
18621   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18622        ECHO_T=' ';;
18623   esac;;
18624 *)
18625   ECHO_N='-n';;
18626 esac
18627
18628 rm -f conf$$ conf$$.exe conf$$.file
18629 if test -d conf$$.dir; then
18630   rm -f conf$$.dir/conf$$.file
18631 else
18632   rm -f conf$$.dir
18633   mkdir conf$$.dir 2>/dev/null
18634 fi
18635 if (echo >conf$$.file) 2>/dev/null; then
18636   if ln -s conf$$.file conf$$ 2>/dev/null; then
18637     as_ln_s='ln -s'
18638     # ... but there are two gotchas:
18639     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18640     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18641     # In both cases, we have to default to `cp -p'.
18642     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18643       as_ln_s='cp -p'
18644   elif ln conf$$.file conf$$ 2>/dev/null; then
18645     as_ln_s=ln
18646   else
18647     as_ln_s='cp -p'
18648   fi
18649 else
18650   as_ln_s='cp -p'
18651 fi
18652 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18653 rmdir conf$$.dir 2>/dev/null
18654
18655
18656 # as_fn_mkdir_p
18657 # -------------
18658 # Create "$as_dir" as a directory, including parents if necessary.
18659 as_fn_mkdir_p ()
18660 {
18661
18662   case $as_dir in #(
18663   -*) as_dir=./$as_dir;;
18664   esac
18665   test -d "$as_dir" || eval $as_mkdir_p || {
18666     as_dirs=
18667     while :; do
18668       case $as_dir in #(
18669       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18670       *) as_qdir=$as_dir;;
18671       esac
18672       as_dirs="'$as_qdir' $as_dirs"
18673       as_dir=`$as_dirname -- "$as_dir" ||
18674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18675          X"$as_dir" : 'X\(//\)[^/]' \| \
18676          X"$as_dir" : 'X\(//\)$' \| \
18677          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18678 $as_echo X"$as_dir" |
18679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18680             s//\1/
18681             q
18682           }
18683           /^X\(\/\/\)[^/].*/{
18684             s//\1/
18685             q
18686           }
18687           /^X\(\/\/\)$/{
18688             s//\1/
18689             q
18690           }
18691           /^X\(\/\).*/{
18692             s//\1/
18693             q
18694           }
18695           s/.*/./; q'`
18696       test -d "$as_dir" && break
18697     done
18698     test -z "$as_dirs" || eval "mkdir $as_dirs"
18699   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18700
18701
18702 } # as_fn_mkdir_p
18703 if mkdir -p . 2>/dev/null; then
18704   as_mkdir_p='mkdir -p "$as_dir"'
18705 else
18706   test -d ./-p && rmdir ./-p
18707   as_mkdir_p=false
18708 fi
18709
18710 if test -x / >/dev/null 2>&1; then
18711   as_test_x='test -x'
18712 else
18713   if ls -dL / >/dev/null 2>&1; then
18714     as_ls_L_option=L
18715   else
18716     as_ls_L_option=
18717   fi
18718   as_test_x='
18719     eval sh -c '\''
18720       if test -d "$1"; then
18721         test -d "$1/.";
18722       else
18723         case $1 in #(
18724         -*)set "./$1";;
18725         esac;
18726         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18727         ???[sx]*):;;*)false;;esac;fi
18728     '\'' sh
18729   '
18730 fi
18731 as_executable_p=$as_test_x
18732
18733 # Sed expression to map a string onto a valid CPP name.
18734 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18735
18736 # Sed expression to map a string onto a valid variable name.
18737 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18738
18739
18740 exec 6>&1
18741 ## ----------------------------------- ##
18742 ## Main body of $CONFIG_STATUS script. ##
18743 ## ----------------------------------- ##
18744 _ASEOF
18745 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18746
18747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18748 # Save the log message, to keep $0 and so on meaningful, and to
18749 # report actual input values of CONFIG_FILES etc. instead of their
18750 # values after options handling.
18751 ac_log="
18752 This file was extended by sudo $as_me 1.7.4, which was
18753 generated by GNU Autoconf 2.65.  Invocation command line was
18754
18755   CONFIG_FILES    = $CONFIG_FILES
18756   CONFIG_HEADERS  = $CONFIG_HEADERS
18757   CONFIG_LINKS    = $CONFIG_LINKS
18758   CONFIG_COMMANDS = $CONFIG_COMMANDS
18759   $ $0 $@
18760
18761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18762 "
18763
18764 _ACEOF
18765
18766 case $ac_config_files in *"
18767 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18768 esac
18769
18770 case $ac_config_headers in *"
18771 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18772 esac
18773
18774
18775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18776 # Files that config.status was made for.
18777 config_files="$ac_config_files"
18778 config_headers="$ac_config_headers"
18779 config_commands="$ac_config_commands"
18780
18781 _ACEOF
18782
18783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18784 ac_cs_usage="\
18785 \`$as_me' instantiates files and other configuration actions
18786 from templates according to the current configuration.  Unless the files
18787 and actions are specified as TAGs, all are instantiated by default.
18788
18789 Usage: $0 [OPTION]... [TAG]...
18790
18791   -h, --help       print this help, then exit
18792   -V, --version    print version number and configuration settings, then exit
18793       --config     print configuration, then exit
18794   -q, --quiet, --silent
18795                    do not print progress messages
18796   -d, --debug      don't remove temporary files
18797       --recheck    update $as_me by reconfiguring in the same conditions
18798       --file=FILE[:TEMPLATE]
18799                    instantiate the configuration file FILE
18800       --header=FILE[:TEMPLATE]
18801                    instantiate the configuration header FILE
18802
18803 Configuration files:
18804 $config_files
18805
18806 Configuration headers:
18807 $config_headers
18808
18809 Configuration commands:
18810 $config_commands
18811
18812 Report bugs to <http://www.sudo.ws/bugs/>."
18813
18814 _ACEOF
18815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18816 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18817 ac_cs_version="\\
18818 sudo config.status 1.7.4
18819 configured by $0, generated by GNU Autoconf 2.65,
18820   with options \\"\$ac_cs_config\\"
18821
18822 Copyright (C) 2009 Free Software Foundation, Inc.
18823 This config.status script is free software; the Free Software Foundation
18824 gives unlimited permission to copy, distribute and modify it."
18825
18826 ac_pwd='$ac_pwd'
18827 srcdir='$srcdir'
18828 test -n "\$AWK" || AWK=awk
18829 _ACEOF
18830
18831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18832 # The default lists apply if the user does not specify any file.
18833 ac_need_defaults=:
18834 while test $# != 0
18835 do
18836   case $1 in
18837   --*=*)
18838     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18839     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18840     ac_shift=:
18841     ;;
18842   *)
18843     ac_option=$1
18844     ac_optarg=$2
18845     ac_shift=shift
18846     ;;
18847   esac
18848
18849   case $ac_option in
18850   # Handling of the options.
18851   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18852     ac_cs_recheck=: ;;
18853   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18854     $as_echo "$ac_cs_version"; exit ;;
18855   --config | --confi | --conf | --con | --co | --c )
18856     $as_echo "$ac_cs_config"; exit ;;
18857   --debug | --debu | --deb | --de | --d | -d )
18858     debug=: ;;
18859   --file | --fil | --fi | --f )
18860     $ac_shift
18861     case $ac_optarg in
18862     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18863     esac
18864     as_fn_append CONFIG_FILES " '$ac_optarg'"
18865     ac_need_defaults=false;;
18866   --header | --heade | --head | --hea )
18867     $ac_shift
18868     case $ac_optarg in
18869     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18870     esac
18871     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18872     ac_need_defaults=false;;
18873   --he | --h)
18874     # Conflict between --help and --header
18875     as_fn_error "ambiguous option: \`$1'
18876 Try \`$0 --help' for more information.";;
18877   --help | --hel | -h )
18878     $as_echo "$ac_cs_usage"; exit ;;
18879   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18880   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18881     ac_cs_silent=: ;;
18882
18883   # This is an error.
18884   -*) as_fn_error "unrecognized option: \`$1'
18885 Try \`$0 --help' for more information." ;;
18886
18887   *) as_fn_append ac_config_targets " $1"
18888      ac_need_defaults=false ;;
18889
18890   esac
18891   shift
18892 done
18893
18894 ac_configure_extra_args=
18895
18896 if $ac_cs_silent; then
18897   exec 6>/dev/null
18898   ac_configure_extra_args="$ac_configure_extra_args --silent"
18899 fi
18900
18901 _ACEOF
18902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18903 if \$ac_cs_recheck; then
18904   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18905   shift
18906   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18907   CONFIG_SHELL='$SHELL'
18908   export CONFIG_SHELL
18909   exec "\$@"
18910 fi
18911
18912 _ACEOF
18913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18914 exec 5>>config.log
18915 {
18916   echo
18917   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18918 ## Running $as_me. ##
18919 _ASBOX
18920   $as_echo "$ac_log"
18921 } >&5
18922
18923 _ACEOF
18924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18925 #
18926 # INIT-COMMANDS
18927 #
18928
18929
18930 # The HP-UX ksh and POSIX shell print the target directory to stdout
18931 # if CDPATH is set.
18932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18933
18934 sed_quote_subst='$sed_quote_subst'
18935 double_quote_subst='$double_quote_subst'
18936 delay_variable_subst='$delay_variable_subst'
18937 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18938 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18939 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18940 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18941 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18942 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18943 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18944 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18945 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18946 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18947 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18948 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18949 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18950 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18951 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18952 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18953 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18954 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18955 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18956 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18957 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18958 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18959 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18960 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18961 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18962 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18963 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18964 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18965 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18966 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18967 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18968 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18969 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18970 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18971 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18972 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18973 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18974 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18975 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18976 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18977 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18978 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18979 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18980 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18981 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18982 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18983 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18984 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18985 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18986 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18987 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18988 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18989 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18990 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18991 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18992 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18993 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18994 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18995 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18996 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18997 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18998 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18999 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19000 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19001 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19002 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19003 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19004 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19005 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19006 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19007 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19008 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19009 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19010 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19011 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19012 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19013 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19014 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19015 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19016 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19017 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19018 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19019 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19020 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19021 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19022 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19023 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19024 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19025 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19026 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19027 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19028 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19029 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19030 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19031 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19032 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19033 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19034 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19035 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19036 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19037 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19038 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19039 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19040 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19041 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19042 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19043 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19044 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19045 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19046 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19047 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19048 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19049 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19050 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19051 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19052 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19053 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19054 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19055
19056 LTCC='$LTCC'
19057 LTCFLAGS='$LTCFLAGS'
19058 compiler='$compiler_DEFAULT'
19059
19060 # Quote evaled strings.
19061 for var in SED \
19062 GREP \
19063 EGREP \
19064 FGREP \
19065 LD \
19066 NM \
19067 LN_S \
19068 lt_SP2NL \
19069 lt_NL2SP \
19070 reload_flag \
19071 OBJDUMP \
19072 deplibs_check_method \
19073 file_magic_cmd \
19074 AR \
19075 AR_FLAGS \
19076 STRIP \
19077 RANLIB \
19078 CC \
19079 CFLAGS \
19080 compiler \
19081 lt_cv_sys_global_symbol_pipe \
19082 lt_cv_sys_global_symbol_to_cdecl \
19083 lt_cv_sys_global_symbol_to_c_name_address \
19084 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19085 SHELL \
19086 ECHO \
19087 lt_prog_compiler_no_builtin_flag \
19088 lt_prog_compiler_wl \
19089 lt_prog_compiler_pic \
19090 lt_prog_compiler_static \
19091 lt_cv_prog_compiler_c_o \
19092 need_locks \
19093 DSYMUTIL \
19094 NMEDIT \
19095 LIPO \
19096 OTOOL \
19097 OTOOL64 \
19098 shrext_cmds \
19099 export_dynamic_flag_spec \
19100 whole_archive_flag_spec \
19101 compiler_needs_object \
19102 with_gnu_ld \
19103 allow_undefined_flag \
19104 no_undefined_flag \
19105 hardcode_libdir_flag_spec \
19106 hardcode_libdir_flag_spec_ld \
19107 hardcode_libdir_separator \
19108 fix_srcfile_path \
19109 exclude_expsyms \
19110 include_expsyms \
19111 file_list_spec \
19112 variables_saved_for_relink \
19113 libname_spec \
19114 library_names_spec \
19115 soname_spec \
19116 finish_eval \
19117 old_striplib \
19118 striplib; do
19119     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19120     *[\\\\\\\`\\"\\\$]*)
19121       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19122       ;;
19123     *)
19124       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19125       ;;
19126     esac
19127 done
19128
19129 # Double-quote double-evaled strings.
19130 for var in reload_cmds \
19131 old_postinstall_cmds \
19132 old_postuninstall_cmds \
19133 old_archive_cmds \
19134 extract_expsyms_cmds \
19135 old_archive_from_new_cmds \
19136 old_archive_from_expsyms_cmds \
19137 archive_cmds \
19138 archive_expsym_cmds \
19139 module_cmds \
19140 module_expsym_cmds \
19141 export_symbols_cmds \
19142 prelink_cmds \
19143 postinstall_cmds \
19144 postuninstall_cmds \
19145 finish_cmds \
19146 sys_lib_search_path_spec \
19147 sys_lib_dlsearch_path_spec; do
19148     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19149     *[\\\\\\\`\\"\\\$]*)
19150       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19151       ;;
19152     *)
19153       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19154       ;;
19155     esac
19156 done
19157
19158 # Fix-up fallback echo if it was mangled by the above quoting rules.
19159 case \$lt_ECHO in
19160 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19161   ;;
19162 esac
19163
19164 ac_aux_dir='$ac_aux_dir'
19165 xsi_shell='$xsi_shell'
19166 lt_shell_append='$lt_shell_append'
19167
19168 # See if we are running on zsh, and set the options which allow our
19169 # commands through without removal of \ escapes INIT.
19170 if test -n "\${ZSH_VERSION+set}" ; then
19171    setopt NO_GLOB_SUBST
19172 fi
19173
19174
19175     PACKAGE='$PACKAGE'
19176     VERSION='$VERSION'
19177     TIMESTAMP='$TIMESTAMP'
19178     RM='$RM'
19179     ofile='$ofile'
19180
19181
19182
19183
19184 _ACEOF
19185
19186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19187
19188 # Handling of arguments.
19189 for ac_config_target in $ac_config_targets
19190 do
19191   case $ac_config_target in
19192     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19193     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
19194     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19195     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19196     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
19197     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
19198     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
19199     "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
19200     "sudoreplay.man") CONFIG_FILES="$CONFIG_FILES sudoreplay.man" ;;
19201     "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
19202
19203   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19204   esac
19205 done
19206
19207
19208 # If the user did not use the arguments to specify the items to instantiate,
19209 # then the envvar interface is used.  Set only those that are not.
19210 # We use the long form for the default assignment because of an extremely
19211 # bizarre bug on SunOS 4.1.3.
19212 if $ac_need_defaults; then
19213   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19214   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19215   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19216 fi
19217
19218 # Have a temporary directory for convenience.  Make it in the build tree
19219 # simply because there is no reason against having it here, and in addition,
19220 # creating and moving files from /tmp can sometimes cause problems.
19221 # Hook for its removal unless debugging.
19222 # Note that there is a small window in which the directory will not be cleaned:
19223 # after its creation but before its name has been assigned to `$tmp'.
19224 $debug ||
19225 {
19226   tmp=
19227   trap 'exit_status=$?
19228   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19229 ' 0
19230   trap 'as_fn_exit 1' 1 2 13 15
19231 }
19232 # Create a (secure) tmp directory for tmp files.
19233
19234 {
19235   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19236   test -n "$tmp" && test -d "$tmp"
19237 }  ||
19238 {
19239   tmp=./conf$$-$RANDOM
19240   (umask 077 && mkdir "$tmp")
19241 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19242
19243 # Set up the scripts for CONFIG_FILES section.
19244 # No need to generate them if there are no CONFIG_FILES.
19245 # This happens for instance with `./config.status config.h'.
19246 if test -n "$CONFIG_FILES"; then
19247
19248
19249 ac_cr=`echo X | tr X '\015'`
19250 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19251 # But we know of no other shell where ac_cr would be empty at this
19252 # point, so we can use a bashism as a fallback.
19253 if test "x$ac_cr" = x; then
19254   eval ac_cr=\$\'\\r\'
19255 fi
19256 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19257 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19258   ac_cs_awk_cr='\r'
19259 else
19260   ac_cs_awk_cr=$ac_cr
19261 fi
19262
19263 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19264 _ACEOF
19265
19266
19267 {
19268   echo "cat >conf$$subs.awk <<_ACEOF" &&
19269   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19270   echo "_ACEOF"
19271 } >conf$$subs.sh ||
19272   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19273 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19274 ac_delim='%!_!# '
19275 for ac_last_try in false false false false false :; do
19276   . ./conf$$subs.sh ||
19277     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19278
19279   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19280   if test $ac_delim_n = $ac_delim_num; then
19281     break
19282   elif $ac_last_try; then
19283     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19284   else
19285     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19286   fi
19287 done
19288 rm -f conf$$subs.sh
19289
19290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19291 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19292 _ACEOF
19293 sed -n '
19294 h
19295 s/^/S["/; s/!.*/"]=/
19296 p
19297 g
19298 s/^[^!]*!//
19299 :repl
19300 t repl
19301 s/'"$ac_delim"'$//
19302 t delim
19303 :nl
19304 h
19305 s/\(.\{148\}\)..*/\1/
19306 t more1
19307 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19308 p
19309 n
19310 b repl
19311 :more1
19312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19313 p
19314 g
19315 s/.\{148\}//
19316 t nl
19317 :delim
19318 h
19319 s/\(.\{148\}\)..*/\1/
19320 t more2
19321 s/["\\]/\\&/g; s/^/"/; s/$/"/
19322 p
19323 b
19324 :more2
19325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19326 p
19327 g
19328 s/.\{148\}//
19329 t delim
19330 ' <conf$$subs.awk | sed '
19331 /^[^""]/{
19332   N
19333   s/\n//
19334 }
19335 ' >>$CONFIG_STATUS || ac_write_fail=1
19336 rm -f conf$$subs.awk
19337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19338 _ACAWK
19339 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19340   for (key in S) S_is_set[key] = 1
19341   FS = "\a"
19342
19343 }
19344 {
19345   line = $ 0
19346   nfields = split(line, field, "@")
19347   substed = 0
19348   len = length(field[1])
19349   for (i = 2; i < nfields; i++) {
19350     key = field[i]
19351     keylen = length(key)
19352     if (S_is_set[key]) {
19353       value = S[key]
19354       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19355       len += length(value) + length(field[++i])
19356       substed = 1
19357     } else
19358       len += 1 + keylen
19359   }
19360
19361   print line
19362 }
19363
19364 _ACAWK
19365 _ACEOF
19366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19367 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19368   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19369 else
19370   cat
19371 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19372   || as_fn_error "could not setup config files machinery" "$LINENO" 5
19373 _ACEOF
19374
19375 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19376 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19377 # trailing colons and then remove the whole line if VPATH becomes empty
19378 # (actually we leave an empty line to preserve line numbers).
19379 if test "x$srcdir" = x.; then
19380   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19381 s/:*\$(srcdir):*/:/
19382 s/:*\${srcdir}:*/:/
19383 s/:*@srcdir@:*/:/
19384 s/^\([^=]*=[     ]*\):*/\1/
19385 s/:*$//
19386 s/^[^=]*=[       ]*$//
19387 }'
19388 fi
19389
19390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19391 fi # test -n "$CONFIG_FILES"
19392
19393 # Set up the scripts for CONFIG_HEADERS section.
19394 # No need to generate them if there are no CONFIG_HEADERS.
19395 # This happens for instance with `./config.status Makefile'.
19396 if test -n "$CONFIG_HEADERS"; then
19397 cat >"$tmp/defines.awk" <<\_ACAWK ||
19398 BEGIN {
19399 _ACEOF
19400
19401 # Transform confdefs.h into an awk script `defines.awk', embedded as
19402 # here-document in config.status, that substitutes the proper values into
19403 # config.h.in to produce config.h.
19404
19405 # Create a delimiter string that does not exist in confdefs.h, to ease
19406 # handling of long lines.
19407 ac_delim='%!_!# '
19408 for ac_last_try in false false :; do
19409   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19410   if test -z "$ac_t"; then
19411     break
19412   elif $ac_last_try; then
19413     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19414   else
19415     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19416   fi
19417 done
19418
19419 # For the awk script, D is an array of macro values keyed by name,
19420 # likewise P contains macro parameters if any.  Preserve backslash
19421 # newline sequences.
19422
19423 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19424 sed -n '
19425 s/.\{148\}/&'"$ac_delim"'/g
19426 t rset
19427 :rset
19428 s/^[     ]*#[    ]*define[       ][      ]*/ /
19429 t def
19430 d
19431 :def
19432 s/\\$//
19433 t bsnl
19434 s/["\\]/\\&/g
19435 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19436 D["\1"]=" \3"/p
19437 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19438 d
19439 :bsnl
19440 s/["\\]/\\&/g
19441 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19442 D["\1"]=" \3\\\\\\n"\\/p
19443 t cont
19444 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19445 t cont
19446 d
19447 :cont
19448 n
19449 s/.\{148\}/&'"$ac_delim"'/g
19450 t clear
19451 :clear
19452 s/\\$//
19453 t bsnlc
19454 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19455 d
19456 :bsnlc
19457 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19458 b cont
19459 ' <confdefs.h | sed '
19460 s/'"$ac_delim"'/"\\\
19461 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19462
19463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19464   for (key in D) D_is_set[key] = 1
19465   FS = "\a"
19466 }
19467 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19468   line = \$ 0
19469   split(line, arg, " ")
19470   if (arg[1] == "#") {
19471     defundef = arg[2]
19472     mac1 = arg[3]
19473   } else {
19474     defundef = substr(arg[1], 2)
19475     mac1 = arg[2]
19476   }
19477   split(mac1, mac2, "(") #)
19478   macro = mac2[1]
19479   prefix = substr(line, 1, index(line, defundef) - 1)
19480   if (D_is_set[macro]) {
19481     # Preserve the white space surrounding the "#".
19482     print prefix "define", macro P[macro] D[macro]
19483     next
19484   } else {
19485     # Replace #undef with comments.  This is necessary, for example,
19486     # in the case of _POSIX_SOURCE, which is predefined and required
19487     # on some systems where configure will not decide to define it.
19488     if (defundef == "undef") {
19489       print "/*", prefix defundef, macro, "*/"
19490       next
19491     }
19492   }
19493 }
19494 { print }
19495 _ACAWK
19496 _ACEOF
19497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19498   as_fn_error "could not setup config headers machinery" "$LINENO" 5
19499 fi # test -n "$CONFIG_HEADERS"
19500
19501
19502 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19503 shift
19504 for ac_tag
19505 do
19506   case $ac_tag in
19507   :[FHLC]) ac_mode=$ac_tag; continue;;
19508   esac
19509   case $ac_mode$ac_tag in
19510   :[FHL]*:*);;
19511   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19512   :[FH]-) ac_tag=-:-;;
19513   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19514   esac
19515   ac_save_IFS=$IFS
19516   IFS=:
19517   set x $ac_tag
19518   IFS=$ac_save_IFS
19519   shift
19520   ac_file=$1
19521   shift
19522
19523   case $ac_mode in
19524   :L) ac_source=$1;;
19525   :[FH])
19526     ac_file_inputs=
19527     for ac_f
19528     do
19529       case $ac_f in
19530       -) ac_f="$tmp/stdin";;
19531       *) # Look for the file first in the build tree, then in the source tree
19532          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19533          # because $ac_f cannot contain `:'.
19534          test -f "$ac_f" ||
19535            case $ac_f in
19536            [\\/$]*) false;;
19537            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19538            esac ||
19539            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19540       esac
19541       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19542       as_fn_append ac_file_inputs " '$ac_f'"
19543     done
19544
19545     # Let's still pretend it is `configure' which instantiates (i.e., don't
19546     # use $as_me), people would be surprised to read:
19547     #    /* config.h.  Generated by config.status.  */
19548     configure_input='Generated from '`
19549           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19550         `' by configure.'
19551     if test x"$ac_file" != x-; then
19552       configure_input="$ac_file.  $configure_input"
19553       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19554 $as_echo "$as_me: creating $ac_file" >&6;}
19555     fi
19556     # Neutralize special characters interpreted by sed in replacement strings.
19557     case $configure_input in #(
19558     *\&* | *\|* | *\\* )
19559        ac_sed_conf_input=`$as_echo "$configure_input" |
19560        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19561     *) ac_sed_conf_input=$configure_input;;
19562     esac
19563
19564     case $ac_tag in
19565     *:-:* | *:-) cat >"$tmp/stdin" \
19566       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19567     esac
19568     ;;
19569   esac
19570
19571   ac_dir=`$as_dirname -- "$ac_file" ||
19572 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19573          X"$ac_file" : 'X\(//\)[^/]' \| \
19574          X"$ac_file" : 'X\(//\)$' \| \
19575          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19576 $as_echo X"$ac_file" |
19577     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19578             s//\1/
19579             q
19580           }
19581           /^X\(\/\/\)[^/].*/{
19582             s//\1/
19583             q
19584           }
19585           /^X\(\/\/\)$/{
19586             s//\1/
19587             q
19588           }
19589           /^X\(\/\).*/{
19590             s//\1/
19591             q
19592           }
19593           s/.*/./; q'`
19594   as_dir="$ac_dir"; as_fn_mkdir_p
19595   ac_builddir=.
19596
19597 case "$ac_dir" in
19598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19599 *)
19600   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19601   # A ".." for each directory in $ac_dir_suffix.
19602   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19603   case $ac_top_builddir_sub in
19604   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19605   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19606   esac ;;
19607 esac
19608 ac_abs_top_builddir=$ac_pwd
19609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19610 # for backward compatibility:
19611 ac_top_builddir=$ac_top_build_prefix
19612
19613 case $srcdir in
19614   .)  # We are building in place.
19615     ac_srcdir=.
19616     ac_top_srcdir=$ac_top_builddir_sub
19617     ac_abs_top_srcdir=$ac_pwd ;;
19618   [\\/]* | ?:[\\/]* )  # Absolute name.
19619     ac_srcdir=$srcdir$ac_dir_suffix;
19620     ac_top_srcdir=$srcdir
19621     ac_abs_top_srcdir=$srcdir ;;
19622   *) # Relative name.
19623     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19624     ac_top_srcdir=$ac_top_build_prefix$srcdir
19625     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19626 esac
19627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19628
19629
19630   case $ac_mode in
19631   :F)
19632   #
19633   # CONFIG_FILE
19634   #
19635
19636 _ACEOF
19637
19638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19639 # If the template does not know about datarootdir, expand it.
19640 # FIXME: This hack should be removed a few years after 2.60.
19641 ac_datarootdir_hack=; ac_datarootdir_seen=
19642 ac_sed_dataroot='
19643 /datarootdir/ {
19644   p
19645   q
19646 }
19647 /@datadir@/p
19648 /@docdir@/p
19649 /@infodir@/p
19650 /@localedir@/p
19651 /@mandir@/p'
19652 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19653 *datarootdir*) ac_datarootdir_seen=yes;;
19654 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19655   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19656 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19657 _ACEOF
19658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19659   ac_datarootdir_hack='
19660   s&@datadir@&$datadir&g
19661   s&@docdir@&$docdir&g
19662   s&@infodir@&$infodir&g
19663   s&@localedir@&$localedir&g
19664   s&@mandir@&$mandir&g
19665   s&\\\${datarootdir}&$datarootdir&g' ;;
19666 esac
19667 _ACEOF
19668
19669 # Neutralize VPATH when `$srcdir' = `.'.
19670 # Shell code in configure.ac might set extrasub.
19671 # FIXME: do we really want to maintain this feature?
19672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19673 ac_sed_extra="$ac_vpsub
19674 $extrasub
19675 _ACEOF
19676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19677 :t
19678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19679 s|@configure_input@|$ac_sed_conf_input|;t t
19680 s&@top_builddir@&$ac_top_builddir_sub&;t t
19681 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19682 s&@srcdir@&$ac_srcdir&;t t
19683 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19684 s&@top_srcdir@&$ac_top_srcdir&;t t
19685 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19686 s&@builddir@&$ac_builddir&;t t
19687 s&@abs_builddir@&$ac_abs_builddir&;t t
19688 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19689 $ac_datarootdir_hack
19690 "
19691 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19692   || as_fn_error "could not create $ac_file" "$LINENO" 5
19693
19694 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19695   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19696   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19697   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19698 which seems to be undefined.  Please make sure it is defined." >&5
19699 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19700 which seems to be undefined.  Please make sure it is defined." >&2;}
19701
19702   rm -f "$tmp/stdin"
19703   case $ac_file in
19704   -) cat "$tmp/out" && rm -f "$tmp/out";;
19705   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19706   esac \
19707   || as_fn_error "could not create $ac_file" "$LINENO" 5
19708  ;;
19709   :H)
19710   #
19711   # CONFIG_HEADER
19712   #
19713   if test x"$ac_file" != x-; then
19714     {
19715       $as_echo "/* $configure_input  */" \
19716       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19717     } >"$tmp/config.h" \
19718       || as_fn_error "could not create $ac_file" "$LINENO" 5
19719     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19720       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19721 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19722     else
19723       rm -f "$ac_file"
19724       mv "$tmp/config.h" "$ac_file" \
19725         || as_fn_error "could not create $ac_file" "$LINENO" 5
19726     fi
19727   else
19728     $as_echo "/* $configure_input  */" \
19729       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19730       || as_fn_error "could not create -" "$LINENO" 5
19731   fi
19732  ;;
19733
19734   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19735 $as_echo "$as_me: executing $ac_file commands" >&6;}
19736  ;;
19737   esac
19738
19739
19740   case $ac_file$ac_mode in
19741     "libtool":C)
19742
19743     # See if we are running on zsh, and set the options which allow our
19744     # commands through without removal of \ escapes.
19745     if test -n "${ZSH_VERSION+set}" ; then
19746       setopt NO_GLOB_SUBST
19747     fi
19748
19749     cfgfile="${ofile}T"
19750     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19751     $RM "$cfgfile"
19752
19753     cat <<_LT_EOF >> "$cfgfile"
19754 #! $SHELL
19755
19756 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19757 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19759 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19760 #
19761 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19762 #                 2006, 2007, 2008 Free Software Foundation, Inc.
19763 #   Written by Gordon Matzigkeit, 1996
19764 #
19765 #   This file is part of GNU Libtool.
19766 #
19767 # GNU Libtool is free software; you can redistribute it and/or
19768 # modify it under the terms of the GNU General Public License as
19769 # published by the Free Software Foundation; either version 2 of
19770 # the License, or (at your option) any later version.
19771 #
19772 # As a special exception to the GNU General Public License,
19773 # if you distribute this file as part of a program or library that
19774 # is built using GNU Libtool, you may include this file under the
19775 # same distribution terms that you use for the rest of that program.
19776 #
19777 # GNU Libtool is distributed in the hope that it will be useful,
19778 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19779 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19780 # GNU General Public License for more details.
19781 #
19782 # You should have received a copy of the GNU General Public License
19783 # along with GNU Libtool; see the file COPYING.  If not, a copy
19784 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19785 # obtained by writing to the Free Software Foundation, Inc.,
19786 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19787
19788
19789 # The names of the tagged configurations supported by this script.
19790 available_tags=""
19791
19792 # ### BEGIN LIBTOOL CONFIG
19793
19794 # Which release of libtool.m4 was used?
19795 macro_version=$macro_version
19796 macro_revision=$macro_revision
19797
19798 # Whether or not to build shared libraries.
19799 build_libtool_libs=$enable_shared
19800
19801 # Whether or not to build static libraries.
19802 build_old_libs=$enable_static
19803
19804 # What type of objects to build.
19805 pic_mode=$pic_mode
19806
19807 # Whether or not to optimize for fast installation.
19808 fast_install=$enable_fast_install
19809
19810 # The host system.
19811 host_alias=$host_alias
19812 host=$host
19813 host_os=$host_os
19814
19815 # The build system.
19816 build_alias=$build_alias
19817 build=$build
19818 build_os=$build_os
19819
19820 # A sed program that does not truncate output.
19821 SED=$lt_SED
19822
19823 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19824 Xsed="\$SED -e 1s/^X//"
19825
19826 # A grep program that handles long lines.
19827 GREP=$lt_GREP
19828
19829 # An ERE matcher.
19830 EGREP=$lt_EGREP
19831
19832 # A literal string matcher.
19833 FGREP=$lt_FGREP
19834
19835 # A BSD- or MS-compatible name lister.
19836 NM=$lt_NM
19837
19838 # Whether we need soft or hard links.
19839 LN_S=$lt_LN_S
19840
19841 # What is the maximum length of a command?
19842 max_cmd_len=$max_cmd_len
19843
19844 # Object file suffix (normally "o").
19845 objext=$ac_objext
19846
19847 # Executable file suffix (normally "").
19848 exeext=$exeext
19849
19850 # whether the shell understands "unset".
19851 lt_unset=$lt_unset
19852
19853 # turn spaces into newlines.
19854 SP2NL=$lt_lt_SP2NL
19855
19856 # turn newlines into spaces.
19857 NL2SP=$lt_lt_NL2SP
19858
19859 # How to create reloadable object files.
19860 reload_flag=$lt_reload_flag
19861 reload_cmds=$lt_reload_cmds
19862
19863 # An object symbol dumper.
19864 OBJDUMP=$lt_OBJDUMP
19865
19866 # Method to check whether dependent libraries are shared objects.
19867 deplibs_check_method=$lt_deplibs_check_method
19868
19869 # Command to use when deplibs_check_method == "file_magic".
19870 file_magic_cmd=$lt_file_magic_cmd
19871
19872 # The archiver.
19873 AR=$lt_AR
19874 AR_FLAGS=$lt_AR_FLAGS
19875
19876 # A symbol stripping program.
19877 STRIP=$lt_STRIP
19878
19879 # Commands used to install an old-style archive.
19880 RANLIB=$lt_RANLIB
19881 old_postinstall_cmds=$lt_old_postinstall_cmds
19882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19883
19884 # A C compiler.
19885 LTCC=$lt_CC
19886
19887 # LTCC compiler flags.
19888 LTCFLAGS=$lt_CFLAGS
19889
19890 # Take the output of nm and produce a listing of raw symbols and C names.
19891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19892
19893 # Transform the output of nm in a proper C declaration.
19894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19895
19896 # Transform the output of nm in a C name address pair.
19897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19898
19899 # Transform the output of nm in a C name address pair when lib prefix is needed.
19900 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19901
19902 # The name of the directory that contains temporary libtool files.
19903 objdir=$objdir
19904
19905 # Shell to use when invoking shell scripts.
19906 SHELL=$lt_SHELL
19907
19908 # An echo program that does not interpret backslashes.
19909 ECHO=$lt_ECHO
19910
19911 # Used to examine libraries when file_magic_cmd begins with "file".
19912 MAGIC_CMD=$MAGIC_CMD
19913
19914 # Must we lock files when doing compilation?
19915 need_locks=$lt_need_locks
19916
19917 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19918 DSYMUTIL=$lt_DSYMUTIL
19919
19920 # Tool to change global to local symbols on Mac OS X.
19921 NMEDIT=$lt_NMEDIT
19922
19923 # Tool to manipulate fat objects and archives on Mac OS X.
19924 LIPO=$lt_LIPO
19925
19926 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19927 OTOOL=$lt_OTOOL
19928
19929 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19930 OTOOL64=$lt_OTOOL64
19931
19932 # Old archive suffix (normally "a").
19933 libext=$libext
19934
19935 # Shared library suffix (normally ".so").
19936 shrext_cmds=$lt_shrext_cmds
19937
19938 # The commands to extract the exported symbol list from a shared archive.
19939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19940
19941 # Variables whose values should be saved in libtool wrapper scripts and
19942 # restored at link time.
19943 variables_saved_for_relink=$lt_variables_saved_for_relink
19944
19945 # Do we need the "lib" prefix for modules?
19946 need_lib_prefix=$need_lib_prefix
19947
19948 # Do we need a version for libraries?
19949 need_version=$need_version
19950
19951 # Library versioning type.
19952 version_type=$version_type
19953
19954 # Shared library runtime path variable.
19955 runpath_var=$runpath_var
19956
19957 # Shared library path variable.
19958 shlibpath_var=$shlibpath_var
19959
19960 # Is shlibpath searched before the hard-coded library search path?
19961 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19962
19963 # Format of library name prefix.
19964 libname_spec=$lt_libname_spec
19965
19966 # List of archive names.  First name is the real one, the rest are links.
19967 # The last name is the one that the linker finds with -lNAME
19968 library_names_spec=$lt_library_names_spec
19969
19970 # The coded name of the library, if different from the real name.
19971 soname_spec=$lt_soname_spec
19972
19973 # Command to use after installation of a shared archive.
19974 postinstall_cmds=$lt_postinstall_cmds
19975
19976 # Command to use after uninstallation of a shared archive.
19977 postuninstall_cmds=$lt_postuninstall_cmds
19978
19979 # Commands used to finish a libtool library installation in a directory.
19980 finish_cmds=$lt_finish_cmds
19981
19982 # As "finish_cmds", except a single script fragment to be evaled but
19983 # not shown.
19984 finish_eval=$lt_finish_eval
19985
19986 # Whether we should hardcode library paths into libraries.
19987 hardcode_into_libs=$hardcode_into_libs
19988
19989 # Compile-time system search path for libraries.
19990 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19991
19992 # Run-time system search path for libraries.
19993 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19994
19995 # Whether dlopen is supported.
19996 dlopen_support=$enable_dlopen
19997
19998 # Whether dlopen of programs is supported.
19999 dlopen_self=$enable_dlopen_self
20000
20001 # Whether dlopen of statically linked programs is supported.
20002 dlopen_self_static=$enable_dlopen_self_static
20003
20004 # Commands to strip libraries.
20005 old_striplib=$lt_old_striplib
20006 striplib=$lt_striplib
20007
20008
20009 # The linker used to build libraries.
20010 LD=$lt_LD
20011
20012 # Commands used to build an old-style archive.
20013 old_archive_cmds=$lt_old_archive_cmds
20014
20015 # A language specific compiler.
20016 CC=$lt_compiler
20017
20018 # Is the compiler the GNU compiler?
20019 with_gcc=$GCC
20020
20021 # Compiler flag to turn off builtin functions.
20022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20023
20024 # How to pass a linker flag through the compiler.
20025 wl=$lt_lt_prog_compiler_wl
20026
20027 # Additional compiler flags for building library objects.
20028 pic_flag=$lt_lt_prog_compiler_pic
20029
20030 # Compiler flag to prevent dynamic linking.
20031 link_static_flag=$lt_lt_prog_compiler_static
20032
20033 # Does compiler simultaneously support -c and -o options?
20034 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20035
20036 # Whether or not to add -lc for building shared libraries.
20037 build_libtool_need_lc=$archive_cmds_need_lc
20038
20039 # Whether or not to disallow shared libs when runtime libs are static.
20040 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20041
20042 # Compiler flag to allow reflexive dlopens.
20043 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20044
20045 # Compiler flag to generate shared objects directly from archives.
20046 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20047
20048 # Whether the compiler copes with passing no objects directly.
20049 compiler_needs_object=$lt_compiler_needs_object
20050
20051 # Create an old-style archive from a shared archive.
20052 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20053
20054 # Create a temporary old-style archive to link instead of a shared archive.
20055 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20056
20057 # Commands used to build a shared archive.
20058 archive_cmds=$lt_archive_cmds
20059 archive_expsym_cmds=$lt_archive_expsym_cmds
20060
20061 # Commands used to build a loadable module if different from building
20062 # a shared archive.
20063 module_cmds=$lt_module_cmds
20064 module_expsym_cmds=$lt_module_expsym_cmds
20065
20066 # Whether we are building with GNU ld or not.
20067 with_gnu_ld=$lt_with_gnu_ld
20068
20069 # Flag that allows shared libraries with undefined symbols to be built.
20070 allow_undefined_flag=$lt_allow_undefined_flag
20071
20072 # Flag that enforces no undefined symbols.
20073 no_undefined_flag=$lt_no_undefined_flag
20074
20075 # Flag to hardcode \$libdir into a binary during linking.
20076 # This must work even if \$libdir does not exist
20077 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20078
20079 # If ld is used when linking, flag to hardcode \$libdir into a binary
20080 # during linking.  This must work even if \$libdir does not exist.
20081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20082
20083 # Whether we need a single "-rpath" flag with a separated argument.
20084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20085
20086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20087 # DIR into the resulting binary.
20088 hardcode_direct=$hardcode_direct
20089
20090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20091 # DIR into the resulting binary and the resulting library dependency is
20092 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20093 # library is relocated.
20094 hardcode_direct_absolute=$hardcode_direct_absolute
20095
20096 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20097 # into the resulting binary.
20098 hardcode_minus_L=$hardcode_minus_L
20099
20100 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20101 # into the resulting binary.
20102 hardcode_shlibpath_var=$hardcode_shlibpath_var
20103
20104 # Set to "yes" if building a shared library automatically hardcodes DIR
20105 # into the library and all subsequent libraries and executables linked
20106 # against it.
20107 hardcode_automatic=$hardcode_automatic
20108
20109 # Set to yes if linker adds runtime paths of dependent libraries
20110 # to runtime path list.
20111 inherit_rpath=$inherit_rpath
20112
20113 # Whether libtool must link a program against all its dependency libraries.
20114 link_all_deplibs=$link_all_deplibs
20115
20116 # Fix the shell variable \$srcfile for the compiler.
20117 fix_srcfile_path=$lt_fix_srcfile_path
20118
20119 # Set to "yes" if exported symbols are required.
20120 always_export_symbols=$always_export_symbols
20121
20122 # The commands to list exported symbols.
20123 export_symbols_cmds=$lt_export_symbols_cmds
20124
20125 # Symbols that should not be listed in the preloaded symbols.
20126 exclude_expsyms=$lt_exclude_expsyms
20127
20128 # Symbols that must always be exported.
20129 include_expsyms=$lt_include_expsyms
20130
20131 # Commands necessary for linking programs (against libraries) with templates.
20132 prelink_cmds=$lt_prelink_cmds
20133
20134 # Specify filename containing input files.
20135 file_list_spec=$lt_file_list_spec
20136
20137 # How to hardcode a shared library path into an executable.
20138 hardcode_action=$hardcode_action
20139
20140 # ### END LIBTOOL CONFIG
20141
20142 _LT_EOF
20143
20144   case $host_os in
20145   aix3*)
20146     cat <<\_LT_EOF >> "$cfgfile"
20147 # AIX sometimes has problems with the GCC collect2 program.  For some
20148 # reason, if we set the COLLECT_NAMES environment variable, the problems
20149 # vanish in a puff of smoke.
20150 if test "X${COLLECT_NAMES+set}" != Xset; then
20151   COLLECT_NAMES=
20152   export COLLECT_NAMES
20153 fi
20154 _LT_EOF
20155     ;;
20156   esac
20157
20158
20159 ltmain="$ac_aux_dir/ltmain.sh"
20160
20161
20162   # We use sed instead of cat because bash on DJGPP gets confused if
20163   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20164   # text mode, it properly converts lines to CR/LF.  This bash problem
20165   # is reportedly fixed, but why not run on old versions too?
20166   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20167     || (rm -f "$cfgfile"; exit 1)
20168
20169   case $xsi_shell in
20170   yes)
20171     cat << \_LT_EOF >> "$cfgfile"
20172
20173 # func_dirname file append nondir_replacement
20174 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20175 # otherwise set result to NONDIR_REPLACEMENT.
20176 func_dirname ()
20177 {
20178   case ${1} in
20179     */*) func_dirname_result="${1%/*}${2}" ;;
20180     *  ) func_dirname_result="${3}" ;;
20181   esac
20182 }
20183
20184 # func_basename file
20185 func_basename ()
20186 {
20187   func_basename_result="${1##*/}"
20188 }
20189
20190 # func_dirname_and_basename file append nondir_replacement
20191 # perform func_basename and func_dirname in a single function
20192 # call:
20193 #   dirname:  Compute the dirname of FILE.  If nonempty,
20194 #             add APPEND to the result, otherwise set result
20195 #             to NONDIR_REPLACEMENT.
20196 #             value returned in "$func_dirname_result"
20197 #   basename: Compute filename of FILE.
20198 #             value retuned in "$func_basename_result"
20199 # Implementation must be kept synchronized with func_dirname
20200 # and func_basename. For efficiency, we do not delegate to
20201 # those functions but instead duplicate the functionality here.
20202 func_dirname_and_basename ()
20203 {
20204   case ${1} in
20205     */*) func_dirname_result="${1%/*}${2}" ;;
20206     *  ) func_dirname_result="${3}" ;;
20207   esac
20208   func_basename_result="${1##*/}"
20209 }
20210
20211 # func_stripname prefix suffix name
20212 # strip PREFIX and SUFFIX off of NAME.
20213 # PREFIX and SUFFIX must not contain globbing or regex special
20214 # characters, hashes, percent signs, but SUFFIX may contain a leading
20215 # dot (in which case that matches only a dot).
20216 func_stripname ()
20217 {
20218   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20219   # positional parameters, so assign one to ordinary parameter first.
20220   func_stripname_result=${3}
20221   func_stripname_result=${func_stripname_result#"${1}"}
20222   func_stripname_result=${func_stripname_result%"${2}"}
20223 }
20224
20225 # func_opt_split
20226 func_opt_split ()
20227 {
20228   func_opt_split_opt=${1%%=*}
20229   func_opt_split_arg=${1#*=}
20230 }
20231
20232 # func_lo2o object
20233 func_lo2o ()
20234 {
20235   case ${1} in
20236     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20237     *)    func_lo2o_result=${1} ;;
20238   esac
20239 }
20240
20241 # func_xform libobj-or-source
20242 func_xform ()
20243 {
20244   func_xform_result=${1%.*}.lo
20245 }
20246
20247 # func_arith arithmetic-term...
20248 func_arith ()
20249 {
20250   func_arith_result=$(( $* ))
20251 }
20252
20253 # func_len string
20254 # STRING may not start with a hyphen.
20255 func_len ()
20256 {
20257   func_len_result=${#1}
20258 }
20259
20260 _LT_EOF
20261     ;;
20262   *) # Bourne compatible functions.
20263     cat << \_LT_EOF >> "$cfgfile"
20264
20265 # func_dirname file append nondir_replacement
20266 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20267 # otherwise set result to NONDIR_REPLACEMENT.
20268 func_dirname ()
20269 {
20270   # Extract subdirectory from the argument.
20271   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20272   if test "X$func_dirname_result" = "X${1}"; then
20273     func_dirname_result="${3}"
20274   else
20275     func_dirname_result="$func_dirname_result${2}"
20276   fi
20277 }
20278
20279 # func_basename file
20280 func_basename ()
20281 {
20282   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20283 }
20284
20285
20286 # func_stripname prefix suffix name
20287 # strip PREFIX and SUFFIX off of NAME.
20288 # PREFIX and SUFFIX must not contain globbing or regex special
20289 # characters, hashes, percent signs, but SUFFIX may contain a leading
20290 # dot (in which case that matches only a dot).
20291 # func_strip_suffix prefix name
20292 func_stripname ()
20293 {
20294   case ${2} in
20295     .*) func_stripname_result=`$ECHO "X${3}" \
20296            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20297     *)  func_stripname_result=`$ECHO "X${3}" \
20298            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20299   esac
20300 }
20301
20302 # sed scripts:
20303 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20304 my_sed_long_arg='1s/^-[^=]*=//'
20305
20306 # func_opt_split
20307 func_opt_split ()
20308 {
20309   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20310   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20311 }
20312
20313 # func_lo2o object
20314 func_lo2o ()
20315 {
20316   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20317 }
20318
20319 # func_xform libobj-or-source
20320 func_xform ()
20321 {
20322   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20323 }
20324
20325 # func_arith arithmetic-term...
20326 func_arith ()
20327 {
20328   func_arith_result=`expr "$@"`
20329 }
20330
20331 # func_len string
20332 # STRING may not start with a hyphen.
20333 func_len ()
20334 {
20335   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20336 }
20337
20338 _LT_EOF
20339 esac
20340
20341 case $lt_shell_append in
20342   yes)
20343     cat << \_LT_EOF >> "$cfgfile"
20344
20345 # func_append var value
20346 # Append VALUE to the end of shell variable VAR.
20347 func_append ()
20348 {
20349   eval "$1+=\$2"
20350 }
20351 _LT_EOF
20352     ;;
20353   *)
20354     cat << \_LT_EOF >> "$cfgfile"
20355
20356 # func_append var value
20357 # Append VALUE to the end of shell variable VAR.
20358 func_append ()
20359 {
20360   eval "$1=\$$1\$2"
20361 }
20362
20363 _LT_EOF
20364     ;;
20365   esac
20366
20367
20368   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20369     || (rm -f "$cfgfile"; exit 1)
20370
20371   mv -f "$cfgfile" "$ofile" ||
20372     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20373   chmod +x "$ofile"
20374
20375  ;;
20376
20377   esac
20378 done # for ac_tag
20379
20380
20381 as_fn_exit 0
20382 _ACEOF
20383 ac_clean_files=$ac_clean_files_save
20384
20385 test $ac_write_fail = 0 ||
20386   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20387
20388
20389 # configure is writing to config.log, and then calls config.status.
20390 # config.status does its own redirection, appending to config.log.
20391 # Unfortunately, on DOS this fails, as config.log is still kept open
20392 # by configure, so config.status won't be able to write to it; its
20393 # output is simply discarded.  So we exec the FD to /dev/null,
20394 # effectively closing config.log, so it can be properly (re)opened and
20395 # appended to by config.status.  When coming back to configure, we
20396 # need to make the FD available again.
20397 if test "$no_create" != yes; then
20398   ac_cs_success=:
20399   ac_config_status_args=
20400   test "$silent" = yes &&
20401     ac_config_status_args="$ac_config_status_args --quiet"
20402   exec 5>/dev/null
20403   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20404   exec 5>>config.log
20405   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20406   # would make configure fail if this is the last instruction.
20407   $ac_cs_success || as_fn_exit $?
20408 fi
20409 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20410   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20411 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20412 fi
20413
20414
20415 if test "$with_pam" = "yes"; then
20416     case $host in
20417         *-*-linux*)
20418             { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
20419 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
20420             ;;
20421     esac
20422 fi
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509