Imported Upstream version 1.8.4p4
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sudo 1.8.4p4.
4 #
5 # Report bugs to <http://www.sudo.ws/bugs/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://www.sudo.ws/bugs/ about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='sudo'
572 PACKAGE_TARNAME='sudo'
573 PACKAGE_VERSION='1.8.4p4'
574 PACKAGE_STRING='sudo 1.8.4p4'
575 PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
576 PACKAGE_URL=''
577
578 ac_config_libobj_dir=compat
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='LTLIBOBJS
616 KRB5CONFIG
617 LIBOBJS
618 FLEX
619 YFLAGS
620 YACC
621 NROFFPROG
622 TRPROG
623 UNAMEPROG
624 OTOOL64
625 OTOOL
626 LIPO
627 NMEDIT
628 DSYMUTIL
629 MANIFEST_TOOL
630 AWK
631 STRIP
632 ac_ct_AR
633 DLLTOOL
634 OBJDUMP
635 LN_S
636 NM
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LD
640 FGREP
641 EGREP
642 GREP
643 SED
644 host_os
645 host_vendor
646 host_cpu
647 host
648 build_os
649 build_vendor
650 build_cpu
651 build
652 RANLIB
653 AR
654 CPP
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CC
659 editor
660 secure_path
661 netsvc_conf
662 nsswitch_conf
663 ldap_secret
664 ldap_conf
665 path_info
666 root_sudo
667 insults
668 tty_tickets
669 passwd_tries
670 env_reset
671 env_editor
672 runas_default
673 fqdn
674 badpass_message
675 mailsub
676 mailto
677 mail_no_perms
678 mail_no_host
679 mail_no_user
680 ignore_dot
681 loglen
682 badpri
683 goodpri
684 logfac
685 lecture
686 long_otp_prompt
687 passprompt
688 umask_override
689 sudo_umask
690 password_timeout
691 timeout
692 timedir
693 iolog_dir
694 COMPAT_TEST_PROGS
695 SUDO_NLS
696 LIBINTL
697 LT_STATIC
698 LIBDL
699 CONFIGURE_ARGS
700 ac_config_libobj_dir
701 LIBTOOL_DEPS
702 ZLIB_SRC
703 ZLIB
704 LOGINCAP_USAGE
705 LDAP
706 SELINUX_USAGE
707 BSDAUTH_USAGE
708 DONT_LEAK_PATH_INFO
709 INSTALL_NOEXEC
710 noexec_file
711 SOEXT
712 PLUGINDIR
713 NOEXECDIR
714 NOEXECFILE
715 mansrcdir
716 mansectform
717 mansectsu
718 devdir
719 SEMAN
720 LCMAN
721 BAMAN
722 DEVEL
723 SUDOERS_GID
724 SUDOERS_UID
725 SUDOERS_MODE
726 MAN_POSTINSTALL
727 MANTYPE
728 AUTH_OBJS
729 OSDEFS
730 GETGROUPS_LIB
731 REPLAY_LIBS
732 AFS_LIBS
733 NET_LIBS
734 SUDOERS_LIBS
735 SUDO_LIBS
736 SUDO_OBJS
737 SUDOERS_OBJS
738 COMMON_OBJS
739 LTLDFLAGS
740 SUDOERS_LDFLAGS
741 LDFLAGS
742 CPPFLAGS
743 PROGS
744 CFLAGS
745 LIBTOOL
746 HAVE_BSM_AUDIT
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 with_otp_only
789 with_alertmail
790 with_devel
791 with_CC
792 with_rpath
793 with_blibpath
794 with_bsm_audit
795 with_linux_audit
796 with_incpath
797 with_libpath
798 with_libraries
799 with_efence
800 with_csops
801 with_passwd
802 with_skey
803 with_opie
804 with_long_otp_prompt
805 with_SecurID
806 with_fwtk
807 with_kerb5
808 with_aixauth
809 with_pam
810 with_AFS
811 with_DCE
812 with_logincap
813 with_bsdauth
814 with_project
815 with_lecture
816 with_logging
817 with_logfac
818 with_goodpri
819 with_badpri
820 with_logpath
821 with_loglen
822 with_ignore_dot
823 with_mail_if_no_user
824 with_mail_if_no_host
825 with_mail_if_noperms
826 with_mailto
827 with_mailsubject
828 with_passprompt
829 with_badpass_message
830 with_fqdn
831 with_timedir
832 with_iologdir
833 with_sendmail
834 with_sudoers_mode
835 with_sudoers_uid
836 with_sudoers_gid
837 with_umask
838 with_umask_override
839 with_runas_default
840 with_exempt
841 with_editor
842 with_env_editor
843 with_passwd_tries
844 with_timeout
845 with_password_timeout
846 with_tty_tickets
847 with_insults
848 with_all_insults
849 with_classic_insults
850 with_csops_insults
851 with_hal_insults
852 with_goons_insults
853 with_nsswitch
854 with_ldap
855 with_ldap_conf_file
856 with_ldap_secret_file
857 with_pc_insults
858 with_secure_path
859 with_interfaces
860 with_stow
861 with_askpass
862 with_plugindir
863 enable_authentication
864 enable_root_mailer
865 enable_setreuid
866 enable_setresuid
867 enable_shadow
868 enable_root_sudo
869 enable_log_host
870 enable_noargs_shell
871 enable_shell_sets_home
872 enable_path_info
873 enable_env_debug
874 enable_zlib
875 enable_env_reset
876 enable_warnings
877 enable_werror
878 enable_admin_flag
879 enable_nls
880 with_selinux
881 enable_gss_krb5_ccache_name
882 enable_shared
883 enable_static
884 with_pic
885 enable_fast_install
886 with_gnu_ld
887 with_sysroot
888 enable_libtool_lock
889 with_noexec
890 with_netsvc
891 enable_sia
892 enable_largefile
893 with_pam_login
894 enable_pam_session
895 enable_kerb5_instance
896 '
897       ac_precious_vars='build_alias
898 host_alias
899 target_alias
900 CC
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
905 CPP
906 YACC
907 YFLAGS'
908
909
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 ac_unrecognized_opts=
914 ac_unrecognized_sep=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
917 cache_file=/dev/null
918 exec_prefix=NONE
919 no_create=
920 no_recursion=
921 prefix=NONE
922 program_prefix=NONE
923 program_suffix=NONE
924 program_transform_name=s,x,x,
925 silent=
926 site=
927 srcdir=
928 verbose=
929 x_includes=NONE
930 x_libraries=NONE
931
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir='${exec_prefix}/bin'
939 sbindir='${exec_prefix}/sbin'
940 libexecdir='${exec_prefix}/libexec'
941 datarootdir='${prefix}/share'
942 datadir='${datarootdir}'
943 sysconfdir='${prefix}/etc'
944 sharedstatedir='${prefix}/com'
945 localstatedir='${prefix}/var'
946 includedir='${prefix}/include'
947 oldincludedir='/usr/include'
948 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949 infodir='${datarootdir}/info'
950 htmldir='${docdir}'
951 dvidir='${docdir}'
952 pdfdir='${docdir}'
953 psdir='${docdir}'
954 libdir='${exec_prefix}/lib'
955 localedir='${datarootdir}/locale'
956 mandir='${datarootdir}/man'
957
958 ac_prev=
959 ac_dashdash=
960 for ac_option
961 do
962   # If the previous option needs an argument, assign it.
963   if test -n "$ac_prev"; then
964     eval $ac_prev=\$ac_option
965     ac_prev=
966     continue
967   fi
968
969   case $ac_option in
970   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971   *=)   ac_optarg= ;;
972   *)    ac_optarg=yes ;;
973   esac
974
975   # Accept the important Cygnus configure options, so we can diagnose typos.
976
977   case $ac_dashdash$ac_option in
978   --)
979     ac_dashdash=yes ;;
980
981   -bindir | --bindir | --bindi | --bind | --bin | --bi)
982     ac_prev=bindir ;;
983   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984     bindir=$ac_optarg ;;
985
986   -build | --build | --buil | --bui | --bu)
987     ac_prev=build_alias ;;
988   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989     build_alias=$ac_optarg ;;
990
991   -cache-file | --cache-file | --cache-fil | --cache-fi \
992   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993     ac_prev=cache_file ;;
994   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996     cache_file=$ac_optarg ;;
997
998   --config-cache | -C)
999     cache_file=config.cache ;;
1000
1001   -datadir | --datadir | --datadi | --datad)
1002     ac_prev=datadir ;;
1003   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004     datadir=$ac_optarg ;;
1005
1006   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007   | --dataroo | --dataro | --datar)
1008     ac_prev=datarootdir ;;
1009   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011     datarootdir=$ac_optarg ;;
1012
1013   -disable-* | --disable-*)
1014     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017       as_fn_error $? "invalid feature name: $ac_useropt"
1018     ac_useropt_orig=$ac_useropt
1019     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020     case $ac_user_opts in
1021       *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025          ac_unrecognized_sep=', ';;
1026     esac
1027     eval enable_$ac_useropt=no ;;
1028
1029   -docdir | --docdir | --docdi | --doc | --do)
1030     ac_prev=docdir ;;
1031   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032     docdir=$ac_optarg ;;
1033
1034   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035     ac_prev=dvidir ;;
1036   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037     dvidir=$ac_optarg ;;
1038
1039   -enable-* | --enable-*)
1040     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043       as_fn_error $? "invalid feature name: $ac_useropt"
1044     ac_useropt_orig=$ac_useropt
1045     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046     case $ac_user_opts in
1047       *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051          ac_unrecognized_sep=', ';;
1052     esac
1053     eval enable_$ac_useropt=\$ac_optarg ;;
1054
1055   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057   | --exec | --exe | --ex)
1058     ac_prev=exec_prefix ;;
1059   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061   | --exec=* | --exe=* | --ex=*)
1062     exec_prefix=$ac_optarg ;;
1063
1064   -gas | --gas | --ga | --g)
1065     # Obsolete; use --with-gas.
1066     with_gas=yes ;;
1067
1068   -help | --help | --hel | --he | -h)
1069     ac_init_help=long ;;
1070   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071     ac_init_help=recursive ;;
1072   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073     ac_init_help=short ;;
1074
1075   -host | --host | --hos | --ho)
1076     ac_prev=host_alias ;;
1077   -host=* | --host=* | --hos=* | --ho=*)
1078     host_alias=$ac_optarg ;;
1079
1080   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081     ac_prev=htmldir ;;
1082   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083   | --ht=*)
1084     htmldir=$ac_optarg ;;
1085
1086   -includedir | --includedir | --includedi | --included | --include \
1087   | --includ | --inclu | --incl | --inc)
1088     ac_prev=includedir ;;
1089   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090   | --includ=* | --inclu=* | --incl=* | --inc=*)
1091     includedir=$ac_optarg ;;
1092
1093   -infodir | --infodir | --infodi | --infod | --info | --inf)
1094     ac_prev=infodir ;;
1095   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096     infodir=$ac_optarg ;;
1097
1098   -libdir | --libdir | --libdi | --libd)
1099     ac_prev=libdir ;;
1100   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101     libdir=$ac_optarg ;;
1102
1103   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104   | --libexe | --libex | --libe)
1105     ac_prev=libexecdir ;;
1106   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107   | --libexe=* | --libex=* | --libe=*)
1108     libexecdir=$ac_optarg ;;
1109
1110   -localedir | --localedir | --localedi | --localed | --locale)
1111     ac_prev=localedir ;;
1112   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113     localedir=$ac_optarg ;;
1114
1115   -localstatedir | --localstatedir | --localstatedi | --localstated \
1116   | --localstate | --localstat | --localsta | --localst | --locals)
1117     ac_prev=localstatedir ;;
1118   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120     localstatedir=$ac_optarg ;;
1121
1122   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123     ac_prev=mandir ;;
1124   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125     mandir=$ac_optarg ;;
1126
1127   -nfp | --nfp | --nf)
1128     # Obsolete; use --without-fp.
1129     with_fp=no ;;
1130
1131   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132   | --no-cr | --no-c | -n)
1133     no_create=yes ;;
1134
1135   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137     no_recursion=yes ;;
1138
1139   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141   | --oldin | --oldi | --old | --ol | --o)
1142     ac_prev=oldincludedir ;;
1143   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146     oldincludedir=$ac_optarg ;;
1147
1148   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149     ac_prev=prefix ;;
1150   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151     prefix=$ac_optarg ;;
1152
1153   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154   | --program-pre | --program-pr | --program-p)
1155     ac_prev=program_prefix ;;
1156   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158     program_prefix=$ac_optarg ;;
1159
1160   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161   | --program-suf | --program-su | --program-s)
1162     ac_prev=program_suffix ;;
1163   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165     program_suffix=$ac_optarg ;;
1166
1167   -program-transform-name | --program-transform-name \
1168   | --program-transform-nam | --program-transform-na \
1169   | --program-transform-n | --program-transform- \
1170   | --program-transform | --program-transfor \
1171   | --program-transfo | --program-transf \
1172   | --program-trans | --program-tran \
1173   | --progr-tra | --program-tr | --program-t)
1174     ac_prev=program_transform_name ;;
1175   -program-transform-name=* | --program-transform-name=* \
1176   | --program-transform-nam=* | --program-transform-na=* \
1177   | --program-transform-n=* | --program-transform-=* \
1178   | --program-transform=* | --program-transfor=* \
1179   | --program-transfo=* | --program-transf=* \
1180   | --program-trans=* | --program-tran=* \
1181   | --progr-tra=* | --program-tr=* | --program-t=*)
1182     program_transform_name=$ac_optarg ;;
1183
1184   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185     ac_prev=pdfdir ;;
1186   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187     pdfdir=$ac_optarg ;;
1188
1189   -psdir | --psdir | --psdi | --psd | --ps)
1190     ac_prev=psdir ;;
1191   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192     psdir=$ac_optarg ;;
1193
1194   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195   | -silent | --silent | --silen | --sile | --sil)
1196     silent=yes ;;
1197
1198   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199     ac_prev=sbindir ;;
1200   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201   | --sbi=* | --sb=*)
1202     sbindir=$ac_optarg ;;
1203
1204   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206   | --sharedst | --shareds | --shared | --share | --shar \
1207   | --sha | --sh)
1208     ac_prev=sharedstatedir ;;
1209   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212   | --sha=* | --sh=*)
1213     sharedstatedir=$ac_optarg ;;
1214
1215   -site | --site | --sit)
1216     ac_prev=site ;;
1217   -site=* | --site=* | --sit=*)
1218     site=$ac_optarg ;;
1219
1220   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221     ac_prev=srcdir ;;
1222   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1223     srcdir=$ac_optarg ;;
1224
1225   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226   | --syscon | --sysco | --sysc | --sys | --sy)
1227     ac_prev=sysconfdir ;;
1228   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1230     sysconfdir=$ac_optarg ;;
1231
1232   -target | --target | --targe | --targ | --tar | --ta | --t)
1233     ac_prev=target_alias ;;
1234   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1235     target_alias=$ac_optarg ;;
1236
1237   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238     verbose=yes ;;
1239
1240   -version | --version | --versio | --versi | --vers | -V)
1241     ac_init_version=: ;;
1242
1243   -with-* | --with-*)
1244     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1245     # Reject names that are not valid shell variable names.
1246     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247       as_fn_error $? "invalid package name: $ac_useropt"
1248     ac_useropt_orig=$ac_useropt
1249     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250     case $ac_user_opts in
1251       *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255          ac_unrecognized_sep=', ';;
1256     esac
1257     eval with_$ac_useropt=\$ac_optarg ;;
1258
1259   -without-* | --without-*)
1260     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263       as_fn_error $? "invalid package name: $ac_useropt"
1264     ac_useropt_orig=$ac_useropt
1265     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266     case $ac_user_opts in
1267       *"
1268 "with_$ac_useropt"
1269 "*) ;;
1270       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271          ac_unrecognized_sep=', ';;
1272     esac
1273     eval with_$ac_useropt=no ;;
1274
1275   --x)
1276     # Obsolete; use --with-x.
1277     with_x=yes ;;
1278
1279   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280   | --x-incl | --x-inc | --x-in | --x-i)
1281     ac_prev=x_includes ;;
1282   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284     x_includes=$ac_optarg ;;
1285
1286   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288     ac_prev=x_libraries ;;
1289   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291     x_libraries=$ac_optarg ;;
1292
1293   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1294 Try \`$0 --help' for more information"
1295     ;;
1296
1297   *=*)
1298     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299     # Reject names that are not valid shell variable names.
1300     case $ac_envvar in #(
1301       '' | [0-9]* | *[!_$as_cr_alnum]* )
1302       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1303     esac
1304     eval $ac_envvar=\$ac_optarg
1305     export $ac_envvar ;;
1306
1307   *)
1308     # FIXME: should be removed in autoconf 3.0.
1309     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1313     ;;
1314
1315   esac
1316 done
1317
1318 if test -n "$ac_prev"; then
1319   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1320   as_fn_error $? "missing argument to $ac_option"
1321 fi
1322
1323 if test -n "$ac_unrecognized_opts"; then
1324   case $enable_option_checking in
1325     no) ;;
1326     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1327     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328   esac
1329 fi
1330
1331 # Check all directory arguments for consistency.
1332 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333                 datadir sysconfdir sharedstatedir localstatedir includedir \
1334                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335                 libdir localedir mandir
1336 do
1337   eval ac_val=\$$ac_var
1338   # Remove trailing slashes.
1339   case $ac_val in
1340     */ )
1341       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342       eval $ac_var=\$ac_val;;
1343   esac
1344   # Be sure to have absolute directory names.
1345   case $ac_val in
1346     [\\/$]* | ?:[\\/]* )  continue;;
1347     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348   esac
1349   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1350 done
1351
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1355 build=$build_alias
1356 host=$host_alias
1357 target=$target_alias
1358
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x; then
1361   if test "x$build_alias" = x; then
1362     cross_compiling=maybe
1363     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1364     If a cross compiler is detected then cross compile mode will be used" >&2
1365   elif test "x$build_alias" != "x$host_alias"; then
1366     cross_compiling=yes
1367   fi
1368 fi
1369
1370 ac_tool_prefix=
1371 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
1373 test "$silent" = yes && exec 6>/dev/null
1374
1375
1376 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377 ac_ls_di=`ls -di .` &&
1378 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1379   as_fn_error $? "working directory cannot be determined"
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381   as_fn_error $? "pwd does not report name of working directory"
1382
1383
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386   ac_srcdir_defaulted=yes
1387   # Try the directory containing this script, then the parent directory.
1388   ac_confdir=`$as_dirname -- "$as_myself" ||
1389 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390          X"$as_myself" : 'X\(//\)[^/]' \| \
1391          X"$as_myself" : 'X\(//\)$' \| \
1392          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393 $as_echo X"$as_myself" |
1394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395             s//\1/
1396             q
1397           }
1398           /^X\(\/\/\)[^/].*/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\/\)$/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\).*/{
1407             s//\1/
1408             q
1409           }
1410           s/.*/./; q'`
1411   srcdir=$ac_confdir
1412   if test ! -r "$srcdir/$ac_unique_file"; then
1413     srcdir=..
1414   fi
1415 else
1416   ac_srcdir_defaulted=no
1417 fi
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1421 fi
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 ac_abs_confdir=`(
1424         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1425         pwd)`
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428   srcdir=.
1429 fi
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1433 case $srcdir in
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 esac
1436 for ac_var in $ac_precious_vars; do
1437   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_env_${ac_var}_value=\$${ac_var}
1439   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 done
1442
1443 #
1444 # Report the --help message.
1445 #
1446 if test "$ac_init_help" = "long"; then
1447   # Omit some internal or obsolete options to make the list less imposing.
1448   # This message is too long to be a string in the A/UX 3.1 sh.
1449   cat <<_ACEOF
1450 \`configure' configures sudo 1.8.4p4 to adapt to many kinds of systems.
1451
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE.  See below for descriptions of some of the useful variables.
1456
1457 Defaults for the options are specified in brackets.
1458
1459 Configuration:
1460   -h, --help              display this help and exit
1461       --help=short        display options specific to this package
1462       --help=recursive    display the short help of all the included packages
1463   -V, --version           display version information and exit
1464   -q, --quiet, --silent   do not print \`checking ...' messages
1465       --cache-file=FILE   cache test results in FILE [disabled]
1466   -C, --config-cache      alias for \`--cache-file=config.cache'
1467   -n, --no-create         do not create output files
1468       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1469
1470 Installation directories:
1471   --prefix=PREFIX         install architecture-independent files in PREFIX
1472                           [$ac_default_prefix]
1473   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1474                           [PREFIX]
1475
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1480
1481 For better control, use the options below.
1482
1483 Fine tuning of the installation directories:
1484   --bindir=DIR            user executables [EPREFIX/bin]
1485   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1486   --libexecdir=DIR        program executables [EPREFIX/libexec]
1487   --sysconfdir=DIR        read-only single-machine data [/etc]
1488   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1489   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1490   --libdir=DIR            object code libraries [EPREFIX/lib]
1491   --includedir=DIR        C header files [PREFIX/include]
1492   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1493   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1494   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1495   --infodir=DIR           info documentation [DATAROOTDIR/info]
1496   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1497   --mandir=DIR            man documentation [DATAROOTDIR/man]
1498   --docdir=DIR            documentation root [DATAROOTDIR/doc/sudo]
1499   --htmldir=DIR           html documentation [DOCDIR]
1500   --dvidir=DIR            dvi documentation [DOCDIR]
1501   --pdfdir=DIR            pdf documentation [DOCDIR]
1502   --psdir=DIR             ps documentation [DOCDIR]
1503 _ACEOF
1504
1505   cat <<\_ACEOF
1506
1507 System types:
1508   --build=BUILD     configure for building on BUILD [guessed]
1509   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514   case $ac_init_help in
1515      short | recursive ) echo "Configuration of sudo 1.8.4p4:";;
1516    esac
1517   cat <<\_ACEOF
1518
1519 Optional Features:
1520   --disable-option-checking  ignore unrecognized --enable/--with options
1521   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523   --disable-authentication
1524                           Do not require authentication by default
1525   --disable-root-mailer   Don't run the mailer as root, run as the user
1526   --disable-setreuid      Don't try to use the setreuid() function
1527   --disable-setresuid     Don't try to use the setresuid() function
1528   --disable-shadow        Never use shadow passwords
1529   --disable-root-sudo     Don't allow root to run sudo
1530   --enable-log-host       Log the hostname in the log file
1531   --enable-noargs-shell   If sudo is given no arguments run a shell
1532   --enable-shell-sets-home
1533                           Set $HOME to target user in shell mode
1534   --disable-path-info     Print 'command not allowed' not 'command not found'
1535   --enable-env-debug      Whether to enable environment debugging.
1536   --enable-zlib[=PATH]    Whether to enable or disable zlib
1537   --enable-env-reset      Whether to enable environment resetting by default.
1538   --enable-warnings       Whether to enable compiler warnings
1539   --enable-werror         Whether to enable the -Werror compiler option
1540   --enable-admin-flag     Whether to create a Ubuntu-style admin flag file
1541   --disable-nls           Disable natural language support using gettext
1542   --enable-gss-krb5-ccache-name
1543                           Use GSS-API to set the Kerberos V cred cache name
1544   --enable-shared[=PKGS]  build shared libraries [default=yes]
1545   --enable-static[=PKGS]  build static libraries [default=yes]
1546   --enable-fast-install[=PKGS]
1547                           optimize for fast installation [default=yes]
1548   --disable-libtool-lock  avoid locking (might break parallel builds)
1549   --disable-sia           Disable SIA on Digital UNIX
1550   --disable-largefile     omit support for large files
1551   --disable-pam-session   Disable PAM session support
1552   --enable-kerb5-instance instance string to append to the username (separated
1553                           by a slash)
1554
1555 Optional Packages:
1556   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1557   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1558   --with-otp-only         deprecated
1559   --with-alertmail        deprecated
1560   --with-devel            add development options
1561   --with-CC               C compiler to use
1562   --with-rpath            pass -R flag in addition to -L for lib paths
1563   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1564   --with-bsm-audit        enable BSM audit support
1565   --with-linux-audit      enable Linux audit support
1566   --with-incpath          additional places to look for include files
1567   --with-libpath          additional places to look for libraries
1568   --with-libraries        additional libraries to link with
1569   --with-efence           link with -lefence for malloc() debugging
1570   --with-csops            add CSOps standard options
1571   --without-passwd        don't use passwd/shadow file for authentication
1572   --with-skey=DIR         enable S/Key support
1573   --with-opie=DIR         enable OPIE support
1574   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1575   --with-SecurID[=DIR]    enable SecurID support
1576   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1577   --with-kerb5[=DIR]      enable Kerberos V support
1578   --with-aixauth          enable AIX general authentication support
1579   --with-pam              enable PAM support
1580   --with-AFS              enable AFS support
1581   --with-DCE              enable DCE support
1582   --with-logincap         enable BSD login class support
1583   --with-bsdauth          enable BSD authentication support
1584   --with-project          enable Solaris project support
1585   --without-lecture       don't print lecture for first-time sudoer
1586   --with-logging          log via syslog, file, or both
1587   --with-logfac           syslog facility to log with (default is "auth")
1588   --with-goodpri          syslog priority for commands (def is "notice")
1589   --with-badpri           syslog priority for failures (def is "alert")
1590   --with-logpath          path to the sudo log file
1591   --with-loglen           maximum length of a log file line (default is 80)
1592   --with-ignore-dot       ignore '.' in the PATH
1593   --without-mail-if-no-user
1594                           do not send mail if user not in sudoers
1595   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1596   --with-mail-if-noperms  send mail if user not allowed to run command
1597   --with-mailto           who should get sudo mail (default is "root")
1598   --with-mailsubject      subject of sudo mail
1599   --with-passprompt       default password prompt
1600   --with-badpass-message  message the user sees when the password is wrong
1601   --with-fqdn             expect fully qualified hosts in sudoers
1602   --with-timedir          path to the sudo timestamp dir
1603   --with-iologdir=DIR     directory to store sudo I/O log files in
1604   --with-sendmail         set path to sendmail
1605   --without-sendmail      do not send mail at all
1606   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1607   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1608   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1609   --with-umask            umask with which the prog should run (default is
1610                           022)
1611   --without-umask         Preserves the umask of the user invoking sudo.
1612   --with-umask-override   Use the umask specified in sudoers even if it is
1613                           less restrictive than the user's.
1614   --with-runas-default    User to run commands as (default is "root")
1615   --with-exempt=group     no passwd needed for users in this group
1616   --with-editor=path      Default editor for visudo (defaults to vi)
1617   --with-env-editor       Use the environment variable EDITOR for visudo
1618   --with-passwd-tries     number of tries to enter password (default is 3)
1619   --with-timeout          minutes before sudo asks for passwd again (def is 5
1620                           minutes)
1621   --with-password-timeout passwd prompt timeout in minutes (default is 5
1622                           minutes)
1623   --with-tty-tickets      use a different ticket file for each tty
1624   --with-insults          insult the user for entering an incorrect password
1625   --with-all-insults      include all the sudo insult sets
1626   --with-classic-insults  include the insults from the "classic" sudo
1627   --with-csops-insults    include CSOps insults
1628   --with-hal-insults      include 2001-like insults
1629   --with-goons-insults    include the insults from the "Goon Show"
1630   --with-nsswitch[=PATH]  path to nsswitch.conf
1631   --with-ldap[=DIR]       enable LDAP support
1632   --with-ldap-conf-file   path to LDAP configuration file
1633   --with-ldap-secret-file path to LDAP secret password file
1634   --with-pc-insults       replace politically incorrect insults with less
1635                           offensive ones
1636   --with-secure-path      override the user's path with a built-in one
1637   --without-interfaces    don't try to read the ip addr of ether interfaces
1638   --with-stow             properly handle GNU stow packaging
1639   --with-askpass=PATH     Fully qualified pathname of askpass helper
1640   --with-plugindir        set directory to load plugins from
1641   --with-selinux          enable SELinux support
1642   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1643                           both]
1644   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1645   --with-sysroot=DIR Search for dependent libraries within DIR
1646                         (or the compiler's sysroot if not specified).
1647   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1648   --with-netsvc[=PATH]    path to netsvc.conf
1649   --with-pam-login        enable specific PAM session for sudo -i
1650
1651 Some influential environment variables:
1652   CC          C compiler command
1653   CFLAGS      C compiler flags
1654   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1655               nonstandard directory <lib dir>
1656   LIBS        libraries to pass to the linker, e.g. -l<library>
1657   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1658               you have headers in a nonstandard directory <include dir>
1659   CPP         C preprocessor
1660   YACC        The `Yet Another Compiler Compiler' implementation to use.
1661               Defaults to the first program found out of: `bison -y', `byacc',
1662               `yacc'.
1663   YFLAGS      The list of arguments that will be passed by default to $YACC.
1664               This script will default YFLAGS to the empty string to avoid a
1665               default value of `-d' given by some make applications.
1666
1667 Use these variables to override the choices made by `configure' or to help
1668 it to find libraries and programs with nonstandard names/locations.
1669
1670 Report bugs to <http://www.sudo.ws/bugs/>.
1671 _ACEOF
1672 ac_status=$?
1673 fi
1674
1675 if test "$ac_init_help" = "recursive"; then
1676   # If there are subdirs, report their specific --help.
1677   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1678     test -d "$ac_dir" ||
1679       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1680       continue
1681     ac_builddir=.
1682
1683 case "$ac_dir" in
1684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685 *)
1686   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1687   # A ".." for each directory in $ac_dir_suffix.
1688   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1689   case $ac_top_builddir_sub in
1690   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1692   esac ;;
1693 esac
1694 ac_abs_top_builddir=$ac_pwd
1695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1696 # for backward compatibility:
1697 ac_top_builddir=$ac_top_build_prefix
1698
1699 case $srcdir in
1700   .)  # We are building in place.
1701     ac_srcdir=.
1702     ac_top_srcdir=$ac_top_builddir_sub
1703     ac_abs_top_srcdir=$ac_pwd ;;
1704   [\\/]* | ?:[\\/]* )  # Absolute name.
1705     ac_srcdir=$srcdir$ac_dir_suffix;
1706     ac_top_srcdir=$srcdir
1707     ac_abs_top_srcdir=$srcdir ;;
1708   *) # Relative name.
1709     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1710     ac_top_srcdir=$ac_top_build_prefix$srcdir
1711     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1712 esac
1713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1714
1715     cd "$ac_dir" || { ac_status=$?; continue; }
1716     # Check for guested configure.
1717     if test -f "$ac_srcdir/configure.gnu"; then
1718       echo &&
1719       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1720     elif test -f "$ac_srcdir/configure"; then
1721       echo &&
1722       $SHELL "$ac_srcdir/configure" --help=recursive
1723     else
1724       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1725     fi || ac_status=$?
1726     cd "$ac_pwd" || { ac_status=$?; break; }
1727   done
1728 fi
1729
1730 test -n "$ac_init_help" && exit $ac_status
1731 if $ac_init_version; then
1732   cat <<\_ACEOF
1733 sudo configure 1.8.4p4
1734 generated by GNU Autoconf 2.68
1735
1736 Copyright (C) 2010 Free Software Foundation, Inc.
1737 This configure script is free software; the Free Software Foundation
1738 gives unlimited permission to copy, distribute and modify it.
1739 _ACEOF
1740   exit
1741 fi
1742
1743 ## ------------------------ ##
1744 ## Autoconf initialization. ##
1745 ## ------------------------ ##
1746
1747 # ac_fn_c_try_compile LINENO
1748 # --------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_compile ()
1751 {
1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753   rm -f conftest.$ac_objext
1754   if { { ac_try="$ac_compile"
1755 case "(($ac_try" in
1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757   *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761   (eval "$ac_compile") 2>conftest.err
1762   ac_status=$?
1763   if test -s conftest.err; then
1764     grep -v '^ *+' conftest.err >conftest.er1
1765     cat conftest.er1 >&5
1766     mv -f conftest.er1 conftest.err
1767   fi
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } && {
1770          test -z "$ac_c_werror_flag" ||
1771          test ! -s conftest.err
1772        } && test -s conftest.$ac_objext; then :
1773   ac_retval=0
1774 else
1775   $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778         ac_retval=1
1779 fi
1780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781   as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_compile
1784
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_link ()
1789 {
1790   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791   rm -f conftest.$ac_objext conftest$ac_exeext
1792   if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799   (eval "$ac_link") 2>conftest.err
1800   ac_status=$?
1801   if test -s conftest.err; then
1802     grep -v '^ *+' conftest.err >conftest.er1
1803     cat conftest.er1 >&5
1804     mv -f conftest.er1 conftest.err
1805   fi
1806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807   test $ac_status = 0; } && {
1808          test -z "$ac_c_werror_flag" ||
1809          test ! -s conftest.err
1810        } && test -s conftest$ac_exeext && {
1811          test "$cross_compiling" = yes ||
1812          $as_test_x conftest$ac_exeext
1813        }; then :
1814   ac_retval=0
1815 else
1816   $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819         ac_retval=1
1820 fi
1821   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823   # interfere with the next link command; also delete a directory that is
1824   # left behind by Apple's compiler.  We do this before executing the actions.
1825   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827   as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_link
1830
1831 # ac_fn_c_try_cpp LINENO
1832 # ----------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_cpp ()
1835 {
1836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837   if { { ac_try="$ac_cpp conftest.$ac_ext"
1838 case "(($ac_try" in
1839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840   *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1845   ac_status=$?
1846   if test -s conftest.err; then
1847     grep -v '^ *+' conftest.err >conftest.er1
1848     cat conftest.er1 >&5
1849     mv -f conftest.er1 conftest.err
1850   fi
1851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852   test $ac_status = 0; } > conftest.i && {
1853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1854          test ! -s conftest.err
1855        }; then :
1856   ac_retval=0
1857 else
1858   $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861     ac_retval=1
1862 fi
1863   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864   as_fn_set_status $ac_retval
1865
1866 } # ac_fn_c_try_cpp
1867
1868 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1869 # -------------------------------------------------------
1870 # Tests whether HEADER exists and can be compiled using the include files in
1871 # INCLUDES, setting the cache variable VAR accordingly.
1872 ac_fn_c_check_header_compile ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878   $as_echo_n "(cached) " >&6
1879 else
1880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 $4
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886   eval "$3=yes"
1887 else
1888   eval "$3=no"
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 fi
1892 eval ac_res=\$$3
1893                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897 } # ac_fn_c_check_header_compile
1898
1899 # ac_fn_c_try_run LINENO
1900 # ----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1902 # that executables *can* be run.
1903 ac_fn_c_try_run ()
1904 {
1905   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906   if { { ac_try="$ac_link"
1907 case "(($ac_try" in
1908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909   *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913   (eval "$ac_link") 2>&5
1914   ac_status=$?
1915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1917   { { case "(($ac_try" in
1918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919   *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923   (eval "$ac_try") 2>&5
1924   ac_status=$?
1925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926   test $ac_status = 0; }; }; then :
1927   ac_retval=0
1928 else
1929   $as_echo "$as_me: program exited with status $ac_status" >&5
1930        $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933        ac_retval=$ac_status
1934 fi
1935   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937   as_fn_set_status $ac_retval
1938
1939 } # ac_fn_c_try_run
1940
1941 # ac_fn_c_check_func LINENO FUNC VAR
1942 # ----------------------------------
1943 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1944 ac_fn_c_check_func ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950   $as_echo_n "(cached) " >&6
1951 else
1952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h.  */
1954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1956 #define $2 innocuous_$2
1957
1958 /* System header to define __stub macros and hopefully few prototypes,
1959     which can conflict with char $2 (); below.
1960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1961     <limits.h> exists even on freestanding compilers.  */
1962
1963 #ifdef __STDC__
1964 # include <limits.h>
1965 #else
1966 # include <assert.h>
1967 #endif
1968
1969 #undef $2
1970
1971 /* Override any GCC internal prototype to avoid an error.
1972    Use char because int might match the return type of a GCC
1973    builtin and then its argument prototype would still apply.  */
1974 #ifdef __cplusplus
1975 extern "C"
1976 #endif
1977 char $2 ();
1978 /* The GNU C library defines this for functions which it implements
1979     to always fail with ENOSYS.  Some functions are actually named
1980     something starting with __ and the normal name is an alias.  */
1981 #if defined __stub_$2 || defined __stub___$2
1982 choke me
1983 #endif
1984
1985 int
1986 main ()
1987 {
1988 return $2 ();
1989   ;
1990   return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_link "$LINENO"; then :
1994   eval "$3=yes"
1995 else
1996   eval "$3=no"
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext \
1999     conftest$ac_exeext conftest.$ac_ext
2000 fi
2001 eval ac_res=\$$3
2002                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006 } # ac_fn_c_check_func
2007
2008 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009 # -------------------------------------------
2010 # Tests whether TYPE exists after having included INCLUDES, setting cache
2011 # variable VAR accordingly.
2012 ac_fn_c_check_type ()
2013 {
2014   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018   $as_echo_n "(cached) " >&6
2019 else
2020   eval "$3=no"
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 int
2025 main ()
2026 {
2027 if (sizeof ($2))
2028          return 0;
2029   ;
2030   return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $4
2037 int
2038 main ()
2039 {
2040 if (sizeof (($2)))
2041             return 0;
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047
2048 else
2049   eval "$3=yes"
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 fi
2055 eval ac_res=\$$3
2056                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060 } # ac_fn_c_check_type
2061
2062 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063 # -------------------------------------------------------
2064 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065 # the include files in INCLUDES and setting the cache variable VAR
2066 # accordingly.
2067 ac_fn_c_check_header_mongrel ()
2068 {
2069   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070   if eval \${$3+:} false; then :
2071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074   $as_echo_n "(cached) " >&6
2075 fi
2076 eval ac_res=\$$3
2077                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 else
2080   # Is the header compilable?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082 $as_echo_n "checking $2 usability... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h.  */
2085 $4
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089   ac_header_compiler=yes
2090 else
2091   ac_header_compiler=no
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095 $as_echo "$ac_header_compiler" >&6; }
2096
2097 # Is the header present?
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099 $as_echo_n "checking $2 presence... " >&6; }
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h.  */
2102 #include <$2>
2103 _ACEOF
2104 if ac_fn_c_try_cpp "$LINENO"; then :
2105   ac_header_preproc=yes
2106 else
2107   ac_header_preproc=no
2108 fi
2109 rm -f conftest.err conftest.i conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111 $as_echo "$ac_header_preproc" >&6; }
2112
2113 # So?  What about this header?
2114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2115   yes:no: )
2116     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120     ;;
2121   no:yes:* )
2122     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2125 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2126     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2129 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2130     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132 ( $as_echo "## --------------------------------------- ##
2133 ## Report this to http://www.sudo.ws/bugs/ ##
2134 ## --------------------------------------- ##"
2135      ) | sed "s/^/$as_me: WARNING:     /" >&2
2136     ;;
2137 esac
2138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \${$3+:} false; then :
2141   $as_echo_n "(cached) " >&6
2142 else
2143   eval "$3=\$ac_header_compiler"
2144 fi
2145 eval ac_res=\$$3
2146                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148 fi
2149   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150
2151 } # ac_fn_c_check_header_mongrel
2152
2153 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2154 # --------------------------------------------
2155 # Tries to find the compile-time value of EXPR in a program that includes
2156 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2157 # computed
2158 ac_fn_c_compute_int ()
2159 {
2160   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161   if test "$cross_compiling" = yes; then
2162     # Depending upon the size, compute the lo and hi bounds.
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h.  */
2165 $4
2166 int
2167 main ()
2168 {
2169 static int test_array [1 - 2 * !(($2) >= 0)];
2170 test_array [0] = 0
2171
2172   ;
2173   return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177   ac_lo=0 ac_mid=0
2178   while :; do
2179     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h.  */
2181 $4
2182 int
2183 main ()
2184 {
2185 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2186 test_array [0] = 0
2187
2188   ;
2189   return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193   ac_hi=$ac_mid; break
2194 else
2195   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2196                         if test $ac_lo -le $ac_mid; then
2197                           ac_lo= ac_hi=
2198                           break
2199                         fi
2200                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2201 fi
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203   done
2204 else
2205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h.  */
2207 $4
2208 int
2209 main ()
2210 {
2211 static int test_array [1 - 2 * !(($2) < 0)];
2212 test_array [0] = 0
2213
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219   ac_hi=-1 ac_mid=-1
2220   while :; do
2221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2223 $4
2224 int
2225 main ()
2226 {
2227 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2228 test_array [0] = 0
2229
2230   ;
2231   return 0;
2232 }
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235   ac_lo=$ac_mid; break
2236 else
2237   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2238                         if test $ac_mid -le $ac_hi; then
2239                           ac_lo= ac_hi=
2240                           break
2241                         fi
2242                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245   done
2246 else
2247   ac_lo= ac_hi=
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 # Binary search between lo and hi bounds.
2253 while test "x$ac_lo" != "x$ac_hi"; do
2254   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h.  */
2257 $4
2258 int
2259 main ()
2260 {
2261 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2262 test_array [0] = 0
2263
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_c_try_compile "$LINENO"; then :
2269   ac_hi=$ac_mid
2270 else
2271   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 done
2275 case $ac_lo in #((
2276 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2277 '') ac_retval=1 ;;
2278 esac
2279   else
2280     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h.  */
2282 $4
2283 static long int longval () { return $2; }
2284 static unsigned long int ulongval () { return $2; }
2285 #include <stdio.h>
2286 #include <stdlib.h>
2287 int
2288 main ()
2289 {
2290
2291   FILE *f = fopen ("conftest.val", "w");
2292   if (! f)
2293     return 1;
2294   if (($2) < 0)
2295     {
2296       long int i = longval ();
2297       if (i != ($2))
2298         return 1;
2299       fprintf (f, "%ld", i);
2300     }
2301   else
2302     {
2303       unsigned long int i = ulongval ();
2304       if (i != ($2))
2305         return 1;
2306       fprintf (f, "%lu", i);
2307     }
2308   /* Do not output a trailing newline, as this causes \r\n confusion
2309      on some platforms.  */
2310   return ferror (f) || fclose (f) != 0;
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_run "$LINENO"; then :
2317   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2318 else
2319   ac_retval=1
2320 fi
2321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2322   conftest.$ac_objext conftest.beam conftest.$ac_ext
2323 rm -f conftest.val
2324
2325   fi
2326   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327   as_fn_set_status $ac_retval
2328
2329 } # ac_fn_c_compute_int
2330
2331 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2332 # ----------------------------------------------------
2333 # Tries to find if the field MEMBER exists in type AGGR, after including
2334 # INCLUDES, setting cache variable VAR accordingly.
2335 ac_fn_c_check_member ()
2336 {
2337   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2339 $as_echo_n "checking for $2.$3... " >&6; }
2340 if eval \${$4+:} false; then :
2341   $as_echo_n "(cached) " >&6
2342 else
2343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h.  */
2345 $5
2346 int
2347 main ()
2348 {
2349 static $2 ac_aggr;
2350 if (ac_aggr.$3)
2351 return 0;
2352   ;
2353   return 0;
2354 }
2355 _ACEOF
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357   eval "$4=yes"
2358 else
2359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h.  */
2361 $5
2362 int
2363 main ()
2364 {
2365 static $2 ac_aggr;
2366 if (sizeof ac_aggr.$3)
2367 return 0;
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373   eval "$4=yes"
2374 else
2375   eval "$4=no"
2376 fi
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 fi
2381 eval ac_res=\$$4
2382                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2385
2386 } # ac_fn_c_check_member
2387
2388 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2389 # ---------------------------------------------
2390 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2391 # accordingly.
2392 ac_fn_c_check_decl ()
2393 {
2394   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395   as_decl_name=`echo $2|sed 's/ *(.*//'`
2396   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2398 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2399 if eval \${$3+:} false; then :
2400   $as_echo_n "(cached) " >&6
2401 else
2402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h.  */
2404 $4
2405 int
2406 main ()
2407 {
2408 #ifndef $as_decl_name
2409 #ifdef __cplusplus
2410   (void) $as_decl_use;
2411 #else
2412   (void) $as_decl_name;
2413 #endif
2414 #endif
2415
2416   ;
2417   return 0;
2418 }
2419 _ACEOF
2420 if ac_fn_c_try_compile "$LINENO"; then :
2421   eval "$3=yes"
2422 else
2423   eval "$3=no"
2424 fi
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 fi
2427 eval ac_res=\$$3
2428                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2431
2432 } # ac_fn_c_check_decl
2433 cat >config.log <<_ACEOF
2434 This file contains any messages produced by compilers while
2435 running configure, to aid debugging if configure makes a mistake.
2436
2437 It was created by sudo $as_me 1.8.4p4, which was
2438 generated by GNU Autoconf 2.68.  Invocation command line was
2439
2440   $ $0 $@
2441
2442 _ACEOF
2443 exec 5>>config.log
2444 {
2445 cat <<_ASUNAME
2446 ## --------- ##
2447 ## Platform. ##
2448 ## --------- ##
2449
2450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2455
2456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2457 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2458
2459 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2460 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2462 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2463 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2464 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2465 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2466
2467 _ASUNAME
2468
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474     $as_echo "PATH: $as_dir"
2475   done
2476 IFS=$as_save_IFS
2477
2478 } >&5
2479
2480 cat >&5 <<_ACEOF
2481
2482
2483 ## ----------- ##
2484 ## Core tests. ##
2485 ## ----------- ##
2486
2487 _ACEOF
2488
2489
2490 # Keep a trace of the command line.
2491 # Strip out --no-create and --no-recursion so they do not pile up.
2492 # Strip out --silent because we don't want to record it for future runs.
2493 # Also quote any args containing shell meta-characters.
2494 # Make two passes to allow for proper duplicate-argument suppression.
2495 ac_configure_args=
2496 ac_configure_args0=
2497 ac_configure_args1=
2498 ac_must_keep_next=false
2499 for ac_pass in 1 2
2500 do
2501   for ac_arg
2502   do
2503     case $ac_arg in
2504     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2505     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2506     | -silent | --silent | --silen | --sile | --sil)
2507       continue ;;
2508     *\'*)
2509       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2510     esac
2511     case $ac_pass in
2512     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2513     2)
2514       as_fn_append ac_configure_args1 " '$ac_arg'"
2515       if test $ac_must_keep_next = true; then
2516         ac_must_keep_next=false # Got value, back to normal.
2517       else
2518         case $ac_arg in
2519           *=* | --config-cache | -C | -disable-* | --disable-* \
2520           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2521           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2522           | -with-* | --with-* | -without-* | --without-* | --x)
2523             case "$ac_configure_args0 " in
2524               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2525             esac
2526             ;;
2527           -* ) ac_must_keep_next=true ;;
2528         esac
2529       fi
2530       as_fn_append ac_configure_args " '$ac_arg'"
2531       ;;
2532     esac
2533   done
2534 done
2535 { ac_configure_args0=; unset ac_configure_args0;}
2536 { ac_configure_args1=; unset ac_configure_args1;}
2537
2538 # When interrupted or exit'd, cleanup temporary files, and complete
2539 # config.log.  We remove comments because anyway the quotes in there
2540 # would cause problems or look ugly.
2541 # WARNING: Use '\'' to represent an apostrophe within the trap.
2542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2543 trap 'exit_status=$?
2544   # Save into config.log some information that might help in debugging.
2545   {
2546     echo
2547
2548     $as_echo "## ---------------- ##
2549 ## Cache variables. ##
2550 ## ---------------- ##"
2551     echo
2552     # The following way of writing the cache mishandles newlines in values,
2553 (
2554   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2555     eval ac_val=\$$ac_var
2556     case $ac_val in #(
2557     *${as_nl}*)
2558       case $ac_var in #(
2559       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2561       esac
2562       case $ac_var in #(
2563       _ | IFS | as_nl) ;; #(
2564       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2565       *) { eval $ac_var=; unset $ac_var;} ;;
2566       esac ;;
2567     esac
2568   done
2569   (set) 2>&1 |
2570     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2571     *${as_nl}ac_space=\ *)
2572       sed -n \
2573         "s/'\''/'\''\\\\'\'''\''/g;
2574           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2575       ;; #(
2576     *)
2577       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2578       ;;
2579     esac |
2580     sort
2581 )
2582     echo
2583
2584     $as_echo "## ----------------- ##
2585 ## Output variables. ##
2586 ## ----------------- ##"
2587     echo
2588     for ac_var in $ac_subst_vars
2589     do
2590       eval ac_val=\$$ac_var
2591       case $ac_val in
2592       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2593       esac
2594       $as_echo "$ac_var='\''$ac_val'\''"
2595     done | sort
2596     echo
2597
2598     if test -n "$ac_subst_files"; then
2599       $as_echo "## ------------------- ##
2600 ## File substitutions. ##
2601 ## ------------------- ##"
2602       echo
2603       for ac_var in $ac_subst_files
2604       do
2605         eval ac_val=\$$ac_var
2606         case $ac_val in
2607         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2608         esac
2609         $as_echo "$ac_var='\''$ac_val'\''"
2610       done | sort
2611       echo
2612     fi
2613
2614     if test -s confdefs.h; then
2615       $as_echo "## ----------- ##
2616 ## confdefs.h. ##
2617 ## ----------- ##"
2618       echo
2619       cat confdefs.h
2620       echo
2621     fi
2622     test "$ac_signal" != 0 &&
2623       $as_echo "$as_me: caught signal $ac_signal"
2624     $as_echo "$as_me: exit $exit_status"
2625   } >&5
2626   rm -f core *.core core.conftest.* &&
2627     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2628     exit $exit_status
2629 ' 0
2630 for ac_signal in 1 2 13 15; do
2631   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2632 done
2633 ac_signal=0
2634
2635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2636 rm -f -r conftest* confdefs.h
2637
2638 $as_echo "/* confdefs.h */" > confdefs.h
2639
2640 # Predefined preprocessor variables.
2641
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_NAME "$PACKAGE_NAME"
2644 _ACEOF
2645
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2648 _ACEOF
2649
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2652 _ACEOF
2653
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_STRING "$PACKAGE_STRING"
2656 _ACEOF
2657
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2660 _ACEOF
2661
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_URL "$PACKAGE_URL"
2664 _ACEOF
2665
2666
2667 # Let the site file select an alternate cache file if it wants to.
2668 # Prefer an explicitly selected file to automatically selected ones.
2669 ac_site_file1=NONE
2670 ac_site_file2=NONE
2671 if test -n "$CONFIG_SITE"; then
2672   # We do not want a PATH search for config.site.
2673   case $CONFIG_SITE in #((
2674     -*)  ac_site_file1=./$CONFIG_SITE;;
2675     */*) ac_site_file1=$CONFIG_SITE;;
2676     *)   ac_site_file1=./$CONFIG_SITE;;
2677   esac
2678 elif test "x$prefix" != xNONE; then
2679   ac_site_file1=$prefix/share/config.site
2680   ac_site_file2=$prefix/etc/config.site
2681 else
2682   ac_site_file1=$ac_default_prefix/share/config.site
2683   ac_site_file2=$ac_default_prefix/etc/config.site
2684 fi
2685 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2686 do
2687   test "x$ac_site_file" = xNONE && continue
2688   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2689     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2690 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2691     sed 's/^/| /' "$ac_site_file" >&5
2692     . "$ac_site_file" \
2693       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 as_fn_error $? "failed to load site script $ac_site_file
2696 See \`config.log' for more details" "$LINENO" 5; }
2697   fi
2698 done
2699
2700 if test -r "$cache_file"; then
2701   # Some versions of bash will fail to source /dev/null (special files
2702   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2703   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2704     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2705 $as_echo "$as_me: loading cache $cache_file" >&6;}
2706     case $cache_file in
2707       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2708       *)                      . "./$cache_file";;
2709     esac
2710   fi
2711 else
2712   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2713 $as_echo "$as_me: creating cache $cache_file" >&6;}
2714   >$cache_file
2715 fi
2716
2717 # Check that the precious variables saved in the cache have kept the same
2718 # value.
2719 ac_cache_corrupted=false
2720 for ac_var in $ac_precious_vars; do
2721   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2722   eval ac_new_set=\$ac_env_${ac_var}_set
2723   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2724   eval ac_new_val=\$ac_env_${ac_var}_value
2725   case $ac_old_set,$ac_new_set in
2726     set,)
2727       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2728 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2729       ac_cache_corrupted=: ;;
2730     ,set)
2731       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2732 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2733       ac_cache_corrupted=: ;;
2734     ,);;
2735     *)
2736       if test "x$ac_old_val" != "x$ac_new_val"; then
2737         # differences in whitespace do not lead to failure.
2738         ac_old_val_w=`echo x $ac_old_val`
2739         ac_new_val_w=`echo x $ac_new_val`
2740         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2741           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2742 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2743           ac_cache_corrupted=:
2744         else
2745           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2746 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2747           eval $ac_var=\$ac_old_val
2748         fi
2749         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2750 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2751         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2752 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2753       fi;;
2754   esac
2755   # Pass precious variables to config.status.
2756   if test "$ac_new_set" = set; then
2757     case $ac_new_val in
2758     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2759     *) ac_arg=$ac_var=$ac_new_val ;;
2760     esac
2761     case " $ac_configure_args " in
2762       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2763       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2764     esac
2765   fi
2766 done
2767 if $ac_cache_corrupted; then
2768   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2771 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2772   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2773 fi
2774 ## -------------------- ##
2775 ## Main body of script. ##
2776 ## -------------------- ##
2777
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783
2784
2785 ac_config_headers="$ac_config_headers config.h pathnames.h"
2786
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2788 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877 #
2878 # Begin initial values for man page substitution
2879 #
2880 iolog_dir=/var/log/sudo-io
2881 timedir=/var/adm/sudo
2882 timeout=5
2883 password_timeout=5
2884 sudo_umask=0022
2885 umask_override=off
2886 passprompt="Password:"
2887 long_otp_prompt=off
2888 lecture=once
2889 logfac=auth
2890 goodpri=notice
2891 badpri=alert
2892 loglen=80
2893 ignore_dot=off
2894 mail_no_user=on
2895 mail_no_host=off
2896 mail_no_perms=off
2897 mailto=root
2898 mailsub="*** SECURITY information for %h ***"
2899 badpass_message="Sorry, try again."
2900 fqdn=off
2901 runas_default=root
2902 env_editor=off
2903 env_reset=on
2904 editor=vi
2905 passwd_tries=3
2906 tty_tickets=on
2907 insults=off
2908 root_sudo=on
2909 path_info=on
2910 ldap_conf=/etc/ldap.conf
2911 ldap_secret=/etc/ldap.secret
2912 netsvc_conf=/etc/netsvc.conf
2913 noexec_file=/usr/local/libexec/sudo_noexec.so
2914 nsswitch_conf=/etc/nsswitch.conf
2915 secure_path="not set"
2916 #
2917 # End initial values for man page substitution
2918 #
2919 INSTALL_NOEXEC=
2920 devdir='$(srcdir)'
2921 PROGS="sudo"
2922 : ${MANTYPE='man'}
2923 : ${mansrcdir='.'}
2924 : ${SUDOERS_MODE='0440'}
2925 : ${SUDOERS_UID='0'}
2926 : ${SUDOERS_GID='0'}
2927 DEVEL=
2928 LDAP="#"
2929 BAMAN=0
2930 LCMAN=0
2931 SEMAN=0
2932 LIBINTL=
2933 ZLIB=
2934 ZLIB_SRC=
2935 AUTH_OBJS=
2936 AUTH_REG=
2937 AUTH_EXCL=
2938 AUTH_EXCL_DEF=
2939 AUTH_DEF=passwd
2940 SUDO_NLS=disabled
2941
2942 CHECKSHADOW=true
2943 shadow_defs=
2944 shadow_funcs=
2945 shadow_libs=
2946 shadow_libs_optional=
2947 CONFIGURE_ARGS="$@"
2948
2949
2950
2951
2952
2953 # Check whether --with-otp-only was given.
2954 if test "${with_otp_only+set}" = set; then :
2955   withval=$with_otp_only; case $with_otp_only in
2956     yes)        with_passwd="no"
2957                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
2958 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2959                 ;;
2960 esac
2961 fi
2962
2963
2964
2965 # Check whether --with-alertmail was given.
2966 if test "${with_alertmail+set}" = set; then :
2967   withval=$with_alertmail; case $with_alertmail in
2968     *)          with_mailto="$with_alertmail"
2969                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
2970 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2971                 ;;
2972 esac
2973 fi
2974
2975
2976
2977
2978 # Check whether --with-devel was given.
2979 if test "${with_devel+set}" = set; then :
2980   withval=$with_devel; case $with_devel in
2981     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
2982 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2983                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2984                 DEVEL="true"
2985                 devdir=.
2986                 ;;
2987     no)         ;;
2988     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2989 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2990                 ;;
2991 esac
2992 fi
2993
2994
2995
2996 # Check whether --with-CC was given.
2997 if test "${with_CC+set}" = set; then :
2998   withval=$with_CC; case $with_CC in
2999     *)          as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
3000                 ;;
3001 esac
3002 fi
3003
3004
3005
3006 # Check whether --with-rpath was given.
3007 if test "${with_rpath+set}" = set; then :
3008   withval=$with_rpath; case $with_rpath in
3009     yes|no)     ;;
3010     *)          as_fn_error $? "\"--with-rpath does not take an argument.\"" "$LINENO" 5
3011                 ;;
3012 esac
3013 fi
3014
3015
3016
3017 # Check whether --with-blibpath was given.
3018 if test "${with_blibpath+set}" = set; then :
3019   withval=$with_blibpath; case $with_blibpath in
3020     yes|no)     ;;
3021     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
3022 $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
3023                 ;;
3024 esac
3025 fi
3026
3027
3028
3029 # Check whether --with-bsm-audit was given.
3030 if test "${with_bsm_audit+set}" = set; then :
3031   withval=$with_bsm_audit; case $with_bsm_audit in
3032     yes)        $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3033
3034                 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3035                 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3036                 ;;
3037     no)         ;;
3038     *)          as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3039                 ;;
3040 esac
3041 fi
3042
3043
3044 ac_ext=c
3045 ac_cpp='$CPP $CPPFLAGS'
3046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049 if test -n "$ac_tool_prefix"; then
3050   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3051 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_CC+:} false; then :
3055   $as_echo_n "(cached) " >&6
3056 else
3057   if test -n "$CC"; then
3058   ac_cv_prog_CC="$CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063   IFS=$as_save_IFS
3064   test -z "$as_dir" && as_dir=.
3065     for ac_exec_ext in '' $ac_executable_extensions; do
3066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069     break 2
3070   fi
3071 done
3072   done
3073 IFS=$as_save_IFS
3074
3075 fi
3076 fi
3077 CC=$ac_cv_prog_CC
3078 if test -n "$CC"; then
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3080 $as_echo "$CC" >&6; }
3081 else
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 fi
3085
3086
3087 fi
3088 if test -z "$ac_cv_prog_CC"; then
3089   ac_ct_CC=$CC
3090   # Extract the first word of "gcc", so it can be a program name with args.
3091 set dummy gcc; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3095   $as_echo_n "(cached) " >&6
3096 else
3097   if test -n "$ac_ct_CC"; then
3098   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103   IFS=$as_save_IFS
3104   test -z "$as_dir" && as_dir=.
3105     for ac_exec_ext in '' $ac_executable_extensions; do
3106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107     ac_cv_prog_ac_ct_CC="gcc"
3108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109     break 2
3110   fi
3111 done
3112   done
3113 IFS=$as_save_IFS
3114
3115 fi
3116 fi
3117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3118 if test -n "$ac_ct_CC"; then
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3120 $as_echo "$ac_ct_CC" >&6; }
3121 else
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126   if test "x$ac_ct_CC" = x; then
3127     CC=""
3128   else
3129     case $cross_compiling:$ac_tool_warned in
3130 yes:)
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3133 ac_tool_warned=yes ;;
3134 esac
3135     CC=$ac_ct_CC
3136   fi
3137 else
3138   CC="$ac_cv_prog_CC"
3139 fi
3140
3141 if test -z "$CC"; then
3142           if test -n "$ac_tool_prefix"; then
3143     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3144 set dummy ${ac_tool_prefix}cc; 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 ${ac_cv_prog_CC+:} false; 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}cc"
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   fi
3181 fi
3182 if test -z "$CC"; then
3183   # Extract the first word of "cc", so it can be a program name with args.
3184 set dummy cc; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_CC+:} false; then :
3188   $as_echo_n "(cached) " >&6
3189 else
3190   if test -n "$CC"; then
3191   ac_cv_prog_CC="$CC" # Let the user override the test.
3192 else
3193   ac_prog_rejected=no
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199     for ac_exec_ext in '' $ac_executable_extensions; do
3200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3202        ac_prog_rejected=yes
3203        continue
3204      fi
3205     ac_cv_prog_CC="cc"
3206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207     break 2
3208   fi
3209 done
3210   done
3211 IFS=$as_save_IFS
3212
3213 if test $ac_prog_rejected = yes; then
3214   # We found a bogon in the path, so make sure we never use it.
3215   set dummy $ac_cv_prog_CC
3216   shift
3217   if test $# != 0; then
3218     # We chose a different compiler from the bogus one.
3219     # However, it has the same basename, so the bogon will be chosen
3220     # first if we set CC to just the basename; use the full file name.
3221     shift
3222     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3223   fi
3224 fi
3225 fi
3226 fi
3227 CC=$ac_cv_prog_CC
3228 if test -n "$CC"; then
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3230 $as_echo "$CC" >&6; }
3231 else
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237 fi
3238 if test -z "$CC"; then
3239   if test -n "$ac_tool_prefix"; then
3240   for ac_prog in cl.exe
3241   do
3242     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247   $as_echo_n "(cached) " >&6
3248 else
3249   if test -n "$CC"; then
3250   ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255   IFS=$as_save_IFS
3256   test -z "$as_dir" && as_dir=.
3257     for ac_exec_ext in '' $ac_executable_extensions; do
3258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261     break 2
3262   fi
3263 done
3264   done
3265 IFS=$as_save_IFS
3266
3267 fi
3268 fi
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3273 else
3274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 fi
3277
3278
3279     test -n "$CC" && break
3280   done
3281 fi
3282 if test -z "$CC"; then
3283   ac_ct_CC=$CC
3284   for ac_prog in cl.exe
3285 do
3286   # Extract the first word of "$ac_prog", so it can be a program name with args.
3287 set dummy $ac_prog; ac_word=$2
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3291   $as_echo_n "(cached) " >&6
3292 else
3293   if test -n "$ac_ct_CC"; then
3294   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299   IFS=$as_save_IFS
3300   test -z "$as_dir" && as_dir=.
3301     for ac_exec_ext in '' $ac_executable_extensions; do
3302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303     ac_cv_prog_ac_ct_CC="$ac_prog"
3304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305     break 2
3306   fi
3307 done
3308   done
3309 IFS=$as_save_IFS
3310
3311 fi
3312 fi
3313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3314 if test -n "$ac_ct_CC"; then
3315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3316 $as_echo "$ac_ct_CC" >&6; }
3317 else
3318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3320 fi
3321
3322
3323   test -n "$ac_ct_CC" && break
3324 done
3325
3326   if test "x$ac_ct_CC" = x; then
3327     CC=""
3328   else
3329     case $cross_compiling:$ac_tool_warned in
3330 yes:)
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3333 ac_tool_warned=yes ;;
3334 esac
3335     CC=$ac_ct_CC
3336   fi
3337 fi
3338
3339 fi
3340
3341
3342 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "no acceptable C compiler found in \$PATH
3345 See \`config.log' for more details" "$LINENO" 5; }
3346
3347 # Provide some information about the compiler.
3348 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3349 set X $ac_compile
3350 ac_compiler=$2
3351 for ac_option in --version -v -V -qversion; do
3352   { { ac_try="$ac_compiler $ac_option >&5"
3353 case "(($ac_try" in
3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355   *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3360   ac_status=$?
3361   if test -s conftest.err; then
3362     sed '10a\
3363 ... rest of stderr output deleted ...
3364          10q' conftest.err >conftest.er1
3365     cat conftest.er1 >&5
3366   fi
3367   rm -f conftest.er1 conftest.err
3368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369   test $ac_status = 0; }
3370 done
3371
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h.  */
3374
3375 int
3376 main ()
3377 {
3378
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 ac_clean_files_save=$ac_clean_files
3384 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3385 # Try to create an executable without -o first, disregard a.out.
3386 # It will help us diagnose broken compilers, and finding out an intuition
3387 # of exeext.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3389 $as_echo_n "checking whether the C compiler works... " >&6; }
3390 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3391
3392 # The possible output files:
3393 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3394
3395 ac_rmfiles=
3396 for ac_file in $ac_files
3397 do
3398   case $ac_file in
3399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3401   esac
3402 done
3403 rm -f $ac_rmfiles
3404
3405 if { { ac_try="$ac_link_default"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412   (eval "$ac_link_default") 2>&5
3413   ac_status=$?
3414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415   test $ac_status = 0; }; then :
3416   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3417 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3418 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3419 # so that the user can short-circuit this test for compilers unknown to
3420 # Autoconf.
3421 for ac_file in $ac_files ''
3422 do
3423   test -f "$ac_file" || continue
3424   case $ac_file in
3425     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3426         ;;
3427     [ab].out )
3428         # We found the default executable, but exeext='' is most
3429         # certainly right.
3430         break;;
3431     *.* )
3432         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3433         then :; else
3434            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435         fi
3436         # We set ac_cv_exeext here because the later test for it is not
3437         # safe: cross compilers may not add the suffix if given an `-o'
3438         # argument, so we may need to know it at that point already.
3439         # Even if this section looks crufty: it has the advantage of
3440         # actually working.
3441         break;;
3442     * )
3443         break;;
3444   esac
3445 done
3446 test "$ac_cv_exeext" = no && ac_cv_exeext=
3447
3448 else
3449   ac_file=''
3450 fi
3451 if test -z "$ac_file"; then :
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error 77 "C compiler cannot create executables
3460 See \`config.log' for more details" "$LINENO" 5; }
3461 else
3462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3463 $as_echo "yes" >&6; }
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3466 $as_echo_n "checking for C compiler default output file name... " >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3468 $as_echo "$ac_file" >&6; }
3469 ac_exeext=$ac_cv_exeext
3470
3471 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3472 ac_clean_files=$ac_clean_files_save
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3474 $as_echo_n "checking for suffix of executables... " >&6; }
3475 if { { ac_try="$ac_link"
3476 case "(($ac_try" in
3477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478   *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482   (eval "$ac_link") 2>&5
3483   ac_status=$?
3484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485   test $ac_status = 0; }; then :
3486   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3487 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3488 # work properly (i.e., refer to `conftest.exe'), while it won't with
3489 # `rm'.
3490 for ac_file in conftest.exe conftest conftest.*; do
3491   test -f "$ac_file" || continue
3492   case $ac_file in
3493     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495           break;;
3496     * ) break;;
3497   esac
3498 done
3499 else
3500   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3503 See \`config.log' for more details" "$LINENO" 5; }
3504 fi
3505 rm -f conftest conftest$ac_cv_exeext
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3507 $as_echo "$ac_cv_exeext" >&6; }
3508
3509 rm -f conftest.$ac_ext
3510 EXEEXT=$ac_cv_exeext
3511 ac_exeext=$EXEEXT
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h.  */
3514 #include <stdio.h>
3515 int
3516 main ()
3517 {
3518 FILE *f = fopen ("conftest.out", "w");
3519  return ferror (f) || fclose (f) != 0;
3520
3521   ;
3522   return 0;
3523 }
3524 _ACEOF
3525 ac_clean_files="$ac_clean_files conftest.out"
3526 # Check that the compiler produces executables we can run.  If not, either
3527 # the compiler is broken, or we cross compile.
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3529 $as_echo_n "checking whether we are cross compiling... " >&6; }
3530 if test "$cross_compiling" != yes; then
3531   { { ac_try="$ac_link"
3532 case "(($ac_try" in
3533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534   *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538   (eval "$ac_link") 2>&5
3539   ac_status=$?
3540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541   test $ac_status = 0; }
3542   if { ac_try='./conftest$ac_cv_exeext'
3543   { { case "(($ac_try" in
3544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545   *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549   (eval "$ac_try") 2>&5
3550   ac_status=$?
3551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552   test $ac_status = 0; }; }; then
3553     cross_compiling=no
3554   else
3555     if test "$cross_compiling" = maybe; then
3556         cross_compiling=yes
3557     else
3558         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error $? "cannot run C compiled programs.
3561 If you meant to cross compile, use \`--host'.
3562 See \`config.log' for more details" "$LINENO" 5; }
3563     fi
3564   fi
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3567 $as_echo "$cross_compiling" >&6; }
3568
3569 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3570 ac_clean_files=$ac_clean_files_save
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3572 $as_echo_n "checking for suffix of object files... " >&6; }
3573 if ${ac_cv_objext+:} false; then :
3574   $as_echo_n "(cached) " >&6
3575 else
3576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h.  */
3578
3579 int
3580 main ()
3581 {
3582
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 rm -f conftest.o conftest.obj
3588 if { { ac_try="$ac_compile"
3589 case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595   (eval "$ac_compile") 2>&5
3596   ac_status=$?
3597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598   test $ac_status = 0; }; then :
3599   for ac_file in conftest.o conftest.obj conftest.*; do
3600   test -f "$ac_file" || continue;
3601   case $ac_file in
3602     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3603     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3604        break;;
3605   esac
3606 done
3607 else
3608   $as_echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error $? "cannot compute suffix of object files: cannot compile
3614 See \`config.log' for more details" "$LINENO" 5; }
3615 fi
3616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3617 fi
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3619 $as_echo "$ac_cv_objext" >&6; }
3620 OBJEXT=$ac_cv_objext
3621 ac_objext=$OBJEXT
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3623 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3624 if ${ac_cv_c_compiler_gnu+:} false; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h.  */
3629
3630 int
3631 main ()
3632 {
3633 #ifndef __GNUC__
3634        choke me
3635 #endif
3636
3637   ;
3638   return 0;
3639 }
3640 _ACEOF
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642   ac_compiler_gnu=yes
3643 else
3644   ac_compiler_gnu=no
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3648
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3651 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3652 if test $ac_compiler_gnu = yes; then
3653   GCC=yes
3654 else
3655   GCC=
3656 fi
3657 ac_test_CFLAGS=${CFLAGS+set}
3658 ac_save_CFLAGS=$CFLAGS
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3660 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3661 if ${ac_cv_prog_cc_g+:} false; then :
3662   $as_echo_n "(cached) " >&6
3663 else
3664   ac_save_c_werror_flag=$ac_c_werror_flag
3665    ac_c_werror_flag=yes
3666    ac_cv_prog_cc_g=no
3667    CFLAGS="-g"
3668    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h.  */
3670
3671 int
3672 main ()
3673 {
3674
3675   ;
3676   return 0;
3677 }
3678 _ACEOF
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680   ac_cv_prog_cc_g=yes
3681 else
3682   CFLAGS=""
3683       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h.  */
3685
3686 int
3687 main ()
3688 {
3689
3690   ;
3691   return 0;
3692 }
3693 _ACEOF
3694 if ac_fn_c_try_compile "$LINENO"; then :
3695
3696 else
3697   ac_c_werror_flag=$ac_save_c_werror_flag
3698          CFLAGS="-g"
3699          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h.  */
3701
3702 int
3703 main ()
3704 {
3705
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711   ac_cv_prog_cc_g=yes
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 fi
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 fi
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718    ac_c_werror_flag=$ac_save_c_werror_flag
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3721 $as_echo "$ac_cv_prog_cc_g" >&6; }
3722 if test "$ac_test_CFLAGS" = set; then
3723   CFLAGS=$ac_save_CFLAGS
3724 elif test $ac_cv_prog_cc_g = yes; then
3725   if test "$GCC" = yes; then
3726     CFLAGS="-g -O2"
3727   else
3728     CFLAGS="-g"
3729   fi
3730 else
3731   if test "$GCC" = yes; then
3732     CFLAGS="-O2"
3733   else
3734     CFLAGS=
3735   fi
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3738 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3739 if ${ac_cv_prog_cc_c89+:} false; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   ac_cv_prog_cc_c89=no
3743 ac_save_CC=$CC
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h.  */
3746 #include <stdarg.h>
3747 #include <stdio.h>
3748 #include <sys/types.h>
3749 #include <sys/stat.h>
3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3751 struct buf { int x; };
3752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753 static char *e (p, i)
3754      char **p;
3755      int i;
3756 {
3757   return p[i];
3758 }
3759 static char *f (char * (*g) (char **, int), char **p, ...)
3760 {
3761   char *s;
3762   va_list v;
3763   va_start (v,p);
3764   s = g (p, va_arg (v,int));
3765   va_end (v);
3766   return s;
3767 }
3768
3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3770    function prototypes and stuff, but not '\xHH' hex character constants.
3771    These don't provoke an error unfortunately, instead are silently treated
3772    as 'x'.  The following induces an error, until -std is added to get
3773    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3774    array size at least.  It's necessary to write '\x00'==0 to get something
3775    that's true only with -std.  */
3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3777
3778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3779    inside strings and character constants.  */
3780 #define FOO(x) 'x'
3781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3782
3783 int test (int i, double x);
3784 struct s1 {int (*f) (int a);};
3785 struct s2 {int (*f) (double a);};
3786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787 int argc;
3788 char **argv;
3789 int
3790 main ()
3791 {
3792 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3793   ;
3794   return 0;
3795 }
3796 _ACEOF
3797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3798         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3799 do
3800   CC="$ac_save_CC $ac_arg"
3801   if ac_fn_c_try_compile "$LINENO"; then :
3802   ac_cv_prog_cc_c89=$ac_arg
3803 fi
3804 rm -f core conftest.err conftest.$ac_objext
3805   test "x$ac_cv_prog_cc_c89" != "xno" && break
3806 done
3807 rm -f conftest.$ac_ext
3808 CC=$ac_save_CC
3809
3810 fi
3811 # AC_CACHE_VAL
3812 case "x$ac_cv_prog_cc_c89" in
3813   x)
3814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3815 $as_echo "none needed" >&6; } ;;
3816   xno)
3817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3818 $as_echo "unsupported" >&6; } ;;
3819   *)
3820     CC="$CC $ac_cv_prog_cc_c89"
3821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3822 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3823 esac
3824 if test "x$ac_cv_prog_cc_c89" != xno; then :
3825
3826 fi
3827
3828 ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833
3834
3835
3836 # Check whether --with-linux-audit was given.
3837 if test "${with_linux_audit+set}" = set; then :
3838   withval=$with_linux_audit; case $with_linux_audit in
3839     yes)        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h.  */
3841 #include <libaudit.h>
3842 int
3843 main ()
3844 {
3845 int i = AUDIT_USER_CMD; (void)i;
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851
3852                     $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3853
3854                     SUDO_LIBS="${SUDO_LIBS} -laudit"
3855                     SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3856                     SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3857
3858 else
3859
3860                     as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3861
3862 fi
3863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864                 ;;
3865     no)         ;;
3866     *)          as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3867                 ;;
3868 esac
3869 fi
3870
3871
3872
3873 # Check whether --with-incpath was given.
3874 if test "${with_incpath+set}" = set; then :
3875   withval=$with_incpath; case $with_incpath in
3876     yes)        as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
3877                 ;;
3878     no)         as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
3879                 ;;
3880     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3881 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3882                 for i in ${with_incpath}; do
3883                     CPPFLAGS="${CPPFLAGS} -I${i}"
3884                 done
3885                 ;;
3886 esac
3887 fi
3888
3889
3890
3891 # Check whether --with-libpath was given.
3892 if test "${with_libpath+set}" = set; then :
3893   withval=$with_libpath; case $with_libpath in
3894     yes)        as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
3895                 ;;
3896     no)         as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
3897                 ;;
3898     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
3899 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
3900                 ;;
3901 esac
3902 fi
3903
3904
3905
3906 # Check whether --with-libraries was given.
3907 if test "${with_libraries+set}" = set; then :
3908   withval=$with_libraries; case $with_libraries in
3909     yes)        as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
3910                 ;;
3911     no)         as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
3912                 ;;
3913     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
3914 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
3915                 ;;
3916 esac
3917 fi
3918
3919
3920
3921 # Check whether --with-efence was given.
3922 if test "${with_efence+set}" = set; then :
3923   withval=$with_efence; case $with_efence in
3924     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
3925 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
3926                 LIBS="${LIBS} -lefence"
3927                 if test -f /usr/local/lib/libefence.a; then
3928                     with_libpath="${with_libpath} /usr/local/lib"
3929                 fi
3930                 ;;
3931     no)         ;;
3932     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
3933 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
3934                 ;;
3935 esac
3936 fi
3937
3938
3939
3940 # Check whether --with-csops was given.
3941 if test "${with_csops+set}" = set; then :
3942   withval=$with_csops; case $with_csops in
3943     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
3944 $as_echo "$as_me: Adding CSOps standard options" >&6;}
3945                 CHECKSIA=false
3946                 with_ignore_dot=yes
3947                 insults=on
3948                 with_classic_insults=yes
3949                 with_csops_insults=yes
3950                 with_env_editor=yes
3951                 : ${mansectsu='8'}
3952                 : ${mansectform='5'}
3953                 ;;
3954     no)         ;;
3955     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
3956 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
3957                 ;;
3958 esac
3959 fi
3960
3961
3962
3963 # Check whether --with-passwd was given.
3964 if test "${with_passwd+set}" = set; then :
3965   withval=$with_passwd; case $with_passwd in
3966     yes|no)     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
3967 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
3968                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
3969 $as_echo "$with_passwd" >&6; }
3970                 AUTH_DEF=""
3971                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
3972                 ;;
3973     *)          as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
3974                 ;;
3975 esac
3976 fi
3977
3978
3979
3980 # Check whether --with-skey was given.
3981 if test "${with_skey+set}" = set; then :
3982   withval=$with_skey; case $with_skey in
3983     no)         ;;
3984     *)          $as_echo "#define HAVE_SKEY 1" >>confdefs.h
3985
3986                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
3987 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
3988                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3989 $as_echo "yes" >&6; }
3990                 AUTH_REG="$AUTH_REG S/Key"
3991                 ;;
3992 esac
3993 fi
3994
3995
3996
3997 # Check whether --with-opie was given.
3998 if test "${with_opie+set}" = set; then :
3999   withval=$with_opie; case $with_opie in
4000     no)         ;;
4001     *)          $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4002
4003                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4004 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4005                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4006 $as_echo "yes" >&6; }
4007                 AUTH_REG="$AUTH_REG NRL_OPIE"
4008                 ;;
4009 esac
4010 fi
4011
4012
4013
4014 # Check whether --with-long-otp-prompt was given.
4015 if test "${with_long_otp_prompt+set}" = set; then :
4016   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4017     yes)        $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4018
4019                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4020 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4021                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4022 $as_echo "yes" >&6; }
4023                 long_otp_prompt=on
4024                 ;;
4025     no)         long_otp_prompt=off
4026                 ;;
4027     *)          as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4028                 ;;
4029 esac
4030 fi
4031
4032
4033
4034 # Check whether --with-SecurID was given.
4035 if test "${with_SecurID+set}" = set; then :
4036   withval=$with_SecurID; case $with_SecurID in
4037     no)         ;;
4038     *)          $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4039
4040                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4041 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4042                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4043 $as_echo "yes" >&6; }
4044                 AUTH_EXCL="$AUTH_EXCL SecurID"
4045                 ;;
4046 esac
4047 fi
4048
4049
4050
4051 # Check whether --with-fwtk was given.
4052 if test "${with_fwtk+set}" = set; then :
4053   withval=$with_fwtk; case $with_fwtk in
4054     no)         ;;
4055     *)          $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4056
4057                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4058 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4059                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4060 $as_echo "yes" >&6; }
4061                 AUTH_EXCL="$AUTH_EXCL FWTK"
4062                 ;;
4063 esac
4064 fi
4065
4066
4067
4068 # Check whether --with-kerb5 was given.
4069 if test "${with_kerb5+set}" = set; then :
4070   withval=$with_kerb5; case $with_kerb5 in
4071     no)         ;;
4072     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4073 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4074                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4075 $as_echo "yes" >&6; }
4076                 AUTH_REG="$AUTH_REG kerb5"
4077                 ;;
4078 esac
4079 fi
4080
4081
4082
4083 # Check whether --with-aixauth was given.
4084 if test "${with_aixauth+set}" = set; then :
4085   withval=$with_aixauth; case $with_aixauth in
4086     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4087     no)         ;;
4088     *)          as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4089                 ;;
4090 esac
4091 fi
4092
4093
4094
4095 # Check whether --with-pam was given.
4096 if test "${with_pam+set}" = set; then :
4097   withval=$with_pam; case $with_pam in
4098     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
4099     no)         ;;
4100     *)          as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
4101                 ;;
4102 esac
4103 fi
4104
4105
4106
4107 # Check whether --with-AFS was given.
4108 if test "${with_AFS+set}" = set; then :
4109   withval=$with_AFS; case $with_AFS in
4110     yes)        $as_echo "#define HAVE_AFS 1" >>confdefs.h
4111
4112                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4113 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4114                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4115 $as_echo "yes" >&6; }
4116                 AUTH_REG="$AUTH_REG AFS"
4117                 ;;
4118     no)         ;;
4119     *)          as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4120                 ;;
4121 esac
4122 fi
4123
4124
4125
4126 # Check whether --with-DCE was given.
4127 if test "${with_DCE+set}" = set; then :
4128   withval=$with_DCE; case $with_DCE in
4129     yes)        $as_echo "#define HAVE_DCE 1" >>confdefs.h
4130
4131                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4132 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4133                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4134 $as_echo "yes" >&6; }
4135                 AUTH_REG="$AUTH_REG DCE"
4136                 ;;
4137     no)         ;;
4138     *)          as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4139                 ;;
4140 esac
4141 fi
4142
4143
4144
4145 # Check whether --with-logincap was given.
4146 if test "${with_logincap+set}" = set; then :
4147   withval=$with_logincap; case $with_logincap in
4148     yes|no)     ;;
4149     *)          as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4150                 ;;
4151 esac
4152 fi
4153
4154
4155
4156 # Check whether --with-bsdauth was given.
4157 if test "${with_bsdauth+set}" = set; then :
4158   withval=$with_bsdauth; case $with_bsdauth in
4159     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4160     no)         ;;
4161     *)          as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4162                 ;;
4163 esac
4164 fi
4165
4166
4167
4168 # Check whether --with-project was given.
4169 if test "${with_project+set}" = set; then :
4170   withval=$with_project; case $with_project in
4171     yes|no)     ;;
4172     no) ;;
4173     *)          as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
4174                 ;;
4175 esac
4176 fi
4177
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4180 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4181
4182 # Check whether --with-lecture was given.
4183 if test "${with_lecture+set}" = set; then :
4184   withval=$with_lecture; case $with_lecture in
4185     yes|short|always)   lecture=once
4186                 ;;
4187     no|none|never)      lecture=never
4188                 ;;
4189     *)          as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4190                 ;;
4191 esac
4192 fi
4193
4194 if test "$lecture" = "once"; then
4195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4196 $as_echo "yes" >&6; }
4197 else
4198     $as_echo "#define NO_LECTURE 1" >>confdefs.h
4199
4200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4202 fi
4203
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4205 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4206
4207 # Check whether --with-logging was given.
4208 if test "${with_logging+set}" = set; then :
4209   withval=$with_logging; case $with_logging in
4210     yes)        as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
4211                 ;;
4212     no)         as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
4213                 ;;
4214     syslog)     $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4215
4216                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4217 $as_echo "syslog" >&6; }
4218                 ;;
4219     file)       $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4220
4221                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4222 $as_echo "file" >&6; }
4223                 ;;
4224     both)       $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4225
4226                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4227 $as_echo "both" >&6; }
4228                 ;;
4229     *)          as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4230                 ;;
4231 esac
4232 else
4233   $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4235 $as_echo "syslog" >&6; }
4236 fi
4237
4238
4239
4240 # Check whether --with-logfac was given.
4241 if test "${with_logfac+set}" = set; then :
4242   withval=$with_logfac; case $with_logfac in
4243     yes)        as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
4244                 ;;
4245     no)         as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
4246                 ;;
4247     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
4248                 ;;
4249     *)          as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4250                 ;;
4251 esac
4252 fi
4253
4254
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4256 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4257
4258 # Check whether --with-goodpri was given.
4259 if test "${with_goodpri+set}" = set; then :
4260   withval=$with_goodpri; case $with_goodpri in
4261     yes)        as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4262                 ;;
4263     no)         as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
4264                 ;;
4265     alert|crit|debug|emerg|err|info|notice|warning)
4266                 goodpri=$with_goodpri
4267                 ;;
4268     *)          as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4269                 ;;
4270 esac
4271 fi
4272
4273
4274 cat >>confdefs.h <<_ACEOF
4275 #define PRI_SUCCESS "$goodpri"
4276 _ACEOF
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4279 $as_echo "$goodpri" >&6; }
4280
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4282 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4283
4284 # Check whether --with-badpri was given.
4285 if test "${with_badpri+set}" = set; then :
4286   withval=$with_badpri; case $with_badpri in
4287     yes)        as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
4288                 ;;
4289     no)         as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
4290                 ;;
4291     alert|crit|debug|emerg|err|info|notice|warning)
4292                 badpri=$with_badpri
4293                 ;;
4294     *)          as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
4295                 ;;
4296 esac
4297 fi
4298
4299
4300 cat >>confdefs.h <<_ACEOF
4301 #define PRI_FAILURE "$badpri"
4302 _ACEOF
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4305 $as_echo "$badpri" >&6; }
4306
4307
4308 # Check whether --with-logpath was given.
4309 if test "${with_logpath+set}" = set; then :
4310   withval=$with_logpath; case $with_logpath in
4311     yes)        as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
4312                 ;;
4313     no)         as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
4314                 ;;
4315 esac
4316 fi
4317
4318
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4320 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4321
4322 # Check whether --with-loglen was given.
4323 if test "${with_loglen+set}" = set; then :
4324   withval=$with_loglen; case $with_loglen in
4325     yes)        as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
4326                 ;;
4327     no)         as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
4328                 ;;
4329     [0-9]*)     loglen=$with_loglen
4330                 ;;
4331     *)          as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4332                 ;;
4333 esac
4334 fi
4335
4336
4337 cat >>confdefs.h <<_ACEOF
4338 #define MAXLOGFILELEN $loglen
4339 _ACEOF
4340
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4342 $as_echo "$loglen" >&6; }
4343
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4345 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4346
4347 # Check whether --with-ignore-dot was given.
4348 if test "${with_ignore_dot+set}" = set; then :
4349   withval=$with_ignore_dot; case $with_ignore_dot in
4350     yes)        ignore_dot=on
4351                 ;;
4352     no)         ignore_dot=off
4353                 ;;
4354     *)          as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4355                 ;;
4356 esac
4357 fi
4358
4359 if test "$ignore_dot" = "on"; then
4360     $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4361
4362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363 $as_echo "yes" >&6; }
4364 else
4365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4370 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4371
4372 # Check whether --with-mail-if-no-user was given.
4373 if test "${with_mail_if_no_user+set}" = set; then :
4374   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4375     yes)        mail_no_user=on
4376                 ;;
4377     no)         mail_no_user=off
4378                 ;;
4379     *)          as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4380                 ;;
4381 esac
4382 fi
4383
4384 if test "$mail_no_user" = "on"; then
4385     $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4386
4387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4388 $as_echo "yes" >&6; }
4389 else
4390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4395 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4396
4397 # Check whether --with-mail-if-no-host was given.
4398 if test "${with_mail_if_no_host+set}" = set; then :
4399   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4400     yes)        mail_no_host=on
4401                 ;;
4402     no)         mail_no_host=off
4403                 ;;
4404     *)          as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4405                 ;;
4406 esac
4407 fi
4408
4409 if test "$mail_no_host" = "on"; then
4410     $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4411
4412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4413 $as_echo "yes" >&6; }
4414 else
4415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417 fi
4418
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4420 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4421
4422 # Check whether --with-mail-if-noperms was given.
4423 if test "${with_mail_if_noperms+set}" = set; then :
4424   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4425     yes)        mail_noperms=on
4426                 ;;
4427     no)         mail_noperms=off
4428                 ;;
4429     *)          as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4430                 ;;
4431 esac
4432 fi
4433
4434 if test "$mail_noperms" = "on"; then
4435     $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4436
4437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4438 $as_echo "yes" >&6; }
4439 else
4440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442 fi
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4445 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4446
4447 # Check whether --with-mailto was given.
4448 if test "${with_mailto+set}" = set; then :
4449   withval=$with_mailto; case $with_mailto in
4450     yes)        as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
4451                 ;;
4452     no)         as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
4453                 ;;
4454     *)          mailto=$with_mailto
4455                 ;;
4456 esac
4457 fi
4458
4459
4460 cat >>confdefs.h <<_ACEOF
4461 #define MAILTO "$mailto"
4462 _ACEOF
4463
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4465 $as_echo "$mailto" >&6; }
4466
4467
4468 # Check whether --with-mailsubject was given.
4469 if test "${with_mailsubject+set}" = set; then :
4470   withval=$with_mailsubject; case $with_mailsubject in
4471     yes)        as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4472                 ;;
4473     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4474 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4475                 ;;
4476     *)          mailsub="$with_mailsubject"
4477                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4478 $as_echo_n "checking sudo mail subject... " >&6; }
4479                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4480 $as_echo "Using alert mail subject: $mailsub" >&6; }
4481                 ;;
4482 esac
4483 fi
4484
4485
4486 cat >>confdefs.h <<_ACEOF
4487 #define MAILSUBJECT "$mailsub"
4488 _ACEOF
4489
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4492 $as_echo_n "checking for bad password prompt... " >&6; }
4493
4494 # Check whether --with-passprompt was given.
4495 if test "${with_passprompt+set}" = set; then :
4496   withval=$with_passprompt; case $with_passprompt in
4497     yes)        as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4498                 ;;
4499     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4500 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4501                 ;;
4502     *)          passprompt="$with_passprompt"
4503 esac
4504 fi
4505
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4507 $as_echo "$passprompt" >&6; }
4508
4509 cat >>confdefs.h <<_ACEOF
4510 #define PASSPROMPT "$passprompt"
4511 _ACEOF
4512
4513
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4515 $as_echo_n "checking for bad password message... " >&6; }
4516
4517 # Check whether --with-badpass-message was given.
4518 if test "${with_badpass_message+set}" = set; then :
4519   withval=$with_badpass_message; case $with_badpass_message in
4520     yes)        as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4521                 ;;
4522     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4523 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4524                 ;;
4525     *)          badpass_message="$with_badpass_message"
4526                 ;;
4527 esac
4528 fi
4529
4530
4531 cat >>confdefs.h <<_ACEOF
4532 #define INCORRECT_PASSWORD "$badpass_message"
4533 _ACEOF
4534
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4536 $as_echo "$badpass_message" >&6; }
4537
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4539 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4540
4541 # Check whether --with-fqdn was given.
4542 if test "${with_fqdn+set}" = set; then :
4543   withval=$with_fqdn; case $with_fqdn in
4544     yes)        fqdn=on
4545                 ;;
4546     no)         fqdn=off
4547                 ;;
4548     *)          as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4549                 ;;
4550 esac
4551 fi
4552
4553 if test "$fqdn" = "on"; then
4554     $as_echo "#define FQDN 1" >>confdefs.h
4555
4556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4557 $as_echo "yes" >&6; }
4558 else
4559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562
4563
4564 # Check whether --with-timedir was given.
4565 if test "${with_timedir+set}" = set; then :
4566   withval=$with_timedir; case $with_timedir in
4567     yes)        as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
4568                 ;;
4569     no)         as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
4570                 ;;
4571 esac
4572 fi
4573
4574
4575
4576 # Check whether --with-iologdir was given.
4577 if test "${with_iologdir+set}" = set; then :
4578   withval=$with_iologdir; case $with_iologdir in
4579     yes)    ;;
4580     no)     as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
4581             ;;
4582 esac
4583 fi
4584
4585
4586
4587 # Check whether --with-sendmail was given.
4588 if test "${with_sendmail+set}" = set; then :
4589   withval=$with_sendmail; case $with_sendmail in
4590     yes)        with_sendmail=""
4591                 ;;
4592     no)         ;;
4593     *)          cat >>confdefs.h <<EOF
4594 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4595 EOF
4596
4597                 ;;
4598 esac
4599 fi
4600
4601
4602
4603 # Check whether --with-sudoers-mode was given.
4604 if test "${with_sudoers_mode+set}" = set; then :
4605   withval=$with_sudoers_mode; case $with_sudoers_mode in
4606     yes)        as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4607                 ;;
4608     no)         as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4609                 ;;
4610     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
4611                 ;;
4612     0*)         SUDOERS_MODE=$with_sudoers_mode
4613                 ;;
4614     *)          as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4615                 ;;
4616 esac
4617 fi
4618
4619
4620
4621 # Check whether --with-sudoers-uid was given.
4622 if test "${with_sudoers_uid+set}" = set; then :
4623   withval=$with_sudoers_uid; case $with_sudoers_uid in
4624     yes)        as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4625                 ;;
4626     no)         as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4627                 ;;
4628     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
4629                 ;;
4630     *)          as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4631                 ;;
4632 esac
4633 fi
4634
4635
4636
4637 # Check whether --with-sudoers-gid was given.
4638 if test "${with_sudoers_gid+set}" = set; then :
4639   withval=$with_sudoers_gid; case $with_sudoers_gid in
4640     yes)        as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4641                 ;;
4642     no)         as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4643                 ;;
4644     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
4645                 ;;
4646     *)          as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4647                 ;;
4648 esac
4649 fi
4650
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4653 $as_echo_n "checking for umask programs should be run with... " >&6; }
4654
4655 # Check whether --with-umask was given.
4656 if test "${with_umask+set}" = set; then :
4657   withval=$with_umask; case $with_umask in
4658     yes)        as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
4659                 ;;
4660     no)         sudo_umask=0777
4661                 ;;
4662     [0-9]*)     sudo_umask=$with_umask
4663                 ;;
4664     *)          as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
4665                 ;;
4666 esac
4667 fi
4668
4669
4670 cat >>confdefs.h <<_ACEOF
4671 #define SUDO_UMASK $sudo_umask
4672 _ACEOF
4673
4674 if test "$sudo_umask" = "0777"; then
4675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4676 $as_echo "user" >&6; }
4677 else
4678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4679 $as_echo "$sudo_umask" >&6; }
4680 fi
4681
4682
4683 # Check whether --with-umask-override was given.
4684 if test "${with_umask_override+set}" = set; then :
4685   withval=$with_umask_override; case $with_umask_override in
4686     yes)        $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4687
4688                 umask_override=on
4689                 ;;
4690     no)         umask_override=off
4691                 ;;
4692     *)          as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4693                 ;;
4694 esac
4695 fi
4696
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4699 $as_echo_n "checking for default user to run commands as... " >&6; }
4700
4701 # Check whether --with-runas-default was given.
4702 if test "${with_runas_default+set}" = set; then :
4703   withval=$with_runas_default; case $with_runas_default in
4704     yes)        as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4705                 ;;
4706     no)         as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
4707                 ;;
4708     *)          runas_default="$with_runas_default"
4709                 ;;
4710 esac
4711 fi
4712
4713
4714 cat >>confdefs.h <<_ACEOF
4715 #define RUNAS_DEFAULT "$runas_default"
4716 _ACEOF
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4719 $as_echo "$runas_default" >&6; }
4720
4721
4722 # Check whether --with-exempt was given.
4723 if test "${with_exempt+set}" = set; then :
4724   withval=$with_exempt; case $with_exempt in
4725     yes)        as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
4726                 ;;
4727     no)         as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
4728                 ;;
4729     *)
4730 cat >>confdefs.h <<_ACEOF
4731 #define EXEMPTGROUP "$with_exempt"
4732 _ACEOF
4733
4734                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4735 $as_echo_n "checking for group to be exempt from password... " >&6; }
4736                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4737 $as_echo "$with_exempt" >&6; }
4738                 ;;
4739 esac
4740 fi
4741
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4744 $as_echo_n "checking for editor that visudo should use... " >&6; }
4745
4746 # Check whether --with-editor was given.
4747 if test "${with_editor+set}" = set; then :
4748   withval=$with_editor; case $with_editor in
4749     yes)        as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
4750                 ;;
4751     no)         as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4752                 ;;
4753     *)
4754 cat >>confdefs.h <<_ACEOF
4755 #define EDITOR "$with_editor"
4756 _ACEOF
4757
4758                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4759 $as_echo "$with_editor" >&6; }
4760                 editor="$with_editor"
4761                 ;;
4762 esac
4763 else
4764   $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4766 $as_echo "vi" >&6; }
4767 fi
4768
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4771 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4772
4773 # Check whether --with-env-editor was given.
4774 if test "${with_env_editor+set}" = set; then :
4775   withval=$with_env_editor; case $with_env_editor in
4776     yes)        env_editor=on
4777                 ;;
4778     no)         env_editor=off
4779                 ;;
4780     *)          as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4781                 ;;
4782 esac
4783 fi
4784
4785 if test "$env_editor" = "on"; then
4786     $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4787
4788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789 $as_echo "yes" >&6; }
4790 else
4791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4793 fi
4794
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4796 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4797
4798 # Check whether --with-passwd-tries was given.
4799 if test "${with_passwd_tries+set}" = set; then :
4800   withval=$with_passwd_tries; case $with_passwd_tries in
4801     yes)        ;;
4802     no)         as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4803                 ;;
4804     [1-9]*)     passwd_tries=$with_passwd_tries
4805                 ;;
4806     *)          as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4807                 ;;
4808 esac
4809 fi
4810
4811
4812 cat >>confdefs.h <<_ACEOF
4813 #define TRIES_FOR_PASSWORD $passwd_tries
4814 _ACEOF
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4817 $as_echo "$passwd_tries" >&6; }
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4820 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4821
4822 # Check whether --with-timeout was given.
4823 if test "${with_timeout+set}" = set; then :
4824   withval=$with_timeout; case $with_timeout in
4825     yes)        ;;
4826     no)         timeout=0
4827                 ;;
4828     [0-9]*)     timeout=$with_timeout
4829                 ;;
4830     *)          as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4831                 ;;
4832 esac
4833 fi
4834
4835
4836 cat >>confdefs.h <<_ACEOF
4837 #define TIMEOUT $timeout
4838 _ACEOF
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4841 $as_echo "$timeout" >&6; }
4842
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4844 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4845
4846 # Check whether --with-password-timeout was given.
4847 if test "${with_password_timeout+set}" = set; then :
4848   withval=$with_password_timeout; case $with_password_timeout in
4849     yes)        ;;
4850     no)         password_timeout=0
4851                 ;;
4852     [0-9]*)     password_timeout=$with_password_timeout
4853                 ;;
4854     *)          as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4855                 ;;
4856 esac
4857 fi
4858
4859
4860 cat >>confdefs.h <<_ACEOF
4861 #define PASSWORD_TIMEOUT $password_timeout
4862 _ACEOF
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4865 $as_echo "$password_timeout" >&6; }
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4868 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4869
4870 # Check whether --with-tty-tickets was given.
4871 if test "${with_tty_tickets+set}" = set; then :
4872   withval=$with_tty_tickets; case $with_tty_tickets in
4873     yes)        tty_tickets=on
4874                 ;;
4875     no)         tty_tickets=off
4876                 ;;
4877     *)          as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4878                 ;;
4879 esac
4880 fi
4881
4882 if test "$tty_tickets" = "off"; then
4883     $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
4884
4885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887 else
4888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4889 $as_echo "yes" >&6; }
4890 fi
4891
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
4893 $as_echo_n "checking whether to include insults... " >&6; }
4894
4895 # Check whether --with-insults was given.
4896 if test "${with_insults+set}" = set; then :
4897   withval=$with_insults; case $with_insults in
4898     yes)        insults=on
4899                 with_classic_insults=yes
4900                 with_csops_insults=yes
4901                 ;;
4902     disabled)   insults=off
4903                 with_classic_insults=yes
4904                 with_csops_insults=yes
4905                 ;;
4906     no)         insults=off
4907                 ;;
4908     *)          as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
4909                 ;;
4910 esac
4911 fi
4912
4913 if test "$insults" = "on"; then
4914     $as_echo "#define USE_INSULTS 1" >>confdefs.h
4915
4916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4917 $as_echo "yes" >&6; }
4918 else
4919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4921 fi
4922
4923
4924 # Check whether --with-all-insults was given.
4925 if test "${with_all_insults+set}" = set; then :
4926   withval=$with_all_insults; case $with_all_insults in
4927     yes)        with_classic_insults=yes
4928                 with_csops_insults=yes
4929                 with_hal_insults=yes
4930                 with_goons_insults=yes
4931                 ;;
4932     no)         ;;
4933     *)          as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
4934                 ;;
4935 esac
4936 fi
4937
4938
4939
4940 # Check whether --with-classic-insults was given.
4941 if test "${with_classic_insults+set}" = set; then :
4942   withval=$with_classic_insults; case $with_classic_insults in
4943     yes)        $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
4944
4945                 ;;
4946     no)         ;;
4947     *)          as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
4948                 ;;
4949 esac
4950 fi
4951
4952
4953
4954 # Check whether --with-csops-insults was given.
4955 if test "${with_csops_insults+set}" = set; then :
4956   withval=$with_csops_insults; case $with_csops_insults in
4957     yes)        $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
4958
4959                 ;;
4960     no)         ;;
4961     *)          as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
4962                 ;;
4963 esac
4964 fi
4965
4966
4967
4968 # Check whether --with-hal-insults was given.
4969 if test "${with_hal_insults+set}" = set; then :
4970   withval=$with_hal_insults; case $with_hal_insults in
4971     yes)        $as_echo "#define HAL_INSULTS 1" >>confdefs.h
4972
4973                 ;;
4974     no)         ;;
4975     *)          as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
4976                 ;;
4977 esac
4978 fi
4979
4980
4981
4982 # Check whether --with-goons-insults was given.
4983 if test "${with_goons_insults+set}" = set; then :
4984   withval=$with_goons_insults; case $with_goons_insults in
4985     yes)        $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
4986
4987                 ;;
4988     no)         ;;
4989     *)          as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
4990                 ;;
4991 esac
4992 fi
4993
4994
4995
4996 # Check whether --with-nsswitch was given.
4997 if test "${with_nsswitch+set}" = set; then :
4998   withval=$with_nsswitch; case $with_nsswitch in
4999     no)         ;;
5000     yes)        with_nsswitch="/etc/nsswitch.conf"
5001                 ;;
5002     *)          ;;
5003 esac
5004 fi
5005
5006
5007
5008 # Check whether --with-ldap was given.
5009 if test "${with_ldap+set}" = set; then :
5010   withval=$with_ldap; case $with_ldap in
5011     no)         ;;
5012     *)          $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5013
5014                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5015 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5016                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5017 $as_echo "yes" >&6; }
5018                 ;;
5019 esac
5020 fi
5021
5022
5023
5024 # Check whether --with-ldap-conf-file was given.
5025 if test "${with_ldap_conf_file+set}" = set; then :
5026   withval=$with_ldap_conf_file;
5027 fi
5028
5029 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5030 cat >>confdefs.h <<EOF
5031 #define _PATH_LDAP_CONF "$ldap_conf"
5032 EOF
5033
5034
5035
5036 # Check whether --with-ldap-secret-file was given.
5037 if test "${with_ldap_secret_file+set}" = set; then :
5038   withval=$with_ldap_secret_file;
5039 fi
5040
5041 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5042 cat >>confdefs.h <<EOF
5043 #define _PATH_LDAP_SECRET "$ldap_secret"
5044 EOF
5045
5046
5047
5048 # Check whether --with-pc-insults was given.
5049 if test "${with_pc_insults+set}" = set; then :
5050   withval=$with_pc_insults; case $with_pc_insults in
5051     yes)        $as_echo "#define PC_INSULTS 1" >>confdefs.h
5052
5053                 ;;
5054     no)         ;;
5055     *)          as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5056                 ;;
5057 esac
5058 fi
5059
5060
5061 if test "$insults" = "on"; then
5062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5063 $as_echo_n "checking which insult sets to include... " >&6; }
5064     i=""
5065     test "$with_goons_insults" = "yes" && i="goons ${i}"
5066     test "$with_hal_insults" = "yes" && i="hal ${i}"
5067     test "$with_csops_insults" = "yes" && i="csops ${i}"
5068     test "$with_classic_insults" = "yes" && i="classic ${i}"
5069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5070 $as_echo "$i" >&6; }
5071 fi
5072
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5074 $as_echo_n "checking whether to override the user's path... " >&6; }
5075
5076 # Check whether --with-secure-path was given.
5077 if test "${with_secure_path+set}" = set; then :
5078   withval=$with_secure_path; case $with_secure_path in
5079     yes)        with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5080                 cat >>confdefs.h <<_ACEOF
5081 #define SECURE_PATH "$with_secure_path"
5082 _ACEOF
5083
5084                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5085 $as_echo "$with_secure_path" >&6; }
5086                 secure_path="set to $with_secure_path"
5087                 ;;
5088     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5090                 ;;
5091     *)          cat >>confdefs.h <<_ACEOF
5092 #define SECURE_PATH "$with_secure_path"
5093 _ACEOF
5094
5095                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5096 $as_echo "$with_secure_path" >&6; }
5097                 secure_path="set to F<$with_secure_path>"
5098                 ;;
5099 esac
5100 else
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5103 fi
5104
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5107 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5108
5109 # Check whether --with-interfaces was given.
5110 if test "${with_interfaces+set}" = set; then :
5111   withval=$with_interfaces; case $with_interfaces in
5112     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5113 $as_echo "yes" >&6; }
5114                 ;;
5115     no)         $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5116
5117                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119                 ;;
5120     *)          as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5121                 ;;
5122 esac
5123 else
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5125 $as_echo "yes" >&6; }
5126 fi
5127
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stow should be used" >&5
5130 $as_echo_n "checking whether stow should be used... " >&6; }
5131
5132 # Check whether --with-stow was given.
5133 if test "${with_stow+set}" = set; then :
5134   withval=$with_stow; case $with_stow in
5135     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5136 $as_echo "yes" >&6; }
5137                 $as_echo "#define USE_STOW 1" >>confdefs.h
5138
5139                 ;;
5140     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5142                 ;;
5143     *)          as_fn_error $? "\"--with-stow does not take an argument.\"" "$LINENO" 5
5144                 ;;
5145 esac
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5153 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5154
5155 # Check whether --with-askpass was given.
5156 if test "${with_askpass+set}" = set; then :
5157   withval=$with_askpass; case $with_askpass in
5158     yes)        as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5159                 ;;
5160     no)         ;;
5161     *)          cat >>confdefs.h <<EOF
5162 #define _PATH_SUDO_ASKPASS "$with_askpass"
5163 EOF
5164
5165                 ;;
5166 esac
5167 else
5168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171
5172
5173
5174 # Check whether --with-plugindir was given.
5175 if test "${with_plugindir+set}" = set; then :
5176   withval=$with_plugindir; case $with_plugindir in
5177     no)         as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5178                 ;;
5179     *)          ;;
5180 esac
5181 else
5182   with_plugindir="$libexecdir"
5183 fi
5184
5185
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5188 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5189 # Check whether --enable-authentication was given.
5190 if test "${enable_authentication+set}" = set; then :
5191   enableval=$enable_authentication;  case "$enableval" in
5192     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5193 $as_echo "yes" >&6; }
5194                 ;;
5195     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197                 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5198
5199                 ;;
5200     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5203 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5204                 ;;
5205   esac
5206
5207 else
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5209 $as_echo "yes" >&6; }
5210 fi
5211
5212
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5214 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5215 # Check whether --enable-root-mailer was given.
5216 if test "${enable_root_mailer+set}" = set; then :
5217   enableval=$enable_root_mailer;  case "$enableval" in
5218     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220                 ;;
5221     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5222 $as_echo "yes" >&6; }
5223                 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5224
5225                 ;;
5226     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5229 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5230                 ;;
5231   esac
5232
5233 else
5234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5236 fi
5237
5238
5239 # Check whether --enable-setreuid was given.
5240 if test "${enable_setreuid+set}" = set; then :
5241   enableval=$enable_setreuid;  case "$enableval" in
5242     no)         SKIP_SETREUID=yes
5243                 ;;
5244     *)          ;;
5245   esac
5246
5247 fi
5248
5249
5250 # Check whether --enable-setresuid was given.
5251 if test "${enable_setresuid+set}" = set; then :
5252   enableval=$enable_setresuid;  case "$enableval" in
5253     no)         SKIP_SETRESUID=yes
5254                 ;;
5255     *)          ;;
5256   esac
5257
5258 fi
5259
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5262 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5263 # Check whether --enable-shadow was given.
5264 if test "${enable_shadow+set}" = set; then :
5265   enableval=$enable_shadow;  case "$enableval" in
5266     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268                 ;;
5269     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270 $as_echo "yes" >&6; }
5271                 CHECKSHADOW="false"
5272                 ;;
5273     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5275                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5276 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5277                 ;;
5278   esac
5279
5280 else
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5287 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5288 # Check whether --enable-root-sudo was given.
5289 if test "${enable_root_sudo+set}" = set; then :
5290   enableval=$enable_root_sudo;  case "$enableval" in
5291     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5292 $as_echo "yes" >&6; }
5293                 ;;
5294     no)         $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5295
5296                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298                 root_sudo=off
5299                 ;;
5300     *)          as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5301                 ;;
5302   esac
5303
5304 else
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5307 fi
5308
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5311 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5312 # Check whether --enable-log-host was given.
5313 if test "${enable_log_host+set}" = set; then :
5314   enableval=$enable_log_host;  case "$enableval" in
5315     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5316 $as_echo "yes" >&6; }
5317                 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5318
5319                 ;;
5320     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5322                 ;;
5323     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5326 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5327                 ;;
5328   esac
5329
5330 else
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5333 fi
5334
5335
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5337 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5338 # Check whether --enable-noargs-shell was given.
5339 if test "${enable_noargs_shell+set}" = set; then :
5340   enableval=$enable_noargs_shell;  case "$enableval" in
5341     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5342 $as_echo "yes" >&6; }
5343                 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5344
5345                 ;;
5346     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5348                 ;;
5349     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5352 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5353                 ;;
5354   esac
5355
5356 else
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5363 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5364 # Check whether --enable-shell-sets-home was given.
5365 if test "${enable_shell_sets_home+set}" = set; then :
5366   enableval=$enable_shell_sets_home;  case "$enableval" in
5367     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5368 $as_echo "yes" >&6; }
5369                 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5370
5371                 ;;
5372     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374                 ;;
5375     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5377                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5378 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5379                 ;;
5380   esac
5381
5382 else
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5385 fi
5386
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5389 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5390 # Check whether --enable-path_info was given.
5391 if test "${enable_path_info+set}" = set; then :
5392   enableval=$enable_path_info;  case "$enableval" in
5393     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395                 ;;
5396     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397 $as_echo "yes" >&6; }
5398                 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5399
5400                 path_info=off
5401                 ;;
5402     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5405 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5406                 ;;
5407   esac
5408
5409 else
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5416 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5417 # Check whether --enable-env_debug was given.
5418 if test "${enable_env_debug+set}" = set; then :
5419   enableval=$enable_env_debug;  case "$enableval" in
5420     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5421 $as_echo "yes" >&6; }
5422                 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5423
5424                 ;;
5425     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427                 ;;
5428     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5431 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5432                 ;;
5433   esac
5434
5435 else
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439
5440
5441 # Check whether --enable-zlib was given.
5442 if test "${enable_zlib+set}" = set; then :
5443   enableval=$enable_zlib;
5444 else
5445   enable_zlib=yes
5446 fi
5447
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5450 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5451 # Check whether --enable-env_reset was given.
5452 if test "${enable_env_reset+set}" = set; then :
5453   enableval=$enable_env_reset;  case "$enableval" in
5454     yes)        env_reset=on
5455                 ;;
5456     no)         env_reset=off
5457                 ;;
5458     *)          env_reset=on
5459                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5460 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5461                 ;;
5462   esac
5463
5464 fi
5465
5466 if test "$env_reset" = "on"; then
5467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5468 $as_echo "yes" >&6; }
5469     $as_echo "#define ENV_RESET 1" >>confdefs.h
5470
5471 else
5472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474     $as_echo "#define ENV_RESET 0" >>confdefs.h
5475
5476 fi
5477
5478 # Check whether --enable-warnings was given.
5479 if test "${enable_warnings+set}" = set; then :
5480   enableval=$enable_warnings;  case "$enableval" in
5481     yes)    ;;
5482     no)     ;;
5483     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5484 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5485             ;;
5486   esac
5487
5488 fi
5489
5490
5491 # Check whether --enable-werror was given.
5492 if test "${enable_werror+set}" = set; then :
5493   enableval=$enable_werror;  case "$enableval" in
5494     yes)    ;;
5495     no)     ;;
5496     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
5497 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
5498             ;;
5499   esac
5500
5501 fi
5502
5503
5504 # Check whether --enable-admin-flag was given.
5505 if test "${enable_admin_flag+set}" = set; then :
5506   enableval=$enable_admin_flag;  case "$enableval" in
5507     yes)    $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5508
5509             ;;
5510     no)     ;;
5511     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5512 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5513             ;;
5514   esac
5515
5516 fi
5517
5518
5519 # Check whether --enable-nls was given.
5520 if test "${enable_nls+set}" = set; then :
5521   enableval=$enable_nls;
5522 else
5523   enable_nls=yes
5524 fi
5525
5526
5527
5528 # Check whether --with-selinux was given.
5529 if test "${with_selinux+set}" = set; then :
5530   withval=$with_selinux; case $with_selinux in
5531     yes)        SELINUX_USAGE="[-r role] [-t type] "
5532                 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5533
5534                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5535                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5536                 PROGS="${PROGS} sesh"
5537                 SEMAN=1
5538                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5539 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5540 if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   ac_check_lib_save_LIBS=$LIBS
5544 LIBS="-lselinux  $LIBS"
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h.  */
5547
5548 /* Override any GCC internal prototype to avoid an error.
5549    Use char because int might match the return type of a GCC
5550    builtin and then its argument prototype would still apply.  */
5551 #ifdef __cplusplus
5552 extern "C"
5553 #endif
5554 char setkeycreatecon ();
5555 int
5556 main ()
5557 {
5558 return setkeycreatecon ();
5559   ;
5560   return 0;
5561 }
5562 _ACEOF
5563 if ac_fn_c_try_link "$LINENO"; then :
5564   ac_cv_lib_selinux_setkeycreatecon=yes
5565 else
5566   ac_cv_lib_selinux_setkeycreatecon=no
5567 fi
5568 rm -f core conftest.err conftest.$ac_objext \
5569     conftest$ac_exeext conftest.$ac_ext
5570 LIBS=$ac_check_lib_save_LIBS
5571 fi
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5573 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5574 if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
5575   $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5576
5577 fi
5578
5579                 ;;
5580     no)         ;;
5581     *)          as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5582                 ;;
5583 esac
5584 fi
5585
5586
5587 # Check whether --enable-gss_krb5_ccache_name was given.
5588 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5589   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5590 else
5591   check_gss_krb5_ccache_name=no
5592 fi
5593
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5596 $as_echo_n "checking for library containing strerror... " >&6; }
5597 if ${ac_cv_search_strerror+:} false; then :
5598   $as_echo_n "(cached) " >&6
5599 else
5600   ac_func_search_save_LIBS=$LIBS
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h.  */
5603
5604 /* Override any GCC internal prototype to avoid an error.
5605    Use char because int might match the return type of a GCC
5606    builtin and then its argument prototype would still apply.  */
5607 #ifdef __cplusplus
5608 extern "C"
5609 #endif
5610 char strerror ();
5611 int
5612 main ()
5613 {
5614 return strerror ();
5615   ;
5616   return 0;
5617 }
5618 _ACEOF
5619 for ac_lib in '' cposix; do
5620   if test -z "$ac_lib"; then
5621     ac_res="none required"
5622   else
5623     ac_res=-l$ac_lib
5624     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5625   fi
5626   if ac_fn_c_try_link "$LINENO"; then :
5627   ac_cv_search_strerror=$ac_res
5628 fi
5629 rm -f core conftest.err conftest.$ac_objext \
5630     conftest$ac_exeext
5631   if ${ac_cv_search_strerror+:} false; then :
5632   break
5633 fi
5634 done
5635 if ${ac_cv_search_strerror+:} false; then :
5636
5637 else
5638   ac_cv_search_strerror=no
5639 fi
5640 rm conftest.$ac_ext
5641 LIBS=$ac_func_search_save_LIBS
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5644 $as_echo "$ac_cv_search_strerror" >&6; }
5645 ac_res=$ac_cv_search_strerror
5646 if test "$ac_res" != no; then :
5647   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5648
5649 fi
5650
5651 ac_ext=c
5652 ac_cpp='$CPP $CPPFLAGS'
5653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5657 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5658 # On Suns, sometimes $CPP names a directory.
5659 if test -n "$CPP" && test -d "$CPP"; then
5660   CPP=
5661 fi
5662 if test -z "$CPP"; then
5663   if ${ac_cv_prog_CPP+:} false; then :
5664   $as_echo_n "(cached) " >&6
5665 else
5666       # Double quotes because CPP needs to be expanded
5667     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5668     do
5669       ac_preproc_ok=false
5670 for ac_c_preproc_warn_flag in '' yes
5671 do
5672   # Use a header file that comes with gcc, so configuring glibc
5673   # with a fresh cross-compiler works.
5674   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5675   # <limits.h> exists even on freestanding compilers.
5676   # On the NeXT, cc -E runs the code through the compiler's parser,
5677   # not just through cpp. "Syntax error" is here to catch this case.
5678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h.  */
5680 #ifdef __STDC__
5681 # include <limits.h>
5682 #else
5683 # include <assert.h>
5684 #endif
5685                      Syntax error
5686 _ACEOF
5687 if ac_fn_c_try_cpp "$LINENO"; then :
5688
5689 else
5690   # Broken: fails on valid input.
5691 continue
5692 fi
5693 rm -f conftest.err conftest.i conftest.$ac_ext
5694
5695   # OK, works on sane cases.  Now check whether nonexistent headers
5696   # can be detected and how.
5697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h.  */
5699 #include <ac_nonexistent.h>
5700 _ACEOF
5701 if ac_fn_c_try_cpp "$LINENO"; then :
5702   # Broken: success on invalid input.
5703 continue
5704 else
5705   # Passes both tests.
5706 ac_preproc_ok=:
5707 break
5708 fi
5709 rm -f conftest.err conftest.i conftest.$ac_ext
5710
5711 done
5712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5713 rm -f conftest.i conftest.err conftest.$ac_ext
5714 if $ac_preproc_ok; then :
5715   break
5716 fi
5717
5718     done
5719     ac_cv_prog_CPP=$CPP
5720
5721 fi
5722   CPP=$ac_cv_prog_CPP
5723 else
5724   ac_cv_prog_CPP=$CPP
5725 fi
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5727 $as_echo "$CPP" >&6; }
5728 ac_preproc_ok=false
5729 for ac_c_preproc_warn_flag in '' yes
5730 do
5731   # Use a header file that comes with gcc, so configuring glibc
5732   # with a fresh cross-compiler works.
5733   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5734   # <limits.h> exists even on freestanding compilers.
5735   # On the NeXT, cc -E runs the code through the compiler's parser,
5736   # not just through cpp. "Syntax error" is here to catch this case.
5737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h.  */
5739 #ifdef __STDC__
5740 # include <limits.h>
5741 #else
5742 # include <assert.h>
5743 #endif
5744                      Syntax error
5745 _ACEOF
5746 if ac_fn_c_try_cpp "$LINENO"; then :
5747
5748 else
5749   # Broken: fails on valid input.
5750 continue
5751 fi
5752 rm -f conftest.err conftest.i conftest.$ac_ext
5753
5754   # OK, works on sane cases.  Now check whether nonexistent headers
5755   # can be detected and how.
5756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h.  */
5758 #include <ac_nonexistent.h>
5759 _ACEOF
5760 if ac_fn_c_try_cpp "$LINENO"; then :
5761   # Broken: success on invalid input.
5762 continue
5763 else
5764   # Passes both tests.
5765 ac_preproc_ok=:
5766 break
5767 fi
5768 rm -f conftest.err conftest.i conftest.$ac_ext
5769
5770 done
5771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5772 rm -f conftest.i conftest.err conftest.$ac_ext
5773 if $ac_preproc_ok; then :
5774
5775 else
5776   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5778 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5779 See \`config.log' for more details" "$LINENO" 5; }
5780 fi
5781
5782 ac_ext=c
5783 ac_cpp='$CPP $CPPFLAGS'
5784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787
5788 if test -n "$ac_tool_prefix"; then
5789   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}ar; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_AR+:} false; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   if test -n "$AR"; then
5797   ac_cv_prog_AR="$AR" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804     for ac_exec_ext in '' $ac_executable_extensions; do
5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806     ac_cv_prog_AR="${ac_tool_prefix}ar"
5807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811   done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 AR=$ac_cv_prog_AR
5817 if test -n "$AR"; then
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5819 $as_echo "$AR" >&6; }
5820 else
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 fi
5824
5825
5826 fi
5827 if test -z "$ac_cv_prog_AR"; then
5828   ac_ct_AR=$AR
5829   # Extract the first word of "ar", so it can be a program name with args.
5830 set dummy ar; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836   if test -n "$ac_ct_AR"; then
5837   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844     for ac_exec_ext in '' $ac_executable_extensions; do
5845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846     ac_cv_prog_ac_ct_AR="ar"
5847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851   done
5852 IFS=$as_save_IFS
5853
5854 fi
5855 fi
5856 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5857 if test -n "$ac_ct_AR"; then
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5859 $as_echo "$ac_ct_AR" >&6; }
5860 else
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865   if test "x$ac_ct_AR" = x; then
5866     AR="false"
5867   else
5868     case $cross_compiling:$ac_tool_warned in
5869 yes:)
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5872 ac_tool_warned=yes ;;
5873 esac
5874     AR=$ac_ct_AR
5875   fi
5876 else
5877   AR="$ac_cv_prog_AR"
5878 fi
5879
5880 if test -n "$ac_tool_prefix"; then
5881   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if ${ac_cv_prog_RANLIB+:} false; then :
5886   $as_echo_n "(cached) " >&6
5887 else
5888   if test -n "$RANLIB"; then
5889   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896     for ac_exec_ext in '' $ac_executable_extensions; do
5897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903   done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 RANLIB=$ac_cv_prog_RANLIB
5909 if test -n "$RANLIB"; then
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5911 $as_echo "$RANLIB" >&6; }
5912 else
5913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 fi
5916
5917
5918 fi
5919 if test -z "$ac_cv_prog_RANLIB"; then
5920   ac_ct_RANLIB=$RANLIB
5921   # Extract the first word of "ranlib", so it can be a program name with args.
5922 set dummy ranlib; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5926   $as_echo_n "(cached) " >&6
5927 else
5928   if test -n "$ac_ct_RANLIB"; then
5929   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936     for ac_exec_ext in '' $ac_executable_extensions; do
5937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938     ac_cv_prog_ac_ct_RANLIB="ranlib"
5939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943   done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5949 if test -n "$ac_ct_RANLIB"; then
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5951 $as_echo "$ac_ct_RANLIB" >&6; }
5952 else
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5955 fi
5956
5957   if test "x$ac_ct_RANLIB" = x; then
5958     RANLIB=":"
5959   else
5960     case $cross_compiling:$ac_tool_warned in
5961 yes:)
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5964 ac_tool_warned=yes ;;
5965 esac
5966     RANLIB=$ac_ct_RANLIB
5967   fi
5968 else
5969   RANLIB="$ac_cv_prog_RANLIB"
5970 fi
5971
5972 if test X"$AR" = X"false"; then
5973     as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
5974 fi
5975
5976 if test "x$ac_cv_prog_cc_c89" = "xno"; then
5977     as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
5978 fi
5979
5980 if test "$enable_static" = "no"; then
5981     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
5982 $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
5983     enable_static=yes
5984 fi
5985
5986 ac_aux_dir=
5987 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5988   if test -f "$ac_dir/install-sh"; then
5989     ac_aux_dir=$ac_dir
5990     ac_install_sh="$ac_aux_dir/install-sh -c"
5991     break
5992   elif test -f "$ac_dir/install.sh"; then
5993     ac_aux_dir=$ac_dir
5994     ac_install_sh="$ac_aux_dir/install.sh -c"
5995     break
5996   elif test -f "$ac_dir/shtool"; then
5997     ac_aux_dir=$ac_dir
5998     ac_install_sh="$ac_aux_dir/shtool install -c"
5999     break
6000   fi
6001 done
6002 if test -z "$ac_aux_dir"; then
6003   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6004 fi
6005
6006 # These three variables are undocumented and unsupported,
6007 # and are intended to be withdrawn in a future Autoconf release.
6008 # They can cause serious problems if a builder's source tree is in a directory
6009 # whose full name contains unusual characters.
6010 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6011 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6012 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6013
6014
6015 # Make sure we can run config.sub.
6016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6017   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6018
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6020 $as_echo_n "checking build system type... " >&6; }
6021 if ${ac_cv_build+:} false; then :
6022   $as_echo_n "(cached) " >&6
6023 else
6024   ac_build_alias=$build_alias
6025 test "x$ac_build_alias" = x &&
6026   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6027 test "x$ac_build_alias" = x &&
6028   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6029 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6030   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6031
6032 fi
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6034 $as_echo "$ac_cv_build" >&6; }
6035 case $ac_cv_build in
6036 *-*-*) ;;
6037 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6038 esac
6039 build=$ac_cv_build
6040 ac_save_IFS=$IFS; IFS='-'
6041 set x $ac_cv_build
6042 shift
6043 build_cpu=$1
6044 build_vendor=$2
6045 shift; shift
6046 # Remember, the first character of IFS is used to create $*,
6047 # except with old shells:
6048 build_os=$*
6049 IFS=$ac_save_IFS
6050 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6051
6052
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6054 $as_echo_n "checking host system type... " >&6; }
6055 if ${ac_cv_host+:} false; then :
6056   $as_echo_n "(cached) " >&6
6057 else
6058   if test "x$host_alias" = x; then
6059   ac_cv_host=$ac_cv_build
6060 else
6061   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6062     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6063 fi
6064
6065 fi
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6067 $as_echo "$ac_cv_host" >&6; }
6068 case $ac_cv_host in
6069 *-*-*) ;;
6070 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6071 esac
6072 host=$ac_cv_host
6073 ac_save_IFS=$IFS; IFS='-'
6074 set x $ac_cv_host
6075 shift
6076 host_cpu=$1
6077 host_vendor=$2
6078 shift; shift
6079 # Remember, the first character of IFS is used to create $*,
6080 # except with old shells:
6081 host_os=$*
6082 IFS=$ac_save_IFS
6083 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6084
6085
6086
6087
6088 case `pwd` in
6089   *\ * | *\     *)
6090     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6091 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6092 esac
6093
6094
6095
6096 macro_version='2.4.2'
6097 macro_revision='1.3337'
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111 ltmain="$ac_aux_dir/ltmain.sh"
6112
6113 # Backslashify metacharacters that are still active within
6114 # double-quoted strings.
6115 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6116
6117 # Same as above, but do not quote variable references.
6118 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6119
6120 # Sed substitution to delay expansion of an escaped shell variable in a
6121 # double_quote_subst'ed string.
6122 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6123
6124 # Sed substitution to delay expansion of an escaped single quote.
6125 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6126
6127 # Sed substitution to avoid accidental globbing in evaled expressions
6128 no_glob_subst='s/\*/\\\*/g'
6129
6130 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6131 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6132 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6135 $as_echo_n "checking how to print strings... " >&6; }
6136 # Test print first, because it will be a builtin if present.
6137 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6138    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6139   ECHO='print -r --'
6140 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6141   ECHO='printf %s\n'
6142 else
6143   # Use this function as a fallback that always works.
6144   func_fallback_echo ()
6145   {
6146     eval 'cat <<_LTECHO_EOF
6147 $1
6148 _LTECHO_EOF'
6149   }
6150   ECHO='func_fallback_echo'
6151 fi
6152
6153 # func_echo_all arg...
6154 # Invoke $ECHO with all args, space-separated.
6155 func_echo_all ()
6156 {
6157     $ECHO ""
6158 }
6159
6160 case "$ECHO" in
6161   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6162 $as_echo "printf" >&6; } ;;
6163   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6164 $as_echo "print -r" >&6; } ;;
6165   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6166 $as_echo "cat" >&6; } ;;
6167 esac
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6183 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6184 if ${ac_cv_path_SED+:} false; then :
6185   $as_echo_n "(cached) " >&6
6186 else
6187             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6188      for ac_i in 1 2 3 4 5 6 7; do
6189        ac_script="$ac_script$as_nl$ac_script"
6190      done
6191      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6192      { ac_script=; unset ac_script;}
6193      if test -z "$SED"; then
6194   ac_path_SED_found=false
6195   # Loop through the user's path and test for each of PROGNAME-LIST
6196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201     for ac_prog in sed gsed; do
6202     for ac_exec_ext in '' $ac_executable_extensions; do
6203       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6204       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6205 # Check for GNU ac_path_SED and select it if it is found.
6206   # Check for GNU $ac_path_SED
6207 case `"$ac_path_SED" --version 2>&1` in
6208 *GNU*)
6209   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6210 *)
6211   ac_count=0
6212   $as_echo_n 0123456789 >"conftest.in"
6213   while :
6214   do
6215     cat "conftest.in" "conftest.in" >"conftest.tmp"
6216     mv "conftest.tmp" "conftest.in"
6217     cp "conftest.in" "conftest.nl"
6218     $as_echo '' >> "conftest.nl"
6219     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6220     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6221     as_fn_arith $ac_count + 1 && ac_count=$as_val
6222     if test $ac_count -gt ${ac_path_SED_max-0}; then
6223       # Best one so far, save it but keep looking for a better one
6224       ac_cv_path_SED="$ac_path_SED"
6225       ac_path_SED_max=$ac_count
6226     fi
6227     # 10*(2^10) chars as input seems more than enough
6228     test $ac_count -gt 10 && break
6229   done
6230   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6231 esac
6232
6233       $ac_path_SED_found && break 3
6234     done
6235   done
6236   done
6237 IFS=$as_save_IFS
6238   if test -z "$ac_cv_path_SED"; then
6239     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6240   fi
6241 else
6242   ac_cv_path_SED=$SED
6243 fi
6244
6245 fi
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6247 $as_echo "$ac_cv_path_SED" >&6; }
6248  SED="$ac_cv_path_SED"
6249   rm -f conftest.sed
6250
6251 test -z "$SED" && SED=sed
6252 Xsed="$SED -e 1s/^X//"
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6265 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6266 if ${ac_cv_path_GREP+:} false; then :
6267   $as_echo_n "(cached) " >&6
6268 else
6269   if test -z "$GREP"; then
6270   ac_path_GREP_found=false
6271   # Loop through the user's path and test for each of PROGNAME-LIST
6272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6274 do
6275   IFS=$as_save_IFS
6276   test -z "$as_dir" && as_dir=.
6277     for ac_prog in grep ggrep; do
6278     for ac_exec_ext in '' $ac_executable_extensions; do
6279       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6280       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6281 # Check for GNU ac_path_GREP and select it if it is found.
6282   # Check for GNU $ac_path_GREP
6283 case `"$ac_path_GREP" --version 2>&1` in
6284 *GNU*)
6285   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6286 *)
6287   ac_count=0
6288   $as_echo_n 0123456789 >"conftest.in"
6289   while :
6290   do
6291     cat "conftest.in" "conftest.in" >"conftest.tmp"
6292     mv "conftest.tmp" "conftest.in"
6293     cp "conftest.in" "conftest.nl"
6294     $as_echo 'GREP' >> "conftest.nl"
6295     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6296     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6297     as_fn_arith $ac_count + 1 && ac_count=$as_val
6298     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6299       # Best one so far, save it but keep looking for a better one
6300       ac_cv_path_GREP="$ac_path_GREP"
6301       ac_path_GREP_max=$ac_count
6302     fi
6303     # 10*(2^10) chars as input seems more than enough
6304     test $ac_count -gt 10 && break
6305   done
6306   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6307 esac
6308
6309       $ac_path_GREP_found && break 3
6310     done
6311   done
6312   done
6313 IFS=$as_save_IFS
6314   if test -z "$ac_cv_path_GREP"; then
6315     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6316   fi
6317 else
6318   ac_cv_path_GREP=$GREP
6319 fi
6320
6321 fi
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6323 $as_echo "$ac_cv_path_GREP" >&6; }
6324  GREP="$ac_cv_path_GREP"
6325
6326
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6328 $as_echo_n "checking for egrep... " >&6; }
6329 if ${ac_cv_path_EGREP+:} false; then :
6330   $as_echo_n "(cached) " >&6
6331 else
6332   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6333    then ac_cv_path_EGREP="$GREP -E"
6334    else
6335      if test -z "$EGREP"; then
6336   ac_path_EGREP_found=false
6337   # Loop through the user's path and test for each of PROGNAME-LIST
6338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343     for ac_prog in egrep; do
6344     for ac_exec_ext in '' $ac_executable_extensions; do
6345       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6346       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6347 # Check for GNU ac_path_EGREP and select it if it is found.
6348   # Check for GNU $ac_path_EGREP
6349 case `"$ac_path_EGREP" --version 2>&1` in
6350 *GNU*)
6351   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6352 *)
6353   ac_count=0
6354   $as_echo_n 0123456789 >"conftest.in"
6355   while :
6356   do
6357     cat "conftest.in" "conftest.in" >"conftest.tmp"
6358     mv "conftest.tmp" "conftest.in"
6359     cp "conftest.in" "conftest.nl"
6360     $as_echo 'EGREP' >> "conftest.nl"
6361     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6362     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6363     as_fn_arith $ac_count + 1 && ac_count=$as_val
6364     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6365       # Best one so far, save it but keep looking for a better one
6366       ac_cv_path_EGREP="$ac_path_EGREP"
6367       ac_path_EGREP_max=$ac_count
6368     fi
6369     # 10*(2^10) chars as input seems more than enough
6370     test $ac_count -gt 10 && break
6371   done
6372   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6373 esac
6374
6375       $ac_path_EGREP_found && break 3
6376     done
6377   done
6378   done
6379 IFS=$as_save_IFS
6380   if test -z "$ac_cv_path_EGREP"; then
6381     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6382   fi
6383 else
6384   ac_cv_path_EGREP=$EGREP
6385 fi
6386
6387    fi
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6390 $as_echo "$ac_cv_path_EGREP" >&6; }
6391  EGREP="$ac_cv_path_EGREP"
6392
6393
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6395 $as_echo_n "checking for fgrep... " >&6; }
6396 if ${ac_cv_path_FGREP+:} false; then :
6397   $as_echo_n "(cached) " >&6
6398 else
6399   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6400    then ac_cv_path_FGREP="$GREP -F"
6401    else
6402      if test -z "$FGREP"; then
6403   ac_path_FGREP_found=false
6404   # Loop through the user's path and test for each of PROGNAME-LIST
6405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6407 do
6408   IFS=$as_save_IFS
6409   test -z "$as_dir" && as_dir=.
6410     for ac_prog in fgrep; do
6411     for ac_exec_ext in '' $ac_executable_extensions; do
6412       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6413       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6414 # Check for GNU ac_path_FGREP and select it if it is found.
6415   # Check for GNU $ac_path_FGREP
6416 case `"$ac_path_FGREP" --version 2>&1` in
6417 *GNU*)
6418   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6419 *)
6420   ac_count=0
6421   $as_echo_n 0123456789 >"conftest.in"
6422   while :
6423   do
6424     cat "conftest.in" "conftest.in" >"conftest.tmp"
6425     mv "conftest.tmp" "conftest.in"
6426     cp "conftest.in" "conftest.nl"
6427     $as_echo 'FGREP' >> "conftest.nl"
6428     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6429     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6430     as_fn_arith $ac_count + 1 && ac_count=$as_val
6431     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6432       # Best one so far, save it but keep looking for a better one
6433       ac_cv_path_FGREP="$ac_path_FGREP"
6434       ac_path_FGREP_max=$ac_count
6435     fi
6436     # 10*(2^10) chars as input seems more than enough
6437     test $ac_count -gt 10 && break
6438   done
6439   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6440 esac
6441
6442       $ac_path_FGREP_found && break 3
6443     done
6444   done
6445   done
6446 IFS=$as_save_IFS
6447   if test -z "$ac_cv_path_FGREP"; then
6448     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6449   fi
6450 else
6451   ac_cv_path_FGREP=$FGREP
6452 fi
6453
6454    fi
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6457 $as_echo "$ac_cv_path_FGREP" >&6; }
6458  FGREP="$ac_cv_path_FGREP"
6459
6460
6461 test -z "$GREP" && GREP=grep
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 # Check whether --with-gnu-ld was given.
6482 if test "${with_gnu_ld+set}" = set; then :
6483   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6484 else
6485   with_gnu_ld=no
6486 fi
6487
6488 ac_prog=ld
6489 if test "$GCC" = yes; then
6490   # Check if gcc -print-prog-name=ld gives a path.
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6492 $as_echo_n "checking for ld used by $CC... " >&6; }
6493   case $host in
6494   *-*-mingw*)
6495     # gcc leaves a trailing carriage return which upsets mingw
6496     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6497   *)
6498     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6499   esac
6500   case $ac_prog in
6501     # Accept absolute paths.
6502     [\\/]* | ?:[\\/]*)
6503       re_direlt='/[^/][^/]*/\.\./'
6504       # Canonicalize the pathname of ld
6505       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6506       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6507         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6508       done
6509       test -z "$LD" && LD="$ac_prog"
6510       ;;
6511   "")
6512     # If it fails, then pretend we aren't using GCC.
6513     ac_prog=ld
6514     ;;
6515   *)
6516     # If it is relative, then search for the first ld in PATH.
6517     with_gnu_ld=unknown
6518     ;;
6519   esac
6520 elif test "$with_gnu_ld" = yes; then
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6522 $as_echo_n "checking for GNU ld... " >&6; }
6523 else
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6525 $as_echo_n "checking for non-GNU ld... " >&6; }
6526 fi
6527 if ${lt_cv_path_LD+:} false; then :
6528   $as_echo_n "(cached) " >&6
6529 else
6530   if test -z "$LD"; then
6531   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6532   for ac_dir in $PATH; do
6533     IFS="$lt_save_ifs"
6534     test -z "$ac_dir" && ac_dir=.
6535     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6536       lt_cv_path_LD="$ac_dir/$ac_prog"
6537       # Check to see if the program is GNU ld.  I'd rather use --version,
6538       # but apparently some variants of GNU ld only accept -v.
6539       # Break only if it was the GNU/non-GNU ld that we prefer.
6540       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6541       *GNU* | *'with BFD'*)
6542         test "$with_gnu_ld" != no && break
6543         ;;
6544       *)
6545         test "$with_gnu_ld" != yes && break
6546         ;;
6547       esac
6548     fi
6549   done
6550   IFS="$lt_save_ifs"
6551 else
6552   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6553 fi
6554 fi
6555
6556 LD="$lt_cv_path_LD"
6557 if test -n "$LD"; then
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6559 $as_echo "$LD" >&6; }
6560 else
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6563 fi
6564 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6566 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6567 if ${lt_cv_prog_gnu_ld+:} false; then :
6568   $as_echo_n "(cached) " >&6
6569 else
6570   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6571 case `$LD -v 2>&1 </dev/null` in
6572 *GNU* | *'with BFD'*)
6573   lt_cv_prog_gnu_ld=yes
6574   ;;
6575 *)
6576   lt_cv_prog_gnu_ld=no
6577   ;;
6578 esac
6579 fi
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6581 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6582 with_gnu_ld=$lt_cv_prog_gnu_ld
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6593 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6594 if ${lt_cv_path_NM+:} false; then :
6595   $as_echo_n "(cached) " >&6
6596 else
6597   if test -n "$NM"; then
6598   # Let the user override the test.
6599   lt_cv_path_NM="$NM"
6600 else
6601   lt_nm_to_check="${ac_tool_prefix}nm"
6602   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6603     lt_nm_to_check="$lt_nm_to_check nm"
6604   fi
6605   for lt_tmp_nm in $lt_nm_to_check; do
6606     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6607     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6608       IFS="$lt_save_ifs"
6609       test -z "$ac_dir" && ac_dir=.
6610       tmp_nm="$ac_dir/$lt_tmp_nm"
6611       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6612         # Check to see if the nm accepts a BSD-compat flag.
6613         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6614         #   nm: unknown option "B" ignored
6615         # Tru64's nm complains that /dev/null is an invalid object file
6616         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6617         */dev/null* | *'Invalid file or object type'*)
6618           lt_cv_path_NM="$tmp_nm -B"
6619           break
6620           ;;
6621         *)
6622           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6623           */dev/null*)
6624             lt_cv_path_NM="$tmp_nm -p"
6625             break
6626             ;;
6627           *)
6628             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6629             continue # so that we can try to find one that supports BSD flags
6630             ;;
6631           esac
6632           ;;
6633         esac
6634       fi
6635     done
6636     IFS="$lt_save_ifs"
6637   done
6638   : ${lt_cv_path_NM=no}
6639 fi
6640 fi
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6642 $as_echo "$lt_cv_path_NM" >&6; }
6643 if test "$lt_cv_path_NM" != "no"; then
6644   NM="$lt_cv_path_NM"
6645 else
6646   # Didn't find any BSD compatible name lister, look for dumpbin.
6647   if test -n "$DUMPBIN"; then :
6648     # Let the user override the test.
6649   else
6650     if test -n "$ac_tool_prefix"; then
6651   for ac_prog in dumpbin "link -dump"
6652   do
6653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_DUMPBIN+:} false; then :
6658   $as_echo_n "(cached) " >&6
6659 else
6660   if test -n "$DUMPBIN"; then
6661   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668     for ac_exec_ext in '' $ac_executable_extensions; do
6669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672     break 2
6673   fi
6674 done
6675   done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 DUMPBIN=$ac_cv_prog_DUMPBIN
6681 if test -n "$DUMPBIN"; then
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6683 $as_echo "$DUMPBIN" >&6; }
6684 else
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689
6690     test -n "$DUMPBIN" && break
6691   done
6692 fi
6693 if test -z "$DUMPBIN"; then
6694   ac_ct_DUMPBIN=$DUMPBIN
6695   for ac_prog in dumpbin "link -dump"
6696 do
6697   # Extract the first word of "$ac_prog", so it can be a program name with args.
6698 set dummy $ac_prog; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6702   $as_echo_n "(cached) " >&6
6703 else
6704   if test -n "$ac_ct_DUMPBIN"; then
6705   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712     for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719   done
6720 IFS=$as_save_IFS
6721
6722 fi
6723 fi
6724 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6725 if test -n "$ac_ct_DUMPBIN"; then
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6727 $as_echo "$ac_ct_DUMPBIN" >&6; }
6728 else
6729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732
6733
6734   test -n "$ac_ct_DUMPBIN" && break
6735 done
6736
6737   if test "x$ac_ct_DUMPBIN" = x; then
6738     DUMPBIN=":"
6739   else
6740     case $cross_compiling:$ac_tool_warned in
6741 yes:)
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744 ac_tool_warned=yes ;;
6745 esac
6746     DUMPBIN=$ac_ct_DUMPBIN
6747   fi
6748 fi
6749
6750     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6751     *COFF*)
6752       DUMPBIN="$DUMPBIN -symbols"
6753       ;;
6754     *)
6755       DUMPBIN=:
6756       ;;
6757     esac
6758   fi
6759
6760   if test "$DUMPBIN" != ":"; then
6761     NM="$DUMPBIN"
6762   fi
6763 fi
6764 test -z "$NM" && NM=nm
6765
6766
6767
6768
6769
6770
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6772 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6773 if ${lt_cv_nm_interface+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   lt_cv_nm_interface="BSD nm"
6777   echo "int some_variable = 0;" > conftest.$ac_ext
6778   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6779   (eval "$ac_compile" 2>conftest.err)
6780   cat conftest.err >&5
6781   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6782   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6783   cat conftest.err >&5
6784   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6785   cat conftest.out >&5
6786   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6787     lt_cv_nm_interface="MS dumpbin"
6788   fi
6789   rm -f conftest*
6790 fi
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6792 $as_echo "$lt_cv_nm_interface" >&6; }
6793
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6795 $as_echo_n "checking whether ln -s works... " >&6; }
6796 LN_S=$as_ln_s
6797 if test "$LN_S" = "ln -s"; then
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6799 $as_echo "yes" >&6; }
6800 else
6801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6802 $as_echo "no, using $LN_S" >&6; }
6803 fi
6804
6805 # find the maximum length of command line arguments
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6807 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6808 if ${lt_cv_sys_max_cmd_len+:} false; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811     i=0
6812   teststring="ABCD"
6813
6814   case $build_os in
6815   msdosdjgpp*)
6816     # On DJGPP, this test can blow up pretty badly due to problems in libc
6817     # (any single argument exceeding 2000 bytes causes a buffer overrun
6818     # during glob expansion).  Even if it were fixed, the result of this
6819     # check would be larger than it should be.
6820     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6821     ;;
6822
6823   gnu*)
6824     # Under GNU Hurd, this test is not required because there is
6825     # no limit to the length of command line arguments.
6826     # Libtool will interpret -1 as no limit whatsoever
6827     lt_cv_sys_max_cmd_len=-1;
6828     ;;
6829
6830   cygwin* | mingw* | cegcc*)
6831     # On Win9x/ME, this test blows up -- it succeeds, but takes
6832     # about 5 minutes as the teststring grows exponentially.
6833     # Worse, since 9x/ME are not pre-emptively multitasking,
6834     # you end up with a "frozen" computer, even though with patience
6835     # the test eventually succeeds (with a max line length of 256k).
6836     # Instead, let's just punt: use the minimum linelength reported by
6837     # all of the supported platforms: 8192 (on NT/2K/XP).
6838     lt_cv_sys_max_cmd_len=8192;
6839     ;;
6840
6841   mint*)
6842     # On MiNT this can take a long time and run out of memory.
6843     lt_cv_sys_max_cmd_len=8192;
6844     ;;
6845
6846   amigaos*)
6847     # On AmigaOS with pdksh, this test takes hours, literally.
6848     # So we just punt and use a minimum line length of 8192.
6849     lt_cv_sys_max_cmd_len=8192;
6850     ;;
6851
6852   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6853     # This has been around since 386BSD, at least.  Likely further.
6854     if test -x /sbin/sysctl; then
6855       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6856     elif test -x /usr/sbin/sysctl; then
6857       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6858     else
6859       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6860     fi
6861     # And add a safety zone
6862     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6863     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6864     ;;
6865
6866   interix*)
6867     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6868     lt_cv_sys_max_cmd_len=196608
6869     ;;
6870
6871   os2*)
6872     # The test takes a long time on OS/2.
6873     lt_cv_sys_max_cmd_len=8192
6874     ;;
6875
6876   osf*)
6877     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6878     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6879     # nice to cause kernel panics so lets avoid the loop below.
6880     # First set a reasonable default.
6881     lt_cv_sys_max_cmd_len=16384
6882     #
6883     if test -x /sbin/sysconfig; then
6884       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6885         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6886       esac
6887     fi
6888     ;;
6889   sco3.2v5*)
6890     lt_cv_sys_max_cmd_len=102400
6891     ;;
6892   sysv5* | sco5v6* | sysv4.2uw2*)
6893     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6894     if test -n "$kargmax"; then
6895       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6896     else
6897       lt_cv_sys_max_cmd_len=32768
6898     fi
6899     ;;
6900   *)
6901     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6902     if test -n "$lt_cv_sys_max_cmd_len"; then
6903       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6904       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6905     else
6906       # Make teststring a little bigger before we do anything with it.
6907       # a 1K string should be a reasonable start.
6908       for i in 1 2 3 4 5 6 7 8 ; do
6909         teststring=$teststring$teststring
6910       done
6911       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6912       # If test is not a shell built-in, we'll probably end up computing a
6913       # maximum length that is only half of the actual maximum length, but
6914       # we can't tell.
6915       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6916                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6917               test $i != 17 # 1/2 MB should be enough
6918       do
6919         i=`expr $i + 1`
6920         teststring=$teststring$teststring
6921       done
6922       # Only check the string length outside the loop.
6923       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6924       teststring=
6925       # Add a significant safety factor because C++ compilers can tack on
6926       # massive amounts of additional arguments before passing them to the
6927       # linker.  It appears as though 1/2 is a usable value.
6928       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6929     fi
6930     ;;
6931   esac
6932
6933 fi
6934
6935 if test -n $lt_cv_sys_max_cmd_len ; then
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6937 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6938 else
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6940 $as_echo "none" >&6; }
6941 fi
6942 max_cmd_len=$lt_cv_sys_max_cmd_len
6943
6944
6945
6946
6947
6948
6949 : ${CP="cp -f"}
6950 : ${MV="mv -f"}
6951 : ${RM="rm -f"}
6952
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6954 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6955 # Try some XSI features
6956 xsi_shell=no
6957 ( _lt_dummy="a/b/c"
6958   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6959       = c,a/b,b/c, \
6960     && eval 'test $(( 1 + 1 )) -eq 2 \
6961     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6962   && xsi_shell=yes
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6964 $as_echo "$xsi_shell" >&6; }
6965
6966
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6968 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6969 lt_shell_append=no
6970 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6971     >/dev/null 2>&1 \
6972   && lt_shell_append=yes
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6974 $as_echo "$lt_shell_append" >&6; }
6975
6976
6977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6978   lt_unset=unset
6979 else
6980   lt_unset=false
6981 fi
6982
6983
6984
6985
6986
6987 # test EBCDIC or ASCII
6988 case `echo X|tr X '\101'` in
6989  A) # ASCII based system
6990     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6991   lt_SP2NL='tr \040 \012'
6992   lt_NL2SP='tr \015\012 \040\040'
6993   ;;
6994  *) # EBCDIC based system
6995   lt_SP2NL='tr \100 \n'
6996   lt_NL2SP='tr \r\n \100\100'
6997   ;;
6998 esac
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7009 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7010 if ${lt_cv_to_host_file_cmd+:} false; then :
7011   $as_echo_n "(cached) " >&6
7012 else
7013   case $host in
7014   *-*-mingw* )
7015     case $build in
7016       *-*-mingw* ) # actually msys
7017         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7018         ;;
7019       *-*-cygwin* )
7020         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7021         ;;
7022       * ) # otherwise, assume *nix
7023         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7024         ;;
7025     esac
7026     ;;
7027   *-*-cygwin* )
7028     case $build in
7029       *-*-mingw* ) # actually msys
7030         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7031         ;;
7032       *-*-cygwin* )
7033         lt_cv_to_host_file_cmd=func_convert_file_noop
7034         ;;
7035       * ) # otherwise, assume *nix
7036         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7037         ;;
7038     esac
7039     ;;
7040   * ) # unhandled hosts (and "normal" native builds)
7041     lt_cv_to_host_file_cmd=func_convert_file_noop
7042     ;;
7043 esac
7044
7045 fi
7046
7047 to_host_file_cmd=$lt_cv_to_host_file_cmd
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7049 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7050
7051
7052
7053
7054
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7056 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7057 if ${lt_cv_to_tool_file_cmd+:} false; then :
7058   $as_echo_n "(cached) " >&6
7059 else
7060   #assume ordinary cross tools, or native build.
7061 lt_cv_to_tool_file_cmd=func_convert_file_noop
7062 case $host in
7063   *-*-mingw* )
7064     case $build in
7065       *-*-mingw* ) # actually msys
7066         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7067         ;;
7068     esac
7069     ;;
7070 esac
7071
7072 fi
7073
7074 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7076 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7077
7078
7079
7080
7081
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7083 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7084 if ${lt_cv_ld_reload_flag+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   lt_cv_ld_reload_flag='-r'
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7090 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7091 reload_flag=$lt_cv_ld_reload_flag
7092 case $reload_flag in
7093 "" | " "*) ;;
7094 *) reload_flag=" $reload_flag" ;;
7095 esac
7096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7097 case $host_os in
7098   cygwin* | mingw* | pw32* | cegcc*)
7099     if test "$GCC" != yes; then
7100       reload_cmds=false
7101     fi
7102     ;;
7103   darwin*)
7104     if test "$GCC" = yes; then
7105       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7106     else
7107       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7108     fi
7109     ;;
7110 esac
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120 if test -n "$ac_tool_prefix"; then
7121   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7122 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_OBJDUMP+:} false; then :
7126   $as_echo_n "(cached) " >&6
7127 else
7128   if test -n "$OBJDUMP"; then
7129   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134   IFS=$as_save_IFS
7135   test -z "$as_dir" && as_dir=.
7136     for ac_exec_ext in '' $ac_executable_extensions; do
7137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140     break 2
7141   fi
7142 done
7143   done
7144 IFS=$as_save_IFS
7145
7146 fi
7147 fi
7148 OBJDUMP=$ac_cv_prog_OBJDUMP
7149 if test -n "$OBJDUMP"; then
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7151 $as_echo "$OBJDUMP" >&6; }
7152 else
7153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7155 fi
7156
7157
7158 fi
7159 if test -z "$ac_cv_prog_OBJDUMP"; then
7160   ac_ct_OBJDUMP=$OBJDUMP
7161   # Extract the first word of "objdump", so it can be a program name with args.
7162 set dummy objdump; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7166   $as_echo_n "(cached) " >&6
7167 else
7168   if test -n "$ac_ct_OBJDUMP"; then
7169   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176     for ac_exec_ext in '' $ac_executable_extensions; do
7177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183   done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7189 if test -n "$ac_ct_OBJDUMP"; then
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7191 $as_echo "$ac_ct_OBJDUMP" >&6; }
7192 else
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197   if test "x$ac_ct_OBJDUMP" = x; then
7198     OBJDUMP="false"
7199   else
7200     case $cross_compiling:$ac_tool_warned in
7201 yes:)
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204 ac_tool_warned=yes ;;
7205 esac
7206     OBJDUMP=$ac_ct_OBJDUMP
7207   fi
7208 else
7209   OBJDUMP="$ac_cv_prog_OBJDUMP"
7210 fi
7211
7212 test -z "$OBJDUMP" && OBJDUMP=objdump
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7223 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7224 if ${lt_cv_deplibs_check_method+:} false; then :
7225   $as_echo_n "(cached) " >&6
7226 else
7227   lt_cv_file_magic_cmd='$MAGIC_CMD'
7228 lt_cv_file_magic_test_file=
7229 lt_cv_deplibs_check_method='unknown'
7230 # Need to set the preceding variable on all platforms that support
7231 # interlibrary dependencies.
7232 # 'none' -- dependencies not supported.
7233 # `unknown' -- same as none, but documents that we really don't know.
7234 # 'pass_all' -- all dependencies passed with no checks.
7235 # 'test_compile' -- check by making test program.
7236 # 'file_magic [[regex]]' -- check by looking for files in library path
7237 # which responds to the $file_magic_cmd with a given extended regex.
7238 # If you have `file' or equivalent on your system and you're not sure
7239 # whether `pass_all' will *always* work, you probably want this one.
7240
7241 case $host_os in
7242 aix[4-9]*)
7243   lt_cv_deplibs_check_method=pass_all
7244   ;;
7245
7246 beos*)
7247   lt_cv_deplibs_check_method=pass_all
7248   ;;
7249
7250 bsdi[45]*)
7251   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7252   lt_cv_file_magic_cmd='/usr/bin/file -L'
7253   lt_cv_file_magic_test_file=/shlib/libc.so
7254   ;;
7255
7256 cygwin*)
7257   # func_win32_libid is a shell function defined in ltmain.sh
7258   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7259   lt_cv_file_magic_cmd='func_win32_libid'
7260   ;;
7261
7262 mingw* | pw32*)
7263   # Base MSYS/MinGW do not provide the 'file' command needed by
7264   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7265   # unless we find 'file', for example because we are cross-compiling.
7266   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7267   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7268     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7269     lt_cv_file_magic_cmd='func_win32_libid'
7270   else
7271     # Keep this pattern in sync with the one in func_win32_libid.
7272     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7273     lt_cv_file_magic_cmd='$OBJDUMP -f'
7274   fi
7275   ;;
7276
7277 cegcc*)
7278   # use the weaker test based on 'objdump'. See mingw*.
7279   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7280   lt_cv_file_magic_cmd='$OBJDUMP -f'
7281   ;;
7282
7283 darwin* | rhapsody*)
7284   lt_cv_deplibs_check_method=pass_all
7285   ;;
7286
7287 freebsd* | dragonfly*)
7288   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7289     case $host_cpu in
7290     i*86 )
7291       # Not sure whether the presence of OpenBSD here was a mistake.
7292       # Let's accept both of them until this is cleared up.
7293       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7294       lt_cv_file_magic_cmd=/usr/bin/file
7295       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7296       ;;
7297     esac
7298   else
7299     lt_cv_deplibs_check_method=pass_all
7300   fi
7301   ;;
7302
7303 gnu*)
7304   lt_cv_deplibs_check_method=pass_all
7305   ;;
7306
7307 haiku*)
7308   lt_cv_deplibs_check_method=pass_all
7309   ;;
7310
7311 hpux10.20* | hpux11*)
7312   lt_cv_file_magic_cmd=/usr/bin/file
7313   case $host_cpu in
7314   ia64*)
7315     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7316     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7317     ;;
7318   hppa*64*)
7319     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7320     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7321     ;;
7322   *)
7323     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7324     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7325     ;;
7326   esac
7327   ;;
7328
7329 interix[3-9]*)
7330   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7331   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7332   ;;
7333
7334 irix5* | irix6* | nonstopux*)
7335   case $LD in
7336   *-32|*"-32 ") libmagic=32-bit;;
7337   *-n32|*"-n32 ") libmagic=N32;;
7338   *-64|*"-64 ") libmagic=64-bit;;
7339   *) libmagic=never-match;;
7340   esac
7341   lt_cv_deplibs_check_method=pass_all
7342   ;;
7343
7344 # This must be glibc/ELF.
7345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7346   lt_cv_deplibs_check_method=pass_all
7347   ;;
7348
7349 netbsd*)
7350   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7351     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7352   else
7353     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7354   fi
7355   ;;
7356
7357 newos6*)
7358   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7359   lt_cv_file_magic_cmd=/usr/bin/file
7360   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7361   ;;
7362
7363 *nto* | *qnx*)
7364   lt_cv_deplibs_check_method=pass_all
7365   ;;
7366
7367 openbsd*)
7368   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7369     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7370   else
7371     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7372   fi
7373   ;;
7374
7375 osf3* | osf4* | osf5*)
7376   lt_cv_deplibs_check_method=pass_all
7377   ;;
7378
7379 rdos*)
7380   lt_cv_deplibs_check_method=pass_all
7381   ;;
7382
7383 solaris*)
7384   lt_cv_deplibs_check_method=pass_all
7385   ;;
7386
7387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7388   lt_cv_deplibs_check_method=pass_all
7389   ;;
7390
7391 sysv4 | sysv4.3*)
7392   case $host_vendor in
7393   motorola)
7394     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]'
7395     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7396     ;;
7397   ncr)
7398     lt_cv_deplibs_check_method=pass_all
7399     ;;
7400   sequent)
7401     lt_cv_file_magic_cmd='/bin/file'
7402     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7403     ;;
7404   sni)
7405     lt_cv_file_magic_cmd='/bin/file'
7406     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7407     lt_cv_file_magic_test_file=/lib/libc.so
7408     ;;
7409   siemens)
7410     lt_cv_deplibs_check_method=pass_all
7411     ;;
7412   pc)
7413     lt_cv_deplibs_check_method=pass_all
7414     ;;
7415   esac
7416   ;;
7417
7418 tpf*)
7419   lt_cv_deplibs_check_method=pass_all
7420   ;;
7421 esac
7422
7423 fi
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7425 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7426
7427 file_magic_glob=
7428 want_nocaseglob=no
7429 if test "$build" = "$host"; then
7430   case $host_os in
7431   mingw* | pw32*)
7432     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7433       want_nocaseglob=yes
7434     else
7435       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7436     fi
7437     ;;
7438   esac
7439 fi
7440
7441 file_magic_cmd=$lt_cv_file_magic_cmd
7442 deplibs_check_method=$lt_cv_deplibs_check_method
7443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466 if test -n "$ac_tool_prefix"; then
7467   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7468 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if ${ac_cv_prog_DLLTOOL+:} false; then :
7472   $as_echo_n "(cached) " >&6
7473 else
7474   if test -n "$DLLTOOL"; then
7475   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480   IFS=$as_save_IFS
7481   test -z "$as_dir" && as_dir=.
7482     for ac_exec_ext in '' $ac_executable_extensions; do
7483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486     break 2
7487   fi
7488 done
7489   done
7490 IFS=$as_save_IFS
7491
7492 fi
7493 fi
7494 DLLTOOL=$ac_cv_prog_DLLTOOL
7495 if test -n "$DLLTOOL"; then
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7497 $as_echo "$DLLTOOL" >&6; }
7498 else
7499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7501 fi
7502
7503
7504 fi
7505 if test -z "$ac_cv_prog_DLLTOOL"; then
7506   ac_ct_DLLTOOL=$DLLTOOL
7507   # Extract the first word of "dlltool", so it can be a program name with args.
7508 set dummy dlltool; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7512   $as_echo_n "(cached) " >&6
7513 else
7514   if test -n "$ac_ct_DLLTOOL"; then
7515   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520   IFS=$as_save_IFS
7521   test -z "$as_dir" && as_dir=.
7522     for ac_exec_ext in '' $ac_executable_extensions; do
7523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7524     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526     break 2
7527   fi
7528 done
7529   done
7530 IFS=$as_save_IFS
7531
7532 fi
7533 fi
7534 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7535 if test -n "$ac_ct_DLLTOOL"; then
7536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7537 $as_echo "$ac_ct_DLLTOOL" >&6; }
7538 else
7539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541 fi
7542
7543   if test "x$ac_ct_DLLTOOL" = x; then
7544     DLLTOOL="false"
7545   else
7546     case $cross_compiling:$ac_tool_warned in
7547 yes:)
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7550 ac_tool_warned=yes ;;
7551 esac
7552     DLLTOOL=$ac_ct_DLLTOOL
7553   fi
7554 else
7555   DLLTOOL="$ac_cv_prog_DLLTOOL"
7556 fi
7557
7558 test -z "$DLLTOOL" && DLLTOOL=dlltool
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7570 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7571 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7572   $as_echo_n "(cached) " >&6
7573 else
7574   lt_cv_sharedlib_from_linklib_cmd='unknown'
7575
7576 case $host_os in
7577 cygwin* | mingw* | pw32* | cegcc*)
7578   # two different shell functions defined in ltmain.sh
7579   # decide which to use based on capabilities of $DLLTOOL
7580   case `$DLLTOOL --help 2>&1` in
7581   *--identify-strict*)
7582     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7583     ;;
7584   *)
7585     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7586     ;;
7587   esac
7588   ;;
7589 *)
7590   # fallback: assume linklib IS sharedlib
7591   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7592   ;;
7593 esac
7594
7595 fi
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7597 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7598 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7599 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7600
7601
7602
7603
7604
7605
7606
7607 if test -n "$ac_tool_prefix"; then
7608   for ac_prog in ar
7609   do
7610     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_AR+:} false; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   if test -n "$AR"; then
7618   ac_cv_prog_AR="$AR" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625     for ac_exec_ext in '' $ac_executable_extensions; do
7626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632   done
7633 IFS=$as_save_IFS
7634
7635 fi
7636 fi
7637 AR=$ac_cv_prog_AR
7638 if test -n "$AR"; then
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7640 $as_echo "$AR" >&6; }
7641 else
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644 fi
7645
7646
7647     test -n "$AR" && break
7648   done
7649 fi
7650 if test -z "$AR"; then
7651   ac_ct_AR=$AR
7652   for ac_prog in ar
7653 do
7654   # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7659   $as_echo_n "(cached) " >&6
7660 else
7661   if test -n "$ac_ct_AR"; then
7662   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667   IFS=$as_save_IFS
7668   test -z "$as_dir" && as_dir=.
7669     for ac_exec_ext in '' $ac_executable_extensions; do
7670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671     ac_cv_prog_ac_ct_AR="$ac_prog"
7672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673     break 2
7674   fi
7675 done
7676   done
7677 IFS=$as_save_IFS
7678
7679 fi
7680 fi
7681 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7682 if test -n "$ac_ct_AR"; then
7683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7684 $as_echo "$ac_ct_AR" >&6; }
7685 else
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688 fi
7689
7690
7691   test -n "$ac_ct_AR" && break
7692 done
7693
7694   if test "x$ac_ct_AR" = x; then
7695     AR="false"
7696   else
7697     case $cross_compiling:$ac_tool_warned in
7698 yes:)
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7701 ac_tool_warned=yes ;;
7702 esac
7703     AR=$ac_ct_AR
7704   fi
7705 fi
7706
7707 : ${AR=ar}
7708 : ${AR_FLAGS=cru}
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7721 $as_echo_n "checking for archiver @FILE support... " >&6; }
7722 if ${lt_cv_ar_at_file+:} false; then :
7723   $as_echo_n "(cached) " >&6
7724 else
7725   lt_cv_ar_at_file=no
7726    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h.  */
7728
7729 int
7730 main ()
7731 {
7732
7733   ;
7734   return 0;
7735 }
7736 _ACEOF
7737 if ac_fn_c_try_compile "$LINENO"; then :
7738   echo conftest.$ac_objext > conftest.lst
7739       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7740       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7741   (eval $lt_ar_try) 2>&5
7742   ac_status=$?
7743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7744   test $ac_status = 0; }
7745       if test "$ac_status" -eq 0; then
7746         # Ensure the archiver fails upon bogus file names.
7747         rm -f conftest.$ac_objext libconftest.a
7748         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7749   (eval $lt_ar_try) 2>&5
7750   ac_status=$?
7751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7752   test $ac_status = 0; }
7753         if test "$ac_status" -ne 0; then
7754           lt_cv_ar_at_file=@
7755         fi
7756       fi
7757       rm -f conftest.* libconftest.a
7758
7759 fi
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7764 $as_echo "$lt_cv_ar_at_file" >&6; }
7765
7766 if test "x$lt_cv_ar_at_file" = xno; then
7767   archiver_list_spec=
7768 else
7769   archiver_list_spec=$lt_cv_ar_at_file
7770 fi
7771
7772
7773
7774
7775
7776
7777
7778 if test -n "$ac_tool_prefix"; then
7779   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7780 set dummy ${ac_tool_prefix}strip; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_prog_STRIP+:} false; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   if test -n "$STRIP"; then
7787   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792   IFS=$as_save_IFS
7793   test -z "$as_dir" && as_dir=.
7794     for ac_exec_ext in '' $ac_executable_extensions; do
7795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798     break 2
7799   fi
7800 done
7801   done
7802 IFS=$as_save_IFS
7803
7804 fi
7805 fi
7806 STRIP=$ac_cv_prog_STRIP
7807 if test -n "$STRIP"; then
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7809 $as_echo "$STRIP" >&6; }
7810 else
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813 fi
7814
7815
7816 fi
7817 if test -z "$ac_cv_prog_STRIP"; then
7818   ac_ct_STRIP=$STRIP
7819   # Extract the first word of "strip", so it can be a program name with args.
7820 set dummy strip; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7824   $as_echo_n "(cached) " >&6
7825 else
7826   if test -n "$ac_ct_STRIP"; then
7827   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7831 do
7832   IFS=$as_save_IFS
7833   test -z "$as_dir" && as_dir=.
7834     for ac_exec_ext in '' $ac_executable_extensions; do
7835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836     ac_cv_prog_ac_ct_STRIP="strip"
7837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838     break 2
7839   fi
7840 done
7841   done
7842 IFS=$as_save_IFS
7843
7844 fi
7845 fi
7846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7847 if test -n "$ac_ct_STRIP"; then
7848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7849 $as_echo "$ac_ct_STRIP" >&6; }
7850 else
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7853 fi
7854
7855   if test "x$ac_ct_STRIP" = x; then
7856     STRIP=":"
7857   else
7858     case $cross_compiling:$ac_tool_warned in
7859 yes:)
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862 ac_tool_warned=yes ;;
7863 esac
7864     STRIP=$ac_ct_STRIP
7865   fi
7866 else
7867   STRIP="$ac_cv_prog_STRIP"
7868 fi
7869
7870 test -z "$STRIP" && STRIP=:
7871
7872
7873
7874
7875
7876
7877 if test -n "$ac_tool_prefix"; then
7878   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_prog_RANLIB+:} false; then :
7883   $as_echo_n "(cached) " >&6
7884 else
7885   if test -n "$RANLIB"; then
7886   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893     for ac_exec_ext in '' $ac_executable_extensions; do
7894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897     break 2
7898   fi
7899 done
7900   done
7901 IFS=$as_save_IFS
7902
7903 fi
7904 fi
7905 RANLIB=$ac_cv_prog_RANLIB
7906 if test -n "$RANLIB"; then
7907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7908 $as_echo "$RANLIB" >&6; }
7909 else
7910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7912 fi
7913
7914
7915 fi
7916 if test -z "$ac_cv_prog_RANLIB"; then
7917   ac_ct_RANLIB=$RANLIB
7918   # Extract the first word of "ranlib", so it can be a program name with args.
7919 set dummy ranlib; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7923   $as_echo_n "(cached) " >&6
7924 else
7925   if test -n "$ac_ct_RANLIB"; then
7926   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7930 do
7931   IFS=$as_save_IFS
7932   test -z "$as_dir" && as_dir=.
7933     for ac_exec_ext in '' $ac_executable_extensions; do
7934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935     ac_cv_prog_ac_ct_RANLIB="ranlib"
7936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937     break 2
7938   fi
7939 done
7940   done
7941 IFS=$as_save_IFS
7942
7943 fi
7944 fi
7945 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7946 if test -n "$ac_ct_RANLIB"; then
7947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7948 $as_echo "$ac_ct_RANLIB" >&6; }
7949 else
7950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7952 fi
7953
7954   if test "x$ac_ct_RANLIB" = x; then
7955     RANLIB=":"
7956   else
7957     case $cross_compiling:$ac_tool_warned in
7958 yes:)
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961 ac_tool_warned=yes ;;
7962 esac
7963     RANLIB=$ac_ct_RANLIB
7964   fi
7965 else
7966   RANLIB="$ac_cv_prog_RANLIB"
7967 fi
7968
7969 test -z "$RANLIB" && RANLIB=:
7970
7971
7972
7973
7974
7975
7976 # Determine commands to create old-style static archives.
7977 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7978 old_postinstall_cmds='chmod 644 $oldlib'
7979 old_postuninstall_cmds=
7980
7981 if test -n "$RANLIB"; then
7982   case $host_os in
7983   openbsd*)
7984     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7985     ;;
7986   *)
7987     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7988     ;;
7989   esac
7990   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7991 fi
7992
7993 case $host_os in
7994   darwin*)
7995     lock_old_archive_extraction=yes ;;
7996   *)
7997     lock_old_archive_extraction=no ;;
7998 esac
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020 for ac_prog in gawk mawk nawk awk
8021 do
8022   # Extract the first word of "$ac_prog", so it can be a program name with args.
8023 set dummy $ac_prog; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if ${ac_cv_prog_AWK+:} false; then :
8027   $as_echo_n "(cached) " >&6
8028 else
8029   if test -n "$AWK"; then
8030   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8034 do
8035   IFS=$as_save_IFS
8036   test -z "$as_dir" && as_dir=.
8037     for ac_exec_ext in '' $ac_executable_extensions; do
8038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039     ac_cv_prog_AWK="$ac_prog"
8040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041     break 2
8042   fi
8043 done
8044   done
8045 IFS=$as_save_IFS
8046
8047 fi
8048 fi
8049 AWK=$ac_cv_prog_AWK
8050 if test -n "$AWK"; then
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8052 $as_echo "$AWK" >&6; }
8053 else
8054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8056 fi
8057
8058
8059   test -n "$AWK" && break
8060 done
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 # If no C compiler was specified, use CC.
8081 LTCC=${LTCC-"$CC"}
8082
8083 # If no C compiler flags were specified, use CFLAGS.
8084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8085
8086 # Allow CC to be a program name with arguments.
8087 compiler=$CC
8088
8089
8090 # Check for command to grab the raw symbol name followed by C symbol from nm.
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8092 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8093 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8094   $as_echo_n "(cached) " >&6
8095 else
8096
8097 # These are sane defaults that work on at least a few old systems.
8098 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8099
8100 # Character class describing NM global symbol codes.
8101 symcode='[BCDEGRST]'
8102
8103 # Regexp to match symbols that can be accessed directly from C.
8104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8105
8106 # Define system-specific variables.
8107 case $host_os in
8108 aix*)
8109   symcode='[BCDT]'
8110   ;;
8111 cygwin* | mingw* | pw32* | cegcc*)
8112   symcode='[ABCDGISTW]'
8113   ;;
8114 hpux*)
8115   if test "$host_cpu" = ia64; then
8116     symcode='[ABCDEGRST]'
8117   fi
8118   ;;
8119 irix* | nonstopux*)
8120   symcode='[BCDEGRST]'
8121   ;;
8122 osf*)
8123   symcode='[BCDEGQRST]'
8124   ;;
8125 solaris*)
8126   symcode='[BDRT]'
8127   ;;
8128 sco3.2v5*)
8129   symcode='[DT]'
8130   ;;
8131 sysv4.2uw2*)
8132   symcode='[DT]'
8133   ;;
8134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8135   symcode='[ABDT]'
8136   ;;
8137 sysv4)
8138   symcode='[DFNSTU]'
8139   ;;
8140 esac
8141
8142 # If we're using GNU nm, then use its standard symbol codes.
8143 case `$NM -V 2>&1` in
8144 *GNU* | *'with BFD'*)
8145   symcode='[ABCDGIRSTW]' ;;
8146 esac
8147
8148 # Transform an extracted symbol line into a proper C declaration.
8149 # Some systems (esp. on ia64) link data and code symbols differently,
8150 # so use this general approach.
8151 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8152
8153 # Transform an extracted symbol line into symbol name and symbol address
8154 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8155 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'"
8156
8157 # Handle CRLF in mingw tool chain
8158 opt_cr=
8159 case $build_os in
8160 mingw*)
8161   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8162   ;;
8163 esac
8164
8165 # Try without a prefix underscore, then with it.
8166 for ac_symprfx in "" "_"; do
8167
8168   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8169   symxfrm="\\1 $ac_symprfx\\2 \\2"
8170
8171   # Write the raw and C identifiers.
8172   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8173     # Fake it for dumpbin and say T for any non-static function
8174     # and D for any global variable.
8175     # Also find C++ and __fastcall symbols from MSVC++,
8176     # which start with @ or ?.
8177     lt_cv_sys_global_symbol_pipe="$AWK '"\
8178 "     {last_section=section; section=\$ 3};"\
8179 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8180 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8181 "     \$ 0!~/External *\|/{next};"\
8182 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8183 "     {if(hide[section]) next};"\
8184 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8185 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8186 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8187 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8188 "     ' prfx=^$ac_symprfx"
8189   else
8190     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8191   fi
8192   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8193
8194   # Check to see that the pipe works correctly.
8195   pipe_works=no
8196
8197   rm -f conftest*
8198   cat > conftest.$ac_ext <<_LT_EOF
8199 #ifdef __cplusplus
8200 extern "C" {
8201 #endif
8202 char nm_test_var;
8203 void nm_test_func(void);
8204 void nm_test_func(void){}
8205 #ifdef __cplusplus
8206 }
8207 #endif
8208 int main(){nm_test_var='a';nm_test_func();return(0);}
8209 _LT_EOF
8210
8211   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8212   (eval $ac_compile) 2>&5
8213   ac_status=$?
8214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8215   test $ac_status = 0; }; then
8216     # Now try to grab the symbols.
8217     nlist=conftest.nm
8218     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8219   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8220   ac_status=$?
8221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8222   test $ac_status = 0; } && test -s "$nlist"; then
8223       # Try sorting and uniquifying the output.
8224       if sort "$nlist" | uniq > "$nlist"T; then
8225         mv -f "$nlist"T "$nlist"
8226       else
8227         rm -f "$nlist"T
8228       fi
8229
8230       # Make sure that we snagged all the symbols we need.
8231       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8232         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8233           cat <<_LT_EOF > conftest.$ac_ext
8234 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8235 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8236 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8237    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8238 # define LT_DLSYM_CONST
8239 #elif defined(__osf__)
8240 /* This system does not cope well with relocations in const data.  */
8241 # define LT_DLSYM_CONST
8242 #else
8243 # define LT_DLSYM_CONST const
8244 #endif
8245
8246 #ifdef __cplusplus
8247 extern "C" {
8248 #endif
8249
8250 _LT_EOF
8251           # Now generate the symbol file.
8252           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8253
8254           cat <<_LT_EOF >> conftest.$ac_ext
8255
8256 /* The mapping between symbol names and symbols.  */
8257 LT_DLSYM_CONST struct {
8258   const char *name;
8259   void       *address;
8260 }
8261 lt__PROGRAM__LTX_preloaded_symbols[] =
8262 {
8263   { "@PROGRAM@", (void *) 0 },
8264 _LT_EOF
8265           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8266           cat <<\_LT_EOF >> conftest.$ac_ext
8267   {0, (void *) 0}
8268 };
8269
8270 /* This works around a problem in FreeBSD linker */
8271 #ifdef FREEBSD_WORKAROUND
8272 static const void *lt_preloaded_setup() {
8273   return lt__PROGRAM__LTX_preloaded_symbols;
8274 }
8275 #endif
8276
8277 #ifdef __cplusplus
8278 }
8279 #endif
8280 _LT_EOF
8281           # Now try linking the two files.
8282           mv conftest.$ac_objext conftstm.$ac_objext
8283           lt_globsym_save_LIBS=$LIBS
8284           lt_globsym_save_CFLAGS=$CFLAGS
8285           LIBS="conftstm.$ac_objext"
8286           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8287           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8288   (eval $ac_link) 2>&5
8289   ac_status=$?
8290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8291   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8292             pipe_works=yes
8293           fi
8294           LIBS=$lt_globsym_save_LIBS
8295           CFLAGS=$lt_globsym_save_CFLAGS
8296         else
8297           echo "cannot find nm_test_func in $nlist" >&5
8298         fi
8299       else
8300         echo "cannot find nm_test_var in $nlist" >&5
8301       fi
8302     else
8303       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8304     fi
8305   else
8306     echo "$progname: failed program was:" >&5
8307     cat conftest.$ac_ext >&5
8308   fi
8309   rm -rf conftest* conftst*
8310
8311   # Do not use the global_symbol_pipe unless it works.
8312   if test "$pipe_works" = yes; then
8313     break
8314   else
8315     lt_cv_sys_global_symbol_pipe=
8316   fi
8317 done
8318
8319 fi
8320
8321 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8322   lt_cv_sys_global_symbol_to_cdecl=
8323 fi
8324 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8326 $as_echo "failed" >&6; }
8327 else
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8329 $as_echo "ok" >&6; }
8330 fi
8331
8332 # Response file support.
8333 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8334   nm_file_list_spec='@'
8335 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8336   nm_file_list_spec='@'
8337 fi
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8366 $as_echo_n "checking for sysroot... " >&6; }
8367
8368 # Check whether --with-sysroot was given.
8369 if test "${with_sysroot+set}" = set; then :
8370   withval=$with_sysroot;
8371 else
8372   with_sysroot=no
8373 fi
8374
8375
8376 lt_sysroot=
8377 case ${with_sysroot} in #(
8378  yes)
8379    if test "$GCC" = yes; then
8380      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8381    fi
8382    ;; #(
8383  /*)
8384    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8385    ;; #(
8386  no|'')
8387    ;; #(
8388  *)
8389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8390 $as_echo "${with_sysroot}" >&6; }
8391    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8392    ;;
8393 esac
8394
8395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8396 $as_echo "${lt_sysroot:-no}" >&6; }
8397
8398
8399
8400
8401
8402 # Check whether --enable-libtool-lock was given.
8403 if test "${enable_libtool_lock+set}" = set; then :
8404   enableval=$enable_libtool_lock;
8405 fi
8406
8407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8408
8409 # Some flags need to be propagated to the compiler or linker for good
8410 # libtool support.
8411 case $host in
8412 ia64-*-hpux*)
8413   # Find out which ABI we are using.
8414   echo 'int i;' > conftest.$ac_ext
8415   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8416   (eval $ac_compile) 2>&5
8417   ac_status=$?
8418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8419   test $ac_status = 0; }; then
8420     case `/usr/bin/file conftest.$ac_objext` in
8421       *ELF-32*)
8422         HPUX_IA64_MODE="32"
8423         ;;
8424       *ELF-64*)
8425         HPUX_IA64_MODE="64"
8426         ;;
8427     esac
8428   fi
8429   rm -rf conftest*
8430   ;;
8431 *-*-irix6*)
8432   # Find out which ABI we are using.
8433   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8434   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8435   (eval $ac_compile) 2>&5
8436   ac_status=$?
8437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8438   test $ac_status = 0; }; then
8439     if test "$lt_cv_prog_gnu_ld" = yes; then
8440       case `/usr/bin/file conftest.$ac_objext` in
8441         *32-bit*)
8442           LD="${LD-ld} -melf32bsmip"
8443           ;;
8444         *N32*)
8445           LD="${LD-ld} -melf32bmipn32"
8446           ;;
8447         *64-bit*)
8448           LD="${LD-ld} -melf64bmip"
8449         ;;
8450       esac
8451     else
8452       case `/usr/bin/file conftest.$ac_objext` in
8453         *32-bit*)
8454           LD="${LD-ld} -32"
8455           ;;
8456         *N32*)
8457           LD="${LD-ld} -n32"
8458           ;;
8459         *64-bit*)
8460           LD="${LD-ld} -64"
8461           ;;
8462       esac
8463     fi
8464   fi
8465   rm -rf conftest*
8466   ;;
8467
8468 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8469 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8470   # Find out which ABI we are using.
8471   echo 'int i;' > conftest.$ac_ext
8472   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8473   (eval $ac_compile) 2>&5
8474   ac_status=$?
8475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8476   test $ac_status = 0; }; then
8477     case `/usr/bin/file conftest.o` in
8478       *32-bit*)
8479         case $host in
8480           x86_64-*kfreebsd*-gnu)
8481             LD="${LD-ld} -m elf_i386_fbsd"
8482             ;;
8483           x86_64-*linux*)
8484             LD="${LD-ld} -m elf_i386"
8485             ;;
8486           ppc64-*linux*|powerpc64-*linux*)
8487             LD="${LD-ld} -m elf32ppclinux"
8488             ;;
8489           s390x-*linux*)
8490             LD="${LD-ld} -m elf_s390"
8491             ;;
8492           sparc64-*linux*)
8493             LD="${LD-ld} -m elf32_sparc"
8494             ;;
8495         esac
8496         ;;
8497       *64-bit*)
8498         case $host in
8499           x86_64-*kfreebsd*-gnu)
8500             LD="${LD-ld} -m elf_x86_64_fbsd"
8501             ;;
8502           x86_64-*linux*)
8503             LD="${LD-ld} -m elf_x86_64"
8504             ;;
8505           ppc*-*linux*|powerpc*-*linux*)
8506             LD="${LD-ld} -m elf64ppc"
8507             ;;
8508           s390*-*linux*|s390*-*tpf*)
8509             LD="${LD-ld} -m elf64_s390"
8510             ;;
8511           sparc*-*linux*)
8512             LD="${LD-ld} -m elf64_sparc"
8513             ;;
8514         esac
8515         ;;
8516     esac
8517   fi
8518   rm -rf conftest*
8519   ;;
8520
8521 *-*-sco3.2v5*)
8522   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8523   SAVE_CFLAGS="$CFLAGS"
8524   CFLAGS="$CFLAGS -belf"
8525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8526 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8527 if ${lt_cv_cc_needs_belf+:} false; then :
8528   $as_echo_n "(cached) " >&6
8529 else
8530   ac_ext=c
8531 ac_cpp='$CPP $CPPFLAGS'
8532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8535
8536      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h.  */
8538
8539 int
8540 main ()
8541 {
8542
8543   ;
8544   return 0;
8545 }
8546 _ACEOF
8547 if ac_fn_c_try_link "$LINENO"; then :
8548   lt_cv_cc_needs_belf=yes
8549 else
8550   lt_cv_cc_needs_belf=no
8551 fi
8552 rm -f core conftest.err conftest.$ac_objext \
8553     conftest$ac_exeext conftest.$ac_ext
8554      ac_ext=c
8555 ac_cpp='$CPP $CPPFLAGS'
8556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8559
8560 fi
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8562 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8563   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8564     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8565     CFLAGS="$SAVE_CFLAGS"
8566   fi
8567   ;;
8568 *-*solaris*)
8569   # Find out which ABI we are using.
8570   echo 'int i;' > conftest.$ac_ext
8571   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8572   (eval $ac_compile) 2>&5
8573   ac_status=$?
8574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8575   test $ac_status = 0; }; then
8576     case `/usr/bin/file conftest.o` in
8577     *64-bit*)
8578       case $lt_cv_prog_gnu_ld in
8579       yes*)
8580         case $host in
8581         i?86-*-solaris*)
8582           LD="${LD-ld} -m elf_x86_64"
8583           ;;
8584         sparc*-*-solaris*)
8585           LD="${LD-ld} -m elf64_sparc"
8586           ;;
8587         esac
8588         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8589         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8590           LD="${LD-ld}_sol2"
8591         fi
8592         ;;
8593       *)
8594         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8595           LD="${LD-ld} -64"
8596         fi
8597         ;;
8598       esac
8599       ;;
8600     esac
8601   fi
8602   rm -rf conftest*
8603   ;;
8604 esac
8605
8606 need_locks="$enable_libtool_lock"
8607
8608 if test -n "$ac_tool_prefix"; then
8609   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8610 set dummy ${ac_tool_prefix}mt; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8614   $as_echo_n "(cached) " >&6
8615 else
8616   if test -n "$MANIFEST_TOOL"; then
8617   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8618 else
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 for as_dir in $PATH
8621 do
8622   IFS=$as_save_IFS
8623   test -z "$as_dir" && as_dir=.
8624     for ac_exec_ext in '' $ac_executable_extensions; do
8625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8626     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8628     break 2
8629   fi
8630 done
8631   done
8632 IFS=$as_save_IFS
8633
8634 fi
8635 fi
8636 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8637 if test -n "$MANIFEST_TOOL"; then
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8639 $as_echo "$MANIFEST_TOOL" >&6; }
8640 else
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8643 fi
8644
8645
8646 fi
8647 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8648   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8649   # Extract the first word of "mt", so it can be a program name with args.
8650 set dummy mt; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8654   $as_echo_n "(cached) " >&6
8655 else
8656   if test -n "$ac_ct_MANIFEST_TOOL"; then
8657   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8658 else
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8661 do
8662   IFS=$as_save_IFS
8663   test -z "$as_dir" && as_dir=.
8664     for ac_exec_ext in '' $ac_executable_extensions; do
8665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668     break 2
8669   fi
8670 done
8671   done
8672 IFS=$as_save_IFS
8673
8674 fi
8675 fi
8676 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8677 if test -n "$ac_ct_MANIFEST_TOOL"; then
8678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8679 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8680 else
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8683 fi
8684
8685   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8686     MANIFEST_TOOL=":"
8687   else
8688     case $cross_compiling:$ac_tool_warned in
8689 yes:)
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8692 ac_tool_warned=yes ;;
8693 esac
8694     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8695   fi
8696 else
8697   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8698 fi
8699
8700 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8702 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8703 if ${lt_cv_path_mainfest_tool+:} false; then :
8704   $as_echo_n "(cached) " >&6
8705 else
8706   lt_cv_path_mainfest_tool=no
8707   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8708   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8709   cat conftest.err >&5
8710   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8711     lt_cv_path_mainfest_tool=yes
8712   fi
8713   rm -f conftest*
8714 fi
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8716 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8717 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8718   MANIFEST_TOOL=:
8719 fi
8720
8721
8722
8723
8724
8725
8726   case $host_os in
8727     rhapsody* | darwin*)
8728     if test -n "$ac_tool_prefix"; then
8729   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8734   $as_echo_n "(cached) " >&6
8735 else
8736   if test -n "$DSYMUTIL"; then
8737   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8738 else
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 for as_dir in $PATH
8741 do
8742   IFS=$as_save_IFS
8743   test -z "$as_dir" && as_dir=.
8744     for ac_exec_ext in '' $ac_executable_extensions; do
8745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748     break 2
8749   fi
8750 done
8751   done
8752 IFS=$as_save_IFS
8753
8754 fi
8755 fi
8756 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8757 if test -n "$DSYMUTIL"; then
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8759 $as_echo "$DSYMUTIL" >&6; }
8760 else
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8763 fi
8764
8765
8766 fi
8767 if test -z "$ac_cv_prog_DSYMUTIL"; then
8768   ac_ct_DSYMUTIL=$DSYMUTIL
8769   # Extract the first word of "dsymutil", so it can be a program name with args.
8770 set dummy dsymutil; ac_word=$2
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 $as_echo_n "checking for $ac_word... " >&6; }
8773 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8774   $as_echo_n "(cached) " >&6
8775 else
8776   if test -n "$ac_ct_DSYMUTIL"; then
8777   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8778 else
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in $PATH
8781 do
8782   IFS=$as_save_IFS
8783   test -z "$as_dir" && as_dir=.
8784     for ac_exec_ext in '' $ac_executable_extensions; do
8785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8786     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788     break 2
8789   fi
8790 done
8791   done
8792 IFS=$as_save_IFS
8793
8794 fi
8795 fi
8796 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8797 if test -n "$ac_ct_DSYMUTIL"; then
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8799 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8800 else
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8803 fi
8804
8805   if test "x$ac_ct_DSYMUTIL" = x; then
8806     DSYMUTIL=":"
8807   else
8808     case $cross_compiling:$ac_tool_warned in
8809 yes:)
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812 ac_tool_warned=yes ;;
8813 esac
8814     DSYMUTIL=$ac_ct_DSYMUTIL
8815   fi
8816 else
8817   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8818 fi
8819
8820     if test -n "$ac_tool_prefix"; then
8821   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8822 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 $as_echo_n "checking for $ac_word... " >&6; }
8825 if ${ac_cv_prog_NMEDIT+:} false; then :
8826   $as_echo_n "(cached) " >&6
8827 else
8828   if test -n "$NMEDIT"; then
8829   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8830 else
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in $PATH
8833 do
8834   IFS=$as_save_IFS
8835   test -z "$as_dir" && as_dir=.
8836     for ac_exec_ext in '' $ac_executable_extensions; do
8837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8838     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8840     break 2
8841   fi
8842 done
8843   done
8844 IFS=$as_save_IFS
8845
8846 fi
8847 fi
8848 NMEDIT=$ac_cv_prog_NMEDIT
8849 if test -n "$NMEDIT"; then
8850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8851 $as_echo "$NMEDIT" >&6; }
8852 else
8853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8855 fi
8856
8857
8858 fi
8859 if test -z "$ac_cv_prog_NMEDIT"; then
8860   ac_ct_NMEDIT=$NMEDIT
8861   # Extract the first word of "nmedit", so it can be a program name with args.
8862 set dummy nmedit; ac_word=$2
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864 $as_echo_n "checking for $ac_word... " >&6; }
8865 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8866   $as_echo_n "(cached) " >&6
8867 else
8868   if test -n "$ac_ct_NMEDIT"; then
8869   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8870 else
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 for as_dir in $PATH
8873 do
8874   IFS=$as_save_IFS
8875   test -z "$as_dir" && as_dir=.
8876     for ac_exec_ext in '' $ac_executable_extensions; do
8877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8880     break 2
8881   fi
8882 done
8883   done
8884 IFS=$as_save_IFS
8885
8886 fi
8887 fi
8888 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8889 if test -n "$ac_ct_NMEDIT"; then
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8891 $as_echo "$ac_ct_NMEDIT" >&6; }
8892 else
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8895 fi
8896
8897   if test "x$ac_ct_NMEDIT" = x; then
8898     NMEDIT=":"
8899   else
8900     case $cross_compiling:$ac_tool_warned in
8901 yes:)
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8904 ac_tool_warned=yes ;;
8905 esac
8906     NMEDIT=$ac_ct_NMEDIT
8907   fi
8908 else
8909   NMEDIT="$ac_cv_prog_NMEDIT"
8910 fi
8911
8912     if test -n "$ac_tool_prefix"; then
8913   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8914 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916 $as_echo_n "checking for $ac_word... " >&6; }
8917 if ${ac_cv_prog_LIPO+:} false; then :
8918   $as_echo_n "(cached) " >&6
8919 else
8920   if test -n "$LIPO"; then
8921   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8922 else
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH
8925 do
8926   IFS=$as_save_IFS
8927   test -z "$as_dir" && as_dir=.
8928     for ac_exec_ext in '' $ac_executable_extensions; do
8929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8930     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8932     break 2
8933   fi
8934 done
8935   done
8936 IFS=$as_save_IFS
8937
8938 fi
8939 fi
8940 LIPO=$ac_cv_prog_LIPO
8941 if test -n "$LIPO"; then
8942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8943 $as_echo "$LIPO" >&6; }
8944 else
8945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8947 fi
8948
8949
8950 fi
8951 if test -z "$ac_cv_prog_LIPO"; then
8952   ac_ct_LIPO=$LIPO
8953   # Extract the first word of "lipo", so it can be a program name with args.
8954 set dummy lipo; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8958   $as_echo_n "(cached) " >&6
8959 else
8960   if test -n "$ac_ct_LIPO"; then
8961   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8962 else
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 for as_dir in $PATH
8965 do
8966   IFS=$as_save_IFS
8967   test -z "$as_dir" && as_dir=.
8968     for ac_exec_ext in '' $ac_executable_extensions; do
8969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8970     ac_cv_prog_ac_ct_LIPO="lipo"
8971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8972     break 2
8973   fi
8974 done
8975   done
8976 IFS=$as_save_IFS
8977
8978 fi
8979 fi
8980 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8981 if test -n "$ac_ct_LIPO"; then
8982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8983 $as_echo "$ac_ct_LIPO" >&6; }
8984 else
8985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8986 $as_echo "no" >&6; }
8987 fi
8988
8989   if test "x$ac_ct_LIPO" = x; then
8990     LIPO=":"
8991   else
8992     case $cross_compiling:$ac_tool_warned in
8993 yes:)
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8996 ac_tool_warned=yes ;;
8997 esac
8998     LIPO=$ac_ct_LIPO
8999   fi
9000 else
9001   LIPO="$ac_cv_prog_LIPO"
9002 fi
9003
9004     if test -n "$ac_tool_prefix"; then
9005   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9006 set dummy ${ac_tool_prefix}otool; ac_word=$2
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9008 $as_echo_n "checking for $ac_word... " >&6; }
9009 if ${ac_cv_prog_OTOOL+:} false; then :
9010   $as_echo_n "(cached) " >&6
9011 else
9012   if test -n "$OTOOL"; then
9013   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9014 else
9015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016 for as_dir in $PATH
9017 do
9018   IFS=$as_save_IFS
9019   test -z "$as_dir" && as_dir=.
9020     for ac_exec_ext in '' $ac_executable_extensions; do
9021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9022     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9024     break 2
9025   fi
9026 done
9027   done
9028 IFS=$as_save_IFS
9029
9030 fi
9031 fi
9032 OTOOL=$ac_cv_prog_OTOOL
9033 if test -n "$OTOOL"; then
9034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9035 $as_echo "$OTOOL" >&6; }
9036 else
9037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038 $as_echo "no" >&6; }
9039 fi
9040
9041
9042 fi
9043 if test -z "$ac_cv_prog_OTOOL"; then
9044   ac_ct_OTOOL=$OTOOL
9045   # Extract the first word of "otool", so it can be a program name with args.
9046 set dummy otool; ac_word=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9050   $as_echo_n "(cached) " >&6
9051 else
9052   if test -n "$ac_ct_OTOOL"; then
9053   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9054 else
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 for as_dir in $PATH
9057 do
9058   IFS=$as_save_IFS
9059   test -z "$as_dir" && as_dir=.
9060     for ac_exec_ext in '' $ac_executable_extensions; do
9061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9062     ac_cv_prog_ac_ct_OTOOL="otool"
9063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9064     break 2
9065   fi
9066 done
9067   done
9068 IFS=$as_save_IFS
9069
9070 fi
9071 fi
9072 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9073 if test -n "$ac_ct_OTOOL"; then
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9075 $as_echo "$ac_ct_OTOOL" >&6; }
9076 else
9077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9079 fi
9080
9081   if test "x$ac_ct_OTOOL" = x; then
9082     OTOOL=":"
9083   else
9084     case $cross_compiling:$ac_tool_warned in
9085 yes:)
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9088 ac_tool_warned=yes ;;
9089 esac
9090     OTOOL=$ac_ct_OTOOL
9091   fi
9092 else
9093   OTOOL="$ac_cv_prog_OTOOL"
9094 fi
9095
9096     if test -n "$ac_tool_prefix"; then
9097   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9098 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100 $as_echo_n "checking for $ac_word... " >&6; }
9101 if ${ac_cv_prog_OTOOL64+:} false; then :
9102   $as_echo_n "(cached) " >&6
9103 else
9104   if test -n "$OTOOL64"; then
9105   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9106 else
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9109 do
9110   IFS=$as_save_IFS
9111   test -z "$as_dir" && as_dir=.
9112     for ac_exec_ext in '' $ac_executable_extensions; do
9113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9114     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116     break 2
9117   fi
9118 done
9119   done
9120 IFS=$as_save_IFS
9121
9122 fi
9123 fi
9124 OTOOL64=$ac_cv_prog_OTOOL64
9125 if test -n "$OTOOL64"; then
9126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9127 $as_echo "$OTOOL64" >&6; }
9128 else
9129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9131 fi
9132
9133
9134 fi
9135 if test -z "$ac_cv_prog_OTOOL64"; then
9136   ac_ct_OTOOL64=$OTOOL64
9137   # Extract the first word of "otool64", so it can be a program name with args.
9138 set dummy otool64; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   if test -n "$ac_ct_OTOOL64"; then
9145   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9146 else
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 for as_dir in $PATH
9149 do
9150   IFS=$as_save_IFS
9151   test -z "$as_dir" && as_dir=.
9152     for ac_exec_ext in '' $ac_executable_extensions; do
9153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9154     ac_cv_prog_ac_ct_OTOOL64="otool64"
9155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9156     break 2
9157   fi
9158 done
9159   done
9160 IFS=$as_save_IFS
9161
9162 fi
9163 fi
9164 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9165 if test -n "$ac_ct_OTOOL64"; then
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9167 $as_echo "$ac_ct_OTOOL64" >&6; }
9168 else
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 $as_echo "no" >&6; }
9171 fi
9172
9173   if test "x$ac_ct_OTOOL64" = x; then
9174     OTOOL64=":"
9175   else
9176     case $cross_compiling:$ac_tool_warned in
9177 yes:)
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9180 ac_tool_warned=yes ;;
9181 esac
9182     OTOOL64=$ac_ct_OTOOL64
9183   fi
9184 else
9185   OTOOL64="$ac_cv_prog_OTOOL64"
9186 fi
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9215 $as_echo_n "checking for -single_module linker flag... " >&6; }
9216 if ${lt_cv_apple_cc_single_mod+:} false; then :
9217   $as_echo_n "(cached) " >&6
9218 else
9219   lt_cv_apple_cc_single_mod=no
9220       if test -z "${LT_MULTI_MODULE}"; then
9221         # By default we will add the -single_module flag. You can override
9222         # by either setting the environment variable LT_MULTI_MODULE
9223         # non-empty at configure time, or by adding -multi_module to the
9224         # link flags.
9225         rm -rf libconftest.dylib*
9226         echo "int foo(void){return 1;}" > conftest.c
9227         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9228 -dynamiclib -Wl,-single_module conftest.c" >&5
9229         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9230           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9231         _lt_result=$?
9232         # If there is a non-empty error log, and "single_module"
9233         # appears in it, assume the flag caused a linker warning
9234         if test -s conftest.err && $GREP single_module conftest.err; then
9235           cat conftest.err >&5
9236         # Otherwise, if the output was created with a 0 exit code from
9237         # the compiler, it worked.
9238         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9239           lt_cv_apple_cc_single_mod=yes
9240         else
9241           cat conftest.err >&5
9242         fi
9243         rm -rf libconftest.dylib*
9244         rm -f conftest.*
9245       fi
9246 fi
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9248 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9249
9250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9251 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9252 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9253   $as_echo_n "(cached) " >&6
9254 else
9255   lt_cv_ld_exported_symbols_list=no
9256       save_LDFLAGS=$LDFLAGS
9257       echo "_main" > conftest.sym
9258       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9259       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h.  */
9261
9262 int
9263 main ()
9264 {
9265
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 if ac_fn_c_try_link "$LINENO"; then :
9271   lt_cv_ld_exported_symbols_list=yes
9272 else
9273   lt_cv_ld_exported_symbols_list=no
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext \
9276     conftest$ac_exeext conftest.$ac_ext
9277         LDFLAGS="$save_LDFLAGS"
9278
9279 fi
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9281 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9282
9283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9284 $as_echo_n "checking for -force_load linker flag... " >&6; }
9285 if ${lt_cv_ld_force_load+:} false; then :
9286   $as_echo_n "(cached) " >&6
9287 else
9288   lt_cv_ld_force_load=no
9289       cat > conftest.c << _LT_EOF
9290 int forced_loaded() { return 2;}
9291 _LT_EOF
9292       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9293       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9294       echo "$AR cru libconftest.a conftest.o" >&5
9295       $AR cru libconftest.a conftest.o 2>&5
9296       echo "$RANLIB libconftest.a" >&5
9297       $RANLIB libconftest.a 2>&5
9298       cat > conftest.c << _LT_EOF
9299 int main() { return 0;}
9300 _LT_EOF
9301       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9302       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9303       _lt_result=$?
9304       if test -s conftest.err && $GREP force_load conftest.err; then
9305         cat conftest.err >&5
9306       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9307         lt_cv_ld_force_load=yes
9308       else
9309         cat conftest.err >&5
9310       fi
9311         rm -f conftest.err libconftest.a conftest conftest.c
9312         rm -rf conftest.dSYM
9313
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9316 $as_echo "$lt_cv_ld_force_load" >&6; }
9317     case $host_os in
9318     rhapsody* | darwin1.[012])
9319       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9320     darwin1.*)
9321       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9322     darwin*) # darwin 5.x on
9323       # if running on 10.5 or later, the deployment target defaults
9324       # to the OS version, if on x86, and 10.4, the deployment
9325       # target defaults to 10.4. Don't you love it?
9326       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9327         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9328           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9329         10.[012]*)
9330           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9331         10.*)
9332           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9333       esac
9334     ;;
9335   esac
9336     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9337       _lt_dar_single_mod='$single_module'
9338     fi
9339     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9340       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9341     else
9342       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9343     fi
9344     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9345       _lt_dsymutil='~$DSYMUTIL $lib || :'
9346     else
9347       _lt_dsymutil=
9348     fi
9349     ;;
9350   esac
9351
9352
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9354 $as_echo_n "checking for ANSI C header files... " >&6; }
9355 if ${ac_cv_header_stdc+:} false; then :
9356   $as_echo_n "(cached) " >&6
9357 else
9358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h.  */
9360 #include <stdlib.h>
9361 #include <stdarg.h>
9362 #include <string.h>
9363 #include <float.h>
9364
9365 int
9366 main ()
9367 {
9368
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 if ac_fn_c_try_compile "$LINENO"; then :
9374   ac_cv_header_stdc=yes
9375 else
9376   ac_cv_header_stdc=no
9377 fi
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379
9380 if test $ac_cv_header_stdc = yes; then
9381   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h.  */
9384 #include <string.h>
9385
9386 _ACEOF
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388   $EGREP "memchr" >/dev/null 2>&1; then :
9389
9390 else
9391   ac_cv_header_stdc=no
9392 fi
9393 rm -f conftest*
9394
9395 fi
9396
9397 if test $ac_cv_header_stdc = yes; then
9398   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h.  */
9401 #include <stdlib.h>
9402
9403 _ACEOF
9404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9405   $EGREP "free" >/dev/null 2>&1; then :
9406
9407 else
9408   ac_cv_header_stdc=no
9409 fi
9410 rm -f conftest*
9411
9412 fi
9413
9414 if test $ac_cv_header_stdc = yes; then
9415   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9416   if test "$cross_compiling" = yes; then :
9417   :
9418 else
9419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h.  */
9421 #include <ctype.h>
9422 #include <stdlib.h>
9423 #if ((' ' & 0x0FF) == 0x020)
9424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9426 #else
9427 # define ISLOWER(c) \
9428                    (('a' <= (c) && (c) <= 'i') \
9429                      || ('j' <= (c) && (c) <= 'r') \
9430                      || ('s' <= (c) && (c) <= 'z'))
9431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9432 #endif
9433
9434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9435 int
9436 main ()
9437 {
9438   int i;
9439   for (i = 0; i < 256; i++)
9440     if (XOR (islower (i), ISLOWER (i))
9441         || toupper (i) != TOUPPER (i))
9442       return 2;
9443   return 0;
9444 }
9445 _ACEOF
9446 if ac_fn_c_try_run "$LINENO"; then :
9447
9448 else
9449   ac_cv_header_stdc=no
9450 fi
9451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9452   conftest.$ac_objext conftest.beam conftest.$ac_ext
9453 fi
9454
9455 fi
9456 fi
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9458 $as_echo "$ac_cv_header_stdc" >&6; }
9459 if test $ac_cv_header_stdc = yes; then
9460
9461 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9462
9463 fi
9464
9465 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9466 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9467                   inttypes.h stdint.h unistd.h
9468 do :
9469   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9470 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9471 "
9472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9473   cat >>confdefs.h <<_ACEOF
9474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9475 _ACEOF
9476
9477 fi
9478
9479 done
9480
9481
9482 for ac_header in dlfcn.h
9483 do :
9484   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9485 "
9486 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9487   cat >>confdefs.h <<_ACEOF
9488 #define HAVE_DLFCN_H 1
9489 _ACEOF
9490
9491 fi
9492
9493 done
9494
9495
9496
9497
9498
9499 # Set options
9500 enable_dlopen=yes
9501
9502
9503
9504
9505   enable_win32_dll=no
9506
9507
9508             # Check whether --enable-shared was given.
9509 if test "${enable_shared+set}" = set; then :
9510   enableval=$enable_shared; p=${PACKAGE-default}
9511     case $enableval in
9512     yes) enable_shared=yes ;;
9513     no) enable_shared=no ;;
9514     *)
9515       enable_shared=no
9516       # Look at the argument we got.  We use all the common list separators.
9517       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9518       for pkg in $enableval; do
9519         IFS="$lt_save_ifs"
9520         if test "X$pkg" = "X$p"; then
9521           enable_shared=yes
9522         fi
9523       done
9524       IFS="$lt_save_ifs"
9525       ;;
9526     esac
9527 else
9528   enable_shared=yes
9529 fi
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539   # Check whether --enable-static was given.
9540 if test "${enable_static+set}" = set; then :
9541   enableval=$enable_static; p=${PACKAGE-default}
9542     case $enableval in
9543     yes) enable_static=yes ;;
9544     no) enable_static=no ;;
9545     *)
9546      enable_static=no
9547       # Look at the argument we got.  We use all the common list separators.
9548       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9549       for pkg in $enableval; do
9550         IFS="$lt_save_ifs"
9551         if test "X$pkg" = "X$p"; then
9552           enable_static=yes
9553         fi
9554       done
9555       IFS="$lt_save_ifs"
9556       ;;
9557     esac
9558 else
9559   enable_static=yes
9560 fi
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571 # Check whether --with-pic was given.
9572 if test "${with_pic+set}" = set; then :
9573   withval=$with_pic; lt_p=${PACKAGE-default}
9574     case $withval in
9575     yes|no) pic_mode=$withval ;;
9576     *)
9577       pic_mode=default
9578       # Look at the argument we got.  We use all the common list separators.
9579       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9580       for lt_pkg in $withval; do
9581         IFS="$lt_save_ifs"
9582         if test "X$lt_pkg" = "X$lt_p"; then
9583           pic_mode=yes
9584         fi
9585       done
9586       IFS="$lt_save_ifs"
9587       ;;
9588     esac
9589 else
9590   pic_mode=default
9591 fi
9592
9593
9594 test -z "$pic_mode" && pic_mode=default
9595
9596
9597
9598
9599
9600
9601
9602   # Check whether --enable-fast-install was given.
9603 if test "${enable_fast_install+set}" = set; then :
9604   enableval=$enable_fast_install; p=${PACKAGE-default}
9605     case $enableval in
9606     yes) enable_fast_install=yes ;;
9607     no) enable_fast_install=no ;;
9608     *)
9609       enable_fast_install=no
9610       # Look at the argument we got.  We use all the common list separators.
9611       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9612       for pkg in $enableval; do
9613         IFS="$lt_save_ifs"
9614         if test "X$pkg" = "X$p"; then
9615           enable_fast_install=yes
9616         fi
9617       done
9618       IFS="$lt_save_ifs"
9619       ;;
9620     esac
9621 else
9622   enable_fast_install=yes
9623 fi
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635 # This can be used to rebuild libtool when needed
9636 LIBTOOL_DEPS="$ltmain"
9637
9638 # Always use our own libtool.
9639 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670 test -z "$LN_S" && LN_S="ln -s"
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685 if test -n "${ZSH_VERSION+set}" ; then
9686    setopt NO_GLOB_SUBST
9687 fi
9688
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9690 $as_echo_n "checking for objdir... " >&6; }
9691 if ${lt_cv_objdir+:} false; then :
9692   $as_echo_n "(cached) " >&6
9693 else
9694   rm -f .libs 2>/dev/null
9695 mkdir .libs 2>/dev/null
9696 if test -d .libs; then
9697   lt_cv_objdir=.libs
9698 else
9699   # MS-DOS does not allow filenames that begin with a dot.
9700   lt_cv_objdir=_libs
9701 fi
9702 rmdir .libs 2>/dev/null
9703 fi
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9705 $as_echo "$lt_cv_objdir" >&6; }
9706 objdir=$lt_cv_objdir
9707
9708
9709
9710
9711
9712 cat >>confdefs.h <<_ACEOF
9713 #define LT_OBJDIR "$lt_cv_objdir/"
9714 _ACEOF
9715
9716
9717
9718
9719 case $host_os in
9720 aix3*)
9721   # AIX sometimes has problems with the GCC collect2 program.  For some
9722   # reason, if we set the COLLECT_NAMES environment variable, the problems
9723   # vanish in a puff of smoke.
9724   if test "X${COLLECT_NAMES+set}" != Xset; then
9725     COLLECT_NAMES=
9726     export COLLECT_NAMES
9727   fi
9728   ;;
9729 esac
9730
9731 # Global variables:
9732 ofile=libtool
9733 can_build_shared=yes
9734
9735 # All known linkers require a `.a' archive for static linking (except MSVC,
9736 # which needs '.lib').
9737 libext=a
9738
9739 with_gnu_ld="$lt_cv_prog_gnu_ld"
9740
9741 old_CC="$CC"
9742 old_CFLAGS="$CFLAGS"
9743
9744 # Set sane defaults for various variables
9745 test -z "$CC" && CC=cc
9746 test -z "$LTCC" && LTCC=$CC
9747 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9748 test -z "$LD" && LD=ld
9749 test -z "$ac_objext" && ac_objext=o
9750
9751 for cc_temp in $compiler""; do
9752   case $cc_temp in
9753     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9754     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9755     \-*) ;;
9756     *) break;;
9757   esac
9758 done
9759 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9760
9761
9762 # Only perform the check for file, if the check method requires it
9763 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9764 case $deplibs_check_method in
9765 file_magic*)
9766   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9768 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9769 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9770   $as_echo_n "(cached) " >&6
9771 else
9772   case $MAGIC_CMD in
9773 [\\/*] |  ?:[\\/]*)
9774   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9775   ;;
9776 *)
9777   lt_save_MAGIC_CMD="$MAGIC_CMD"
9778   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9779   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9780   for ac_dir in $ac_dummy; do
9781     IFS="$lt_save_ifs"
9782     test -z "$ac_dir" && ac_dir=.
9783     if test -f $ac_dir/${ac_tool_prefix}file; then
9784       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9785       if test -n "$file_magic_test_file"; then
9786         case $deplibs_check_method in
9787         "file_magic "*)
9788           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9789           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9790           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9791             $EGREP "$file_magic_regex" > /dev/null; then
9792             :
9793           else
9794             cat <<_LT_EOF 1>&2
9795
9796 *** Warning: the command libtool uses to detect shared libraries,
9797 *** $file_magic_cmd, produces output that libtool cannot recognize.
9798 *** The result is that libtool may fail to recognize shared libraries
9799 *** as such.  This will affect the creation of libtool libraries that
9800 *** depend on shared libraries, but programs linked with such libtool
9801 *** libraries will work regardless of this problem.  Nevertheless, you
9802 *** may want to report the problem to your system manager and/or to
9803 *** bug-libtool@gnu.org
9804
9805 _LT_EOF
9806           fi ;;
9807         esac
9808       fi
9809       break
9810     fi
9811   done
9812   IFS="$lt_save_ifs"
9813   MAGIC_CMD="$lt_save_MAGIC_CMD"
9814   ;;
9815 esac
9816 fi
9817
9818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9819 if test -n "$MAGIC_CMD"; then
9820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9821 $as_echo "$MAGIC_CMD" >&6; }
9822 else
9823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9825 fi
9826
9827
9828
9829
9830
9831 if test -z "$lt_cv_path_MAGIC_CMD"; then
9832   if test -n "$ac_tool_prefix"; then
9833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9834 $as_echo_n "checking for file... " >&6; }
9835 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9836   $as_echo_n "(cached) " >&6
9837 else
9838   case $MAGIC_CMD in
9839 [\\/*] |  ?:[\\/]*)
9840   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9841   ;;
9842 *)
9843   lt_save_MAGIC_CMD="$MAGIC_CMD"
9844   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9845   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9846   for ac_dir in $ac_dummy; do
9847     IFS="$lt_save_ifs"
9848     test -z "$ac_dir" && ac_dir=.
9849     if test -f $ac_dir/file; then
9850       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9851       if test -n "$file_magic_test_file"; then
9852         case $deplibs_check_method in
9853         "file_magic "*)
9854           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9855           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9856           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9857             $EGREP "$file_magic_regex" > /dev/null; then
9858             :
9859           else
9860             cat <<_LT_EOF 1>&2
9861
9862 *** Warning: the command libtool uses to detect shared libraries,
9863 *** $file_magic_cmd, produces output that libtool cannot recognize.
9864 *** The result is that libtool may fail to recognize shared libraries
9865 *** as such.  This will affect the creation of libtool libraries that
9866 *** depend on shared libraries, but programs linked with such libtool
9867 *** libraries will work regardless of this problem.  Nevertheless, you
9868 *** may want to report the problem to your system manager and/or to
9869 *** bug-libtool@gnu.org
9870
9871 _LT_EOF
9872           fi ;;
9873         esac
9874       fi
9875       break
9876     fi
9877   done
9878   IFS="$lt_save_ifs"
9879   MAGIC_CMD="$lt_save_MAGIC_CMD"
9880   ;;
9881 esac
9882 fi
9883
9884 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9885 if test -n "$MAGIC_CMD"; then
9886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9887 $as_echo "$MAGIC_CMD" >&6; }
9888 else
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9891 fi
9892
9893
9894   else
9895     MAGIC_CMD=:
9896   fi
9897 fi
9898
9899   fi
9900   ;;
9901 esac
9902
9903 # Use C for the default configuration in the libtool script
9904
9905 lt_save_CC="$CC"
9906 ac_ext=c
9907 ac_cpp='$CPP $CPPFLAGS'
9908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9911
9912
9913 # Source file extension for C test sources.
9914 ac_ext=c
9915
9916 # Object file extension for compiled C test sources.
9917 objext=o
9918 objext=$objext
9919
9920 # Code to be used in simple compile tests
9921 lt_simple_compile_test_code="int some_variable = 0;"
9922
9923 # Code to be used in simple link tests
9924 lt_simple_link_test_code='int main(){return(0);}'
9925
9926
9927
9928
9929
9930
9931
9932 # If no C compiler was specified, use CC.
9933 LTCC=${LTCC-"$CC"}
9934
9935 # If no C compiler flags were specified, use CFLAGS.
9936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9937
9938 # Allow CC to be a program name with arguments.
9939 compiler=$CC
9940
9941 # Save the default compiler, since it gets overwritten when the other
9942 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9943 compiler_DEFAULT=$CC
9944
9945 # save warnings/boilerplate of simple test code
9946 ac_outfile=conftest.$ac_objext
9947 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9948 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9949 _lt_compiler_boilerplate=`cat conftest.err`
9950 $RM conftest*
9951
9952 ac_outfile=conftest.$ac_objext
9953 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9954 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9955 _lt_linker_boilerplate=`cat conftest.err`
9956 $RM -r conftest*
9957
9958
9959 ## CAVEAT EMPTOR:
9960 ## There is no encapsulation within the following macros, do not change
9961 ## the running order or otherwise move them around unless you know exactly
9962 ## what you are doing...
9963 if test -n "$compiler"; then
9964
9965 lt_prog_compiler_no_builtin_flag=
9966
9967 if test "$GCC" = yes; then
9968   case $cc_basename in
9969   nvcc*)
9970     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9971   *)
9972     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9973   esac
9974
9975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9976 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9977 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9978   $as_echo_n "(cached) " >&6
9979 else
9980   lt_cv_prog_compiler_rtti_exceptions=no
9981    ac_outfile=conftest.$ac_objext
9982    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9983    lt_compiler_flag="-fno-rtti -fno-exceptions"
9984    # Insert the option either (1) after the last *FLAGS variable, or
9985    # (2) before a word containing "conftest.", or (3) at the end.
9986    # Note that $ac_compile itself does not contain backslashes and begins
9987    # with a dollar sign (not a hyphen), so the echo should work correctly.
9988    # The option is referenced via a variable to avoid confusing sed.
9989    lt_compile=`echo "$ac_compile" | $SED \
9990    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9992    -e 's:$: $lt_compiler_flag:'`
9993    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9994    (eval "$lt_compile" 2>conftest.err)
9995    ac_status=$?
9996    cat conftest.err >&5
9997    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998    if (exit $ac_status) && test -s "$ac_outfile"; then
9999      # The compiler can only warn and ignore the option if not recognized
10000      # So say no if there are warnings other than the usual output.
10001      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10002      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10003      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10004        lt_cv_prog_compiler_rtti_exceptions=yes
10005      fi
10006    fi
10007    $RM conftest*
10008
10009 fi
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10011 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10012
10013 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10014     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10015 else
10016     :
10017 fi
10018
10019 fi
10020
10021
10022
10023
10024
10025
10026   lt_prog_compiler_wl=
10027 lt_prog_compiler_pic=
10028 lt_prog_compiler_static=
10029
10030
10031   if test "$GCC" = yes; then
10032     lt_prog_compiler_wl='-Wl,'
10033     lt_prog_compiler_static='-static'
10034
10035     case $host_os in
10036       aix*)
10037       # All AIX code is PIC.
10038       if test "$host_cpu" = ia64; then
10039         # AIX 5 now supports IA64 processor
10040         lt_prog_compiler_static='-Bstatic'
10041       fi
10042       ;;
10043
10044     amigaos*)
10045       case $host_cpu in
10046       powerpc)
10047             # see comment about AmigaOS4 .so support
10048             lt_prog_compiler_pic='-fPIC'
10049         ;;
10050       m68k)
10051             # FIXME: we need at least 68020 code to build shared libraries, but
10052             # adding the `-m68020' flag to GCC prevents building anything better,
10053             # like `-m68040'.
10054             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10055         ;;
10056       esac
10057       ;;
10058
10059     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10060       # PIC is the default for these OSes.
10061       ;;
10062
10063     mingw* | cygwin* | pw32* | os2* | cegcc*)
10064       # This hack is so that the source file can tell whether it is being
10065       # built for inclusion in a dll (and should export symbols for example).
10066       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10067       # (--disable-auto-import) libraries
10068       lt_prog_compiler_pic='-DDLL_EXPORT'
10069       ;;
10070
10071     darwin* | rhapsody*)
10072       # PIC is the default on this platform
10073       # Common symbols not allowed in MH_DYLIB files
10074       lt_prog_compiler_pic='-fno-common'
10075       ;;
10076
10077     haiku*)
10078       # PIC is the default for Haiku.
10079       # The "-static" flag exists, but is broken.
10080       lt_prog_compiler_static=
10081       ;;
10082
10083     hpux*)
10084       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10085       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10086       # sets the default TLS model and affects inlining.
10087       case $host_cpu in
10088       hppa*64*)
10089         # +Z the default
10090         ;;
10091       *)
10092         lt_prog_compiler_pic='-fPIC'
10093         ;;
10094       esac
10095       ;;
10096
10097     interix[3-9]*)
10098       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10099       # Instead, we relocate shared libraries at runtime.
10100       ;;
10101
10102     msdosdjgpp*)
10103       # Just because we use GCC doesn't mean we suddenly get shared libraries
10104       # on systems that don't support them.
10105       lt_prog_compiler_can_build_shared=no
10106       enable_shared=no
10107       ;;
10108
10109     *nto* | *qnx*)
10110       # QNX uses GNU C++, but need to define -shared option too, otherwise
10111       # it will coredump.
10112       lt_prog_compiler_pic='-fPIC -shared'
10113       ;;
10114
10115     sysv4*MP*)
10116       if test -d /usr/nec; then
10117         lt_prog_compiler_pic=-Kconform_pic
10118       fi
10119       ;;
10120
10121     *)
10122       lt_prog_compiler_pic='-fPIC'
10123       ;;
10124     esac
10125
10126     case $cc_basename in
10127     nvcc*) # Cuda Compiler Driver 2.2
10128       lt_prog_compiler_wl='-Xlinker '
10129       if test -n "$lt_prog_compiler_pic"; then
10130         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10131       fi
10132       ;;
10133     esac
10134   else
10135     # PORTME Check for flag to pass linker flags through the system compiler.
10136     case $host_os in
10137     aix*)
10138       lt_prog_compiler_wl='-Wl,'
10139       if test "$host_cpu" = ia64; then
10140         # AIX 5 now supports IA64 processor
10141         lt_prog_compiler_static='-Bstatic'
10142       else
10143         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10144       fi
10145       ;;
10146
10147     mingw* | cygwin* | pw32* | os2* | cegcc*)
10148       # This hack is so that the source file can tell whether it is being
10149       # built for inclusion in a dll (and should export symbols for example).
10150       lt_prog_compiler_pic='-DDLL_EXPORT'
10151       ;;
10152
10153     hpux9* | hpux10* | hpux11*)
10154       lt_prog_compiler_wl='-Wl,'
10155       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10156       # not for PA HP-UX.
10157       case $host_cpu in
10158       hppa*64*|ia64*)
10159         # +Z the default
10160         ;;
10161       *)
10162         lt_prog_compiler_pic='+Z'
10163         ;;
10164       esac
10165       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10166       lt_prog_compiler_static='${wl}-a ${wl}archive'
10167       ;;
10168
10169     irix5* | irix6* | nonstopux*)
10170       lt_prog_compiler_wl='-Wl,'
10171       # PIC (with -KPIC) is the default.
10172       lt_prog_compiler_static='-non_shared'
10173       ;;
10174
10175     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10176       case $cc_basename in
10177       # old Intel for x86_64 which still supported -KPIC.
10178       ecc*)
10179         lt_prog_compiler_wl='-Wl,'
10180         lt_prog_compiler_pic='-KPIC'
10181         lt_prog_compiler_static='-static'
10182         ;;
10183       # icc used to be incompatible with GCC.
10184       # ICC 10 doesn't accept -KPIC any more.
10185       icc* | ifort*)
10186         lt_prog_compiler_wl='-Wl,'
10187         lt_prog_compiler_pic='-fPIC'
10188         lt_prog_compiler_static='-static'
10189         ;;
10190       # Lahey Fortran 8.1.
10191       lf95*)
10192         lt_prog_compiler_wl='-Wl,'
10193         lt_prog_compiler_pic='--shared'
10194         lt_prog_compiler_static='--static'
10195         ;;
10196       nagfor*)
10197         # NAG Fortran compiler
10198         lt_prog_compiler_wl='-Wl,-Wl,,'
10199         lt_prog_compiler_pic='-PIC'
10200         lt_prog_compiler_static='-Bstatic'
10201         ;;
10202       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10203         # Portland Group compilers (*not* the Pentium gcc compiler,
10204         # which looks to be a dead project)
10205         lt_prog_compiler_wl='-Wl,'
10206         lt_prog_compiler_pic='-fpic'
10207         lt_prog_compiler_static='-Bstatic'
10208         ;;
10209       ccc*)
10210         lt_prog_compiler_wl='-Wl,'
10211         # All Alpha code is PIC.
10212         lt_prog_compiler_static='-non_shared'
10213         ;;
10214       xl* | bgxl* | bgf* | mpixl*)
10215         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10216         lt_prog_compiler_wl='-Wl,'
10217         lt_prog_compiler_pic='-qpic'
10218         lt_prog_compiler_static='-qstaticlink'
10219         ;;
10220       *)
10221         case `$CC -V 2>&1 | sed 5q` in
10222         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10223           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10224           lt_prog_compiler_pic='-KPIC'
10225           lt_prog_compiler_static='-Bstatic'
10226           lt_prog_compiler_wl=''
10227           ;;
10228         *Sun\ F* | *Sun*Fortran*)
10229           lt_prog_compiler_pic='-KPIC'
10230           lt_prog_compiler_static='-Bstatic'
10231           lt_prog_compiler_wl='-Qoption ld '
10232           ;;
10233         *Sun\ C*)
10234           # Sun C 5.9
10235           lt_prog_compiler_pic='-KPIC'
10236           lt_prog_compiler_static='-Bstatic'
10237           lt_prog_compiler_wl='-Wl,'
10238           ;;
10239         *Intel*\ [CF]*Compiler*)
10240           lt_prog_compiler_wl='-Wl,'
10241           lt_prog_compiler_pic='-fPIC'
10242           lt_prog_compiler_static='-static'
10243           ;;
10244         *Portland\ Group*)
10245           lt_prog_compiler_wl='-Wl,'
10246           lt_prog_compiler_pic='-fpic'
10247           lt_prog_compiler_static='-Bstatic'
10248           ;;
10249         esac
10250         ;;
10251       esac
10252       ;;
10253
10254     newsos6)
10255       lt_prog_compiler_pic='-KPIC'
10256       lt_prog_compiler_static='-Bstatic'
10257       ;;
10258
10259     *nto* | *qnx*)
10260       # QNX uses GNU C++, but need to define -shared option too, otherwise
10261       # it will coredump.
10262       lt_prog_compiler_pic='-fPIC -shared'
10263       ;;
10264
10265     osf3* | osf4* | osf5*)
10266       lt_prog_compiler_wl='-Wl,'
10267       # All OSF/1 code is PIC.
10268       lt_prog_compiler_static='-non_shared'
10269       ;;
10270
10271     rdos*)
10272       lt_prog_compiler_static='-non_shared'
10273       ;;
10274
10275     solaris*)
10276       lt_prog_compiler_pic='-KPIC'
10277       lt_prog_compiler_static='-Bstatic'
10278       case $cc_basename in
10279       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10280         lt_prog_compiler_wl='-Qoption ld ';;
10281       *)
10282         lt_prog_compiler_wl='-Wl,';;
10283       esac
10284       ;;
10285
10286     sunos4*)
10287       lt_prog_compiler_wl='-Qoption ld '
10288       lt_prog_compiler_pic='-PIC'
10289       lt_prog_compiler_static='-Bstatic'
10290       ;;
10291
10292     sysv4 | sysv4.2uw2* | sysv4.3*)
10293       lt_prog_compiler_wl='-Wl,'
10294       lt_prog_compiler_pic='-KPIC'
10295       lt_prog_compiler_static='-Bstatic'
10296       ;;
10297
10298     sysv4*MP*)
10299       if test -d /usr/nec ;then
10300         lt_prog_compiler_pic='-Kconform_pic'
10301         lt_prog_compiler_static='-Bstatic'
10302       fi
10303       ;;
10304
10305     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10306       lt_prog_compiler_wl='-Wl,'
10307       lt_prog_compiler_pic='-KPIC'
10308       lt_prog_compiler_static='-Bstatic'
10309       ;;
10310
10311     unicos*)
10312       lt_prog_compiler_wl='-Wl,'
10313       lt_prog_compiler_can_build_shared=no
10314       ;;
10315
10316     uts4*)
10317       lt_prog_compiler_pic='-pic'
10318       lt_prog_compiler_static='-Bstatic'
10319       ;;
10320
10321     *)
10322       lt_prog_compiler_can_build_shared=no
10323       ;;
10324     esac
10325   fi
10326
10327 case $host_os in
10328   # For platforms which do not support PIC, -DPIC is meaningless:
10329   *djgpp*)
10330     lt_prog_compiler_pic=
10331     ;;
10332   *)
10333     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10334     ;;
10335 esac
10336
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10338 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10339 if ${lt_cv_prog_compiler_pic+:} false; then :
10340   $as_echo_n "(cached) " >&6
10341 else
10342   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10343 fi
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10345 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10346 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10347
10348 #
10349 # Check to make sure the PIC flag actually works.
10350 #
10351 if test -n "$lt_prog_compiler_pic"; then
10352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10353 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10354 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10355   $as_echo_n "(cached) " >&6
10356 else
10357   lt_cv_prog_compiler_pic_works=no
10358    ac_outfile=conftest.$ac_objext
10359    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10360    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10361    # Insert the option either (1) after the last *FLAGS variable, or
10362    # (2) before a word containing "conftest.", or (3) at the end.
10363    # Note that $ac_compile itself does not contain backslashes and begins
10364    # with a dollar sign (not a hyphen), so the echo should work correctly.
10365    # The option is referenced via a variable to avoid confusing sed.
10366    lt_compile=`echo "$ac_compile" | $SED \
10367    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10368    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10369    -e 's:$: $lt_compiler_flag:'`
10370    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10371    (eval "$lt_compile" 2>conftest.err)
10372    ac_status=$?
10373    cat conftest.err >&5
10374    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375    if (exit $ac_status) && test -s "$ac_outfile"; then
10376      # The compiler can only warn and ignore the option if not recognized
10377      # So say no if there are warnings other than the usual output.
10378      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10379      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10380      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10381        lt_cv_prog_compiler_pic_works=yes
10382      fi
10383    fi
10384    $RM conftest*
10385
10386 fi
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10388 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10389
10390 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10391     case $lt_prog_compiler_pic in
10392      "" | " "*) ;;
10393      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10394      esac
10395 else
10396     lt_prog_compiler_pic=
10397      lt_prog_compiler_can_build_shared=no
10398 fi
10399
10400 fi
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412 #
10413 # Check to make sure the static flag actually works.
10414 #
10415 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10417 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10418 if ${lt_cv_prog_compiler_static_works+:} false; then :
10419   $as_echo_n "(cached) " >&6
10420 else
10421   lt_cv_prog_compiler_static_works=no
10422    save_LDFLAGS="$LDFLAGS"
10423    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10424    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10425    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10426      # The linker can only warn and ignore the option if not recognized
10427      # So say no if there are warnings
10428      if test -s conftest.err; then
10429        # Append any errors to the config.log.
10430        cat conftest.err 1>&5
10431        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10432        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10433        if diff conftest.exp conftest.er2 >/dev/null; then
10434          lt_cv_prog_compiler_static_works=yes
10435        fi
10436      else
10437        lt_cv_prog_compiler_static_works=yes
10438      fi
10439    fi
10440    $RM -r conftest*
10441    LDFLAGS="$save_LDFLAGS"
10442
10443 fi
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10445 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10446
10447 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10448     :
10449 else
10450     lt_prog_compiler_static=
10451 fi
10452
10453
10454
10455
10456
10457
10458
10459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10460 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10461 if ${lt_cv_prog_compiler_c_o+:} false; then :
10462   $as_echo_n "(cached) " >&6
10463 else
10464   lt_cv_prog_compiler_c_o=no
10465    $RM -r conftest 2>/dev/null
10466    mkdir conftest
10467    cd conftest
10468    mkdir out
10469    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10470
10471    lt_compiler_flag="-o out/conftest2.$ac_objext"
10472    # Insert the option either (1) after the last *FLAGS variable, or
10473    # (2) before a word containing "conftest.", or (3) at the end.
10474    # Note that $ac_compile itself does not contain backslashes and begins
10475    # with a dollar sign (not a hyphen), so the echo should work correctly.
10476    lt_compile=`echo "$ac_compile" | $SED \
10477    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10478    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10479    -e 's:$: $lt_compiler_flag:'`
10480    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10481    (eval "$lt_compile" 2>out/conftest.err)
10482    ac_status=$?
10483    cat out/conftest.err >&5
10484    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10486    then
10487      # The compiler can only warn and ignore the option if not recognized
10488      # So say no if there are warnings
10489      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10490      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10491      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10492        lt_cv_prog_compiler_c_o=yes
10493      fi
10494    fi
10495    chmod u+w . 2>&5
10496    $RM conftest*
10497    # SGI C++ compiler will create directory out/ii_files/ for
10498    # template instantiation
10499    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10500    $RM out/* && rmdir out
10501    cd ..
10502    $RM -r conftest
10503    $RM conftest*
10504
10505 fi
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10507 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10508
10509
10510
10511
10512
10513
10514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10515 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10516 if ${lt_cv_prog_compiler_c_o+:} false; then :
10517   $as_echo_n "(cached) " >&6
10518 else
10519   lt_cv_prog_compiler_c_o=no
10520    $RM -r conftest 2>/dev/null
10521    mkdir conftest
10522    cd conftest
10523    mkdir out
10524    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10525
10526    lt_compiler_flag="-o out/conftest2.$ac_objext"
10527    # Insert the option either (1) after the last *FLAGS variable, or
10528    # (2) before a word containing "conftest.", or (3) at the end.
10529    # Note that $ac_compile itself does not contain backslashes and begins
10530    # with a dollar sign (not a hyphen), so the echo should work correctly.
10531    lt_compile=`echo "$ac_compile" | $SED \
10532    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10533    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10534    -e 's:$: $lt_compiler_flag:'`
10535    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10536    (eval "$lt_compile" 2>out/conftest.err)
10537    ac_status=$?
10538    cat out/conftest.err >&5
10539    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10541    then
10542      # The compiler can only warn and ignore the option if not recognized
10543      # So say no if there are warnings
10544      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10545      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10546      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10547        lt_cv_prog_compiler_c_o=yes
10548      fi
10549    fi
10550    chmod u+w . 2>&5
10551    $RM conftest*
10552    # SGI C++ compiler will create directory out/ii_files/ for
10553    # template instantiation
10554    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10555    $RM out/* && rmdir out
10556    cd ..
10557    $RM -r conftest
10558    $RM conftest*
10559
10560 fi
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10562 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10563
10564
10565
10566
10567 hard_links="nottested"
10568 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10569   # do not overwrite the value of need_locks provided by the user
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10571 $as_echo_n "checking if we can lock with hard links... " >&6; }
10572   hard_links=yes
10573   $RM conftest*
10574   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10575   touch conftest.a
10576   ln conftest.a conftest.b 2>&5 || hard_links=no
10577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10579 $as_echo "$hard_links" >&6; }
10580   if test "$hard_links" = no; then
10581     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10582 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10583     need_locks=warn
10584   fi
10585 else
10586   need_locks=no
10587 fi
10588
10589
10590
10591
10592
10593
10594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10596
10597   runpath_var=
10598   allow_undefined_flag=
10599   always_export_symbols=no
10600   archive_cmds=
10601   archive_expsym_cmds=
10602   compiler_needs_object=no
10603   enable_shared_with_static_runtimes=no
10604   export_dynamic_flag_spec=
10605   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10606   hardcode_automatic=no
10607   hardcode_direct=no
10608   hardcode_direct_absolute=no
10609   hardcode_libdir_flag_spec=
10610   hardcode_libdir_separator=
10611   hardcode_minus_L=no
10612   hardcode_shlibpath_var=unsupported
10613   inherit_rpath=no
10614   link_all_deplibs=unknown
10615   module_cmds=
10616   module_expsym_cmds=
10617   old_archive_from_new_cmds=
10618   old_archive_from_expsyms_cmds=
10619   thread_safe_flag_spec=
10620   whole_archive_flag_spec=
10621   # include_expsyms should be a list of space-separated symbols to be *always*
10622   # included in the symbol list
10623   include_expsyms=
10624   # exclude_expsyms can be an extended regexp of symbols to exclude
10625   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10626   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10627   # as well as any symbol that contains `d'.
10628   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10629   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10630   # platforms (ab)use it in PIC code, but their linkers get confused if
10631   # the symbol is explicitly referenced.  Since portable code cannot
10632   # rely on this symbol name, it's probably fine to never include it in
10633   # preloaded symbol tables.
10634   # Exclude shared library initialization/finalization symbols.
10635   extract_expsyms_cmds=
10636
10637   case $host_os in
10638   cygwin* | mingw* | pw32* | cegcc*)
10639     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10640     # When not using gcc, we currently assume that we are using
10641     # Microsoft Visual C++.
10642     if test "$GCC" != yes; then
10643       with_gnu_ld=no
10644     fi
10645     ;;
10646   interix*)
10647     # we just hope/assume this is gcc and not c89 (= MSVC++)
10648     with_gnu_ld=yes
10649     ;;
10650   openbsd*)
10651     with_gnu_ld=no
10652     ;;
10653   esac
10654
10655   ld_shlibs=yes
10656
10657   # On some targets, GNU ld is compatible enough with the native linker
10658   # that we're better off using the native interface for both.
10659   lt_use_gnu_ld_interface=no
10660   if test "$with_gnu_ld" = yes; then
10661     case $host_os in
10662       aix*)
10663         # The AIX port of GNU ld has always aspired to compatibility
10664         # with the native linker.  However, as the warning in the GNU ld
10665         # block says, versions before 2.19.5* couldn't really create working
10666         # shared libraries, regardless of the interface used.
10667         case `$LD -v 2>&1` in
10668           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10669           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10670           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10671           *)
10672             lt_use_gnu_ld_interface=yes
10673             ;;
10674         esac
10675         ;;
10676       *)
10677         lt_use_gnu_ld_interface=yes
10678         ;;
10679     esac
10680   fi
10681
10682   if test "$lt_use_gnu_ld_interface" = yes; then
10683     # If archive_cmds runs LD, not CC, wlarc should be empty
10684     wlarc='${wl}'
10685
10686     # Set some defaults for GNU ld with shared library support. These
10687     # are reset later if shared libraries are not supported. Putting them
10688     # here allows them to be overridden if necessary.
10689     runpath_var=LD_RUN_PATH
10690     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10691     export_dynamic_flag_spec='${wl}--export-dynamic'
10692     # ancient GNU ld didn't support --whole-archive et. al.
10693     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10694       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10695     else
10696       whole_archive_flag_spec=
10697     fi
10698     supports_anon_versioning=no
10699     case `$LD -v 2>&1` in
10700       *GNU\ gold*) supports_anon_versioning=yes ;;
10701       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10702       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10703       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10704       *\ 2.11.*) ;; # other 2.11 versions
10705       *) supports_anon_versioning=yes ;;
10706     esac
10707
10708     # See if GNU ld supports shared libraries.
10709     case $host_os in
10710     aix[3-9]*)
10711       # On AIX/PPC, the GNU linker is very broken
10712       if test "$host_cpu" != ia64; then
10713         ld_shlibs=no
10714         cat <<_LT_EOF 1>&2
10715
10716 *** Warning: the GNU linker, at least up to release 2.19, is reported
10717 *** to be unable to reliably create shared libraries on AIX.
10718 *** Therefore, libtool is disabling shared libraries support.  If you
10719 *** really care for shared libraries, you may want to install binutils
10720 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10721 *** You will then need to restart the configuration process.
10722
10723 _LT_EOF
10724       fi
10725       ;;
10726
10727     amigaos*)
10728       case $host_cpu in
10729       powerpc)
10730             # see comment about AmigaOS4 .so support
10731             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10732             archive_expsym_cmds=''
10733         ;;
10734       m68k)
10735             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)'
10736             hardcode_libdir_flag_spec='-L$libdir'
10737             hardcode_minus_L=yes
10738         ;;
10739       esac
10740       ;;
10741
10742     beos*)
10743       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10744         allow_undefined_flag=unsupported
10745         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10746         # support --undefined.  This deserves some investigation.  FIXME
10747         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10748       else
10749         ld_shlibs=no
10750       fi
10751       ;;
10752
10753     cygwin* | mingw* | pw32* | cegcc*)
10754       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10755       # as there is no search path for DLLs.
10756       hardcode_libdir_flag_spec='-L$libdir'
10757       export_dynamic_flag_spec='${wl}--export-all-symbols'
10758       allow_undefined_flag=unsupported
10759       always_export_symbols=no
10760       enable_shared_with_static_runtimes=yes
10761       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10762       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10763
10764       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10765         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10766         # If the export-symbols file already is a .def file (1st line
10767         # is EXPORTS), use it as is; otherwise, prepend...
10768         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10769           cp $export_symbols $output_objdir/$soname.def;
10770         else
10771           echo EXPORTS > $output_objdir/$soname.def;
10772           cat $export_symbols >> $output_objdir/$soname.def;
10773         fi~
10774         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10775       else
10776         ld_shlibs=no
10777       fi
10778       ;;
10779
10780     haiku*)
10781       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10782       link_all_deplibs=yes
10783       ;;
10784
10785     interix[3-9]*)
10786       hardcode_direct=no
10787       hardcode_shlibpath_var=no
10788       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10789       export_dynamic_flag_spec='${wl}-E'
10790       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10791       # Instead, shared libraries are loaded at an image base (0x10000000 by
10792       # default) and relocated if they conflict, which is a slow very memory
10793       # consuming and fragmenting process.  To avoid this, we pick a random,
10794       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10795       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10796       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10797       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'
10798       ;;
10799
10800     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10801       tmp_diet=no
10802       if test "$host_os" = linux-dietlibc; then
10803         case $cc_basename in
10804           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10805         esac
10806       fi
10807       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10808          && test "$tmp_diet" = no
10809       then
10810         tmp_addflag=' $pic_flag'
10811         tmp_sharedflag='-shared'
10812         case $cc_basename,$host_cpu in
10813         pgcc*)                          # Portland Group C compiler
10814           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10815           tmp_addflag=' $pic_flag'
10816           ;;
10817         pgf77* | pgf90* | pgf95* | pgfortran*)
10818                                         # Portland Group f77 and f90 compilers
10819           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10820           tmp_addflag=' $pic_flag -Mnomain' ;;
10821         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10822           tmp_addflag=' -i_dynamic' ;;
10823         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10824           tmp_addflag=' -i_dynamic -nofor_main' ;;
10825         ifc* | ifort*)                  # Intel Fortran compiler
10826           tmp_addflag=' -nofor_main' ;;
10827         lf95*)                          # Lahey Fortran 8.1
10828           whole_archive_flag_spec=
10829           tmp_sharedflag='--shared' ;;
10830         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10831           tmp_sharedflag='-qmkshrobj'
10832           tmp_addflag= ;;
10833         nvcc*)  # Cuda Compiler Driver 2.2
10834           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10835           compiler_needs_object=yes
10836           ;;
10837         esac
10838         case `$CC -V 2>&1 | sed 5q` in
10839         *Sun\ C*)                       # Sun C 5.9
10840           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10841           compiler_needs_object=yes
10842           tmp_sharedflag='-G' ;;
10843         *Sun\ F*)                       # Sun Fortran 8.3
10844           tmp_sharedflag='-G' ;;
10845         esac
10846         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10847
10848         if test "x$supports_anon_versioning" = xyes; then
10849           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10850             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10851             echo "local: *; };" >> $output_objdir/$libname.ver~
10852             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10853         fi
10854
10855         case $cc_basename in
10856         xlf* | bgf* | bgxlf* | mpixlf*)
10857           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10858           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10859           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10860           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10861           if test "x$supports_anon_versioning" = xyes; then
10862             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10863               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10864               echo "local: *; };" >> $output_objdir/$libname.ver~
10865               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10866           fi
10867           ;;
10868         esac
10869       else
10870         ld_shlibs=no
10871       fi
10872       ;;
10873
10874     netbsd*)
10875       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10876         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10877         wlarc=
10878       else
10879         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10880         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10881       fi
10882       ;;
10883
10884     solaris*)
10885       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10886         ld_shlibs=no
10887         cat <<_LT_EOF 1>&2
10888
10889 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10890 *** create shared libraries on Solaris systems.  Therefore, libtool
10891 *** is disabling shared libraries support.  We urge you to upgrade GNU
10892 *** binutils to release 2.9.1 or newer.  Another option is to modify
10893 *** your PATH or compiler configuration so that the native linker is
10894 *** used, and then restart.
10895
10896 _LT_EOF
10897       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10898         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10899         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10900       else
10901         ld_shlibs=no
10902       fi
10903       ;;
10904
10905     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10906       case `$LD -v 2>&1` in
10907         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10908         ld_shlibs=no
10909         cat <<_LT_EOF 1>&2
10910
10911 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10912 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10913 *** is disabling shared libraries support.  We urge you to upgrade GNU
10914 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10915 *** your PATH or compiler configuration so that the native linker is
10916 *** used, and then restart.
10917
10918 _LT_EOF
10919         ;;
10920         *)
10921           # For security reasons, it is highly recommended that you always
10922           # use absolute paths for naming shared libraries, and exclude the
10923           # DT_RUNPATH tag from executables and libraries.  But doing so
10924           # requires that you compile everything twice, which is a pain.
10925           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10926             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10927             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10928             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10929           else
10930             ld_shlibs=no
10931           fi
10932         ;;
10933       esac
10934       ;;
10935
10936     sunos4*)
10937       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10938       wlarc=
10939       hardcode_direct=yes
10940       hardcode_shlibpath_var=no
10941       ;;
10942
10943     *)
10944       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10945         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10946         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10947       else
10948         ld_shlibs=no
10949       fi
10950       ;;
10951     esac
10952
10953     if test "$ld_shlibs" = no; then
10954       runpath_var=
10955       hardcode_libdir_flag_spec=
10956       export_dynamic_flag_spec=
10957       whole_archive_flag_spec=
10958     fi
10959   else
10960     # PORTME fill in a description of your system's linker (not GNU ld)
10961     case $host_os in
10962     aix3*)
10963       allow_undefined_flag=unsupported
10964       always_export_symbols=yes
10965       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'
10966       # Note: this linker hardcodes the directories in LIBPATH if there
10967       # are no directories specified by -L.
10968       hardcode_minus_L=yes
10969       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10970         # Neither direct hardcoding nor static linking is supported with a
10971         # broken collect2.
10972         hardcode_direct=unsupported
10973       fi
10974       ;;
10975
10976     aix[4-9]*)
10977       if test "$host_cpu" = ia64; then
10978         # On IA64, the linker does run time linking by default, so we don't
10979         # have to do anything special.
10980         aix_use_runtimelinking=no
10981         exp_sym_flag='-Bexport'
10982         no_entry_flag=""
10983       else
10984         # If we're using GNU nm, then we don't want the "-C" option.
10985         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10986         # Also, AIX nm treats weak defined symbols like other global
10987         # defined symbols, whereas GNU nm marks them as "W".
10988         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10989           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10990         else
10991           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'
10992         fi
10993         aix_use_runtimelinking=no
10994
10995         # Test if we are trying to use run time linking or normal
10996         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10997         # need to do runtime linking.
10998         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10999           for ld_flag in $LDFLAGS; do
11000           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11001             aix_use_runtimelinking=yes
11002             break
11003           fi
11004           done
11005           ;;
11006         esac
11007
11008         exp_sym_flag='-bexport'
11009         no_entry_flag='-bnoentry'
11010       fi
11011
11012       # When large executables or shared objects are built, AIX ld can
11013       # have problems creating the table of contents.  If linking a library
11014       # or program results in "error TOC overflow" add -mminimal-toc to
11015       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11016       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11017
11018       archive_cmds=''
11019       hardcode_direct=yes
11020       hardcode_direct_absolute=yes
11021       hardcode_libdir_separator=':'
11022       link_all_deplibs=yes
11023       file_list_spec='${wl}-f,'
11024
11025       if test "$GCC" = yes; then
11026         case $host_os in aix4.[012]|aix4.[012].*)
11027         # We only want to do this on AIX 4.2 and lower, the check
11028         # below for broken collect2 doesn't work under 4.3+
11029           collect2name=`${CC} -print-prog-name=collect2`
11030           if test -f "$collect2name" &&
11031            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11032           then
11033           # We have reworked collect2
11034           :
11035           else
11036           # We have old collect2
11037           hardcode_direct=unsupported
11038           # It fails to find uninstalled libraries when the uninstalled
11039           # path is not listed in the libpath.  Setting hardcode_minus_L
11040           # to unsupported forces relinking
11041           hardcode_minus_L=yes
11042           hardcode_libdir_flag_spec='-L$libdir'
11043           hardcode_libdir_separator=
11044           fi
11045           ;;
11046         esac
11047         shared_flag='-shared'
11048         if test "$aix_use_runtimelinking" = yes; then
11049           shared_flag="$shared_flag "'${wl}-G'
11050         fi
11051       else
11052         # not using gcc
11053         if test "$host_cpu" = ia64; then
11054         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11055         # chokes on -Wl,-G. The following line is correct:
11056           shared_flag='-G'
11057         else
11058           if test "$aix_use_runtimelinking" = yes; then
11059             shared_flag='${wl}-G'
11060           else
11061             shared_flag='${wl}-bM:SRE'
11062           fi
11063         fi
11064       fi
11065
11066       export_dynamic_flag_spec='${wl}-bexpall'
11067       # It seems that -bexpall does not export symbols beginning with
11068       # underscore (_), so it is better to generate a list of symbols to export.
11069       always_export_symbols=yes
11070       if test "$aix_use_runtimelinking" = yes; then
11071         # Warning - without using the other runtime loading flags (-brtl),
11072         # -berok will link without error, but may produce a broken library.
11073         allow_undefined_flag='-berok'
11074         # Determine the default libpath from the value encoded in an
11075         # empty executable.
11076         if test "${lt_cv_aix_libpath+set}" = set; then
11077   aix_libpath=$lt_cv_aix_libpath
11078 else
11079   if ${lt_cv_aix_libpath_+:} false; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h.  */
11084
11085 int
11086 main ()
11087 {
11088
11089   ;
11090   return 0;
11091 }
11092 _ACEOF
11093 if ac_fn_c_try_link "$LINENO"; then :
11094
11095   lt_aix_libpath_sed='
11096       /Import File Strings/,/^$/ {
11097           /^0/ {
11098               s/^0  *\([^ ]*\) *$/\1/
11099               p
11100           }
11101       }'
11102   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11103   # Check for a 64-bit object if we didn't find anything.
11104   if test -z "$lt_cv_aix_libpath_"; then
11105     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11106   fi
11107 fi
11108 rm -f core conftest.err conftest.$ac_objext \
11109     conftest$ac_exeext conftest.$ac_ext
11110   if test -z "$lt_cv_aix_libpath_"; then
11111     lt_cv_aix_libpath_="/usr/lib:/lib"
11112   fi
11113
11114 fi
11115
11116   aix_libpath=$lt_cv_aix_libpath_
11117 fi
11118
11119         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11120         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11121       else
11122         if test "$host_cpu" = ia64; then
11123           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11124           allow_undefined_flag="-z nodefs"
11125           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"
11126         else
11127          # Determine the default libpath from the value encoded in an
11128          # empty executable.
11129          if test "${lt_cv_aix_libpath+set}" = set; then
11130   aix_libpath=$lt_cv_aix_libpath
11131 else
11132   if ${lt_cv_aix_libpath_+:} false; then :
11133   $as_echo_n "(cached) " >&6
11134 else
11135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h.  */
11137
11138 int
11139 main ()
11140 {
11141
11142   ;
11143   return 0;
11144 }
11145 _ACEOF
11146 if ac_fn_c_try_link "$LINENO"; then :
11147
11148   lt_aix_libpath_sed='
11149       /Import File Strings/,/^$/ {
11150           /^0/ {
11151               s/^0  *\([^ ]*\) *$/\1/
11152               p
11153           }
11154       }'
11155   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11156   # Check for a 64-bit object if we didn't find anything.
11157   if test -z "$lt_cv_aix_libpath_"; then
11158     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11159   fi
11160 fi
11161 rm -f core conftest.err conftest.$ac_objext \
11162     conftest$ac_exeext conftest.$ac_ext
11163   if test -z "$lt_cv_aix_libpath_"; then
11164     lt_cv_aix_libpath_="/usr/lib:/lib"
11165   fi
11166
11167 fi
11168
11169   aix_libpath=$lt_cv_aix_libpath_
11170 fi
11171
11172          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11173           # Warning - without using the other run time loading flags,
11174           # -berok will link without error, but may produce a broken library.
11175           no_undefined_flag=' ${wl}-bernotok'
11176           allow_undefined_flag=' ${wl}-berok'
11177           if test "$with_gnu_ld" = yes; then
11178             # We only use this code for GNU lds that support --whole-archive.
11179             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11180           else
11181             # Exported symbols can be pulled into shared objects from archives
11182             whole_archive_flag_spec='$convenience'
11183           fi
11184           archive_cmds_need_lc=yes
11185           # This is similar to how AIX traditionally builds its shared libraries.
11186           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'
11187         fi
11188       fi
11189       ;;
11190
11191     amigaos*)
11192       case $host_cpu in
11193       powerpc)
11194             # see comment about AmigaOS4 .so support
11195             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11196             archive_expsym_cmds=''
11197         ;;
11198       m68k)
11199             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)'
11200             hardcode_libdir_flag_spec='-L$libdir'
11201             hardcode_minus_L=yes
11202         ;;
11203       esac
11204       ;;
11205
11206     bsdi[45]*)
11207       export_dynamic_flag_spec=-rdynamic
11208       ;;
11209
11210     cygwin* | mingw* | pw32* | cegcc*)
11211       # When not using gcc, we currently assume that we are using
11212       # Microsoft Visual C++.
11213       # hardcode_libdir_flag_spec is actually meaningless, as there is
11214       # no search path for DLLs.
11215       case $cc_basename in
11216       cl*)
11217         # Native MSVC
11218         hardcode_libdir_flag_spec=' '
11219         allow_undefined_flag=unsupported
11220         always_export_symbols=yes
11221         file_list_spec='@'
11222         # Tell ltmain to make .lib files, not .a files.
11223         libext=lib
11224         # Tell ltmain to make .dll files, not .so files.
11225         shrext_cmds=".dll"
11226         # FIXME: Setting linknames here is a bad hack.
11227         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11228         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11229             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11230           else
11231             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11232           fi~
11233           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11234           linknames='
11235         # The linker will not automatically build a static lib if we build a DLL.
11236         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11237         enable_shared_with_static_runtimes=yes
11238         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11239         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11240         # Don't use ranlib
11241         old_postinstall_cmds='chmod 644 $oldlib'
11242         postlink_cmds='lt_outputfile="@OUTPUT@"~
11243           lt_tool_outputfile="@TOOL_OUTPUT@"~
11244           case $lt_outputfile in
11245             *.exe|*.EXE) ;;
11246             *)
11247               lt_outputfile="$lt_outputfile.exe"
11248               lt_tool_outputfile="$lt_tool_outputfile.exe"
11249               ;;
11250           esac~
11251           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11252             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11253             $RM "$lt_outputfile.manifest";
11254           fi'
11255         ;;
11256       *)
11257         # Assume MSVC wrapper
11258         hardcode_libdir_flag_spec=' '
11259         allow_undefined_flag=unsupported
11260         # Tell ltmain to make .lib files, not .a files.
11261         libext=lib
11262         # Tell ltmain to make .dll files, not .so files.
11263         shrext_cmds=".dll"
11264         # FIXME: Setting linknames here is a bad hack.
11265         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11266         # The linker will automatically build a .lib file if we build a DLL.
11267         old_archive_from_new_cmds='true'
11268         # FIXME: Should let the user specify the lib program.
11269         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11270         enable_shared_with_static_runtimes=yes
11271         ;;
11272       esac
11273       ;;
11274
11275     darwin* | rhapsody*)
11276
11277
11278   archive_cmds_need_lc=no
11279   hardcode_direct=no
11280   hardcode_automatic=yes
11281   hardcode_shlibpath_var=unsupported
11282   if test "$lt_cv_ld_force_load" = "yes"; then
11283     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11284
11285   else
11286     whole_archive_flag_spec=''
11287   fi
11288   link_all_deplibs=yes
11289   allow_undefined_flag="$_lt_dar_allow_undefined"
11290   case $cc_basename in
11291      ifort*) _lt_dar_can_shared=yes ;;
11292      *) _lt_dar_can_shared=$GCC ;;
11293   esac
11294   if test "$_lt_dar_can_shared" = "yes"; then
11295     output_verbose_link_cmd=func_echo_all
11296     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11297     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11298     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}"
11299     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}"
11300
11301   else
11302   ld_shlibs=no
11303   fi
11304
11305       ;;
11306
11307     dgux*)
11308       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11309       hardcode_libdir_flag_spec='-L$libdir'
11310       hardcode_shlibpath_var=no
11311       ;;
11312
11313     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11314     # support.  Future versions do this automatically, but an explicit c++rt0.o
11315     # does not break anything, and helps significantly (at the cost of a little
11316     # extra space).
11317     freebsd2.2*)
11318       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11319       hardcode_libdir_flag_spec='-R$libdir'
11320       hardcode_direct=yes
11321       hardcode_shlibpath_var=no
11322       ;;
11323
11324     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11325     freebsd2.*)
11326       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11327       hardcode_direct=yes
11328       hardcode_minus_L=yes
11329       hardcode_shlibpath_var=no
11330       ;;
11331
11332     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11333     freebsd* | dragonfly*)
11334       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11335       hardcode_libdir_flag_spec='-R$libdir'
11336       hardcode_direct=yes
11337       hardcode_shlibpath_var=no
11338       ;;
11339
11340     hpux9*)
11341       if test "$GCC" = yes; then
11342         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11343       else
11344         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'
11345       fi
11346       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11347       hardcode_libdir_separator=:
11348       hardcode_direct=yes
11349
11350       # hardcode_minus_L: Not really in the search PATH,
11351       # but as the default location of the library.
11352       hardcode_minus_L=yes
11353       export_dynamic_flag_spec='${wl}-E'
11354       ;;
11355
11356     hpux10*)
11357       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11358         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11359       else
11360         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11361       fi
11362       if test "$with_gnu_ld" = no; then
11363         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11364         hardcode_libdir_separator=:
11365         hardcode_direct=yes
11366         hardcode_direct_absolute=yes
11367         export_dynamic_flag_spec='${wl}-E'
11368         # hardcode_minus_L: Not really in the search PATH,
11369         # but as the default location of the library.
11370         hardcode_minus_L=yes
11371       fi
11372       ;;
11373
11374     hpux11*)
11375       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11376         case $host_cpu in
11377         hppa*64*)
11378           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11379           ;;
11380         ia64*)
11381           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11382           ;;
11383         *)
11384           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11385           ;;
11386         esac
11387       else
11388         case $host_cpu in
11389         hppa*64*)
11390           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11391           ;;
11392         ia64*)
11393           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11394           ;;
11395         *)
11396
11397           # Older versions of the 11.00 compiler do not understand -b yet
11398           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11399           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11400 $as_echo_n "checking if $CC understands -b... " >&6; }
11401 if ${lt_cv_prog_compiler__b+:} false; then :
11402   $as_echo_n "(cached) " >&6
11403 else
11404   lt_cv_prog_compiler__b=no
11405    save_LDFLAGS="$LDFLAGS"
11406    LDFLAGS="$LDFLAGS -b"
11407    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11408    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11409      # The linker can only warn and ignore the option if not recognized
11410      # So say no if there are warnings
11411      if test -s conftest.err; then
11412        # Append any errors to the config.log.
11413        cat conftest.err 1>&5
11414        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11415        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11416        if diff conftest.exp conftest.er2 >/dev/null; then
11417          lt_cv_prog_compiler__b=yes
11418        fi
11419      else
11420        lt_cv_prog_compiler__b=yes
11421      fi
11422    fi
11423    $RM -r conftest*
11424    LDFLAGS="$save_LDFLAGS"
11425
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11428 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11429
11430 if test x"$lt_cv_prog_compiler__b" = xyes; then
11431     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11432 else
11433     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11434 fi
11435
11436           ;;
11437         esac
11438       fi
11439       if test "$with_gnu_ld" = no; then
11440         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11441         hardcode_libdir_separator=:
11442
11443         case $host_cpu in
11444         hppa*64*|ia64*)
11445           hardcode_direct=no
11446           hardcode_shlibpath_var=no
11447           ;;
11448         *)
11449           hardcode_direct=yes
11450           hardcode_direct_absolute=yes
11451           export_dynamic_flag_spec='${wl}-E'
11452
11453           # hardcode_minus_L: Not really in the search PATH,
11454           # but as the default location of the library.
11455           hardcode_minus_L=yes
11456           ;;
11457         esac
11458       fi
11459       ;;
11460
11461     irix5* | irix6* | nonstopux*)
11462       if test "$GCC" = yes; then
11463         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11464         # Try to use the -exported_symbol ld option, if it does not
11465         # work, assume that -exports_file does not work either and
11466         # implicitly export all symbols.
11467         # This should be the same for all languages, so no per-tag cache variable.
11468         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11469 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11470 if ${lt_cv_irix_exported_symbol+:} false; then :
11471   $as_echo_n "(cached) " >&6
11472 else
11473   save_LDFLAGS="$LDFLAGS"
11474            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11475            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h.  */
11477 int foo (void) { return 0; }
11478 _ACEOF
11479 if ac_fn_c_try_link "$LINENO"; then :
11480   lt_cv_irix_exported_symbol=yes
11481 else
11482   lt_cv_irix_exported_symbol=no
11483 fi
11484 rm -f core conftest.err conftest.$ac_objext \
11485     conftest$ac_exeext conftest.$ac_ext
11486            LDFLAGS="$save_LDFLAGS"
11487 fi
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11489 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11490         if test "$lt_cv_irix_exported_symbol" = yes; then
11491           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11492         fi
11493       else
11494         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11495         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11496       fi
11497       archive_cmds_need_lc='no'
11498       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11499       hardcode_libdir_separator=:
11500       inherit_rpath=yes
11501       link_all_deplibs=yes
11502       ;;
11503
11504     netbsd*)
11505       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11506         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11507       else
11508         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11509       fi
11510       hardcode_libdir_flag_spec='-R$libdir'
11511       hardcode_direct=yes
11512       hardcode_shlibpath_var=no
11513       ;;
11514
11515     newsos6)
11516       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11517       hardcode_direct=yes
11518       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11519       hardcode_libdir_separator=:
11520       hardcode_shlibpath_var=no
11521       ;;
11522
11523     *nto* | *qnx*)
11524       ;;
11525
11526     openbsd*)
11527       if test -f /usr/libexec/ld.so; then
11528         hardcode_direct=yes
11529         hardcode_shlibpath_var=no
11530         hardcode_direct_absolute=yes
11531         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11532           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11533           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11534           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11535           export_dynamic_flag_spec='${wl}-E'
11536         else
11537           case $host_os in
11538            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11539              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11540              hardcode_libdir_flag_spec='-R$libdir'
11541              ;;
11542            *)
11543              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11544              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11545              ;;
11546           esac
11547         fi
11548       else
11549         ld_shlibs=no
11550       fi
11551       ;;
11552
11553     os2*)
11554       hardcode_libdir_flag_spec='-L$libdir'
11555       hardcode_minus_L=yes
11556       allow_undefined_flag=unsupported
11557       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'
11558       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11559       ;;
11560
11561     osf3*)
11562       if test "$GCC" = yes; then
11563         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11564         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11565       else
11566         allow_undefined_flag=' -expect_unresolved \*'
11567         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11568       fi
11569       archive_cmds_need_lc='no'
11570       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11571       hardcode_libdir_separator=:
11572       ;;
11573
11574     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11575       if test "$GCC" = yes; then
11576         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11577         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11578         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11579       else
11580         allow_undefined_flag=' -expect_unresolved \*'
11581         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11582         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~
11583         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11584
11585         # Both c and cxx compiler support -rpath directly
11586         hardcode_libdir_flag_spec='-rpath $libdir'
11587       fi
11588       archive_cmds_need_lc='no'
11589       hardcode_libdir_separator=:
11590       ;;
11591
11592     solaris*)
11593       no_undefined_flag=' -z defs'
11594       if test "$GCC" = yes; then
11595         wlarc='${wl}'
11596         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11597         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11598           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11599       else
11600         case `$CC -V 2>&1` in
11601         *"Compilers 5.0"*)
11602           wlarc=''
11603           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11604           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11605           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11606           ;;
11607         *)
11608           wlarc='${wl}'
11609           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11610           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11611           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11612           ;;
11613         esac
11614       fi
11615       hardcode_libdir_flag_spec='-R$libdir'
11616       hardcode_shlibpath_var=no
11617       case $host_os in
11618       solaris2.[0-5] | solaris2.[0-5].*) ;;
11619       *)
11620         # The compiler driver will combine and reorder linker options,
11621         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11622         # but is careful enough not to reorder.
11623         # Supported since Solaris 2.6 (maybe 2.5.1?)
11624         if test "$GCC" = yes; then
11625           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11626         else
11627           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11628         fi
11629         ;;
11630       esac
11631       link_all_deplibs=yes
11632       ;;
11633
11634     sunos4*)
11635       if test "x$host_vendor" = xsequent; then
11636         # Use $CC to link under sequent, because it throws in some extra .o
11637         # files that make .init and .fini sections work.
11638         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11639       else
11640         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11641       fi
11642       hardcode_libdir_flag_spec='-L$libdir'
11643       hardcode_direct=yes
11644       hardcode_minus_L=yes
11645       hardcode_shlibpath_var=no
11646       ;;
11647
11648     sysv4)
11649       case $host_vendor in
11650         sni)
11651           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11652           hardcode_direct=yes # is this really true???
11653         ;;
11654         siemens)
11655           ## LD is ld it makes a PLAMLIB
11656           ## CC just makes a GrossModule.
11657           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11658           reload_cmds='$CC -r -o $output$reload_objs'
11659           hardcode_direct=no
11660         ;;
11661         motorola)
11662           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11663           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11664         ;;
11665       esac
11666       runpath_var='LD_RUN_PATH'
11667       hardcode_shlibpath_var=no
11668       ;;
11669
11670     sysv4.3*)
11671       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11672       hardcode_shlibpath_var=no
11673       export_dynamic_flag_spec='-Bexport'
11674       ;;
11675
11676     sysv4*MP*)
11677       if test -d /usr/nec; then
11678         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11679         hardcode_shlibpath_var=no
11680         runpath_var=LD_RUN_PATH
11681         hardcode_runpath_var=yes
11682         ld_shlibs=yes
11683       fi
11684       ;;
11685
11686     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11687       no_undefined_flag='${wl}-z,text'
11688       archive_cmds_need_lc=no
11689       hardcode_shlibpath_var=no
11690       runpath_var='LD_RUN_PATH'
11691
11692       if test "$GCC" = yes; then
11693         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11694         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11695       else
11696         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11697         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11698       fi
11699       ;;
11700
11701     sysv5* | sco3.2v5* | sco5v6*)
11702       # Note: We can NOT use -z defs as we might desire, because we do not
11703       # link with -lc, and that would cause any symbols used from libc to
11704       # always be unresolved, which means just about no library would
11705       # ever link correctly.  If we're not using GNU ld we use -z text
11706       # though, which does catch some bad symbols but isn't as heavy-handed
11707       # as -z defs.
11708       no_undefined_flag='${wl}-z,text'
11709       allow_undefined_flag='${wl}-z,nodefs'
11710       archive_cmds_need_lc=no
11711       hardcode_shlibpath_var=no
11712       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11713       hardcode_libdir_separator=':'
11714       link_all_deplibs=yes
11715       export_dynamic_flag_spec='${wl}-Bexport'
11716       runpath_var='LD_RUN_PATH'
11717
11718       if test "$GCC" = yes; then
11719         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11720         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11721       else
11722         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11723         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11724       fi
11725       ;;
11726
11727     uts4*)
11728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11729       hardcode_libdir_flag_spec='-L$libdir'
11730       hardcode_shlibpath_var=no
11731       ;;
11732
11733     *)
11734       ld_shlibs=no
11735       ;;
11736     esac
11737
11738     if test x$host_vendor = xsni; then
11739       case $host in
11740       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11741         export_dynamic_flag_spec='${wl}-Blargedynsym'
11742         ;;
11743       esac
11744     fi
11745   fi
11746
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11748 $as_echo "$ld_shlibs" >&6; }
11749 test "$ld_shlibs" = no && can_build_shared=no
11750
11751 with_gnu_ld=$with_gnu_ld
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767 #
11768 # Do we need to explicitly link libc?
11769 #
11770 case "x$archive_cmds_need_lc" in
11771 x|xyes)
11772   # Assume -lc should be added
11773   archive_cmds_need_lc=yes
11774
11775   if test "$enable_shared" = yes && test "$GCC" = yes; then
11776     case $archive_cmds in
11777     *'~'*)
11778       # FIXME: we may have to deal with multi-command sequences.
11779       ;;
11780     '$CC '*)
11781       # Test whether the compiler implicitly links with -lc since on some
11782       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11783       # to ld, don't add -lc before -lgcc.
11784       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11785 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11786 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11787   $as_echo_n "(cached) " >&6
11788 else
11789   $RM conftest*
11790         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11791
11792         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11793   (eval $ac_compile) 2>&5
11794   ac_status=$?
11795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11796   test $ac_status = 0; } 2>conftest.err; then
11797           soname=conftest
11798           lib=conftest
11799           libobjs=conftest.$ac_objext
11800           deplibs=
11801           wl=$lt_prog_compiler_wl
11802           pic_flag=$lt_prog_compiler_pic
11803           compiler_flags=-v
11804           linker_flags=-v
11805           verstring=
11806           output_objdir=.
11807           libname=conftest
11808           lt_save_allow_undefined_flag=$allow_undefined_flag
11809           allow_undefined_flag=
11810           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11811   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11812   ac_status=$?
11813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11814   test $ac_status = 0; }
11815           then
11816             lt_cv_archive_cmds_need_lc=no
11817           else
11818             lt_cv_archive_cmds_need_lc=yes
11819           fi
11820           allow_undefined_flag=$lt_save_allow_undefined_flag
11821         else
11822           cat conftest.err 1>&5
11823         fi
11824         $RM conftest*
11825
11826 fi
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11828 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11829       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11830       ;;
11831     esac
11832   fi
11833   ;;
11834 esac
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11988 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11989
11990 if test "$GCC" = yes; then
11991   case $host_os in
11992     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11993     *) lt_awk_arg="/^libraries:/" ;;
11994   esac
11995   case $host_os in
11996     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11997     *) lt_sed_strip_eq="s,=/,/,g" ;;
11998   esac
11999   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12000   case $lt_search_path_spec in
12001   *\;*)
12002     # if the path contains ";" then we assume it to be the separator
12003     # otherwise default to the standard path separator (i.e. ":") - it is
12004     # assumed that no part of a normal pathname contains ";" but that should
12005     # okay in the real world where ";" in dirpaths is itself problematic.
12006     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12007     ;;
12008   *)
12009     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12010     ;;
12011   esac
12012   # Ok, now we have the path, separated by spaces, we can step through it
12013   # and add multilib dir if necessary.
12014   lt_tmp_lt_search_path_spec=
12015   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12016   for lt_sys_path in $lt_search_path_spec; do
12017     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12018       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12019     else
12020       test -d "$lt_sys_path" && \
12021         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12022     fi
12023   done
12024   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12025 BEGIN {RS=" "; FS="/|\n";} {
12026   lt_foo="";
12027   lt_count=0;
12028   for (lt_i = NF; lt_i > 0; lt_i--) {
12029     if ($lt_i != "" && $lt_i != ".") {
12030       if ($lt_i == "..") {
12031         lt_count++;
12032       } else {
12033         if (lt_count == 0) {
12034           lt_foo="/" $lt_i lt_foo;
12035         } else {
12036           lt_count--;
12037         }
12038       }
12039     }
12040   }
12041   if (lt_foo != "") { lt_freq[lt_foo]++; }
12042   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12043 }'`
12044   # AWK program above erroneously prepends '/' to C:/dos/paths
12045   # for these hosts.
12046   case $host_os in
12047     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12048       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12049   esac
12050   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12051 else
12052   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12053 fi
12054 library_names_spec=
12055 libname_spec='lib$name'
12056 soname_spec=
12057 shrext_cmds=".so"
12058 postinstall_cmds=
12059 postuninstall_cmds=
12060 finish_cmds=
12061 finish_eval=
12062 shlibpath_var=
12063 shlibpath_overrides_runpath=unknown
12064 version_type=none
12065 dynamic_linker="$host_os ld.so"
12066 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12067 need_lib_prefix=unknown
12068 hardcode_into_libs=no
12069
12070 # when you set need_version to no, make sure it does not cause -set_version
12071 # flags to be left without arguments
12072 need_version=unknown
12073
12074 case $host_os in
12075 aix3*)
12076   version_type=linux # correct to gnu/linux during the next big refactor
12077   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12078   shlibpath_var=LIBPATH
12079
12080   # AIX 3 has no versioning support, so we append a major version to the name.
12081   soname_spec='${libname}${release}${shared_ext}$major'
12082   ;;
12083
12084 aix[4-9]*)
12085   version_type=linux # correct to gnu/linux during the next big refactor
12086   need_lib_prefix=no
12087   need_version=no
12088   hardcode_into_libs=yes
12089   if test "$host_cpu" = ia64; then
12090     # AIX 5 supports IA64
12091     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12092     shlibpath_var=LD_LIBRARY_PATH
12093   else
12094     # With GCC up to 2.95.x, collect2 would create an import file
12095     # for dependence libraries.  The import file would start with
12096     # the line `#! .'.  This would cause the generated library to
12097     # depend on `.', always an invalid library.  This was fixed in
12098     # development snapshots of GCC prior to 3.0.
12099     case $host_os in
12100       aix4 | aix4.[01] | aix4.[01].*)
12101       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12102            echo ' yes '
12103            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12104         :
12105       else
12106         can_build_shared=no
12107       fi
12108       ;;
12109     esac
12110     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12111     # soname into executable. Probably we can add versioning support to
12112     # collect2, so additional links can be useful in future.
12113     if test "$aix_use_runtimelinking" = yes; then
12114       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12115       # instead of lib<name>.a to let people know that these are not
12116       # typical AIX shared libraries.
12117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118     else
12119       # We preserve .a as extension for shared libraries through AIX4.2
12120       # and later when we are not doing run time linking.
12121       library_names_spec='${libname}${release}.a $libname.a'
12122       soname_spec='${libname}${release}${shared_ext}$major'
12123     fi
12124     shlibpath_var=LIBPATH
12125   fi
12126   ;;
12127
12128 amigaos*)
12129   case $host_cpu in
12130   powerpc)
12131     # Since July 2007 AmigaOS4 officially supports .so libraries.
12132     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134     ;;
12135   m68k)
12136     library_names_spec='$libname.ixlibrary $libname.a'
12137     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12138     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12139     ;;
12140   esac
12141   ;;
12142
12143 beos*)
12144   library_names_spec='${libname}${shared_ext}'
12145   dynamic_linker="$host_os ld.so"
12146   shlibpath_var=LIBRARY_PATH
12147   ;;
12148
12149 bsdi[45]*)
12150   version_type=linux # correct to gnu/linux during the next big refactor
12151   need_version=no
12152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12153   soname_spec='${libname}${release}${shared_ext}$major'
12154   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12155   shlibpath_var=LD_LIBRARY_PATH
12156   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12157   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12158   # the default ld.so.conf also contains /usr/contrib/lib and
12159   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12160   # libtool to hard-code these into programs
12161   ;;
12162
12163 cygwin* | mingw* | pw32* | cegcc*)
12164   version_type=windows
12165   shrext_cmds=".dll"
12166   need_version=no
12167   need_lib_prefix=no
12168
12169   case $GCC,$cc_basename in
12170   yes,*)
12171     # gcc
12172     library_names_spec='$libname.dll.a'
12173     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12174     postinstall_cmds='base_file=`basename \${file}`~
12175       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12176       dldir=$destdir/`dirname \$dlpath`~
12177       test -d \$dldir || mkdir -p \$dldir~
12178       $install_prog $dir/$dlname \$dldir/$dlname~
12179       chmod a+x \$dldir/$dlname~
12180       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12181         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12182       fi'
12183     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12184       dlpath=$dir/\$dldll~
12185        $RM \$dlpath'
12186     shlibpath_overrides_runpath=yes
12187
12188     case $host_os in
12189     cygwin*)
12190       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12191       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12192
12193       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12194       ;;
12195     mingw* | cegcc*)
12196       # MinGW DLLs use traditional 'lib' prefix
12197       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12198       ;;
12199     pw32*)
12200       # pw32 DLLs use 'pw' prefix rather than 'lib'
12201       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12202       ;;
12203     esac
12204     dynamic_linker='Win32 ld.exe'
12205     ;;
12206
12207   *,cl*)
12208     # Native MSVC
12209     libname_spec='$name'
12210     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12211     library_names_spec='${libname}.dll.lib'
12212
12213     case $build_os in
12214     mingw*)
12215       sys_lib_search_path_spec=
12216       lt_save_ifs=$IFS
12217       IFS=';'
12218       for lt_path in $LIB
12219       do
12220         IFS=$lt_save_ifs
12221         # Let DOS variable expansion print the short 8.3 style file name.
12222         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12223         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12224       done
12225       IFS=$lt_save_ifs
12226       # Convert to MSYS style.
12227       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12228       ;;
12229     cygwin*)
12230       # Convert to unix form, then to dos form, then back to unix form
12231       # but this time dos style (no spaces!) so that the unix form looks
12232       # like /cygdrive/c/PROGRA~1:/cygdr...
12233       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12234       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12235       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12236       ;;
12237     *)
12238       sys_lib_search_path_spec="$LIB"
12239       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12240         # It is most probably a Windows format PATH.
12241         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12242       else
12243         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12244       fi
12245       # FIXME: find the short name or the path components, as spaces are
12246       # common. (e.g. "Program Files" -> "PROGRA~1")
12247       ;;
12248     esac
12249
12250     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12251     postinstall_cmds='base_file=`basename \${file}`~
12252       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12253       dldir=$destdir/`dirname \$dlpath`~
12254       test -d \$dldir || mkdir -p \$dldir~
12255       $install_prog $dir/$dlname \$dldir/$dlname'
12256     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12257       dlpath=$dir/\$dldll~
12258        $RM \$dlpath'
12259     shlibpath_overrides_runpath=yes
12260     dynamic_linker='Win32 link.exe'
12261     ;;
12262
12263   *)
12264     # Assume MSVC wrapper
12265     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12266     dynamic_linker='Win32 ld.exe'
12267     ;;
12268   esac
12269   # FIXME: first we should search . and the directory the executable is in
12270   shlibpath_var=PATH
12271   ;;
12272
12273 darwin* | rhapsody*)
12274   dynamic_linker="$host_os dyld"
12275   version_type=darwin
12276   need_lib_prefix=no
12277   need_version=no
12278   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12279   soname_spec='${libname}${release}${major}$shared_ext'
12280   shlibpath_overrides_runpath=yes
12281   shlibpath_var=DYLD_LIBRARY_PATH
12282   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12283
12284   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12285   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12286   ;;
12287
12288 dgux*)
12289   version_type=linux # correct to gnu/linux during the next big refactor
12290   need_lib_prefix=no
12291   need_version=no
12292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12293   soname_spec='${libname}${release}${shared_ext}$major'
12294   shlibpath_var=LD_LIBRARY_PATH
12295   ;;
12296
12297 freebsd* | dragonfly*)
12298   # DragonFly does not have aout.  When/if they implement a new
12299   # versioning mechanism, adjust this.
12300   if test -x /usr/bin/objformat; then
12301     objformat=`/usr/bin/objformat`
12302   else
12303     case $host_os in
12304     freebsd[23].*) objformat=aout ;;
12305     *) objformat=elf ;;
12306     esac
12307   fi
12308   version_type=freebsd-$objformat
12309   case $version_type in
12310     freebsd-elf*)
12311       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12312       need_version=no
12313       need_lib_prefix=no
12314       ;;
12315     freebsd-*)
12316       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12317       need_version=yes
12318       ;;
12319   esac
12320   shlibpath_var=LD_LIBRARY_PATH
12321   case $host_os in
12322   freebsd2.*)
12323     shlibpath_overrides_runpath=yes
12324     ;;
12325   freebsd3.[01]* | freebsdelf3.[01]*)
12326     shlibpath_overrides_runpath=yes
12327     hardcode_into_libs=yes
12328     ;;
12329   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12330   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12331     shlibpath_overrides_runpath=no
12332     hardcode_into_libs=yes
12333     ;;
12334   *) # from 4.6 on, and DragonFly
12335     shlibpath_overrides_runpath=yes
12336     hardcode_into_libs=yes
12337     ;;
12338   esac
12339   ;;
12340
12341 gnu*)
12342   version_type=linux # correct to gnu/linux during the next big refactor
12343   need_lib_prefix=no
12344   need_version=no
12345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12346   soname_spec='${libname}${release}${shared_ext}$major'
12347   shlibpath_var=LD_LIBRARY_PATH
12348   shlibpath_overrides_runpath=no
12349   hardcode_into_libs=yes
12350   ;;
12351
12352 haiku*)
12353   version_type=linux # correct to gnu/linux during the next big refactor
12354   need_lib_prefix=no
12355   need_version=no
12356   dynamic_linker="$host_os runtime_loader"
12357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12358   soname_spec='${libname}${release}${shared_ext}$major'
12359   shlibpath_var=LIBRARY_PATH
12360   shlibpath_overrides_runpath=yes
12361   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12362   hardcode_into_libs=yes
12363   ;;
12364
12365 hpux9* | hpux10* | hpux11*)
12366   # Give a soname corresponding to the major version so that dld.sl refuses to
12367   # link against other versions.
12368   version_type=sunos
12369   need_lib_prefix=no
12370   need_version=no
12371   case $host_cpu in
12372   ia64*)
12373     shrext_cmds='.so'
12374     hardcode_into_libs=yes
12375     dynamic_linker="$host_os dld.so"
12376     shlibpath_var=LD_LIBRARY_PATH
12377     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12379     soname_spec='${libname}${release}${shared_ext}$major'
12380     if test "X$HPUX_IA64_MODE" = X32; then
12381       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12382     else
12383       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12384     fi
12385     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12386     ;;
12387   hppa*64*)
12388     shrext_cmds='.sl'
12389     hardcode_into_libs=yes
12390     dynamic_linker="$host_os dld.sl"
12391     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12392     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394     soname_spec='${libname}${release}${shared_ext}$major'
12395     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12396     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12397     ;;
12398   *)
12399     shrext_cmds='.sl'
12400     dynamic_linker="$host_os dld.sl"
12401     shlibpath_var=SHLIB_PATH
12402     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404     soname_spec='${libname}${release}${shared_ext}$major'
12405     ;;
12406   esac
12407   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12408   postinstall_cmds='chmod 555 $lib'
12409   # or fails outright, so override atomically:
12410   install_override_mode=555
12411   ;;
12412
12413 interix[3-9]*)
12414   version_type=linux # correct to gnu/linux during the next big refactor
12415   need_lib_prefix=no
12416   need_version=no
12417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12418   soname_spec='${libname}${release}${shared_ext}$major'
12419   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12420   shlibpath_var=LD_LIBRARY_PATH
12421   shlibpath_overrides_runpath=no
12422   hardcode_into_libs=yes
12423   ;;
12424
12425 irix5* | irix6* | nonstopux*)
12426   case $host_os in
12427     nonstopux*) version_type=nonstopux ;;
12428     *)
12429         if test "$lt_cv_prog_gnu_ld" = yes; then
12430                 version_type=linux # correct to gnu/linux during the next big refactor
12431         else
12432                 version_type=irix
12433         fi ;;
12434   esac
12435   need_lib_prefix=no
12436   need_version=no
12437   soname_spec='${libname}${release}${shared_ext}$major'
12438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12439   case $host_os in
12440   irix5* | nonstopux*)
12441     libsuff= shlibsuff=
12442     ;;
12443   *)
12444     case $LD in # libtool.m4 will add one of these switches to LD
12445     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12446       libsuff= shlibsuff= libmagic=32-bit;;
12447     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12448       libsuff=32 shlibsuff=N32 libmagic=N32;;
12449     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12450       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12451     *) libsuff= shlibsuff= libmagic=never-match;;
12452     esac
12453     ;;
12454   esac
12455   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12456   shlibpath_overrides_runpath=no
12457   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12458   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12459   hardcode_into_libs=yes
12460   ;;
12461
12462 # No shared lib support for Linux oldld, aout, or coff.
12463 linux*oldld* | linux*aout* | linux*coff*)
12464   dynamic_linker=no
12465   ;;
12466
12467 # This must be glibc/ELF.
12468 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12469   version_type=linux # correct to gnu/linux during the next big refactor
12470   need_lib_prefix=no
12471   need_version=no
12472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12473   soname_spec='${libname}${release}${shared_ext}$major'
12474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12475   shlibpath_var=LD_LIBRARY_PATH
12476   shlibpath_overrides_runpath=no
12477
12478   # Some binutils ld are patched to set DT_RUNPATH
12479   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12480   $as_echo_n "(cached) " >&6
12481 else
12482   lt_cv_shlibpath_overrides_runpath=no
12483     save_LDFLAGS=$LDFLAGS
12484     save_libdir=$libdir
12485     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12486          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12487     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h.  */
12489
12490 int
12491 main ()
12492 {
12493
12494   ;
12495   return 0;
12496 }
12497 _ACEOF
12498 if ac_fn_c_try_link "$LINENO"; then :
12499   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12500   lt_cv_shlibpath_overrides_runpath=yes
12501 fi
12502 fi
12503 rm -f core conftest.err conftest.$ac_objext \
12504     conftest$ac_exeext conftest.$ac_ext
12505     LDFLAGS=$save_LDFLAGS
12506     libdir=$save_libdir
12507
12508 fi
12509
12510   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12511
12512   # This implies no fast_install, which is unacceptable.
12513   # Some rework will be needed to allow for fast_install
12514   # before this can be enabled.
12515   hardcode_into_libs=yes
12516
12517   # Append ld.so.conf contents to the search path
12518   if test -f /etc/ld.so.conf; then
12519     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12520     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12521   fi
12522
12523   # We used to test for /lib/ld.so.1 and disable shared libraries on
12524   # powerpc, because MkLinux only supported shared libraries with the
12525   # GNU dynamic linker.  Since this was broken with cross compilers,
12526   # most powerpc-linux boxes support dynamic linking these days and
12527   # people can always --disable-shared, the test was removed, and we
12528   # assume the GNU/Linux dynamic linker is in use.
12529   dynamic_linker='GNU/Linux ld.so'
12530   ;;
12531
12532 netbsd*)
12533   version_type=sunos
12534   need_lib_prefix=no
12535   need_version=no
12536   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12538     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12539     dynamic_linker='NetBSD (a.out) ld.so'
12540   else
12541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12542     soname_spec='${libname}${release}${shared_ext}$major'
12543     dynamic_linker='NetBSD ld.elf_so'
12544   fi
12545   shlibpath_var=LD_LIBRARY_PATH
12546   shlibpath_overrides_runpath=yes
12547   hardcode_into_libs=yes
12548   ;;
12549
12550 newsos6)
12551   version_type=linux # correct to gnu/linux during the next big refactor
12552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553   shlibpath_var=LD_LIBRARY_PATH
12554   shlibpath_overrides_runpath=yes
12555   ;;
12556
12557 *nto* | *qnx*)
12558   version_type=qnx
12559   need_lib_prefix=no
12560   need_version=no
12561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12562   soname_spec='${libname}${release}${shared_ext}$major'
12563   shlibpath_var=LD_LIBRARY_PATH
12564   shlibpath_overrides_runpath=no
12565   hardcode_into_libs=yes
12566   dynamic_linker='ldqnx.so'
12567   ;;
12568
12569 openbsd*)
12570   version_type=sunos
12571   sys_lib_dlsearch_path_spec="/usr/lib"
12572   need_lib_prefix=no
12573   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12574   case $host_os in
12575     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12576     *)                          need_version=no  ;;
12577   esac
12578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12579   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12580   shlibpath_var=LD_LIBRARY_PATH
12581   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12582     case $host_os in
12583       openbsd2.[89] | openbsd2.[89].*)
12584         shlibpath_overrides_runpath=no
12585         ;;
12586       *)
12587         shlibpath_overrides_runpath=yes
12588         ;;
12589       esac
12590   else
12591     shlibpath_overrides_runpath=yes
12592   fi
12593   ;;
12594
12595 os2*)
12596   libname_spec='$name'
12597   shrext_cmds=".dll"
12598   need_lib_prefix=no
12599   library_names_spec='$libname${shared_ext} $libname.a'
12600   dynamic_linker='OS/2 ld.exe'
12601   shlibpath_var=LIBPATH
12602   ;;
12603
12604 osf3* | osf4* | osf5*)
12605   version_type=osf
12606   need_lib_prefix=no
12607   need_version=no
12608   soname_spec='${libname}${release}${shared_ext}$major'
12609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12610   shlibpath_var=LD_LIBRARY_PATH
12611   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12612   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12613   ;;
12614
12615 rdos*)
12616   dynamic_linker=no
12617   ;;
12618
12619 solaris*)
12620   version_type=linux # correct to gnu/linux during the next big refactor
12621   need_lib_prefix=no
12622   need_version=no
12623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12624   soname_spec='${libname}${release}${shared_ext}$major'
12625   shlibpath_var=LD_LIBRARY_PATH
12626   shlibpath_overrides_runpath=yes
12627   hardcode_into_libs=yes
12628   # ldd complains unless libraries are executable
12629   postinstall_cmds='chmod +x $lib'
12630   ;;
12631
12632 sunos4*)
12633   version_type=sunos
12634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12635   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12636   shlibpath_var=LD_LIBRARY_PATH
12637   shlibpath_overrides_runpath=yes
12638   if test "$with_gnu_ld" = yes; then
12639     need_lib_prefix=no
12640   fi
12641   need_version=yes
12642   ;;
12643
12644 sysv4 | sysv4.3*)
12645   version_type=linux # correct to gnu/linux during the next big refactor
12646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12647   soname_spec='${libname}${release}${shared_ext}$major'
12648   shlibpath_var=LD_LIBRARY_PATH
12649   case $host_vendor in
12650     sni)
12651       shlibpath_overrides_runpath=no
12652       need_lib_prefix=no
12653       runpath_var=LD_RUN_PATH
12654       ;;
12655     siemens)
12656       need_lib_prefix=no
12657       ;;
12658     motorola)
12659       need_lib_prefix=no
12660       need_version=no
12661       shlibpath_overrides_runpath=no
12662       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12663       ;;
12664   esac
12665   ;;
12666
12667 sysv4*MP*)
12668   if test -d /usr/nec ;then
12669     version_type=linux # correct to gnu/linux during the next big refactor
12670     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12671     soname_spec='$libname${shared_ext}.$major'
12672     shlibpath_var=LD_LIBRARY_PATH
12673   fi
12674   ;;
12675
12676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12677   version_type=freebsd-elf
12678   need_lib_prefix=no
12679   need_version=no
12680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12681   soname_spec='${libname}${release}${shared_ext}$major'
12682   shlibpath_var=LD_LIBRARY_PATH
12683   shlibpath_overrides_runpath=yes
12684   hardcode_into_libs=yes
12685   if test "$with_gnu_ld" = yes; then
12686     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12687   else
12688     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12689     case $host_os in
12690       sco3.2v5*)
12691         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12692         ;;
12693     esac
12694   fi
12695   sys_lib_dlsearch_path_spec='/usr/lib'
12696   ;;
12697
12698 tpf*)
12699   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12700   version_type=linux # correct to gnu/linux during the next big refactor
12701   need_lib_prefix=no
12702   need_version=no
12703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12704   shlibpath_var=LD_LIBRARY_PATH
12705   shlibpath_overrides_runpath=no
12706   hardcode_into_libs=yes
12707   ;;
12708
12709 uts4*)
12710   version_type=linux # correct to gnu/linux during the next big refactor
12711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12712   soname_spec='${libname}${release}${shared_ext}$major'
12713   shlibpath_var=LD_LIBRARY_PATH
12714   ;;
12715
12716 *)
12717   dynamic_linker=no
12718   ;;
12719 esac
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12721 $as_echo "$dynamic_linker" >&6; }
12722 test "$dynamic_linker" = no && can_build_shared=no
12723
12724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12725 if test "$GCC" = yes; then
12726   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12727 fi
12728
12729 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12730   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12731 fi
12732 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12733   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12734 fi
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12828 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12829 hardcode_action=
12830 if test -n "$hardcode_libdir_flag_spec" ||
12831    test -n "$runpath_var" ||
12832    test "X$hardcode_automatic" = "Xyes" ; then
12833
12834   # We can hardcode non-existent directories.
12835   if test "$hardcode_direct" != no &&
12836      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12837      # have to relink, otherwise we might link with an installed library
12838      # when we should be linking with a yet-to-be-installed one
12839      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12840      test "$hardcode_minus_L" != no; then
12841     # Linking always hardcodes the temporary library directory.
12842     hardcode_action=relink
12843   else
12844     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12845     hardcode_action=immediate
12846   fi
12847 else
12848   # We cannot hardcode anything, or else we can only hardcode existing
12849   # directories.
12850   hardcode_action=unsupported
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12853 $as_echo "$hardcode_action" >&6; }
12854
12855 if test "$hardcode_action" = relink ||
12856    test "$inherit_rpath" = yes; then
12857   # Fast installation is not supported
12858   enable_fast_install=no
12859 elif test "$shlibpath_overrides_runpath" = yes ||
12860      test "$enable_shared" = no; then
12861   # Fast installation is not necessary
12862   enable_fast_install=needless
12863 fi
12864
12865
12866
12867
12868
12869
12870   if test "x$enable_dlopen" != xyes; then
12871   enable_dlopen=unknown
12872   enable_dlopen_self=unknown
12873   enable_dlopen_self_static=unknown
12874 else
12875   lt_cv_dlopen=no
12876   lt_cv_dlopen_libs=
12877
12878   case $host_os in
12879   beos*)
12880     lt_cv_dlopen="load_add_on"
12881     lt_cv_dlopen_libs=
12882     lt_cv_dlopen_self=yes
12883     ;;
12884
12885   mingw* | pw32* | cegcc*)
12886     lt_cv_dlopen="LoadLibrary"
12887     lt_cv_dlopen_libs=
12888     ;;
12889
12890   cygwin*)
12891     lt_cv_dlopen="dlopen"
12892     lt_cv_dlopen_libs=
12893     ;;
12894
12895   darwin*)
12896   # if libdl is installed we need to link against it
12897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12898 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12899 if ${ac_cv_lib_dl_dlopen+:} false; then :
12900   $as_echo_n "(cached) " >&6
12901 else
12902   ac_check_lib_save_LIBS=$LIBS
12903 LIBS="-ldl  $LIBS"
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h.  */
12906
12907 /* Override any GCC internal prototype to avoid an error.
12908    Use char because int might match the return type of a GCC
12909    builtin and then its argument prototype would still apply.  */
12910 #ifdef __cplusplus
12911 extern "C"
12912 #endif
12913 char dlopen ();
12914 int
12915 main ()
12916 {
12917 return dlopen ();
12918   ;
12919   return 0;
12920 }
12921 _ACEOF
12922 if ac_fn_c_try_link "$LINENO"; then :
12923   ac_cv_lib_dl_dlopen=yes
12924 else
12925   ac_cv_lib_dl_dlopen=no
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext \
12928     conftest$ac_exeext conftest.$ac_ext
12929 LIBS=$ac_check_lib_save_LIBS
12930 fi
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12932 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12933 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12934   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12935 else
12936
12937     lt_cv_dlopen="dyld"
12938     lt_cv_dlopen_libs=
12939     lt_cv_dlopen_self=yes
12940
12941 fi
12942
12943     ;;
12944
12945   *)
12946     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12947 if test "x$ac_cv_func_shl_load" = xyes; then :
12948   lt_cv_dlopen="shl_load"
12949 else
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12951 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12952 if ${ac_cv_lib_dld_shl_load+:} false; then :
12953   $as_echo_n "(cached) " >&6
12954 else
12955   ac_check_lib_save_LIBS=$LIBS
12956 LIBS="-ldld  $LIBS"
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h.  */
12959
12960 /* Override any GCC internal prototype to avoid an error.
12961    Use char because int might match the return type of a GCC
12962    builtin and then its argument prototype would still apply.  */
12963 #ifdef __cplusplus
12964 extern "C"
12965 #endif
12966 char shl_load ();
12967 int
12968 main ()
12969 {
12970 return shl_load ();
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 if ac_fn_c_try_link "$LINENO"; then :
12976   ac_cv_lib_dld_shl_load=yes
12977 else
12978   ac_cv_lib_dld_shl_load=no
12979 fi
12980 rm -f core conftest.err conftest.$ac_objext \
12981     conftest$ac_exeext conftest.$ac_ext
12982 LIBS=$ac_check_lib_save_LIBS
12983 fi
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12985 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12986 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12987   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12988 else
12989   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12990 if test "x$ac_cv_func_dlopen" = xyes; then :
12991   lt_cv_dlopen="dlopen"
12992 else
12993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12994 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12995 if ${ac_cv_lib_dl_dlopen+:} false; then :
12996   $as_echo_n "(cached) " >&6
12997 else
12998   ac_check_lib_save_LIBS=$LIBS
12999 LIBS="-ldl  $LIBS"
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h.  */
13002
13003 /* Override any GCC internal prototype to avoid an error.
13004    Use char because int might match the return type of a GCC
13005    builtin and then its argument prototype would still apply.  */
13006 #ifdef __cplusplus
13007 extern "C"
13008 #endif
13009 char dlopen ();
13010 int
13011 main ()
13012 {
13013 return dlopen ();
13014   ;
13015   return 0;
13016 }
13017 _ACEOF
13018 if ac_fn_c_try_link "$LINENO"; then :
13019   ac_cv_lib_dl_dlopen=yes
13020 else
13021   ac_cv_lib_dl_dlopen=no
13022 fi
13023 rm -f core conftest.err conftest.$ac_objext \
13024     conftest$ac_exeext conftest.$ac_ext
13025 LIBS=$ac_check_lib_save_LIBS
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13028 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13029 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13030   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13031 else
13032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13033 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13034 if ${ac_cv_lib_svld_dlopen+:} false; then :
13035   $as_echo_n "(cached) " >&6
13036 else
13037   ac_check_lib_save_LIBS=$LIBS
13038 LIBS="-lsvld  $LIBS"
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h.  */
13041
13042 /* Override any GCC internal prototype to avoid an error.
13043    Use char because int might match the return type of a GCC
13044    builtin and then its argument prototype would still apply.  */
13045 #ifdef __cplusplus
13046 extern "C"
13047 #endif
13048 char dlopen ();
13049 int
13050 main ()
13051 {
13052 return dlopen ();
13053   ;
13054   return 0;
13055 }
13056 _ACEOF
13057 if ac_fn_c_try_link "$LINENO"; then :
13058   ac_cv_lib_svld_dlopen=yes
13059 else
13060   ac_cv_lib_svld_dlopen=no
13061 fi
13062 rm -f core conftest.err conftest.$ac_objext \
13063     conftest$ac_exeext conftest.$ac_ext
13064 LIBS=$ac_check_lib_save_LIBS
13065 fi
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13067 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13068 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13069   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13070 else
13071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13072 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13073 if ${ac_cv_lib_dld_dld_link+:} false; then :
13074   $as_echo_n "(cached) " >&6
13075 else
13076   ac_check_lib_save_LIBS=$LIBS
13077 LIBS="-ldld  $LIBS"
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h.  */
13080
13081 /* Override any GCC internal prototype to avoid an error.
13082    Use char because int might match the return type of a GCC
13083    builtin and then its argument prototype would still apply.  */
13084 #ifdef __cplusplus
13085 extern "C"
13086 #endif
13087 char dld_link ();
13088 int
13089 main ()
13090 {
13091 return dld_link ();
13092   ;
13093   return 0;
13094 }
13095 _ACEOF
13096 if ac_fn_c_try_link "$LINENO"; then :
13097   ac_cv_lib_dld_dld_link=yes
13098 else
13099   ac_cv_lib_dld_dld_link=no
13100 fi
13101 rm -f core conftest.err conftest.$ac_objext \
13102     conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13104 fi
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13106 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13107 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13108   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13109 fi
13110
13111
13112 fi
13113
13114
13115 fi
13116
13117
13118 fi
13119
13120
13121 fi
13122
13123
13124 fi
13125
13126     ;;
13127   esac
13128
13129   if test "x$lt_cv_dlopen" != xno; then
13130     enable_dlopen=yes
13131   else
13132     enable_dlopen=no
13133   fi
13134
13135   case $lt_cv_dlopen in
13136   dlopen)
13137     save_CPPFLAGS="$CPPFLAGS"
13138     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13139
13140     save_LDFLAGS="$LDFLAGS"
13141     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13142
13143     save_LIBS="$LIBS"
13144     LIBS="$lt_cv_dlopen_libs $LIBS"
13145
13146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13147 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13148 if ${lt_cv_dlopen_self+:} false; then :
13149   $as_echo_n "(cached) " >&6
13150 else
13151           if test "$cross_compiling" = yes; then :
13152   lt_cv_dlopen_self=cross
13153 else
13154   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13155   lt_status=$lt_dlunknown
13156   cat > conftest.$ac_ext <<_LT_EOF
13157 #line $LINENO "configure"
13158 #include "confdefs.h"
13159
13160 #if HAVE_DLFCN_H
13161 #include <dlfcn.h>
13162 #endif
13163
13164 #include <stdio.h>
13165
13166 #ifdef RTLD_GLOBAL
13167 #  define LT_DLGLOBAL           RTLD_GLOBAL
13168 #else
13169 #  ifdef DL_GLOBAL
13170 #    define LT_DLGLOBAL         DL_GLOBAL
13171 #  else
13172 #    define LT_DLGLOBAL         0
13173 #  endif
13174 #endif
13175
13176 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13177    find out it does not work in some platform. */
13178 #ifndef LT_DLLAZY_OR_NOW
13179 #  ifdef RTLD_LAZY
13180 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13181 #  else
13182 #    ifdef DL_LAZY
13183 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13184 #    else
13185 #      ifdef RTLD_NOW
13186 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13187 #      else
13188 #        ifdef DL_NOW
13189 #          define LT_DLLAZY_OR_NOW      DL_NOW
13190 #        else
13191 #          define LT_DLLAZY_OR_NOW      0
13192 #        endif
13193 #      endif
13194 #    endif
13195 #  endif
13196 #endif
13197
13198 /* When -fvisbility=hidden is used, assume the code has been annotated
13199    correspondingly for the symbols needed.  */
13200 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13201 int fnord () __attribute__((visibility("default")));
13202 #endif
13203
13204 int fnord () { return 42; }
13205 int main ()
13206 {
13207   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13208   int status = $lt_dlunknown;
13209
13210   if (self)
13211     {
13212       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13213       else
13214         {
13215           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13216           else puts (dlerror ());
13217         }
13218       /* dlclose (self); */
13219     }
13220   else
13221     puts (dlerror ());
13222
13223   return status;
13224 }
13225 _LT_EOF
13226   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13227   (eval $ac_link) 2>&5
13228   ac_status=$?
13229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13230   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13231     (./conftest; exit; ) >&5 2>/dev/null
13232     lt_status=$?
13233     case x$lt_status in
13234       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13235       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13236       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13237     esac
13238   else :
13239     # compilation failed
13240     lt_cv_dlopen_self=no
13241   fi
13242 fi
13243 rm -fr conftest*
13244
13245
13246 fi
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13248 $as_echo "$lt_cv_dlopen_self" >&6; }
13249
13250     if test "x$lt_cv_dlopen_self" = xyes; then
13251       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13252       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13253 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13254 if ${lt_cv_dlopen_self_static+:} false; then :
13255   $as_echo_n "(cached) " >&6
13256 else
13257           if test "$cross_compiling" = yes; then :
13258   lt_cv_dlopen_self_static=cross
13259 else
13260   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13261   lt_status=$lt_dlunknown
13262   cat > conftest.$ac_ext <<_LT_EOF
13263 #line $LINENO "configure"
13264 #include "confdefs.h"
13265
13266 #if HAVE_DLFCN_H
13267 #include <dlfcn.h>
13268 #endif
13269
13270 #include <stdio.h>
13271
13272 #ifdef RTLD_GLOBAL
13273 #  define LT_DLGLOBAL           RTLD_GLOBAL
13274 #else
13275 #  ifdef DL_GLOBAL
13276 #    define LT_DLGLOBAL         DL_GLOBAL
13277 #  else
13278 #    define LT_DLGLOBAL         0
13279 #  endif
13280 #endif
13281
13282 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13283    find out it does not work in some platform. */
13284 #ifndef LT_DLLAZY_OR_NOW
13285 #  ifdef RTLD_LAZY
13286 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13287 #  else
13288 #    ifdef DL_LAZY
13289 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13290 #    else
13291 #      ifdef RTLD_NOW
13292 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13293 #      else
13294 #        ifdef DL_NOW
13295 #          define LT_DLLAZY_OR_NOW      DL_NOW
13296 #        else
13297 #          define LT_DLLAZY_OR_NOW      0
13298 #        endif
13299 #      endif
13300 #    endif
13301 #  endif
13302 #endif
13303
13304 /* When -fvisbility=hidden is used, assume the code has been annotated
13305    correspondingly for the symbols needed.  */
13306 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13307 int fnord () __attribute__((visibility("default")));
13308 #endif
13309
13310 int fnord () { return 42; }
13311 int main ()
13312 {
13313   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13314   int status = $lt_dlunknown;
13315
13316   if (self)
13317     {
13318       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13319       else
13320         {
13321           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13322           else puts (dlerror ());
13323         }
13324       /* dlclose (self); */
13325     }
13326   else
13327     puts (dlerror ());
13328
13329   return status;
13330 }
13331 _LT_EOF
13332   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13333   (eval $ac_link) 2>&5
13334   ac_status=$?
13335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13336   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13337     (./conftest; exit; ) >&5 2>/dev/null
13338     lt_status=$?
13339     case x$lt_status in
13340       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13341       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13342       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13343     esac
13344   else :
13345     # compilation failed
13346     lt_cv_dlopen_self_static=no
13347   fi
13348 fi
13349 rm -fr conftest*
13350
13351
13352 fi
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13354 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13355     fi
13356
13357     CPPFLAGS="$save_CPPFLAGS"
13358     LDFLAGS="$save_LDFLAGS"
13359     LIBS="$save_LIBS"
13360     ;;
13361   esac
13362
13363   case $lt_cv_dlopen_self in
13364   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13365   *) enable_dlopen_self=unknown ;;
13366   esac
13367
13368   case $lt_cv_dlopen_self_static in
13369   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13370   *) enable_dlopen_self_static=unknown ;;
13371   esac
13372 fi
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390 striplib=
13391 old_striplib=
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13393 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13394 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13395   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13396   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13398 $as_echo "yes" >&6; }
13399 else
13400 # FIXME - insert some real tests, host_os isn't really good enough
13401   case $host_os in
13402   darwin*)
13403     if test -n "$STRIP" ; then
13404       striplib="$STRIP -x"
13405       old_striplib="$STRIP -S"
13406       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407 $as_echo "yes" >&6; }
13408     else
13409       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13411     fi
13412     ;;
13413   *)
13414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415 $as_echo "no" >&6; }
13416     ;;
13417   esac
13418 fi
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431   # Report which library types will actually be built
13432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13433 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13435 $as_echo "$can_build_shared" >&6; }
13436
13437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13438 $as_echo_n "checking whether to build shared libraries... " >&6; }
13439   test "$can_build_shared" = "no" && enable_shared=no
13440
13441   # On AIX, shared libraries and static libraries use the same namespace, and
13442   # are all built from PIC.
13443   case $host_os in
13444   aix3*)
13445     test "$enable_shared" = yes && enable_static=no
13446     if test -n "$RANLIB"; then
13447       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13448       postinstall_cmds='$RANLIB $lib'
13449     fi
13450     ;;
13451
13452   aix[4-9]*)
13453     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13454       test "$enable_shared" = yes && enable_static=no
13455     fi
13456     ;;
13457   esac
13458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13459 $as_echo "$enable_shared" >&6; }
13460
13461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13462 $as_echo_n "checking whether to build static libraries... " >&6; }
13463   # Make sure either enable_shared or enable_static is yes.
13464   test "$enable_shared" = yes || enable_static=yes
13465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13466 $as_echo "$enable_static" >&6; }
13467
13468
13469
13470
13471 fi
13472 ac_ext=c
13473 ac_cpp='$CPP $CPPFLAGS'
13474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13477
13478 CC="$lt_save_CC"
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494         ac_config_commands="$ac_config_commands libtool"
13495
13496
13497
13498
13499 # Only expand once:
13500
13501
13502
13503 if test "$enable_shared" = "no"; then
13504     with_noexec=no
13505     enable_dlopen=no
13506     lt_cv_dlopen=none
13507     lt_cv_dlopen_libs=
13508     ac_cv_func_dlopen=no
13509 else
13510     eval _shrext="$shrext_cmds"
13511     # Darwin uses .dylib for libraries but .so for modules
13512     if test X"$_shrext" = X".dylib"; then
13513         SOEXT=".so"
13514     else
13515         SOEXT="$_shrext"
13516     fi
13517 fi
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13519 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13520
13521 # Check whether --with-noexec was given.
13522 if test "${with_noexec+set}" = set; then :
13523   withval=$with_noexec; case $with_noexec in
13524     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
13525                 ;;
13526     no)         ;;
13527     *)          ;;
13528 esac
13529 else
13530   with_noexec="$libexecdir/sudo_noexec$_shrext"
13531 fi
13532
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13534 $as_echo "$with_noexec" >&6; }
13535 NOEXECFILE="sudo_noexec$_shrext"
13536 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
13537
13538 # Extract the first word of "uname", so it can be a program name with args.
13539 set dummy uname; ac_word=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if ${ac_cv_prog_UNAMEPROG+:} false; then :
13543   $as_echo_n "(cached) " >&6
13544 else
13545   if test -n "$UNAMEPROG"; then
13546   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
13547 else
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in $PATH
13550 do
13551   IFS=$as_save_IFS
13552   test -z "$as_dir" && as_dir=.
13553     for ac_exec_ext in '' $ac_executable_extensions; do
13554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13555     ac_cv_prog_UNAMEPROG="uname"
13556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557     break 2
13558   fi
13559 done
13560   done
13561 IFS=$as_save_IFS
13562
13563 fi
13564 fi
13565 UNAMEPROG=$ac_cv_prog_UNAMEPROG
13566 if test -n "$UNAMEPROG"; then
13567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13568 $as_echo "$UNAMEPROG" >&6; }
13569 else
13570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571 $as_echo "no" >&6; }
13572 fi
13573
13574
13575 # Extract the first word of "tr", so it can be a program name with args.
13576 set dummy tr; ac_word=$2
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if ${ac_cv_prog_TRPROG+:} false; then :
13580   $as_echo_n "(cached) " >&6
13581 else
13582   if test -n "$TRPROG"; then
13583   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
13584 else
13585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586 for as_dir in $PATH
13587 do
13588   IFS=$as_save_IFS
13589   test -z "$as_dir" && as_dir=.
13590     for ac_exec_ext in '' $ac_executable_extensions; do
13591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13592     ac_cv_prog_TRPROG="tr"
13593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13594     break 2
13595   fi
13596 done
13597   done
13598 IFS=$as_save_IFS
13599
13600 fi
13601 fi
13602 TRPROG=$ac_cv_prog_TRPROG
13603 if test -n "$TRPROG"; then
13604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13605 $as_echo "$TRPROG" >&6; }
13606 else
13607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608 $as_echo "no" >&6; }
13609 fi
13610
13611
13612 for ac_prog in nroff mandoc
13613 do
13614   # Extract the first word of "$ac_prog", so it can be a program name with args.
13615 set dummy $ac_prog; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13617 $as_echo_n "checking for $ac_word... " >&6; }
13618 if ${ac_cv_prog_NROFFPROG+:} false; then :
13619   $as_echo_n "(cached) " >&6
13620 else
13621   if test -n "$NROFFPROG"; then
13622   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
13623 else
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13626 do
13627   IFS=$as_save_IFS
13628   test -z "$as_dir" && as_dir=.
13629     for ac_exec_ext in '' $ac_executable_extensions; do
13630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13631     ac_cv_prog_NROFFPROG="$ac_prog"
13632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13633     break 2
13634   fi
13635 done
13636   done
13637 IFS=$as_save_IFS
13638
13639 fi
13640 fi
13641 NROFFPROG=$ac_cv_prog_NROFFPROG
13642 if test -n "$NROFFPROG"; then
13643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13644 $as_echo "$NROFFPROG" >&6; }
13645 else
13646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13648 fi
13649
13650
13651   test -n "$NROFFPROG" && break
13652 done
13653
13654 if test -n "$NROFFPROG"; then
13655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -c option" >&5
13656 $as_echo_n "checking whether $NROFFPROG supports the -c option... " >&6; }
13657 if ${sudo_cv_var_nroff_opt_c+:} false; then :
13658   $as_echo_n "(cached) " >&6
13659 else
13660   if $NROFFPROG -c </dev/null >/dev/null 2>&1; then
13661             sudo_cv_var_nroff_opt_c=yes
13662         else
13663             sudo_cv_var_nroff_opt_c=no
13664         fi
13665
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_c" >&5
13668 $as_echo "$sudo_cv_var_nroff_opt_c" >&6; }
13669     if test "$sudo_cv_var_nroff_opt_c" = "yes"; then
13670         NROFFPROG="$NROFFPROG -c"
13671     fi
13672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $NROFFPROG supports the -Tascii option" >&5
13673 $as_echo_n "checking whether $NROFFPROG supports the -Tascii option... " >&6; }
13674 if ${sudo_cv_var_nroff_opt_Tascii+:} false; then :
13675   $as_echo_n "(cached) " >&6
13676 else
13677   if $NROFFPROG -Tascii </dev/null >/dev/null 2>&1; then
13678             sudo_cv_var_nroff_opt_Tascii=yes
13679         else
13680             sudo_cv_var_nroff_opt_Tascii=no
13681         fi
13682     if test "$sudo_cv_var_nroff_opt_Tascii" = "yes"; then
13683         NROFFPROG="$NROFFPROG -Tascii"
13684     fi
13685
13686 fi
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_nroff_opt_Tascii" >&5
13688 $as_echo "$sudo_cv_var_nroff_opt_Tascii" >&6; }
13689 else
13690     MANTYPE="cat"
13691     mansrcdir='$(srcdir)'
13692 fi
13693
13694 if test -n "$sudo_cv_prev_host"; then
13695     if test "$sudo_cv_prev_host" != "$host"; then
13696         as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13697     else
13698         { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13699 $as_echo_n "checking previous host type... " >&6; }
13700         if ${sudo_cv_prev_host+:} false; then :
13701   $as_echo_n "(cached) " >&6
13702 else
13703   sudo_cv_prev_host="$host"
13704 fi
13705
13706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13707 $as_echo "$sudo_cv_prev_host" >&6; }
13708     fi
13709 else
13710     # this will produce no output since there is no cached value
13711     if ${sudo_cv_prev_host+:} false; then :
13712   $as_echo_n "(cached) " >&6
13713 else
13714   sudo_cv_prev_host="$host"
13715 fi
13716
13717 fi
13718
13719 if test -n "$host_os"; then
13720     OS=`echo $host_os | sed 's/[0-9].*//'`
13721     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13722     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13723 else
13724     OS="unknown"
13725     OSREV=0
13726     OSMAJOR=0
13727 fi
13728
13729 case "$host" in
13730     *-*-sunos4*)
13731                 # getcwd(3) opens a pipe to getpwd(1)!?!
13732                 BROKEN_GETCWD=1
13733
13734                 # system headers lack prototypes but gcc helps...
13735                 if test -n "$GCC"; then
13736                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13737                 fi
13738
13739                 shadow_funcs="getpwanam issecure"
13740                 ;;
13741     *-*-solaris2*)
13742                 # To get the crypt(3) prototype (so we pass -Wall)
13743                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13744                 # AFS support needs -lucb
13745                 if test "$with_AFS" = "yes"; then
13746                     AFS_LIBS="-lc -lucb"
13747                 fi
13748                 : ${mansectsu='1m'}
13749                 : ${mansectform='4'}
13750                 : ${with_rpath='yes'}
13751                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13752                 for ac_func in priv_set
13753 do :
13754   ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13755 if test "x$ac_cv_func_priv_set" = xyes; then :
13756   cat >>confdefs.h <<_ACEOF
13757 #define HAVE_PRIV_SET 1
13758 _ACEOF
13759
13760 fi
13761 done
13762
13763                 ;;
13764     *-*-aix*)
13765                 # To get all prototypes (so we pass -Wall)
13766                 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13767                 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
13768                 if test X"$with_blibpath" != X"no"; then
13769                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
13770 $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
13771                     O_LDFLAGS="$LDFLAGS"
13772                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
13773                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h.  */
13775
13776 int
13777 main ()
13778 {
13779
13780   ;
13781   return 0;
13782 }
13783 _ACEOF
13784 if ac_fn_c_try_link "$LINENO"; then :
13785
13786                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13787                             blibpath="$with_blibpath"
13788                         elif test -n "$GCC"; then
13789                             blibpath="/usr/lib:/lib:/usr/local/lib"
13790                         else
13791                             blibpath="/usr/lib:/lib"
13792                         fi
13793                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13794 $as_echo "yes" >&6; }
13795
13796 else
13797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798 $as_echo "no" >&6; }
13799 fi
13800 rm -f core conftest.err conftest.$ac_objext \
13801     conftest$ac_exeext conftest.$ac_ext
13802                 fi
13803                 LDFLAGS="$O_LDFLAGS"
13804
13805                 # On AIX 6 and higher default to PAM, else default to LAM
13806                 if test $OSMAJOR -ge 6; then
13807                     if test X"$with_pam" = X""; then
13808                         AUTH_EXCL_DEF="PAM"
13809                     fi
13810                 else
13811                     if test X"$with_aixauth" = X""; then
13812                         for ac_func in authenticate
13813 do :
13814   ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13815 if test "x$ac_cv_func_authenticate" = xyes; then :
13816   cat >>confdefs.h <<_ACEOF
13817 #define HAVE_AUTHENTICATE 1
13818 _ACEOF
13819  AUTH_EXCL_DEF="AIX_AUTH"
13820 fi
13821 done
13822
13823                     fi
13824                 fi
13825
13826                 # AIX analog of nsswitch.conf, enabled by default
13827
13828 # Check whether --with-netsvc was given.
13829 if test "${with_netsvc+set}" = set; then :
13830   withval=$with_netsvc; case $with_netsvc in
13831                     no)         ;;
13832                     yes)        with_netsvc="/etc/netsvc.conf"
13833                                 ;;
13834                     *)          ;;
13835                 esac
13836 fi
13837
13838                 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
13839                     with_netsvc="/etc/netsvc.conf"
13840                 fi
13841
13842                 # For implementing getgrouplist()
13843                 for ac_func in getgrset
13844 do :
13845   ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
13846 if test "x$ac_cv_func_getgrset" = xyes; then :
13847   cat >>confdefs.h <<_ACEOF
13848 #define HAVE_GETGRSET 1
13849 _ACEOF
13850
13851 fi
13852 done
13853
13854
13855                 # LDR_PRELOAD is only supported in AIX 5.3 and later
13856                 if test $OSMAJOR -lt 5; then
13857                     with_noexec=no
13858                 fi
13859
13860                 # AIX-specific functions
13861                 for ac_func in getuserattr setauthdb
13862 do :
13863   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13864 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13865 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13866   cat >>confdefs.h <<_ACEOF
13867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13868 _ACEOF
13869
13870 fi
13871 done
13872
13873                 COMMON_OBJS="$COMMON_OBJS aix.lo"
13874                 ;;
13875     *-*-hiuxmpp*)
13876                 : ${mansectsu='1m'}
13877                 : ${mansectform='4'}
13878                 ;;
13879     *-*-hpux*)
13880                 # AFS support needs -lBSD
13881                 if test "$with_AFS" = "yes"; then
13882                     AFS_LIBS="-lc -lBSD"
13883                 fi
13884                 : ${mansectsu='1m'}
13885                 : ${mansectform='4'}
13886
13887                 # The HP bundled compiler cannot generate shared libs
13888                 if test -z "$GCC"; then
13889                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
13890 $as_echo_n "checking for HP bundled C compiler... " >&6; }
13891 if ${sudo_cv_var_hpccbundled+:} false; then :
13892   $as_echo_n "(cached) " >&6
13893 else
13894   if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
13895                             sudo_cv_var_hpccbundled=yes
13896                         else
13897                             sudo_cv_var_hpccbundled=no
13898                         fi
13899
13900 fi
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
13902 $as_echo "$sudo_cv_var_hpccbundled" >&6; }
13903                     if test "$sudo_cv_var_hpccbundled" = "yes"; then
13904                         as_fn_error $? "The HP bundled C compiler is unable to build Sudo, you must use gcc or the HP ANSI C compiler instead." "$LINENO" 5
13905                     fi
13906                 fi
13907
13908                 # Build PA-RISC1.1 objects for better portability
13909                 case "$host_cpu" in
13910                     hppa[2-9]*)
13911                         _CFLAGS="$CFLAGS"
13912                         if test -n "$GCC"; then
13913                             portable_flag="-march=1.1"
13914                         else
13915                             portable_flag="+DAportable"
13916                         fi
13917                         CFLAGS="$CFLAGS $portable_flag"
13918                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
13919 $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
13920 if ${sudo_cv_var_daportable+:} false; then :
13921   $as_echo_n "(cached) " >&6
13922 else
13923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h.  */
13925
13926 int
13927 main ()
13928 {
13929
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 if ac_fn_c_try_link "$LINENO"; then :
13935   sudo_cv_var_daportable=yes
13936 else
13937   sudo_cv_var_daportable=no
13938
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext \
13941     conftest$ac_exeext conftest.$ac_ext
13942
13943
13944 fi
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
13946 $as_echo "$sudo_cv_var_daportable" >&6; }
13947                         if test X"$sudo_cv_var_daportable" != X"yes"; then
13948                             CFLAGS="$_CFLAGS"
13949                         fi
13950                         ;;
13951                 esac
13952
13953                 case "$host" in
13954                         *-*-hpux[1-8].*)
13955                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13956
13957                         ;;
13958                         *-*-hpux9.*)
13959                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
13960
13961
13962                             shadow_funcs="getspwuid"
13963
13964                             # DCE support (requires ANSI C compiler)
13965                             if test "$with_DCE" = "yes"; then
13966                                 # order of libs in 9.X is important. -lc_r must be last
13967                                 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
13968                                 LIBS="${LIBS} -ldce -lM -lc_r"
13969                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
13970                             fi
13971                         ;;
13972                         *-*-hpux10.*)
13973                             shadow_funcs="getprpwnam iscomsec"
13974                             shadow_libs="-lsec"
13975                             # HP-UX 10.20 libc has an incompatible getline
13976                             ac_cv_func_getline="no"
13977                         ;;
13978                         *)
13979                             shadow_funcs="getspnam iscomsec"
13980                             shadow_libs="-lsec"
13981                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13982                         ;;
13983                 esac
13984                 ;;
13985     *-dec-osf*)
13986                 # ignore envariables wrt dynamic lib path
13987                 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
13988
13989                 : ${CHECKSIA='true'}
13990                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
13991 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
13992                 # Check whether --enable-sia was given.
13993 if test "${enable_sia+set}" = set; then :
13994   enableval=$enable_sia;  case "$enableval" in
13995                     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996 $as_echo "no" >&6; }
13997                                 CHECKSIA=true
13998                                 ;;
13999                     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14000 $as_echo "yes" >&6; }
14001                                 CHECKSIA=false
14002                                 ;;
14003                     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004 $as_echo "no" >&6; }
14005                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
14006 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
14007                                 ;;
14008                   esac
14009
14010 else
14011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012 $as_echo "no" >&6; }
14013 fi
14014
14015
14016                 shadow_funcs="getprpwnam dispcrypt"
14017                 # OSF/1 4.x and higher need -ldb too
14018                 if test $OSMAJOR -lt 4; then
14019                     shadow_libs="-lsecurity -laud -lm"
14020                 else
14021                     shadow_libs="-lsecurity -ldb -laud -lm"
14022                 fi
14023
14024                 # use SIA by default, if we have it
14025                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
14026
14027                 #
14028                 # Some versions of Digital Unix ship with a broken
14029                 # copy of prot.h, which we need for shadow passwords.
14030                 # XXX - make should remove this as part of distclean
14031                 #
14032                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
14033 $as_echo_n "checking for broken prot.h... " >&6; }
14034                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h.  */
14036
14037 #include <sys/types.h>
14038 #include <sys/security.h>
14039 #include <prot.h>
14040
14041 int
14042 main ()
14043 {
14044 exit(0);
14045   ;
14046   return 0;
14047 }
14048 _ACEOF
14049 if ac_fn_c_try_compile "$LINENO"; then :
14050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 $as_echo "no" >&6; }
14052 else
14053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
14054 $as_echo "yes, fixing locally" >&6; }
14055                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
14056
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059                 : ${mansectsu='8'}
14060                 : ${mansectform='4'}
14061                 ;;
14062     *-*-irix*)
14063                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
14064                 if test -z "$NROFFPROG"; then
14065                     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)'
14066                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14067                         if test -d /usr/share/catman/local; then
14068                             mandir="/usr/share/catman/local"
14069                         else
14070                             mandir="/usr/catman/local"
14071                         fi
14072                     fi
14073                 else
14074                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14075                         if test -d "/usr/share/man/local"; then
14076                             mandir="/usr/share/man/local"
14077                         else
14078                             mandir="/usr/man/local"
14079                         fi
14080                     fi
14081                 fi
14082                 # IRIX <= 4 needs -lsun
14083                 if test "$OSMAJOR" -le 4; then
14084                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14085 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14086 if ${ac_cv_lib_sun_getpwnam+:} false; then :
14087   $as_echo_n "(cached) " >&6
14088 else
14089   ac_check_lib_save_LIBS=$LIBS
14090 LIBS="-lsun  $LIBS"
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h.  */
14093
14094 /* Override any GCC internal prototype to avoid an error.
14095    Use char because int might match the return type of a GCC
14096    builtin and then its argument prototype would still apply.  */
14097 #ifdef __cplusplus
14098 extern "C"
14099 #endif
14100 char getpwnam ();
14101 int
14102 main ()
14103 {
14104 return getpwnam ();
14105   ;
14106   return 0;
14107 }
14108 _ACEOF
14109 if ac_fn_c_try_link "$LINENO"; then :
14110   ac_cv_lib_sun_getpwnam=yes
14111 else
14112   ac_cv_lib_sun_getpwnam=no
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext \
14115     conftest$ac_exeext conftest.$ac_ext
14116 LIBS=$ac_check_lib_save_LIBS
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14119 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14120 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14121   LIBS="${LIBS} -lsun"
14122 fi
14123
14124                 fi
14125                 : ${mansectsu='1m'}
14126                 : ${mansectform='4'}
14127                 ;;
14128     *-*-linux*|*-*-k*bsd*-gnu)
14129                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14130                 # Some Linux versions need to link with -lshadow
14131                 shadow_funcs="getspnam"
14132                 shadow_libs_optional="-lshadow"
14133                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14134                 ;;
14135     *-convex-bsd*)
14136                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14137                 if test -z "$GCC"; then
14138                     CFLAGS="${CFLAGS} -D__STDC__"
14139                 fi
14140
14141                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14142                 shadow_funcs="getprpwnam"
14143                 shadow_libs="-lprot"
14144                 ;;
14145     *-*-ultrix*)
14146                 OS="ultrix"
14147                 shadow_funcs="getauthuid"
14148                 shadow_libs="-lauth"
14149                 ;;
14150     *-*-riscos*)
14151                 LIBS="${LIBS} -lsun -lbsd"
14152                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
14153                 OSDEFS="${OSDEFS} -D_MIPS"
14154                 : ${mansectsu='1m'}
14155                 : ${mansectform='4'}
14156                 ;;
14157     *-*-isc*)
14158                 OSDEFS="${OSDEFS} -D_ISC"
14159                 LIB_CRYPT=1
14160                 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14161
14162                 shadow_funcs="getspnam"
14163                 shadow_libs="-lsec"
14164
14165                 : ${mansectsu='1m'}
14166                 : ${mansectform='4'}
14167                 ;;
14168     *-*-sco*|*-sco-*)
14169                 shadow_funcs="getprpwnam"
14170                 shadow_libs="-lprot -lx"
14171                 : ${mansectsu='1m'}
14172                 : ${mansectform='4'}
14173                 ;;
14174     m88k-motorola-sysv*)
14175                 # motorolla's cc (a variant of gcc) does -O but not -O2
14176                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14177                 : ${mansectsu='1m'}
14178                 : ${mansectform='4'}
14179                 ;;
14180     *-sequent-sysv*)
14181                 shadow_funcs="getspnam"
14182                 shadow_libs="-lsec"
14183                 : ${mansectsu='1m'}
14184                 : ${mansectform='4'}
14185                 : ${with_rpath='yes'}
14186                 ;;
14187     *-ncr-sysv4*|*-ncr-sysvr4*)
14188                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14189 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14190 if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14191   $as_echo_n "(cached) " >&6
14192 else
14193   ac_check_lib_save_LIBS=$LIBS
14194 LIBS="-lc89  $LIBS"
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h.  */
14197
14198 /* Override any GCC internal prototype to avoid an error.
14199    Use char because int might match the return type of a GCC
14200    builtin and then its argument prototype would still apply.  */
14201 #ifdef __cplusplus
14202 extern "C"
14203 #endif
14204 char strcasecmp ();
14205 int
14206 main ()
14207 {
14208 return strcasecmp ();
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 if ac_fn_c_try_link "$LINENO"; then :
14214   ac_cv_lib_c89_strcasecmp=yes
14215 else
14216   ac_cv_lib_c89_strcasecmp=no
14217 fi
14218 rm -f core conftest.err conftest.$ac_objext \
14219     conftest$ac_exeext conftest.$ac_ext
14220 LIBS=$ac_check_lib_save_LIBS
14221 fi
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14223 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14224 if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14225   LIBS="${LIBS} -lc89"
14226 fi
14227
14228                 : ${mansectsu='1m'}
14229                 : ${mansectform='4'}
14230                 : ${with_rpath='yes'}
14231                 ;;
14232     *-ccur-sysv4*|*-ccur-sysvr4*)
14233                 LIBS="${LIBS} -lgen"
14234                 : ${mansectsu='1m'}
14235                 : ${mansectform='4'}
14236                 : ${with_rpath='yes'}
14237                 ;;
14238     *-*-bsdi*)
14239                 SKIP_SETREUID=yes
14240                 # Check for newer BSD auth API
14241                 if test -z "$with_bsdauth"; then
14242                     for ac_func in auth_challenge
14243 do :
14244   ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14245 if test "x$ac_cv_func_auth_challenge" = xyes; then :
14246   cat >>confdefs.h <<_ACEOF
14247 #define HAVE_AUTH_CHALLENGE 1
14248 _ACEOF
14249  AUTH_EXCL_DEF="BSD_AUTH"
14250 fi
14251 done
14252
14253                 fi
14254                 ;;
14255     *-*-freebsd*)
14256                 # FreeBSD has a real setreuid(2) starting with 2.1 and
14257                 # backported to 2.0.5.  We just take 2.1 and above...
14258                 case "$OSREV" in
14259                 0.*|1.*|2.0*)
14260                     SKIP_SETREUID=yes
14261                     ;;
14262                 esac
14263                 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14264                 if test "${with_skey-'no'}" = "yes"; then
14265                      SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14266                 fi
14267                 CHECKSHADOW="false"
14268                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14269                 : ${with_logincap='maybe'}
14270                 ;;
14271     *-*-*openbsd*)
14272                 # OpenBSD has a real setreuid(2) starting with 3.3 but
14273                 # we will use setresuid(2) instead.
14274                 SKIP_SETREUID=yes
14275                 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14276                 CHECKSHADOW="false"
14277                 # OpenBSD >= 3.0 supports BSD auth
14278                 if test -z "$with_bsdauth"; then
14279                     if test "$OSMAJOR" -ge 3; then
14280                         AUTH_EXCL_DEF="BSD_AUTH"
14281                     fi
14282                 fi
14283                 : ${with_logincap='maybe'}
14284                 ;;
14285     *-*-*netbsd*)
14286                 # NetBSD has a real setreuid(2) starting with 1.3.2
14287                 case "$OSREV" in
14288                 0.9*|1.[012]*|1.3|1.3.1)
14289                     SKIP_SETREUID=yes
14290                     ;;
14291                 esac
14292                 CHECKSHADOW="false"
14293                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14294                 : ${with_logincap='maybe'}
14295                 ;;
14296     *-*-dragonfly*)
14297                 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14298                 if test "${with_skey-'no'}" = "yes"; then
14299                      SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14300                 fi
14301                 CHECKSHADOW="false"
14302                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14303                 : ${with_logincap='yes'}
14304                 ;;
14305     *-*-*bsd*)
14306                 CHECKSHADOW="false"
14307                 ;;
14308     *-*-darwin*)
14309                 # Darwin has a real setreuid(2) starting with 9.0
14310                 if test $OSMAJOR -lt 9; then
14311                     SKIP_SETREUID=yes
14312                 fi
14313                 CHECKSHADOW="false"
14314                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14315                 : ${with_logincap='yes'}
14316                 ;;
14317     *-*-nextstep*)
14318                 # lockf() on is broken on the NeXT -- use flock instead
14319                 ac_cv_func_lockf=no
14320                 ac_cv_func_flock=yes
14321                 ;;
14322     *-*-*sysv4*)
14323                 : ${mansectsu='1m'}
14324                 : ${mansectform='4'}
14325                 : ${with_rpath='yes'}
14326                 ;;
14327     *-*-sysv*)
14328                 : ${mansectsu='1m'}
14329                 : ${mansectform='4'}
14330                 ;;
14331     *-gnu*)
14332                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14333                 ;;
14334 esac
14335
14336 AUTH_REG=${AUTH_REG# }
14337 AUTH_EXCL=${AUTH_EXCL# }
14338 if test -n "$AUTH_EXCL"; then
14339     set -- $AUTH_EXCL
14340     if test $# != 1; then
14341         as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14342     fi
14343     if test -n "$AUTH_REG"; then
14344         as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14345     fi
14346 fi
14347 if test X"${with_skey}${with_opie}" = X"yesyes"; then
14348     as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14349 fi
14350
14351 : ${mansectsu='8'}
14352 : ${mansectform='5'}
14353
14354 if test -n "$with_libpath"; then
14355     for i in ${with_libpath}; do
14356
14357     if test X"$with_rpath" = X"yes"; then
14358         case "$host" in
14359             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
14360                         ;;
14361             *)          LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
14362                         ;;
14363         esac
14364     else
14365         LDFLAGS="${LDFLAGS} -L$i"
14366     fi
14367     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14368         blibpath_add="${blibpath_add}:$i"
14369     fi
14370
14371     done
14372 fi
14373 if test -n "$with_libraries"; then
14374     for i in ${with_libraries}; do
14375         case $i in
14376             -l*)        ;;
14377             *.a)        ;;
14378             *.o)        ;;
14379             *)  i="-l${i}";;
14380         esac
14381         LIBS="${LIBS} ${i}"
14382     done
14383 fi
14384
14385 if test $ac_cv_c_compiler_gnu = yes; then
14386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14387 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14388 if ${ac_cv_prog_gcc_traditional+:} false; then :
14389   $as_echo_n "(cached) " >&6
14390 else
14391     ac_pattern="Autoconf.*'x'"
14392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h.  */
14394 #include <sgtty.h>
14395 Autoconf TIOCGETP
14396 _ACEOF
14397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14398   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14399   ac_cv_prog_gcc_traditional=yes
14400 else
14401   ac_cv_prog_gcc_traditional=no
14402 fi
14403 rm -f conftest*
14404
14405
14406   if test $ac_cv_prog_gcc_traditional = no; then
14407     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h.  */
14409 #include <termio.h>
14410 Autoconf TCGETA
14411 _ACEOF
14412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14413   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14414   ac_cv_prog_gcc_traditional=yes
14415 fi
14416 rm -f conftest*
14417
14418   fi
14419 fi
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14421 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14422   if test $ac_cv_prog_gcc_traditional = yes; then
14423     CC="$CC -traditional"
14424   fi
14425 fi
14426
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14428 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14429 if ${ac_cv_c_const+:} false; then :
14430   $as_echo_n "(cached) " >&6
14431 else
14432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h.  */
14434
14435 int
14436 main ()
14437 {
14438 /* FIXME: Include the comments suggested by Paul. */
14439 #ifndef __cplusplus
14440   /* Ultrix mips cc rejects this.  */
14441   typedef int charset[2];
14442   const charset cs;
14443   /* SunOS 4.1.1 cc rejects this.  */
14444   char const *const *pcpcc;
14445   char **ppc;
14446   /* NEC SVR4.0.2 mips cc rejects this.  */
14447   struct point {int x, y;};
14448   static struct point const zero = {0,0};
14449   /* AIX XL C 1.02.0.0 rejects this.
14450      It does not let you subtract one const X* pointer from another in
14451      an arm of an if-expression whose if-part is not a constant
14452      expression */
14453   const char *g = "string";
14454   pcpcc = &g + (g ? g-g : 0);
14455   /* HPUX 7.0 cc rejects these. */
14456   ++pcpcc;
14457   ppc = (char**) pcpcc;
14458   pcpcc = (char const *const *) ppc;
14459   { /* SCO 3.2v4 cc rejects this.  */
14460     char *t;
14461     char const *s = 0 ? (char *) 0 : (char const *) 0;
14462
14463     *t++ = 0;
14464     if (s) return 0;
14465   }
14466   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14467     int x[] = {25, 17};
14468     const int *foo = &x[0];
14469     ++foo;
14470   }
14471   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14472     typedef const int *iptr;
14473     iptr p = 0;
14474     ++p;
14475   }
14476   { /* AIX XL C 1.02.0.0 rejects this saying
14477        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14478     struct s { int j; const int *ap[3]; };
14479     struct s *b; b->j = 5;
14480   }
14481   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14482     const int foo = 10;
14483     if (!foo) return 0;
14484   }
14485   return !cs[0] && !zero.x;
14486 #endif
14487
14488   ;
14489   return 0;
14490 }
14491 _ACEOF
14492 if ac_fn_c_try_compile "$LINENO"; then :
14493   ac_cv_c_const=yes
14494 else
14495   ac_cv_c_const=no
14496 fi
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498 fi
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14500 $as_echo "$ac_cv_c_const" >&6; }
14501 if test $ac_cv_c_const = no; then
14502
14503 $as_echo "#define const /**/" >>confdefs.h
14504
14505 fi
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14508 $as_echo_n "checking for working volatile... " >&6; }
14509 if ${ac_cv_c_volatile+:} false; then :
14510   $as_echo_n "(cached) " >&6
14511 else
14512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h.  */
14514
14515 int
14516 main ()
14517 {
14518
14519 volatile int x;
14520 int * volatile y = (int *) 0;
14521 return !x && !y;
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 if ac_fn_c_try_compile "$LINENO"; then :
14527   ac_cv_c_volatile=yes
14528 else
14529   ac_cv_c_volatile=no
14530 fi
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 fi
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14534 $as_echo "$ac_cv_c_volatile" >&6; }
14535 if test $ac_cv_c_volatile = no; then
14536
14537 $as_echo "#define volatile /**/" >>confdefs.h
14538
14539 fi
14540
14541 # Check for variadic macro support in cpp
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h.  */
14544
14545 $ac_includes_default
14546 #if defined(__GNUC__) && __GNUC__ == 2
14547 # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
14548 #else
14549 # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
14550 #endif
14551
14552 int
14553 main ()
14554 {
14555 sudo_fprintf(stderr, "a %s", "test");
14556   ;
14557   return 0;
14558 }
14559 _ACEOF
14560 if ac_fn_c_try_compile "$LINENO"; then :
14561
14562 else
14563   as_fn_error $? "Your C compiler doesn't support variadic macros, try building with gcc instead" "$LINENO" 5
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 if test X"$with_gnu_ld" != "yes" -a -n "$GCC"; then
14567     _CFLAGS="$CFLAGS"
14568     CFLAGS="$CFLAGS -static-libgcc"
14569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -static-libgcc" >&5
14570 $as_echo_n "checking whether $CC understands -static-libgcc... " >&6; }
14571 if ${sudo_cv_var_gcc_static_libgcc+:} false; then :
14572   $as_echo_n "(cached) " >&6
14573 else
14574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h.  */
14576
14577 int
14578 main ()
14579 {
14580
14581   ;
14582   return 0;
14583 }
14584 _ACEOF
14585 if ac_fn_c_try_link "$LINENO"; then :
14586   sudo_cv_var_gcc_static_libgcc=yes
14587 else
14588   sudo_cv_var_gcc_static_libgcc=no
14589
14590 fi
14591 rm -f core conftest.err conftest.$ac_objext \
14592     conftest$ac_exeext conftest.$ac_ext
14593
14594
14595 fi
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gcc_static_libgcc" >&5
14597 $as_echo "$sudo_cv_var_gcc_static_libgcc" >&6; }
14598     CFLAGS="$_CFLAGS"
14599     if test "$sudo_cv_var_gcc_static_libgcc" = "yes"; then
14600         LTLDFLAGS="$LTLDFLAGS -Wc,-static-libgcc"
14601     fi
14602 fi
14603 for ac_prog in 'bison -y' byacc
14604 do
14605   # Extract the first word of "$ac_prog", so it can be a program name with args.
14606 set dummy $ac_prog; ac_word=$2
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14608 $as_echo_n "checking for $ac_word... " >&6; }
14609 if ${ac_cv_prog_YACC+:} false; then :
14610   $as_echo_n "(cached) " >&6
14611 else
14612   if test -n "$YACC"; then
14613   ac_cv_prog_YACC="$YACC" # Let the user override the test.
14614 else
14615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616 for as_dir in $PATH
14617 do
14618   IFS=$as_save_IFS
14619   test -z "$as_dir" && as_dir=.
14620     for ac_exec_ext in '' $ac_executable_extensions; do
14621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14622     ac_cv_prog_YACC="$ac_prog"
14623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14624     break 2
14625   fi
14626 done
14627   done
14628 IFS=$as_save_IFS
14629
14630 fi
14631 fi
14632 YACC=$ac_cv_prog_YACC
14633 if test -n "$YACC"; then
14634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14635 $as_echo "$YACC" >&6; }
14636 else
14637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638 $as_echo "no" >&6; }
14639 fi
14640
14641
14642   test -n "$YACC" && break
14643 done
14644 test -n "$YACC" || YACC="yacc"
14645
14646 # Extract the first word of "flex", so it can be a program name with args.
14647 set dummy flex; ac_word=$2
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14649 $as_echo_n "checking for $ac_word... " >&6; }
14650 if ${ac_cv_path_FLEX+:} false; then :
14651   $as_echo_n "(cached) " >&6
14652 else
14653   case $FLEX in
14654   [\\/]* | ?:[\\/]*)
14655   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14656   ;;
14657   *)
14658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659 for as_dir in $PATH
14660 do
14661   IFS=$as_save_IFS
14662   test -z "$as_dir" && as_dir=.
14663     for ac_exec_ext in '' $ac_executable_extensions; do
14664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14665     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14667     break 2
14668   fi
14669 done
14670   done
14671 IFS=$as_save_IFS
14672
14673   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14674   ;;
14675 esac
14676 fi
14677 FLEX=$ac_cv_path_FLEX
14678 if test -n "$FLEX"; then
14679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14680 $as_echo "$FLEX" >&6; }
14681 else
14682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683 $as_echo "no" >&6; }
14684 fi
14685
14686
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14688 $as_echo_n "checking for mv... " >&6; }
14689 found=no
14690 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14691     if test -f "$p"; then
14692         found=yes
14693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14694 $as_echo "$p" >&6; }
14695         cat >>confdefs.h <<EOF
14696 #define _PATH_MV "$p"
14697 EOF
14698
14699         break
14700     fi
14701 done
14702 if test X"$found" != X"yes"; then
14703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14704 $as_echo "not found" >&6; }
14705 fi
14706
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14708 $as_echo_n "checking for bourne shell... " >&6; }
14709 found=no
14710 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14711     if test -f "$p"; then
14712         found=yes
14713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14714 $as_echo "$p" >&6; }
14715         cat >>confdefs.h <<EOF
14716 #define _PATH_BSHELL "$p"
14717 EOF
14718
14719         break
14720     fi
14721 done
14722 if test X"$found" != X"yes"; then
14723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14724 $as_echo "not found" >&6; }
14725 fi
14726
14727 if test -z "$with_sendmail"; then
14728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14729 $as_echo_n "checking for sendmail... " >&6; }
14730 found=no
14731 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14732     if test -f "$p"; then
14733         found=yes
14734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14735 $as_echo "$p" >&6; }
14736         cat >>confdefs.h <<EOF
14737 #define _PATH_SUDO_SENDMAIL "$p"
14738 EOF
14739
14740         break
14741     fi
14742 done
14743 if test X"$found" != X"yes"; then
14744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14745 $as_echo "not found" >&6; }
14746 fi
14747
14748 fi
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14750 $as_echo_n "checking for vi... " >&6; }
14751 found=no
14752 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
14753     if test -f "$editor"; then
14754         found=yes
14755         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
14756 $as_echo "$editor" >&6; }
14757         cat >>confdefs.h <<EOF
14758 #define _PATH_VI "$editor"
14759 EOF
14760
14761         break
14762     fi
14763 done
14764 if test X"$found" != X"yes"; then
14765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14766 $as_echo "not found" >&6; }
14767 fi
14768
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
14770 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
14771 if test X"$with_logfac" = X""; then
14772     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h.  */
14774 #include <syslog.h>
14775 int
14776 main ()
14777 {
14778 int i = LOG_AUTHPRIV; (void)i;
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 if ac_fn_c_try_compile "$LINENO"; then :
14784   logfac=authpriv
14785 fi
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 fi
14788
14789 cat >>confdefs.h <<_ACEOF
14790 #define LOGFAC "$logfac"
14791 _ACEOF
14792
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
14794 $as_echo "$logfac" >&6; }
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14796 $as_echo_n "checking for ANSI C header files... " >&6; }
14797 if ${ac_cv_header_stdc+:} false; then :
14798   $as_echo_n "(cached) " >&6
14799 else
14800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h.  */
14802 #include <stdlib.h>
14803 #include <stdarg.h>
14804 #include <string.h>
14805 #include <float.h>
14806
14807 int
14808 main ()
14809 {
14810
14811   ;
14812   return 0;
14813 }
14814 _ACEOF
14815 if ac_fn_c_try_compile "$LINENO"; then :
14816   ac_cv_header_stdc=yes
14817 else
14818   ac_cv_header_stdc=no
14819 fi
14820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14821
14822 if test $ac_cv_header_stdc = yes; then
14823   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h.  */
14826 #include <string.h>
14827
14828 _ACEOF
14829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14830   $EGREP "memchr" >/dev/null 2>&1; then :
14831
14832 else
14833   ac_cv_header_stdc=no
14834 fi
14835 rm -f conftest*
14836
14837 fi
14838
14839 if test $ac_cv_header_stdc = yes; then
14840   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842 /* end confdefs.h.  */
14843 #include <stdlib.h>
14844
14845 _ACEOF
14846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14847   $EGREP "free" >/dev/null 2>&1; then :
14848
14849 else
14850   ac_cv_header_stdc=no
14851 fi
14852 rm -f conftest*
14853
14854 fi
14855
14856 if test $ac_cv_header_stdc = yes; then
14857   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14858   if test "$cross_compiling" = yes; then :
14859   :
14860 else
14861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h.  */
14863 #include <ctype.h>
14864 #include <stdlib.h>
14865 #if ((' ' & 0x0FF) == 0x020)
14866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14868 #else
14869 # define ISLOWER(c) \
14870                    (('a' <= (c) && (c) <= 'i') \
14871                      || ('j' <= (c) && (c) <= 'r') \
14872                      || ('s' <= (c) && (c) <= 'z'))
14873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14874 #endif
14875
14876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14877 int
14878 main ()
14879 {
14880   int i;
14881   for (i = 0; i < 256; i++)
14882     if (XOR (islower (i), ISLOWER (i))
14883         || toupper (i) != TOUPPER (i))
14884       return 2;
14885   return 0;
14886 }
14887 _ACEOF
14888 if ac_fn_c_try_run "$LINENO"; then :
14889
14890 else
14891   ac_cv_header_stdc=no
14892 fi
14893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14894   conftest.$ac_objext conftest.beam conftest.$ac_ext
14895 fi
14896
14897 fi
14898 fi
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14900 $as_echo "$ac_cv_header_stdc" >&6; }
14901 if test $ac_cv_header_stdc = yes; then
14902
14903 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14904
14905 fi
14906
14907 ac_header_dirent=no
14908 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14909   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14911 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14912 if eval \${$as_ac_Header+:} false; then :
14913   $as_echo_n "(cached) " >&6
14914 else
14915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h.  */
14917 #include <sys/types.h>
14918 #include <$ac_hdr>
14919
14920 int
14921 main ()
14922 {
14923 if ((DIR *) 0)
14924 return 0;
14925   ;
14926   return 0;
14927 }
14928 _ACEOF
14929 if ac_fn_c_try_compile "$LINENO"; then :
14930   eval "$as_ac_Header=yes"
14931 else
14932   eval "$as_ac_Header=no"
14933 fi
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935 fi
14936 eval ac_res=\$$as_ac_Header
14937                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14938 $as_echo "$ac_res" >&6; }
14939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14940   cat >>confdefs.h <<_ACEOF
14941 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14942 _ACEOF
14943
14944 ac_header_dirent=$ac_hdr; break
14945 fi
14946
14947 done
14948 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14949 if test $ac_header_dirent = dirent.h; then
14950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14951 $as_echo_n "checking for library containing opendir... " >&6; }
14952 if ${ac_cv_search_opendir+:} false; then :
14953   $as_echo_n "(cached) " >&6
14954 else
14955   ac_func_search_save_LIBS=$LIBS
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h.  */
14958
14959 /* Override any GCC internal prototype to avoid an error.
14960    Use char because int might match the return type of a GCC
14961    builtin and then its argument prototype would still apply.  */
14962 #ifdef __cplusplus
14963 extern "C"
14964 #endif
14965 char opendir ();
14966 int
14967 main ()
14968 {
14969 return opendir ();
14970   ;
14971   return 0;
14972 }
14973 _ACEOF
14974 for ac_lib in '' dir; do
14975   if test -z "$ac_lib"; then
14976     ac_res="none required"
14977   else
14978     ac_res=-l$ac_lib
14979     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14980   fi
14981   if ac_fn_c_try_link "$LINENO"; then :
14982   ac_cv_search_opendir=$ac_res
14983 fi
14984 rm -f core conftest.err conftest.$ac_objext \
14985     conftest$ac_exeext
14986   if ${ac_cv_search_opendir+:} false; then :
14987   break
14988 fi
14989 done
14990 if ${ac_cv_search_opendir+:} false; then :
14991
14992 else
14993   ac_cv_search_opendir=no
14994 fi
14995 rm conftest.$ac_ext
14996 LIBS=$ac_func_search_save_LIBS
14997 fi
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14999 $as_echo "$ac_cv_search_opendir" >&6; }
15000 ac_res=$ac_cv_search_opendir
15001 if test "$ac_res" != no; then :
15002   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15003
15004 fi
15005
15006 else
15007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15008 $as_echo_n "checking for library containing opendir... " >&6; }
15009 if ${ac_cv_search_opendir+:} false; then :
15010   $as_echo_n "(cached) " >&6
15011 else
15012   ac_func_search_save_LIBS=$LIBS
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h.  */
15015
15016 /* Override any GCC internal prototype to avoid an error.
15017    Use char because int might match the return type of a GCC
15018    builtin and then its argument prototype would still apply.  */
15019 #ifdef __cplusplus
15020 extern "C"
15021 #endif
15022 char opendir ();
15023 int
15024 main ()
15025 {
15026 return opendir ();
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 for ac_lib in '' x; do
15032   if test -z "$ac_lib"; then
15033     ac_res="none required"
15034   else
15035     ac_res=-l$ac_lib
15036     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15037   fi
15038   if ac_fn_c_try_link "$LINENO"; then :
15039   ac_cv_search_opendir=$ac_res
15040 fi
15041 rm -f core conftest.err conftest.$ac_objext \
15042     conftest$ac_exeext
15043   if ${ac_cv_search_opendir+:} false; then :
15044   break
15045 fi
15046 done
15047 if ${ac_cv_search_opendir+:} false; then :
15048
15049 else
15050   ac_cv_search_opendir=no
15051 fi
15052 rm conftest.$ac_ext
15053 LIBS=$ac_func_search_save_LIBS
15054 fi
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15056 $as_echo "$ac_cv_search_opendir" >&6; }
15057 ac_res=$ac_cv_search_opendir
15058 if test "$ac_res" != no; then :
15059   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15060
15061 fi
15062
15063 fi
15064
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15066 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15067 if ${ac_cv_header_time+:} false; then :
15068   $as_echo_n "(cached) " >&6
15069 else
15070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15071 /* end confdefs.h.  */
15072 #include <sys/types.h>
15073 #include <sys/time.h>
15074 #include <time.h>
15075
15076 int
15077 main ()
15078 {
15079 if ((struct tm *) 0)
15080 return 0;
15081   ;
15082   return 0;
15083 }
15084 _ACEOF
15085 if ac_fn_c_try_compile "$LINENO"; then :
15086   ac_cv_header_time=yes
15087 else
15088   ac_cv_header_time=no
15089 fi
15090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091 fi
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15093 $as_echo "$ac_cv_header_time" >&6; }
15094 if test $ac_cv_header_time = yes; then
15095
15096 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15097
15098 fi
15099
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15101 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15102 if ${ac_cv_header_stdbool_h+:} false; then :
15103   $as_echo_n "(cached) " >&6
15104 else
15105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h.  */
15107
15108 #include <stdbool.h>
15109 #ifndef bool
15110  "error: bool is not defined"
15111 #endif
15112 #ifndef false
15113  "error: false is not defined"
15114 #endif
15115 #if false
15116  "error: false is not 0"
15117 #endif
15118 #ifndef true
15119  "error: true is not defined"
15120 #endif
15121 #if true != 1
15122  "error: true is not 1"
15123 #endif
15124 #ifndef __bool_true_false_are_defined
15125  "error: __bool_true_false_are_defined is not defined"
15126 #endif
15127
15128         struct s { _Bool s: 1; _Bool t; } s;
15129
15130         char a[true == 1 ? 1 : -1];
15131         char b[false == 0 ? 1 : -1];
15132         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15133         char d[(bool) 0.5 == true ? 1 : -1];
15134         /* See body of main program for 'e'.  */
15135         char f[(_Bool) 0.0 == false ? 1 : -1];
15136         char g[true];
15137         char h[sizeof (_Bool)];
15138         char i[sizeof s.t];
15139         enum { j = false, k = true, l = false * true, m = true * 256 };
15140         /* The following fails for
15141            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15142         _Bool n[m];
15143         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15144         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15145         /* Catch a bug in an HP-UX C compiler.  See
15146            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15147            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15148          */
15149         _Bool q = true;
15150         _Bool *pq = &q;
15151
15152 int
15153 main ()
15154 {
15155
15156         bool e = &s;
15157         *pq |= q;
15158         *pq |= ! q;
15159         /* Refer to every declared value, to avoid compiler optimizations.  */
15160         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15161                 + !m + !n + !o + !p + !q + !pq);
15162
15163   ;
15164   return 0;
15165 }
15166 _ACEOF
15167 if ac_fn_c_try_compile "$LINENO"; then :
15168   ac_cv_header_stdbool_h=yes
15169 else
15170   ac_cv_header_stdbool_h=no
15171 fi
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173 fi
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15175 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15176 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15177 if test "x$ac_cv_type__Bool" = xyes; then :
15178
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE__BOOL 1
15181 _ACEOF
15182
15183
15184 fi
15185
15186 if test $ac_cv_header_stdbool_h = yes; then
15187
15188 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15189
15190 fi
15191
15192 for ac_header in malloc.h paths.h utime.h netgroup.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15193 do :
15194   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15195 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15196 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15197   cat >>confdefs.h <<_ACEOF
15198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15199 _ACEOF
15200
15201 fi
15202
15203 done
15204
15205 # Check whether --enable-largefile was given.
15206 if test "${enable_largefile+set}" = set; then :
15207   enableval=$enable_largefile;
15208 fi
15209
15210 if test "$enable_largefile" != no; then
15211
15212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15213 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15214 if ${ac_cv_sys_largefile_CC+:} false; then :
15215   $as_echo_n "(cached) " >&6
15216 else
15217   ac_cv_sys_largefile_CC=no
15218      if test "$GCC" != yes; then
15219        ac_save_CC=$CC
15220        while :; do
15221          # IRIX 6.2 and later do not support large files by default,
15222          # so use the C compiler's -n32 option if that helps.
15223          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h.  */
15225 #include <sys/types.h>
15226  /* Check that off_t can represent 2**63 - 1 correctly.
15227     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15228     since some C++ compilers masquerading as C compilers
15229     incorrectly reject 9223372036854775807.  */
15230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15231   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15232                        && LARGE_OFF_T % 2147483647 == 1)
15233                       ? 1 : -1];
15234 int
15235 main ()
15236 {
15237
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242          if ac_fn_c_try_compile "$LINENO"; then :
15243   break
15244 fi
15245 rm -f core conftest.err conftest.$ac_objext
15246          CC="$CC -n32"
15247          if ac_fn_c_try_compile "$LINENO"; then :
15248   ac_cv_sys_largefile_CC=' -n32'; break
15249 fi
15250 rm -f core conftest.err conftest.$ac_objext
15251          break
15252        done
15253        CC=$ac_save_CC
15254        rm -f conftest.$ac_ext
15255     fi
15256 fi
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15258 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15259   if test "$ac_cv_sys_largefile_CC" != no; then
15260     CC=$CC$ac_cv_sys_largefile_CC
15261   fi
15262
15263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15264 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15265 if ${ac_cv_sys_file_offset_bits+:} false; then :
15266   $as_echo_n "(cached) " >&6
15267 else
15268   while :; do
15269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h.  */
15271 #include <sys/types.h>
15272  /* Check that off_t can represent 2**63 - 1 correctly.
15273     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15274     since some C++ compilers masquerading as C compilers
15275     incorrectly reject 9223372036854775807.  */
15276 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15277   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15278                        && LARGE_OFF_T % 2147483647 == 1)
15279                       ? 1 : -1];
15280 int
15281 main ()
15282 {
15283
15284   ;
15285   return 0;
15286 }
15287 _ACEOF
15288 if ac_fn_c_try_compile "$LINENO"; then :
15289   ac_cv_sys_file_offset_bits=no; break
15290 fi
15291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h.  */
15294 #define _FILE_OFFSET_BITS 64
15295 #include <sys/types.h>
15296  /* Check that off_t can represent 2**63 - 1 correctly.
15297     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15298     since some C++ compilers masquerading as C compilers
15299     incorrectly reject 9223372036854775807.  */
15300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15301   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15302                        && LARGE_OFF_T % 2147483647 == 1)
15303                       ? 1 : -1];
15304 int
15305 main ()
15306 {
15307
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 if ac_fn_c_try_compile "$LINENO"; then :
15313   ac_cv_sys_file_offset_bits=64; break
15314 fi
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316   ac_cv_sys_file_offset_bits=unknown
15317   break
15318 done
15319 fi
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15321 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15322 case $ac_cv_sys_file_offset_bits in #(
15323   no | unknown) ;;
15324   *)
15325 cat >>confdefs.h <<_ACEOF
15326 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15327 _ACEOF
15328 ;;
15329 esac
15330 rm -rf conftest*
15331   if test $ac_cv_sys_file_offset_bits = unknown; then
15332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15333 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15334 if ${ac_cv_sys_large_files+:} false; then :
15335   $as_echo_n "(cached) " >&6
15336 else
15337   while :; do
15338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h.  */
15340 #include <sys/types.h>
15341  /* Check that off_t can represent 2**63 - 1 correctly.
15342     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15343     since some C++ compilers masquerading as C compilers
15344     incorrectly reject 9223372036854775807.  */
15345 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15346   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15347                        && LARGE_OFF_T % 2147483647 == 1)
15348                       ? 1 : -1];
15349 int
15350 main ()
15351 {
15352
15353   ;
15354   return 0;
15355 }
15356 _ACEOF
15357 if ac_fn_c_try_compile "$LINENO"; then :
15358   ac_cv_sys_large_files=no; break
15359 fi
15360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h.  */
15363 #define _LARGE_FILES 1
15364 #include <sys/types.h>
15365  /* Check that off_t can represent 2**63 - 1 correctly.
15366     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15367     since some C++ compilers masquerading as C compilers
15368     incorrectly reject 9223372036854775807.  */
15369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15370   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15371                        && LARGE_OFF_T % 2147483647 == 1)
15372                       ? 1 : -1];
15373 int
15374 main ()
15375 {
15376
15377   ;
15378   return 0;
15379 }
15380 _ACEOF
15381 if ac_fn_c_try_compile "$LINENO"; then :
15382   ac_cv_sys_large_files=1; break
15383 fi
15384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15385   ac_cv_sys_large_files=unknown
15386   break
15387 done
15388 fi
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15390 $as_echo "$ac_cv_sys_large_files" >&6; }
15391 case $ac_cv_sys_large_files in #(
15392   no | unknown) ;;
15393   *)
15394 cat >>confdefs.h <<_ACEOF
15395 #define _LARGE_FILES $ac_cv_sys_large_files
15396 _ACEOF
15397 ;;
15398 esac
15399 rm -rf conftest*
15400   fi
15401 fi
15402
15403 case "$host" in
15404     *-*-hpux11.*)
15405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15406 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15407 if ${sudo_cv_xopen_source_extended+:} false; then :
15408   $as_echo_n "(cached) " >&6
15409 else
15410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h.  */
15412 $ac_includes_default
15413         #include <sys/socket.h>
15414 int
15415 main ()
15416 {
15417
15418   ;
15419   return 0;
15420 }
15421 _ACEOF
15422 if ac_fn_c_try_compile "$LINENO"; then :
15423   sudo_cv_xopen_source_extended=no
15424 else
15425
15426             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427 /* end confdefs.h.  */
15428 #define _XOPEN_SOURCE_EXTENDED
15429             $ac_includes_default
15430             #include <sys/socket.h>
15431 int
15432 main ()
15433 {
15434
15435   ;
15436   return 0;
15437 }
15438 _ACEOF
15439 if ac_fn_c_try_compile "$LINENO"; then :
15440   sudo_cv_xopen_source_extended=yes
15441 else
15442   sudo_cv_xopen_source_extended=error
15443 fi
15444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15445
15446 fi
15447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15448 fi
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15450 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15451         if test "$sudo_cv_xopen_source_extended" = "yes"; then
15452             OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15453             cat >>confdefs.h <<\EOF
15454 #define _XOPEN_SOURCE_EXTENDED 1
15455 EOF
15456
15457         fi
15458         ;;
15459 esac
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15461 $as_echo_n "checking POSIX termios... " >&6; }
15462 if ${ac_cv_sys_posix_termios+:} false; then :
15463   $as_echo_n "(cached) " >&6
15464 else
15465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h.  */
15467 #include <sys/types.h>
15468 #include <unistd.h>
15469 #include <termios.h>
15470
15471 int
15472 main ()
15473 {
15474 /* SunOS 4.0.3 has termios.h but not the library calls.  */
15475    tcgetattr(0, 0);
15476   ;
15477   return 0;
15478 }
15479 _ACEOF
15480 if ac_fn_c_try_link "$LINENO"; then :
15481   ac_cv_sys_posix_termios=yes
15482 else
15483   ac_cv_sys_posix_termios=no
15484 fi
15485 rm -f core conftest.err conftest.$ac_objext \
15486     conftest$ac_exeext conftest.$ac_ext
15487 fi
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15489 $as_echo "$ac_cv_sys_posix_termios" >&6; }
15490
15491 if test "$ac_cv_sys_posix_termios" != "yes"; then
15492     as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15493 fi
15494
15495 maildir=no
15496 if test X"$ac_cv_header_paths_h" = X"yes"; then
15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h.  */
15499 $ac_includes_default
15500 #include <paths.h>
15501 int
15502 main ()
15503 {
15504 char *p = _PATH_MAILDIR;
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 if ac_fn_c_try_compile "$LINENO"; then :
15510   maildir=yes
15511 fi
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513 fi
15514 if test $maildir = no; then
15515     # Solaris has maillock.h which defines MAILDIR
15516     for ac_header in maillock.h
15517 do :
15518   ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15519 if test "x$ac_cv_header_maillock_h" = xyes; then :
15520   cat >>confdefs.h <<_ACEOF
15521 #define HAVE_MAILLOCK_H 1
15522 _ACEOF
15523
15524         cat >>confdefs.h <<\EOF
15525 #define _PATH_MAILDIR MAILDIR
15526 EOF
15527
15528         maildir=yes
15529
15530 fi
15531
15532 done
15533
15534     if test $maildir = no; then
15535         for d in /var/mail /var/spool/mail /usr/spool/mail; do
15536             if test -d "$d"; then
15537                 maildir=yes
15538                 cat >>confdefs.h <<EOF
15539 #define _PATH_MAILDIR "$d"
15540 EOF
15541
15542                 break
15543             fi
15544         done
15545         if test $maildir = no; then
15546             # unable to find mail dir, hope for the best
15547             cat >>confdefs.h <<EOF
15548 #define _PATH_MAILDIR "/var/mail"
15549 EOF
15550
15551         fi
15552     fi
15553 fi
15554
15555 if test ${with_logincap-'no'} != "no"; then
15556     for ac_header in login_cap.h
15557 do :
15558   ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15559 if test "x$ac_cv_header_login_cap_h" = xyes; then :
15560   cat >>confdefs.h <<_ACEOF
15561 #define HAVE_LOGIN_CAP_H 1
15562 _ACEOF
15563  LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15564         case "$OS" in
15565             freebsd|netbsd)
15566                 SUDO_LIBS="${SUDO_LIBS} -lutil"
15567                 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15568                 ;;
15569         esac
15570
15571 fi
15572
15573 done
15574
15575 fi
15576 if test ${with_project-'no'} != "no"; then
15577     ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15578 if test "x$ac_cv_header_project_h" = xyes; then :
15579
15580         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15581 $as_echo_n "checking for setproject in -lproject... " >&6; }
15582 if ${ac_cv_lib_project_setproject+:} false; then :
15583   $as_echo_n "(cached) " >&6
15584 else
15585   ac_check_lib_save_LIBS=$LIBS
15586 LIBS="-lproject  $LIBS"
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h.  */
15589
15590 /* Override any GCC internal prototype to avoid an error.
15591    Use char because int might match the return type of a GCC
15592    builtin and then its argument prototype would still apply.  */
15593 #ifdef __cplusplus
15594 extern "C"
15595 #endif
15596 char setproject ();
15597 int
15598 main ()
15599 {
15600 return setproject ();
15601   ;
15602   return 0;
15603 }
15604 _ACEOF
15605 if ac_fn_c_try_link "$LINENO"; then :
15606   ac_cv_lib_project_setproject=yes
15607 else
15608   ac_cv_lib_project_setproject=no
15609 fi
15610 rm -f core conftest.err conftest.$ac_objext \
15611     conftest$ac_exeext conftest.$ac_ext
15612 LIBS=$ac_check_lib_save_LIBS
15613 fi
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15615 $as_echo "$ac_cv_lib_project_setproject" >&6; }
15616 if test "x$ac_cv_lib_project_setproject" = xyes; then :
15617
15618             $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15619
15620             SUDO_LIBS="${SUDO_LIBS} -lproject"
15621
15622 fi
15623
15624
15625 fi
15626
15627
15628 fi
15629 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15630 if test "x$ac_cv_type_mode_t" = xyes; then :
15631
15632 else
15633
15634 cat >>confdefs.h <<_ACEOF
15635 #define mode_t int
15636 _ACEOF
15637
15638 fi
15639
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15641 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15642 if ${ac_cv_type_uid_t+:} false; then :
15643   $as_echo_n "(cached) " >&6
15644 else
15645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h.  */
15647 #include <sys/types.h>
15648
15649 _ACEOF
15650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15651   $EGREP "uid_t" >/dev/null 2>&1; then :
15652   ac_cv_type_uid_t=yes
15653 else
15654   ac_cv_type_uid_t=no
15655 fi
15656 rm -f conftest*
15657
15658 fi
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15660 $as_echo "$ac_cv_type_uid_t" >&6; }
15661 if test $ac_cv_type_uid_t = no; then
15662
15663 $as_echo "#define uid_t int" >>confdefs.h
15664
15665
15666 $as_echo "#define gid_t int" >>confdefs.h
15667
15668 fi
15669
15670 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
15671 if test "x$ac_cv_type___signed_char" = xyes; then :
15672
15673 else
15674   ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
15675 if test "x$ac_cv_type_signed_char" = xyes; then :
15676   $as_echo "#define __signed signed" >>confdefs.h
15677
15678 else
15679   $as_echo "#define __signed /**/" >>confdefs.h
15680
15681 fi
15682
15683 fi
15684
15685 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
15686 #include <signal.h>
15687 "
15688 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15689
15690 else
15691   $as_echo "#define sig_atomic_t int" >>confdefs.h
15692
15693 fi
15694
15695 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
15696 #include <signal.h>
15697 "
15698 if test "x$ac_cv_type_sigaction_t" = xyes; then :
15699
15700 cat >>confdefs.h <<_ACEOF
15701 #define HAVE_SIGACTION_T 1
15702 _ACEOF
15703
15704
15705 fi
15706
15707 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
15708 #if TIME_WITH_SYS_TIME
15709 # include <sys/time.h>
15710 #endif
15711 #include <time.h>
15712 "
15713 if test "x$ac_cv_type_struct_timespec" = xyes; then :
15714
15715 cat >>confdefs.h <<_ACEOF
15716 #define HAVE_STRUCT_TIMESPEC 1
15717 _ACEOF
15718
15719
15720 fi
15721
15722 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
15723 #include <netinet/in.h>
15724 "
15725 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15726
15727 cat >>confdefs.h <<_ACEOF
15728 #define HAVE_STRUCT_IN6_ADDR 1
15729 _ACEOF
15730
15731
15732 fi
15733
15734
15735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15736 $as_echo_n "checking for long long int... " >&6; }
15737 if ${ac_cv_type_long_long_int+:} false; then :
15738   $as_echo_n "(cached) " >&6
15739 else
15740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15741 /* end confdefs.h.  */
15742
15743   /* For now, do not test the preprocessor; as of 2007 there are too many
15744          implementations with broken preprocessors.  Perhaps this can
15745          be revisited in 2012.  In the meantime, code should not expect
15746          #if to work with literals wider than 32 bits.  */
15747       /* Test literals.  */
15748       long long int ll = 9223372036854775807ll;
15749       long long int nll = -9223372036854775807LL;
15750       unsigned long long int ull = 18446744073709551615ULL;
15751       /* Test constant expressions.   */
15752       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15753                      ? 1 : -1)];
15754       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15755                      ? 1 : -1)];
15756       int i = 63;
15757 int
15758 main ()
15759 {
15760 /* Test availability of runtime routines for shift and division.  */
15761       long long int llmax = 9223372036854775807ll;
15762       unsigned long long int ullmax = 18446744073709551615ull;
15763       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15764               | (llmax / ll) | (llmax % ll)
15765               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15766               | (ullmax / ull) | (ullmax % ull));
15767   ;
15768   return 0;
15769 }
15770
15771 _ACEOF
15772 if ac_fn_c_try_link "$LINENO"; then :
15773                         if test "$cross_compiling" = yes; then :
15774   ac_cv_type_long_long_int=yes
15775 else
15776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h.  */
15778 #include <limits.h>
15779                #ifndef LLONG_MAX
15780                # define HALF \
15781                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15782                # define LLONG_MAX (HALF - 1 + HALF)
15783                #endif
15784 int
15785 main ()
15786 {
15787 long long int n = 1;
15788                int i;
15789                for (i = 0; ; i++)
15790                  {
15791                    long long int m = n << i;
15792                    if (m >> i != n)
15793                      return 1;
15794                    if (LLONG_MAX / 2 < m)
15795                      break;
15796                  }
15797                return 0;
15798   ;
15799   return 0;
15800 }
15801 _ACEOF
15802 if ac_fn_c_try_run "$LINENO"; then :
15803   ac_cv_type_long_long_int=yes
15804 else
15805   ac_cv_type_long_long_int=no
15806 fi
15807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15808   conftest.$ac_objext conftest.beam conftest.$ac_ext
15809 fi
15810
15811 else
15812   ac_cv_type_long_long_int=no
15813 fi
15814 rm -f core conftest.err conftest.$ac_objext \
15815     conftest$ac_exeext conftest.$ac_ext
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15818 $as_echo "$ac_cv_type_long_long_int" >&6; }
15819   if test $ac_cv_type_long_long_int = yes; then
15820
15821 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15822
15823   fi
15824
15825 # The cast to long int works around a bug in the HP C Compiler
15826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15828 # This bug is HP SR number 8606223364.
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
15830 $as_echo_n "checking size of long int... " >&6; }
15831 if ${ac_cv_sizeof_long_int+:} false; then :
15832   $as_echo_n "(cached) " >&6
15833 else
15834   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
15835
15836 else
15837   if test "$ac_cv_type_long_int" = yes; then
15838      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15840 as_fn_error 77 "cannot compute sizeof (long int)
15841 See \`config.log' for more details" "$LINENO" 5; }
15842    else
15843      ac_cv_sizeof_long_int=0
15844    fi
15845 fi
15846
15847 fi
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
15849 $as_echo "$ac_cv_sizeof_long_int" >&6; }
15850
15851
15852
15853 cat >>confdefs.h <<_ACEOF
15854 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15855 _ACEOF
15856
15857
15858 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15859 if test "x$ac_cv_type_size_t" = xyes; then :
15860
15861 else
15862
15863 cat >>confdefs.h <<_ACEOF
15864 #define size_t unsigned int
15865 _ACEOF
15866
15867 fi
15868
15869 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15870 if test "x$ac_cv_type_ssize_t" = xyes; then :
15871
15872 else
15873
15874 cat >>confdefs.h <<_ACEOF
15875 #define ssize_t int
15876 _ACEOF
15877
15878 fi
15879
15880 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
15881 if test "x$ac_cv_type_dev_t" = xyes; then :
15882
15883 else
15884
15885 cat >>confdefs.h <<_ACEOF
15886 #define dev_t int
15887 _ACEOF
15888
15889 fi
15890
15891 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
15892 if test "x$ac_cv_type_ino_t" = xyes; then :
15893
15894 else
15895
15896 cat >>confdefs.h <<_ACEOF
15897 #define ino_t unsigned int
15898 _ACEOF
15899
15900 fi
15901
15902 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15903 $ac_includes_default
15904 #include <sys/socket.h>
15905 "
15906 if test "x$ac_cv_type_socklen_t" = xyes; then :
15907
15908 else
15909   $as_echo "#define socklen_t unsigned int" >>confdefs.h
15910
15911 fi
15912
15913
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
15915 $as_echo_n "checking max length of uid_t... " >&6; }
15916 if ${sudo_cv_uid_t_len+:} false; then :
15917   $as_echo_n "(cached) " >&6
15918 else
15919   rm -f conftestdata
15920 if test "$cross_compiling" = yes; then :
15921   sudo_cv_uid_t_len=10
15922 else
15923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h.  */
15925 #include <stdio.h>
15926 #include <pwd.h>
15927 #include <limits.h>
15928 #include <sys/types.h>
15929 #include <sys/param.h>
15930 main() {
15931   FILE *f;
15932   char b[1024];
15933   uid_t u = (uid_t) -1;
15934
15935   if ((f = fopen("conftestdata", "w")) == NULL)
15936     exit(1);
15937
15938   (void) sprintf(b, "%lu", (unsigned long) u);
15939   (void) fprintf(f, "%d\n", strlen(b));
15940   (void) fclose(f);
15941   exit(0);
15942 }
15943 _ACEOF
15944 if ac_fn_c_try_run "$LINENO"; then :
15945   sudo_cv_uid_t_len=`cat conftestdata`
15946 else
15947   sudo_cv_uid_t_len=10
15948 fi
15949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15950   conftest.$ac_objext conftest.beam conftest.$ac_ext
15951 fi
15952
15953
15954 fi
15955
15956 rm -f conftestdata
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
15958 $as_echo "$sudo_cv_uid_t_len" >&6; }
15959
15960 cat >>confdefs.h <<_ACEOF
15961 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
15962 _ACEOF
15963
15964
15965
15966     ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
15967           #include <sys/socket.h>
15968
15969 "
15970 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15971
15972 $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
15973
15974 fi
15975
15976
15977 _CFLAGS="$CFLAGS"
15978 CFLAGS="$CFLAGS $OSDEFS"
15979 if test $ac_cv_header_utmpx_h = "yes"; then
15980     ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
15981         #include <sys/types.h>
15982         #include <utmpx.h>
15983
15984 "
15985 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
15986
15987 cat >>confdefs.h <<_ACEOF
15988 #define HAVE_STRUCT_UTMPX_UT_ID 1
15989 _ACEOF
15990
15991
15992 fi
15993 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
15994         #include <sys/types.h>
15995         #include <utmpx.h>
15996
15997 "
15998 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
15999
16000 cat >>confdefs.h <<_ACEOF
16001 #define HAVE_STRUCT_UTMPX_UT_PID 1
16002 _ACEOF
16003
16004
16005 fi
16006 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
16007         #include <sys/types.h>
16008         #include <utmpx.h>
16009
16010 "
16011 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
16012
16013 cat >>confdefs.h <<_ACEOF
16014 #define HAVE_STRUCT_UTMPX_UT_TV 1
16015 _ACEOF
16016
16017
16018 fi
16019 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
16020         #include <sys/types.h>
16021         #include <utmpx.h>
16022
16023 "
16024 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
16025
16026 cat >>confdefs.h <<_ACEOF
16027 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
16028 _ACEOF
16029
16030
16031 fi
16032
16033                 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
16034         #include <sys/types.h>
16035         #include <utmpx.h>
16036
16037 "
16038 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
16039
16040 cat >>confdefs.h <<_ACEOF
16041 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
16042 _ACEOF
16043
16044 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16045
16046 else
16047
16048         ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
16049             #include <sys/types.h>
16050             #include <utmpx.h>
16051
16052 "
16053 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
16054
16055 cat >>confdefs.h <<_ACEOF
16056 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16057 _ACEOF
16058
16059 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16060
16061 fi
16062
16063
16064 fi
16065
16066 else
16067     ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
16068         #include <sys/types.h>
16069         #include <utmp.h>
16070
16071 "
16072 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
16073
16074 cat >>confdefs.h <<_ACEOF
16075 #define HAVE_STRUCT_UTMP_UT_ID 1
16076 _ACEOF
16077
16078
16079 fi
16080 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
16081         #include <sys/types.h>
16082         #include <utmp.h>
16083
16084 "
16085 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
16086
16087 cat >>confdefs.h <<_ACEOF
16088 #define HAVE_STRUCT_UTMP_UT_PID 1
16089 _ACEOF
16090
16091
16092 fi
16093 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16094         #include <sys/types.h>
16095         #include <utmp.h>
16096
16097 "
16098 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16099
16100 cat >>confdefs.h <<_ACEOF
16101 #define HAVE_STRUCT_UTMP_UT_TV 1
16102 _ACEOF
16103
16104
16105 fi
16106 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16107         #include <sys/types.h>
16108         #include <utmp.h>
16109
16110 "
16111 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16112
16113 cat >>confdefs.h <<_ACEOF
16114 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16115 _ACEOF
16116
16117
16118 fi
16119 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16120         #include <sys/types.h>
16121         #include <utmp.h>
16122
16123 "
16124 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16125
16126 cat >>confdefs.h <<_ACEOF
16127 #define HAVE_STRUCT_UTMP_UT_USER 1
16128 _ACEOF
16129
16130
16131 fi
16132
16133                 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16134         #include <sys/types.h>
16135         #include <utmp.h>
16136
16137 "
16138 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16139
16140 cat >>confdefs.h <<_ACEOF
16141 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16142 _ACEOF
16143
16144 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16145
16146 else
16147
16148         ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16149             #include <sys/types.h>
16150             #include <utmp.h>
16151
16152 "
16153 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16154
16155 cat >>confdefs.h <<_ACEOF
16156 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16157 _ACEOF
16158
16159 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16160
16161 fi
16162
16163
16164 fi
16165
16166 fi
16167 CFLAGS="$_CFLAGS"
16168
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16170 $as_echo_n "checking type of array argument to getgroups... " >&6; }
16171 if ${ac_cv_type_getgroups+:} false; then :
16172   $as_echo_n "(cached) " >&6
16173 else
16174   if test "$cross_compiling" = yes; then :
16175   ac_cv_type_getgroups=cross
16176 else
16177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h.  */
16179 /* Thanks to Mike Rendell for this test.  */
16180 $ac_includes_default
16181 #define NGID 256
16182 #undef MAX
16183 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16184
16185 int
16186 main ()
16187 {
16188   gid_t gidset[NGID];
16189   int i, n;
16190   union { gid_t gval; long int lval; }  val;
16191
16192   val.lval = -1;
16193   for (i = 0; i < NGID; i++)
16194     gidset[i] = val.gval;
16195   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16196                  gidset);
16197   /* Exit non-zero if getgroups seems to require an array of ints.  This
16198      happens when gid_t is short int but getgroups modifies an array
16199      of ints.  */
16200   return n > 0 && gidset[n] != val.gval;
16201 }
16202 _ACEOF
16203 if ac_fn_c_try_run "$LINENO"; then :
16204   ac_cv_type_getgroups=gid_t
16205 else
16206   ac_cv_type_getgroups=int
16207 fi
16208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16209   conftest.$ac_objext conftest.beam conftest.$ac_ext
16210 fi
16211
16212 if test $ac_cv_type_getgroups = cross; then
16213         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h.  */
16215 #include <unistd.h>
16216
16217 _ACEOF
16218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16219   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16220   ac_cv_type_getgroups=gid_t
16221 else
16222   ac_cv_type_getgroups=int
16223 fi
16224 rm -f conftest*
16225
16226 fi
16227 fi
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16229 $as_echo "$ac_cv_type_getgroups" >&6; }
16230
16231 cat >>confdefs.h <<_ACEOF
16232 #define GETGROUPS_T $ac_cv_type_getgroups
16233 _ACEOF
16234
16235
16236 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16237 if test "x$ac_cv_type_size_t" = xyes; then :
16238
16239 else
16240
16241 cat >>confdefs.h <<_ACEOF
16242 #define size_t unsigned int
16243 _ACEOF
16244
16245 fi
16246
16247 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16248 if test "x$ac_cv_func_getgroups" = xyes; then :
16249
16250 fi
16251
16252
16253 # If we don't yet have getgroups, see if it's in -lbsd.
16254 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16255 ac_save_LIBS=$LIBS
16256 if test $ac_cv_func_getgroups = no; then
16257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16258 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16259 if ${ac_cv_lib_bsd_getgroups+:} false; then :
16260   $as_echo_n "(cached) " >&6
16261 else
16262   ac_check_lib_save_LIBS=$LIBS
16263 LIBS="-lbsd  $LIBS"
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h.  */
16266
16267 /* Override any GCC internal prototype to avoid an error.
16268    Use char because int might match the return type of a GCC
16269    builtin and then its argument prototype would still apply.  */
16270 #ifdef __cplusplus
16271 extern "C"
16272 #endif
16273 char getgroups ();
16274 int
16275 main ()
16276 {
16277 return getgroups ();
16278   ;
16279   return 0;
16280 }
16281 _ACEOF
16282 if ac_fn_c_try_link "$LINENO"; then :
16283   ac_cv_lib_bsd_getgroups=yes
16284 else
16285   ac_cv_lib_bsd_getgroups=no
16286 fi
16287 rm -f core conftest.err conftest.$ac_objext \
16288     conftest$ac_exeext conftest.$ac_ext
16289 LIBS=$ac_check_lib_save_LIBS
16290 fi
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16292 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16293 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16294   GETGROUPS_LIB=-lbsd
16295 fi
16296
16297 fi
16298
16299 # Run the program to test the functionality of the system-supplied
16300 # getgroups function only if there is such a function.
16301 if test $ac_cv_func_getgroups = yes; then
16302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16303 $as_echo_n "checking for working getgroups... " >&6; }
16304 if ${ac_cv_func_getgroups_works+:} false; then :
16305   $as_echo_n "(cached) " >&6
16306 else
16307   if test "$cross_compiling" = yes; then :
16308   ac_cv_func_getgroups_works=no
16309 else
16310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h.  */
16312 $ac_includes_default
16313 int
16314 main ()
16315 {
16316 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
16317        return getgroups (0, 0) == -1;
16318   ;
16319   return 0;
16320 }
16321 _ACEOF
16322 if ac_fn_c_try_run "$LINENO"; then :
16323   ac_cv_func_getgroups_works=yes
16324 else
16325   ac_cv_func_getgroups_works=no
16326 fi
16327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16328   conftest.$ac_objext conftest.beam conftest.$ac_ext
16329 fi
16330
16331
16332 fi
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16334 $as_echo "$ac_cv_func_getgroups_works" >&6; }
16335 else
16336   ac_cv_func_getgroups_works=no
16337 fi
16338 if test $ac_cv_func_getgroups_works = yes; then
16339
16340 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16341
16342 fi
16343 LIBS=$ac_save_LIBS
16344
16345 for ac_func in strrchr sysconf tzset strftime \
16346                regcomp setlocale nl_langinfo mbr_check_membership \
16347                setrlimit64
16348 do :
16349   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16350 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16351 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16352   cat >>confdefs.h <<_ACEOF
16353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16354 _ACEOF
16355
16356 fi
16357 done
16358
16359 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16360 if test "x$ac_cv_func_getgrouplist" = xyes; then :
16361   $as_echo "#define HAVE_GETGROUPLIST 1" >>confdefs.h
16362
16363 else
16364   case " $LIBOBJS " in
16365   *" getgrouplist.$ac_objext "* ) ;;
16366   *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16367  ;;
16368 esac
16369
16370 fi
16371
16372
16373 for ac_func in getline
16374 do :
16375   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16376 if test "x$ac_cv_func_getline" = xyes; then :
16377   cat >>confdefs.h <<_ACEOF
16378 #define HAVE_GETLINE 1
16379 _ACEOF
16380
16381 else
16382
16383     case " $LIBOBJS " in
16384   *" getline.$ac_objext "* ) ;;
16385   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16386  ;;
16387 esac
16388
16389     for ac_func in fgetln
16390 do :
16391   ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16392 if test "x$ac_cv_func_fgetln" = xyes; then :
16393   cat >>confdefs.h <<_ACEOF
16394 #define HAVE_FGETLN 1
16395 _ACEOF
16396
16397 fi
16398 done
16399
16400
16401 fi
16402 done
16403
16404 O_CPPFLAGS="$CPPFLAGS"
16405 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
16406 ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
16407 if test "x$ac_cv_func___sprintf_chk" = xyes; then :
16408
16409     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h.  */
16411
16412 int
16413 main ()
16414 {
16415 char buf[4]; (void)sprintf(buf, "%s", "foo");
16416   ;
16417   return 0;
16418 }
16419 _ACEOF
16420 if ac_fn_c_try_link "$LINENO"; then :
16421   OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
16422 fi
16423 rm -f core conftest.err conftest.$ac_objext \
16424     conftest$ac_exeext conftest.$ac_ext
16425
16426 fi
16427
16428 CPPFLAGS="$O_CPPFLAGS"
16429
16430 utmp_style=LEGACY
16431 for ac_func in getutxid getutid
16432 do :
16433   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16436   cat >>confdefs.h <<_ACEOF
16437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16438 _ACEOF
16439  utmp_style=POSIX; break
16440 fi
16441 done
16442
16443 if test "$utmp_style" = "LEGACY"; then
16444     for ac_func in getttyent ttyslot
16445 do :
16446   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16448 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16449   cat >>confdefs.h <<_ACEOF
16450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16451 _ACEOF
16452  break
16453 fi
16454 done
16455
16456 fi
16457
16458 for ac_func in sysctl
16459 do :
16460   ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
16461 if test "x$ac_cv_func_sysctl" = xyes; then :
16462   cat >>confdefs.h <<_ACEOF
16463 #define HAVE_SYSCTL 1
16464 _ACEOF
16465  ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
16466         #include <sys/param.h>
16467         #include <sys/sysctl.h>
16468         #include <sys/user.h>
16469
16470 "
16471 if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
16472
16473 cat >>confdefs.h <<_ACEOF
16474 #define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
16475 _ACEOF
16476
16477
16478 else
16479
16480         ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
16481             #include <sys/param.h>
16482             #include <sys/sysctl.h>
16483
16484 "
16485 if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
16486
16487 cat >>confdefs.h <<_ACEOF
16488 #define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
16489 _ACEOF
16490
16491
16492 else
16493
16494             ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
16495                 #include <sys/param.h>
16496                 #include <sys/sysctl.h>
16497
16498 "
16499 if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
16500
16501 cat >>confdefs.h <<_ACEOF
16502 #define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
16503 _ACEOF
16504
16505
16506 else
16507
16508                 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
16509                     #include <sys/param.h>
16510                     #include <sys/sysctl.h>
16511
16512 "
16513 if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
16514
16515 cat >>confdefs.h <<_ACEOF
16516 #define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
16517 _ACEOF
16518
16519
16520 fi
16521
16522
16523 fi
16524
16525
16526 fi
16527
16528
16529 fi
16530
16531
16532 fi
16533 done
16534
16535
16536 for ac_func in openpty
16537 do :
16538   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
16539 if test "x$ac_cv_func_openpty" = xyes; then :
16540   cat >>confdefs.h <<_ACEOF
16541 #define HAVE_OPENPTY 1
16542 _ACEOF
16543  for ac_header in libutil.h util.h pty.h
16544 do :
16545   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16546 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16547 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16548   cat >>confdefs.h <<_ACEOF
16549 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16550 _ACEOF
16551  break
16552 fi
16553
16554 done
16555
16556 else
16557
16558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
16559 $as_echo_n "checking for openpty in -lutil... " >&6; }
16560 if ${ac_cv_lib_util_openpty+:} false; then :
16561   $as_echo_n "(cached) " >&6
16562 else
16563   ac_check_lib_save_LIBS=$LIBS
16564 LIBS="-lutil  $LIBS"
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h.  */
16567
16568 /* Override any GCC internal prototype to avoid an error.
16569    Use char because int might match the return type of a GCC
16570    builtin and then its argument prototype would still apply.  */
16571 #ifdef __cplusplus
16572 extern "C"
16573 #endif
16574 char openpty ();
16575 int
16576 main ()
16577 {
16578 return openpty ();
16579   ;
16580   return 0;
16581 }
16582 _ACEOF
16583 if ac_fn_c_try_link "$LINENO"; then :
16584   ac_cv_lib_util_openpty=yes
16585 else
16586   ac_cv_lib_util_openpty=no
16587 fi
16588 rm -f core conftest.err conftest.$ac_objext \
16589     conftest$ac_exeext conftest.$ac_ext
16590 LIBS=$ac_check_lib_save_LIBS
16591 fi
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
16593 $as_echo "$ac_cv_lib_util_openpty" >&6; }
16594 if test "x$ac_cv_lib_util_openpty" = xyes; then :
16595
16596         for ac_header in libutil.h util.h pty.h
16597 do :
16598   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16599 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16600 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16601   cat >>confdefs.h <<_ACEOF
16602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16603 _ACEOF
16604  break
16605 fi
16606
16607 done
16608
16609         case "$SUDO_LIBS" in
16610             *-lutil*) ;;
16611             *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
16612         esac
16613         $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
16614
16615
16616 else
16617
16618         for ac_func in _getpty
16619 do :
16620   ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
16621 if test "x$ac_cv_func__getpty" = xyes; then :
16622   cat >>confdefs.h <<_ACEOF
16623 #define HAVE__GETPTY 1
16624 _ACEOF
16625
16626 else
16627
16628             for ac_func in grantpt
16629 do :
16630   ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16631 if test "x$ac_cv_func_grantpt" = xyes; then :
16632   cat >>confdefs.h <<_ACEOF
16633 #define HAVE_GRANTPT 1
16634 _ACEOF
16635
16636                 for ac_func in posix_openpt
16637 do :
16638   ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
16639 if test "x$ac_cv_func_posix_openpt" = xyes; then :
16640   cat >>confdefs.h <<_ACEOF
16641 #define HAVE_POSIX_OPENPT 1
16642 _ACEOF
16643
16644 fi
16645 done
16646
16647
16648 else
16649
16650                 for ac_func in revoke
16651 do :
16652   ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
16653 if test "x$ac_cv_func_revoke" = xyes; then :
16654   cat >>confdefs.h <<_ACEOF
16655 #define HAVE_REVOKE 1
16656 _ACEOF
16657
16658 fi
16659 done
16660
16661
16662 fi
16663 done
16664
16665
16666 fi
16667 done
16668
16669
16670 fi
16671
16672
16673 fi
16674 done
16675
16676 for ac_func in unsetenv
16677 do :
16678   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16679 if test "x$ac_cv_func_unsetenv" = xyes; then :
16680   cat >>confdefs.h <<_ACEOF
16681 #define HAVE_UNSETENV 1
16682 _ACEOF
16683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
16684 $as_echo_n "checking whether unsetenv returns void... " >&6; }
16685 if ${sudo_cv_func_unsetenv_void+:} false; then :
16686   $as_echo_n "(cached) " >&6
16687 else
16688   if test "$cross_compiling" = yes; then :
16689   sudo_cv_func_unsetenv_void=no
16690 else
16691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h.  */
16693 $ac_includes_default
16694         int unsetenv();
16695
16696 int
16697 main ()
16698 {
16699
16700         return unsetenv("FOO") != 0;
16701
16702   ;
16703   return 0;
16704 }
16705
16706 _ACEOF
16707 if ac_fn_c_try_run "$LINENO"; then :
16708   sudo_cv_func_unsetenv_void=no
16709 else
16710   sudo_cv_func_unsetenv_void=yes
16711 fi
16712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16713   conftest.$ac_objext conftest.beam conftest.$ac_ext
16714 fi
16715
16716 fi
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
16718 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
16719     if test $sudo_cv_func_unsetenv_void = yes; then
16720
16721 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
16722
16723     fi
16724
16725 else
16726   case " $LIBOBJS " in
16727   *" unsetenv.$ac_objext "* ) ;;
16728   *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
16729  ;;
16730 esac
16731
16732 fi
16733 done
16734
16735 if test -z "$SKIP_SETRESUID"; then
16736     for ac_func in setresuid
16737 do :
16738   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
16739 if test "x$ac_cv_func_setresuid" = xyes; then :
16740   cat >>confdefs.h <<_ACEOF
16741 #define HAVE_SETRESUID 1
16742 _ACEOF
16743
16744         SKIP_SETREUID=yes
16745         for ac_func in getresuid
16746 do :
16747   ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
16748 if test "x$ac_cv_func_getresuid" = xyes; then :
16749   cat >>confdefs.h <<_ACEOF
16750 #define HAVE_GETRESUID 1
16751 _ACEOF
16752
16753 fi
16754 done
16755
16756
16757 fi
16758 done
16759
16760 fi
16761 if test -z "$SKIP_SETREUID"; then
16762     for ac_func in setreuid
16763 do :
16764   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
16765 if test "x$ac_cv_func_setreuid" = xyes; then :
16766   cat >>confdefs.h <<_ACEOF
16767 #define HAVE_SETREUID 1
16768 _ACEOF
16769  SKIP_SETEUID=yes
16770 fi
16771 done
16772
16773 fi
16774 if test -z "$SKIP_SETEUID"; then
16775     for ac_func in seteuid
16776 do :
16777   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
16778 if test "x$ac_cv_func_seteuid" = xyes; then :
16779   cat >>confdefs.h <<_ACEOF
16780 #define HAVE_SETEUID 1
16781 _ACEOF
16782
16783 fi
16784 done
16785
16786 fi
16787 if test X"$with_interfaces" != X"no"; then
16788     for ac_func in getifaddrs
16789 do :
16790   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
16791 if test "x$ac_cv_func_getifaddrs" = xyes; then :
16792   cat >>confdefs.h <<_ACEOF
16793 #define HAVE_GETIFADDRS 1
16794 _ACEOF
16795  for ac_func in freeifaddrs
16796 do :
16797   ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
16798 if test "x$ac_cv_func_freeifaddrs" = xyes; then :
16799   cat >>confdefs.h <<_ACEOF
16800 #define HAVE_FREEIFADDRS 1
16801 _ACEOF
16802
16803 fi
16804 done
16805
16806 fi
16807 done
16808
16809 fi
16810 if test -z "$BROKEN_GETCWD"; then
16811     ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
16812 if test "x$ac_cv_func_getcwd" = xyes; then :
16813   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
16814
16815 else
16816   case " $LIBOBJS " in
16817   *" getcwd.$ac_objext "* ) ;;
16818   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
16819  ;;
16820 esac
16821
16822 fi
16823
16824
16825 fi
16826 for ac_func in glob
16827 do :
16828   ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
16829 if test "x$ac_cv_func_glob" = xyes; then :
16830   cat >>confdefs.h <<_ACEOF
16831 #define HAVE_GLOB 1
16832 _ACEOF
16833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16834 $as_echo_n "checking for GLOB_BRACE and GLOB_TILDE in glob.h... " >&6; }
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h.  */
16837 #include <glob.h>
16838 int
16839 main ()
16840 {
16841 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16842   ;
16843   return 0;
16844 }
16845 _ACEOF
16846 if ac_fn_c_try_compile "$LINENO"; then :
16847   $as_echo "#define HAVE_EXTENDED_GLOB 1" >>confdefs.h
16848
16849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16850 $as_echo "yes" >&6; }
16851 else
16852   case " $LIBOBJS " in
16853   *" glob.$ac_objext "* ) ;;
16854   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16855  ;;
16856 esac
16857
16858     COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }globtest"
16859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16860 $as_echo "no" >&6; }
16861 fi
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 else
16864   case " $LIBOBJS " in
16865   *" glob.$ac_objext "* ) ;;
16866   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16867  ;;
16868 esac
16869
16870     COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }globtest"
16871
16872 fi
16873 done
16874
16875 for ac_func in lockf flock
16876 do :
16877   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16878 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16879 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16880   cat >>confdefs.h <<_ACEOF
16881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16882 _ACEOF
16883  break
16884 fi
16885 done
16886
16887 for ac_func in innetgr _innetgr
16888 do :
16889   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16890 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16891 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16892   cat >>confdefs.h <<_ACEOF
16893 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16894 _ACEOF
16895  for ac_func in getdomainname
16896 do :
16897   ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
16898 if test "x$ac_cv_func_getdomainname" = xyes; then :
16899   cat >>confdefs.h <<_ACEOF
16900 #define HAVE_GETDOMAINNAME 1
16901 _ACEOF
16902
16903 fi
16904 done
16905  break
16906 fi
16907 done
16908
16909 for ac_func in utimes
16910 do :
16911   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
16912 if test "x$ac_cv_func_utimes" = xyes; then :
16913   cat >>confdefs.h <<_ACEOF
16914 #define HAVE_UTIMES 1
16915 _ACEOF
16916  for ac_func in futimes futimesat
16917 do :
16918   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16919 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16920 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16921   cat >>confdefs.h <<_ACEOF
16922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16923 _ACEOF
16924  break
16925 fi
16926 done
16927
16928 else
16929   for ac_func in futime
16930 do :
16931   ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
16932 if test "x$ac_cv_func_futime" = xyes; then :
16933   cat >>confdefs.h <<_ACEOF
16934 #define HAVE_FUTIME 1
16935 _ACEOF
16936
16937 fi
16938 done
16939  case " $LIBOBJS " in
16940   *" utimes.$ac_objext "* ) ;;
16941   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
16942  ;;
16943 esac
16944
16945 fi
16946 done
16947
16948 for ac_func in killpg
16949 do :
16950   ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
16951 if test "x$ac_cv_func_killpg" = xyes; then :
16952   cat >>confdefs.h <<_ACEOF
16953 #define HAVE_KILLPG 1
16954 _ACEOF
16955
16956 else
16957   case " $LIBOBJS " in
16958   *" killpg.$ac_objext "* ) ;;
16959   *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
16960  ;;
16961 esac
16962
16963 fi
16964 done
16965
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
16967 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
16968 if ${sudo_cv_func_fnmatch+:} false; then :
16969   $as_echo_n "(cached) " >&6
16970 else
16971   rm -f conftestdata; > conftestdata
16972 if test "$cross_compiling" = yes; then :
16973   sudo_cv_func_fnmatch=no
16974 else
16975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h.  */
16977 #include <fnmatch.h>
16978 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
16979 _ACEOF
16980 if ac_fn_c_try_run "$LINENO"; then :
16981   sudo_cv_func_fnmatch=yes
16982 else
16983   sudo_cv_func_fnmatch=no
16984 fi
16985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16986   conftest.$ac_objext conftest.beam conftest.$ac_ext
16987 fi
16988
16989 rm -f core core.* *.core
16990 fi
16991
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
16993 $as_echo "$sudo_cv_func_fnmatch" >&6; }
16994 if test $sudo_cv_func_fnmatch = yes; then :
16995   $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
16996
16997 else
16998   case " $LIBOBJS " in
16999   *" fnmatch.$ac_objext "* ) ;;
17000   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17001  ;;
17002 esac
17003
17004     COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
17005
17006 fi
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
17008 $as_echo_n "checking for isblank... " >&6; }
17009 if ${sudo_cv_func_isblank+:} false; then :
17010   $as_echo_n "(cached) " >&6
17011 else
17012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h.  */
17014 #include <ctype.h>
17015 int
17016 main ()
17017 {
17018 return (isblank('a'));
17019   ;
17020   return 0;
17021 }
17022 _ACEOF
17023 if ac_fn_c_try_link "$LINENO"; then :
17024   sudo_cv_func_isblank=yes
17025 else
17026   sudo_cv_func_isblank=no
17027 fi
17028 rm -f core conftest.err conftest.$ac_objext \
17029     conftest$ac_exeext conftest.$ac_ext
17030 fi
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
17032 $as_echo "$sudo_cv_func_isblank" >&6; }
17033
17034   if test "$sudo_cv_func_isblank" = "yes"; then
17035
17036 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17037
17038   else
17039     case " $LIBOBJS " in
17040   *" isblank.$ac_objext "* ) ;;
17041   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17042  ;;
17043 esac
17044
17045   fi
17046
17047 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17048 if test "x$ac_cv_func_memrchr" = xyes; then :
17049   $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17050
17051 else
17052   case " $LIBOBJS " in
17053   *" memrchr.$ac_objext "* ) ;;
17054   *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17055  ;;
17056 esac
17057
17058 fi
17059
17060 ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
17061 if test "x$ac_cv_func_pw_dup" = xyes; then :
17062   $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
17063
17064 else
17065   case " $LIBOBJS " in
17066   *" pw_dup.$ac_objext "* ) ;;
17067   *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
17068  ;;
17069 esac
17070
17071 fi
17072
17073 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17074 if test "x$ac_cv_func_strlcpy" = xyes; then :
17075   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17076
17077 else
17078   case " $LIBOBJS " in
17079   *" strlcpy.$ac_objext "* ) ;;
17080   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17081  ;;
17082 esac
17083
17084 fi
17085
17086 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17087 if test "x$ac_cv_func_strlcat" = xyes; then :
17088   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17089
17090 else
17091   case " $LIBOBJS " in
17092   *" strlcat.$ac_objext "* ) ;;
17093   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17094  ;;
17095 esac
17096
17097 fi
17098
17099 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
17100 if test "x$ac_cv_func_setenv" = xyes; then :
17101   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
17102
17103 else
17104   case " $LIBOBJS " in
17105   *" setenv.$ac_objext "* ) ;;
17106   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
17107  ;;
17108 esac
17109
17110 fi
17111
17112
17113 for ac_func in nanosleep
17114 do :
17115   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17116 if test "x$ac_cv_func_nanosleep" = xyes; then :
17117   cat >>confdefs.h <<_ACEOF
17118 #define HAVE_NANOSLEEP 1
17119 _ACEOF
17120
17121 else
17122
17123     # On Solaris, nanosleep is in librt
17124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
17125 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
17126 if ${ac_cv_lib_rt_nanosleep+:} false; then :
17127   $as_echo_n "(cached) " >&6
17128 else
17129   ac_check_lib_save_LIBS=$LIBS
17130 LIBS="-lrt  $LIBS"
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h.  */
17133
17134 /* Override any GCC internal prototype to avoid an error.
17135    Use char because int might match the return type of a GCC
17136    builtin and then its argument prototype would still apply.  */
17137 #ifdef __cplusplus
17138 extern "C"
17139 #endif
17140 char nanosleep ();
17141 int
17142 main ()
17143 {
17144 return nanosleep ();
17145   ;
17146   return 0;
17147 }
17148 _ACEOF
17149 if ac_fn_c_try_link "$LINENO"; then :
17150   ac_cv_lib_rt_nanosleep=yes
17151 else
17152   ac_cv_lib_rt_nanosleep=no
17153 fi
17154 rm -f core conftest.err conftest.$ac_objext \
17155     conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17157 fi
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
17159 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
17160 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
17161   REPLAY_LIBS="${REPLAY_LIBS} -lrt"
17162 else
17163   case " $LIBOBJS " in
17164   *" nanosleep.$ac_objext "* ) ;;
17165   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17166  ;;
17167 esac
17168
17169 fi
17170
17171
17172 fi
17173 done
17174
17175 for ac_func in closefrom
17176 do :
17177   ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
17178 if test "x$ac_cv_func_closefrom" = xyes; then :
17179   cat >>confdefs.h <<_ACEOF
17180 #define HAVE_CLOSEFROM 1
17181 _ACEOF
17182
17183 else
17184   case " $LIBOBJS " in
17185   *" closefrom.$ac_objext "* ) ;;
17186   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17187  ;;
17188 esac
17189
17190     ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
17191           #include <fcntl.h>
17192 "
17193 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
17194   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
17195
17196 fi
17197
17198
17199 fi
17200 done
17201
17202 for ac_func in mkstemps mkdtemp
17203 do :
17204   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17205 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17206 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17207   cat >>confdefs.h <<_ACEOF
17208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17209 _ACEOF
17210
17211 else
17212
17213     for ac_func in random lrand48
17214 do :
17215   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17216 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17217 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17218   cat >>confdefs.h <<_ACEOF
17219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17220 _ACEOF
17221  break
17222 fi
17223 done
17224
17225     case " $LIBOBJS " in
17226   *" mktemp.$ac_objext "* ) ;;
17227   *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17228  ;;
17229 esac
17230
17231
17232 fi
17233 done
17234
17235 for ac_func in snprintf vsnprintf asprintf vasprintf
17236 do :
17237   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17238 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17239 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17240   cat >>confdefs.h <<_ACEOF
17241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17242 _ACEOF
17243
17244 else
17245   NEED_SNPRINTF=1
17246 fi
17247 done
17248
17249 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17250     ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17251 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17252   $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17253
17254         ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17255 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17256   $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17257
17258 fi
17259
17260 else
17261   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17262 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17263   $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17264
17265 fi
17266
17267 fi
17268
17269 fi
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h.  */
17272 #include <sys/types.h>
17273 #include <$ac_header_dirent>
17274 int
17275 main ()
17276 {
17277 DIR *d; (void)dirfd(d);
17278   ;
17279   return 0;
17280 }
17281 _ACEOF
17282 if ac_fn_c_try_link "$LINENO"; then :
17283   $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17284
17285 else
17286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h.  */
17288 #include <sys/types.h>
17289 #include <$ac_header_dirent>
17290 int
17291 main ()
17292 {
17293 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17294   ;
17295   return 0;
17296 }
17297 _ACEOF
17298 if ac_fn_c_try_link "$LINENO"; then :
17299   $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17300
17301 fi
17302 rm -f core conftest.err conftest.$ac_objext \
17303     conftest$ac_exeext conftest.$ac_ext
17304 fi
17305 rm -f core conftest.err conftest.$ac_objext \
17306     conftest$ac_exeext conftest.$ac_ext
17307 if test -n "$NEED_SNPRINTF"; then
17308     case " $LIBOBJS " in
17309   *" snprintf.$ac_objext "* ) ;;
17310   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17311  ;;
17312 esac
17313
17314 fi
17315 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17316 if test "x$ac_cv_func_socket" = xyes; then :
17317
17318 else
17319
17320     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17321         _libs=
17322         for lib in $libs; do
17323             case "$NET_LIBS" in
17324                 *"$lib"*)   ;;
17325                 *)          _libs="$_libs $lib";;
17326             esac
17327         done
17328         libs="${_libs# }"
17329         test -z "$libs" && continue
17330         lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17331         extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17332
17333     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
17334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
17335 $as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
17336     if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17337   $as_echo_n "(cached) " >&6
17338 else
17339
17340         SUDO_CHECK_LIB_OLIBS="$LIBS"
17341         LIBS="$LIBS -l$lib${5+ }$extralibs"
17342         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h.  */
17344
17345 /* Override any GCC internal prototype to avoid an error.
17346    Use char because int might match the return type of a GCC
17347    builtin and then its argument prototype would still apply.  */
17348 #ifdef __cplusplus
17349 extern "C"
17350 #endif
17351 char socket ();
17352 int
17353 main ()
17354 {
17355 return socket ();
17356   ;
17357   return 0;
17358 }
17359 _ACEOF
17360 if ac_fn_c_try_link "$LINENO"; then :
17361   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
17362 else
17363   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
17364
17365 fi
17366 rm -f core conftest.err conftest.$ac_objext \
17367     conftest$ac_exeext conftest.$ac_ext
17368         LIBS="$SUDO_CHECK_LIB_OLIBS"
17369
17370 fi
17371
17372     if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
17373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17374 $as_echo "yes" >&6; }
17375         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17376     else
17377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17378 $as_echo "no" >&6; }
17379
17380     fi
17381
17382     done
17383
17384 fi
17385
17386 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17387 if test "x$ac_cv_func_inet_addr" = xyes; then :
17388
17389 else
17390
17391     ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17392 if test "x$ac_cv_func___inet_addr" = xyes; then :
17393
17394 else
17395
17396         for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17397             _libs=
17398             for lib in $libs; do
17399                 case "$NET_LIBS" in
17400                     *"$lib"*)   ;;
17401                     *)          _libs="$_libs $lib";;
17402                 esac
17403             done
17404             libs="${_libs# }"
17405             test -z "$libs" && continue
17406             lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17407             extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17408
17409     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
17410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5
17411 $as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; }
17412     if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17413   $as_echo_n "(cached) " >&6
17414 else
17415
17416         SUDO_CHECK_LIB_OLIBS="$LIBS"
17417         LIBS="$LIBS -l$lib${5+ }$extralibs"
17418         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h.  */
17420
17421 /* Override any GCC internal prototype to avoid an error.
17422    Use char because int might match the return type of a GCC
17423    builtin and then its argument prototype would still apply.  */
17424 #ifdef __cplusplus
17425 extern "C"
17426 #endif
17427 char inet_addr ();
17428 int
17429 main ()
17430 {
17431 return inet_addr ();
17432   ;
17433   return 0;
17434 }
17435 _ACEOF
17436 if ac_fn_c_try_link "$LINENO"; then :
17437   eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes
17438 else
17439   eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no
17440
17441 fi
17442 rm -f core conftest.err conftest.$ac_objext \
17443     conftest$ac_exeext conftest.$ac_ext
17444         LIBS="$SUDO_CHECK_LIB_OLIBS"
17445
17446 fi
17447
17448     if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then
17449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17450 $as_echo "yes" >&6; }
17451         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17452     else
17453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17454 $as_echo "no" >&6; }
17455
17456     fi
17457
17458         done
17459
17460 fi
17461
17462
17463 fi
17464
17465 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17466 if test "x$ac_cv_func_syslog" = xyes; then :
17467
17468 else
17469
17470     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17471         _libs=
17472         for lib in $libs; do
17473             case "$NET_LIBS" in
17474                 *"$lib"*)   ;;
17475                 *)          _libs="$_libs $lib";;
17476             esac
17477         done
17478         libs="${_libs# }"
17479         test -z "$libs" && continue
17480         lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17481         extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17482
17483     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
17484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
17485 $as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
17486     if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17487   $as_echo_n "(cached) " >&6
17488 else
17489
17490         SUDO_CHECK_LIB_OLIBS="$LIBS"
17491         LIBS="$LIBS -l$lib${5+ }$extralibs"
17492         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h.  */
17494
17495 /* Override any GCC internal prototype to avoid an error.
17496    Use char because int might match the return type of a GCC
17497    builtin and then its argument prototype would still apply.  */
17498 #ifdef __cplusplus
17499 extern "C"
17500 #endif
17501 char syslog ();
17502 int
17503 main ()
17504 {
17505 return syslog ();
17506   ;
17507   return 0;
17508 }
17509 _ACEOF
17510 if ac_fn_c_try_link "$LINENO"; then :
17511   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
17512 else
17513   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
17514
17515 fi
17516 rm -f core conftest.err conftest.$ac_objext \
17517     conftest$ac_exeext conftest.$ac_ext
17518         LIBS="$SUDO_CHECK_LIB_OLIBS"
17519
17520 fi
17521
17522     if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
17523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17524 $as_echo "yes" >&6; }
17525         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17526     else
17527         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17528 $as_echo "no" >&6; }
17529
17530     fi
17531
17532     done
17533
17534 fi
17535
17536 for ac_func in getaddrinfo
17537 do :
17538   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17539 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17540   cat >>confdefs.h <<_ACEOF
17541 #define HAVE_GETADDRINFO 1
17542 _ACEOF
17543
17544 else
17545
17546     found=no
17547     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17548         _libs=
17549         for lib in $libs; do
17550             case "$NET_LIBS" in
17551                 *"$lib"*)   ;;
17552                 *)          _libs="$_libs $lib";;
17553             esac
17554         done
17555         libs="${_libs# }"
17556         test -z "$libs" && continue
17557         lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17558         extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17559
17560     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
17561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib${5+ }$extralibs" >&5
17562 $as_echo_n "checking for getaddrinfo in -l$lib${5+ }$extralibs... " >&6; }
17563     if { as_var=sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17564   $as_echo_n "(cached) " >&6
17565 else
17566
17567         SUDO_CHECK_LIB_OLIBS="$LIBS"
17568         LIBS="$LIBS -l$lib${5+ }$extralibs"
17569         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h.  */
17571
17572 /* Override any GCC internal prototype to avoid an error.
17573    Use char because int might match the return type of a GCC
17574    builtin and then its argument prototype would still apply.  */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 char getaddrinfo ();
17579 int
17580 main ()
17581 {
17582 return getaddrinfo ();
17583   ;
17584   return 0;
17585 }
17586 _ACEOF
17587 if ac_fn_c_try_link "$LINENO"; then :
17588   eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=yes
17589 else
17590   eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=no
17591
17592 fi
17593 rm -f core conftest.err conftest.$ac_objext \
17594     conftest$ac_exeext conftest.$ac_ext
17595         LIBS="$SUDO_CHECK_LIB_OLIBS"
17596
17597 fi
17598
17599     if eval test \$sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras = "yes"; then
17600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17601 $as_echo "yes" >&6; }
17602         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; found=yes; break
17603     else
17604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17605 $as_echo "no" >&6; }
17606
17607     fi
17608
17609     done
17610     if test X"$found" != X"no"; then
17611         $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17612
17613     fi
17614
17615 fi
17616 done
17617
17618 for ac_func in getprogname
17619 do :
17620   ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17621 if test "x$ac_cv_func_getprogname" = xyes; then :
17622   cat >>confdefs.h <<_ACEOF
17623 #define HAVE_GETPROGNAME 1
17624 _ACEOF
17625
17626 else
17627
17628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
17629 $as_echo_n "checking for __progname... " >&6; }
17630     if ${sudo_cv___progname+:} false; then :
17631   $as_echo_n "(cached) " >&6
17632 else
17633
17634     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h.  */
17636
17637 int
17638 main ()
17639 {
17640 extern char *__progname; (void)puts(__progname);
17641   ;
17642   return 0;
17643 }
17644 _ACEOF
17645 if ac_fn_c_try_link "$LINENO"; then :
17646   sudo_cv___progname=yes
17647 else
17648   sudo_cv___progname=no
17649 fi
17650 rm -f core conftest.err conftest.$ac_objext \
17651     conftest$ac_exeext conftest.$ac_ext
17652 fi
17653
17654     if test "$sudo_cv___progname" = "yes"; then
17655         $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17656
17657     else
17658         case " $LIBOBJS " in
17659   *" getprogname.$ac_objext "* ) ;;
17660   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
17661  ;;
17662 esac
17663
17664     fi
17665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
17666 $as_echo "$sudo_cv___progname" >&6; }
17667
17668 fi
17669 done
17670
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
17672 $as_echo_n "checking for __func__... " >&6; }
17673 if ${sudo_cv___func__+:} false; then :
17674   $as_echo_n "(cached) " >&6
17675 else
17676
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h.  */
17679
17680 int
17681 main ()
17682 {
17683 (void)puts(__func__);
17684   ;
17685   return 0;
17686 }
17687 _ACEOF
17688 if ac_fn_c_try_link "$LINENO"; then :
17689   sudo_cv___func__=yes
17690 else
17691   sudo_cv___func__=no
17692 fi
17693 rm -f core conftest.err conftest.$ac_objext \
17694     conftest$ac_exeext conftest.$ac_ext
17695 fi
17696
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
17698 $as_echo "$sudo_cv___func__" >&6; }
17699 if test "$sudo_cv___func__" = "yes"; then
17700     $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17701
17702 elif test -n "$GCC"; then
17703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
17704 $as_echo_n "checking for __FUNCTION__... " >&6; }
17705     if ${sudo_cv___FUNCTION__+:} false; then :
17706   $as_echo_n "(cached) " >&6
17707 else
17708
17709     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h.  */
17711
17712 int
17713 main ()
17714 {
17715 (void)puts(__FUNCTION__);
17716   ;
17717   return 0;
17718 }
17719 _ACEOF
17720 if ac_fn_c_try_link "$LINENO"; then :
17721   sudo_cv___FUNCTION__=yes
17722 else
17723   sudo_cv___FUNCTION__=no
17724 fi
17725 rm -f core conftest.err conftest.$ac_objext \
17726     conftest$ac_exeext conftest.$ac_ext
17727 fi
17728
17729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
17730 $as_echo "$sudo_cv___FUNCTION__" >&6; }
17731     if test "$sudo_cv___FUNCTION__" = "yes"; then
17732         $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17733
17734
17735 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
17736
17737     fi
17738 fi
17739
17740 # gettext() and friends may be located in libc (Linux and Solaris)
17741 # or in libintl.  However, it is possible to have libintl installed
17742 # even when gettext() is present in libc.  In the case of GNU libintl,
17743 # gettext() will be defined to gettext_libintl in libintl.h.
17744 # Since gcc prefers /usr/local/include to /usr/include, we need to
17745 # make sure we use the gettext() that matches the include file.
17746 if test "$enable_nls" != "no"; then
17747     if test "$enable_nls" != "yes"; then
17748         CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
17749
17750     if test X"$with_rpath" = X"yes"; then
17751         case "$host" in
17752             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,+b,$enable_nls/lib"
17753                         ;;
17754             *)          LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,-R$enable_nls/lib"
17755                         ;;
17756         esac
17757     else
17758         LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
17759     fi
17760     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
17761         blibpath_add="${blibpath_add}:$enable_nls/lib"
17762     fi
17763
17764     fi
17765     OLIBS="$LIBS"
17766     for l in "libc" "-lintl" "-lintl -liconv"; do
17767         if test "$l" = "libc"; then
17768             # If user specified a dir for libintl ignore libc
17769             if test "$enable_nls" != "yes"; then
17770                 continue
17771             fi
17772             gettext_name=sudo_cv_gettext
17773             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
17774 $as_echo_n "checking for gettext... " >&6; }
17775         else
17776             LIBS="$OLIBS $l"
17777             gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
17778             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
17779 $as_echo_n "checking for gettext in $l... " >&6; }
17780         fi
17781         if eval \${$gettext_name+:} false; then :
17782   $as_echo_n "(cached) " >&6
17783 else
17784
17785                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h.  */
17787
17788                         #include <libintl.h>
17789 int
17790 main ()
17791 {
17792 (void)gettext((char *)0);
17793   ;
17794   return 0;
17795 }
17796
17797 _ACEOF
17798 if ac_fn_c_try_link "$LINENO"; then :
17799   eval $gettext_name=yes
17800 else
17801   eval $gettext_name=no
17802
17803 fi
17804 rm -f core conftest.err conftest.$ac_objext \
17805     conftest$ac_exeext conftest.$ac_ext
17806
17807 fi
17808
17809         eval gettext_result="\$$gettext_name"
17810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
17811 $as_echo "$gettext_result" >&6; }
17812         test "$gettext_result" = "yes" && break
17813     done
17814     LIBS="$OLIBS"
17815
17816     if test "$sudo_cv_gettext" = "yes"; then
17817         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17818
17819         SUDO_NLS=enabled
17820     elif test "$sudo_cv_gettext_lintl" = "yes"; then
17821         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17822
17823         SUDO_NLS=enabled
17824         LIBINTL="-lintl"
17825     elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
17826         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
17827
17828         SUDO_NLS=enabled
17829         LIBINTL="-lintl -liconv"
17830     fi
17831 fi
17832
17833 case "$enable_zlib" in
17834     yes)
17835         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
17836 $as_echo_n "checking for gzdopen in -lz... " >&6; }
17837 if ${ac_cv_lib_z_gzdopen+:} false; then :
17838   $as_echo_n "(cached) " >&6
17839 else
17840   ac_check_lib_save_LIBS=$LIBS
17841 LIBS="-lz  $LIBS"
17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h.  */
17844
17845 /* Override any GCC internal prototype to avoid an error.
17846    Use char because int might match the return type of a GCC
17847    builtin and then its argument prototype would still apply.  */
17848 #ifdef __cplusplus
17849 extern "C"
17850 #endif
17851 char gzdopen ();
17852 int
17853 main ()
17854 {
17855 return gzdopen ();
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 if ac_fn_c_try_link "$LINENO"; then :
17861   ac_cv_lib_z_gzdopen=yes
17862 else
17863   ac_cv_lib_z_gzdopen=no
17864 fi
17865 rm -f core conftest.err conftest.$ac_objext \
17866     conftest$ac_exeext conftest.$ac_ext
17867 LIBS=$ac_check_lib_save_LIBS
17868 fi
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
17870 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
17871 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
17872
17873             for ac_header in zlib.h
17874 do :
17875   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17876 if test "x$ac_cv_header_zlib_h" = xyes; then :
17877   cat >>confdefs.h <<_ACEOF
17878 #define HAVE_ZLIB_H 1
17879 _ACEOF
17880  ZLIB="-lz"
17881 else
17882   enable_zlib=builtin
17883 fi
17884
17885 done
17886
17887
17888 fi
17889
17890         ;;
17891     no)
17892         ;;
17893     system)
17894         $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17895
17896         ZLIB="-lz"
17897         ;;
17898     builtin)
17899         # handled below
17900         ;;
17901     *)
17902         $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17903
17904         CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
17905
17906     if test X"$with_rpath" = X"yes"; then
17907         case "$host" in
17908             *-*-hpux*)  ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
17909                         ;;
17910             *)          ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
17911                         ;;
17912         esac
17913     else
17914         ZLIB="${ZLIB} -L$enable_zlib/lib"
17915     fi
17916     if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
17917         blibpath_add="${blibpath_add}:$enable_zlib/lib"
17918     fi
17919
17920         ZLIB="${ZLIB} -lz"
17921         ;;
17922 esac
17923 if test X"$enable_zlib" = X"builtin"; then
17924     $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
17925
17926     CPPFLAGS="${CPPFLAGS}"' -I$(top_srcdir)/zlib'
17927     ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
17928     ZLIB_SRC=zlib
17929     ac_config_headers="$ac_config_headers zlib/zconf.h"
17930
17931     ac_config_files="$ac_config_files zlib/Makefile"
17932
17933 fi
17934
17935 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
17936 $ac_includes_default
17937 #include <errno.h>
17938
17939 "
17940 if test "x$ac_cv_have_decl_errno" = xyes; then :
17941   ac_have_decl=1
17942 else
17943   ac_have_decl=0
17944 fi
17945
17946 cat >>confdefs.h <<_ACEOF
17947 #define HAVE_DECL_ERRNO $ac_have_decl
17948 _ACEOF
17949
17950
17951 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
17952 $ac_includes_default
17953 #include <netdb.h>
17954
17955 "
17956 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
17957   ac_have_decl=1
17958 else
17959   ac_have_decl=0
17960 fi
17961
17962 cat >>confdefs.h <<_ACEOF
17963 #define HAVE_DECL_H_ERRNO $ac_have_decl
17964 _ACEOF
17965
17966
17967 for ac_func in strsignal
17968 do :
17969   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17970 if test "x$ac_cv_func_strsignal" = xyes; then :
17971   cat >>confdefs.h <<_ACEOF
17972 #define HAVE_STRSIGNAL 1
17973 _ACEOF
17974
17975 else
17976
17977     case " $LIBOBJS " in
17978   *" strsignal.$ac_objext "* ) ;;
17979   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
17980  ;;
17981 esac
17982
17983     HAVE_SIGLIST="false"
17984     ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
17985 $ac_includes_default
17986 #include <signal.h>
17987
17988 "
17989 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
17990   ac_have_decl=1
17991 else
17992   ac_have_decl=0
17993 fi
17994
17995 cat >>confdefs.h <<_ACEOF
17996 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
17997 _ACEOF
17998 if test $ac_have_decl = 1; then :
17999
18000         HAVE_SIGLIST="true"
18001         break
18002
18003 fi
18004 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
18005 $ac_includes_default
18006 #include <signal.h>
18007
18008 "
18009 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
18010   ac_have_decl=1
18011 else
18012   ac_have_decl=0
18013 fi
18014
18015 cat >>confdefs.h <<_ACEOF
18016 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
18017 _ACEOF
18018 if test $ac_have_decl = 1; then :
18019
18020         HAVE_SIGLIST="true"
18021         break
18022
18023 fi
18024 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
18025 $ac_includes_default
18026 #include <signal.h>
18027
18028 "
18029 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
18030   ac_have_decl=1
18031 else
18032   ac_have_decl=0
18033 fi
18034
18035 cat >>confdefs.h <<_ACEOF
18036 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
18037 _ACEOF
18038 if test $ac_have_decl = 1; then :
18039
18040         HAVE_SIGLIST="true"
18041         break
18042
18043 fi
18044
18045     if test "$HAVE_SIGLIST" != "true"; then
18046         case " $LIBOBJS " in
18047   *" siglist.$ac_objext "* ) ;;
18048   *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
18049  ;;
18050 esac
18051
18052     fi
18053
18054 fi
18055 done
18056
18057
18058 if test ${with_netsvc-"no"} != "no"; then
18059     cat >>confdefs.h <<EOF
18060 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
18061 EOF
18062
18063     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
18064 elif test ${with_nsswitch-"yes"} != "no"; then
18065     cat >>confdefs.h <<EOF
18066 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
18067 EOF
18068
18069     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
18070 fi
18071
18072
18073 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
18074     for auth in $AUTH_EXCL_DEF; do
18075         case $auth in
18076             AIX_AUTH)   with_aixauth=maybe;;
18077             BSD_AUTH)   with_bsdauth=maybe;;
18078             PAM)        with_pam=maybe;;
18079             SIA)        CHECKSIA=true;;
18080         esac
18081     done
18082 fi
18083
18084 if test ${with_pam-"no"} != "no"; then
18085     #
18086     # Check for pam_start() in libpam first, then for pam_appl.h.
18087     #
18088     found_pam_lib=no
18089     as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18091 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18092 if eval \${$as_ac_Lib+:} false; then :
18093   $as_echo_n "(cached) " >&6
18094 else
18095   ac_check_lib_save_LIBS=$LIBS
18096 LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
18097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098 /* end confdefs.h.  */
18099
18100 /* Override any GCC internal prototype to avoid an error.
18101    Use char because int might match the return type of a GCC
18102    builtin and then its argument prototype would still apply.  */
18103 #ifdef __cplusplus
18104 extern "C"
18105 #endif
18106 char pam_start ();
18107 int
18108 main ()
18109 {
18110 return pam_start ();
18111   ;
18112   return 0;
18113 }
18114 _ACEOF
18115 if ac_fn_c_try_link "$LINENO"; then :
18116   eval "$as_ac_Lib=yes"
18117 else
18118   eval "$as_ac_Lib=no"
18119 fi
18120 rm -f core conftest.err conftest.$ac_objext \
18121     conftest$ac_exeext conftest.$ac_ext
18122 LIBS=$ac_check_lib_save_LIBS
18123 fi
18124 eval ac_res=\$$as_ac_Lib
18125                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18126 $as_echo "$ac_res" >&6; }
18127 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18128   found_pam_lib=yes
18129 fi
18130
18131     #
18132     # Some PAM implementations (MacOS X for example) put the PAM headers
18133     # in /usr/include/pam instead of /usr/include/security...
18134     #
18135     found_pam_hdrs=no
18136     for ac_header in security/pam_appl.h pam/pam_appl.h
18137 do :
18138   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18139 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18140 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18141   cat >>confdefs.h <<_ACEOF
18142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18143 _ACEOF
18144  found_pam_hdrs=yes; break
18145 fi
18146
18147 done
18148
18149     if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
18150         # Found both PAM libs and headers
18151         with_pam=yes
18152     elif test "$with_pam" = "yes"; then
18153         if test "$found_pam_lib" = "no"; then
18154             as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
18155         fi
18156         if test "$found_pam_hdrs" = "no"; then
18157             as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
18158         fi
18159     elif test "$found_pam_lib" != "$found_pam_hdrs"; then
18160         if test "$found_pam_lib" = "no"; then
18161             as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
18162         fi
18163         if test "$found_pam_hdrs" = "no"; then
18164             as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
18165         fi
18166     fi
18167
18168     if test "$with_pam" = "yes"; then
18169         # We already link with -ldl if needed (see LIBDL below)
18170         SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
18171         $as_echo "#define HAVE_PAM 1" >>confdefs.h
18172
18173         AUTH_OBJS="$AUTH_OBJS pam.lo";
18174         AUTH_EXCL=PAM
18175
18176
18177 # Check whether --with-pam-login was given.
18178 if test "${with_pam_login+set}" = set; then :
18179   withval=$with_pam_login; case $with_pam_login in
18180             yes)        $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
18181
18182                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
18183 $as_echo_n "checking whether to use PAM login... " >&6; }
18184                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18185 $as_echo "yes" >&6; }
18186                         ;;
18187             no)         ;;
18188             *)          as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
18189                         ;;
18190         esac
18191 fi
18192
18193
18194         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
18195 $as_echo_n "checking whether to use PAM session support... " >&6; }
18196         # Check whether --enable-pam_session was given.
18197 if test "${enable_pam_session+set}" = set; then :
18198   enableval=$enable_pam_session;  case "$enableval" in
18199                 yes)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18200 $as_echo "yes" >&6; }
18201                         ;;
18202                 no)             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18203 $as_echo "no" >&6; }
18204                             $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
18205
18206                             ;;
18207                 *)              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18208 $as_echo "no" >&6; }
18209                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
18210 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
18211                             ;;
18212             esac
18213 else
18214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215 $as_echo "yes" >&6; }
18216 fi
18217
18218     fi
18219 fi
18220
18221 if test ${with_aixauth-'no'} != "no"; then
18222     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
18223         { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
18224 $as_echo "$as_me: using AIX general authentication" >&6;}
18225         $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
18226
18227         AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
18228         SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
18229         AUTH_EXCL=AIX_AUTH
18230     fi
18231 fi
18232
18233 if test ${with_bsdauth-'no'} != "no"; then
18234     ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
18235 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
18236   $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
18237
18238         AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
18239         BSDAUTH_USAGE='[-a auth_type] '
18240         AUTH_EXCL=BSD_AUTH; BAMAN=1
18241 else
18242   as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
18243 fi
18244
18245
18246 fi
18247
18248 if test ${CHECKSIA-'false'} = "true"; then
18249     for ac_func in sia_ses_init
18250 do :
18251   ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
18252 if test "x$ac_cv_func_sia_ses_init" = xyes; then :
18253   cat >>confdefs.h <<_ACEOF
18254 #define HAVE_SIA_SES_INIT 1
18255 _ACEOF
18256  found=true
18257 else
18258   found=false
18259 fi
18260 done
18261
18262     if test "$found" = "true"; then
18263         AUTH_EXCL=SIA
18264         AUTH_OBJS="$AUTH_OBJS sia.lo"
18265     fi
18266 fi
18267
18268 if test ${with_fwtk-'no'} != "no"; then
18269     if test "$with_fwtk" != "yes"; then
18270
18271     if test X"$with_rpath" = X"yes"; then
18272         case "$host" in
18273             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
18274                         ;;
18275             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
18276                         ;;
18277         esac
18278     else
18279         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
18280     fi
18281     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18282         blibpath_add="${blibpath_add}:${with_fwtk}"
18283     fi
18284
18285         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
18286         with_fwtk=yes
18287     fi
18288     SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
18289     AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18290 fi
18291
18292 if test ${with_SecurID-'no'} != "no"; then
18293     if test "$with_SecurID" != "yes"; then
18294         :
18295     elif test -d /usr/ace/examples; then
18296         with_SecurID=/usr/ace/examples
18297     else
18298         with_SecurID=/usr/ace
18299     fi
18300     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18301
18302     if test X"$with_rpath" = X"yes"; then
18303         case "$host" in
18304             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18305                         ;;
18306             *)          LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18307                         ;;
18308         esac
18309     else
18310         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
18311     fi
18312     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18313         blibpath_add="${blibpath_add}:${with_SecurID}"
18314     fi
18315
18316     SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
18317     AUTH_OBJS="$AUTH_OBJS securid5.lo";
18318 fi
18319
18320
18321 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
18322     for auth in $AUTH_DEF; do
18323         case $auth in
18324             passwd)     : ${with_passwd='maybe'};;
18325         esac
18326     done
18327 fi
18328
18329 if test ${with_kerb5-'no'} != "no"; then
18330     # Extract the first word of "krb5-config", so it can be a program name with args.
18331 set dummy krb5-config; ac_word=$2
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18333 $as_echo_n "checking for $ac_word... " >&6; }
18334 if ${ac_cv_prog_KRB5CONFIG+:} false; then :
18335   $as_echo_n "(cached) " >&6
18336 else
18337   if test -n "$KRB5CONFIG"; then
18338   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
18339 else
18340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18341 for as_dir in $PATH
18342 do
18343   IFS=$as_save_IFS
18344   test -z "$as_dir" && as_dir=.
18345     for ac_exec_ext in '' $ac_executable_extensions; do
18346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18347     ac_cv_prog_KRB5CONFIG="yes"
18348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18349     break 2
18350   fi
18351 done
18352   done
18353 IFS=$as_save_IFS
18354
18355   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
18356 fi
18357 fi
18358 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
18359 if test -n "$KRB5CONFIG"; then
18360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
18361 $as_echo "$KRB5CONFIG" >&6; }
18362 else
18363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18364 $as_echo "no" >&6; }
18365 fi
18366
18367
18368     if test -n "$KRB5CONFIG"; then
18369         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18370
18371         AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18372         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
18373         SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
18374                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18375 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18376         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18377 /* end confdefs.h.  */
18378 #include <krb5.h>
18379 int
18380 main ()
18381 {
18382 const char *tmp = heimdal_version;
18383   ;
18384   return 0;
18385 }
18386 _ACEOF
18387 if ac_fn_c_try_compile "$LINENO"; then :
18388
18389                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18390 $as_echo "yes" >&6; }
18391                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18392
18393
18394 else
18395
18396                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18397 $as_echo "no" >&6; }
18398
18399
18400 fi
18401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18402     else
18403         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
18404
18405                                 if test "$with_kerb5" = "yes"; then
18406             found=no
18407             O_CPPFLAGS="$CPPFLAGS"
18408             for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
18409                 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18410                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h.  */
18412 #include <krb5.h>
18413 int
18414 main ()
18415 {
18416
18417   ;
18418   return 0;
18419 }
18420 _ACEOF
18421 if ac_fn_c_try_cpp "$LINENO"; then :
18422   found=yes; break
18423 fi
18424 rm -f conftest.err conftest.i conftest.$ac_ext
18425             done
18426             if test X"$found" = X"no"; then
18427                 CPPFLAGS="$O_CPPFLAGS"
18428                 { $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
18429 $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;}
18430             fi
18431         else
18432
18433     if test X"$with_rpath" = X"yes"; then
18434         case "$host" in
18435             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
18436                         ;;
18437             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
18438                         ;;
18439         esac
18440     else
18441         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
18442     fi
18443     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18444         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
18445     fi
18446
18447             CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
18448         fi
18449
18450                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18451 $as_echo_n "checking whether we are using Heimdal... " >&6; }
18452         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453 /* end confdefs.h.  */
18454 #include <krb5.h>
18455 int
18456 main ()
18457 {
18458 const char *tmp = heimdal_version;
18459   ;
18460   return 0;
18461 }
18462 _ACEOF
18463 if ac_fn_c_try_compile "$LINENO"; then :
18464
18465                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18466 $as_echo "yes" >&6; }
18467                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18468
18469                 # XXX - need to check whether -lcrypo is needed!
18470                 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
18471                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18472 $as_echo_n "checking for main in -lroken... " >&6; }
18473 if ${ac_cv_lib_roken_main+:} false; then :
18474   $as_echo_n "(cached) " >&6
18475 else
18476   ac_check_lib_save_LIBS=$LIBS
18477 LIBS="-lroken  $LIBS"
18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h.  */
18480
18481
18482 int
18483 main ()
18484 {
18485 return main ();
18486   ;
18487   return 0;
18488 }
18489 _ACEOF
18490 if ac_fn_c_try_link "$LINENO"; then :
18491   ac_cv_lib_roken_main=yes
18492 else
18493   ac_cv_lib_roken_main=no
18494 fi
18495 rm -f core conftest.err conftest.$ac_objext \
18496     conftest$ac_exeext conftest.$ac_ext
18497 LIBS=$ac_check_lib_save_LIBS
18498 fi
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18500 $as_echo "$ac_cv_lib_roken_main" >&6; }
18501 if test "x$ac_cv_lib_roken_main" = xyes; then :
18502   SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
18503 fi
18504
18505
18506 else
18507
18508                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509 $as_echo "no" >&6; }
18510                 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
18511                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
18512 $as_echo_n "checking for main in -lkrb5support... " >&6; }
18513 if ${ac_cv_lib_krb5support_main+:} false; then :
18514   $as_echo_n "(cached) " >&6
18515 else
18516   ac_check_lib_save_LIBS=$LIBS
18517 LIBS="-lkrb5support  $LIBS"
18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h.  */
18520
18521
18522 int
18523 main ()
18524 {
18525 return main ();
18526   ;
18527   return 0;
18528 }
18529 _ACEOF
18530 if ac_fn_c_try_link "$LINENO"; then :
18531   ac_cv_lib_krb5support_main=yes
18532 else
18533   ac_cv_lib_krb5support_main=no
18534 fi
18535 rm -f core conftest.err conftest.$ac_objext \
18536     conftest$ac_exeext conftest.$ac_ext
18537 LIBS=$ac_check_lib_save_LIBS
18538 fi
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
18540 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
18541 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
18542   SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
18543 fi
18544
18545
18546 fi
18547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18548         AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18549     fi
18550     _LIBS="$LIBS"
18551     LIBS="${LIBS} ${SUDOERS_LIBS}"
18552     for ac_func in krb5_verify_user krb5_init_secure_context
18553 do :
18554   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18555 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18556 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18557   cat >>confdefs.h <<_ACEOF
18558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18559 _ACEOF
18560
18561 fi
18562 done
18563
18564     for ac_func in krb5_get_init_creds_opt_alloc
18565 do :
18566   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
18567 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
18568   cat >>confdefs.h <<_ACEOF
18569 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
18570 _ACEOF
18571
18572         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
18573 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
18574 if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
18575   $as_echo_n "(cached) " >&6
18576 else
18577
18578                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18579 /* end confdefs.h.  */
18580 #include <krb5.h>
18581 int
18582 main ()
18583 {
18584 krb5_get_init_creds_opt_free(NULL, NULL);
18585
18586   ;
18587   return 0;
18588 }
18589 _ACEOF
18590 if ac_fn_c_try_compile "$LINENO"; then :
18591   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
18592 else
18593   sudo_cv_krb5_get_init_creds_opt_free_two_args=no
18594
18595 fi
18596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18597
18598
18599 fi
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
18601 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
18602
18603 fi
18604 done
18605
18606     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
18607         $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
18608
18609     fi
18610     LIBS="$_LIBS"
18611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
18612 $as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
18613     # Check whether --enable-kerb5-instance was given.
18614 if test "${enable_kerb5_instance+set}" = set; then :
18615   enableval=$enable_kerb5_instance;  case "$enableval" in
18616             yes)        as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
18617                         ;;
18618             no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18619 $as_echo "no" >&6; }
18620                         ;;
18621             *)          cat >>confdefs.h <<EOF
18622 #define SUDO_KRB5_INSTANCE "$enableval"
18623 EOF
18624
18625                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
18626 $as_echo "$enableval" >&6; }
18627                         ;;
18628         esac
18629 else
18630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631 $as_echo "no" >&6; }
18632 fi
18633
18634 fi
18635
18636 if test ${with_AFS-'no'} = "yes"; then
18637
18638     # looks like the "standard" place for AFS libs is /usr/afsws/lib
18639     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
18640     for i in $AFSLIBDIRS; do
18641         if test -d ${i}; then
18642
18643     if test X"$with_rpath" = X"yes"; then
18644         case "$host" in
18645             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
18646                         ;;
18647             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
18648                         ;;
18649         esac
18650     else
18651         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
18652     fi
18653     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18654         blibpath_add="${blibpath_add}:$i"
18655     fi
18656
18657             FOUND_AFSLIBDIR=true
18658         fi
18659     done
18660     if test -z "$FOUND_AFSLIBDIR"; then
18661         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&5
18662 $as_echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
18663     fi
18664
18665     # Order is important here.  Note that we build AFS_LIBS from right to left
18666     # since AFS_LIBS may be initialized with BSD compat libs that must go last
18667     AFS_LIBS="-laudit ${AFS_LIBS}"
18668     for i in $AFSLIBDIRS; do
18669         if test -f ${i}/util.a; then
18670             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
18671             FOUND_UTIL_A=true
18672             break;
18673         fi
18674     done
18675     if test -z "$FOUND_UTIL_A"; then
18676         AFS_LIBS="-lutil ${AFS_LIBS}"
18677     fi
18678     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
18679
18680     # AFS includes may live in /usr/include on some machines...
18681     for i in /usr/afsws/include; do
18682         if test -d ${i}; then
18683             CPPFLAGS="${CPPFLAGS} -I${i}"
18684             FOUND_AFSINCDIR=true
18685         fi
18686     done
18687
18688     if test -z "$FOUND_AFSLIBDIR"; then
18689         { $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
18690 $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;}
18691     fi
18692
18693     AUTH_OBJS="$AUTH_OBJS afs.lo"
18694 fi
18695
18696 if test ${with_DCE-'no'} = "yes"; then
18697     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
18698     SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
18699     AUTH_OBJS="$AUTH_OBJS dce.lo"
18700 fi
18701
18702 if test "${with_skey-'no'}" = "yes"; then
18703     O_LDFLAGS="$LDFLAGS"
18704     if test "$with_skey" != "yes"; then
18705         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
18706
18707     if test X"$with_rpath" = X"yes"; then
18708         case "$host" in
18709             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18710                         ;;
18711             *)          LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18712                         ;;
18713         esac
18714     else
18715         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
18716     fi
18717     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18718         blibpath_add="${blibpath_add}:${with_skey}/lib"
18719     fi
18720
18721
18722     if test X"$with_rpath" = X"yes"; then
18723         case "$host" in
18724             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
18725                         ;;
18726             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
18727                         ;;
18728         esac
18729     else
18730         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
18731     fi
18732     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18733         blibpath_add="${blibpath_add}:${with_skey}/lib"
18734     fi
18735
18736         ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18737 "
18738 if test "x$ac_cv_header_skey_h" = xyes; then :
18739   found=yes
18740 else
18741   found=no
18742 fi
18743
18744
18745     else
18746         found=no
18747         O_CPPFLAGS="$CPPFLAGS"
18748         for dir in "" "/usr/local" "/usr/contrib"; do
18749             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
18750             ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
18751 "
18752 if test "x$ac_cv_header_skey_h" = xyes; then :
18753   found=yes; break
18754 fi
18755
18756
18757         done
18758         if test "$found" = "no" -o -z "$dir"; then
18759             CPPFLAGS="$O_CPPFLAGS"
18760         else
18761
18762     if test X"$with_rpath" = X"yes"; then
18763         case "$host" in
18764             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18765                         ;;
18766             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18767                         ;;
18768         esac
18769     else
18770         LDFLAGS="${LDFLAGS} -L${dir}/lib"
18771     fi
18772     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18773         blibpath_add="${blibpath_add}:${dir}/lib"
18774     fi
18775
18776
18777     if test X"$with_rpath" = X"yes"; then
18778         case "$host" in
18779             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18780                         ;;
18781             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18782                         ;;
18783         esac
18784     else
18785         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
18786     fi
18787     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18788         blibpath_add="${blibpath_add}:${dir}/lib"
18789     fi
18790
18791         fi
18792         if test "$found" = "no"; then
18793             { $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
18794 $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;}
18795         fi
18796     fi
18797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
18798 $as_echo_n "checking for main in -lskey... " >&6; }
18799 if ${ac_cv_lib_skey_main+:} false; then :
18800   $as_echo_n "(cached) " >&6
18801 else
18802   ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lskey  $LIBS"
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h.  */
18806
18807
18808 int
18809 main ()
18810 {
18811 return main ();
18812   ;
18813   return 0;
18814 }
18815 _ACEOF
18816 if ac_fn_c_try_link "$LINENO"; then :
18817   ac_cv_lib_skey_main=yes
18818 else
18819   ac_cv_lib_skey_main=no
18820 fi
18821 rm -f core conftest.err conftest.$ac_objext \
18822     conftest$ac_exeext conftest.$ac_ext
18823 LIBS=$ac_check_lib_save_LIBS
18824 fi
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
18826 $as_echo "$ac_cv_lib_skey_main" >&6; }
18827 if test "x$ac_cv_lib_skey_main" = xyes; then :
18828   found=yes
18829 else
18830   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&5
18831 $as_echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&2;}
18832 fi
18833
18834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
18835 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
18836 if ${ac_cv_lib_skey_skeyaccess+:} false; then :
18837   $as_echo_n "(cached) " >&6
18838 else
18839   ac_check_lib_save_LIBS=$LIBS
18840 LIBS="-lskey  $LIBS"
18841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842 /* end confdefs.h.  */
18843
18844 /* Override any GCC internal prototype to avoid an error.
18845    Use char because int might match the return type of a GCC
18846    builtin and then its argument prototype would still apply.  */
18847 #ifdef __cplusplus
18848 extern "C"
18849 #endif
18850 char skeyaccess ();
18851 int
18852 main ()
18853 {
18854 return skeyaccess ();
18855   ;
18856   return 0;
18857 }
18858 _ACEOF
18859 if ac_fn_c_try_link "$LINENO"; then :
18860   ac_cv_lib_skey_skeyaccess=yes
18861 else
18862   ac_cv_lib_skey_skeyaccess=no
18863 fi
18864 rm -f core conftest.err conftest.$ac_objext \
18865     conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18867 fi
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
18869 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
18870 if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
18871   $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
18872
18873 fi
18874
18875
18876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
18877 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
18878     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h.  */
18880 #include <stdio.h>
18881             #include <skey.h>
18882 int
18883 main ()
18884 {
18885 skeychallenge(NULL, NULL, NULL, 0);
18886
18887   ;
18888   return 0;
18889 }
18890 _ACEOF
18891 if ac_fn_c_try_compile "$LINENO"; then :
18892
18893             $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
18894
18895             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18896 $as_echo "yes" >&6; }
18897
18898 else
18899
18900             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18901 $as_echo "no" >&6; }
18902
18903
18904 fi
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18906
18907     LDFLAGS="$O_LDFLAGS"
18908     SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
18909     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
18910 fi
18911
18912 if test "${with_opie-'no'}" = "yes"; then
18913     O_LDFLAGS="$LDFLAGS"
18914     if test "$with_opie" != "yes"; then
18915         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
18916
18917     if test X"$with_rpath" = X"yes"; then
18918         case "$host" in
18919             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18920                         ;;
18921             *)          LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
18922                         ;;
18923         esac
18924     else
18925         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
18926     fi
18927     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18928         blibpath_add="${blibpath_add}:${with_opie}/lib"
18929     fi
18930
18931
18932     if test X"$with_rpath" = X"yes"; then
18933         case "$host" in
18934             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
18935                         ;;
18936             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
18937                         ;;
18938         esac
18939     else
18940         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
18941     fi
18942     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18943         blibpath_add="${blibpath_add}:${with_opie}/lib"
18944     fi
18945
18946         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h.  */
18948 #include <opie.h>
18949 int
18950 main ()
18951 {
18952
18953   ;
18954   return 0;
18955 }
18956 _ACEOF
18957 if ac_fn_c_try_cpp "$LINENO"; then :
18958   found=yes
18959 else
18960   found=no
18961 fi
18962 rm -f conftest.err conftest.i conftest.$ac_ext
18963     else
18964         found=no
18965         O_CPPFLAGS="$CPPFLAGS"
18966         for dir in "" "/usr/local" "/usr/contrib"; do
18967             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
18968             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969 /* end confdefs.h.  */
18970 #include <opie.h>
18971 int
18972 main ()
18973 {
18974
18975   ;
18976   return 0;
18977 }
18978 _ACEOF
18979 if ac_fn_c_try_cpp "$LINENO"; then :
18980   found=yes; break
18981 fi
18982 rm -f conftest.err conftest.i conftest.$ac_ext
18983         done
18984         if test "$found" = "no" -o -z "$dir"; then
18985             CPPFLAGS="$O_CPPFLAGS"
18986         else
18987
18988     if test X"$with_rpath" = X"yes"; then
18989         case "$host" in
18990             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
18991                         ;;
18992             *)          LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
18993                         ;;
18994         esac
18995     else
18996         LDFLAGS="${LDFLAGS} -L${dir}/lib"
18997     fi
18998     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18999         blibpath_add="${blibpath_add}:${dir}/lib"
19000     fi
19001
19002
19003     if test X"$with_rpath" = X"yes"; then
19004         case "$host" in
19005             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19006                         ;;
19007             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19008                         ;;
19009         esac
19010     else
19011         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19012     fi
19013     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19014         blibpath_add="${blibpath_add}:${dir}/lib"
19015     fi
19016
19017         fi
19018         if test "$found" = "no"; then
19019             { $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
19020 $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;}
19021         fi
19022     fi
19023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19024 $as_echo_n "checking for main in -lopie... " >&6; }
19025 if ${ac_cv_lib_opie_main+:} false; then :
19026   $as_echo_n "(cached) " >&6
19027 else
19028   ac_check_lib_save_LIBS=$LIBS
19029 LIBS="-lopie  $LIBS"
19030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19031 /* end confdefs.h.  */
19032
19033
19034 int
19035 main ()
19036 {
19037 return main ();
19038   ;
19039   return 0;
19040 }
19041 _ACEOF
19042 if ac_fn_c_try_link "$LINENO"; then :
19043   ac_cv_lib_opie_main=yes
19044 else
19045   ac_cv_lib_opie_main=no
19046 fi
19047 rm -f core conftest.err conftest.$ac_objext \
19048     conftest$ac_exeext conftest.$ac_ext
19049 LIBS=$ac_check_lib_save_LIBS
19050 fi
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19052 $as_echo "$ac_cv_lib_opie_main" >&6; }
19053 if test "x$ac_cv_lib_opie_main" = xyes; then :
19054   found=yes
19055 else
19056   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&5
19057 $as_echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&2;}
19058 fi
19059
19060     LDFLAGS="$O_LDFLAGS"
19061     SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19062     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19063 fi
19064
19065 if test ${with_passwd-'no'} != "no"; then
19066                 if test -z "$LIB_CRYPT"; then
19067         _LIBS="$LIBS"
19068         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19069 $as_echo_n "checking for library containing crypt... " >&6; }
19070 if ${ac_cv_search_crypt+:} false; then :
19071   $as_echo_n "(cached) " >&6
19072 else
19073   ac_func_search_save_LIBS=$LIBS
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h.  */
19076
19077 /* Override any GCC internal prototype to avoid an error.
19078    Use char because int might match the return type of a GCC
19079    builtin and then its argument prototype would still apply.  */
19080 #ifdef __cplusplus
19081 extern "C"
19082 #endif
19083 char crypt ();
19084 int
19085 main ()
19086 {
19087 return crypt ();
19088   ;
19089   return 0;
19090 }
19091 _ACEOF
19092 for ac_lib in '' crypt crypt_d ufc; do
19093   if test -z "$ac_lib"; then
19094     ac_res="none required"
19095   else
19096     ac_res=-l$ac_lib
19097     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19098   fi
19099   if ac_fn_c_try_link "$LINENO"; then :
19100   ac_cv_search_crypt=$ac_res
19101 fi
19102 rm -f core conftest.err conftest.$ac_objext \
19103     conftest$ac_exeext
19104   if ${ac_cv_search_crypt+:} false; then :
19105   break
19106 fi
19107 done
19108 if ${ac_cv_search_crypt+:} false; then :
19109
19110 else
19111   ac_cv_search_crypt=no
19112 fi
19113 rm conftest.$ac_ext
19114 LIBS=$ac_func_search_save_LIBS
19115 fi
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19117 $as_echo "$ac_cv_search_crypt" >&6; }
19118 ac_res=$ac_cv_search_crypt
19119 if test "$ac_res" != no; then :
19120   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19121   test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19122 fi
19123
19124         LIBS="$_LIBS"
19125     fi
19126
19127     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19128         _LIBS="$LIBS"
19129         LIBS="$LIBS $shadow_libs"
19130         found=no
19131         for ac_func in $shadow_funcs
19132 do :
19133   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19135 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19136   cat >>confdefs.h <<_ACEOF
19137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19138 _ACEOF
19139  found=yes
19140 fi
19141 done
19142
19143         if test "$found" = "yes"; then
19144             SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19145         elif test -n "$shadow_libs_optional"; then
19146             LIBS="$LIBS $shadow_libs_optional"
19147             for ac_func in $shadow_funcs
19148 do :
19149   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19150 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19151 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19152   cat >>confdefs.h <<_ACEOF
19153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19154 _ACEOF
19155  found=yes
19156 fi
19157 done
19158
19159             if test "$found" = "yes"; then
19160                 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19161             fi
19162         fi
19163         if test "$found" = "yes"; then
19164             case "$shadow_funcs" in
19165                 *getprpwnam*) SECUREWARE=1;;
19166             esac
19167             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19168         else
19169             LIBS="$_LIBS"
19170         fi
19171         CHECKSHADOW=false
19172     fi
19173     if test "$CHECKSHADOW" = "true"; then
19174         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19175 $as_echo_n "checking for library containing getspnam... " >&6; }
19176 if ${ac_cv_search_getspnam+:} false; then :
19177   $as_echo_n "(cached) " >&6
19178 else
19179   ac_func_search_save_LIBS=$LIBS
19180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h.  */
19182
19183 /* Override any GCC internal prototype to avoid an error.
19184    Use char because int might match the return type of a GCC
19185    builtin and then its argument prototype would still apply.  */
19186 #ifdef __cplusplus
19187 extern "C"
19188 #endif
19189 char getspnam ();
19190 int
19191 main ()
19192 {
19193 return getspnam ();
19194   ;
19195   return 0;
19196 }
19197 _ACEOF
19198 for ac_lib in '' gen; do
19199   if test -z "$ac_lib"; then
19200     ac_res="none required"
19201   else
19202     ac_res=-l$ac_lib
19203     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19204   fi
19205   if ac_fn_c_try_link "$LINENO"; then :
19206   ac_cv_search_getspnam=$ac_res
19207 fi
19208 rm -f core conftest.err conftest.$ac_objext \
19209     conftest$ac_exeext
19210   if ${ac_cv_search_getspnam+:} false; then :
19211   break
19212 fi
19213 done
19214 if ${ac_cv_search_getspnam+:} false; then :
19215
19216 else
19217   ac_cv_search_getspnam=no
19218 fi
19219 rm conftest.$ac_ext
19220 LIBS=$ac_func_search_save_LIBS
19221 fi
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19223 $as_echo "$ac_cv_search_getspnam" >&6; }
19224 ac_res=$ac_cv_search_getspnam
19225 if test "$ac_res" != no; then :
19226   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19227   $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19228  CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19229 fi
19230
19231     fi
19232     if test "$CHECKSHADOW" = "true"; then
19233         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19234 $as_echo_n "checking for library containing getprpwnam... " >&6; }
19235 if ${ac_cv_search_getprpwnam+:} false; then :
19236   $as_echo_n "(cached) " >&6
19237 else
19238   ac_func_search_save_LIBS=$LIBS
19239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19240 /* end confdefs.h.  */
19241
19242 /* Override any GCC internal prototype to avoid an error.
19243    Use char because int might match the return type of a GCC
19244    builtin and then its argument prototype would still apply.  */
19245 #ifdef __cplusplus
19246 extern "C"
19247 #endif
19248 char getprpwnam ();
19249 int
19250 main ()
19251 {
19252 return getprpwnam ();
19253   ;
19254   return 0;
19255 }
19256 _ACEOF
19257 for ac_lib in '' sec security prot; do
19258   if test -z "$ac_lib"; then
19259     ac_res="none required"
19260   else
19261     ac_res=-l$ac_lib
19262     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19263   fi
19264   if ac_fn_c_try_link "$LINENO"; then :
19265   ac_cv_search_getprpwnam=$ac_res
19266 fi
19267 rm -f core conftest.err conftest.$ac_objext \
19268     conftest$ac_exeext
19269   if ${ac_cv_search_getprpwnam+:} false; then :
19270   break
19271 fi
19272 done
19273 if ${ac_cv_search_getprpwnam+:} false; then :
19274
19275 else
19276   ac_cv_search_getprpwnam=no
19277 fi
19278 rm conftest.$ac_ext
19279 LIBS=$ac_func_search_save_LIBS
19280 fi
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19282 $as_echo "$ac_cv_search_getprpwnam" >&6; }
19283 ac_res=$ac_cv_search_getprpwnam
19284 if test "$ac_res" != no; then :
19285   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19286   $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19287  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19288 fi
19289
19290     fi
19291     if test -n "$SECUREWARE"; then
19292         for ac_func in bigcrypt set_auth_parameters initprivs
19293 do :
19294   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19295 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19296 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19297   cat >>confdefs.h <<_ACEOF
19298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19299 _ACEOF
19300
19301 fi
19302 done
19303
19304         AUTH_OBJS="$AUTH_OBJS secureware.lo"
19305     fi
19306 fi
19307
19308 if test ${with_ldap-'no'} != "no"; then
19309     _LDFLAGS="$LDFLAGS"
19310     if test "$with_ldap" != "yes"; then
19311
19312     if test X"$with_rpath" = X"yes"; then
19313         case "$host" in
19314             *-*-hpux*)  SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19315                         ;;
19316             *)          SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19317                         ;;
19318         esac
19319     else
19320         SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19321     fi
19322     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19323         blibpath_add="${blibpath_add}:${with_ldap}/lib"
19324     fi
19325
19326
19327     if test X"$with_rpath" = X"yes"; then
19328         case "$host" in
19329             *-*-hpux*)  LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19330                         ;;
19331             *)          LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19332                         ;;
19333         esac
19334     else
19335         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
19336     fi
19337     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19338         blibpath_add="${blibpath_add}:${with_ldap}/lib"
19339     fi
19340
19341         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19342         with_ldap=yes
19343     fi
19344     SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
19345     LDAP=""
19346
19347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
19348 $as_echo_n "checking for LDAP libraries... " >&6; }
19349     LDAP_LIBS=""
19350     _LIBS="$LIBS"
19351     found=no
19352     for l in -lldap -llber '-lssl -lcrypto'; do
19353         LIBS="${LIBS} $l"
19354         LDAP_LIBS="${LDAP_LIBS} $l"
19355         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h.  */
19357 #include <sys/types.h>
19358         #include <lber.h>
19359         #include <ldap.h>
19360 int
19361 main ()
19362 {
19363 (void)ldap_init(0, 0)
19364   ;
19365   return 0;
19366 }
19367 _ACEOF
19368 if ac_fn_c_try_link "$LINENO"; then :
19369   found=yes; break
19370 fi
19371 rm -f core conftest.err conftest.$ac_objext \
19372     conftest$ac_exeext conftest.$ac_ext
19373     done
19374     if test "$found" = "no"; then
19375         LDAP_LIBS=""
19376         LIBS="$_LIBS"
19377         for l in -libmldap -lidsldif; do
19378             LIBS="${LIBS} $l"
19379             LDAP_LIBS="${LDAP_LIBS} $l"
19380             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h.  */
19382 #include <sys/types.h>
19383             #include <lber.h>
19384             #include <ldap.h>
19385 int
19386 main ()
19387 {
19388 (void)ldap_init(0, 0)
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 if ac_fn_c_try_link "$LINENO"; then :
19394   found=yes; break
19395 fi
19396 rm -f core conftest.err conftest.$ac_objext \
19397     conftest$ac_exeext conftest.$ac_ext
19398         done
19399     fi
19400         if test "$found" = "no"; then
19401         LIBS="${_LIBS} -lldap"
19402         LDAP_LIBS="-lldap"
19403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
19404 $as_echo "not found, using -lldap" >&6; }
19405     else
19406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
19407 $as_echo "$LDAP_LIBS" >&6; }
19408     fi
19409         OLIBS="$LIBS"
19410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
19411 $as_echo_n "checking for library containing ber_set_option... " >&6; }
19412 if ${ac_cv_search_ber_set_option+:} false; then :
19413   $as_echo_n "(cached) " >&6
19414 else
19415   ac_func_search_save_LIBS=$LIBS
19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h.  */
19418
19419 /* Override any GCC internal prototype to avoid an error.
19420    Use char because int might match the return type of a GCC
19421    builtin and then its argument prototype would still apply.  */
19422 #ifdef __cplusplus
19423 extern "C"
19424 #endif
19425 char ber_set_option ();
19426 int
19427 main ()
19428 {
19429 return ber_set_option ();
19430   ;
19431   return 0;
19432 }
19433 _ACEOF
19434 for ac_lib in '' lber; do
19435   if test -z "$ac_lib"; then
19436     ac_res="none required"
19437   else
19438     ac_res=-l$ac_lib
19439     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19440   fi
19441   if ac_fn_c_try_link "$LINENO"; then :
19442   ac_cv_search_ber_set_option=$ac_res
19443 fi
19444 rm -f core conftest.err conftest.$ac_objext \
19445     conftest$ac_exeext
19446   if ${ac_cv_search_ber_set_option+:} false; then :
19447   break
19448 fi
19449 done
19450 if ${ac_cv_search_ber_set_option+:} false; then :
19451
19452 else
19453   ac_cv_search_ber_set_option=no
19454 fi
19455 rm conftest.$ac_ext
19456 LIBS=$ac_func_search_save_LIBS
19457 fi
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
19459 $as_echo "$ac_cv_search_ber_set_option" >&6; }
19460 ac_res=$ac_cv_search_ber_set_option
19461 if test "$ac_res" != no; then :
19462   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19463   found=yes
19464 else
19465   found=no
19466 fi
19467
19468     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
19469         LDAP_LIBS="$LDAP_LIBS -llber"
19470     fi
19471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
19472 $as_echo_n "checking whether lber.h is needed... " >&6; }
19473     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h.  */
19475 #include <sys/types.h>
19476     #include <ldap.h>
19477 int
19478 main ()
19479 {
19480 (void)ldap_init(0, 0)
19481   ;
19482   return 0;
19483 }
19484 _ACEOF
19485 if ac_fn_c_try_link "$LINENO"; then :
19486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19487 $as_echo "no" >&6; }
19488 else
19489
19490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19491 $as_echo "yes" >&6; }
19492     $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
19493
19494 fi
19495 rm -f core conftest.err conftest.$ac_objext \
19496     conftest$ac_exeext conftest.$ac_ext
19497
19498     for ac_header in sasl/sasl.h sasl.h
19499 do :
19500   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19501 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19502 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19503   cat >>confdefs.h <<_ACEOF
19504 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19505 _ACEOF
19506  for ac_func in ldap_sasl_interactive_bind_s
19507 do :
19508   ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
19509 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
19510   cat >>confdefs.h <<_ACEOF
19511 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
19512 _ACEOF
19513
19514 fi
19515 done
19516
19517 else
19518   break
19519 fi
19520
19521 done
19522
19523     for ac_header in ldap_ssl.h mps/ldap_ssl.h
19524 do :
19525   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19526 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
19527 "
19528 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19529   cat >>confdefs.h <<_ACEOF
19530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19531 _ACEOF
19532  break
19533 fi
19534
19535 done
19536
19537     for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
19538 do :
19539   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19541 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19542   cat >>confdefs.h <<_ACEOF
19543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19544 _ACEOF
19545
19546 fi
19547 done
19548
19549     for ac_func in ldap_search_ext_s ldap_search_st
19550 do :
19551   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19552 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19553 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19554   cat >>confdefs.h <<_ACEOF
19555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19556 _ACEOF
19557  break
19558 fi
19559 done
19560
19561
19562     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
19563         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
19564 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
19565 if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
19566   $as_echo_n "(cached) " >&6
19567 else
19568   ac_check_lib_save_LIBS=$LIBS
19569 LIBS="-lgssapi  $LIBS"
19570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571 /* end confdefs.h.  */
19572
19573 /* Override any GCC internal prototype to avoid an error.
19574    Use char because int might match the return type of a GCC
19575    builtin and then its argument prototype would still apply.  */
19576 #ifdef __cplusplus
19577 extern "C"
19578 #endif
19579 char gss_krb5_ccache_name ();
19580 int
19581 main ()
19582 {
19583 return gss_krb5_ccache_name ();
19584   ;
19585   return 0;
19586 }
19587 _ACEOF
19588 if ac_fn_c_try_link "$LINENO"; then :
19589   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
19590 else
19591   ac_cv_lib_gssapi_gss_krb5_ccache_name=no
19592 fi
19593 rm -f core conftest.err conftest.$ac_objext \
19594     conftest$ac_exeext conftest.$ac_ext
19595 LIBS=$ac_check_lib_save_LIBS
19596 fi
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
19598 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
19599 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
19600   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19601
19602             LDAP_LIBS="${LDAP_LIBS} -lgssapi"
19603 else
19604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
19605 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
19606 if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
19607   $as_echo_n "(cached) " >&6
19608 else
19609   ac_check_lib_save_LIBS=$LIBS
19610 LIBS="-lgssapi_krb5  $LIBS"
19611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612 /* end confdefs.h.  */
19613
19614 /* Override any GCC internal prototype to avoid an error.
19615    Use char because int might match the return type of a GCC
19616    builtin and then its argument prototype would still apply.  */
19617 #ifdef __cplusplus
19618 extern "C"
19619 #endif
19620 char gss_krb5_ccache_name ();
19621 int
19622 main ()
19623 {
19624 return gss_krb5_ccache_name ();
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 if ac_fn_c_try_link "$LINENO"; then :
19630   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
19631 else
19632   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
19633 fi
19634 rm -f core conftest.err conftest.$ac_objext \
19635     conftest$ac_exeext conftest.$ac_ext
19636 LIBS=$ac_check_lib_save_LIBS
19637 fi
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
19639 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
19640 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
19641   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19642
19643                 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
19644 fi
19645
19646
19647 fi
19648
19649
19650         # gssapi headers may be separate or part of Kerberos V
19651         found=no
19652         O_CPPFLAGS="$CPPFLAGS"
19653         for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
19654             test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
19655             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656 /* end confdefs.h.  */
19657 #include <gssapi/gssapi.h>
19658 int
19659 main ()
19660 {
19661
19662   ;
19663   return 0;
19664 }
19665 _ACEOF
19666 if ac_fn_c_try_cpp "$LINENO"; then :
19667   found="gssapi/gssapi.h"; break
19668 else
19669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h.  */
19671 #include <gssapi.h>
19672 int
19673 main ()
19674 {
19675
19676   ;
19677   return 0;
19678 }
19679 _ACEOF
19680 if ac_fn_c_try_cpp "$LINENO"; then :
19681   found="gssapi.h"; break
19682 fi
19683 rm -f conftest.err conftest.i conftest.$ac_ext
19684 fi
19685 rm -f conftest.err conftest.i conftest.$ac_ext
19686         done
19687         if test X"$found" != X"no"; then
19688             for ac_header in $found
19689 do :
19690   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19691 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19692 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19693   cat >>confdefs.h <<_ACEOF
19694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19695 _ACEOF
19696
19697 fi
19698
19699 done
19700
19701             if test X"$found" = X"gssapi/gssapi.h"; then
19702                 for ac_header in gssapi/gssapi_krb5.h
19703 do :
19704   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
19705 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
19706   cat >>confdefs.h <<_ACEOF
19707 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
19708 _ACEOF
19709
19710 fi
19711
19712 done
19713
19714             fi
19715         else
19716             CPPFLAGS="$O_CPPFLAGS"
19717             { $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
19718 $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;}
19719         fi
19720     fi
19721
19722     SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
19723     LIBS="$_LIBS"
19724     LDFLAGS="$_LDFLAGS"
19725 fi
19726
19727 #
19728 # How to do dynamic object loading.
19729 # We support dlopen() and sh_load(), else fall back to static loading.
19730 #
19731 case "$lt_cv_dlopen" in
19732     dlopen)
19733         $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
19734
19735         SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19736         LT_STATIC="--tag=disable-static"
19737         ;;
19738     shl_load)
19739         $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19740
19741         SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
19742         LT_STATIC="--tag=disable-static"
19743         case " $LIBOBJS " in
19744   *" dlopen.$ac_objext "* ) ;;
19745   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19746  ;;
19747 esac
19748
19749         ;;
19750     *)
19751         if test X"${ac_cv_func_dlopen}" = X"yes"; then
19752             as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
19753         fi
19754         # Preload sudoers module symbols
19755         SUDO_OBJS="${SUDO_OBJS} preload.o"
19756         SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
19757         LT_STATIC=""
19758         case " $LIBOBJS " in
19759   *" dlopen.$ac_objext "* ) ;;
19760   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
19761  ;;
19762 esac
19763
19764         ;;
19765 esac
19766
19767 #
19768 # Add library needed for dynamic loading, if any.
19769 #
19770 LIBDL="$lt_cv_dlopen_libs"
19771 if test X"$LIBDL" != X""; then
19772     SUDO_LIBS="${SUDO_LIBS} $LIBDL"
19773     SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
19774 fi
19775
19776 # On HP-UX, you cannot dlopen() a shared object that uses pthreads
19777 # unless the main program is linked against -lpthread.  Since we
19778 # have no knowledge what libraries a plugin may depend on, we always
19779 # link against -lpthread on HP-UX if it is available.
19780 # This check should go after all other libraries tests.
19781 case "$host" in
19782     *-*-hpux*)
19783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
19784 $as_echo_n "checking for main in -lpthread... " >&6; }
19785 if ${ac_cv_lib_pthread_main+:} false; then :
19786   $as_echo_n "(cached) " >&6
19787 else
19788   ac_check_lib_save_LIBS=$LIBS
19789 LIBS="-lpthread  $LIBS"
19790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19791 /* end confdefs.h.  */
19792
19793
19794 int
19795 main ()
19796 {
19797 return main ();
19798   ;
19799   return 0;
19800 }
19801 _ACEOF
19802 if ac_fn_c_try_link "$LINENO"; then :
19803   ac_cv_lib_pthread_main=yes
19804 else
19805   ac_cv_lib_pthread_main=no
19806 fi
19807 rm -f core conftest.err conftest.$ac_objext \
19808     conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19810 fi
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
19812 $as_echo "$ac_cv_lib_pthread_main" >&6; }
19813 if test "x$ac_cv_lib_pthread_main" = xyes; then :
19814   SUDO_LIBS="${SUDO_LIBS} -lpthread"
19815 fi
19816
19817         ;;
19818 esac
19819
19820 if test -n "$blibpath"; then
19821     if test -n "$blibpath_add"; then
19822         SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
19823     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
19824         SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
19825     fi
19826 fi
19827
19828 if test "$utmp_style" = "LEGACY"; then
19829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
19830 $as_echo_n "checking for utmp file path... " >&6; }
19831 found=no
19832 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
19833     if test -r "$p"; then
19834         found=yes
19835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
19836 $as_echo "$p" >&6; }
19837         cat >>confdefs.h <<EOF
19838 #define _PATH_UTMP "$p"
19839 EOF
19840
19841         break
19842     fi
19843 done
19844 if test X"$found" != X"yes"; then
19845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19846 $as_echo "not found" >&6; }
19847 fi
19848
19849 fi
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
19851 $as_echo_n "checking for log file location... " >&6; }
19852 if test -n "$with_logpath"; then
19853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
19854 $as_echo "$with_logpath" >&6; }
19855     cat >>confdefs.h <<EOF
19856 #define _PATH_SUDO_LOGFILE "$with_logpath"
19857 EOF
19858
19859 elif test -d "/var/log"; then
19860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
19861 $as_echo "/var/log/sudo.log" >&6; }
19862     cat >>confdefs.h <<\EOF
19863 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
19864 EOF
19865
19866 elif test -d "/var/adm"; then
19867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
19868 $as_echo "/var/adm/sudo.log" >&6; }
19869     cat >>confdefs.h <<\EOF
19870 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
19871 EOF
19872
19873 elif test -d "/usr/adm"; then
19874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
19875 $as_echo "/usr/adm/sudo.log" >&6; }
19876     cat >>confdefs.h <<\EOF
19877 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
19878 EOF
19879
19880 else
19881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
19882 $as_echo "unknown" >&6; }
19883 fi
19884
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
19886 $as_echo_n "checking for timestamp file location... " >&6; }
19887 timedir="$with_timedir"
19888 if test -z "$timedir"; then
19889     for d in /var/db /var/lib /var/adm /usr/adm; do
19890         if test -d "$d"; then
19891             timedir="$d/sudo"
19892             break
19893         fi
19894     done
19895 fi
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
19897 $as_echo "$timedir" >&6; }
19898 cat >>confdefs.h <<EOF
19899 #define _PATH_SUDO_TIMEDIR "$timedir"
19900 EOF
19901
19902
19903
19904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
19905 $as_echo_n "checking for I/O log dir location... " >&6; }
19906     if test "${with_iologdir-yes}" != "yes"; then
19907         iolog_dir="$with_iologdir"
19908     elif test -d "/var/log"; then
19909         iolog_dir="/var/log/sudo-io"
19910     elif test -d "/var/adm"; then
19911         iolog_dir="/var/adm/sudo-io"
19912     else
19913         iolog_dir="/usr/adm/sudo-io"
19914     fi
19915     if test "${with_iologdir}" != "no"; then
19916         cat >>confdefs.h <<EOF
19917 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
19918 EOF
19919
19920     fi
19921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
19922 $as_echo "$iolog_dir" >&6; }
19923
19924
19925 case "$with_passwd" in
19926 yes|maybe)
19927     AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
19928     ;;
19929 *)
19930     $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
19931
19932     if test -z "$AUTH_OBJS"; then
19933         as_fn_error $? "no authentication methods defined." "$LINENO" 5
19934     fi
19935     ;;
19936 esac
19937 AUTH_OBJS=${AUTH_OBJS# }
19938 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
19940 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
19941
19942 if test -n "$LIBS"; then
19943     L="$LIBS"
19944     LIBS=
19945     for l in ${L}; do
19946         dupe=0
19947         for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
19948             test $l = $sl && dupe=1
19949         done
19950         test $dupe = 0 && LIBS="${LIBS} $l"
19951     done
19952 fi
19953
19954 if test -n "$GCC"; then
19955     if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
19956         CFLAGS="${CFLAGS} -Wall"
19957     fi
19958     if test X"$enable_werror" = X"yes"; then
19959         CFLAGS="${CFLAGS} -Werror"
19960     fi
19961 fi
19962
19963 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
19964
19965 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
19966     oexec_prefix="$exec_prefix"
19967     if test "$exec_prefix" = '$(prefix)'; then
19968         if test "$prefix" = "NONE"; then
19969             exec_prefix="$ac_default_prefix"
19970         else
19971             exec_prefix="$prefix"
19972         fi
19973     fi
19974     if test X"$with_noexec" != X"no"; then
19975         PROGS="${PROGS} libsudo_noexec.la"
19976         INSTALL_NOEXEC="install-noexec"
19977
19978         noexec_file="$with_noexec"
19979         _noexec_file=
19980         while test X"$noexec_file" != X"$_noexec_file"; do
19981             _noexec_file="$noexec_file"
19982             eval noexec_file="$_noexec_file"
19983         done
19984         cat >>confdefs.h <<EOF
19985 #define _PATH_SUDO_NOEXEC "$noexec_file"
19986 EOF
19987
19988     fi
19989     if test X"$with_selinux" != X"no"; then
19990         sesh_file="$libexecdir/sesh"
19991         _sesh_file=
19992         while test X"$sesh_file" != X"$_sesh_file"; do
19993             _sesh_file="$sesh_file"
19994             eval sesh_file="$_sesh_file"
19995         done
19996         cat >>confdefs.h <<EOF
19997 #define _PATH_SUDO_SESH "$sesh_file"
19998 EOF
19999
20000     fi
20001     PLUGINDIR="$with_plugindir"
20002     _PLUGINDIR=
20003     while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
20004         _PLUGINDIR="$PLUGINDIR"
20005         eval PLUGINDIR="$_PLUGINDIR"
20006     done
20007     cat >>confdefs.h <<EOF
20008 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
20009 EOF
20010
20011     cat >>confdefs.h <<EOF
20012 #define SUDOERS_PLUGIN "sudoers${SOEXT}"
20013 EOF
20014
20015     exec_prefix="$oexec_prefix"
20016 fi
20017
20018 if test X"$prefix" = X"NONE"; then
20019     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
20020 else
20021     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
20022 fi
20023 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
20024 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
20025 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
20026 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
20027 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
20028 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
20029 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
20030
20031 ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/sample_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
20032
20033 cat >confcache <<\_ACEOF
20034 # This file is a shell script that caches the results of configure
20035 # tests run on this system so they can be shared between configure
20036 # scripts and configure runs, see configure's option --config-cache.
20037 # It is not useful on other systems.  If it contains results you don't
20038 # want to keep, you may remove or edit it.
20039 #
20040 # config.status only pays attention to the cache file if you give it
20041 # the --recheck option to rerun configure.
20042 #
20043 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20044 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20045 # following values.
20046
20047 _ACEOF
20048
20049 # The following way of writing the cache mishandles newlines in values,
20050 # but we know of no workaround that is simple, portable, and efficient.
20051 # So, we kill variables containing newlines.
20052 # Ultrix sh set writes to stderr and can't be redirected directly,
20053 # and sets the high bit in the cache file unless we assign to the vars.
20054 (
20055   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20056     eval ac_val=\$$ac_var
20057     case $ac_val in #(
20058     *${as_nl}*)
20059       case $ac_var in #(
20060       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20061 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20062       esac
20063       case $ac_var in #(
20064       _ | IFS | as_nl) ;; #(
20065       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20066       *) { eval $ac_var=; unset $ac_var;} ;;
20067       esac ;;
20068     esac
20069   done
20070
20071   (set) 2>&1 |
20072     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20073     *${as_nl}ac_space=\ *)
20074       # `set' does not quote correctly, so add quotes: double-quote
20075       # substitution turns \\\\ into \\, and sed turns \\ into \.
20076       sed -n \
20077         "s/'/'\\\\''/g;
20078           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20079       ;; #(
20080     *)
20081       # `set' quotes correctly as required by POSIX, so do not add quotes.
20082       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20083       ;;
20084     esac |
20085     sort
20086 ) |
20087   sed '
20088      /^ac_cv_env_/b end
20089      t clear
20090      :clear
20091      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20092      t end
20093      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20094      :end' >>confcache
20095 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20096   if test -w "$cache_file"; then
20097     if test "x$cache_file" != "x/dev/null"; then
20098       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20099 $as_echo "$as_me: updating cache $cache_file" >&6;}
20100       if test ! -f "$cache_file" || test -h "$cache_file"; then
20101         cat confcache >"$cache_file"
20102       else
20103         case $cache_file in #(
20104         */* | ?:*)
20105           mv -f confcache "$cache_file"$$ &&
20106           mv -f "$cache_file"$$ "$cache_file" ;; #(
20107         *)
20108           mv -f confcache "$cache_file" ;;
20109         esac
20110       fi
20111     fi
20112   else
20113     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20114 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20115   fi
20116 fi
20117 rm -f confcache
20118
20119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20120 # Let make expand exec_prefix.
20121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20122
20123 DEFS=-DHAVE_CONFIG_H
20124
20125 ac_libobjs=
20126 ac_ltlibobjs=
20127 U=
20128 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20129   # 1. Remove the extension, and $U if already installed.
20130   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20131   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20132   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20133   #    will be set to the directory where LIBOBJS objects are built.
20134   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20135   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20136 done
20137 LIBOBJS=$ac_libobjs
20138
20139 LTLIBOBJS=$ac_ltlibobjs
20140
20141
20142
20143 : "${CONFIG_STATUS=./config.status}"
20144 ac_write_fail=0
20145 ac_clean_files_save=$ac_clean_files
20146 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20148 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20149 as_write_fail=0
20150 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20151 #! $SHELL
20152 # Generated by $as_me.
20153 # Run this file to recreate the current configuration.
20154 # Compiler output produced by configure, useful for debugging
20155 # configure, is in config.log if it exists.
20156
20157 debug=false
20158 ac_cs_recheck=false
20159 ac_cs_silent=false
20160
20161 SHELL=\${CONFIG_SHELL-$SHELL}
20162 export SHELL
20163 _ASEOF
20164 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20165 ## -------------------- ##
20166 ## M4sh Initialization. ##
20167 ## -------------------- ##
20168
20169 # Be more Bourne compatible
20170 DUALCASE=1; export DUALCASE # for MKS sh
20171 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20172   emulate sh
20173   NULLCMD=:
20174   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20175   # is contrary to our usage.  Disable this feature.
20176   alias -g '${1+"$@"}'='"$@"'
20177   setopt NO_GLOB_SUBST
20178 else
20179   case `(set -o) 2>/dev/null` in #(
20180   *posix*) :
20181     set -o posix ;; #(
20182   *) :
20183      ;;
20184 esac
20185 fi
20186
20187
20188 as_nl='
20189 '
20190 export as_nl
20191 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20192 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20194 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20195 # Prefer a ksh shell builtin over an external printf program on Solaris,
20196 # but without wasting forks for bash or zsh.
20197 if test -z "$BASH_VERSION$ZSH_VERSION" \
20198     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20199   as_echo='print -r --'
20200   as_echo_n='print -rn --'
20201 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20202   as_echo='printf %s\n'
20203   as_echo_n='printf %s'
20204 else
20205   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20206     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20207     as_echo_n='/usr/ucb/echo -n'
20208   else
20209     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20210     as_echo_n_body='eval
20211       arg=$1;
20212       case $arg in #(
20213       *"$as_nl"*)
20214         expr "X$arg" : "X\\(.*\\)$as_nl";
20215         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20216       esac;
20217       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20218     '
20219     export as_echo_n_body
20220     as_echo_n='sh -c $as_echo_n_body as_echo'
20221   fi
20222   export as_echo_body
20223   as_echo='sh -c $as_echo_body as_echo'
20224 fi
20225
20226 # The user is always right.
20227 if test "${PATH_SEPARATOR+set}" != set; then
20228   PATH_SEPARATOR=:
20229   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20230     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20231       PATH_SEPARATOR=';'
20232   }
20233 fi
20234
20235
20236 # IFS
20237 # We need space, tab and new line, in precisely that order.  Quoting is
20238 # there to prevent editors from complaining about space-tab.
20239 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20240 # splitting by setting IFS to empty value.)
20241 IFS=" ""        $as_nl"
20242
20243 # Find who we are.  Look in the path if we contain no directory separator.
20244 as_myself=
20245 case $0 in #((
20246   *[\\/]* ) as_myself=$0 ;;
20247   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20248 for as_dir in $PATH
20249 do
20250   IFS=$as_save_IFS
20251   test -z "$as_dir" && as_dir=.
20252     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20253   done
20254 IFS=$as_save_IFS
20255
20256      ;;
20257 esac
20258 # We did not find ourselves, most probably we were run as `sh COMMAND'
20259 # in which case we are not to be found in the path.
20260 if test "x$as_myself" = x; then
20261   as_myself=$0
20262 fi
20263 if test ! -f "$as_myself"; then
20264   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20265   exit 1
20266 fi
20267
20268 # Unset variables that we do not need and which cause bugs (e.g. in
20269 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20270 # suppresses any "Segmentation fault" message there.  '((' could
20271 # trigger a bug in pdksh 5.2.14.
20272 for as_var in BASH_ENV ENV MAIL MAILPATH
20273 do eval test x\${$as_var+set} = xset \
20274   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20275 done
20276 PS1='$ '
20277 PS2='> '
20278 PS4='+ '
20279
20280 # NLS nuisances.
20281 LC_ALL=C
20282 export LC_ALL
20283 LANGUAGE=C
20284 export LANGUAGE
20285
20286 # CDPATH.
20287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20288
20289
20290 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20291 # ----------------------------------------
20292 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20293 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20294 # script with STATUS, using 1 if that was 0.
20295 as_fn_error ()
20296 {
20297   as_status=$1; test $as_status -eq 0 && as_status=1
20298   if test "$4"; then
20299     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20300     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20301   fi
20302   $as_echo "$as_me: error: $2" >&2
20303   as_fn_exit $as_status
20304 } # as_fn_error
20305
20306
20307 # as_fn_set_status STATUS
20308 # -----------------------
20309 # Set $? to STATUS, without forking.
20310 as_fn_set_status ()
20311 {
20312   return $1
20313 } # as_fn_set_status
20314
20315 # as_fn_exit STATUS
20316 # -----------------
20317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20318 as_fn_exit ()
20319 {
20320   set +e
20321   as_fn_set_status $1
20322   exit $1
20323 } # as_fn_exit
20324
20325 # as_fn_unset VAR
20326 # ---------------
20327 # Portably unset VAR.
20328 as_fn_unset ()
20329 {
20330   { eval $1=; unset $1;}
20331 }
20332 as_unset=as_fn_unset
20333 # as_fn_append VAR VALUE
20334 # ----------------------
20335 # Append the text in VALUE to the end of the definition contained in VAR. Take
20336 # advantage of any shell optimizations that allow amortized linear growth over
20337 # repeated appends, instead of the typical quadratic growth present in naive
20338 # implementations.
20339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20340   eval 'as_fn_append ()
20341   {
20342     eval $1+=\$2
20343   }'
20344 else
20345   as_fn_append ()
20346   {
20347     eval $1=\$$1\$2
20348   }
20349 fi # as_fn_append
20350
20351 # as_fn_arith ARG...
20352 # ------------------
20353 # Perform arithmetic evaluation on the ARGs, and store the result in the
20354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20355 # must be portable across $(()) and expr.
20356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20357   eval 'as_fn_arith ()
20358   {
20359     as_val=$(( $* ))
20360   }'
20361 else
20362   as_fn_arith ()
20363   {
20364     as_val=`expr "$@" || test $? -eq 1`
20365   }
20366 fi # as_fn_arith
20367
20368
20369 if expr a : '\(a\)' >/dev/null 2>&1 &&
20370    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20371   as_expr=expr
20372 else
20373   as_expr=false
20374 fi
20375
20376 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20377   as_basename=basename
20378 else
20379   as_basename=false
20380 fi
20381
20382 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20383   as_dirname=dirname
20384 else
20385   as_dirname=false
20386 fi
20387
20388 as_me=`$as_basename -- "$0" ||
20389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20390          X"$0" : 'X\(//\)$' \| \
20391          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20392 $as_echo X/"$0" |
20393     sed '/^.*\/\([^/][^/]*\)\/*$/{
20394             s//\1/
20395             q
20396           }
20397           /^X\/\(\/\/\)$/{
20398             s//\1/
20399             q
20400           }
20401           /^X\/\(\/\).*/{
20402             s//\1/
20403             q
20404           }
20405           s/.*/./; q'`
20406
20407 # Avoid depending upon Character Ranges.
20408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20411 as_cr_digits='0123456789'
20412 as_cr_alnum=$as_cr_Letters$as_cr_digits
20413
20414 ECHO_C= ECHO_N= ECHO_T=
20415 case `echo -n x` in #(((((
20416 -n*)
20417   case `echo 'xy\c'` in
20418   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20419   xy)  ECHO_C='\c';;
20420   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20421        ECHO_T=' ';;
20422   esac;;
20423 *)
20424   ECHO_N='-n';;
20425 esac
20426
20427 rm -f conf$$ conf$$.exe conf$$.file
20428 if test -d conf$$.dir; then
20429   rm -f conf$$.dir/conf$$.file
20430 else
20431   rm -f conf$$.dir
20432   mkdir conf$$.dir 2>/dev/null
20433 fi
20434 if (echo >conf$$.file) 2>/dev/null; then
20435   if ln -s conf$$.file conf$$ 2>/dev/null; then
20436     as_ln_s='ln -s'
20437     # ... but there are two gotchas:
20438     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20439     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20440     # In both cases, we have to default to `cp -p'.
20441     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20442       as_ln_s='cp -p'
20443   elif ln conf$$.file conf$$ 2>/dev/null; then
20444     as_ln_s=ln
20445   else
20446     as_ln_s='cp -p'
20447   fi
20448 else
20449   as_ln_s='cp -p'
20450 fi
20451 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20452 rmdir conf$$.dir 2>/dev/null
20453
20454
20455 # as_fn_mkdir_p
20456 # -------------
20457 # Create "$as_dir" as a directory, including parents if necessary.
20458 as_fn_mkdir_p ()
20459 {
20460
20461   case $as_dir in #(
20462   -*) as_dir=./$as_dir;;
20463   esac
20464   test -d "$as_dir" || eval $as_mkdir_p || {
20465     as_dirs=
20466     while :; do
20467       case $as_dir in #(
20468       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20469       *) as_qdir=$as_dir;;
20470       esac
20471       as_dirs="'$as_qdir' $as_dirs"
20472       as_dir=`$as_dirname -- "$as_dir" ||
20473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20474          X"$as_dir" : 'X\(//\)[^/]' \| \
20475          X"$as_dir" : 'X\(//\)$' \| \
20476          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20477 $as_echo X"$as_dir" |
20478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20479             s//\1/
20480             q
20481           }
20482           /^X\(\/\/\)[^/].*/{
20483             s//\1/
20484             q
20485           }
20486           /^X\(\/\/\)$/{
20487             s//\1/
20488             q
20489           }
20490           /^X\(\/\).*/{
20491             s//\1/
20492             q
20493           }
20494           s/.*/./; q'`
20495       test -d "$as_dir" && break
20496     done
20497     test -z "$as_dirs" || eval "mkdir $as_dirs"
20498   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20499
20500
20501 } # as_fn_mkdir_p
20502 if mkdir -p . 2>/dev/null; then
20503   as_mkdir_p='mkdir -p "$as_dir"'
20504 else
20505   test -d ./-p && rmdir ./-p
20506   as_mkdir_p=false
20507 fi
20508
20509 if test -x / >/dev/null 2>&1; then
20510   as_test_x='test -x'
20511 else
20512   if ls -dL / >/dev/null 2>&1; then
20513     as_ls_L_option=L
20514   else
20515     as_ls_L_option=
20516   fi
20517   as_test_x='
20518     eval sh -c '\''
20519       if test -d "$1"; then
20520         test -d "$1/.";
20521       else
20522         case $1 in #(
20523         -*)set "./$1";;
20524         esac;
20525         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20526         ???[sx]*):;;*)false;;esac;fi
20527     '\'' sh
20528   '
20529 fi
20530 as_executable_p=$as_test_x
20531
20532 # Sed expression to map a string onto a valid CPP name.
20533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20534
20535 # Sed expression to map a string onto a valid variable name.
20536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20537
20538
20539 exec 6>&1
20540 ## ----------------------------------- ##
20541 ## Main body of $CONFIG_STATUS script. ##
20542 ## ----------------------------------- ##
20543 _ASEOF
20544 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20545
20546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20547 # Save the log message, to keep $0 and so on meaningful, and to
20548 # report actual input values of CONFIG_FILES etc. instead of their
20549 # values after options handling.
20550 ac_log="
20551 This file was extended by sudo $as_me 1.8.4p4, which was
20552 generated by GNU Autoconf 2.68.  Invocation command line was
20553
20554   CONFIG_FILES    = $CONFIG_FILES
20555   CONFIG_HEADERS  = $CONFIG_HEADERS
20556   CONFIG_LINKS    = $CONFIG_LINKS
20557   CONFIG_COMMANDS = $CONFIG_COMMANDS
20558   $ $0 $@
20559
20560 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20561 "
20562
20563 _ACEOF
20564
20565 case $ac_config_files in *"
20566 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20567 esac
20568
20569 case $ac_config_headers in *"
20570 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20571 esac
20572
20573
20574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20575 # Files that config.status was made for.
20576 config_files="$ac_config_files"
20577 config_headers="$ac_config_headers"
20578 config_commands="$ac_config_commands"
20579
20580 _ACEOF
20581
20582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20583 ac_cs_usage="\
20584 \`$as_me' instantiates files and other configuration actions
20585 from templates according to the current configuration.  Unless the files
20586 and actions are specified as TAGs, all are instantiated by default.
20587
20588 Usage: $0 [OPTION]... [TAG]...
20589
20590   -h, --help       print this help, then exit
20591   -V, --version    print version number and configuration settings, then exit
20592       --config     print configuration, then exit
20593   -q, --quiet, --silent
20594                    do not print progress messages
20595   -d, --debug      don't remove temporary files
20596       --recheck    update $as_me by reconfiguring in the same conditions
20597       --file=FILE[:TEMPLATE]
20598                    instantiate the configuration file FILE
20599       --header=FILE[:TEMPLATE]
20600                    instantiate the configuration header FILE
20601
20602 Configuration files:
20603 $config_files
20604
20605 Configuration headers:
20606 $config_headers
20607
20608 Configuration commands:
20609 $config_commands
20610
20611 Report bugs to <http://www.sudo.ws/bugs/>."
20612
20613 _ACEOF
20614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20615 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20616 ac_cs_version="\\
20617 sudo config.status 1.8.4p4
20618 configured by $0, generated by GNU Autoconf 2.68,
20619   with options \\"\$ac_cs_config\\"
20620
20621 Copyright (C) 2010 Free Software Foundation, Inc.
20622 This config.status script is free software; the Free Software Foundation
20623 gives unlimited permission to copy, distribute and modify it."
20624
20625 ac_pwd='$ac_pwd'
20626 srcdir='$srcdir'
20627 AWK='$AWK'
20628 test -n "\$AWK" || AWK=awk
20629 _ACEOF
20630
20631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20632 # The default lists apply if the user does not specify any file.
20633 ac_need_defaults=:
20634 while test $# != 0
20635 do
20636   case $1 in
20637   --*=?*)
20638     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20639     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20640     ac_shift=:
20641     ;;
20642   --*=)
20643     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20644     ac_optarg=
20645     ac_shift=:
20646     ;;
20647   *)
20648     ac_option=$1
20649     ac_optarg=$2
20650     ac_shift=shift
20651     ;;
20652   esac
20653
20654   case $ac_option in
20655   # Handling of the options.
20656   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20657     ac_cs_recheck=: ;;
20658   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20659     $as_echo "$ac_cs_version"; exit ;;
20660   --config | --confi | --conf | --con | --co | --c )
20661     $as_echo "$ac_cs_config"; exit ;;
20662   --debug | --debu | --deb | --de | --d | -d )
20663     debug=: ;;
20664   --file | --fil | --fi | --f )
20665     $ac_shift
20666     case $ac_optarg in
20667     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20668     '') as_fn_error $? "missing file argument" ;;
20669     esac
20670     as_fn_append CONFIG_FILES " '$ac_optarg'"
20671     ac_need_defaults=false;;
20672   --header | --heade | --head | --hea )
20673     $ac_shift
20674     case $ac_optarg in
20675     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20676     esac
20677     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20678     ac_need_defaults=false;;
20679   --he | --h)
20680     # Conflict between --help and --header
20681     as_fn_error $? "ambiguous option: \`$1'
20682 Try \`$0 --help' for more information.";;
20683   --help | --hel | -h )
20684     $as_echo "$ac_cs_usage"; exit ;;
20685   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20686   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20687     ac_cs_silent=: ;;
20688
20689   # This is an error.
20690   -*) as_fn_error $? "unrecognized option: \`$1'
20691 Try \`$0 --help' for more information." ;;
20692
20693   *) as_fn_append ac_config_targets " $1"
20694      ac_need_defaults=false ;;
20695
20696   esac
20697   shift
20698 done
20699
20700 ac_configure_extra_args=
20701
20702 if $ac_cs_silent; then
20703   exec 6>/dev/null
20704   ac_configure_extra_args="$ac_configure_extra_args --silent"
20705 fi
20706
20707 _ACEOF
20708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20709 if \$ac_cs_recheck; then
20710   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20711   shift
20712   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20713   CONFIG_SHELL='$SHELL'
20714   export CONFIG_SHELL
20715   exec "\$@"
20716 fi
20717
20718 _ACEOF
20719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20720 exec 5>>config.log
20721 {
20722   echo
20723   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20724 ## Running $as_me. ##
20725 _ASBOX
20726   $as_echo "$ac_log"
20727 } >&5
20728
20729 _ACEOF
20730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20731 #
20732 # INIT-COMMANDS
20733 #
20734
20735
20736 # The HP-UX ksh and POSIX shell print the target directory to stdout
20737 # if CDPATH is set.
20738 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20739
20740 sed_quote_subst='$sed_quote_subst'
20741 double_quote_subst='$double_quote_subst'
20742 delay_variable_subst='$delay_variable_subst'
20743 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20744 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20745 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20746 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20747 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20748 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20749 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20750 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20751 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20752 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20753 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20754 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20755 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20756 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20757 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20758 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20759 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20760 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20761 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20762 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20763 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20764 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20765 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20766 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20767 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20768 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20769 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20770 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20771 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20772 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20773 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20774 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20775 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20776 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20777 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20778 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20779 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20780 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20781 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20782 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20783 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20784 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20785 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20786 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20787 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20788 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20789 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20790 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20791 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20792 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20793 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20794 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20795 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20796 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20797 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20798 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20799 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20800 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20801 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20802 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20803 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20804 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20805 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20806 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20807 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20808 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20809 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20810 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20811 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20812 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20813 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20814 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20815 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20816 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20817 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20818 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20819 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20820 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20821 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20822 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20823 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20824 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20825 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20826 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20827 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20828 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20829 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20830 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20831 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20832 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20833 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20834 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20835 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20836 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20837 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20838 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20839 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20840 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20841 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20842 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20843 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20844 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20845 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20846 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20847 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20848 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20849 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20850 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20851 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20852 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20853 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20854 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20855 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20856 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20857 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20858 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20859 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20860 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20861 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20862 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20863 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20864 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20865 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20866 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20867 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20868 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20869 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20870 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20871 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20872 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20873
20874 LTCC='$LTCC'
20875 LTCFLAGS='$LTCFLAGS'
20876 compiler='$compiler_DEFAULT'
20877
20878 # A function that is used when there is no print builtin or printf.
20879 func_fallback_echo ()
20880 {
20881   eval 'cat <<_LTECHO_EOF
20882 \$1
20883 _LTECHO_EOF'
20884 }
20885
20886 # Quote evaled strings.
20887 for var in SHELL \
20888 ECHO \
20889 PATH_SEPARATOR \
20890 SED \
20891 GREP \
20892 EGREP \
20893 FGREP \
20894 LD \
20895 NM \
20896 LN_S \
20897 lt_SP2NL \
20898 lt_NL2SP \
20899 reload_flag \
20900 OBJDUMP \
20901 deplibs_check_method \
20902 file_magic_cmd \
20903 file_magic_glob \
20904 want_nocaseglob \
20905 DLLTOOL \
20906 sharedlib_from_linklib_cmd \
20907 AR \
20908 AR_FLAGS \
20909 archiver_list_spec \
20910 STRIP \
20911 RANLIB \
20912 CC \
20913 CFLAGS \
20914 compiler \
20915 lt_cv_sys_global_symbol_pipe \
20916 lt_cv_sys_global_symbol_to_cdecl \
20917 lt_cv_sys_global_symbol_to_c_name_address \
20918 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20919 nm_file_list_spec \
20920 lt_prog_compiler_no_builtin_flag \
20921 lt_prog_compiler_pic \
20922 lt_prog_compiler_wl \
20923 lt_prog_compiler_static \
20924 lt_cv_prog_compiler_c_o \
20925 need_locks \
20926 MANIFEST_TOOL \
20927 DSYMUTIL \
20928 NMEDIT \
20929 LIPO \
20930 OTOOL \
20931 OTOOL64 \
20932 shrext_cmds \
20933 export_dynamic_flag_spec \
20934 whole_archive_flag_spec \
20935 compiler_needs_object \
20936 with_gnu_ld \
20937 allow_undefined_flag \
20938 no_undefined_flag \
20939 hardcode_libdir_flag_spec \
20940 hardcode_libdir_separator \
20941 exclude_expsyms \
20942 include_expsyms \
20943 file_list_spec \
20944 variables_saved_for_relink \
20945 libname_spec \
20946 library_names_spec \
20947 soname_spec \
20948 install_override_mode \
20949 finish_eval \
20950 old_striplib \
20951 striplib; do
20952     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20953     *[\\\\\\\`\\"\\\$]*)
20954       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20955       ;;
20956     *)
20957       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20958       ;;
20959     esac
20960 done
20961
20962 # Double-quote double-evaled strings.
20963 for var in reload_cmds \
20964 old_postinstall_cmds \
20965 old_postuninstall_cmds \
20966 old_archive_cmds \
20967 extract_expsyms_cmds \
20968 old_archive_from_new_cmds \
20969 old_archive_from_expsyms_cmds \
20970 archive_cmds \
20971 archive_expsym_cmds \
20972 module_cmds \
20973 module_expsym_cmds \
20974 export_symbols_cmds \
20975 prelink_cmds \
20976 postlink_cmds \
20977 postinstall_cmds \
20978 postuninstall_cmds \
20979 finish_cmds \
20980 sys_lib_search_path_spec \
20981 sys_lib_dlsearch_path_spec; do
20982     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20983     *[\\\\\\\`\\"\\\$]*)
20984       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20985       ;;
20986     *)
20987       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20988       ;;
20989     esac
20990 done
20991
20992 ac_aux_dir='$ac_aux_dir'
20993 xsi_shell='$xsi_shell'
20994 lt_shell_append='$lt_shell_append'
20995
20996 # See if we are running on zsh, and set the options which allow our
20997 # commands through without removal of \ escapes INIT.
20998 if test -n "\${ZSH_VERSION+set}" ; then
20999    setopt NO_GLOB_SUBST
21000 fi
21001
21002
21003     PACKAGE='$PACKAGE'
21004     VERSION='$VERSION'
21005     TIMESTAMP='$TIMESTAMP'
21006     RM='$RM'
21007     ofile='$ofile'
21008
21009
21010
21011
21012 _ACEOF
21013
21014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21015
21016 # Handling of arguments.
21017 for ac_config_target in $ac_config_targets
21018 do
21019   case $ac_config_target in
21020     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21021     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
21022     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21023     "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
21024     "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
21025     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21026     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
21027     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
21028     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21029     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21030     "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
21031     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21032     "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
21033     "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
21034     "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
21035     "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
21036
21037   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21038   esac
21039 done
21040
21041
21042 # If the user did not use the arguments to specify the items to instantiate,
21043 # then the envvar interface is used.  Set only those that are not.
21044 # We use the long form for the default assignment because of an extremely
21045 # bizarre bug on SunOS 4.1.3.
21046 if $ac_need_defaults; then
21047   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21048   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21049   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21050 fi
21051
21052 # Have a temporary directory for convenience.  Make it in the build tree
21053 # simply because there is no reason against having it here, and in addition,
21054 # creating and moving files from /tmp can sometimes cause problems.
21055 # Hook for its removal unless debugging.
21056 # Note that there is a small window in which the directory will not be cleaned:
21057 # after its creation but before its name has been assigned to `$tmp'.
21058 $debug ||
21059 {
21060   tmp= ac_tmp=
21061   trap 'exit_status=$?
21062   : "${ac_tmp:=$tmp}"
21063   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21064 ' 0
21065   trap 'as_fn_exit 1' 1 2 13 15
21066 }
21067 # Create a (secure) tmp directory for tmp files.
21068
21069 {
21070   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21071   test -d "$tmp"
21072 }  ||
21073 {
21074   tmp=./conf$$-$RANDOM
21075   (umask 077 && mkdir "$tmp")
21076 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21077 ac_tmp=$tmp
21078
21079 # Set up the scripts for CONFIG_FILES section.
21080 # No need to generate them if there are no CONFIG_FILES.
21081 # This happens for instance with `./config.status config.h'.
21082 if test -n "$CONFIG_FILES"; then
21083
21084
21085 ac_cr=`echo X | tr X '\015'`
21086 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21087 # But we know of no other shell where ac_cr would be empty at this
21088 # point, so we can use a bashism as a fallback.
21089 if test "x$ac_cr" = x; then
21090   eval ac_cr=\$\'\\r\'
21091 fi
21092 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21093 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21094   ac_cs_awk_cr='\\r'
21095 else
21096   ac_cs_awk_cr=$ac_cr
21097 fi
21098
21099 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21100 _ACEOF
21101
21102
21103 {
21104   echo "cat >conf$$subs.awk <<_ACEOF" &&
21105   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21106   echo "_ACEOF"
21107 } >conf$$subs.sh ||
21108   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21109 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21110 ac_delim='%!_!# '
21111 for ac_last_try in false false false false false :; do
21112   . ./conf$$subs.sh ||
21113     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21114
21115   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21116   if test $ac_delim_n = $ac_delim_num; then
21117     break
21118   elif $ac_last_try; then
21119     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21120   else
21121     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21122   fi
21123 done
21124 rm -f conf$$subs.sh
21125
21126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21127 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21128 _ACEOF
21129 sed -n '
21130 h
21131 s/^/S["/; s/!.*/"]=/
21132 p
21133 g
21134 s/^[^!]*!//
21135 :repl
21136 t repl
21137 s/'"$ac_delim"'$//
21138 t delim
21139 :nl
21140 h
21141 s/\(.\{148\}\)..*/\1/
21142 t more1
21143 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21144 p
21145 n
21146 b repl
21147 :more1
21148 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21149 p
21150 g
21151 s/.\{148\}//
21152 t nl
21153 :delim
21154 h
21155 s/\(.\{148\}\)..*/\1/
21156 t more2
21157 s/["\\]/\\&/g; s/^/"/; s/$/"/
21158 p
21159 b
21160 :more2
21161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21162 p
21163 g
21164 s/.\{148\}//
21165 t delim
21166 ' <conf$$subs.awk | sed '
21167 /^[^""]/{
21168   N
21169   s/\n//
21170 }
21171 ' >>$CONFIG_STATUS || ac_write_fail=1
21172 rm -f conf$$subs.awk
21173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21174 _ACAWK
21175 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21176   for (key in S) S_is_set[key] = 1
21177   FS = "\a"
21178
21179 }
21180 {
21181   line = $ 0
21182   nfields = split(line, field, "@")
21183   substed = 0
21184   len = length(field[1])
21185   for (i = 2; i < nfields; i++) {
21186     key = field[i]
21187     keylen = length(key)
21188     if (S_is_set[key]) {
21189       value = S[key]
21190       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21191       len += length(value) + length(field[++i])
21192       substed = 1
21193     } else
21194       len += 1 + keylen
21195   }
21196
21197   print line
21198 }
21199
21200 _ACAWK
21201 _ACEOF
21202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21203 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21204   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21205 else
21206   cat
21207 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21208   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21209 _ACEOF
21210
21211 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21212 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21213 # trailing colons and then remove the whole line if VPATH becomes empty
21214 # (actually we leave an empty line to preserve line numbers).
21215 if test "x$srcdir" = x.; then
21216   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21217 h
21218 s///
21219 s/^/:/
21220 s/[      ]*$/:/
21221 s/:\$(srcdir):/:/g
21222 s/:\${srcdir}:/:/g
21223 s/:@srcdir@:/:/g
21224 s/^:*//
21225 s/:*$//
21226 x
21227 s/\(=[   ]*\).*/\1/
21228 G
21229 s/\n//
21230 s/^[^=]*=[       ]*$//
21231 }'
21232 fi
21233
21234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21235 fi # test -n "$CONFIG_FILES"
21236
21237 # Set up the scripts for CONFIG_HEADERS section.
21238 # No need to generate them if there are no CONFIG_HEADERS.
21239 # This happens for instance with `./config.status Makefile'.
21240 if test -n "$CONFIG_HEADERS"; then
21241 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21242 BEGIN {
21243 _ACEOF
21244
21245 # Transform confdefs.h into an awk script `defines.awk', embedded as
21246 # here-document in config.status, that substitutes the proper values into
21247 # config.h.in to produce config.h.
21248
21249 # Create a delimiter string that does not exist in confdefs.h, to ease
21250 # handling of long lines.
21251 ac_delim='%!_!# '
21252 for ac_last_try in false false :; do
21253   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21254   if test -z "$ac_tt"; then
21255     break
21256   elif $ac_last_try; then
21257     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21258   else
21259     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21260   fi
21261 done
21262
21263 # For the awk script, D is an array of macro values keyed by name,
21264 # likewise P contains macro parameters if any.  Preserve backslash
21265 # newline sequences.
21266
21267 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21268 sed -n '
21269 s/.\{148\}/&'"$ac_delim"'/g
21270 t rset
21271 :rset
21272 s/^[     ]*#[    ]*define[       ][      ]*/ /
21273 t def
21274 d
21275 :def
21276 s/\\$//
21277 t bsnl
21278 s/["\\]/\\&/g
21279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21280 D["\1"]=" \3"/p
21281 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21282 d
21283 :bsnl
21284 s/["\\]/\\&/g
21285 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21286 D["\1"]=" \3\\\\\\n"\\/p
21287 t cont
21288 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21289 t cont
21290 d
21291 :cont
21292 n
21293 s/.\{148\}/&'"$ac_delim"'/g
21294 t clear
21295 :clear
21296 s/\\$//
21297 t bsnlc
21298 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21299 d
21300 :bsnlc
21301 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21302 b cont
21303 ' <confdefs.h | sed '
21304 s/'"$ac_delim"'/"\\\
21305 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21306
21307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21308   for (key in D) D_is_set[key] = 1
21309   FS = "\a"
21310 }
21311 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21312   line = \$ 0
21313   split(line, arg, " ")
21314   if (arg[1] == "#") {
21315     defundef = arg[2]
21316     mac1 = arg[3]
21317   } else {
21318     defundef = substr(arg[1], 2)
21319     mac1 = arg[2]
21320   }
21321   split(mac1, mac2, "(") #)
21322   macro = mac2[1]
21323   prefix = substr(line, 1, index(line, defundef) - 1)
21324   if (D_is_set[macro]) {
21325     # Preserve the white space surrounding the "#".
21326     print prefix "define", macro P[macro] D[macro]
21327     next
21328   } else {
21329     # Replace #undef with comments.  This is necessary, for example,
21330     # in the case of _POSIX_SOURCE, which is predefined and required
21331     # on some systems where configure will not decide to define it.
21332     if (defundef == "undef") {
21333       print "/*", prefix defundef, macro, "*/"
21334       next
21335     }
21336   }
21337 }
21338 { print }
21339 _ACAWK
21340 _ACEOF
21341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21342   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21343 fi # test -n "$CONFIG_HEADERS"
21344
21345
21346 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21347 shift
21348 for ac_tag
21349 do
21350   case $ac_tag in
21351   :[FHLC]) ac_mode=$ac_tag; continue;;
21352   esac
21353   case $ac_mode$ac_tag in
21354   :[FHL]*:*);;
21355   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21356   :[FH]-) ac_tag=-:-;;
21357   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21358   esac
21359   ac_save_IFS=$IFS
21360   IFS=:
21361   set x $ac_tag
21362   IFS=$ac_save_IFS
21363   shift
21364   ac_file=$1
21365   shift
21366
21367   case $ac_mode in
21368   :L) ac_source=$1;;
21369   :[FH])
21370     ac_file_inputs=
21371     for ac_f
21372     do
21373       case $ac_f in
21374       -) ac_f="$ac_tmp/stdin";;
21375       *) # Look for the file first in the build tree, then in the source tree
21376          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21377          # because $ac_f cannot contain `:'.
21378          test -f "$ac_f" ||
21379            case $ac_f in
21380            [\\/$]*) false;;
21381            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21382            esac ||
21383            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21384       esac
21385       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21386       as_fn_append ac_file_inputs " '$ac_f'"
21387     done
21388
21389     # Let's still pretend it is `configure' which instantiates (i.e., don't
21390     # use $as_me), people would be surprised to read:
21391     #    /* config.h.  Generated by config.status.  */
21392     configure_input='Generated from '`
21393           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21394         `' by configure.'
21395     if test x"$ac_file" != x-; then
21396       configure_input="$ac_file.  $configure_input"
21397       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21398 $as_echo "$as_me: creating $ac_file" >&6;}
21399     fi
21400     # Neutralize special characters interpreted by sed in replacement strings.
21401     case $configure_input in #(
21402     *\&* | *\|* | *\\* )
21403        ac_sed_conf_input=`$as_echo "$configure_input" |
21404        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21405     *) ac_sed_conf_input=$configure_input;;
21406     esac
21407
21408     case $ac_tag in
21409     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21410       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21411     esac
21412     ;;
21413   esac
21414
21415   ac_dir=`$as_dirname -- "$ac_file" ||
21416 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21417          X"$ac_file" : 'X\(//\)[^/]' \| \
21418          X"$ac_file" : 'X\(//\)$' \| \
21419          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21420 $as_echo X"$ac_file" |
21421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21422             s//\1/
21423             q
21424           }
21425           /^X\(\/\/\)[^/].*/{
21426             s//\1/
21427             q
21428           }
21429           /^X\(\/\/\)$/{
21430             s//\1/
21431             q
21432           }
21433           /^X\(\/\).*/{
21434             s//\1/
21435             q
21436           }
21437           s/.*/./; q'`
21438   as_dir="$ac_dir"; as_fn_mkdir_p
21439   ac_builddir=.
21440
21441 case "$ac_dir" in
21442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21443 *)
21444   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21445   # A ".." for each directory in $ac_dir_suffix.
21446   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21447   case $ac_top_builddir_sub in
21448   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21449   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21450   esac ;;
21451 esac
21452 ac_abs_top_builddir=$ac_pwd
21453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21454 # for backward compatibility:
21455 ac_top_builddir=$ac_top_build_prefix
21456
21457 case $srcdir in
21458   .)  # We are building in place.
21459     ac_srcdir=.
21460     ac_top_srcdir=$ac_top_builddir_sub
21461     ac_abs_top_srcdir=$ac_pwd ;;
21462   [\\/]* | ?:[\\/]* )  # Absolute name.
21463     ac_srcdir=$srcdir$ac_dir_suffix;
21464     ac_top_srcdir=$srcdir
21465     ac_abs_top_srcdir=$srcdir ;;
21466   *) # Relative name.
21467     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21468     ac_top_srcdir=$ac_top_build_prefix$srcdir
21469     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21470 esac
21471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21472
21473
21474   case $ac_mode in
21475   :F)
21476   #
21477   # CONFIG_FILE
21478   #
21479
21480 _ACEOF
21481
21482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21483 # If the template does not know about datarootdir, expand it.
21484 # FIXME: This hack should be removed a few years after 2.60.
21485 ac_datarootdir_hack=; ac_datarootdir_seen=
21486 ac_sed_dataroot='
21487 /datarootdir/ {
21488   p
21489   q
21490 }
21491 /@datadir@/p
21492 /@docdir@/p
21493 /@infodir@/p
21494 /@localedir@/p
21495 /@mandir@/p'
21496 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21497 *datarootdir*) ac_datarootdir_seen=yes;;
21498 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21499   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21500 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21501 _ACEOF
21502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21503   ac_datarootdir_hack='
21504   s&@datadir@&$datadir&g
21505   s&@docdir@&$docdir&g
21506   s&@infodir@&$infodir&g
21507   s&@localedir@&$localedir&g
21508   s&@mandir@&$mandir&g
21509   s&\\\${datarootdir}&$datarootdir&g' ;;
21510 esac
21511 _ACEOF
21512
21513 # Neutralize VPATH when `$srcdir' = `.'.
21514 # Shell code in configure.ac might set extrasub.
21515 # FIXME: do we really want to maintain this feature?
21516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21517 ac_sed_extra="$ac_vpsub
21518 $extrasub
21519 _ACEOF
21520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21521 :t
21522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21523 s|@configure_input@|$ac_sed_conf_input|;t t
21524 s&@top_builddir@&$ac_top_builddir_sub&;t t
21525 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21526 s&@srcdir@&$ac_srcdir&;t t
21527 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21528 s&@top_srcdir@&$ac_top_srcdir&;t t
21529 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21530 s&@builddir@&$ac_builddir&;t t
21531 s&@abs_builddir@&$ac_abs_builddir&;t t
21532 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21533 $ac_datarootdir_hack
21534 "
21535 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21536   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21537
21538 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21539   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21540   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21541       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21542   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21543 which seems to be undefined.  Please make sure it is defined" >&5
21544 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21545 which seems to be undefined.  Please make sure it is defined" >&2;}
21546
21547   rm -f "$ac_tmp/stdin"
21548   case $ac_file in
21549   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21550   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21551   esac \
21552   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21553  ;;
21554   :H)
21555   #
21556   # CONFIG_HEADER
21557   #
21558   if test x"$ac_file" != x-; then
21559     {
21560       $as_echo "/* $configure_input  */" \
21561       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21562     } >"$ac_tmp/config.h" \
21563       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21564     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21565       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21566 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21567     else
21568       rm -f "$ac_file"
21569       mv "$ac_tmp/config.h" "$ac_file" \
21570         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21571     fi
21572   else
21573     $as_echo "/* $configure_input  */" \
21574       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21575       || as_fn_error $? "could not create -" "$LINENO" 5
21576   fi
21577  ;;
21578
21579   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21580 $as_echo "$as_me: executing $ac_file commands" >&6;}
21581  ;;
21582   esac
21583
21584
21585   case $ac_file$ac_mode in
21586     "libtool":C)
21587
21588     # See if we are running on zsh, and set the options which allow our
21589     # commands through without removal of \ escapes.
21590     if test -n "${ZSH_VERSION+set}" ; then
21591       setopt NO_GLOB_SUBST
21592     fi
21593
21594     cfgfile="${ofile}T"
21595     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21596     $RM "$cfgfile"
21597
21598     cat <<_LT_EOF >> "$cfgfile"
21599 #! $SHELL
21600
21601 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21602 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21603 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21604 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21605 #
21606 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21607 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21608 #                 Foundation, Inc.
21609 #   Written by Gordon Matzigkeit, 1996
21610 #
21611 #   This file is part of GNU Libtool.
21612 #
21613 # GNU Libtool is free software; you can redistribute it and/or
21614 # modify it under the terms of the GNU General Public License as
21615 # published by the Free Software Foundation; either version 2 of
21616 # the License, or (at your option) any later version.
21617 #
21618 # As a special exception to the GNU General Public License,
21619 # if you distribute this file as part of a program or library that
21620 # is built using GNU Libtool, you may include this file under the
21621 # same distribution terms that you use for the rest of that program.
21622 #
21623 # GNU Libtool is distributed in the hope that it will be useful,
21624 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21625 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21626 # GNU General Public License for more details.
21627 #
21628 # You should have received a copy of the GNU General Public License
21629 # along with GNU Libtool; see the file COPYING.  If not, a copy
21630 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21631 # obtained by writing to the Free Software Foundation, Inc.,
21632 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21633
21634
21635 # The names of the tagged configurations supported by this script.
21636 available_tags=""
21637
21638 # ### BEGIN LIBTOOL CONFIG
21639
21640 # Which release of libtool.m4 was used?
21641 macro_version=$macro_version
21642 macro_revision=$macro_revision
21643
21644 # Whether or not to build shared libraries.
21645 build_libtool_libs=$enable_shared
21646
21647 # Whether or not to build static libraries.
21648 build_old_libs=$enable_static
21649
21650 # What type of objects to build.
21651 pic_mode=$pic_mode
21652
21653 # Whether or not to optimize for fast installation.
21654 fast_install=$enable_fast_install
21655
21656 # Shell to use when invoking shell scripts.
21657 SHELL=$lt_SHELL
21658
21659 # An echo program that protects backslashes.
21660 ECHO=$lt_ECHO
21661
21662 # The PATH separator for the build system.
21663 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21664
21665 # The host system.
21666 host_alias=$host_alias
21667 host=$host
21668 host_os=$host_os
21669
21670 # The build system.
21671 build_alias=$build_alias
21672 build=$build
21673 build_os=$build_os
21674
21675 # A sed program that does not truncate output.
21676 SED=$lt_SED
21677
21678 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21679 Xsed="\$SED -e 1s/^X//"
21680
21681 # A grep program that handles long lines.
21682 GREP=$lt_GREP
21683
21684 # An ERE matcher.
21685 EGREP=$lt_EGREP
21686
21687 # A literal string matcher.
21688 FGREP=$lt_FGREP
21689
21690 # A BSD- or MS-compatible name lister.
21691 NM=$lt_NM
21692
21693 # Whether we need soft or hard links.
21694 LN_S=$lt_LN_S
21695
21696 # What is the maximum length of a command?
21697 max_cmd_len=$max_cmd_len
21698
21699 # Object file suffix (normally "o").
21700 objext=$ac_objext
21701
21702 # Executable file suffix (normally "").
21703 exeext=$exeext
21704
21705 # whether the shell understands "unset".
21706 lt_unset=$lt_unset
21707
21708 # turn spaces into newlines.
21709 SP2NL=$lt_lt_SP2NL
21710
21711 # turn newlines into spaces.
21712 NL2SP=$lt_lt_NL2SP
21713
21714 # convert \$build file names to \$host format.
21715 to_host_file_cmd=$lt_cv_to_host_file_cmd
21716
21717 # convert \$build files to toolchain format.
21718 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21719
21720 # An object symbol dumper.
21721 OBJDUMP=$lt_OBJDUMP
21722
21723 # Method to check whether dependent libraries are shared objects.
21724 deplibs_check_method=$lt_deplibs_check_method
21725
21726 # Command to use when deplibs_check_method = "file_magic".
21727 file_magic_cmd=$lt_file_magic_cmd
21728
21729 # How to find potential files when deplibs_check_method = "file_magic".
21730 file_magic_glob=$lt_file_magic_glob
21731
21732 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21733 want_nocaseglob=$lt_want_nocaseglob
21734
21735 # DLL creation program.
21736 DLLTOOL=$lt_DLLTOOL
21737
21738 # Command to associate shared and link libraries.
21739 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21740
21741 # The archiver.
21742 AR=$lt_AR
21743
21744 # Flags to create an archive.
21745 AR_FLAGS=$lt_AR_FLAGS
21746
21747 # How to feed a file listing to the archiver.
21748 archiver_list_spec=$lt_archiver_list_spec
21749
21750 # A symbol stripping program.
21751 STRIP=$lt_STRIP
21752
21753 # Commands used to install an old-style archive.
21754 RANLIB=$lt_RANLIB
21755 old_postinstall_cmds=$lt_old_postinstall_cmds
21756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21757
21758 # Whether to use a lock for old archive extraction.
21759 lock_old_archive_extraction=$lock_old_archive_extraction
21760
21761 # A C compiler.
21762 LTCC=$lt_CC
21763
21764 # LTCC compiler flags.
21765 LTCFLAGS=$lt_CFLAGS
21766
21767 # Take the output of nm and produce a listing of raw symbols and C names.
21768 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21769
21770 # Transform the output of nm in a proper C declaration.
21771 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21772
21773 # Transform the output of nm in a C name address pair.
21774 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21775
21776 # Transform the output of nm in a C name address pair when lib prefix is needed.
21777 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21778
21779 # Specify filename containing input files for \$NM.
21780 nm_file_list_spec=$lt_nm_file_list_spec
21781
21782 # The root where to search for dependent libraries,and in which our libraries should be installed.
21783 lt_sysroot=$lt_sysroot
21784
21785 # The name of the directory that contains temporary libtool files.
21786 objdir=$objdir
21787
21788 # Used to examine libraries when file_magic_cmd begins with "file".
21789 MAGIC_CMD=$MAGIC_CMD
21790
21791 # Must we lock files when doing compilation?
21792 need_locks=$lt_need_locks
21793
21794 # Manifest tool.
21795 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21796
21797 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21798 DSYMUTIL=$lt_DSYMUTIL
21799
21800 # Tool to change global to local symbols on Mac OS X.
21801 NMEDIT=$lt_NMEDIT
21802
21803 # Tool to manipulate fat objects and archives on Mac OS X.
21804 LIPO=$lt_LIPO
21805
21806 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21807 OTOOL=$lt_OTOOL
21808
21809 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21810 OTOOL64=$lt_OTOOL64
21811
21812 # Old archive suffix (normally "a").
21813 libext=$libext
21814
21815 # Shared library suffix (normally ".so").
21816 shrext_cmds=$lt_shrext_cmds
21817
21818 # The commands to extract the exported symbol list from a shared archive.
21819 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21820
21821 # Variables whose values should be saved in libtool wrapper scripts and
21822 # restored at link time.
21823 variables_saved_for_relink=$lt_variables_saved_for_relink
21824
21825 # Do we need the "lib" prefix for modules?
21826 need_lib_prefix=$need_lib_prefix
21827
21828 # Do we need a version for libraries?
21829 need_version=$need_version
21830
21831 # Library versioning type.
21832 version_type=$version_type
21833
21834 # Shared library runtime path variable.
21835 runpath_var=$runpath_var
21836
21837 # Shared library path variable.
21838 shlibpath_var=$shlibpath_var
21839
21840 # Is shlibpath searched before the hard-coded library search path?
21841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21842
21843 # Format of library name prefix.
21844 libname_spec=$lt_libname_spec
21845
21846 # List of archive names.  First name is the real one, the rest are links.
21847 # The last name is the one that the linker finds with -lNAME
21848 library_names_spec=$lt_library_names_spec
21849
21850 # The coded name of the library, if different from the real name.
21851 soname_spec=$lt_soname_spec
21852
21853 # Permission mode override for installation of shared libraries.
21854 install_override_mode=$lt_install_override_mode
21855
21856 # Command to use after installation of a shared archive.
21857 postinstall_cmds=$lt_postinstall_cmds
21858
21859 # Command to use after uninstallation of a shared archive.
21860 postuninstall_cmds=$lt_postuninstall_cmds
21861
21862 # Commands used to finish a libtool library installation in a directory.
21863 finish_cmds=$lt_finish_cmds
21864
21865 # As "finish_cmds", except a single script fragment to be evaled but
21866 # not shown.
21867 finish_eval=$lt_finish_eval
21868
21869 # Whether we should hardcode library paths into libraries.
21870 hardcode_into_libs=$hardcode_into_libs
21871
21872 # Compile-time system search path for libraries.
21873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21874
21875 # Run-time system search path for libraries.
21876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21877
21878 # Whether dlopen is supported.
21879 dlopen_support=$enable_dlopen
21880
21881 # Whether dlopen of programs is supported.
21882 dlopen_self=$enable_dlopen_self
21883
21884 # Whether dlopen of statically linked programs is supported.
21885 dlopen_self_static=$enable_dlopen_self_static
21886
21887 # Commands to strip libraries.
21888 old_striplib=$lt_old_striplib
21889 striplib=$lt_striplib
21890
21891
21892 # The linker used to build libraries.
21893 LD=$lt_LD
21894
21895 # How to create reloadable object files.
21896 reload_flag=$lt_reload_flag
21897 reload_cmds=$lt_reload_cmds
21898
21899 # Commands used to build an old-style archive.
21900 old_archive_cmds=$lt_old_archive_cmds
21901
21902 # A language specific compiler.
21903 CC=$lt_compiler
21904
21905 # Is the compiler the GNU compiler?
21906 with_gcc=$GCC
21907
21908 # Compiler flag to turn off builtin functions.
21909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21910
21911 # Additional compiler flags for building library objects.
21912 pic_flag=$lt_lt_prog_compiler_pic
21913
21914 # How to pass a linker flag through the compiler.
21915 wl=$lt_lt_prog_compiler_wl
21916
21917 # Compiler flag to prevent dynamic linking.
21918 link_static_flag=$lt_lt_prog_compiler_static
21919
21920 # Does compiler simultaneously support -c and -o options?
21921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21922
21923 # Whether or not to add -lc for building shared libraries.
21924 build_libtool_need_lc=$archive_cmds_need_lc
21925
21926 # Whether or not to disallow shared libs when runtime libs are static.
21927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21928
21929 # Compiler flag to allow reflexive dlopens.
21930 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21931
21932 # Compiler flag to generate shared objects directly from archives.
21933 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21934
21935 # Whether the compiler copes with passing no objects directly.
21936 compiler_needs_object=$lt_compiler_needs_object
21937
21938 # Create an old-style archive from a shared archive.
21939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21940
21941 # Create a temporary old-style archive to link instead of a shared archive.
21942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21943
21944 # Commands used to build a shared archive.
21945 archive_cmds=$lt_archive_cmds
21946 archive_expsym_cmds=$lt_archive_expsym_cmds
21947
21948 # Commands used to build a loadable module if different from building
21949 # a shared archive.
21950 module_cmds=$lt_module_cmds
21951 module_expsym_cmds=$lt_module_expsym_cmds
21952
21953 # Whether we are building with GNU ld or not.
21954 with_gnu_ld=$lt_with_gnu_ld
21955
21956 # Flag that allows shared libraries with undefined symbols to be built.
21957 allow_undefined_flag=$lt_allow_undefined_flag
21958
21959 # Flag that enforces no undefined symbols.
21960 no_undefined_flag=$lt_no_undefined_flag
21961
21962 # Flag to hardcode \$libdir into a binary during linking.
21963 # This must work even if \$libdir does not exist
21964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21965
21966 # Whether we need a single "-rpath" flag with a separated argument.
21967 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21968
21969 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21970 # DIR into the resulting binary.
21971 hardcode_direct=$hardcode_direct
21972
21973 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21974 # DIR into the resulting binary and the resulting library dependency is
21975 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21976 # library is relocated.
21977 hardcode_direct_absolute=$hardcode_direct_absolute
21978
21979 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21980 # into the resulting binary.
21981 hardcode_minus_L=$hardcode_minus_L
21982
21983 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21984 # into the resulting binary.
21985 hardcode_shlibpath_var=$hardcode_shlibpath_var
21986
21987 # Set to "yes" if building a shared library automatically hardcodes DIR
21988 # into the library and all subsequent libraries and executables linked
21989 # against it.
21990 hardcode_automatic=$hardcode_automatic
21991
21992 # Set to yes if linker adds runtime paths of dependent libraries
21993 # to runtime path list.
21994 inherit_rpath=$inherit_rpath
21995
21996 # Whether libtool must link a program against all its dependency libraries.
21997 link_all_deplibs=$link_all_deplibs
21998
21999 # Set to "yes" if exported symbols are required.
22000 always_export_symbols=$always_export_symbols
22001
22002 # The commands to list exported symbols.
22003 export_symbols_cmds=$lt_export_symbols_cmds
22004
22005 # Symbols that should not be listed in the preloaded symbols.
22006 exclude_expsyms=$lt_exclude_expsyms
22007
22008 # Symbols that must always be exported.
22009 include_expsyms=$lt_include_expsyms
22010
22011 # Commands necessary for linking programs (against libraries) with templates.
22012 prelink_cmds=$lt_prelink_cmds
22013
22014 # Commands necessary for finishing linking programs.
22015 postlink_cmds=$lt_postlink_cmds
22016
22017 # Specify filename containing input files.
22018 file_list_spec=$lt_file_list_spec
22019
22020 # How to hardcode a shared library path into an executable.
22021 hardcode_action=$hardcode_action
22022
22023 # ### END LIBTOOL CONFIG
22024
22025 _LT_EOF
22026
22027   case $host_os in
22028   aix3*)
22029     cat <<\_LT_EOF >> "$cfgfile"
22030 # AIX sometimes has problems with the GCC collect2 program.  For some
22031 # reason, if we set the COLLECT_NAMES environment variable, the problems
22032 # vanish in a puff of smoke.
22033 if test "X${COLLECT_NAMES+set}" != Xset; then
22034   COLLECT_NAMES=
22035   export COLLECT_NAMES
22036 fi
22037 _LT_EOF
22038     ;;
22039   esac
22040
22041
22042 ltmain="$ac_aux_dir/ltmain.sh"
22043
22044
22045   # We use sed instead of cat because bash on DJGPP gets confused if
22046   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22047   # text mode, it properly converts lines to CR/LF.  This bash problem
22048   # is reportedly fixed, but why not run on old versions too?
22049   sed '$q' "$ltmain" >> "$cfgfile" \
22050      || (rm -f "$cfgfile"; exit 1)
22051
22052   if test x"$xsi_shell" = xyes; then
22053   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22054 func_dirname ()\
22055 {\
22056 \    case ${1} in\
22057 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22058 \      *  ) func_dirname_result="${3}" ;;\
22059 \    esac\
22060 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22061   && mv -f "$cfgfile.tmp" "$cfgfile" \
22062     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22063 test 0 -eq $? || _lt_function_replace_fail=:
22064
22065
22066   sed -e '/^func_basename ()$/,/^} # func_basename /c\
22067 func_basename ()\
22068 {\
22069 \    func_basename_result="${1##*/}"\
22070 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22071   && mv -f "$cfgfile.tmp" "$cfgfile" \
22072     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22073 test 0 -eq $? || _lt_function_replace_fail=:
22074
22075
22076   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22077 func_dirname_and_basename ()\
22078 {\
22079 \    case ${1} in\
22080 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22081 \      *  ) func_dirname_result="${3}" ;;\
22082 \    esac\
22083 \    func_basename_result="${1##*/}"\
22084 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22085   && mv -f "$cfgfile.tmp" "$cfgfile" \
22086     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22087 test 0 -eq $? || _lt_function_replace_fail=:
22088
22089
22090   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22091 func_stripname ()\
22092 {\
22093 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22094 \    # positional parameters, so assign one to ordinary parameter first.\
22095 \    func_stripname_result=${3}\
22096 \    func_stripname_result=${func_stripname_result#"${1}"}\
22097 \    func_stripname_result=${func_stripname_result%"${2}"}\
22098 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22099   && mv -f "$cfgfile.tmp" "$cfgfile" \
22100     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22101 test 0 -eq $? || _lt_function_replace_fail=:
22102
22103
22104   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22105 func_split_long_opt ()\
22106 {\
22107 \    func_split_long_opt_name=${1%%=*}\
22108 \    func_split_long_opt_arg=${1#*=}\
22109 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22110   && mv -f "$cfgfile.tmp" "$cfgfile" \
22111     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22112 test 0 -eq $? || _lt_function_replace_fail=:
22113
22114
22115   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22116 func_split_short_opt ()\
22117 {\
22118 \    func_split_short_opt_arg=${1#??}\
22119 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22120 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22121   && mv -f "$cfgfile.tmp" "$cfgfile" \
22122     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22123 test 0 -eq $? || _lt_function_replace_fail=:
22124
22125
22126   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22127 func_lo2o ()\
22128 {\
22129 \    case ${1} in\
22130 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22131 \      *)    func_lo2o_result=${1} ;;\
22132 \    esac\
22133 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22134   && mv -f "$cfgfile.tmp" "$cfgfile" \
22135     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22136 test 0 -eq $? || _lt_function_replace_fail=:
22137
22138
22139   sed -e '/^func_xform ()$/,/^} # func_xform /c\
22140 func_xform ()\
22141 {\
22142     func_xform_result=${1%.*}.lo\
22143 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22144   && mv -f "$cfgfile.tmp" "$cfgfile" \
22145     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22146 test 0 -eq $? || _lt_function_replace_fail=:
22147
22148
22149   sed -e '/^func_arith ()$/,/^} # func_arith /c\
22150 func_arith ()\
22151 {\
22152     func_arith_result=$(( $* ))\
22153 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22154   && mv -f "$cfgfile.tmp" "$cfgfile" \
22155     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22156 test 0 -eq $? || _lt_function_replace_fail=:
22157
22158
22159   sed -e '/^func_len ()$/,/^} # func_len /c\
22160 func_len ()\
22161 {\
22162     func_len_result=${#1}\
22163 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22164   && mv -f "$cfgfile.tmp" "$cfgfile" \
22165     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22166 test 0 -eq $? || _lt_function_replace_fail=:
22167
22168 fi
22169
22170 if test x"$lt_shell_append" = xyes; then
22171   sed -e '/^func_append ()$/,/^} # func_append /c\
22172 func_append ()\
22173 {\
22174     eval "${1}+=\\${2}"\
22175 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22176   && mv -f "$cfgfile.tmp" "$cfgfile" \
22177     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22178 test 0 -eq $? || _lt_function_replace_fail=:
22179
22180
22181   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22182 func_append_quoted ()\
22183 {\
22184 \    func_quote_for_eval "${2}"\
22185 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22186 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22187   && mv -f "$cfgfile.tmp" "$cfgfile" \
22188     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22189 test 0 -eq $? || _lt_function_replace_fail=:
22190
22191
22192   # Save a `func_append' function call where possible by direct use of '+='
22193   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22194     && mv -f "$cfgfile.tmp" "$cfgfile" \
22195       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22196   test 0 -eq $? || _lt_function_replace_fail=:
22197 else
22198   # Save a `func_append' function call even when '+=' is not available
22199   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22200     && mv -f "$cfgfile.tmp" "$cfgfile" \
22201       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22202   test 0 -eq $? || _lt_function_replace_fail=:
22203 fi
22204
22205 if test x"$_lt_function_replace_fail" = x":"; then
22206   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22207 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22208 fi
22209
22210
22211    mv -f "$cfgfile" "$ofile" ||
22212     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22213   chmod +x "$ofile"
22214
22215  ;;
22216
22217   esac
22218 done # for ac_tag
22219
22220
22221 as_fn_exit 0
22222 _ACEOF
22223 ac_clean_files=$ac_clean_files_save
22224
22225 test $ac_write_fail = 0 ||
22226   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22227
22228
22229 # configure is writing to config.log, and then calls config.status.
22230 # config.status does its own redirection, appending to config.log.
22231 # Unfortunately, on DOS this fails, as config.log is still kept open
22232 # by configure, so config.status won't be able to write to it; its
22233 # output is simply discarded.  So we exec the FD to /dev/null,
22234 # effectively closing config.log, so it can be properly (re)opened and
22235 # appended to by config.status.  When coming back to configure, we
22236 # need to make the FD available again.
22237 if test "$no_create" != yes; then
22238   ac_cs_success=:
22239   ac_config_status_args=
22240   test "$silent" = yes &&
22241     ac_config_status_args="$ac_config_status_args --quiet"
22242   exec 5>/dev/null
22243   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22244   exec 5>>config.log
22245   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22246   # would make configure fail if this is the last instruction.
22247   $ac_cs_success || as_fn_exit 1
22248 fi
22249 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22250   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22251 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22252 fi
22253
22254
22255 if test "$with_pam" = "yes"; then
22256     case $host in
22257         *-*-hpux*)
22258             if test -f /usr/lib/security/libpam_hpsec.so.1; then
22259                 { $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
22260 $as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
22261                 { $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
22262 $as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
22263             fi
22264             ;;
22265         *-*-linux*)
22266             { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
22267 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
22268             ;;
22269     esac
22270 fi
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362