Imported Upstream version 1.8.7
[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.7.
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.7'
574 PACKAGE_STRING='sudo 1.8.7'
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_c_werror_flag=
616 ac_subst_vars='LTLIBOBJS
617 KRB5CONFIG
618 LIBOBJS
619 FLEX
620 YFLAGS
621 YACC
622 NROFFPROG
623 MANDOCPROG
624 TRPROG
625 UNAMEPROG
626 OTOOL64
627 OTOOL
628 LIPO
629 NMEDIT
630 DSYMUTIL
631 MANIFEST_TOOL
632 AWK
633 STRIP
634 ac_ct_AR
635 DLLTOOL
636 OBJDUMP
637 LN_S
638 NM
639 ac_ct_DUMPBIN
640 DUMPBIN
641 LD
642 FGREP
643 EGREP
644 GREP
645 SED
646 host_os
647 host_vendor
648 host_cpu
649 host
650 build_os
651 build_vendor
652 build_cpu
653 build
654 RANLIB
655 AR
656 CPP
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CC
661 PLUGINDIR
662 pam_session
663 editor
664 secure_path
665 netsvc_conf
666 nsswitch_conf
667 sssd_lib
668 ldap_secret
669 ldap_conf
670 path_info
671 root_sudo
672 insults
673 tty_tickets
674 passwd_tries
675 env_reset
676 env_editor
677 runas_default
678 fqdn
679 badpass_message
680 mailsub
681 mailto
682 mail_no_perms
683 mail_no_host
684 mail_no_user
685 ignore_dot
686 loglen
687 badpri
688 goodpri
689 logfac
690 lecture
691 long_otp_prompt
692 passprompt
693 umask_override
694 sudo_umask
695 password_timeout
696 timeout
697 timedir
698 iolog_dir
699 NO_VIZ
700 SSP_CFLAGS
701 SSP_LDFLAGS
702 PIE_CFLAGS
703 PIE_LDFLAGS
704 CROSS_COMPILING
705 COMPAT_TEST_PROGS
706 LOCALEDIR_SUFFIX
707 SUDO_NLS
708 LIBINTL
709 LT_STATIC
710 LIBDL
711 CONFIGURE_ARGS
712 ac_config_libobj_dir
713 LIBTOOL_DEPS
714 ZLIB_SRC
715 ZLIB
716 LOGINCAP_USAGE
717 LDAP
718 SELINUX_USAGE
719 BSDAUTH_USAGE
720 DONT_LEAK_PATH_INFO
721 INSTALL_NOEXEC
722 sesh_file
723 noexec_file
724 SOEXT
725 NOEXECDIR
726 NOEXECFILE
727 mansrcdir
728 mansectform
729 mansectsu
730 devdir
731 SEMAN
732 PSMAN
733 LCMAN
734 BAMAN
735 DEVEL
736 SUDOERS_GID
737 SUDOERS_UID
738 SUDOERS_MODE
739 SHLIB_MODE
740 MANCOMPRESSEXT
741 MANCOMPRESS
742 MANDIRTYPE
743 MANTYPE
744 AUTH_OBJS
745 OSDEFS
746 GETGROUPS_LIB
747 REPLAY_LIBS
748 AFS_LIBS
749 NET_LIBS
750 SUDOERS_LIBS
751 SUDO_LIBS
752 SUDO_OBJS
753 SUDOERS_OBJS
754 COMMON_OBJS
755 LT_LDEXPORTS
756 LT_LDDEP
757 LT_LDOPT
758 LT_LDMAP
759 LT_LDFLAGS
760 SUDOERS_LDFLAGS
761 LDFLAGS
762 CPPFLAGS
763 PROGS
764 CFLAGS
765 LIBTOOL
766 HAVE_BSM_AUDIT
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 with_otp_only
809 with_alertmail
810 with_devel
811 with_CC
812 with_rpath
813 with_blibpath
814 with_bsm_audit
815 with_linux_audit
816 with_sssd
817 with_sssd_lib
818 with_incpath
819 with_libpath
820 with_libraries
821 with_efence
822 with_csops
823 with_passwd
824 with_skey
825 with_opie
826 with_long_otp_prompt
827 with_SecurID
828 with_fwtk
829 with_kerb5
830 with_aixauth
831 with_pam
832 with_AFS
833 with_DCE
834 with_logincap
835 with_bsdauth
836 with_project
837 with_lecture
838 with_logging
839 with_logfac
840 with_goodpri
841 with_badpri
842 with_logpath
843 with_loglen
844 with_ignore_dot
845 with_mail_if_no_user
846 with_mail_if_no_host
847 with_mail_if_noperms
848 with_mailto
849 with_mailsubject
850 with_passprompt
851 with_badpass_message
852 with_fqdn
853 with_timedir
854 with_iologdir
855 with_sendmail
856 with_sudoers_mode
857 with_sudoers_uid
858 with_sudoers_gid
859 with_umask
860 with_umask_override
861 with_runas_default
862 with_exempt
863 with_editor
864 with_env_editor
865 with_passwd_tries
866 with_timeout
867 with_password_timeout
868 with_tty_tickets
869 with_insults
870 with_all_insults
871 with_classic_insults
872 with_csops_insults
873 with_hal_insults
874 with_goons_insults
875 with_nsswitch
876 with_ldap
877 with_ldap_conf_file
878 with_ldap_secret_file
879 with_pc_insults
880 with_secure_path
881 with_interfaces
882 with_stow
883 with_askpass
884 with_plugindir
885 with_man
886 with_mdoc
887 enable_authentication
888 enable_root_mailer
889 enable_setreuid
890 enable_setresuid
891 enable_shadow
892 enable_root_sudo
893 enable_log_host
894 enable_noargs_shell
895 enable_shell_sets_home
896 enable_path_info
897 enable_env_debug
898 enable_zlib
899 enable_env_reset
900 enable_warnings
901 enable_werror
902 enable_hardening
903 enable_pie
904 enable_admin_flag
905 enable_nls
906 enable_rpath
907 with_selinux
908 enable_gss_krb5_ccache_name
909 enable_shared
910 enable_static
911 with_pic
912 enable_fast_install
913 with_gnu_ld
914 with_sysroot
915 enable_libtool_lock
916 with_libtool
917 with_noexec
918 with_netsvc
919 enable_sia
920 enable_largefile
921 with_pam_login
922 enable_pam_session
923 enable_kerb5_instance
924 '
925       ac_precious_vars='build_alias
926 host_alias
927 target_alias
928 CC
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
933 CPP
934 YACC
935 YFLAGS'
936
937
938 # Initialize some variables set by options.
939 ac_init_help=
940 ac_init_version=false
941 ac_unrecognized_opts=
942 ac_unrecognized_sep=
943 # The variables have the same names as the options, with
944 # dashes changed to underlines.
945 cache_file=/dev/null
946 exec_prefix=NONE
947 no_create=
948 no_recursion=
949 prefix=NONE
950 program_prefix=NONE
951 program_suffix=NONE
952 program_transform_name=s,x,x,
953 silent=
954 site=
955 srcdir=
956 verbose=
957 x_includes=NONE
958 x_libraries=NONE
959
960 # Installation directory options.
961 # These are left unexpanded so users can "make install exec_prefix=/foo"
962 # and all the variables that are supposed to be based on exec_prefix
963 # by default will actually change.
964 # Use braces instead of parens because sh, perl, etc. also accept them.
965 # (The list follows the same order as the GNU Coding Standards.)
966 bindir='${exec_prefix}/bin'
967 sbindir='${exec_prefix}/sbin'
968 libexecdir='${exec_prefix}/libexec'
969 datarootdir='${prefix}/share'
970 datadir='${datarootdir}'
971 sysconfdir='${prefix}/etc'
972 sharedstatedir='${prefix}/com'
973 localstatedir='${prefix}/var'
974 includedir='${prefix}/include'
975 oldincludedir='/usr/include'
976 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
977 infodir='${datarootdir}/info'
978 htmldir='${docdir}'
979 dvidir='${docdir}'
980 pdfdir='${docdir}'
981 psdir='${docdir}'
982 libdir='${exec_prefix}/lib'
983 localedir='${datarootdir}/locale'
984 mandir='${datarootdir}/man'
985
986 ac_prev=
987 ac_dashdash=
988 for ac_option
989 do
990   # If the previous option needs an argument, assign it.
991   if test -n "$ac_prev"; then
992     eval $ac_prev=\$ac_option
993     ac_prev=
994     continue
995   fi
996
997   case $ac_option in
998   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999   *=)   ac_optarg= ;;
1000   *)    ac_optarg=yes ;;
1001   esac
1002
1003   # Accept the important Cygnus configure options, so we can diagnose typos.
1004
1005   case $ac_dashdash$ac_option in
1006   --)
1007     ac_dashdash=yes ;;
1008
1009   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010     ac_prev=bindir ;;
1011   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012     bindir=$ac_optarg ;;
1013
1014   -build | --build | --buil | --bui | --bu)
1015     ac_prev=build_alias ;;
1016   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017     build_alias=$ac_optarg ;;
1018
1019   -cache-file | --cache-file | --cache-fil | --cache-fi \
1020   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021     ac_prev=cache_file ;;
1022   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024     cache_file=$ac_optarg ;;
1025
1026   --config-cache | -C)
1027     cache_file=config.cache ;;
1028
1029   -datadir | --datadir | --datadi | --datad)
1030     ac_prev=datadir ;;
1031   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032     datadir=$ac_optarg ;;
1033
1034   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035   | --dataroo | --dataro | --datar)
1036     ac_prev=datarootdir ;;
1037   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039     datarootdir=$ac_optarg ;;
1040
1041   -disable-* | --disable-*)
1042     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045       as_fn_error $? "invalid feature name: $ac_useropt"
1046     ac_useropt_orig=$ac_useropt
1047     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048     case $ac_user_opts in
1049       *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053          ac_unrecognized_sep=', ';;
1054     esac
1055     eval enable_$ac_useropt=no ;;
1056
1057   -docdir | --docdir | --docdi | --doc | --do)
1058     ac_prev=docdir ;;
1059   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060     docdir=$ac_optarg ;;
1061
1062   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063     ac_prev=dvidir ;;
1064   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065     dvidir=$ac_optarg ;;
1066
1067   -enable-* | --enable-*)
1068     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071       as_fn_error $? "invalid feature name: $ac_useropt"
1072     ac_useropt_orig=$ac_useropt
1073     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074     case $ac_user_opts in
1075       *"
1076 "enable_$ac_useropt"
1077 "*) ;;
1078       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079          ac_unrecognized_sep=', ';;
1080     esac
1081     eval enable_$ac_useropt=\$ac_optarg ;;
1082
1083   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085   | --exec | --exe | --ex)
1086     ac_prev=exec_prefix ;;
1087   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089   | --exec=* | --exe=* | --ex=*)
1090     exec_prefix=$ac_optarg ;;
1091
1092   -gas | --gas | --ga | --g)
1093     # Obsolete; use --with-gas.
1094     with_gas=yes ;;
1095
1096   -help | --help | --hel | --he | -h)
1097     ac_init_help=long ;;
1098   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099     ac_init_help=recursive ;;
1100   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101     ac_init_help=short ;;
1102
1103   -host | --host | --hos | --ho)
1104     ac_prev=host_alias ;;
1105   -host=* | --host=* | --hos=* | --ho=*)
1106     host_alias=$ac_optarg ;;
1107
1108   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109     ac_prev=htmldir ;;
1110   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111   | --ht=*)
1112     htmldir=$ac_optarg ;;
1113
1114   -includedir | --includedir | --includedi | --included | --include \
1115   | --includ | --inclu | --incl | --inc)
1116     ac_prev=includedir ;;
1117   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118   | --includ=* | --inclu=* | --incl=* | --inc=*)
1119     includedir=$ac_optarg ;;
1120
1121   -infodir | --infodir | --infodi | --infod | --info | --inf)
1122     ac_prev=infodir ;;
1123   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124     infodir=$ac_optarg ;;
1125
1126   -libdir | --libdir | --libdi | --libd)
1127     ac_prev=libdir ;;
1128   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129     libdir=$ac_optarg ;;
1130
1131   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132   | --libexe | --libex | --libe)
1133     ac_prev=libexecdir ;;
1134   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135   | --libexe=* | --libex=* | --libe=*)
1136     libexecdir=$ac_optarg ;;
1137
1138   -localedir | --localedir | --localedi | --localed | --locale)
1139     ac_prev=localedir ;;
1140   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141     localedir=$ac_optarg ;;
1142
1143   -localstatedir | --localstatedir | --localstatedi | --localstated \
1144   | --localstate | --localstat | --localsta | --localst | --locals)
1145     ac_prev=localstatedir ;;
1146   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148     localstatedir=$ac_optarg ;;
1149
1150   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151     ac_prev=mandir ;;
1152   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153     mandir=$ac_optarg ;;
1154
1155   -nfp | --nfp | --nf)
1156     # Obsolete; use --without-fp.
1157     with_fp=no ;;
1158
1159   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160   | --no-cr | --no-c | -n)
1161     no_create=yes ;;
1162
1163   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165     no_recursion=yes ;;
1166
1167   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169   | --oldin | --oldi | --old | --ol | --o)
1170     ac_prev=oldincludedir ;;
1171   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174     oldincludedir=$ac_optarg ;;
1175
1176   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177     ac_prev=prefix ;;
1178   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179     prefix=$ac_optarg ;;
1180
1181   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182   | --program-pre | --program-pr | --program-p)
1183     ac_prev=program_prefix ;;
1184   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186     program_prefix=$ac_optarg ;;
1187
1188   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189   | --program-suf | --program-su | --program-s)
1190     ac_prev=program_suffix ;;
1191   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193     program_suffix=$ac_optarg ;;
1194
1195   -program-transform-name | --program-transform-name \
1196   | --program-transform-nam | --program-transform-na \
1197   | --program-transform-n | --program-transform- \
1198   | --program-transform | --program-transfor \
1199   | --program-transfo | --program-transf \
1200   | --program-trans | --program-tran \
1201   | --progr-tra | --program-tr | --program-t)
1202     ac_prev=program_transform_name ;;
1203   -program-transform-name=* | --program-transform-name=* \
1204   | --program-transform-nam=* | --program-transform-na=* \
1205   | --program-transform-n=* | --program-transform-=* \
1206   | --program-transform=* | --program-transfor=* \
1207   | --program-transfo=* | --program-transf=* \
1208   | --program-trans=* | --program-tran=* \
1209   | --progr-tra=* | --program-tr=* | --program-t=*)
1210     program_transform_name=$ac_optarg ;;
1211
1212   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213     ac_prev=pdfdir ;;
1214   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215     pdfdir=$ac_optarg ;;
1216
1217   -psdir | --psdir | --psdi | --psd | --ps)
1218     ac_prev=psdir ;;
1219   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220     psdir=$ac_optarg ;;
1221
1222   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223   | -silent | --silent | --silen | --sile | --sil)
1224     silent=yes ;;
1225
1226   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227     ac_prev=sbindir ;;
1228   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229   | --sbi=* | --sb=*)
1230     sbindir=$ac_optarg ;;
1231
1232   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234   | --sharedst | --shareds | --shared | --share | --shar \
1235   | --sha | --sh)
1236     ac_prev=sharedstatedir ;;
1237   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240   | --sha=* | --sh=*)
1241     sharedstatedir=$ac_optarg ;;
1242
1243   -site | --site | --sit)
1244     ac_prev=site ;;
1245   -site=* | --site=* | --sit=*)
1246     site=$ac_optarg ;;
1247
1248   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249     ac_prev=srcdir ;;
1250   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251     srcdir=$ac_optarg ;;
1252
1253   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254   | --syscon | --sysco | --sysc | --sys | --sy)
1255     ac_prev=sysconfdir ;;
1256   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258     sysconfdir=$ac_optarg ;;
1259
1260   -target | --target | --targe | --targ | --tar | --ta | --t)
1261     ac_prev=target_alias ;;
1262   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263     target_alias=$ac_optarg ;;
1264
1265   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266     verbose=yes ;;
1267
1268   -version | --version | --versio | --versi | --vers | -V)
1269     ac_init_version=: ;;
1270
1271   -with-* | --with-*)
1272     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273     # Reject names that are not valid shell variable names.
1274     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275       as_fn_error $? "invalid package name: $ac_useropt"
1276     ac_useropt_orig=$ac_useropt
1277     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278     case $ac_user_opts in
1279       *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283          ac_unrecognized_sep=', ';;
1284     esac
1285     eval with_$ac_useropt=\$ac_optarg ;;
1286
1287   -without-* | --without-*)
1288     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291       as_fn_error $? "invalid package name: $ac_useropt"
1292     ac_useropt_orig=$ac_useropt
1293     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294     case $ac_user_opts in
1295       *"
1296 "with_$ac_useropt"
1297 "*) ;;
1298       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299          ac_unrecognized_sep=', ';;
1300     esac
1301     eval with_$ac_useropt=no ;;
1302
1303   --x)
1304     # Obsolete; use --with-x.
1305     with_x=yes ;;
1306
1307   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308   | --x-incl | --x-inc | --x-in | --x-i)
1309     ac_prev=x_includes ;;
1310   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312     x_includes=$ac_optarg ;;
1313
1314   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316     ac_prev=x_libraries ;;
1317   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319     x_libraries=$ac_optarg ;;
1320
1321   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1322 Try \`$0 --help' for more information"
1323     ;;
1324
1325   *=*)
1326     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327     # Reject names that are not valid shell variable names.
1328     case $ac_envvar in #(
1329       '' | [0-9]* | *[!_$as_cr_alnum]* )
1330       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1331     esac
1332     eval $ac_envvar=\$ac_optarg
1333     export $ac_envvar ;;
1334
1335   *)
1336     # FIXME: should be removed in autoconf 3.0.
1337     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1341     ;;
1342
1343   esac
1344 done
1345
1346 if test -n "$ac_prev"; then
1347   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348   as_fn_error $? "missing argument to $ac_option"
1349 fi
1350
1351 if test -n "$ac_unrecognized_opts"; then
1352   case $enable_option_checking in
1353     no) ;;
1354     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1355     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356   esac
1357 fi
1358
1359 # Check all directory arguments for consistency.
1360 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361                 datadir sysconfdir sharedstatedir localstatedir includedir \
1362                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363                 libdir localedir mandir
1364 do
1365   eval ac_val=\$$ac_var
1366   # Remove trailing slashes.
1367   case $ac_val in
1368     */ )
1369       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370       eval $ac_var=\$ac_val;;
1371   esac
1372   # Be sure to have absolute directory names.
1373   case $ac_val in
1374     [\\/$]* | ?:[\\/]* )  continue;;
1375     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376   esac
1377   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1378 done
1379
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1383 build=$build_alias
1384 host=$host_alias
1385 target=$target_alias
1386
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389   if test "x$build_alias" = x; then
1390     cross_compiling=maybe
1391     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1392     If a cross compiler is detected then cross compile mode will be used" >&2
1393   elif test "x$build_alias" != "x$host_alias"; then
1394     cross_compiling=yes
1395   fi
1396 fi
1397
1398 ac_tool_prefix=
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400
1401 test "$silent" = yes && exec 6>/dev/null
1402
1403
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407   as_fn_error $? "working directory cannot be determined"
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409   as_fn_error $? "pwd does not report name of working directory"
1410
1411
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414   ac_srcdir_defaulted=yes
1415   # Try the directory containing this script, then the parent directory.
1416   ac_confdir=`$as_dirname -- "$as_myself" ||
1417 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418          X"$as_myself" : 'X\(//\)[^/]' \| \
1419          X"$as_myself" : 'X\(//\)$' \| \
1420          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421 $as_echo X"$as_myself" |
1422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\/\)[^/].*/{
1427             s//\1/
1428             q
1429           }
1430           /^X\(\/\/\)$/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\).*/{
1435             s//\1/
1436             q
1437           }
1438           s/.*/./; q'`
1439   srcdir=$ac_confdir
1440   if test ! -r "$srcdir/$ac_unique_file"; then
1441     srcdir=..
1442   fi
1443 else
1444   ac_srcdir_defaulted=no
1445 fi
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1449 fi
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 ac_abs_confdir=`(
1452         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1453         pwd)`
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456   srcdir=.
1457 fi
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1461 case $srcdir in
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 esac
1464 for ac_var in $ac_precious_vars; do
1465   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466   eval ac_env_${ac_var}_value=\$${ac_var}
1467   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 done
1470
1471 #
1472 # Report the --help message.
1473 #
1474 if test "$ac_init_help" = "long"; then
1475   # Omit some internal or obsolete options to make the list less imposing.
1476   # This message is too long to be a string in the A/UX 3.1 sh.
1477   cat <<_ACEOF
1478 \`configure' configures sudo 1.8.7 to adapt to many kinds of systems.
1479
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1481
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE.  See below for descriptions of some of the useful variables.
1484
1485 Defaults for the options are specified in brackets.
1486
1487 Configuration:
1488   -h, --help              display this help and exit
1489       --help=short        display options specific to this package
1490       --help=recursive    display the short help of all the included packages
1491   -V, --version           display version information and exit
1492   -q, --quiet, --silent   do not print \`checking ...' messages
1493       --cache-file=FILE   cache test results in FILE [disabled]
1494   -C, --config-cache      alias for \`--cache-file=config.cache'
1495   -n, --no-create         do not create output files
1496       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1497
1498 Installation directories:
1499   --prefix=PREFIX         install architecture-independent files in PREFIX
1500                           [$ac_default_prefix]
1501   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1502                           [PREFIX]
1503
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1508
1509 For better control, use the options below.
1510
1511 Fine tuning of the installation directories:
1512   --bindir=DIR            user executables [EPREFIX/bin]
1513   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1514   --libexecdir=DIR        program executables [EPREFIX/libexec]
1515   --sysconfdir=DIR        read-only single-machine data [/etc]
1516   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1517   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1518   --libdir=DIR            object code libraries [EPREFIX/lib]
1519   --includedir=DIR        C header files [PREFIX/include]
1520   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1521   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1522   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1523   --infodir=DIR           info documentation [DATAROOTDIR/info]
1524   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1525   --mandir=DIR            man documentation [DATAROOTDIR/man]
1526   --docdir=DIR            documentation root [DATAROOTDIR/doc/sudo]
1527   --htmldir=DIR           html documentation [DOCDIR]
1528   --dvidir=DIR            dvi documentation [DOCDIR]
1529   --pdfdir=DIR            pdf documentation [DOCDIR]
1530   --psdir=DIR             ps documentation [DOCDIR]
1531 _ACEOF
1532
1533   cat <<\_ACEOF
1534
1535 System types:
1536   --build=BUILD     configure for building on BUILD [guessed]
1537   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542   case $ac_init_help in
1543      short | recursive ) echo "Configuration of sudo 1.8.7:";;
1544    esac
1545   cat <<\_ACEOF
1546
1547 Optional Features:
1548   --disable-option-checking  ignore unrecognized --enable/--with options
1549   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1550   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1551   --disable-authentication
1552                           Do not require authentication by default
1553   --disable-root-mailer   Don't run the mailer as root, run as the user
1554   --disable-setreuid      Don't try to use the setreuid() function
1555   --disable-setresuid     Don't try to use the setresuid() function
1556   --disable-shadow        Never use shadow passwords
1557   --disable-root-sudo     Don't allow root to run sudo
1558   --enable-log-host       Log the hostname in the log file
1559   --enable-noargs-shell   If sudo is given no arguments run a shell
1560   --enable-shell-sets-home
1561                           Set $HOME to target user in shell mode
1562   --disable-path-info     Print 'command not allowed' not 'command not found'
1563   --enable-env-debug      Whether to enable environment debugging.
1564   --enable-zlib[=PATH]    Whether to enable or disable zlib
1565   --enable-env-reset      Whether to enable environment resetting by default.
1566   --enable-warnings       Whether to enable compiler warnings
1567   --enable-werror         Whether to enable the -Werror compiler option
1568   --disable-hardening     Do not use compiler/linker exploit mitigation
1569                           options
1570   --enable-pie            Build sudo as a position independent executable.
1571   --enable-admin-flag     Whether to create a Ubuntu-style admin flag file
1572   --disable-nls           Disable natural language support using gettext
1573   --disable-rpath         Disable passing of -Rpath to the linker
1574   --enable-gss-krb5-ccache-name
1575                           Use GSS-API to set the Kerberos V cred cache name
1576   --enable-shared[=PKGS]  build shared libraries [default=yes]
1577   --enable-static[=PKGS]  build static libraries [default=yes]
1578   --enable-fast-install[=PKGS]
1579                           optimize for fast installation [default=yes]
1580   --disable-libtool-lock  avoid locking (might break parallel builds)
1581   --disable-sia           Disable SIA on Digital UNIX
1582   --disable-largefile     omit support for large files
1583   --disable-pam-session   Disable PAM session support
1584   --enable-kerb5-instance instance string to append to the username (separated
1585                           by a slash)
1586
1587 Optional Packages:
1588   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1589   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1590   --with-otp-only         deprecated
1591   --with-alertmail        deprecated
1592   --with-devel            add development options
1593   --with-CC               C compiler to use
1594   --with-rpath            deprecated, use --disable-rpath
1595   --with-blibpath=PATH    deprecated
1596   --with-bsm-audit        enable BSM audit support
1597   --with-linux-audit      enable Linux audit support
1598   --with-sssd             enable SSSD support
1599   --with-sssd-lib         path to the SSSD library
1600   --with-incpath          additional places to look for include files
1601   --with-libpath          additional places to look for libraries
1602   --with-libraries        additional libraries to link with
1603   --with-efence           link with -lefence for malloc() debugging
1604   --with-csops            add CSOps standard options
1605   --without-passwd        don't use passwd/shadow file for authentication
1606   --with-skey=DIR         enable S/Key support
1607   --with-opie=DIR         enable OPIE support
1608   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1609   --with-SecurID[=DIR]    enable SecurID support
1610   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1611   --with-kerb5[=DIR]      enable Kerberos V support
1612   --with-aixauth          enable AIX general authentication support
1613   --with-pam              enable PAM support
1614   --with-AFS              enable AFS support
1615   --with-DCE              enable DCE support
1616   --with-logincap         enable BSD login class support
1617   --with-bsdauth          enable BSD authentication support
1618   --with-project          enable Solaris project support
1619   --without-lecture       don't print lecture for first-time sudoer
1620   --with-logging          log via syslog, file, or both
1621   --with-logfac           syslog facility to log with (default is "auth")
1622   --with-goodpri          syslog priority for commands (def is "notice")
1623   --with-badpri           syslog priority for failures (def is "alert")
1624   --with-logpath          path to the sudo log file
1625   --with-loglen           maximum length of a log file line (default is 80)
1626   --with-ignore-dot       ignore '.' in the PATH
1627   --without-mail-if-no-user
1628                           do not send mail if user not in sudoers
1629   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1630   --with-mail-if-noperms  send mail if user not allowed to run command
1631   --with-mailto           who should get sudo mail (default is "root")
1632   --with-mailsubject      subject of sudo mail
1633   --with-passprompt       default password prompt
1634   --with-badpass-message  message the user sees when the password is wrong
1635   --with-fqdn             expect fully qualified hosts in sudoers
1636   --with-timedir          path to the sudo timestamp dir
1637   --with-iologdir=DIR     directory to store sudo I/O log files in
1638   --with-sendmail         set path to sendmail
1639   --without-sendmail      do not send mail at all
1640   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1641   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1642   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1643   --with-umask            umask with which the prog should run (default is
1644                           022)
1645   --without-umask         Preserves the umask of the user invoking sudo.
1646   --with-umask-override   Use the umask specified in sudoers even if it is
1647                           less restrictive than the user's.
1648   --with-runas-default    User to run commands as (default is "root")
1649   --with-exempt=group     no passwd needed for users in this group
1650   --with-editor=path      Default editor for visudo (defaults to vi)
1651   --with-env-editor       Use the environment variable EDITOR for visudo
1652   --with-passwd-tries     number of tries to enter password (default is 3)
1653   --with-timeout          minutes before sudo asks for passwd again (def is 5
1654                           minutes)
1655   --with-password-timeout passwd prompt timeout in minutes (default is 5
1656                           minutes)
1657   --with-tty-tickets      use a different ticket file for each tty
1658   --with-insults          insult the user for entering an incorrect password
1659   --with-all-insults      include all the sudo insult sets
1660   --with-classic-insults  include the insults from the "classic" sudo
1661   --with-csops-insults    include CSOps insults
1662   --with-hal-insults      include 2001-like insults
1663   --with-goons-insults    include the insults from the "Goon Show"
1664   --with-nsswitch[=PATH]  path to nsswitch.conf
1665   --with-ldap[=DIR]       enable LDAP support
1666   --with-ldap-conf-file   path to LDAP configuration file
1667   --with-ldap-secret-file path to LDAP secret password file
1668   --with-pc-insults       replace politically incorrect insults with less
1669                           offensive ones
1670   --with-secure-path      override the user's path with a built-in one
1671   --without-interfaces    don't try to read the ip addr of ether interfaces
1672   --with-stow             deprecated
1673   --with-askpass=PATH     Fully qualified pathname of askpass helper
1674   --with-plugindir        set directory to load plugins from
1675   --with-man              manual pages use man macros
1676   --with-mdoc             manual pages use mdoc macros
1677   --with-selinux          enable SELinux support
1678   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1679                           both]
1680   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1681   --with-sysroot=DIR Search for dependent libraries within DIR
1682                         (or the compiler's sysroot if not specified).
1683   --with-libtool=PATH     specify path to libtool
1684   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1685   --with-netsvc[=PATH]    path to netsvc.conf
1686   --with-pam-login        enable specific PAM session for sudo -i
1687
1688 Some influential environment variables:
1689   CC          C compiler command
1690   CFLAGS      C compiler flags
1691   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1692               nonstandard directory <lib dir>
1693   LIBS        libraries to pass to the linker, e.g. -l<library>
1694   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1695               you have headers in a nonstandard directory <include dir>
1696   CPP         C preprocessor
1697   YACC        The `Yet Another Compiler Compiler' implementation to use.
1698               Defaults to the first program found out of: `bison -y', `byacc',
1699               `yacc'.
1700   YFLAGS      The list of arguments that will be passed by default to $YACC.
1701               This script will default YFLAGS to the empty string to avoid a
1702               default value of `-d' given by some make applications.
1703
1704 Use these variables to override the choices made by `configure' or to help
1705 it to find libraries and programs with nonstandard names/locations.
1706
1707 Report bugs to <http://www.sudo.ws/bugs/>.
1708 _ACEOF
1709 ac_status=$?
1710 fi
1711
1712 if test "$ac_init_help" = "recursive"; then
1713   # If there are subdirs, report their specific --help.
1714   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1715     test -d "$ac_dir" ||
1716       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1717       continue
1718     ac_builddir=.
1719
1720 case "$ac_dir" in
1721 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 *)
1723   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1724   # A ".." for each directory in $ac_dir_suffix.
1725   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1726   case $ac_top_builddir_sub in
1727   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1729   esac ;;
1730 esac
1731 ac_abs_top_builddir=$ac_pwd
1732 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1733 # for backward compatibility:
1734 ac_top_builddir=$ac_top_build_prefix
1735
1736 case $srcdir in
1737   .)  # We are building in place.
1738     ac_srcdir=.
1739     ac_top_srcdir=$ac_top_builddir_sub
1740     ac_abs_top_srcdir=$ac_pwd ;;
1741   [\\/]* | ?:[\\/]* )  # Absolute name.
1742     ac_srcdir=$srcdir$ac_dir_suffix;
1743     ac_top_srcdir=$srcdir
1744     ac_abs_top_srcdir=$srcdir ;;
1745   *) # Relative name.
1746     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1747     ac_top_srcdir=$ac_top_build_prefix$srcdir
1748     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1749 esac
1750 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1751
1752     cd "$ac_dir" || { ac_status=$?; continue; }
1753     # Check for guested configure.
1754     if test -f "$ac_srcdir/configure.gnu"; then
1755       echo &&
1756       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1757     elif test -f "$ac_srcdir/configure"; then
1758       echo &&
1759       $SHELL "$ac_srcdir/configure" --help=recursive
1760     else
1761       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1762     fi || ac_status=$?
1763     cd "$ac_pwd" || { ac_status=$?; break; }
1764   done
1765 fi
1766
1767 test -n "$ac_init_help" && exit $ac_status
1768 if $ac_init_version; then
1769   cat <<\_ACEOF
1770 sudo configure 1.8.7
1771 generated by GNU Autoconf 2.68
1772
1773 Copyright (C) 2010 Free Software Foundation, Inc.
1774 This configure script is free software; the Free Software Foundation
1775 gives unlimited permission to copy, distribute and modify it.
1776 _ACEOF
1777   exit
1778 fi
1779
1780 ## ------------------------ ##
1781 ## Autoconf initialization. ##
1782 ## ------------------------ ##
1783
1784 # ac_fn_c_try_compile LINENO
1785 # --------------------------
1786 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_compile ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   rm -f conftest.$ac_objext
1791   if { { ac_try="$ac_compile"
1792 case "(($ac_try" in
1793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794   *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798   (eval "$ac_compile") 2>conftest.err
1799   ac_status=$?
1800   if test -s conftest.err; then
1801     grep -v '^ *+' conftest.err >conftest.er1
1802     cat conftest.er1 >&5
1803     mv -f conftest.er1 conftest.err
1804   fi
1805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806   test $ac_status = 0; } && {
1807          test -z "$ac_c_werror_flag" ||
1808          test ! -s conftest.err
1809        } && test -s conftest.$ac_objext; then :
1810   ac_retval=0
1811 else
1812   $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815         ac_retval=1
1816 fi
1817   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818   as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_compile
1821
1822 # ac_fn_c_try_link LINENO
1823 # -----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_link ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   rm -f conftest.$ac_objext conftest$ac_exeext
1829   if { { ac_try="$ac_link"
1830 case "(($ac_try" in
1831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832   *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836   (eval "$ac_link") 2>conftest.err
1837   ac_status=$?
1838   if test -s conftest.err; then
1839     grep -v '^ *+' conftest.err >conftest.er1
1840     cat conftest.er1 >&5
1841     mv -f conftest.er1 conftest.err
1842   fi
1843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844   test $ac_status = 0; } && {
1845          test -z "$ac_c_werror_flag" ||
1846          test ! -s conftest.err
1847        } && test -s conftest$ac_exeext && {
1848          test "$cross_compiling" = yes ||
1849          $as_test_x conftest$ac_exeext
1850        }; then :
1851   ac_retval=0
1852 else
1853   $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856         ac_retval=1
1857 fi
1858   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1859   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1860   # interfere with the next link command; also delete a directory that is
1861   # left behind by Apple's compiler.  We do this before executing the actions.
1862   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864   as_fn_set_status $ac_retval
1865
1866 } # ac_fn_c_try_link
1867
1868 # ac_fn_c_try_cpp LINENO
1869 # ----------------------
1870 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_c_try_cpp ()
1872 {
1873   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874   if { { ac_try="$ac_cpp conftest.$ac_ext"
1875 case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1882   ac_status=$?
1883   if test -s conftest.err; then
1884     grep -v '^ *+' conftest.err >conftest.er1
1885     cat conftest.er1 >&5
1886     mv -f conftest.er1 conftest.err
1887   fi
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; } > conftest.i && {
1890          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1891          test ! -s conftest.err
1892        }; then :
1893   ac_retval=0
1894 else
1895   $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898     ac_retval=1
1899 fi
1900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901   as_fn_set_status $ac_retval
1902
1903 } # ac_fn_c_try_cpp
1904
1905 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists and can be compiled using the include files in
1908 # INCLUDES, setting the cache variable VAR accordingly.
1909 ac_fn_c_check_header_compile ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915   $as_echo_n "(cached) " >&6
1916 else
1917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 $4
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923   eval "$3=yes"
1924 else
1925   eval "$3=no"
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 fi
1929 eval ac_res=\$$3
1930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934 } # ac_fn_c_check_header_compile
1935
1936 # ac_fn_c_try_run LINENO
1937 # ----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1939 # that executables *can* be run.
1940 ac_fn_c_try_run ()
1941 {
1942   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943   if { { ac_try="$ac_link"
1944 case "(($ac_try" in
1945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946   *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950   (eval "$ac_link") 2>&5
1951   ac_status=$?
1952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1954   { { case "(($ac_try" in
1955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956   *) ac_try_echo=$ac_try;;
1957 esac
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 $as_echo "$ac_try_echo"; } >&5
1960   (eval "$ac_try") 2>&5
1961   ac_status=$?
1962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963   test $ac_status = 0; }; }; then :
1964   ac_retval=0
1965 else
1966   $as_echo "$as_me: program exited with status $ac_status" >&5
1967        $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970        ac_retval=$ac_status
1971 fi
1972   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974   as_fn_set_status $ac_retval
1975
1976 } # ac_fn_c_try_run
1977
1978 # ac_fn_c_check_func LINENO FUNC VAR
1979 # ----------------------------------
1980 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1981 ac_fn_c_check_func ()
1982 {
1983   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987   $as_echo_n "(cached) " >&6
1988 else
1989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h.  */
1991 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1993 #define $2 innocuous_$2
1994
1995 /* System header to define __stub macros and hopefully few prototypes,
1996     which can conflict with char $2 (); below.
1997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1998     <limits.h> exists even on freestanding compilers.  */
1999
2000 #ifdef __STDC__
2001 # include <limits.h>
2002 #else
2003 # include <assert.h>
2004 #endif
2005
2006 #undef $2
2007
2008 /* Override any GCC internal prototype to avoid an error.
2009    Use char because int might match the return type of a GCC
2010    builtin and then its argument prototype would still apply.  */
2011 #ifdef __cplusplus
2012 extern "C"
2013 #endif
2014 char $2 ();
2015 /* The GNU C library defines this for functions which it implements
2016     to always fail with ENOSYS.  Some functions are actually named
2017     something starting with __ and the normal name is an alias.  */
2018 #if defined __stub_$2 || defined __stub___$2
2019 choke me
2020 #endif
2021
2022 int
2023 main ()
2024 {
2025 return $2 ();
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_link "$LINENO"; then :
2031   eval "$3=yes"
2032 else
2033   eval "$3=no"
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext \
2036     conftest$ac_exeext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$3
2039                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043 } # ac_fn_c_check_func
2044
2045 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2046 # -------------------------------------------
2047 # Tests whether TYPE exists after having included INCLUDES, setting cache
2048 # variable VAR accordingly.
2049 ac_fn_c_check_type ()
2050 {
2051   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055   $as_echo_n "(cached) " >&6
2056 else
2057   eval "$3=no"
2058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h.  */
2060 $4
2061 int
2062 main ()
2063 {
2064 if (sizeof ($2))
2065          return 0;
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h.  */
2073 $4
2074 int
2075 main ()
2076 {
2077 if (sizeof (($2)))
2078             return 0;
2079   ;
2080   return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084
2085 else
2086   eval "$3=yes"
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 fi
2092 eval ac_res=\$$3
2093                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096
2097 } # ac_fn_c_check_type
2098
2099 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2100 # -------------------------------------------------------
2101 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2102 # the include files in INCLUDES and setting the cache variable VAR
2103 # accordingly.
2104 ac_fn_c_check_header_mongrel ()
2105 {
2106   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107   if eval \${$3+:} false; then :
2108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval \${$3+:} false; then :
2111   $as_echo_n "(cached) " >&6
2112 fi
2113 eval ac_res=\$$3
2114                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116 else
2117   # Is the header compilable?
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2119 $as_echo_n "checking $2 usability... " >&6; }
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h.  */
2122 $4
2123 #include <$2>
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126   ac_header_compiler=yes
2127 else
2128   ac_header_compiler=no
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2132 $as_echo "$ac_header_compiler" >&6; }
2133
2134 # Is the header present?
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2136 $as_echo_n "checking $2 presence... " >&6; }
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 #include <$2>
2140 _ACEOF
2141 if ac_fn_c_try_cpp "$LINENO"; then :
2142   ac_header_preproc=yes
2143 else
2144   ac_header_preproc=no
2145 fi
2146 rm -f conftest.err conftest.i conftest.$ac_ext
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2148 $as_echo "$ac_header_preproc" >&6; }
2149
2150 # So?  What about this header?
2151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2152   yes:no: )
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2154 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2155     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157     ;;
2158   no:yes:* )
2159     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2160 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2161     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2162 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2163     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2164 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2165     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2166 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2167     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2168 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2169 ( $as_echo "## --------------------------------------- ##
2170 ## Report this to http://www.sudo.ws/bugs/ ##
2171 ## --------------------------------------- ##"
2172      ) | sed "s/^/$as_me: WARNING:     /" >&2
2173     ;;
2174 esac
2175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \${$3+:} false; then :
2178   $as_echo_n "(cached) " >&6
2179 else
2180   eval "$3=\$ac_header_compiler"
2181 fi
2182 eval ac_res=\$$3
2183                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 fi
2186   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187
2188 } # ac_fn_c_check_header_mongrel
2189
2190 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2191 # ----------------------------------------------------
2192 # Tries to find if the field MEMBER exists in type AGGR, after including
2193 # INCLUDES, setting cache variable VAR accordingly.
2194 ac_fn_c_check_member ()
2195 {
2196   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2198 $as_echo_n "checking for $2.$3... " >&6; }
2199 if eval \${$4+:} false; then :
2200   $as_echo_n "(cached) " >&6
2201 else
2202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h.  */
2204 $5
2205 int
2206 main ()
2207 {
2208 static $2 ac_aggr;
2209 if (ac_aggr.$3)
2210 return 0;
2211   ;
2212   return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_c_try_compile "$LINENO"; then :
2216   eval "$4=yes"
2217 else
2218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h.  */
2220 $5
2221 int
2222 main ()
2223 {
2224 static $2 ac_aggr;
2225 if (sizeof ac_aggr.$3)
2226 return 0;
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232   eval "$4=yes"
2233 else
2234   eval "$4=no"
2235 fi
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 fi
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 fi
2240 eval ac_res=\$$4
2241                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244
2245 } # ac_fn_c_check_member
2246
2247 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2248 # --------------------------------------------
2249 # Tries to find the compile-time value of EXPR in a program that includes
2250 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2251 # computed
2252 ac_fn_c_compute_int ()
2253 {
2254   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255   if test "$cross_compiling" = yes; then
2256     # Depending upon the size, compute the lo and hi bounds.
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $4
2260 int
2261 main ()
2262 {
2263 static int test_array [1 - 2 * !(($2) >= 0)];
2264 test_array [0] = 0
2265
2266   ;
2267   return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271   ac_lo=0 ac_mid=0
2272   while :; do
2273     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h.  */
2275 $4
2276 int
2277 main ()
2278 {
2279 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2280 test_array [0] = 0
2281
2282   ;
2283   return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287   ac_hi=$ac_mid; break
2288 else
2289   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2290                         if test $ac_lo -le $ac_mid; then
2291                           ac_lo= ac_hi=
2292                           break
2293                         fi
2294                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297   done
2298 else
2299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h.  */
2301 $4
2302 int
2303 main ()
2304 {
2305 static int test_array [1 - 2 * !(($2) < 0)];
2306 test_array [0] = 0
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 if ac_fn_c_try_compile "$LINENO"; then :
2313   ac_hi=-1 ac_mid=-1
2314   while :; do
2315     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h.  */
2317 $4
2318 int
2319 main ()
2320 {
2321 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2322 test_array [0] = 0
2323
2324   ;
2325   return 0;
2326 }
2327 _ACEOF
2328 if ac_fn_c_try_compile "$LINENO"; then :
2329   ac_lo=$ac_mid; break
2330 else
2331   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2332                         if test $ac_mid -le $ac_hi; then
2333                           ac_lo= ac_hi=
2334                           break
2335                         fi
2336                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339   done
2340 else
2341   ac_lo= ac_hi=
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 # Binary search between lo and hi bounds.
2347 while test "x$ac_lo" != "x$ac_hi"; do
2348   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h.  */
2351 $4
2352 int
2353 main ()
2354 {
2355 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2356 test_array [0] = 0
2357
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 if ac_fn_c_try_compile "$LINENO"; then :
2363   ac_hi=$ac_mid
2364 else
2365   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2366 fi
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 done
2369 case $ac_lo in #((
2370 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2371 '') ac_retval=1 ;;
2372 esac
2373   else
2374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h.  */
2376 $4
2377 static long int longval () { return $2; }
2378 static unsigned long int ulongval () { return $2; }
2379 #include <stdio.h>
2380 #include <stdlib.h>
2381 int
2382 main ()
2383 {
2384
2385   FILE *f = fopen ("conftest.val", "w");
2386   if (! f)
2387     return 1;
2388   if (($2) < 0)
2389     {
2390       long int i = longval ();
2391       if (i != ($2))
2392         return 1;
2393       fprintf (f, "%ld", i);
2394     }
2395   else
2396     {
2397       unsigned long int i = ulongval ();
2398       if (i != ($2))
2399         return 1;
2400       fprintf (f, "%lu", i);
2401     }
2402   /* Do not output a trailing newline, as this causes \r\n confusion
2403      on some platforms.  */
2404   return ferror (f) || fclose (f) != 0;
2405
2406   ;
2407   return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_c_try_run "$LINENO"; then :
2411   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2412 else
2413   ac_retval=1
2414 fi
2415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2416   conftest.$ac_objext conftest.beam conftest.$ac_ext
2417 rm -f conftest.val
2418
2419   fi
2420   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421   as_fn_set_status $ac_retval
2422
2423 } # ac_fn_c_compute_int
2424
2425 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2426 # ---------------------------------------------
2427 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2428 # accordingly.
2429 ac_fn_c_check_decl ()
2430 {
2431   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432   as_decl_name=`echo $2|sed 's/ *(.*//'`
2433   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2435 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2436 if eval \${$3+:} false; then :
2437   $as_echo_n "(cached) " >&6
2438 else
2439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h.  */
2441 $4
2442 int
2443 main ()
2444 {
2445 #ifndef $as_decl_name
2446 #ifdef __cplusplus
2447   (void) $as_decl_use;
2448 #else
2449   (void) $as_decl_name;
2450 #endif
2451 #endif
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 if ac_fn_c_try_compile "$LINENO"; then :
2458   eval "$3=yes"
2459 else
2460   eval "$3=no"
2461 fi
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 fi
2464 eval ac_res=\$$3
2465                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2468
2469 } # ac_fn_c_check_decl
2470 cat >config.log <<_ACEOF
2471 This file contains any messages produced by compilers while
2472 running configure, to aid debugging if configure makes a mistake.
2473
2474 It was created by sudo $as_me 1.8.7, which was
2475 generated by GNU Autoconf 2.68.  Invocation command line was
2476
2477   $ $0 $@
2478
2479 _ACEOF
2480 exec 5>>config.log
2481 {
2482 cat <<_ASUNAME
2483 ## --------- ##
2484 ## Platform. ##
2485 ## --------- ##
2486
2487 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2488 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2489 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2490 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2491 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2492
2493 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2494 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2495
2496 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2497 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2498 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2499 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2500 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2501 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2502 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2503
2504 _ASUNAME
2505
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511     $as_echo "PATH: $as_dir"
2512   done
2513 IFS=$as_save_IFS
2514
2515 } >&5
2516
2517 cat >&5 <<_ACEOF
2518
2519
2520 ## ----------- ##
2521 ## Core tests. ##
2522 ## ----------- ##
2523
2524 _ACEOF
2525
2526
2527 # Keep a trace of the command line.
2528 # Strip out --no-create and --no-recursion so they do not pile up.
2529 # Strip out --silent because we don't want to record it for future runs.
2530 # Also quote any args containing shell meta-characters.
2531 # Make two passes to allow for proper duplicate-argument suppression.
2532 ac_configure_args=
2533 ac_configure_args0=
2534 ac_configure_args1=
2535 ac_must_keep_next=false
2536 for ac_pass in 1 2
2537 do
2538   for ac_arg
2539   do
2540     case $ac_arg in
2541     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2542     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2543     | -silent | --silent | --silen | --sile | --sil)
2544       continue ;;
2545     *\'*)
2546       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2547     esac
2548     case $ac_pass in
2549     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2550     2)
2551       as_fn_append ac_configure_args1 " '$ac_arg'"
2552       if test $ac_must_keep_next = true; then
2553         ac_must_keep_next=false # Got value, back to normal.
2554       else
2555         case $ac_arg in
2556           *=* | --config-cache | -C | -disable-* | --disable-* \
2557           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2558           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2559           | -with-* | --with-* | -without-* | --without-* | --x)
2560             case "$ac_configure_args0 " in
2561               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2562             esac
2563             ;;
2564           -* ) ac_must_keep_next=true ;;
2565         esac
2566       fi
2567       as_fn_append ac_configure_args " '$ac_arg'"
2568       ;;
2569     esac
2570   done
2571 done
2572 { ac_configure_args0=; unset ac_configure_args0;}
2573 { ac_configure_args1=; unset ac_configure_args1;}
2574
2575 # When interrupted or exit'd, cleanup temporary files, and complete
2576 # config.log.  We remove comments because anyway the quotes in there
2577 # would cause problems or look ugly.
2578 # WARNING: Use '\'' to represent an apostrophe within the trap.
2579 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2580 trap 'exit_status=$?
2581   # Save into config.log some information that might help in debugging.
2582   {
2583     echo
2584
2585     $as_echo "## ---------------- ##
2586 ## Cache variables. ##
2587 ## ---------------- ##"
2588     echo
2589     # The following way of writing the cache mishandles newlines in values,
2590 (
2591   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2592     eval ac_val=\$$ac_var
2593     case $ac_val in #(
2594     *${as_nl}*)
2595       case $ac_var in #(
2596       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2597 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2598       esac
2599       case $ac_var in #(
2600       _ | IFS | as_nl) ;; #(
2601       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2602       *) { eval $ac_var=; unset $ac_var;} ;;
2603       esac ;;
2604     esac
2605   done
2606   (set) 2>&1 |
2607     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2608     *${as_nl}ac_space=\ *)
2609       sed -n \
2610         "s/'\''/'\''\\\\'\'''\''/g;
2611           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2612       ;; #(
2613     *)
2614       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2615       ;;
2616     esac |
2617     sort
2618 )
2619     echo
2620
2621     $as_echo "## ----------------- ##
2622 ## Output variables. ##
2623 ## ----------------- ##"
2624     echo
2625     for ac_var in $ac_subst_vars
2626     do
2627       eval ac_val=\$$ac_var
2628       case $ac_val in
2629       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2630       esac
2631       $as_echo "$ac_var='\''$ac_val'\''"
2632     done | sort
2633     echo
2634
2635     if test -n "$ac_subst_files"; then
2636       $as_echo "## ------------------- ##
2637 ## File substitutions. ##
2638 ## ------------------- ##"
2639       echo
2640       for ac_var in $ac_subst_files
2641       do
2642         eval ac_val=\$$ac_var
2643         case $ac_val in
2644         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2645         esac
2646         $as_echo "$ac_var='\''$ac_val'\''"
2647       done | sort
2648       echo
2649     fi
2650
2651     if test -s confdefs.h; then
2652       $as_echo "## ----------- ##
2653 ## confdefs.h. ##
2654 ## ----------- ##"
2655       echo
2656       cat confdefs.h
2657       echo
2658     fi
2659     test "$ac_signal" != 0 &&
2660       $as_echo "$as_me: caught signal $ac_signal"
2661     $as_echo "$as_me: exit $exit_status"
2662   } >&5
2663   rm -f core *.core core.conftest.* &&
2664     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2665     exit $exit_status
2666 ' 0
2667 for ac_signal in 1 2 13 15; do
2668   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2669 done
2670 ac_signal=0
2671
2672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2673 rm -f -r conftest* confdefs.h
2674
2675 $as_echo "/* confdefs.h */" > confdefs.h
2676
2677 # Predefined preprocessor variables.
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_NAME "$PACKAGE_NAME"
2681 _ACEOF
2682
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2685 _ACEOF
2686
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2689 _ACEOF
2690
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_STRING "$PACKAGE_STRING"
2693 _ACEOF
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2697 _ACEOF
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_URL "$PACKAGE_URL"
2701 _ACEOF
2702
2703
2704 # Let the site file select an alternate cache file if it wants to.
2705 # Prefer an explicitly selected file to automatically selected ones.
2706 ac_site_file1=NONE
2707 ac_site_file2=NONE
2708 if test -n "$CONFIG_SITE"; then
2709   # We do not want a PATH search for config.site.
2710   case $CONFIG_SITE in #((
2711     -*)  ac_site_file1=./$CONFIG_SITE;;
2712     */*) ac_site_file1=$CONFIG_SITE;;
2713     *)   ac_site_file1=./$CONFIG_SITE;;
2714   esac
2715 elif test "x$prefix" != xNONE; then
2716   ac_site_file1=$prefix/share/config.site
2717   ac_site_file2=$prefix/etc/config.site
2718 else
2719   ac_site_file1=$ac_default_prefix/share/config.site
2720   ac_site_file2=$ac_default_prefix/etc/config.site
2721 fi
2722 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2723 do
2724   test "x$ac_site_file" = xNONE && continue
2725   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2726     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2727 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2728     sed 's/^/| /' "$ac_site_file" >&5
2729     . "$ac_site_file" \
2730       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 as_fn_error $? "failed to load site script $ac_site_file
2733 See \`config.log' for more details" "$LINENO" 5; }
2734   fi
2735 done
2736
2737 if test -r "$cache_file"; then
2738   # Some versions of bash will fail to source /dev/null (special files
2739   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2740   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2741     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2742 $as_echo "$as_me: loading cache $cache_file" >&6;}
2743     case $cache_file in
2744       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2745       *)                      . "./$cache_file";;
2746     esac
2747   fi
2748 else
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2750 $as_echo "$as_me: creating cache $cache_file" >&6;}
2751   >$cache_file
2752 fi
2753
2754 # Check that the precious variables saved in the cache have kept the same
2755 # value.
2756 ac_cache_corrupted=false
2757 for ac_var in $ac_precious_vars; do
2758   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2759   eval ac_new_set=\$ac_env_${ac_var}_set
2760   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2761   eval ac_new_val=\$ac_env_${ac_var}_value
2762   case $ac_old_set,$ac_new_set in
2763     set,)
2764       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2765 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2766       ac_cache_corrupted=: ;;
2767     ,set)
2768       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2769 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2770       ac_cache_corrupted=: ;;
2771     ,);;
2772     *)
2773       if test "x$ac_old_val" != "x$ac_new_val"; then
2774         # differences in whitespace do not lead to failure.
2775         ac_old_val_w=`echo x $ac_old_val`
2776         ac_new_val_w=`echo x $ac_new_val`
2777         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2778           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2779 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2780           ac_cache_corrupted=:
2781         else
2782           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2783 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2784           eval $ac_var=\$ac_old_val
2785         fi
2786         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2787 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2788         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2789 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2790       fi;;
2791   esac
2792   # Pass precious variables to config.status.
2793   if test "$ac_new_set" = set; then
2794     case $ac_new_val in
2795     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2796     *) ac_arg=$ac_var=$ac_new_val ;;
2797     esac
2798     case " $ac_configure_args " in
2799       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2800       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2801     esac
2802   fi
2803 done
2804 if $ac_cache_corrupted; then
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2808 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2809   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2810 fi
2811 ## -------------------- ##
2812 ## Main body of script. ##
2813 ## -------------------- ##
2814
2815 ac_ext=c
2816 ac_cpp='$CPP $CPPFLAGS'
2817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820
2821
2822 ac_config_headers="$ac_config_headers config.h pathnames.h"
2823
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2825 $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
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
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932 #
2933 # Begin initial values for man page substitution
2934 #
2935 iolog_dir=/var/log/sudo-io
2936 timedir=/var/adm/sudo
2937 timeout=5
2938 password_timeout=5
2939 sudo_umask=0022
2940 umask_override=off
2941 passprompt="Password:"
2942 long_otp_prompt=off
2943 lecture=once
2944 logfac=auth
2945 goodpri=notice
2946 badpri=alert
2947 loglen=80
2948 ignore_dot=off
2949 mail_no_user=on
2950 mail_no_host=off
2951 mail_no_perms=off
2952 mailto=root
2953 mailsub="*** SECURITY information for %h ***"
2954 badpass_message="Sorry, try again."
2955 fqdn=off
2956 runas_default=root
2957 env_editor=off
2958 env_reset=on
2959 editor=vi
2960 passwd_tries=3
2961 tty_tickets=on
2962 insults=off
2963 root_sudo=on
2964 path_info=on
2965 ldap_conf=/etc/ldap.conf
2966 ldap_secret=/etc/ldap.secret
2967 netsvc_conf=/etc/netsvc.conf
2968 noexec_file=/usr/local/libexec/sudo/sudo_noexec.so
2969 sesh_file=/usr/local/libexec/sudo/sesh
2970 nsswitch_conf=/etc/nsswitch.conf
2971 secure_path="not set"
2972 pam_session=on
2973 PLUGINDIR=/usr/local/libexec/sudo
2974 #
2975 # End initial values for man page substitution
2976 #
2977 INSTALL_NOEXEC=
2978 devdir='$(srcdir)'
2979 PROGS="sudo"
2980 : ${MANDIRTYPE='man'}
2981 : ${mansrcdir='.'}
2982 : ${SHLIB_MODE='0644'}
2983 : ${SUDOERS_MODE='0440'}
2984 : ${SUDOERS_UID='0'}
2985 : ${SUDOERS_GID='0'}
2986 DEVEL=
2987 LDAP="#"
2988 BAMAN=0
2989 LCMAN=0
2990 PSMAN=0
2991 SEMAN=0
2992 LIBINTL=
2993 ZLIB=
2994 ZLIB_SRC=
2995 AUTH_OBJS=
2996 AUTH_REG=
2997 AUTH_EXCL=
2998 AUTH_EXCL_DEF=
2999 AUTH_DEF=passwd
3000 SUDO_NLS=disabled
3001 LOCALEDIR_SUFFIX=
3002 LT_LDEXPORTS="-export-symbols \$(shlib_exp)"
3003 LT_LDDEP="\$(shlib_exp)"
3004 NO_VIZ="-DNO_VIZ"
3005 OS_INIT=os_init_common
3006
3007 CHECKSHADOW=true
3008 shadow_defs=
3009 shadow_funcs=
3010 shadow_libs=
3011 shadow_libs_optional=
3012 CONFIGURE_ARGS="$@"
3013
3014 RTLD_PRELOAD_VAR="LD_PRELOAD"
3015 RTLD_PRELOAD_ENABLE_VAR=
3016 RTLD_PRELOAD_DELIM=":"
3017 RTLD_PRELOAD_DEFAULT=
3018
3019
3020
3021 #
3022 # Prior to sudo 1.8.7, sudo stored libexec files in $libexecdir.
3023 # Starting with sudo 1.8.7, $libexecdir/sudo is used so strip
3024 # off an extraneous "/sudo" from libexecdir.
3025 #
3026 case "$libexecdir" in
3027     */sudo)
3028         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libexecdir should not include the \"sudo\" subdirectory" >&5
3029 $as_echo "$as_me: WARNING: libexecdir should not include the \"sudo\" subdirectory" >&2;}
3030         libexecdir=`expr "$libexecdir" : '\\(.*\\)/sudo$'`
3031         ;;
3032 esac
3033
3034
3035
3036 # Check whether --with-otp-only was given.
3037 if test "${with_otp_only+set}" = set; then :
3038   withval=$with_otp_only; case $with_otp_only in
3039     yes)        with_passwd="no"
3040                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
3041 $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
3042                 ;;
3043 esac
3044 fi
3045
3046
3047
3048 # Check whether --with-alertmail was given.
3049 if test "${with_alertmail+set}" = set; then :
3050   withval=$with_alertmail; case $with_alertmail in
3051     *)          with_mailto="$with_alertmail"
3052                 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
3053 $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
3054                 ;;
3055 esac
3056 fi
3057
3058
3059
3060
3061 # Check whether --with-devel was given.
3062 if test "${with_devel+set}" = set; then :
3063   withval=$with_devel; case $with_devel in
3064     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
3065 $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
3066                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
3067                 DEVEL="true"
3068                 devdir=.
3069                 ;;
3070     no)         ;;
3071     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
3072 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
3073                 ;;
3074 esac
3075 fi
3076
3077
3078
3079 # Check whether --with-CC was given.
3080 if test "${with_CC+set}" = set; then :
3081   withval=$with_CC; case $with_CC in
3082     *)          as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
3083                 ;;
3084 esac
3085 fi
3086
3087
3088
3089 # Check whether --with-rpath was given.
3090 if test "${with_rpath+set}" = set; then :
3091   withval=$with_rpath; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-rpath deprecated, rpath is now the default" >&5
3092 $as_echo "$as_me: WARNING: --with-rpath deprecated, rpath is now the default" >&2;}
3093 fi
3094
3095
3096
3097 # Check whether --with-blibpath was given.
3098 if test "${with_blibpath+set}" = set; then :
3099   withval=$with_blibpath; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-blibpath deprecated, use --with-libpath" >&5
3100 $as_echo "$as_me: WARNING: --with-blibpath deprecated, use --with-libpath" >&2;}
3101 fi
3102
3103
3104
3105 # Check whether --with-bsm-audit was given.
3106 if test "${with_bsm_audit+set}" = set; then :
3107   withval=$with_bsm_audit; case $with_bsm_audit in
3108     yes)        $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3109
3110                 SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3111                 SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3112                 ;;
3113     no)         ;;
3114     *)          as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3115                 ;;
3116 esac
3117 fi
3118
3119
3120 ac_ext=c
3121 ac_cpp='$CPP $CPPFLAGS'
3122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125 if test -n "$ac_tool_prefix"; then
3126   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_CC+:} false; then :
3131   $as_echo_n "(cached) " >&6
3132 else
3133   if test -n "$CC"; then
3134   ac_cv_prog_CC="$CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139   IFS=$as_save_IFS
3140   test -z "$as_dir" && as_dir=.
3141     for ac_exec_ext in '' $ac_executable_extensions; do
3142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145     break 2
3146   fi
3147 done
3148   done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 CC=$ac_cv_prog_CC
3154 if test -n "$CC"; then
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3157 else
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163 fi
3164 if test -z "$ac_cv_prog_CC"; then
3165   ac_ct_CC=$CC
3166   # Extract the first word of "gcc", so it can be a program name with args.
3167 set dummy gcc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3171   $as_echo_n "(cached) " >&6
3172 else
3173   if test -n "$ac_ct_CC"; then
3174   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179   IFS=$as_save_IFS
3180   test -z "$as_dir" && as_dir=.
3181     for ac_exec_ext in '' $ac_executable_extensions; do
3182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183     ac_cv_prog_ac_ct_CC="gcc"
3184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185     break 2
3186   fi
3187 done
3188   done
3189 IFS=$as_save_IFS
3190
3191 fi
3192 fi
3193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3194 if test -n "$ac_ct_CC"; then
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3196 $as_echo "$ac_ct_CC" >&6; }
3197 else
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 fi
3201
3202   if test "x$ac_ct_CC" = x; then
3203     CC=""
3204   else
3205     case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211     CC=$ac_ct_CC
3212   fi
3213 else
3214   CC="$ac_cv_prog_CC"
3215 fi
3216
3217 if test -z "$CC"; then
3218           if test -n "$ac_tool_prefix"; then
3219     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3220 set dummy ${ac_tool_prefix}cc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_CC+:} false; then :
3224   $as_echo_n "(cached) " >&6
3225 else
3226   if test -n "$CC"; then
3227   ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232   IFS=$as_save_IFS
3233   test -z "$as_dir" && as_dir=.
3234     for ac_exec_ext in '' $ac_executable_extensions; do
3235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236     ac_cv_prog_CC="${ac_tool_prefix}cc"
3237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238     break 2
3239   fi
3240 done
3241   done
3242 IFS=$as_save_IFS
3243
3244 fi
3245 fi
3246 CC=$ac_cv_prog_CC
3247 if test -n "$CC"; then
3248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3250 else
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 fi
3254
3255
3256   fi
3257 fi
3258 if test -z "$CC"; then
3259   # Extract the first word of "cc", so it can be a program name with args.
3260 set dummy cc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_CC+:} false; then :
3264   $as_echo_n "(cached) " >&6
3265 else
3266   if test -n "$CC"; then
3267   ac_cv_prog_CC="$CC" # Let the user override the test.
3268 else
3269   ac_prog_rejected=no
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275     for ac_exec_ext in '' $ac_executable_extensions; do
3276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3278        ac_prog_rejected=yes
3279        continue
3280      fi
3281     ac_cv_prog_CC="cc"
3282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283     break 2
3284   fi
3285 done
3286   done
3287 IFS=$as_save_IFS
3288
3289 if test $ac_prog_rejected = yes; then
3290   # We found a bogon in the path, so make sure we never use it.
3291   set dummy $ac_cv_prog_CC
3292   shift
3293   if test $# != 0; then
3294     # We chose a different compiler from the bogus one.
3295     # However, it has the same basename, so the bogon will be chosen
3296     # first if we set CC to just the basename; use the full file name.
3297     shift
3298     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3299   fi
3300 fi
3301 fi
3302 fi
3303 CC=$ac_cv_prog_CC
3304 if test -n "$CC"; then
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3307 else
3308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 fi
3311
3312
3313 fi
3314 if test -z "$CC"; then
3315   if test -n "$ac_tool_prefix"; then
3316   for ac_prog in cl.exe
3317   do
3318     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_CC+:} false; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   if test -n "$CC"; then
3326   ac_cv_prog_CC="$CC" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333     for ac_exec_ext in '' $ac_executable_extensions; do
3334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337     break 2
3338   fi
3339 done
3340   done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 CC=$ac_cv_prog_CC
3346 if test -n "$CC"; then
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 $as_echo "$CC" >&6; }
3349 else
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354
3355     test -n "$CC" && break
3356   done
3357 fi
3358 if test -z "$CC"; then
3359   ac_ct_CC=$CC
3360   for ac_prog in cl.exe
3361 do
3362   # Extract the first word of "$ac_prog", so it can be a program name with args.
3363 set dummy $ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3367   $as_echo_n "(cached) " >&6
3368 else
3369   if test -n "$ac_ct_CC"; then
3370   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377     for ac_exec_ext in '' $ac_executable_extensions; do
3378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379     ac_cv_prog_ac_ct_CC="$ac_prog"
3380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381     break 2
3382   fi
3383 done
3384   done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3390 if test -n "$ac_ct_CC"; then
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3392 $as_echo "$ac_ct_CC" >&6; }
3393 else
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398
3399   test -n "$ac_ct_CC" && break
3400 done
3401
3402   if test "x$ac_ct_CC" = x; then
3403     CC=""
3404   else
3405     case $cross_compiling:$ac_tool_warned in
3406 yes:)
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409 ac_tool_warned=yes ;;
3410 esac
3411     CC=$ac_ct_CC
3412   fi
3413 fi
3414
3415 fi
3416
3417
3418 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "no acceptable C compiler found in \$PATH
3421 See \`config.log' for more details" "$LINENO" 5; }
3422
3423 # Provide some information about the compiler.
3424 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3425 set X $ac_compile
3426 ac_compiler=$2
3427 for ac_option in --version -v -V -qversion; do
3428   { { ac_try="$ac_compiler $ac_option >&5"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3436   ac_status=$?
3437   if test -s conftest.err; then
3438     sed '10a\
3439 ... rest of stderr output deleted ...
3440          10q' conftest.err >conftest.er1
3441     cat conftest.er1 >&5
3442   fi
3443   rm -f conftest.er1 conftest.err
3444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445   test $ac_status = 0; }
3446 done
3447
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h.  */
3450
3451 int
3452 main ()
3453 {
3454
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 ac_clean_files_save=$ac_clean_files
3460 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3461 # Try to create an executable without -o first, disregard a.out.
3462 # It will help us diagnose broken compilers, and finding out an intuition
3463 # of exeext.
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3465 $as_echo_n "checking whether the C compiler works... " >&6; }
3466 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3467
3468 # The possible output files:
3469 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3470
3471 ac_rmfiles=
3472 for ac_file in $ac_files
3473 do
3474   case $ac_file in
3475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3476     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3477   esac
3478 done
3479 rm -f $ac_rmfiles
3480
3481 if { { ac_try="$ac_link_default"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488   (eval "$ac_link_default") 2>&5
3489   ac_status=$?
3490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491   test $ac_status = 0; }; then :
3492   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3493 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3494 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3495 # so that the user can short-circuit this test for compilers unknown to
3496 # Autoconf.
3497 for ac_file in $ac_files ''
3498 do
3499   test -f "$ac_file" || continue
3500   case $ac_file in
3501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3502         ;;
3503     [ab].out )
3504         # We found the default executable, but exeext='' is most
3505         # certainly right.
3506         break;;
3507     *.* )
3508         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3509         then :; else
3510            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3511         fi
3512         # We set ac_cv_exeext here because the later test for it is not
3513         # safe: cross compilers may not add the suffix if given an `-o'
3514         # argument, so we may need to know it at that point already.
3515         # Even if this section looks crufty: it has the advantage of
3516         # actually working.
3517         break;;
3518     * )
3519         break;;
3520   esac
3521 done
3522 test "$ac_cv_exeext" = no && ac_cv_exeext=
3523
3524 else
3525   ac_file=''
3526 fi
3527 if test -z "$ac_file"; then :
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530 $as_echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error 77 "C compiler cannot create executables
3536 See \`config.log' for more details" "$LINENO" 5; }
3537 else
3538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3539 $as_echo "yes" >&6; }
3540 fi
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3542 $as_echo_n "checking for C compiler default output file name... " >&6; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3544 $as_echo "$ac_file" >&6; }
3545 ac_exeext=$ac_cv_exeext
3546
3547 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3548 ac_clean_files=$ac_clean_files_save
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3550 $as_echo_n "checking for suffix of executables... " >&6; }
3551 if { { ac_try="$ac_link"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558   (eval "$ac_link") 2>&5
3559   ac_status=$?
3560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561   test $ac_status = 0; }; then :
3562   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3563 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3564 # work properly (i.e., refer to `conftest.exe'), while it won't with
3565 # `rm'.
3566 for ac_file in conftest.exe conftest conftest.*; do
3567   test -f "$ac_file" || continue
3568   case $ac_file in
3569     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3570     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3571           break;;
3572     * ) break;;
3573   esac
3574 done
3575 else
3576   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3579 See \`config.log' for more details" "$LINENO" 5; }
3580 fi
3581 rm -f conftest conftest$ac_cv_exeext
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3583 $as_echo "$ac_cv_exeext" >&6; }
3584
3585 rm -f conftest.$ac_ext
3586 EXEEXT=$ac_cv_exeext
3587 ac_exeext=$EXEEXT
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h.  */
3590 #include <stdio.h>
3591 int
3592 main ()
3593 {
3594 FILE *f = fopen ("conftest.out", "w");
3595  return ferror (f) || fclose (f) != 0;
3596
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 ac_clean_files="$ac_clean_files conftest.out"
3602 # Check that the compiler produces executables we can run.  If not, either
3603 # the compiler is broken, or we cross compile.
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3605 $as_echo_n "checking whether we are cross compiling... " >&6; }
3606 if test "$cross_compiling" != yes; then
3607   { { ac_try="$ac_link"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614   (eval "$ac_link") 2>&5
3615   ac_status=$?
3616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617   test $ac_status = 0; }
3618   if { ac_try='./conftest$ac_cv_exeext'
3619   { { case "(($ac_try" in
3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621   *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625   (eval "$ac_try") 2>&5
3626   ac_status=$?
3627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628   test $ac_status = 0; }; }; then
3629     cross_compiling=no
3630   else
3631     if test "$cross_compiling" = maybe; then
3632         cross_compiling=yes
3633     else
3634         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error $? "cannot run C compiled programs.
3637 If you meant to cross compile, use \`--host'.
3638 See \`config.log' for more details" "$LINENO" 5; }
3639     fi
3640   fi
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3643 $as_echo "$cross_compiling" >&6; }
3644
3645 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3646 ac_clean_files=$ac_clean_files_save
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3648 $as_echo_n "checking for suffix of object files... " >&6; }
3649 if ${ac_cv_objext+:} false; then :
3650   $as_echo_n "(cached) " >&6
3651 else
3652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h.  */
3654
3655 int
3656 main ()
3657 {
3658
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.o conftest.obj
3664 if { { ac_try="$ac_compile"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671   (eval "$ac_compile") 2>&5
3672   ac_status=$?
3673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674   test $ac_status = 0; }; then :
3675   for ac_file in conftest.o conftest.obj conftest.*; do
3676   test -f "$ac_file" || continue;
3677   case $ac_file in
3678     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3679     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3680        break;;
3681   esac
3682 done
3683 else
3684   $as_echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error $? "cannot compute suffix of object files: cannot compile
3690 See \`config.log' for more details" "$LINENO" 5; }
3691 fi
3692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3693 fi
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3695 $as_echo "$ac_cv_objext" >&6; }
3696 OBJEXT=$ac_cv_objext
3697 ac_objext=$OBJEXT
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3699 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3700 if ${ac_cv_c_compiler_gnu+:} false; then :
3701   $as_echo_n "(cached) " >&6
3702 else
3703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h.  */
3705
3706 int
3707 main ()
3708 {
3709 #ifndef __GNUC__
3710        choke me
3711 #endif
3712
3713   ;
3714   return 0;
3715 }
3716 _ACEOF
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718   ac_compiler_gnu=yes
3719 else
3720   ac_compiler_gnu=no
3721 fi
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3724
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3727 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3728 if test $ac_compiler_gnu = yes; then
3729   GCC=yes
3730 else
3731   GCC=
3732 fi
3733 ac_test_CFLAGS=${CFLAGS+set}
3734 ac_save_CFLAGS=$CFLAGS
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3736 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3737 if ${ac_cv_prog_cc_g+:} false; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   ac_save_c_werror_flag=$ac_c_werror_flag
3741    ac_c_werror_flag=yes
3742    ac_cv_prog_cc_g=no
3743    CFLAGS="-g"
3744    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h.  */
3746
3747 int
3748 main ()
3749 {
3750
3751   ;
3752   return 0;
3753 }
3754 _ACEOF
3755 if ac_fn_c_try_compile "$LINENO"; then :
3756   ac_cv_prog_cc_g=yes
3757 else
3758   CFLAGS=""
3759       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h.  */
3761
3762 int
3763 main ()
3764 {
3765
3766   ;
3767   return 0;
3768 }
3769 _ACEOF
3770 if ac_fn_c_try_compile "$LINENO"; then :
3771
3772 else
3773   ac_c_werror_flag=$ac_save_c_werror_flag
3774          CFLAGS="-g"
3775          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h.  */
3777
3778 int
3779 main ()
3780 {
3781
3782   ;
3783   return 0;
3784 }
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"; then :
3787   ac_cv_prog_cc_g=yes
3788 fi
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 fi
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794    ac_c_werror_flag=$ac_save_c_werror_flag
3795 fi
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3797 $as_echo "$ac_cv_prog_cc_g" >&6; }
3798 if test "$ac_test_CFLAGS" = set; then
3799   CFLAGS=$ac_save_CFLAGS
3800 elif test $ac_cv_prog_cc_g = yes; then
3801   if test "$GCC" = yes; then
3802     CFLAGS="-g -O2"
3803   else
3804     CFLAGS="-g"
3805   fi
3806 else
3807   if test "$GCC" = yes; then
3808     CFLAGS="-O2"
3809   else
3810     CFLAGS=
3811   fi
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3814 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3815 if ${ac_cv_prog_cc_c89+:} false; then :
3816   $as_echo_n "(cached) " >&6
3817 else
3818   ac_cv_prog_cc_c89=no
3819 ac_save_CC=$CC
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h.  */
3822 #include <stdarg.h>
3823 #include <stdio.h>
3824 #include <sys/types.h>
3825 #include <sys/stat.h>
3826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3827 struct buf { int x; };
3828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3829 static char *e (p, i)
3830      char **p;
3831      int i;
3832 {
3833   return p[i];
3834 }
3835 static char *f (char * (*g) (char **, int), char **p, ...)
3836 {
3837   char *s;
3838   va_list v;
3839   va_start (v,p);
3840   s = g (p, va_arg (v,int));
3841   va_end (v);
3842   return s;
3843 }
3844
3845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3846    function prototypes and stuff, but not '\xHH' hex character constants.
3847    These don't provoke an error unfortunately, instead are silently treated
3848    as 'x'.  The following induces an error, until -std is added to get
3849    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3850    array size at least.  It's necessary to write '\x00'==0 to get something
3851    that's true only with -std.  */
3852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853
3854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3855    inside strings and character constants.  */
3856 #define FOO(x) 'x'
3857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858
3859 int test (int i, double x);
3860 struct s1 {int (*f) (int a);};
3861 struct s2 {int (*f) (double a);};
3862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3863 int argc;
3864 char **argv;
3865 int
3866 main ()
3867 {
3868 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3869   ;
3870   return 0;
3871 }
3872 _ACEOF
3873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3874         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 do
3876   CC="$ac_save_CC $ac_arg"
3877   if ac_fn_c_try_compile "$LINENO"; then :
3878   ac_cv_prog_cc_c89=$ac_arg
3879 fi
3880 rm -f core conftest.err conftest.$ac_objext
3881   test "x$ac_cv_prog_cc_c89" != "xno" && break
3882 done
3883 rm -f conftest.$ac_ext
3884 CC=$ac_save_CC
3885
3886 fi
3887 # AC_CACHE_VAL
3888 case "x$ac_cv_prog_cc_c89" in
3889   x)
3890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3891 $as_echo "none needed" >&6; } ;;
3892   xno)
3893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3894 $as_echo "unsupported" >&6; } ;;
3895   *)
3896     CC="$CC $ac_cv_prog_cc_c89"
3897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3898 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3899 esac
3900 if test "x$ac_cv_prog_cc_c89" != xno; then :
3901
3902 fi
3903
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909
3910
3911
3912 # Check whether --with-linux-audit was given.
3913 if test "${with_linux_audit+set}" = set; then :
3914   withval=$with_linux_audit; case $with_linux_audit in
3915     yes)        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h.  */
3917 #include <libaudit.h>
3918 int
3919 main ()
3920 {
3921 int i = AUDIT_USER_CMD; (void)i;
3922   ;
3923   return 0;
3924 }
3925 _ACEOF
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927
3928                     $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3929
3930                     SUDO_LIBS="${SUDO_LIBS} -laudit"
3931                     SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3932                     SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3933
3934 else
3935
3936                     as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3937
3938 fi
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940                 ;;
3941     no)         ;;
3942     *)          as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3943                 ;;
3944 esac
3945 fi
3946
3947
3948
3949 # Check whether --with-sssd was given.
3950 if test "${with_sssd+set}" = set; then :
3951   withval=$with_sssd; case $with_sssd in
3952     yes)        SUDOERS_OBJS="${SUDOERS_OBJS} sssd.lo"
3953                 $as_echo "#define HAVE_SSSD 1" >>confdefs.h
3954
3955                 ;;
3956     no)         ;;
3957     *)          as_fn_error $? "\"--with-sssd does not take an argument.\"" "$LINENO" 5
3958                 ;;
3959 esac
3960 fi
3961
3962
3963
3964 # Check whether --with-sssd-lib was given.
3965 if test "${with_sssd_lib+set}" = set; then :
3966   withval=$with_sssd_lib;
3967 fi
3968
3969 sssd_lib="\"LIBDIR\""
3970 test -n "$with_sssd_lib" && sssd_lib="$with_sssd_lib"
3971 cat >>confdefs.h <<EOF
3972 #define _PATH_SSSD_LIB "$sssd_lib"
3973 EOF
3974
3975
3976
3977 # Check whether --with-incpath was given.
3978 if test "${with_incpath+set}" = set; then :
3979   withval=$with_incpath; case $with_incpath in
3980     yes)        as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
3981                 ;;
3982     no)         as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
3983                 ;;
3984     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3985 $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3986                 for i in ${with_incpath}; do
3987
3988     case "${CPPFLAGS}" in
3989         *"-I${i}"|*"-I${i} ")
3990             ;;
3991         *)
3992             if test X"${CPPFLAGS}" = X""; then
3993                 CPPFLAGS="-I${i}"
3994             else
3995                 CPPFLAGS="${CPPFLAGS} -I${i}"
3996             fi
3997             ;;
3998     esac
3999
4000                 done
4001                 ;;
4002 esac
4003 fi
4004
4005
4006
4007 # Check whether --with-libpath was given.
4008 if test "${with_libpath+set}" = set; then :
4009   withval=$with_libpath; case $with_libpath in
4010     yes)        as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
4011                 ;;
4012     no)         as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
4013                 ;;
4014     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
4015 $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
4016                 ;;
4017 esac
4018 fi
4019
4020
4021
4022 # Check whether --with-libraries was given.
4023 if test "${with_libraries+set}" = set; then :
4024   withval=$with_libraries; case $with_libraries in
4025     yes)        as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
4026                 ;;
4027     no)         as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
4028                 ;;
4029     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
4030 $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
4031                 ;;
4032 esac
4033 fi
4034
4035
4036
4037 # Check whether --with-efence was given.
4038 if test "${with_efence+set}" = set; then :
4039   withval=$with_efence; case $with_efence in
4040     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
4041 $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
4042                 LIBS="${LIBS} -lefence"
4043                 if test -f /usr/local/lib/libefence.a; then
4044                     with_libpath="${with_libpath} /usr/local/lib"
4045                 fi
4046                 ;;
4047     no)         ;;
4048     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
4049 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
4050                 ;;
4051 esac
4052 fi
4053
4054
4055
4056 # Check whether --with-csops was given.
4057 if test "${with_csops+set}" = set; then :
4058   withval=$with_csops; case $with_csops in
4059     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
4060 $as_echo "$as_me: Adding CSOps standard options" >&6;}
4061                 CHECKSIA=false
4062                 with_ignore_dot=yes
4063                 insults=on
4064                 with_classic_insults=yes
4065                 with_csops_insults=yes
4066                 with_env_editor=yes
4067                 : ${mansectsu='8'}
4068                 : ${mansectform='5'}
4069                 ;;
4070     no)         ;;
4071     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
4072 $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
4073                 ;;
4074 esac
4075 fi
4076
4077
4078
4079 # Check whether --with-passwd was given.
4080 if test "${with_passwd+set}" = set; then :
4081   withval=$with_passwd; case $with_passwd in
4082     yes|no)     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
4083 $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
4084                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
4085 $as_echo "$with_passwd" >&6; }
4086                 AUTH_DEF=""
4087                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
4088                 ;;
4089     *)          as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
4090                 ;;
4091 esac
4092 fi
4093
4094
4095
4096 # Check whether --with-skey was given.
4097 if test "${with_skey+set}" = set; then :
4098   withval=$with_skey; case $with_skey in
4099     no)         ;;
4100     *)          $as_echo "#define HAVE_SKEY 1" >>confdefs.h
4101
4102                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
4103 $as_echo_n "checking whether to try S/Key authentication... " >&6; }
4104                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4105 $as_echo "yes" >&6; }
4106                 AUTH_REG="$AUTH_REG S/Key"
4107                 ;;
4108 esac
4109 fi
4110
4111
4112
4113 # Check whether --with-opie was given.
4114 if test "${with_opie+set}" = set; then :
4115   withval=$with_opie; case $with_opie in
4116     no)         ;;
4117     *)          $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4118
4119                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4120 $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4121                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4122 $as_echo "yes" >&6; }
4123                 AUTH_REG="$AUTH_REG NRL_OPIE"
4124                 ;;
4125 esac
4126 fi
4127
4128
4129
4130 # Check whether --with-long-otp-prompt was given.
4131 if test "${with_long_otp_prompt+set}" = set; then :
4132   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4133     yes)        $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4134
4135                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4136 $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4137                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4138 $as_echo "yes" >&6; }
4139                 long_otp_prompt=on
4140                 ;;
4141     no)         long_otp_prompt=off
4142                 ;;
4143     *)          as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4144                 ;;
4145 esac
4146 fi
4147
4148
4149
4150 # Check whether --with-SecurID was given.
4151 if test "${with_SecurID+set}" = set; then :
4152   withval=$with_SecurID; case $with_SecurID in
4153     no)         ;;
4154     *)          $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4155
4156                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4157 $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4158                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4159 $as_echo "yes" >&6; }
4160                 AUTH_EXCL="$AUTH_EXCL SecurID"
4161                 ;;
4162 esac
4163 fi
4164
4165
4166
4167 # Check whether --with-fwtk was given.
4168 if test "${with_fwtk+set}" = set; then :
4169   withval=$with_fwtk; case $with_fwtk in
4170     no)         ;;
4171     *)          $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4172
4173                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4174 $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4175                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4176 $as_echo "yes" >&6; }
4177                 AUTH_EXCL="$AUTH_EXCL FWTK"
4178                 ;;
4179 esac
4180 fi
4181
4182
4183
4184 # Check whether --with-kerb5 was given.
4185 if test "${with_kerb5+set}" = set; then :
4186   withval=$with_kerb5; case $with_kerb5 in
4187     no)         ;;
4188     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4189 $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4190                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4191 $as_echo "yes" >&6; }
4192                 AUTH_REG="$AUTH_REG kerb5"
4193                 ;;
4194 esac
4195 fi
4196
4197
4198
4199 # Check whether --with-aixauth was given.
4200 if test "${with_aixauth+set}" = set; then :
4201   withval=$with_aixauth; case $with_aixauth in
4202     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4203     no)         ;;
4204     *)          as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4205                 ;;
4206 esac
4207 fi
4208
4209
4210
4211 # Check whether --with-pam was given.
4212 if test "${with_pam+set}" = set; then :
4213   withval=$with_pam; case $with_pam in
4214     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
4215     no)         ;;
4216     *)          as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
4217                 ;;
4218 esac
4219 fi
4220
4221
4222
4223 # Check whether --with-AFS was given.
4224 if test "${with_AFS+set}" = set; then :
4225   withval=$with_AFS; case $with_AFS in
4226     yes)        $as_echo "#define HAVE_AFS 1" >>confdefs.h
4227
4228                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4229 $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4230                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4231 $as_echo "yes" >&6; }
4232                 AUTH_REG="$AUTH_REG AFS"
4233                 ;;
4234     no)         ;;
4235     *)          as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4236                 ;;
4237 esac
4238 fi
4239
4240
4241
4242 # Check whether --with-DCE was given.
4243 if test "${with_DCE+set}" = set; then :
4244   withval=$with_DCE; case $with_DCE in
4245     yes)        $as_echo "#define HAVE_DCE 1" >>confdefs.h
4246
4247                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4248 $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4249                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4250 $as_echo "yes" >&6; }
4251                 AUTH_REG="$AUTH_REG DCE"
4252                 ;;
4253     no)         ;;
4254     *)          as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4255                 ;;
4256 esac
4257 fi
4258
4259
4260
4261 # Check whether --with-logincap was given.
4262 if test "${with_logincap+set}" = set; then :
4263   withval=$with_logincap; case $with_logincap in
4264     yes|no)     ;;
4265     *)          as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4266                 ;;
4267 esac
4268 fi
4269
4270
4271
4272 # Check whether --with-bsdauth was given.
4273 if test "${with_bsdauth+set}" = set; then :
4274   withval=$with_bsdauth; case $with_bsdauth in
4275     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4276     no)         ;;
4277     *)          as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4278                 ;;
4279 esac
4280 fi
4281
4282
4283
4284 # Check whether --with-project was given.
4285 if test "${with_project+set}" = set; then :
4286   withval=$with_project; case $with_project in
4287     yes|no)     ;;
4288     no) ;;
4289     *)          as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
4290                 ;;
4291 esac
4292 fi
4293
4294
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4296 $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4297
4298 # Check whether --with-lecture was given.
4299 if test "${with_lecture+set}" = set; then :
4300   withval=$with_lecture; case $with_lecture in
4301     yes|short|always)   lecture=once
4302                 ;;
4303     no|none|never)      lecture=never
4304                 ;;
4305     *)          as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4306                 ;;
4307 esac
4308 fi
4309
4310 if test "$lecture" = "once"; then
4311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4312 $as_echo "yes" >&6; }
4313 else
4314     $as_echo "#define NO_LECTURE 1" >>confdefs.h
4315
4316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4318 fi
4319
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4321 $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4322
4323 # Check whether --with-logging was given.
4324 if test "${with_logging+set}" = set; then :
4325   withval=$with_logging; case $with_logging in
4326     yes)        as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
4327                 ;;
4328     no)         as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
4329                 ;;
4330     syslog)     $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4331
4332                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4333 $as_echo "syslog" >&6; }
4334                 ;;
4335     file)       $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4336
4337                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4338 $as_echo "file" >&6; }
4339                 ;;
4340     both)       $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4341
4342                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4343 $as_echo "both" >&6; }
4344                 ;;
4345     *)          as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4346                 ;;
4347 esac
4348 else
4349   $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4351 $as_echo "syslog" >&6; }
4352 fi
4353
4354
4355
4356 # Check whether --with-logfac was given.
4357 if test "${with_logfac+set}" = set; then :
4358   withval=$with_logfac; case $with_logfac in
4359     yes)        as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
4360                 ;;
4361     no)         as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
4362                 ;;
4363     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
4364                 ;;
4365     *)          as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4366                 ;;
4367 esac
4368 fi
4369
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4372 $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4373
4374 # Check whether --with-goodpri was given.
4375 if test "${with_goodpri+set}" = set; then :
4376   withval=$with_goodpri; case $with_goodpri in
4377     yes)        as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4378                 ;;
4379     no)         as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
4380                 ;;
4381     alert|crit|debug|emerg|err|info|notice|warning)
4382                 goodpri=$with_goodpri
4383                 ;;
4384     *)          as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4385                 ;;
4386 esac
4387 fi
4388
4389
4390 cat >>confdefs.h <<_ACEOF
4391 #define PRI_SUCCESS "$goodpri"
4392 _ACEOF
4393
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4395 $as_echo "$goodpri" >&6; }
4396
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4398 $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4399
4400 # Check whether --with-badpri was given.
4401 if test "${with_badpri+set}" = set; then :
4402   withval=$with_badpri; case $with_badpri in
4403     yes)        as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
4404                 ;;
4405     no)         as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
4406                 ;;
4407     alert|crit|debug|emerg|err|info|notice|warning)
4408                 badpri=$with_badpri
4409                 ;;
4410     *)          as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
4411                 ;;
4412 esac
4413 fi
4414
4415
4416 cat >>confdefs.h <<_ACEOF
4417 #define PRI_FAILURE "$badpri"
4418 _ACEOF
4419
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4421 $as_echo "$badpri" >&6; }
4422
4423
4424 # Check whether --with-logpath was given.
4425 if test "${with_logpath+set}" = set; then :
4426   withval=$with_logpath; case $with_logpath in
4427     yes)        as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
4428                 ;;
4429     no)         as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
4430                 ;;
4431 esac
4432 fi
4433
4434
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4436 $as_echo_n "checking how long a line in the log file should be... " >&6; }
4437
4438 # Check whether --with-loglen was given.
4439 if test "${with_loglen+set}" = set; then :
4440   withval=$with_loglen; case $with_loglen in
4441     yes)        as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
4442                 ;;
4443     no)         as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
4444                 ;;
4445     [0-9]*)     loglen=$with_loglen
4446                 ;;
4447     *)          as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4448                 ;;
4449 esac
4450 fi
4451
4452
4453 cat >>confdefs.h <<_ACEOF
4454 #define MAXLOGFILELEN $loglen
4455 _ACEOF
4456
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4458 $as_echo "$loglen" >&6; }
4459
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4461 $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4462
4463 # Check whether --with-ignore-dot was given.
4464 if test "${with_ignore_dot+set}" = set; then :
4465   withval=$with_ignore_dot; case $with_ignore_dot in
4466     yes)        ignore_dot=on
4467                 ;;
4468     no)         ignore_dot=off
4469                 ;;
4470     *)          as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4471                 ;;
4472 esac
4473 fi
4474
4475 if test "$ignore_dot" = "on"; then
4476     $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4477
4478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4479 $as_echo "yes" >&6; }
4480 else
4481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4483 fi
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4486 $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4487
4488 # Check whether --with-mail-if-no-user was given.
4489 if test "${with_mail_if_no_user+set}" = set; then :
4490   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4491     yes)        mail_no_user=on
4492                 ;;
4493     no)         mail_no_user=off
4494                 ;;
4495     *)          as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4496                 ;;
4497 esac
4498 fi
4499
4500 if test "$mail_no_user" = "on"; then
4501     $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4502
4503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4504 $as_echo "yes" >&6; }
4505 else
4506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4508 fi
4509
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4511 $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4512
4513 # Check whether --with-mail-if-no-host was given.
4514 if test "${with_mail_if_no_host+set}" = set; then :
4515   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4516     yes)        mail_no_host=on
4517                 ;;
4518     no)         mail_no_host=off
4519                 ;;
4520     *)          as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4521                 ;;
4522 esac
4523 fi
4524
4525 if test "$mail_no_host" = "on"; then
4526     $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4527
4528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4529 $as_echo "yes" >&6; }
4530 else
4531     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4536 $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4537
4538 # Check whether --with-mail-if-noperms was given.
4539 if test "${with_mail_if_noperms+set}" = set; then :
4540   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4541     yes)        mail_noperms=on
4542                 ;;
4543     no)         mail_noperms=off
4544                 ;;
4545     *)          as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4546                 ;;
4547 esac
4548 fi
4549
4550 if test "$mail_noperms" = "on"; then
4551     $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4552
4553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554 $as_echo "yes" >&6; }
4555 else
4556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4558 fi
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4561 $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4562
4563 # Check whether --with-mailto was given.
4564 if test "${with_mailto+set}" = set; then :
4565   withval=$with_mailto; case $with_mailto in
4566     yes)        as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
4567                 ;;
4568     no)         as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
4569                 ;;
4570     *)          mailto=$with_mailto
4571                 ;;
4572 esac
4573 fi
4574
4575
4576 cat >>confdefs.h <<_ACEOF
4577 #define MAILTO "$mailto"
4578 _ACEOF
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4581 $as_echo "$mailto" >&6; }
4582
4583
4584 # Check whether --with-mailsubject was given.
4585 if test "${with_mailsubject+set}" = set; then :
4586   withval=$with_mailsubject; case $with_mailsubject in
4587     yes)        as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4588                 ;;
4589     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4590 $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4591                 ;;
4592     *)          mailsub="$with_mailsubject"
4593                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4594 $as_echo_n "checking sudo mail subject... " >&6; }
4595                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4596 $as_echo "Using alert mail subject: $mailsub" >&6; }
4597                 ;;
4598 esac
4599 fi
4600
4601
4602 cat >>confdefs.h <<_ACEOF
4603 #define MAILSUBJECT "$mailsub"
4604 _ACEOF
4605
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4608 $as_echo_n "checking for bad password prompt... " >&6; }
4609
4610 # Check whether --with-passprompt was given.
4611 if test "${with_passprompt+set}" = set; then :
4612   withval=$with_passprompt; case $with_passprompt in
4613     yes)        as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4614                 ;;
4615     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4616 $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4617                 ;;
4618     *)          passprompt="$with_passprompt"
4619 esac
4620 fi
4621
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4623 $as_echo "$passprompt" >&6; }
4624
4625 cat >>confdefs.h <<_ACEOF
4626 #define PASSPROMPT "$passprompt"
4627 _ACEOF
4628
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4631 $as_echo_n "checking for bad password message... " >&6; }
4632
4633 # Check whether --with-badpass-message was given.
4634 if test "${with_badpass_message+set}" = set; then :
4635   withval=$with_badpass_message; case $with_badpass_message in
4636     yes)        as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4637                 ;;
4638     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4639 $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4640                 ;;
4641     *)          badpass_message="$with_badpass_message"
4642                 ;;
4643 esac
4644 fi
4645
4646
4647 cat >>confdefs.h <<_ACEOF
4648 #define INCORRECT_PASSWORD "$badpass_message"
4649 _ACEOF
4650
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4652 $as_echo "$badpass_message" >&6; }
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4655 $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4656
4657 # Check whether --with-fqdn was given.
4658 if test "${with_fqdn+set}" = set; then :
4659   withval=$with_fqdn; case $with_fqdn in
4660     yes)        fqdn=on
4661                 ;;
4662     no)         fqdn=off
4663                 ;;
4664     *)          as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4665                 ;;
4666 esac
4667 fi
4668
4669 if test "$fqdn" = "on"; then
4670     $as_echo "#define FQDN 1" >>confdefs.h
4671
4672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4673 $as_echo "yes" >&6; }
4674 else
4675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680 # Check whether --with-timedir was given.
4681 if test "${with_timedir+set}" = set; then :
4682   withval=$with_timedir; case $with_timedir in
4683     yes)        as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
4684                 ;;
4685     no)         as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
4686                 ;;
4687 esac
4688 fi
4689
4690
4691
4692 # Check whether --with-iologdir was given.
4693 if test "${with_iologdir+set}" = set; then :
4694   withval=$with_iologdir; case $with_iologdir in
4695     yes)    ;;
4696     no)     as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
4697             ;;
4698 esac
4699 fi
4700
4701
4702
4703 # Check whether --with-sendmail was given.
4704 if test "${with_sendmail+set}" = set; then :
4705   withval=$with_sendmail; case $with_sendmail in
4706     yes)        with_sendmail=""
4707                 ;;
4708     no)         ;;
4709     *)          cat >>confdefs.h <<EOF
4710 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4711 EOF
4712
4713                 ;;
4714 esac
4715 fi
4716
4717
4718
4719 # Check whether --with-sudoers-mode was given.
4720 if test "${with_sudoers_mode+set}" = set; then :
4721   withval=$with_sudoers_mode; case $with_sudoers_mode in
4722     yes)        as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4723                 ;;
4724     no)         as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4725                 ;;
4726     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
4727                 ;;
4728     0*)         SUDOERS_MODE=$with_sudoers_mode
4729                 ;;
4730     *)          as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4731                 ;;
4732 esac
4733 fi
4734
4735
4736
4737 # Check whether --with-sudoers-uid was given.
4738 if test "${with_sudoers_uid+set}" = set; then :
4739   withval=$with_sudoers_uid; case $with_sudoers_uid in
4740     yes)        as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4741                 ;;
4742     no)         as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4743                 ;;
4744     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
4745                 ;;
4746     *)          as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4747                 ;;
4748 esac
4749 fi
4750
4751
4752
4753 # Check whether --with-sudoers-gid was given.
4754 if test "${with_sudoers_gid+set}" = set; then :
4755   withval=$with_sudoers_gid; case $with_sudoers_gid in
4756     yes)        as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4757                 ;;
4758     no)         as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4759                 ;;
4760     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
4761                 ;;
4762     *)          as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4763                 ;;
4764 esac
4765 fi
4766
4767
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4769 $as_echo_n "checking for umask programs should be run with... " >&6; }
4770
4771 # Check whether --with-umask was given.
4772 if test "${with_umask+set}" = set; then :
4773   withval=$with_umask; case $with_umask in
4774     yes)        as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
4775                 ;;
4776     no)         sudo_umask=0777
4777                 ;;
4778     [0-9]*)     sudo_umask=$with_umask
4779                 ;;
4780     *)          as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
4781                 ;;
4782 esac
4783 fi
4784
4785
4786 cat >>confdefs.h <<_ACEOF
4787 #define SUDO_UMASK $sudo_umask
4788 _ACEOF
4789
4790 if test "$sudo_umask" = "0777"; then
4791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4792 $as_echo "user" >&6; }
4793 else
4794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4795 $as_echo "$sudo_umask" >&6; }
4796 fi
4797
4798
4799 # Check whether --with-umask-override was given.
4800 if test "${with_umask_override+set}" = set; then :
4801   withval=$with_umask_override; case $with_umask_override in
4802     yes)        $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4803
4804                 umask_override=on
4805                 ;;
4806     no)         umask_override=off
4807                 ;;
4808     *)          as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4809                 ;;
4810 esac
4811 fi
4812
4813
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4815 $as_echo_n "checking for default user to run commands as... " >&6; }
4816
4817 # Check whether --with-runas-default was given.
4818 if test "${with_runas_default+set}" = set; then :
4819   withval=$with_runas_default; case $with_runas_default in
4820     yes)        as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4821                 ;;
4822     no)         as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
4823                 ;;
4824     *)          runas_default="$with_runas_default"
4825                 ;;
4826 esac
4827 fi
4828
4829
4830 cat >>confdefs.h <<_ACEOF
4831 #define RUNAS_DEFAULT "$runas_default"
4832 _ACEOF
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4835 $as_echo "$runas_default" >&6; }
4836
4837
4838 # Check whether --with-exempt was given.
4839 if test "${with_exempt+set}" = set; then :
4840   withval=$with_exempt; case $with_exempt in
4841     yes)        as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
4842                 ;;
4843     no)         as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
4844                 ;;
4845     *)
4846 cat >>confdefs.h <<_ACEOF
4847 #define EXEMPTGROUP "$with_exempt"
4848 _ACEOF
4849
4850                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4851 $as_echo_n "checking for group to be exempt from password... " >&6; }
4852                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4853 $as_echo "$with_exempt" >&6; }
4854                 ;;
4855 esac
4856 fi
4857
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4860 $as_echo_n "checking for editor that visudo should use... " >&6; }
4861
4862 # Check whether --with-editor was given.
4863 if test "${with_editor+set}" = set; then :
4864   withval=$with_editor; case $with_editor in
4865     yes)        as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
4866                 ;;
4867     no)         as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4868                 ;;
4869     *)
4870 cat >>confdefs.h <<_ACEOF
4871 #define EDITOR "$with_editor"
4872 _ACEOF
4873
4874                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4875 $as_echo "$with_editor" >&6; }
4876                 editor="$with_editor"
4877                 ;;
4878 esac
4879 else
4880   $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4882 $as_echo "vi" >&6; }
4883 fi
4884
4885
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4887 $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4888
4889 # Check whether --with-env-editor was given.
4890 if test "${with_env_editor+set}" = set; then :
4891   withval=$with_env_editor; case $with_env_editor in
4892     yes)        env_editor=on
4893                 ;;
4894     no)         env_editor=off
4895                 ;;
4896     *)          as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4897                 ;;
4898 esac
4899 fi
4900
4901 if test "$env_editor" = "on"; then
4902     $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4903
4904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4905 $as_echo "yes" >&6; }
4906 else
4907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4912 $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4913
4914 # Check whether --with-passwd-tries was given.
4915 if test "${with_passwd_tries+set}" = set; then :
4916   withval=$with_passwd_tries; case $with_passwd_tries in
4917     yes)        ;;
4918     no)         as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4919                 ;;
4920     [1-9]*)     passwd_tries=$with_passwd_tries
4921                 ;;
4922     *)          as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4923                 ;;
4924 esac
4925 fi
4926
4927
4928 cat >>confdefs.h <<_ACEOF
4929 #define TRIES_FOR_PASSWORD $passwd_tries
4930 _ACEOF
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4933 $as_echo "$passwd_tries" >&6; }
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4936 $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4937
4938 # Check whether --with-timeout was given.
4939 if test "${with_timeout+set}" = set; then :
4940   withval=$with_timeout; case $with_timeout in
4941     yes)        ;;
4942     no)         timeout=0
4943                 ;;
4944     [0-9]*)     timeout=$with_timeout
4945                 ;;
4946     *)          as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4947                 ;;
4948 esac
4949 fi
4950
4951
4952 cat >>confdefs.h <<_ACEOF
4953 #define TIMEOUT $timeout
4954 _ACEOF
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4957 $as_echo "$timeout" >&6; }
4958
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4960 $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4961
4962 # Check whether --with-password-timeout was given.
4963 if test "${with_password_timeout+set}" = set; then :
4964   withval=$with_password_timeout; case $with_password_timeout in
4965     yes)        ;;
4966     no)         password_timeout=0
4967                 ;;
4968     [0-9]*)     password_timeout=$with_password_timeout
4969                 ;;
4970     *)          as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4971                 ;;
4972 esac
4973 fi
4974
4975
4976 cat >>confdefs.h <<_ACEOF
4977 #define PASSWORD_TIMEOUT $password_timeout
4978 _ACEOF
4979
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4981 $as_echo "$password_timeout" >&6; }
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4984 $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4985
4986 # Check whether --with-tty-tickets was given.
4987 if test "${with_tty_tickets+set}" = set; then :
4988   withval=$with_tty_tickets; case $with_tty_tickets in
4989     yes)        tty_tickets=on
4990                 ;;
4991     no)         tty_tickets=off
4992                 ;;
4993     *)          as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4994                 ;;
4995 esac
4996 fi
4997
4998 if test "$tty_tickets" = "off"; then
4999     $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
5000
5001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5003 else
5004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5005 $as_echo "yes" >&6; }
5006 fi
5007
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
5009 $as_echo_n "checking whether to include insults... " >&6; }
5010
5011 # Check whether --with-insults was given.
5012 if test "${with_insults+set}" = set; then :
5013   withval=$with_insults; case $with_insults in
5014     yes)        insults=on
5015                 with_classic_insults=yes
5016                 with_csops_insults=yes
5017                 ;;
5018     disabled)   insults=off
5019                 with_classic_insults=yes
5020                 with_csops_insults=yes
5021                 ;;
5022     no)         insults=off
5023                 ;;
5024     *)          as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
5025                 ;;
5026 esac
5027 fi
5028
5029 if test "$insults" = "on"; then
5030     $as_echo "#define USE_INSULTS 1" >>confdefs.h
5031
5032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }
5034 else
5035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 fi
5038
5039
5040 # Check whether --with-all-insults was given.
5041 if test "${with_all_insults+set}" = set; then :
5042   withval=$with_all_insults; case $with_all_insults in
5043     yes)        with_classic_insults=yes
5044                 with_csops_insults=yes
5045                 with_hal_insults=yes
5046                 with_goons_insults=yes
5047                 ;;
5048     no)         ;;
5049     *)          as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
5050                 ;;
5051 esac
5052 fi
5053
5054
5055
5056 # Check whether --with-classic-insults was given.
5057 if test "${with_classic_insults+set}" = set; then :
5058   withval=$with_classic_insults; case $with_classic_insults in
5059     yes)        $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
5060
5061                 ;;
5062     no)         ;;
5063     *)          as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
5064                 ;;
5065 esac
5066 fi
5067
5068
5069
5070 # Check whether --with-csops-insults was given.
5071 if test "${with_csops_insults+set}" = set; then :
5072   withval=$with_csops_insults; case $with_csops_insults in
5073     yes)        $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
5074
5075                 ;;
5076     no)         ;;
5077     *)          as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
5078                 ;;
5079 esac
5080 fi
5081
5082
5083
5084 # Check whether --with-hal-insults was given.
5085 if test "${with_hal_insults+set}" = set; then :
5086   withval=$with_hal_insults; case $with_hal_insults in
5087     yes)        $as_echo "#define HAL_INSULTS 1" >>confdefs.h
5088
5089                 ;;
5090     no)         ;;
5091     *)          as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
5092                 ;;
5093 esac
5094 fi
5095
5096
5097
5098 # Check whether --with-goons-insults was given.
5099 if test "${with_goons_insults+set}" = set; then :
5100   withval=$with_goons_insults; case $with_goons_insults in
5101     yes)        $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5102
5103                 ;;
5104     no)         ;;
5105     *)          as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5106                 ;;
5107 esac
5108 fi
5109
5110
5111
5112 # Check whether --with-nsswitch was given.
5113 if test "${with_nsswitch+set}" = set; then :
5114   withval=$with_nsswitch; case $with_nsswitch in
5115     no)         ;;
5116     yes)        with_nsswitch="/etc/nsswitch.conf"
5117                 ;;
5118     *)          ;;
5119 esac
5120 fi
5121
5122
5123
5124 # Check whether --with-ldap was given.
5125 if test "${with_ldap+set}" = set; then :
5126   withval=$with_ldap; case $with_ldap in
5127     no)         ;;
5128     *)          $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5129
5130                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5131 $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5132                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5133 $as_echo "yes" >&6; }
5134                 ;;
5135 esac
5136 fi
5137
5138
5139
5140 # Check whether --with-ldap-conf-file was given.
5141 if test "${with_ldap_conf_file+set}" = set; then :
5142   withval=$with_ldap_conf_file;
5143 fi
5144
5145 test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5146 cat >>confdefs.h <<EOF
5147 #define _PATH_LDAP_CONF "$ldap_conf"
5148 EOF
5149
5150
5151
5152 # Check whether --with-ldap-secret-file was given.
5153 if test "${with_ldap_secret_file+set}" = set; then :
5154   withval=$with_ldap_secret_file;
5155 fi
5156
5157 test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5158 cat >>confdefs.h <<EOF
5159 #define _PATH_LDAP_SECRET "$ldap_secret"
5160 EOF
5161
5162
5163
5164 # Check whether --with-pc-insults was given.
5165 if test "${with_pc_insults+set}" = set; then :
5166   withval=$with_pc_insults; case $with_pc_insults in
5167     yes)        $as_echo "#define PC_INSULTS 1" >>confdefs.h
5168
5169                 ;;
5170     no)         ;;
5171     *)          as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5172                 ;;
5173 esac
5174 fi
5175
5176
5177 if test "$insults" = "on"; then
5178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5179 $as_echo_n "checking which insult sets to include... " >&6; }
5180     i=""
5181     test "$with_goons_insults" = "yes" && i="goons ${i}"
5182     test "$with_hal_insults" = "yes" && i="hal ${i}"
5183     test "$with_csops_insults" = "yes" && i="csops ${i}"
5184     test "$with_classic_insults" = "yes" && i="classic ${i}"
5185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5186 $as_echo "$i" >&6; }
5187 fi
5188
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5190 $as_echo_n "checking whether to override the user's path... " >&6; }
5191
5192 # Check whether --with-secure-path was given.
5193 if test "${with_secure_path+set}" = set; then :
5194   withval=$with_secure_path; case $with_secure_path in
5195     yes)        with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5196                 cat >>confdefs.h <<_ACEOF
5197 #define SECURE_PATH "$with_secure_path"
5198 _ACEOF
5199
5200                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5201 $as_echo "$with_secure_path" >&6; }
5202                 secure_path="set to $with_secure_path"
5203                 ;;
5204     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206                 ;;
5207     *)          cat >>confdefs.h <<_ACEOF
5208 #define SECURE_PATH "$with_secure_path"
5209 _ACEOF
5210
5211                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5212 $as_echo "$with_secure_path" >&6; }
5213                 secure_path="set to F<$with_secure_path>"
5214                 ;;
5215 esac
5216 else
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5223 $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5224
5225 # Check whether --with-interfaces was given.
5226 if test "${with_interfaces+set}" = set; then :
5227   withval=$with_interfaces; case $with_interfaces in
5228     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229 $as_echo "yes" >&6; }
5230                 ;;
5231     no)         $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5232
5233                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5235                 ;;
5236     *)          as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5237                 ;;
5238 esac
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5241 $as_echo "yes" >&6; }
5242 fi
5243
5244
5245
5246 # Check whether --with-stow was given.
5247 if test "${with_stow+set}" = set; then :
5248   withval=$with_stow; case $with_stow in
5249     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: --with-stow option deprecated, now is defalt behavior" >&5
5250 $as_echo "$as_me: --with-stow option deprecated, now is defalt behavior" >&6;}
5251                 ;;
5252 esac
5253 fi
5254
5255
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5257 $as_echo_n "checking whether to use an askpass helper... " >&6; }
5258
5259 # Check whether --with-askpass was given.
5260 if test "${with_askpass+set}" = set; then :
5261   withval=$with_askpass; case $with_askpass in
5262     yes)        as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5263                 ;;
5264     no)         ;;
5265     *)          ;;
5266 esac
5267 else
5268
5269     with_askpass=no
5270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272
5273 fi
5274
5275 if test X"$with_askpass" != X"no"; then
5276     cat >>confdefs.h <<EOF
5277 #define _PATH_SUDO_ASKPASS "$with_askpass"
5278 EOF
5279
5280 else
5281     cat >>confdefs.h <<EOF
5282 #define _PATH_SUDO_ASKPASS NULL
5283 EOF
5284
5285 fi
5286
5287
5288 # Check whether --with-plugindir was given.
5289 if test "${with_plugindir+set}" = set; then :
5290   withval=$with_plugindir; case $with_plugindir in
5291     no)         as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5292                 ;;
5293     *)          ;;
5294 esac
5295 else
5296   with_plugindir="$libexecdir/sudo"
5297 fi
5298
5299
5300
5301 # Check whether --with-man was given.
5302 if test "${with_man+set}" = set; then :
5303   withval=$with_man; case $with_man in
5304     yes)        MANTYPE=man
5305                 ;;
5306     no)         as_fn_error $? "\"--without-man not supported.\"" "$LINENO" 5
5307                 ;;
5308     *)          as_fn_error $? "\"ignoring unknown argument to --with-man: $with_man.\"" "$LINENO" 5
5309                 ;;
5310 esac
5311 fi
5312
5313
5314
5315 # Check whether --with-mdoc was given.
5316 if test "${with_mdoc+set}" = set; then :
5317   withval=$with_mdoc; case $with_mdoc in
5318     yes)        MANTYPE=mdoc
5319                 ;;
5320     no)         as_fn_error $? "\"--without-mdoc not supported.\"" "$LINENO" 5
5321                 ;;
5322     *)          as_fn_error $? "\"ignoring unknown argument to --with-mdoc: $with_mdoc.\"" "$LINENO" 5
5323                 ;;
5324 esac
5325 fi
5326
5327
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5330 $as_echo_n "checking whether to do user authentication by default... " >&6; }
5331 # Check whether --enable-authentication was given.
5332 if test "${enable_authentication+set}" = set; then :
5333   enableval=$enable_authentication;  case "$enableval" in
5334     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335 $as_echo "yes" >&6; }
5336                 ;;
5337     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339                 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5340
5341                 ;;
5342     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5345 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5346                 ;;
5347   esac
5348
5349 else
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5352 fi
5353
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5356 $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5357 # Check whether --enable-root-mailer was given.
5358 if test "${enable_root_mailer+set}" = set; then :
5359   enableval=$enable_root_mailer;  case "$enableval" in
5360     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362                 ;;
5363     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5364 $as_echo "yes" >&6; }
5365                 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5366
5367                 ;;
5368     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5371 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5372                 ;;
5373   esac
5374
5375 else
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 fi
5379
5380
5381 # Check whether --enable-setreuid was given.
5382 if test "${enable_setreuid+set}" = set; then :
5383   enableval=$enable_setreuid;  case "$enableval" in
5384     no)         SKIP_SETREUID=yes
5385                 ;;
5386     *)          ;;
5387   esac
5388
5389 fi
5390
5391
5392 # Check whether --enable-setresuid was given.
5393 if test "${enable_setresuid+set}" = set; then :
5394   enableval=$enable_setresuid;  case "$enableval" in
5395     no)         SKIP_SETRESUID=yes
5396                 ;;
5397     *)          ;;
5398   esac
5399
5400 fi
5401
5402
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5404 $as_echo_n "checking whether to disable shadow password support... " >&6; }
5405 # Check whether --enable-shadow was given.
5406 if test "${enable_shadow+set}" = set; then :
5407   enableval=$enable_shadow;  case "$enableval" in
5408     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5410                 ;;
5411     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412 $as_echo "yes" >&6; }
5413                 CHECKSHADOW="false"
5414                 ;;
5415     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5418 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5419                 ;;
5420   esac
5421
5422 else
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5425 fi
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5429 $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5430 # Check whether --enable-root-sudo was given.
5431 if test "${enable_root_sudo+set}" = set; then :
5432   enableval=$enable_root_sudo;  case "$enableval" in
5433     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5434 $as_echo "yes" >&6; }
5435                 ;;
5436     no)         $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5437
5438                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440                 root_sudo=off
5441                 ;;
5442     *)          as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5443                 ;;
5444   esac
5445
5446 else
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448 $as_echo "yes" >&6; }
5449 fi
5450
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5453 $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5454 # Check whether --enable-log-host was given.
5455 if test "${enable_log_host+set}" = set; then :
5456   enableval=$enable_log_host;  case "$enableval" in
5457     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458 $as_echo "yes" >&6; }
5459                 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5460
5461                 ;;
5462     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464                 ;;
5465     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5468 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5469                 ;;
5470   esac
5471
5472 else
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5479 $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5480 # Check whether --enable-noargs-shell was given.
5481 if test "${enable_noargs_shell+set}" = set; then :
5482   enableval=$enable_noargs_shell;  case "$enableval" in
5483     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5484 $as_echo "yes" >&6; }
5485                 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5486
5487                 ;;
5488     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490                 ;;
5491     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5494 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5495                 ;;
5496   esac
5497
5498 else
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5501 fi
5502
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5505 $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5506 # Check whether --enable-shell-sets-home was given.
5507 if test "${enable_shell_sets_home+set}" = set; then :
5508   enableval=$enable_shell_sets_home;  case "$enableval" in
5509     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5510 $as_echo "yes" >&6; }
5511                 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5512
5513                 ;;
5514     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516                 ;;
5517     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5520 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5521                 ;;
5522   esac
5523
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5531 $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5532 # Check whether --enable-path_info was given.
5533 if test "${enable_path_info+set}" = set; then :
5534   enableval=$enable_path_info;  case "$enableval" in
5535     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537                 ;;
5538     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540                 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5541
5542                 path_info=off
5543                 ;;
5544     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5547 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5548                 ;;
5549   esac
5550
5551 else
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5554 fi
5555
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5558 $as_echo_n "checking whether to enable environment debugging... " >&6; }
5559 # Check whether --enable-env_debug was given.
5560 if test "${enable_env_debug+set}" = set; then :
5561   enableval=$enable_env_debug;  case "$enableval" in
5562     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563 $as_echo "yes" >&6; }
5564                 $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5565
5566                 ;;
5567     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5569                 ;;
5570     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5573 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5574                 ;;
5575   esac
5576
5577 else
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581
5582
5583 # Check whether --enable-zlib was given.
5584 if test "${enable_zlib+set}" = set; then :
5585   enableval=$enable_zlib;
5586 else
5587   enable_zlib=yes
5588 fi
5589
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5592 $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5593 # Check whether --enable-env_reset was given.
5594 if test "${enable_env_reset+set}" = set; then :
5595   enableval=$enable_env_reset;  case "$enableval" in
5596     yes)        env_reset=on
5597                 ;;
5598     no)         env_reset=off
5599                 ;;
5600     *)          env_reset=on
5601                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5602 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5603                 ;;
5604   esac
5605
5606 fi
5607
5608 if test "$env_reset" = "on"; then
5609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610 $as_echo "yes" >&6; }
5611     $as_echo "#define ENV_RESET 1" >>confdefs.h
5612
5613 else
5614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616     $as_echo "#define ENV_RESET 0" >>confdefs.h
5617
5618 fi
5619
5620 # Check whether --enable-warnings was given.
5621 if test "${enable_warnings+set}" = set; then :
5622   enableval=$enable_warnings;  case "$enableval" in
5623     yes)    ;;
5624     no)     ;;
5625     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5626 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5627             ;;
5628   esac
5629
5630 fi
5631
5632
5633 # Check whether --enable-werror was given.
5634 if test "${enable_werror+set}" = set; then :
5635   enableval=$enable_werror;  case "$enableval" in
5636     yes)    ;;
5637     no)     ;;
5638     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
5639 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
5640             ;;
5641   esac
5642
5643 fi
5644
5645
5646 # Check whether --enable-hardening was given.
5647 if test "${enable_hardening+set}" = set; then :
5648   enableval=$enable_hardening;
5649 else
5650   enable_hardening=yes
5651 fi
5652
5653
5654 # Check whether --enable-pie was given.
5655 if test "${enable_pie+set}" = set; then :
5656   enableval=$enable_pie;
5657 fi
5658
5659
5660 # Check whether --enable-admin-flag was given.
5661 if test "${enable_admin_flag+set}" = set; then :
5662   enableval=$enable_admin_flag;  case "$enableval" in
5663     yes)    $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5664
5665             ;;
5666     no)     ;;
5667     *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5668 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5669             ;;
5670   esac
5671
5672 fi
5673
5674
5675 # Check whether --enable-nls was given.
5676 if test "${enable_nls+set}" = set; then :
5677   enableval=$enable_nls;
5678 else
5679   enable_nls=yes
5680 fi
5681
5682
5683 # Check whether --enable-rpath was given.
5684 if test "${enable_rpath+set}" = set; then :
5685   enableval=$enable_rpath;
5686 else
5687   enable_rpath=yes
5688 fi
5689
5690
5691
5692 # Check whether --with-selinux was given.
5693 if test "${with_selinux+set}" = set; then :
5694   withval=$with_selinux; case $with_selinux in
5695     yes)        SELINUX_USAGE="[-r role] [-t type] "
5696                 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5697
5698                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
5699                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
5700                 PROGS="${PROGS} sesh"
5701                 SEMAN=1
5702                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5703 $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5704 if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   ac_check_lib_save_LIBS=$LIBS
5708 LIBS="-lselinux  $LIBS"
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h.  */
5711
5712 /* Override any GCC internal prototype to avoid an error.
5713    Use char because int might match the return type of a GCC
5714    builtin and then its argument prototype would still apply.  */
5715 #ifdef __cplusplus
5716 extern "C"
5717 #endif
5718 char setkeycreatecon ();
5719 int
5720 main ()
5721 {
5722 return setkeycreatecon ();
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 if ac_fn_c_try_link "$LINENO"; then :
5728   ac_cv_lib_selinux_setkeycreatecon=yes
5729 else
5730   ac_cv_lib_selinux_setkeycreatecon=no
5731 fi
5732 rm -f core conftest.err conftest.$ac_objext \
5733     conftest$ac_exeext conftest.$ac_ext
5734 LIBS=$ac_check_lib_save_LIBS
5735 fi
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5737 $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5738 if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
5739   $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5740
5741 fi
5742
5743                 ;;
5744     no)         ;;
5745     *)          as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5746                 ;;
5747 esac
5748 else
5749   with_selinux=no
5750 fi
5751
5752
5753 # Check whether --enable-gss_krb5_ccache_name was given.
5754 if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5755   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5756 else
5757   check_gss_krb5_ccache_name=no
5758 fi
5759
5760
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5762 $as_echo_n "checking for library containing strerror... " >&6; }
5763 if ${ac_cv_search_strerror+:} false; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   ac_func_search_save_LIBS=$LIBS
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h.  */
5769
5770 /* Override any GCC internal prototype to avoid an error.
5771    Use char because int might match the return type of a GCC
5772    builtin and then its argument prototype would still apply.  */
5773 #ifdef __cplusplus
5774 extern "C"
5775 #endif
5776 char strerror ();
5777 int
5778 main ()
5779 {
5780 return strerror ();
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 for ac_lib in '' cposix; do
5786   if test -z "$ac_lib"; then
5787     ac_res="none required"
5788   else
5789     ac_res=-l$ac_lib
5790     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5791   fi
5792   if ac_fn_c_try_link "$LINENO"; then :
5793   ac_cv_search_strerror=$ac_res
5794 fi
5795 rm -f core conftest.err conftest.$ac_objext \
5796     conftest$ac_exeext
5797   if ${ac_cv_search_strerror+:} false; then :
5798   break
5799 fi
5800 done
5801 if ${ac_cv_search_strerror+:} false; then :
5802
5803 else
5804   ac_cv_search_strerror=no
5805 fi
5806 rm conftest.$ac_ext
5807 LIBS=$ac_func_search_save_LIBS
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5810 $as_echo "$ac_cv_search_strerror" >&6; }
5811 ac_res=$ac_cv_search_strerror
5812 if test "$ac_res" != no; then :
5813   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5814
5815 fi
5816
5817 ac_ext=c
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5823 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5824 # On Suns, sometimes $CPP names a directory.
5825 if test -n "$CPP" && test -d "$CPP"; then
5826   CPP=
5827 fi
5828 if test -z "$CPP"; then
5829   if ${ac_cv_prog_CPP+:} false; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832       # Double quotes because CPP needs to be expanded
5833     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5834     do
5835       ac_preproc_ok=false
5836 for ac_c_preproc_warn_flag in '' yes
5837 do
5838   # Use a header file that comes with gcc, so configuring glibc
5839   # with a fresh cross-compiler works.
5840   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5841   # <limits.h> exists even on freestanding compilers.
5842   # On the NeXT, cc -E runs the code through the compiler's parser,
5843   # not just through cpp. "Syntax error" is here to catch this case.
5844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h.  */
5846 #ifdef __STDC__
5847 # include <limits.h>
5848 #else
5849 # include <assert.h>
5850 #endif
5851                      Syntax error
5852 _ACEOF
5853 if ac_fn_c_try_cpp "$LINENO"; then :
5854
5855 else
5856   # Broken: fails on valid input.
5857 continue
5858 fi
5859 rm -f conftest.err conftest.i conftest.$ac_ext
5860
5861   # OK, works on sane cases.  Now check whether nonexistent headers
5862   # can be detected and how.
5863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h.  */
5865 #include <ac_nonexistent.h>
5866 _ACEOF
5867 if ac_fn_c_try_cpp "$LINENO"; then :
5868   # Broken: success on invalid input.
5869 continue
5870 else
5871   # Passes both tests.
5872 ac_preproc_ok=:
5873 break
5874 fi
5875 rm -f conftest.err conftest.i conftest.$ac_ext
5876
5877 done
5878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5879 rm -f conftest.i conftest.err conftest.$ac_ext
5880 if $ac_preproc_ok; then :
5881   break
5882 fi
5883
5884     done
5885     ac_cv_prog_CPP=$CPP
5886
5887 fi
5888   CPP=$ac_cv_prog_CPP
5889 else
5890   ac_cv_prog_CPP=$CPP
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5893 $as_echo "$CPP" >&6; }
5894 ac_preproc_ok=false
5895 for ac_c_preproc_warn_flag in '' yes
5896 do
5897   # Use a header file that comes with gcc, so configuring glibc
5898   # with a fresh cross-compiler works.
5899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900   # <limits.h> exists even on freestanding compilers.
5901   # On the NeXT, cc -E runs the code through the compiler's parser,
5902   # not just through cpp. "Syntax error" is here to catch this case.
5903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h.  */
5905 #ifdef __STDC__
5906 # include <limits.h>
5907 #else
5908 # include <assert.h>
5909 #endif
5910                      Syntax error
5911 _ACEOF
5912 if ac_fn_c_try_cpp "$LINENO"; then :
5913
5914 else
5915   # Broken: fails on valid input.
5916 continue
5917 fi
5918 rm -f conftest.err conftest.i conftest.$ac_ext
5919
5920   # OK, works on sane cases.  Now check whether nonexistent headers
5921   # can be detected and how.
5922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h.  */
5924 #include <ac_nonexistent.h>
5925 _ACEOF
5926 if ac_fn_c_try_cpp "$LINENO"; then :
5927   # Broken: success on invalid input.
5928 continue
5929 else
5930   # Passes both tests.
5931 ac_preproc_ok=:
5932 break
5933 fi
5934 rm -f conftest.err conftest.i conftest.$ac_ext
5935
5936 done
5937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5938 rm -f conftest.i conftest.err conftest.$ac_ext
5939 if $ac_preproc_ok; then :
5940
5941 else
5942   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5944 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5945 See \`config.log' for more details" "$LINENO" 5; }
5946 fi
5947
5948 ac_ext=c
5949 ac_cpp='$CPP $CPPFLAGS'
5950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5953
5954 if test -n "$ac_tool_prefix"; then
5955   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}ar; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_AR+:} false; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   if test -n "$AR"; then
5963   ac_cv_prog_AR="$AR" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970     for ac_exec_ext in '' $ac_executable_extensions; do
5971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972     ac_cv_prog_AR="${ac_tool_prefix}ar"
5973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977   done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 AR=$ac_cv_prog_AR
5983 if test -n "$AR"; then
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5985 $as_echo "$AR" >&6; }
5986 else
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991
5992 fi
5993 if test -z "$ac_cv_prog_AR"; then
5994   ac_ct_AR=$AR
5995   # Extract the first word of "ar", so it can be a program name with args.
5996 set dummy ar; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   if test -n "$ac_ct_AR"; then
6003   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010     for ac_exec_ext in '' $ac_executable_extensions; do
6011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012     ac_cv_prog_ac_ct_AR="ar"
6013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017   done
6018 IFS=$as_save_IFS
6019
6020 fi
6021 fi
6022 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6023 if test -n "$ac_ct_AR"; then
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6025 $as_echo "$ac_ct_AR" >&6; }
6026 else
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030
6031   if test "x$ac_ct_AR" = x; then
6032     AR="false"
6033   else
6034     case $cross_compiling:$ac_tool_warned in
6035 yes:)
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038 ac_tool_warned=yes ;;
6039 esac
6040     AR=$ac_ct_AR
6041   fi
6042 else
6043   AR="$ac_cv_prog_AR"
6044 fi
6045
6046 if test -n "$ac_tool_prefix"; then
6047   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050 $as_echo_n "checking for $ac_word... " >&6; }
6051 if ${ac_cv_prog_RANLIB+:} false; then :
6052   $as_echo_n "(cached) " >&6
6053 else
6054   if test -n "$RANLIB"; then
6055   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060   IFS=$as_save_IFS
6061   test -z "$as_dir" && as_dir=.
6062     for ac_exec_ext in '' $ac_executable_extensions; do
6063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066     break 2
6067   fi
6068 done
6069   done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 RANLIB=$ac_cv_prog_RANLIB
6075 if test -n "$RANLIB"; then
6076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6077 $as_echo "$RANLIB" >&6; }
6078 else
6079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6081 fi
6082
6083
6084 fi
6085 if test -z "$ac_cv_prog_RANLIB"; then
6086   ac_ct_RANLIB=$RANLIB
6087   # Extract the first word of "ranlib", so it can be a program name with args.
6088 set dummy ranlib; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   if test -n "$ac_ct_RANLIB"; then
6095   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102     for ac_exec_ext in '' $ac_executable_extensions; do
6103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104     ac_cv_prog_ac_ct_RANLIB="ranlib"
6105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109   done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6115 if test -n "$ac_ct_RANLIB"; then
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6117 $as_echo "$ac_ct_RANLIB" >&6; }
6118 else
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123   if test "x$ac_ct_RANLIB" = x; then
6124     RANLIB=":"
6125   else
6126     case $cross_compiling:$ac_tool_warned in
6127 yes:)
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130 ac_tool_warned=yes ;;
6131 esac
6132     RANLIB=$ac_ct_RANLIB
6133   fi
6134 else
6135   RANLIB="$ac_cv_prog_RANLIB"
6136 fi
6137
6138 if test X"$AR" = X"false"; then
6139     as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
6140 fi
6141
6142 if test "x$ac_cv_prog_cc_c89" = "xno"; then
6143     as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
6144 fi
6145
6146 if test "$enable_static" = "no"; then
6147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
6148 $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
6149     enable_static=yes
6150 fi
6151
6152 ac_aux_dir=
6153 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6154   if test -f "$ac_dir/install-sh"; then
6155     ac_aux_dir=$ac_dir
6156     ac_install_sh="$ac_aux_dir/install-sh -c"
6157     break
6158   elif test -f "$ac_dir/install.sh"; then
6159     ac_aux_dir=$ac_dir
6160     ac_install_sh="$ac_aux_dir/install.sh -c"
6161     break
6162   elif test -f "$ac_dir/shtool"; then
6163     ac_aux_dir=$ac_dir
6164     ac_install_sh="$ac_aux_dir/shtool install -c"
6165     break
6166   fi
6167 done
6168 if test -z "$ac_aux_dir"; then
6169   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6170 fi
6171
6172 # These three variables are undocumented and unsupported,
6173 # and are intended to be withdrawn in a future Autoconf release.
6174 # They can cause serious problems if a builder's source tree is in a directory
6175 # whose full name contains unusual characters.
6176 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6177 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6178 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6179
6180
6181 # Make sure we can run config.sub.
6182 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6183   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6184
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6186 $as_echo_n "checking build system type... " >&6; }
6187 if ${ac_cv_build+:} false; then :
6188   $as_echo_n "(cached) " >&6
6189 else
6190   ac_build_alias=$build_alias
6191 test "x$ac_build_alias" = x &&
6192   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6193 test "x$ac_build_alias" = x &&
6194   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6195 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6196   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6197
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6200 $as_echo "$ac_cv_build" >&6; }
6201 case $ac_cv_build in
6202 *-*-*) ;;
6203 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6204 esac
6205 build=$ac_cv_build
6206 ac_save_IFS=$IFS; IFS='-'
6207 set x $ac_cv_build
6208 shift
6209 build_cpu=$1
6210 build_vendor=$2
6211 shift; shift
6212 # Remember, the first character of IFS is used to create $*,
6213 # except with old shells:
6214 build_os=$*
6215 IFS=$ac_save_IFS
6216 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6217
6218
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6220 $as_echo_n "checking host system type... " >&6; }
6221 if ${ac_cv_host+:} false; then :
6222   $as_echo_n "(cached) " >&6
6223 else
6224   if test "x$host_alias" = x; then
6225   ac_cv_host=$ac_cv_build
6226 else
6227   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6228     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6229 fi
6230
6231 fi
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6233 $as_echo "$ac_cv_host" >&6; }
6234 case $ac_cv_host in
6235 *-*-*) ;;
6236 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6237 esac
6238 host=$ac_cv_host
6239 ac_save_IFS=$IFS; IFS='-'
6240 set x $ac_cv_host
6241 shift
6242 host_cpu=$1
6243 host_vendor=$2
6244 shift; shift
6245 # Remember, the first character of IFS is used to create $*,
6246 # except with old shells:
6247 host_os=$*
6248 IFS=$ac_save_IFS
6249 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6250
6251
6252
6253
6254 case `pwd` in
6255   *\ * | *\     *)
6256     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6257 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6258 esac
6259
6260
6261
6262 macro_version='2.4.2'
6263 macro_revision='1.3337'
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277 ltmain="$ac_aux_dir/ltmain.sh"
6278
6279 # Backslashify metacharacters that are still active within
6280 # double-quoted strings.
6281 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6282
6283 # Same as above, but do not quote variable references.
6284 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6285
6286 # Sed substitution to delay expansion of an escaped shell variable in a
6287 # double_quote_subst'ed string.
6288 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6289
6290 # Sed substitution to delay expansion of an escaped single quote.
6291 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6292
6293 # Sed substitution to avoid accidental globbing in evaled expressions
6294 no_glob_subst='s/\*/\\\*/g'
6295
6296 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6297 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6298 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6299
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6301 $as_echo_n "checking how to print strings... " >&6; }
6302 # Test print first, because it will be a builtin if present.
6303 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6304    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6305   ECHO='print -r --'
6306 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6307   ECHO='printf %s\n'
6308 else
6309   # Use this function as a fallback that always works.
6310   func_fallback_echo ()
6311   {
6312     eval 'cat <<_LTECHO_EOF
6313 $1
6314 _LTECHO_EOF'
6315   }
6316   ECHO='func_fallback_echo'
6317 fi
6318
6319 # func_echo_all arg...
6320 # Invoke $ECHO with all args, space-separated.
6321 func_echo_all ()
6322 {
6323     $ECHO ""
6324 }
6325
6326 case "$ECHO" in
6327   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6328 $as_echo "printf" >&6; } ;;
6329   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6330 $as_echo "print -r" >&6; } ;;
6331   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6332 $as_echo "cat" >&6; } ;;
6333 esac
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6349 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6350 if ${ac_cv_path_SED+:} false; then :
6351   $as_echo_n "(cached) " >&6
6352 else
6353             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6354      for ac_i in 1 2 3 4 5 6 7; do
6355        ac_script="$ac_script$as_nl$ac_script"
6356      done
6357      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6358      { ac_script=; unset ac_script;}
6359      if test -z "$SED"; then
6360   ac_path_SED_found=false
6361   # Loop through the user's path and test for each of PROGNAME-LIST
6362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367     for ac_prog in sed gsed; do
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6370       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6371 # Check for GNU ac_path_SED and select it if it is found.
6372   # Check for GNU $ac_path_SED
6373 case `"$ac_path_SED" --version 2>&1` in
6374 *GNU*)
6375   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6376 *)
6377   ac_count=0
6378   $as_echo_n 0123456789 >"conftest.in"
6379   while :
6380   do
6381     cat "conftest.in" "conftest.in" >"conftest.tmp"
6382     mv "conftest.tmp" "conftest.in"
6383     cp "conftest.in" "conftest.nl"
6384     $as_echo '' >> "conftest.nl"
6385     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6386     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6387     as_fn_arith $ac_count + 1 && ac_count=$as_val
6388     if test $ac_count -gt ${ac_path_SED_max-0}; then
6389       # Best one so far, save it but keep looking for a better one
6390       ac_cv_path_SED="$ac_path_SED"
6391       ac_path_SED_max=$ac_count
6392     fi
6393     # 10*(2^10) chars as input seems more than enough
6394     test $ac_count -gt 10 && break
6395   done
6396   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6397 esac
6398
6399       $ac_path_SED_found && break 3
6400     done
6401   done
6402   done
6403 IFS=$as_save_IFS
6404   if test -z "$ac_cv_path_SED"; then
6405     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6406   fi
6407 else
6408   ac_cv_path_SED=$SED
6409 fi
6410
6411 fi
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6413 $as_echo "$ac_cv_path_SED" >&6; }
6414  SED="$ac_cv_path_SED"
6415   rm -f conftest.sed
6416
6417 test -z "$SED" && SED=sed
6418 Xsed="$SED -e 1s/^X//"
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6431 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6432 if ${ac_cv_path_GREP+:} false; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   if test -z "$GREP"; then
6436   ac_path_GREP_found=false
6437   # Loop through the user's path and test for each of PROGNAME-LIST
6438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443     for ac_prog in grep ggrep; do
6444     for ac_exec_ext in '' $ac_executable_extensions; do
6445       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6446       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6447 # Check for GNU ac_path_GREP and select it if it is found.
6448   # Check for GNU $ac_path_GREP
6449 case `"$ac_path_GREP" --version 2>&1` in
6450 *GNU*)
6451   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6452 *)
6453   ac_count=0
6454   $as_echo_n 0123456789 >"conftest.in"
6455   while :
6456   do
6457     cat "conftest.in" "conftest.in" >"conftest.tmp"
6458     mv "conftest.tmp" "conftest.in"
6459     cp "conftest.in" "conftest.nl"
6460     $as_echo 'GREP' >> "conftest.nl"
6461     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6462     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6463     as_fn_arith $ac_count + 1 && ac_count=$as_val
6464     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6465       # Best one so far, save it but keep looking for a better one
6466       ac_cv_path_GREP="$ac_path_GREP"
6467       ac_path_GREP_max=$ac_count
6468     fi
6469     # 10*(2^10) chars as input seems more than enough
6470     test $ac_count -gt 10 && break
6471   done
6472   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6473 esac
6474
6475       $ac_path_GREP_found && break 3
6476     done
6477   done
6478   done
6479 IFS=$as_save_IFS
6480   if test -z "$ac_cv_path_GREP"; then
6481     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6482   fi
6483 else
6484   ac_cv_path_GREP=$GREP
6485 fi
6486
6487 fi
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6489 $as_echo "$ac_cv_path_GREP" >&6; }
6490  GREP="$ac_cv_path_GREP"
6491
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6494 $as_echo_n "checking for egrep... " >&6; }
6495 if ${ac_cv_path_EGREP+:} false; then :
6496   $as_echo_n "(cached) " >&6
6497 else
6498   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6499    then ac_cv_path_EGREP="$GREP -E"
6500    else
6501      if test -z "$EGREP"; then
6502   ac_path_EGREP_found=false
6503   # Loop through the user's path and test for each of PROGNAME-LIST
6504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509     for ac_prog in egrep; do
6510     for ac_exec_ext in '' $ac_executable_extensions; do
6511       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6512       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6513 # Check for GNU ac_path_EGREP and select it if it is found.
6514   # Check for GNU $ac_path_EGREP
6515 case `"$ac_path_EGREP" --version 2>&1` in
6516 *GNU*)
6517   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6518 *)
6519   ac_count=0
6520   $as_echo_n 0123456789 >"conftest.in"
6521   while :
6522   do
6523     cat "conftest.in" "conftest.in" >"conftest.tmp"
6524     mv "conftest.tmp" "conftest.in"
6525     cp "conftest.in" "conftest.nl"
6526     $as_echo 'EGREP' >> "conftest.nl"
6527     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6528     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6529     as_fn_arith $ac_count + 1 && ac_count=$as_val
6530     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6531       # Best one so far, save it but keep looking for a better one
6532       ac_cv_path_EGREP="$ac_path_EGREP"
6533       ac_path_EGREP_max=$ac_count
6534     fi
6535     # 10*(2^10) chars as input seems more than enough
6536     test $ac_count -gt 10 && break
6537   done
6538   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6539 esac
6540
6541       $ac_path_EGREP_found && break 3
6542     done
6543   done
6544   done
6545 IFS=$as_save_IFS
6546   if test -z "$ac_cv_path_EGREP"; then
6547     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6548   fi
6549 else
6550   ac_cv_path_EGREP=$EGREP
6551 fi
6552
6553    fi
6554 fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6556 $as_echo "$ac_cv_path_EGREP" >&6; }
6557  EGREP="$ac_cv_path_EGREP"
6558
6559
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6561 $as_echo_n "checking for fgrep... " >&6; }
6562 if ${ac_cv_path_FGREP+:} false; then :
6563   $as_echo_n "(cached) " >&6
6564 else
6565   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6566    then ac_cv_path_FGREP="$GREP -F"
6567    else
6568      if test -z "$FGREP"; then
6569   ac_path_FGREP_found=false
6570   # Loop through the user's path and test for each of PROGNAME-LIST
6571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6573 do
6574   IFS=$as_save_IFS
6575   test -z "$as_dir" && as_dir=.
6576     for ac_prog in fgrep; do
6577     for ac_exec_ext in '' $ac_executable_extensions; do
6578       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6579       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6580 # Check for GNU ac_path_FGREP and select it if it is found.
6581   # Check for GNU $ac_path_FGREP
6582 case `"$ac_path_FGREP" --version 2>&1` in
6583 *GNU*)
6584   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6585 *)
6586   ac_count=0
6587   $as_echo_n 0123456789 >"conftest.in"
6588   while :
6589   do
6590     cat "conftest.in" "conftest.in" >"conftest.tmp"
6591     mv "conftest.tmp" "conftest.in"
6592     cp "conftest.in" "conftest.nl"
6593     $as_echo 'FGREP' >> "conftest.nl"
6594     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6595     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6596     as_fn_arith $ac_count + 1 && ac_count=$as_val
6597     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6598       # Best one so far, save it but keep looking for a better one
6599       ac_cv_path_FGREP="$ac_path_FGREP"
6600       ac_path_FGREP_max=$ac_count
6601     fi
6602     # 10*(2^10) chars as input seems more than enough
6603     test $ac_count -gt 10 && break
6604   done
6605   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6606 esac
6607
6608       $ac_path_FGREP_found && break 3
6609     done
6610   done
6611   done
6612 IFS=$as_save_IFS
6613   if test -z "$ac_cv_path_FGREP"; then
6614     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6615   fi
6616 else
6617   ac_cv_path_FGREP=$FGREP
6618 fi
6619
6620    fi
6621 fi
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6623 $as_echo "$ac_cv_path_FGREP" >&6; }
6624  FGREP="$ac_cv_path_FGREP"
6625
6626
6627 test -z "$GREP" && GREP=grep
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647 # Check whether --with-gnu-ld was given.
6648 if test "${with_gnu_ld+set}" = set; then :
6649   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6650 else
6651   with_gnu_ld=no
6652 fi
6653
6654 ac_prog=ld
6655 if test "$GCC" = yes; then
6656   # Check if gcc -print-prog-name=ld gives a path.
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6658 $as_echo_n "checking for ld used by $CC... " >&6; }
6659   case $host in
6660   *-*-mingw*)
6661     # gcc leaves a trailing carriage return which upsets mingw
6662     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6663   *)
6664     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6665   esac
6666   case $ac_prog in
6667     # Accept absolute paths.
6668     [\\/]* | ?:[\\/]*)
6669       re_direlt='/[^/][^/]*/\.\./'
6670       # Canonicalize the pathname of ld
6671       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6672       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6673         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6674       done
6675       test -z "$LD" && LD="$ac_prog"
6676       ;;
6677   "")
6678     # If it fails, then pretend we aren't using GCC.
6679     ac_prog=ld
6680     ;;
6681   *)
6682     # If it is relative, then search for the first ld in PATH.
6683     with_gnu_ld=unknown
6684     ;;
6685   esac
6686 elif test "$with_gnu_ld" = yes; then
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6688 $as_echo_n "checking for GNU ld... " >&6; }
6689 else
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6691 $as_echo_n "checking for non-GNU ld... " >&6; }
6692 fi
6693 if ${lt_cv_path_LD+:} false; then :
6694   $as_echo_n "(cached) " >&6
6695 else
6696   if test -z "$LD"; then
6697   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6698   for ac_dir in $PATH; do
6699     IFS="$lt_save_ifs"
6700     test -z "$ac_dir" && ac_dir=.
6701     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6702       lt_cv_path_LD="$ac_dir/$ac_prog"
6703       # Check to see if the program is GNU ld.  I'd rather use --version,
6704       # but apparently some variants of GNU ld only accept -v.
6705       # Break only if it was the GNU/non-GNU ld that we prefer.
6706       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6707       *GNU* | *'with BFD'*)
6708         test "$with_gnu_ld" != no && break
6709         ;;
6710       *)
6711         test "$with_gnu_ld" != yes && break
6712         ;;
6713       esac
6714     fi
6715   done
6716   IFS="$lt_save_ifs"
6717 else
6718   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6719 fi
6720 fi
6721
6722 LD="$lt_cv_path_LD"
6723 if test -n "$LD"; then
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6725 $as_echo "$LD" >&6; }
6726 else
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6732 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6733 if ${lt_cv_prog_gnu_ld+:} false; then :
6734   $as_echo_n "(cached) " >&6
6735 else
6736   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6737 case `$LD -v 2>&1 </dev/null` in
6738 *GNU* | *'with BFD'*)
6739   lt_cv_prog_gnu_ld=yes
6740   ;;
6741 *)
6742   lt_cv_prog_gnu_ld=no
6743   ;;
6744 esac
6745 fi
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6747 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6748 with_gnu_ld=$lt_cv_prog_gnu_ld
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6759 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6760 if ${lt_cv_path_NM+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   if test -n "$NM"; then
6764   # Let the user override the test.
6765   lt_cv_path_NM="$NM"
6766 else
6767   lt_nm_to_check="${ac_tool_prefix}nm"
6768   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6769     lt_nm_to_check="$lt_nm_to_check nm"
6770   fi
6771   for lt_tmp_nm in $lt_nm_to_check; do
6772     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6773     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6774       IFS="$lt_save_ifs"
6775       test -z "$ac_dir" && ac_dir=.
6776       tmp_nm="$ac_dir/$lt_tmp_nm"
6777       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6778         # Check to see if the nm accepts a BSD-compat flag.
6779         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6780         #   nm: unknown option "B" ignored
6781         # Tru64's nm complains that /dev/null is an invalid object file
6782         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6783         */dev/null* | *'Invalid file or object type'*)
6784           lt_cv_path_NM="$tmp_nm -B"
6785           break
6786           ;;
6787         *)
6788           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6789           */dev/null*)
6790             lt_cv_path_NM="$tmp_nm -p"
6791             break
6792             ;;
6793           *)
6794             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6795             continue # so that we can try to find one that supports BSD flags
6796             ;;
6797           esac
6798           ;;
6799         esac
6800       fi
6801     done
6802     IFS="$lt_save_ifs"
6803   done
6804   : ${lt_cv_path_NM=no}
6805 fi
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6808 $as_echo "$lt_cv_path_NM" >&6; }
6809 if test "$lt_cv_path_NM" != "no"; then
6810   NM="$lt_cv_path_NM"
6811 else
6812   # Didn't find any BSD compatible name lister, look for dumpbin.
6813   if test -n "$DUMPBIN"; then :
6814     # Let the user override the test.
6815   else
6816     if test -n "$ac_tool_prefix"; then
6817   for ac_prog in dumpbin "link -dump"
6818   do
6819     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_DUMPBIN+:} false; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826   if test -n "$DUMPBIN"; then
6827   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834     for ac_exec_ext in '' $ac_executable_extensions; do
6835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841   done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 DUMPBIN=$ac_cv_prog_DUMPBIN
6847 if test -n "$DUMPBIN"; then
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6849 $as_echo "$DUMPBIN" >&6; }
6850 else
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855
6856     test -n "$DUMPBIN" && break
6857   done
6858 fi
6859 if test -z "$DUMPBIN"; then
6860   ac_ct_DUMPBIN=$DUMPBIN
6861   for ac_prog in dumpbin "link -dump"
6862 do
6863   # Extract the first word of "$ac_prog", so it can be a program name with args.
6864 set dummy $ac_prog; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   if test -n "$ac_ct_DUMPBIN"; then
6871   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878     for ac_exec_ext in '' $ac_executable_extensions; do
6879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885   done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6891 if test -n "$ac_ct_DUMPBIN"; then
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6893 $as_echo "$ac_ct_DUMPBIN" >&6; }
6894 else
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899
6900   test -n "$ac_ct_DUMPBIN" && break
6901 done
6902
6903   if test "x$ac_ct_DUMPBIN" = x; then
6904     DUMPBIN=":"
6905   else
6906     case $cross_compiling:$ac_tool_warned in
6907 yes:)
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912     DUMPBIN=$ac_ct_DUMPBIN
6913   fi
6914 fi
6915
6916     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6917     *COFF*)
6918       DUMPBIN="$DUMPBIN -symbols"
6919       ;;
6920     *)
6921       DUMPBIN=:
6922       ;;
6923     esac
6924   fi
6925
6926   if test "$DUMPBIN" != ":"; then
6927     NM="$DUMPBIN"
6928   fi
6929 fi
6930 test -z "$NM" && NM=nm
6931
6932
6933
6934
6935
6936
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6938 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6939 if ${lt_cv_nm_interface+:} false; then :
6940   $as_echo_n "(cached) " >&6
6941 else
6942   lt_cv_nm_interface="BSD nm"
6943   echo "int some_variable = 0;" > conftest.$ac_ext
6944   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6945   (eval "$ac_compile" 2>conftest.err)
6946   cat conftest.err >&5
6947   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6948   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6949   cat conftest.err >&5
6950   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6951   cat conftest.out >&5
6952   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6953     lt_cv_nm_interface="MS dumpbin"
6954   fi
6955   rm -f conftest*
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6958 $as_echo "$lt_cv_nm_interface" >&6; }
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6961 $as_echo_n "checking whether ln -s works... " >&6; }
6962 LN_S=$as_ln_s
6963 if test "$LN_S" = "ln -s"; then
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6965 $as_echo "yes" >&6; }
6966 else
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6968 $as_echo "no, using $LN_S" >&6; }
6969 fi
6970
6971 # find the maximum length of command line arguments
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6973 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6974 if ${lt_cv_sys_max_cmd_len+:} false; then :
6975   $as_echo_n "(cached) " >&6
6976 else
6977     i=0
6978   teststring="ABCD"
6979
6980   case $build_os in
6981   msdosdjgpp*)
6982     # On DJGPP, this test can blow up pretty badly due to problems in libc
6983     # (any single argument exceeding 2000 bytes causes a buffer overrun
6984     # during glob expansion).  Even if it were fixed, the result of this
6985     # check would be larger than it should be.
6986     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6987     ;;
6988
6989   gnu*)
6990     # Under GNU Hurd, this test is not required because there is
6991     # no limit to the length of command line arguments.
6992     # Libtool will interpret -1 as no limit whatsoever
6993     lt_cv_sys_max_cmd_len=-1;
6994     ;;
6995
6996   cygwin* | mingw* | cegcc*)
6997     # On Win9x/ME, this test blows up -- it succeeds, but takes
6998     # about 5 minutes as the teststring grows exponentially.
6999     # Worse, since 9x/ME are not pre-emptively multitasking,
7000     # you end up with a "frozen" computer, even though with patience
7001     # the test eventually succeeds (with a max line length of 256k).
7002     # Instead, let's just punt: use the minimum linelength reported by
7003     # all of the supported platforms: 8192 (on NT/2K/XP).
7004     lt_cv_sys_max_cmd_len=8192;
7005     ;;
7006
7007   mint*)
7008     # On MiNT this can take a long time and run out of memory.
7009     lt_cv_sys_max_cmd_len=8192;
7010     ;;
7011
7012   amigaos*)
7013     # On AmigaOS with pdksh, this test takes hours, literally.
7014     # So we just punt and use a minimum line length of 8192.
7015     lt_cv_sys_max_cmd_len=8192;
7016     ;;
7017
7018   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7019     # This has been around since 386BSD, at least.  Likely further.
7020     if test -x /sbin/sysctl; then
7021       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7022     elif test -x /usr/sbin/sysctl; then
7023       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7024     else
7025       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7026     fi
7027     # And add a safety zone
7028     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7029     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7030     ;;
7031
7032   interix*)
7033     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7034     lt_cv_sys_max_cmd_len=196608
7035     ;;
7036
7037   os2*)
7038     # The test takes a long time on OS/2.
7039     lt_cv_sys_max_cmd_len=8192
7040     ;;
7041
7042   osf*)
7043     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7044     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7045     # nice to cause kernel panics so lets avoid the loop below.
7046     # First set a reasonable default.
7047     lt_cv_sys_max_cmd_len=16384
7048     #
7049     if test -x /sbin/sysconfig; then
7050       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7051         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7052       esac
7053     fi
7054     ;;
7055   sco3.2v5*)
7056     lt_cv_sys_max_cmd_len=102400
7057     ;;
7058   sysv5* | sco5v6* | sysv4.2uw2*)
7059     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7060     if test -n "$kargmax"; then
7061       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7062     else
7063       lt_cv_sys_max_cmd_len=32768
7064     fi
7065     ;;
7066   *)
7067     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7068     if test -n "$lt_cv_sys_max_cmd_len"; then
7069       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7070       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7071     else
7072       # Make teststring a little bigger before we do anything with it.
7073       # a 1K string should be a reasonable start.
7074       for i in 1 2 3 4 5 6 7 8 ; do
7075         teststring=$teststring$teststring
7076       done
7077       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7078       # If test is not a shell built-in, we'll probably end up computing a
7079       # maximum length that is only half of the actual maximum length, but
7080       # we can't tell.
7081       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7082                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7083               test $i != 17 # 1/2 MB should be enough
7084       do
7085         i=`expr $i + 1`
7086         teststring=$teststring$teststring
7087       done
7088       # Only check the string length outside the loop.
7089       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7090       teststring=
7091       # Add a significant safety factor because C++ compilers can tack on
7092       # massive amounts of additional arguments before passing them to the
7093       # linker.  It appears as though 1/2 is a usable value.
7094       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7095     fi
7096     ;;
7097   esac
7098
7099 fi
7100
7101 if test -n $lt_cv_sys_max_cmd_len ; then
7102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7103 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7104 else
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7106 $as_echo "none" >&6; }
7107 fi
7108 max_cmd_len=$lt_cv_sys_max_cmd_len
7109
7110
7111
7112
7113
7114
7115 : ${CP="cp -f"}
7116 : ${MV="mv -f"}
7117 : ${RM="rm -f"}
7118
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7120 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7121 # Try some XSI features
7122 xsi_shell=no
7123 ( _lt_dummy="a/b/c"
7124   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7125       = c,a/b,b/c, \
7126     && eval 'test $(( 1 + 1 )) -eq 2 \
7127     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7128   && xsi_shell=yes
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7130 $as_echo "$xsi_shell" >&6; }
7131
7132
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7134 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7135 lt_shell_append=no
7136 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7137     >/dev/null 2>&1 \
7138   && lt_shell_append=yes
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7140 $as_echo "$lt_shell_append" >&6; }
7141
7142
7143 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7144   lt_unset=unset
7145 else
7146   lt_unset=false
7147 fi
7148
7149
7150
7151
7152
7153 # test EBCDIC or ASCII
7154 case `echo X|tr X '\101'` in
7155  A) # ASCII based system
7156     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7157   lt_SP2NL='tr \040 \012'
7158   lt_NL2SP='tr \015\012 \040\040'
7159   ;;
7160  *) # EBCDIC based system
7161   lt_SP2NL='tr \100 \n'
7162   lt_NL2SP='tr \r\n \100\100'
7163   ;;
7164 esac
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7175 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7176 if ${lt_cv_to_host_file_cmd+:} false; then :
7177   $as_echo_n "(cached) " >&6
7178 else
7179   case $host in
7180   *-*-mingw* )
7181     case $build in
7182       *-*-mingw* ) # actually msys
7183         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7184         ;;
7185       *-*-cygwin* )
7186         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7187         ;;
7188       * ) # otherwise, assume *nix
7189         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7190         ;;
7191     esac
7192     ;;
7193   *-*-cygwin* )
7194     case $build in
7195       *-*-mingw* ) # actually msys
7196         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7197         ;;
7198       *-*-cygwin* )
7199         lt_cv_to_host_file_cmd=func_convert_file_noop
7200         ;;
7201       * ) # otherwise, assume *nix
7202         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7203         ;;
7204     esac
7205     ;;
7206   * ) # unhandled hosts (and "normal" native builds)
7207     lt_cv_to_host_file_cmd=func_convert_file_noop
7208     ;;
7209 esac
7210
7211 fi
7212
7213 to_host_file_cmd=$lt_cv_to_host_file_cmd
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7215 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7216
7217
7218
7219
7220
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7222 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7223 if ${lt_cv_to_tool_file_cmd+:} false; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   #assume ordinary cross tools, or native build.
7227 lt_cv_to_tool_file_cmd=func_convert_file_noop
7228 case $host in
7229   *-*-mingw* )
7230     case $build in
7231       *-*-mingw* ) # actually msys
7232         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7233         ;;
7234     esac
7235     ;;
7236 esac
7237
7238 fi
7239
7240 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7242 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7243
7244
7245
7246
7247
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7249 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7250 if ${lt_cv_ld_reload_flag+:} false; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253   lt_cv_ld_reload_flag='-r'
7254 fi
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7256 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7257 reload_flag=$lt_cv_ld_reload_flag
7258 case $reload_flag in
7259 "" | " "*) ;;
7260 *) reload_flag=" $reload_flag" ;;
7261 esac
7262 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7263 case $host_os in
7264   cygwin* | mingw* | pw32* | cegcc*)
7265     if test "$GCC" != yes; then
7266       reload_cmds=false
7267     fi
7268     ;;
7269   darwin*)
7270     if test "$GCC" = yes; then
7271       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7272     else
7273       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7274     fi
7275     ;;
7276 esac
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286 if test -n "$ac_tool_prefix"; then
7287   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_OBJDUMP+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$OBJDUMP"; then
7295   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 OBJDUMP=$ac_cv_prog_OBJDUMP
7315 if test -n "$OBJDUMP"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7317 $as_echo "$OBJDUMP" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323
7324 fi
7325 if test -z "$ac_cv_prog_OBJDUMP"; then
7326   ac_ct_OBJDUMP=$OBJDUMP
7327   # Extract the first word of "objdump", so it can be a program name with args.
7328 set dummy objdump; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7332   $as_echo_n "(cached) " >&6
7333 else
7334   if test -n "$ac_ct_OBJDUMP"; then
7335   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342     for ac_exec_ext in '' $ac_executable_extensions; do
7343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349   done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7355 if test -n "$ac_ct_OBJDUMP"; then
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7357 $as_echo "$ac_ct_OBJDUMP" >&6; }
7358 else
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363   if test "x$ac_ct_OBJDUMP" = x; then
7364     OBJDUMP="false"
7365   else
7366     case $cross_compiling:$ac_tool_warned in
7367 yes:)
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7371 esac
7372     OBJDUMP=$ac_ct_OBJDUMP
7373   fi
7374 else
7375   OBJDUMP="$ac_cv_prog_OBJDUMP"
7376 fi
7377
7378 test -z "$OBJDUMP" && OBJDUMP=objdump
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7389 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7390 if ${lt_cv_deplibs_check_method+:} false; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   lt_cv_file_magic_cmd='$MAGIC_CMD'
7394 lt_cv_file_magic_test_file=
7395 lt_cv_deplibs_check_method='unknown'
7396 # Need to set the preceding variable on all platforms that support
7397 # interlibrary dependencies.
7398 # 'none' -- dependencies not supported.
7399 # `unknown' -- same as none, but documents that we really don't know.
7400 # 'pass_all' -- all dependencies passed with no checks.
7401 # 'test_compile' -- check by making test program.
7402 # 'file_magic [[regex]]' -- check by looking for files in library path
7403 # which responds to the $file_magic_cmd with a given extended regex.
7404 # If you have `file' or equivalent on your system and you're not sure
7405 # whether `pass_all' will *always* work, you probably want this one.
7406
7407 case $host_os in
7408 aix[4-9]*)
7409   lt_cv_deplibs_check_method=pass_all
7410   ;;
7411
7412 beos*)
7413   lt_cv_deplibs_check_method=pass_all
7414   ;;
7415
7416 bsdi[45]*)
7417   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7418   lt_cv_file_magic_cmd='/usr/bin/file -L'
7419   lt_cv_file_magic_test_file=/shlib/libc.so
7420   ;;
7421
7422 cygwin*)
7423   # func_win32_libid is a shell function defined in ltmain.sh
7424   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7425   lt_cv_file_magic_cmd='func_win32_libid'
7426   ;;
7427
7428 mingw* | pw32*)
7429   # Base MSYS/MinGW do not provide the 'file' command needed by
7430   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7431   # unless we find 'file', for example because we are cross-compiling.
7432   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7433   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7434     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7435     lt_cv_file_magic_cmd='func_win32_libid'
7436   else
7437     # Keep this pattern in sync with the one in func_win32_libid.
7438     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7439     lt_cv_file_magic_cmd='$OBJDUMP -f'
7440   fi
7441   ;;
7442
7443 cegcc*)
7444   # use the weaker test based on 'objdump'. See mingw*.
7445   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7446   lt_cv_file_magic_cmd='$OBJDUMP -f'
7447   ;;
7448
7449 darwin* | rhapsody*)
7450   lt_cv_deplibs_check_method=pass_all
7451   ;;
7452
7453 freebsd* | dragonfly*)
7454   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7455     case $host_cpu in
7456     i*86 )
7457       # Not sure whether the presence of OpenBSD here was a mistake.
7458       # Let's accept both of them until this is cleared up.
7459       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7460       lt_cv_file_magic_cmd=/usr/bin/file
7461       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7462       ;;
7463     esac
7464   else
7465     lt_cv_deplibs_check_method=pass_all
7466   fi
7467   ;;
7468
7469 gnu*)
7470   lt_cv_deplibs_check_method=pass_all
7471   ;;
7472
7473 haiku*)
7474   lt_cv_deplibs_check_method=pass_all
7475   ;;
7476
7477 hpux10.20* | hpux11*)
7478   lt_cv_file_magic_cmd=/usr/bin/file
7479   case $host_cpu in
7480   ia64*)
7481     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7482     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7483     ;;
7484   hppa*64*)
7485     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]'
7486     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7487     ;;
7488   *)
7489     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7490     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7491     ;;
7492   esac
7493   ;;
7494
7495 interix[3-9]*)
7496   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7497   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7498   ;;
7499
7500 irix5* | irix6* | nonstopux*)
7501   case $LD in
7502   *-32|*"-32 ") libmagic=32-bit;;
7503   *-n32|*"-n32 ") libmagic=N32;;
7504   *-64|*"-64 ") libmagic=64-bit;;
7505   *) libmagic=never-match;;
7506   esac
7507   lt_cv_deplibs_check_method=pass_all
7508   ;;
7509
7510 # This must be glibc/ELF.
7511 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7512   lt_cv_deplibs_check_method=pass_all
7513   ;;
7514
7515 netbsd*)
7516   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7517     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7518   else
7519     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7520   fi
7521   ;;
7522
7523 newos6*)
7524   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7525   lt_cv_file_magic_cmd=/usr/bin/file
7526   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7527   ;;
7528
7529 *nto* | *qnx*)
7530   lt_cv_deplibs_check_method=pass_all
7531   ;;
7532
7533 openbsd*)
7534   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7535     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7536   else
7537     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7538   fi
7539   ;;
7540
7541 osf3* | osf4* | osf5*)
7542   lt_cv_deplibs_check_method=pass_all
7543   ;;
7544
7545 rdos*)
7546   lt_cv_deplibs_check_method=pass_all
7547   ;;
7548
7549 solaris*)
7550   lt_cv_deplibs_check_method=pass_all
7551   ;;
7552
7553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7554   lt_cv_deplibs_check_method=pass_all
7555   ;;
7556
7557 sysv4 | sysv4.3*)
7558   case $host_vendor in
7559   motorola)
7560     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]'
7561     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7562     ;;
7563   ncr)
7564     lt_cv_deplibs_check_method=pass_all
7565     ;;
7566   sequent)
7567     lt_cv_file_magic_cmd='/bin/file'
7568     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7569     ;;
7570   sni)
7571     lt_cv_file_magic_cmd='/bin/file'
7572     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7573     lt_cv_file_magic_test_file=/lib/libc.so
7574     ;;
7575   siemens)
7576     lt_cv_deplibs_check_method=pass_all
7577     ;;
7578   pc)
7579     lt_cv_deplibs_check_method=pass_all
7580     ;;
7581   esac
7582   ;;
7583
7584 tpf*)
7585   lt_cv_deplibs_check_method=pass_all
7586   ;;
7587 esac
7588
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7591 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7592
7593 file_magic_glob=
7594 want_nocaseglob=no
7595 if test "$build" = "$host"; then
7596   case $host_os in
7597   mingw* | pw32*)
7598     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7599       want_nocaseglob=yes
7600     else
7601       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7602     fi
7603     ;;
7604   esac
7605 fi
7606
7607 file_magic_cmd=$lt_cv_file_magic_cmd
7608 deplibs_check_method=$lt_cv_deplibs_check_method
7609 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632 if test -n "$ac_tool_prefix"; then
7633   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7634 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_DLLTOOL+:} false; then :
7638   $as_echo_n "(cached) " >&6
7639 else
7640   if test -n "$DLLTOOL"; then
7641   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648     for ac_exec_ext in '' $ac_executable_extensions; do
7649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655   done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 DLLTOOL=$ac_cv_prog_DLLTOOL
7661 if test -n "$DLLTOOL"; then
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7663 $as_echo "$DLLTOOL" >&6; }
7664 else
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669
7670 fi
7671 if test -z "$ac_cv_prog_DLLTOOL"; then
7672   ac_ct_DLLTOOL=$DLLTOOL
7673   # Extract the first word of "dlltool", so it can be a program name with args.
7674 set dummy dlltool; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7678   $as_echo_n "(cached) " >&6
7679 else
7680   if test -n "$ac_ct_DLLTOOL"; then
7681   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686   IFS=$as_save_IFS
7687   test -z "$as_dir" && as_dir=.
7688     for ac_exec_ext in '' $ac_executable_extensions; do
7689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692     break 2
7693   fi
7694 done
7695   done
7696 IFS=$as_save_IFS
7697
7698 fi
7699 fi
7700 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7701 if test -n "$ac_ct_DLLTOOL"; then
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7703 $as_echo "$ac_ct_DLLTOOL" >&6; }
7704 else
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7707 fi
7708
7709   if test "x$ac_ct_DLLTOOL" = x; then
7710     DLLTOOL="false"
7711   else
7712     case $cross_compiling:$ac_tool_warned in
7713 yes:)
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7716 ac_tool_warned=yes ;;
7717 esac
7718     DLLTOOL=$ac_ct_DLLTOOL
7719   fi
7720 else
7721   DLLTOOL="$ac_cv_prog_DLLTOOL"
7722 fi
7723
7724 test -z "$DLLTOOL" && DLLTOOL=dlltool
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7736 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7737 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7738   $as_echo_n "(cached) " >&6
7739 else
7740   lt_cv_sharedlib_from_linklib_cmd='unknown'
7741
7742 case $host_os in
7743 cygwin* | mingw* | pw32* | cegcc*)
7744   # two different shell functions defined in ltmain.sh
7745   # decide which to use based on capabilities of $DLLTOOL
7746   case `$DLLTOOL --help 2>&1` in
7747   *--identify-strict*)
7748     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7749     ;;
7750   *)
7751     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7752     ;;
7753   esac
7754   ;;
7755 *)
7756   # fallback: assume linklib IS sharedlib
7757   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7758   ;;
7759 esac
7760
7761 fi
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7763 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7764 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7765 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7766
7767
7768
7769
7770
7771
7772
7773 if test -n "$ac_tool_prefix"; then
7774   for ac_prog in ar
7775   do
7776     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if ${ac_cv_prog_AR+:} false; then :
7781   $as_echo_n "(cached) " >&6
7782 else
7783   if test -n "$AR"; then
7784   ac_cv_prog_AR="$AR" # Let the user override the test.
7785 else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789   IFS=$as_save_IFS
7790   test -z "$as_dir" && as_dir=.
7791     for ac_exec_ext in '' $ac_executable_extensions; do
7792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7793     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795     break 2
7796   fi
7797 done
7798   done
7799 IFS=$as_save_IFS
7800
7801 fi
7802 fi
7803 AR=$ac_cv_prog_AR
7804 if test -n "$AR"; then
7805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7806 $as_echo "$AR" >&6; }
7807 else
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7810 fi
7811
7812
7813     test -n "$AR" && break
7814   done
7815 fi
7816 if test -z "$AR"; then
7817   ac_ct_AR=$AR
7818   for ac_prog in ar
7819 do
7820   # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7825   $as_echo_n "(cached) " >&6
7826 else
7827   if test -n "$ac_ct_AR"; then
7828   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833   IFS=$as_save_IFS
7834   test -z "$as_dir" && as_dir=.
7835     for ac_exec_ext in '' $ac_executable_extensions; do
7836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837     ac_cv_prog_ac_ct_AR="$ac_prog"
7838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839     break 2
7840   fi
7841 done
7842   done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7848 if test -n "$ac_ct_AR"; then
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7850 $as_echo "$ac_ct_AR" >&6; }
7851 else
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 fi
7855
7856
7857   test -n "$ac_ct_AR" && break
7858 done
7859
7860   if test "x$ac_ct_AR" = x; then
7861     AR="false"
7862   else
7863     case $cross_compiling:$ac_tool_warned in
7864 yes:)
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867 ac_tool_warned=yes ;;
7868 esac
7869     AR=$ac_ct_AR
7870   fi
7871 fi
7872
7873 : ${AR=ar}
7874 : ${AR_FLAGS=cru}
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7887 $as_echo_n "checking for archiver @FILE support... " >&6; }
7888 if ${lt_cv_ar_at_file+:} false; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   lt_cv_ar_at_file=no
7892    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h.  */
7894
7895 int
7896 main ()
7897 {
7898
7899   ;
7900   return 0;
7901 }
7902 _ACEOF
7903 if ac_fn_c_try_compile "$LINENO"; then :
7904   echo conftest.$ac_objext > conftest.lst
7905       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7906       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7907   (eval $lt_ar_try) 2>&5
7908   ac_status=$?
7909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910   test $ac_status = 0; }
7911       if test "$ac_status" -eq 0; then
7912         # Ensure the archiver fails upon bogus file names.
7913         rm -f conftest.$ac_objext libconftest.a
7914         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7915   (eval $lt_ar_try) 2>&5
7916   ac_status=$?
7917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7918   test $ac_status = 0; }
7919         if test "$ac_status" -ne 0; then
7920           lt_cv_ar_at_file=@
7921         fi
7922       fi
7923       rm -f conftest.* libconftest.a
7924
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927
7928 fi
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7930 $as_echo "$lt_cv_ar_at_file" >&6; }
7931
7932 if test "x$lt_cv_ar_at_file" = xno; then
7933   archiver_list_spec=
7934 else
7935   archiver_list_spec=$lt_cv_ar_at_file
7936 fi
7937
7938
7939
7940
7941
7942
7943
7944 if test -n "$ac_tool_prefix"; then
7945   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7946 set dummy ${ac_tool_prefix}strip; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if ${ac_cv_prog_STRIP+:} false; then :
7950   $as_echo_n "(cached) " >&6
7951 else
7952   if test -n "$STRIP"; then
7953   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960     for ac_exec_ext in '' $ac_executable_extensions; do
7961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964     break 2
7965   fi
7966 done
7967   done
7968 IFS=$as_save_IFS
7969
7970 fi
7971 fi
7972 STRIP=$ac_cv_prog_STRIP
7973 if test -n "$STRIP"; then
7974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7975 $as_echo "$STRIP" >&6; }
7976 else
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 fi
7980
7981
7982 fi
7983 if test -z "$ac_cv_prog_STRIP"; then
7984   ac_ct_STRIP=$STRIP
7985   # Extract the first word of "strip", so it can be a program name with args.
7986 set dummy strip; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7990   $as_echo_n "(cached) " >&6
7991 else
7992   if test -n "$ac_ct_STRIP"; then
7993   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7994 else
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998   IFS=$as_save_IFS
7999   test -z "$as_dir" && as_dir=.
8000     for ac_exec_ext in '' $ac_executable_extensions; do
8001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002     ac_cv_prog_ac_ct_STRIP="strip"
8003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004     break 2
8005   fi
8006 done
8007   done
8008 IFS=$as_save_IFS
8009
8010 fi
8011 fi
8012 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8013 if test -n "$ac_ct_STRIP"; then
8014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8015 $as_echo "$ac_ct_STRIP" >&6; }
8016 else
8017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8019 fi
8020
8021   if test "x$ac_ct_STRIP" = x; then
8022     STRIP=":"
8023   else
8024     case $cross_compiling:$ac_tool_warned in
8025 yes:)
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8028 ac_tool_warned=yes ;;
8029 esac
8030     STRIP=$ac_ct_STRIP
8031   fi
8032 else
8033   STRIP="$ac_cv_prog_STRIP"
8034 fi
8035
8036 test -z "$STRIP" && STRIP=:
8037
8038
8039
8040
8041
8042
8043 if test -n "$ac_tool_prefix"; then
8044   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8045 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047 $as_echo_n "checking for $ac_word... " >&6; }
8048 if ${ac_cv_prog_RANLIB+:} false; then :
8049   $as_echo_n "(cached) " >&6
8050 else
8051   if test -n "$RANLIB"; then
8052   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8053 else
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8056 do
8057   IFS=$as_save_IFS
8058   test -z "$as_dir" && as_dir=.
8059     for ac_exec_ext in '' $ac_executable_extensions; do
8060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063     break 2
8064   fi
8065 done
8066   done
8067 IFS=$as_save_IFS
8068
8069 fi
8070 fi
8071 RANLIB=$ac_cv_prog_RANLIB
8072 if test -n "$RANLIB"; then
8073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8074 $as_echo "$RANLIB" >&6; }
8075 else
8076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8078 fi
8079
8080
8081 fi
8082 if test -z "$ac_cv_prog_RANLIB"; then
8083   ac_ct_RANLIB=$RANLIB
8084   # Extract the first word of "ranlib", so it can be a program name with args.
8085 set dummy ranlib; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8089   $as_echo_n "(cached) " >&6
8090 else
8091   if test -n "$ac_ct_RANLIB"; then
8092   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097   IFS=$as_save_IFS
8098   test -z "$as_dir" && as_dir=.
8099     for ac_exec_ext in '' $ac_executable_extensions; do
8100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101     ac_cv_prog_ac_ct_RANLIB="ranlib"
8102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103     break 2
8104   fi
8105 done
8106   done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8112 if test -n "$ac_ct_RANLIB"; then
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8114 $as_echo "$ac_ct_RANLIB" >&6; }
8115 else
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120   if test "x$ac_ct_RANLIB" = x; then
8121     RANLIB=":"
8122   else
8123     case $cross_compiling:$ac_tool_warned in
8124 yes:)
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8127 ac_tool_warned=yes ;;
8128 esac
8129     RANLIB=$ac_ct_RANLIB
8130   fi
8131 else
8132   RANLIB="$ac_cv_prog_RANLIB"
8133 fi
8134
8135 test -z "$RANLIB" && RANLIB=:
8136
8137
8138
8139
8140
8141
8142 # Determine commands to create old-style static archives.
8143 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8144 old_postinstall_cmds='chmod 644 $oldlib'
8145 old_postuninstall_cmds=
8146
8147 if test -n "$RANLIB"; then
8148   case $host_os in
8149   openbsd*)
8150     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8151     ;;
8152   *)
8153     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8154     ;;
8155   esac
8156   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8157 fi
8158
8159 case $host_os in
8160   darwin*)
8161     lock_old_archive_extraction=yes ;;
8162   *)
8163     lock_old_archive_extraction=no ;;
8164 esac
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186 for ac_prog in gawk mawk nawk awk
8187 do
8188   # Extract the first word of "$ac_prog", so it can be a program name with args.
8189 set dummy $ac_prog; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if ${ac_cv_prog_AWK+:} false; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195   if test -n "$AWK"; then
8196   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201   IFS=$as_save_IFS
8202   test -z "$as_dir" && as_dir=.
8203     for ac_exec_ext in '' $ac_executable_extensions; do
8204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8205     ac_cv_prog_AWK="$ac_prog"
8206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207     break 2
8208   fi
8209 done
8210   done
8211 IFS=$as_save_IFS
8212
8213 fi
8214 fi
8215 AWK=$ac_cv_prog_AWK
8216 if test -n "$AWK"; then
8217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8218 $as_echo "$AWK" >&6; }
8219 else
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8222 fi
8223
8224
8225   test -n "$AWK" && break
8226 done
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246 # If no C compiler was specified, use CC.
8247 LTCC=${LTCC-"$CC"}
8248
8249 # If no C compiler flags were specified, use CFLAGS.
8250 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8251
8252 # Allow CC to be a program name with arguments.
8253 compiler=$CC
8254
8255
8256 # Check for command to grab the raw symbol name followed by C symbol from nm.
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8258 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8259 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8260   $as_echo_n "(cached) " >&6
8261 else
8262
8263 # These are sane defaults that work on at least a few old systems.
8264 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8265
8266 # Character class describing NM global symbol codes.
8267 symcode='[BCDEGRST]'
8268
8269 # Regexp to match symbols that can be accessed directly from C.
8270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8271
8272 # Define system-specific variables.
8273 case $host_os in
8274 aix*)
8275   symcode='[BCDT]'
8276   ;;
8277 cygwin* | mingw* | pw32* | cegcc*)
8278   symcode='[ABCDGISTW]'
8279   ;;
8280 hpux*)
8281   if test "$host_cpu" = ia64; then
8282     symcode='[ABCDEGRST]'
8283   fi
8284   ;;
8285 irix* | nonstopux*)
8286   symcode='[BCDEGRST]'
8287   ;;
8288 osf*)
8289   symcode='[BCDEGQRST]'
8290   ;;
8291 solaris*)
8292   symcode='[BDRT]'
8293   ;;
8294 sco3.2v5*)
8295   symcode='[DT]'
8296   ;;
8297 sysv4.2uw2*)
8298   symcode='[DT]'
8299   ;;
8300 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8301   symcode='[ABDT]'
8302   ;;
8303 sysv4)
8304   symcode='[DFNSTU]'
8305   ;;
8306 esac
8307
8308 # If we're using GNU nm, then use its standard symbol codes.
8309 case `$NM -V 2>&1` in
8310 *GNU* | *'with BFD'*)
8311   symcode='[ABCDGIRSTW]' ;;
8312 esac
8313
8314 # Transform an extracted symbol line into a proper C declaration.
8315 # Some systems (esp. on ia64) link data and code symbols differently,
8316 # so use this general approach.
8317 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8318
8319 # Transform an extracted symbol line into symbol name and symbol address
8320 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8321 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'"
8322
8323 # Handle CRLF in mingw tool chain
8324 opt_cr=
8325 case $build_os in
8326 mingw*)
8327   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8328   ;;
8329 esac
8330
8331 # Try without a prefix underscore, then with it.
8332 for ac_symprfx in "" "_"; do
8333
8334   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8335   symxfrm="\\1 $ac_symprfx\\2 \\2"
8336
8337   # Write the raw and C identifiers.
8338   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8339     # Fake it for dumpbin and say T for any non-static function
8340     # and D for any global variable.
8341     # Also find C++ and __fastcall symbols from MSVC++,
8342     # which start with @ or ?.
8343     lt_cv_sys_global_symbol_pipe="$AWK '"\
8344 "     {last_section=section; section=\$ 3};"\
8345 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8346 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8347 "     \$ 0!~/External *\|/{next};"\
8348 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8349 "     {if(hide[section]) next};"\
8350 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8351 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8352 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8353 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8354 "     ' prfx=^$ac_symprfx"
8355   else
8356     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8357   fi
8358   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8359
8360   # Check to see that the pipe works correctly.
8361   pipe_works=no
8362
8363   rm -f conftest*
8364   cat > conftest.$ac_ext <<_LT_EOF
8365 #ifdef __cplusplus
8366 extern "C" {
8367 #endif
8368 char nm_test_var;
8369 void nm_test_func(void);
8370 void nm_test_func(void){}
8371 #ifdef __cplusplus
8372 }
8373 #endif
8374 int main(){nm_test_var='a';nm_test_func();return(0);}
8375 _LT_EOF
8376
8377   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8378   (eval $ac_compile) 2>&5
8379   ac_status=$?
8380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8381   test $ac_status = 0; }; then
8382     # Now try to grab the symbols.
8383     nlist=conftest.nm
8384     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8385   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8386   ac_status=$?
8387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8388   test $ac_status = 0; } && test -s "$nlist"; then
8389       # Try sorting and uniquifying the output.
8390       if sort "$nlist" | uniq > "$nlist"T; then
8391         mv -f "$nlist"T "$nlist"
8392       else
8393         rm -f "$nlist"T
8394       fi
8395
8396       # Make sure that we snagged all the symbols we need.
8397       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8398         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8399           cat <<_LT_EOF > conftest.$ac_ext
8400 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8401 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8402 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8403    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8404 # define LT_DLSYM_CONST
8405 #elif defined(__osf__)
8406 /* This system does not cope well with relocations in const data.  */
8407 # define LT_DLSYM_CONST
8408 #else
8409 # define LT_DLSYM_CONST const
8410 #endif
8411
8412 #ifdef __cplusplus
8413 extern "C" {
8414 #endif
8415
8416 _LT_EOF
8417           # Now generate the symbol file.
8418           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8419
8420           cat <<_LT_EOF >> conftest.$ac_ext
8421
8422 /* The mapping between symbol names and symbols.  */
8423 LT_DLSYM_CONST struct {
8424   const char *name;
8425   void       *address;
8426 }
8427 lt__PROGRAM__LTX_preloaded_symbols[] =
8428 {
8429   { "@PROGRAM@", (void *) 0 },
8430 _LT_EOF
8431           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8432           cat <<\_LT_EOF >> conftest.$ac_ext
8433   {0, (void *) 0}
8434 };
8435
8436 /* This works around a problem in FreeBSD linker */
8437 #ifdef FREEBSD_WORKAROUND
8438 static const void *lt_preloaded_setup() {
8439   return lt__PROGRAM__LTX_preloaded_symbols;
8440 }
8441 #endif
8442
8443 #ifdef __cplusplus
8444 }
8445 #endif
8446 _LT_EOF
8447           # Now try linking the two files.
8448           mv conftest.$ac_objext conftstm.$ac_objext
8449           lt_globsym_save_LIBS=$LIBS
8450           lt_globsym_save_CFLAGS=$CFLAGS
8451           LIBS="conftstm.$ac_objext"
8452           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8453           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8454   (eval $ac_link) 2>&5
8455   ac_status=$?
8456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8457   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8458             pipe_works=yes
8459           fi
8460           LIBS=$lt_globsym_save_LIBS
8461           CFLAGS=$lt_globsym_save_CFLAGS
8462         else
8463           echo "cannot find nm_test_func in $nlist" >&5
8464         fi
8465       else
8466         echo "cannot find nm_test_var in $nlist" >&5
8467       fi
8468     else
8469       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8470     fi
8471   else
8472     echo "$progname: failed program was:" >&5
8473     cat conftest.$ac_ext >&5
8474   fi
8475   rm -rf conftest* conftst*
8476
8477   # Do not use the global_symbol_pipe unless it works.
8478   if test "$pipe_works" = yes; then
8479     break
8480   else
8481     lt_cv_sys_global_symbol_pipe=
8482   fi
8483 done
8484
8485 fi
8486
8487 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8488   lt_cv_sys_global_symbol_to_cdecl=
8489 fi
8490 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8492 $as_echo "failed" >&6; }
8493 else
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8495 $as_echo "ok" >&6; }
8496 fi
8497
8498 # Response file support.
8499 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8500   nm_file_list_spec='@'
8501 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8502   nm_file_list_spec='@'
8503 fi
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8532 $as_echo_n "checking for sysroot... " >&6; }
8533
8534 # Check whether --with-sysroot was given.
8535 if test "${with_sysroot+set}" = set; then :
8536   withval=$with_sysroot;
8537 else
8538   with_sysroot=no
8539 fi
8540
8541
8542 lt_sysroot=
8543 case ${with_sysroot} in #(
8544  yes)
8545    if test "$GCC" = yes; then
8546      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8547    fi
8548    ;; #(
8549  /*)
8550    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8551    ;; #(
8552  no|'')
8553    ;; #(
8554  *)
8555    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8556 $as_echo "${with_sysroot}" >&6; }
8557    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8558    ;;
8559 esac
8560
8561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8562 $as_echo "${lt_sysroot:-no}" >&6; }
8563
8564
8565
8566
8567
8568 # Check whether --enable-libtool-lock was given.
8569 if test "${enable_libtool_lock+set}" = set; then :
8570   enableval=$enable_libtool_lock;
8571 fi
8572
8573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8574
8575 # Some flags need to be propagated to the compiler or linker for good
8576 # libtool support.
8577 case $host in
8578 ia64-*-hpux*)
8579   # Find out which ABI we are using.
8580   echo 'int i;' > conftest.$ac_ext
8581   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8582   (eval $ac_compile) 2>&5
8583   ac_status=$?
8584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8585   test $ac_status = 0; }; then
8586     case `/usr/bin/file conftest.$ac_objext` in
8587       *ELF-32*)
8588         HPUX_IA64_MODE="32"
8589         ;;
8590       *ELF-64*)
8591         HPUX_IA64_MODE="64"
8592         ;;
8593     esac
8594   fi
8595   rm -rf conftest*
8596   ;;
8597 *-*-irix6*)
8598   # Find out which ABI we are using.
8599   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8600   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8601   (eval $ac_compile) 2>&5
8602   ac_status=$?
8603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8604   test $ac_status = 0; }; then
8605     if test "$lt_cv_prog_gnu_ld" = yes; then
8606       case `/usr/bin/file conftest.$ac_objext` in
8607         *32-bit*)
8608           LD="${LD-ld} -melf32bsmip"
8609           ;;
8610         *N32*)
8611           LD="${LD-ld} -melf32bmipn32"
8612           ;;
8613         *64-bit*)
8614           LD="${LD-ld} -melf64bmip"
8615         ;;
8616       esac
8617     else
8618       case `/usr/bin/file conftest.$ac_objext` in
8619         *32-bit*)
8620           LD="${LD-ld} -32"
8621           ;;
8622         *N32*)
8623           LD="${LD-ld} -n32"
8624           ;;
8625         *64-bit*)
8626           LD="${LD-ld} -64"
8627           ;;
8628       esac
8629     fi
8630   fi
8631   rm -rf conftest*
8632   ;;
8633
8634 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8635 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8636   # Find out which ABI we are using.
8637   echo 'int i;' > conftest.$ac_ext
8638   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8639   (eval $ac_compile) 2>&5
8640   ac_status=$?
8641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8642   test $ac_status = 0; }; then
8643     case `/usr/bin/file conftest.o` in
8644       *32-bit*)
8645         case $host in
8646           x86_64-*kfreebsd*-gnu)
8647             LD="${LD-ld} -m elf_i386_fbsd"
8648             ;;
8649           x86_64-*linux*)
8650             LD="${LD-ld} -m elf_i386"
8651             ;;
8652           ppc64-*linux*|powerpc64-*linux*)
8653             LD="${LD-ld} -m elf32ppclinux"
8654             ;;
8655           s390x-*linux*)
8656             LD="${LD-ld} -m elf_s390"
8657             ;;
8658           sparc64-*linux*)
8659             LD="${LD-ld} -m elf32_sparc"
8660             ;;
8661         esac
8662         ;;
8663       *64-bit*)
8664         case $host in
8665           x86_64-*kfreebsd*-gnu)
8666             LD="${LD-ld} -m elf_x86_64_fbsd"
8667             ;;
8668           x86_64-*linux*)
8669             LD="${LD-ld} -m elf_x86_64"
8670             ;;
8671           ppc*-*linux*|powerpc*-*linux*)
8672             LD="${LD-ld} -m elf64ppc"
8673             ;;
8674           s390*-*linux*|s390*-*tpf*)
8675             LD="${LD-ld} -m elf64_s390"
8676             ;;
8677           sparc*-*linux*)
8678             LD="${LD-ld} -m elf64_sparc"
8679             ;;
8680         esac
8681         ;;
8682     esac
8683   fi
8684   rm -rf conftest*
8685   ;;
8686
8687 *-*-sco3.2v5*)
8688   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8689   SAVE_CFLAGS="$CFLAGS"
8690   CFLAGS="$CFLAGS -belf"
8691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8692 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8693 if ${lt_cv_cc_needs_belf+:} false; then :
8694   $as_echo_n "(cached) " >&6
8695 else
8696   ac_ext=c
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h.  */
8704
8705 int
8706 main ()
8707 {
8708
8709   ;
8710   return 0;
8711 }
8712 _ACEOF
8713 if ac_fn_c_try_link "$LINENO"; then :
8714   lt_cv_cc_needs_belf=yes
8715 else
8716   lt_cv_cc_needs_belf=no
8717 fi
8718 rm -f core conftest.err conftest.$ac_objext \
8719     conftest$ac_exeext conftest.$ac_ext
8720      ac_ext=c
8721 ac_cpp='$CPP $CPPFLAGS'
8722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8725
8726 fi
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8728 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8729   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8730     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8731     CFLAGS="$SAVE_CFLAGS"
8732   fi
8733   ;;
8734 *-*solaris*)
8735   # Find out which ABI we are using.
8736   echo 'int i;' > conftest.$ac_ext
8737   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8738   (eval $ac_compile) 2>&5
8739   ac_status=$?
8740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8741   test $ac_status = 0; }; then
8742     case `/usr/bin/file conftest.o` in
8743     *64-bit*)
8744       case $lt_cv_prog_gnu_ld in
8745       yes*)
8746         case $host in
8747         i?86-*-solaris*)
8748           LD="${LD-ld} -m elf_x86_64"
8749           ;;
8750         sparc*-*-solaris*)
8751           LD="${LD-ld} -m elf64_sparc"
8752           ;;
8753         esac
8754         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8755         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8756           LD="${LD-ld}_sol2"
8757         fi
8758         ;;
8759       *)
8760         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8761           LD="${LD-ld} -64"
8762         fi
8763         ;;
8764       esac
8765       ;;
8766     esac
8767   fi
8768   rm -rf conftest*
8769   ;;
8770 esac
8771
8772 need_locks="$enable_libtool_lock"
8773
8774 if test -n "$ac_tool_prefix"; then
8775   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8776 set dummy ${ac_tool_prefix}mt; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8780   $as_echo_n "(cached) " >&6
8781 else
8782   if test -n "$MANIFEST_TOOL"; then
8783   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8784 else
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8787 do
8788   IFS=$as_save_IFS
8789   test -z "$as_dir" && as_dir=.
8790     for ac_exec_ext in '' $ac_executable_extensions; do
8791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794     break 2
8795   fi
8796 done
8797   done
8798 IFS=$as_save_IFS
8799
8800 fi
8801 fi
8802 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8803 if test -n "$MANIFEST_TOOL"; then
8804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8805 $as_echo "$MANIFEST_TOOL" >&6; }
8806 else
8807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8809 fi
8810
8811
8812 fi
8813 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8814   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8815   # Extract the first word of "mt", so it can be a program name with args.
8816 set dummy mt; ac_word=$2
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8818 $as_echo_n "checking for $ac_word... " >&6; }
8819 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8820   $as_echo_n "(cached) " >&6
8821 else
8822   if test -n "$ac_ct_MANIFEST_TOOL"; then
8823   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8824 else
8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8826 for as_dir in $PATH
8827 do
8828   IFS=$as_save_IFS
8829   test -z "$as_dir" && as_dir=.
8830     for ac_exec_ext in '' $ac_executable_extensions; do
8831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8832     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8834     break 2
8835   fi
8836 done
8837   done
8838 IFS=$as_save_IFS
8839
8840 fi
8841 fi
8842 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8843 if test -n "$ac_ct_MANIFEST_TOOL"; then
8844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8845 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8846 else
8847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8849 fi
8850
8851   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8852     MANIFEST_TOOL=":"
8853   else
8854     case $cross_compiling:$ac_tool_warned in
8855 yes:)
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8858 ac_tool_warned=yes ;;
8859 esac
8860     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8861   fi
8862 else
8863   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8864 fi
8865
8866 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8868 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8869 if ${lt_cv_path_mainfest_tool+:} false; then :
8870   $as_echo_n "(cached) " >&6
8871 else
8872   lt_cv_path_mainfest_tool=no
8873   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8874   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8875   cat conftest.err >&5
8876   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8877     lt_cv_path_mainfest_tool=yes
8878   fi
8879   rm -f conftest*
8880 fi
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8882 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8883 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8884   MANIFEST_TOOL=:
8885 fi
8886
8887
8888
8889
8890
8891
8892   case $host_os in
8893     rhapsody* | darwin*)
8894     if test -n "$ac_tool_prefix"; then
8895   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8896 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   if test -n "$DSYMUTIL"; then
8903   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8904 else
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in $PATH
8907 do
8908   IFS=$as_save_IFS
8909   test -z "$as_dir" && as_dir=.
8910     for ac_exec_ext in '' $ac_executable_extensions; do
8911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8912     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914     break 2
8915   fi
8916 done
8917   done
8918 IFS=$as_save_IFS
8919
8920 fi
8921 fi
8922 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8923 if test -n "$DSYMUTIL"; then
8924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8925 $as_echo "$DSYMUTIL" >&6; }
8926 else
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8929 fi
8930
8931
8932 fi
8933 if test -z "$ac_cv_prog_DSYMUTIL"; then
8934   ac_ct_DSYMUTIL=$DSYMUTIL
8935   # Extract the first word of "dsymutil", so it can be a program name with args.
8936 set dummy dsymutil; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8940   $as_echo_n "(cached) " >&6
8941 else
8942   if test -n "$ac_ct_DSYMUTIL"; then
8943   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8944 else
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8947 do
8948   IFS=$as_save_IFS
8949   test -z "$as_dir" && as_dir=.
8950     for ac_exec_ext in '' $ac_executable_extensions; do
8951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954     break 2
8955   fi
8956 done
8957   done
8958 IFS=$as_save_IFS
8959
8960 fi
8961 fi
8962 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8963 if test -n "$ac_ct_DSYMUTIL"; then
8964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8965 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8966 else
8967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8969 fi
8970
8971   if test "x$ac_ct_DSYMUTIL" = x; then
8972     DSYMUTIL=":"
8973   else
8974     case $cross_compiling:$ac_tool_warned in
8975 yes:)
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8978 ac_tool_warned=yes ;;
8979 esac
8980     DSYMUTIL=$ac_ct_DSYMUTIL
8981   fi
8982 else
8983   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8984 fi
8985
8986     if test -n "$ac_tool_prefix"; then
8987   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8988 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_NMEDIT+:} false; then :
8992   $as_echo_n "(cached) " >&6
8993 else
8994   if test -n "$NMEDIT"; then
8995   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8996 else
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in $PATH
8999 do
9000   IFS=$as_save_IFS
9001   test -z "$as_dir" && as_dir=.
9002     for ac_exec_ext in '' $ac_executable_extensions; do
9003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9004     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006     break 2
9007   fi
9008 done
9009   done
9010 IFS=$as_save_IFS
9011
9012 fi
9013 fi
9014 NMEDIT=$ac_cv_prog_NMEDIT
9015 if test -n "$NMEDIT"; then
9016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9017 $as_echo "$NMEDIT" >&6; }
9018 else
9019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9021 fi
9022
9023
9024 fi
9025 if test -z "$ac_cv_prog_NMEDIT"; then
9026   ac_ct_NMEDIT=$NMEDIT
9027   # Extract the first word of "nmedit", so it can be a program name with args.
9028 set dummy nmedit; ac_word=$2
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 $as_echo_n "checking for $ac_word... " >&6; }
9031 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9032   $as_echo_n "(cached) " >&6
9033 else
9034   if test -n "$ac_ct_NMEDIT"; then
9035   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9036 else
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 for as_dir in $PATH
9039 do
9040   IFS=$as_save_IFS
9041   test -z "$as_dir" && as_dir=.
9042     for ac_exec_ext in '' $ac_executable_extensions; do
9043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9044     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046     break 2
9047   fi
9048 done
9049   done
9050 IFS=$as_save_IFS
9051
9052 fi
9053 fi
9054 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9055 if test -n "$ac_ct_NMEDIT"; then
9056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9057 $as_echo "$ac_ct_NMEDIT" >&6; }
9058 else
9059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9061 fi
9062
9063   if test "x$ac_ct_NMEDIT" = x; then
9064     NMEDIT=":"
9065   else
9066     case $cross_compiling:$ac_tool_warned in
9067 yes:)
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9070 ac_tool_warned=yes ;;
9071 esac
9072     NMEDIT=$ac_ct_NMEDIT
9073   fi
9074 else
9075   NMEDIT="$ac_cv_prog_NMEDIT"
9076 fi
9077
9078     if test -n "$ac_tool_prefix"; then
9079   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9080 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082 $as_echo_n "checking for $ac_word... " >&6; }
9083 if ${ac_cv_prog_LIPO+:} false; then :
9084   $as_echo_n "(cached) " >&6
9085 else
9086   if test -n "$LIPO"; then
9087   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9088 else
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 for as_dir in $PATH
9091 do
9092   IFS=$as_save_IFS
9093   test -z "$as_dir" && as_dir=.
9094     for ac_exec_ext in '' $ac_executable_extensions; do
9095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9096     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098     break 2
9099   fi
9100 done
9101   done
9102 IFS=$as_save_IFS
9103
9104 fi
9105 fi
9106 LIPO=$ac_cv_prog_LIPO
9107 if test -n "$LIPO"; then
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9109 $as_echo "$LIPO" >&6; }
9110 else
9111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9113 fi
9114
9115
9116 fi
9117 if test -z "$ac_cv_prog_LIPO"; then
9118   ac_ct_LIPO=$LIPO
9119   # Extract the first word of "lipo", so it can be a program name with args.
9120 set dummy lipo; ac_word=$2
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122 $as_echo_n "checking for $ac_word... " >&6; }
9123 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9124   $as_echo_n "(cached) " >&6
9125 else
9126   if test -n "$ac_ct_LIPO"; then
9127   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9128 else
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9131 do
9132   IFS=$as_save_IFS
9133   test -z "$as_dir" && as_dir=.
9134     for ac_exec_ext in '' $ac_executable_extensions; do
9135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136     ac_cv_prog_ac_ct_LIPO="lipo"
9137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138     break 2
9139   fi
9140 done
9141   done
9142 IFS=$as_save_IFS
9143
9144 fi
9145 fi
9146 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9147 if test -n "$ac_ct_LIPO"; then
9148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9149 $as_echo "$ac_ct_LIPO" >&6; }
9150 else
9151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152 $as_echo "no" >&6; }
9153 fi
9154
9155   if test "x$ac_ct_LIPO" = x; then
9156     LIPO=":"
9157   else
9158     case $cross_compiling:$ac_tool_warned in
9159 yes:)
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9162 ac_tool_warned=yes ;;
9163 esac
9164     LIPO=$ac_ct_LIPO
9165   fi
9166 else
9167   LIPO="$ac_cv_prog_LIPO"
9168 fi
9169
9170     if test -n "$ac_tool_prefix"; then
9171   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9172 set dummy ${ac_tool_prefix}otool; ac_word=$2
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174 $as_echo_n "checking for $ac_word... " >&6; }
9175 if ${ac_cv_prog_OTOOL+:} false; then :
9176   $as_echo_n "(cached) " >&6
9177 else
9178   if test -n "$OTOOL"; then
9179   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9180 else
9181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182 for as_dir in $PATH
9183 do
9184   IFS=$as_save_IFS
9185   test -z "$as_dir" && as_dir=.
9186     for ac_exec_ext in '' $ac_executable_extensions; do
9187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9188     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190     break 2
9191   fi
9192 done
9193   done
9194 IFS=$as_save_IFS
9195
9196 fi
9197 fi
9198 OTOOL=$ac_cv_prog_OTOOL
9199 if test -n "$OTOOL"; then
9200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9201 $as_echo "$OTOOL" >&6; }
9202 else
9203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 $as_echo "no" >&6; }
9205 fi
9206
9207
9208 fi
9209 if test -z "$ac_cv_prog_OTOOL"; then
9210   ac_ct_OTOOL=$OTOOL
9211   # Extract the first word of "otool", so it can be a program name with args.
9212 set dummy otool; ac_word=$2
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214 $as_echo_n "checking for $ac_word... " >&6; }
9215 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9216   $as_echo_n "(cached) " >&6
9217 else
9218   if test -n "$ac_ct_OTOOL"; then
9219   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9220 else
9221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222 for as_dir in $PATH
9223 do
9224   IFS=$as_save_IFS
9225   test -z "$as_dir" && as_dir=.
9226     for ac_exec_ext in '' $ac_executable_extensions; do
9227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9228     ac_cv_prog_ac_ct_OTOOL="otool"
9229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230     break 2
9231   fi
9232 done
9233   done
9234 IFS=$as_save_IFS
9235
9236 fi
9237 fi
9238 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9239 if test -n "$ac_ct_OTOOL"; then
9240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9241 $as_echo "$ac_ct_OTOOL" >&6; }
9242 else
9243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9245 fi
9246
9247   if test "x$ac_ct_OTOOL" = x; then
9248     OTOOL=":"
9249   else
9250     case $cross_compiling:$ac_tool_warned in
9251 yes:)
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9254 ac_tool_warned=yes ;;
9255 esac
9256     OTOOL=$ac_ct_OTOOL
9257   fi
9258 else
9259   OTOOL="$ac_cv_prog_OTOOL"
9260 fi
9261
9262     if test -n "$ac_tool_prefix"; then
9263   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9264 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if ${ac_cv_prog_OTOOL64+:} false; then :
9268   $as_echo_n "(cached) " >&6
9269 else
9270   if test -n "$OTOOL64"; then
9271   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9272 else
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9275 do
9276   IFS=$as_save_IFS
9277   test -z "$as_dir" && as_dir=.
9278     for ac_exec_ext in '' $ac_executable_extensions; do
9279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282     break 2
9283   fi
9284 done
9285   done
9286 IFS=$as_save_IFS
9287
9288 fi
9289 fi
9290 OTOOL64=$ac_cv_prog_OTOOL64
9291 if test -n "$OTOOL64"; then
9292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9293 $as_echo "$OTOOL64" >&6; }
9294 else
9295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9297 fi
9298
9299
9300 fi
9301 if test -z "$ac_cv_prog_OTOOL64"; then
9302   ac_ct_OTOOL64=$OTOOL64
9303   # Extract the first word of "otool64", so it can be a program name with args.
9304 set dummy otool64; ac_word=$2
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9306 $as_echo_n "checking for $ac_word... " >&6; }
9307 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9308   $as_echo_n "(cached) " >&6
9309 else
9310   if test -n "$ac_ct_OTOOL64"; then
9311   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9312 else
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 for as_dir in $PATH
9315 do
9316   IFS=$as_save_IFS
9317   test -z "$as_dir" && as_dir=.
9318     for ac_exec_ext in '' $ac_executable_extensions; do
9319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9320     ac_cv_prog_ac_ct_OTOOL64="otool64"
9321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9322     break 2
9323   fi
9324 done
9325   done
9326 IFS=$as_save_IFS
9327
9328 fi
9329 fi
9330 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9331 if test -n "$ac_ct_OTOOL64"; then
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9333 $as_echo "$ac_ct_OTOOL64" >&6; }
9334 else
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9337 fi
9338
9339   if test "x$ac_ct_OTOOL64" = x; then
9340     OTOOL64=":"
9341   else
9342     case $cross_compiling:$ac_tool_warned in
9343 yes:)
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9346 ac_tool_warned=yes ;;
9347 esac
9348     OTOOL64=$ac_ct_OTOOL64
9349   fi
9350 else
9351   OTOOL64="$ac_cv_prog_OTOOL64"
9352 fi
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9381 $as_echo_n "checking for -single_module linker flag... " >&6; }
9382 if ${lt_cv_apple_cc_single_mod+:} false; then :
9383   $as_echo_n "(cached) " >&6
9384 else
9385   lt_cv_apple_cc_single_mod=no
9386       if test -z "${LT_MULTI_MODULE}"; then
9387         # By default we will add the -single_module flag. You can override
9388         # by either setting the environment variable LT_MULTI_MODULE
9389         # non-empty at configure time, or by adding -multi_module to the
9390         # link flags.
9391         rm -rf libconftest.dylib*
9392         echo "int foo(void){return 1;}" > conftest.c
9393         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9394 -dynamiclib -Wl,-single_module conftest.c" >&5
9395         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9396           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9397         _lt_result=$?
9398         # If there is a non-empty error log, and "single_module"
9399         # appears in it, assume the flag caused a linker warning
9400         if test -s conftest.err && $GREP single_module conftest.err; then
9401           cat conftest.err >&5
9402         # Otherwise, if the output was created with a 0 exit code from
9403         # the compiler, it worked.
9404         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9405           lt_cv_apple_cc_single_mod=yes
9406         else
9407           cat conftest.err >&5
9408         fi
9409         rm -rf libconftest.dylib*
9410         rm -f conftest.*
9411       fi
9412 fi
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9414 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9415
9416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9417 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9418 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9419   $as_echo_n "(cached) " >&6
9420 else
9421   lt_cv_ld_exported_symbols_list=no
9422       save_LDFLAGS=$LDFLAGS
9423       echo "_main" > conftest.sym
9424       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9425       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h.  */
9427
9428 int
9429 main ()
9430 {
9431
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 if ac_fn_c_try_link "$LINENO"; then :
9437   lt_cv_ld_exported_symbols_list=yes
9438 else
9439   lt_cv_ld_exported_symbols_list=no
9440 fi
9441 rm -f core conftest.err conftest.$ac_objext \
9442     conftest$ac_exeext conftest.$ac_ext
9443         LDFLAGS="$save_LDFLAGS"
9444
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9447 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9448
9449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9450 $as_echo_n "checking for -force_load linker flag... " >&6; }
9451 if ${lt_cv_ld_force_load+:} false; then :
9452   $as_echo_n "(cached) " >&6
9453 else
9454   lt_cv_ld_force_load=no
9455       cat > conftest.c << _LT_EOF
9456 int forced_loaded() { return 2;}
9457 _LT_EOF
9458       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9459       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9460       echo "$AR cru libconftest.a conftest.o" >&5
9461       $AR cru libconftest.a conftest.o 2>&5
9462       echo "$RANLIB libconftest.a" >&5
9463       $RANLIB libconftest.a 2>&5
9464       cat > conftest.c << _LT_EOF
9465 int main() { return 0;}
9466 _LT_EOF
9467       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9468       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9469       _lt_result=$?
9470       if test -s conftest.err && $GREP force_load conftest.err; then
9471         cat conftest.err >&5
9472       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9473         lt_cv_ld_force_load=yes
9474       else
9475         cat conftest.err >&5
9476       fi
9477         rm -f conftest.err libconftest.a conftest conftest.c
9478         rm -rf conftest.dSYM
9479
9480 fi
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9482 $as_echo "$lt_cv_ld_force_load" >&6; }
9483     case $host_os in
9484     rhapsody* | darwin1.[012])
9485       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9486     darwin1.*)
9487       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9488     darwin*) # darwin 5.x on
9489       # if running on 10.5 or later, the deployment target defaults
9490       # to the OS version, if on x86, and 10.4, the deployment
9491       # target defaults to 10.4. Don't you love it?
9492       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9493         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9494           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9495         10.[012]*)
9496           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9497         10.*)
9498           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9499       esac
9500     ;;
9501   esac
9502     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9503       _lt_dar_single_mod='$single_module'
9504     fi
9505     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9506       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9507     else
9508       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9509     fi
9510     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9511       _lt_dsymutil='~$DSYMUTIL $lib || :'
9512     else
9513       _lt_dsymutil=
9514     fi
9515     ;;
9516   esac
9517
9518
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9520 $as_echo_n "checking for ANSI C header files... " >&6; }
9521 if ${ac_cv_header_stdc+:} false; then :
9522   $as_echo_n "(cached) " >&6
9523 else
9524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h.  */
9526 #include <stdlib.h>
9527 #include <stdarg.h>
9528 #include <string.h>
9529 #include <float.h>
9530
9531 int
9532 main ()
9533 {
9534
9535   ;
9536   return 0;
9537 }
9538 _ACEOF
9539 if ac_fn_c_try_compile "$LINENO"; then :
9540   ac_cv_header_stdc=yes
9541 else
9542   ac_cv_header_stdc=no
9543 fi
9544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9545
9546 if test $ac_cv_header_stdc = yes; then
9547   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h.  */
9550 #include <string.h>
9551
9552 _ACEOF
9553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9554   $EGREP "memchr" >/dev/null 2>&1; then :
9555
9556 else
9557   ac_cv_header_stdc=no
9558 fi
9559 rm -f conftest*
9560
9561 fi
9562
9563 if test $ac_cv_header_stdc = yes; then
9564   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h.  */
9567 #include <stdlib.h>
9568
9569 _ACEOF
9570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9571   $EGREP "free" >/dev/null 2>&1; then :
9572
9573 else
9574   ac_cv_header_stdc=no
9575 fi
9576 rm -f conftest*
9577
9578 fi
9579
9580 if test $ac_cv_header_stdc = yes; then
9581   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9582   if test "$cross_compiling" = yes; then :
9583   :
9584 else
9585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h.  */
9587 #include <ctype.h>
9588 #include <stdlib.h>
9589 #if ((' ' & 0x0FF) == 0x020)
9590 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9591 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9592 #else
9593 # define ISLOWER(c) \
9594                    (('a' <= (c) && (c) <= 'i') \
9595                      || ('j' <= (c) && (c) <= 'r') \
9596                      || ('s' <= (c) && (c) <= 'z'))
9597 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9598 #endif
9599
9600 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9601 int
9602 main ()
9603 {
9604   int i;
9605   for (i = 0; i < 256; i++)
9606     if (XOR (islower (i), ISLOWER (i))
9607         || toupper (i) != TOUPPER (i))
9608       return 2;
9609   return 0;
9610 }
9611 _ACEOF
9612 if ac_fn_c_try_run "$LINENO"; then :
9613
9614 else
9615   ac_cv_header_stdc=no
9616 fi
9617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9618   conftest.$ac_objext conftest.beam conftest.$ac_ext
9619 fi
9620
9621 fi
9622 fi
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9624 $as_echo "$ac_cv_header_stdc" >&6; }
9625 if test $ac_cv_header_stdc = yes; then
9626
9627 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9628
9629 fi
9630
9631 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9633                   inttypes.h stdint.h unistd.h
9634 do :
9635   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9636 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9637 "
9638 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9639   cat >>confdefs.h <<_ACEOF
9640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9641 _ACEOF
9642
9643 fi
9644
9645 done
9646
9647
9648 for ac_header in dlfcn.h
9649 do :
9650   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9651 "
9652 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9653   cat >>confdefs.h <<_ACEOF
9654 #define HAVE_DLFCN_H 1
9655 _ACEOF
9656
9657 fi
9658
9659 done
9660
9661
9662
9663
9664
9665 # Set options
9666 enable_dlopen=yes
9667
9668
9669
9670
9671   enable_win32_dll=no
9672
9673
9674             # Check whether --enable-shared was given.
9675 if test "${enable_shared+set}" = set; then :
9676   enableval=$enable_shared; p=${PACKAGE-default}
9677     case $enableval in
9678     yes) enable_shared=yes ;;
9679     no) enable_shared=no ;;
9680     *)
9681       enable_shared=no
9682       # Look at the argument we got.  We use all the common list separators.
9683       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9684       for pkg in $enableval; do
9685         IFS="$lt_save_ifs"
9686         if test "X$pkg" = "X$p"; then
9687           enable_shared=yes
9688         fi
9689       done
9690       IFS="$lt_save_ifs"
9691       ;;
9692     esac
9693 else
9694   enable_shared=yes
9695 fi
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705   # Check whether --enable-static was given.
9706 if test "${enable_static+set}" = set; then :
9707   enableval=$enable_static; p=${PACKAGE-default}
9708     case $enableval in
9709     yes) enable_static=yes ;;
9710     no) enable_static=no ;;
9711     *)
9712      enable_static=no
9713       # Look at the argument we got.  We use all the common list separators.
9714       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9715       for pkg in $enableval; do
9716         IFS="$lt_save_ifs"
9717         if test "X$pkg" = "X$p"; then
9718           enable_static=yes
9719         fi
9720       done
9721       IFS="$lt_save_ifs"
9722       ;;
9723     esac
9724 else
9725   enable_static=yes
9726 fi
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737 # Check whether --with-pic was given.
9738 if test "${with_pic+set}" = set; then :
9739   withval=$with_pic; lt_p=${PACKAGE-default}
9740     case $withval in
9741     yes|no) pic_mode=$withval ;;
9742     *)
9743       pic_mode=default
9744       # Look at the argument we got.  We use all the common list separators.
9745       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9746       for lt_pkg in $withval; do
9747         IFS="$lt_save_ifs"
9748         if test "X$lt_pkg" = "X$lt_p"; then
9749           pic_mode=yes
9750         fi
9751       done
9752       IFS="$lt_save_ifs"
9753       ;;
9754     esac
9755 else
9756   pic_mode=default
9757 fi
9758
9759
9760 test -z "$pic_mode" && pic_mode=default
9761
9762
9763
9764
9765
9766
9767
9768   # Check whether --enable-fast-install was given.
9769 if test "${enable_fast_install+set}" = set; then :
9770   enableval=$enable_fast_install; p=${PACKAGE-default}
9771     case $enableval in
9772     yes) enable_fast_install=yes ;;
9773     no) enable_fast_install=no ;;
9774     *)
9775       enable_fast_install=no
9776       # Look at the argument we got.  We use all the common list separators.
9777       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9778       for pkg in $enableval; do
9779         IFS="$lt_save_ifs"
9780         if test "X$pkg" = "X$p"; then
9781           enable_fast_install=yes
9782         fi
9783       done
9784       IFS="$lt_save_ifs"
9785       ;;
9786     esac
9787 else
9788   enable_fast_install=yes
9789 fi
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801 # This can be used to rebuild libtool when needed
9802 LIBTOOL_DEPS="$ltmain"
9803
9804 # Always use our own libtool.
9805 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836 test -z "$LN_S" && LN_S="ln -s"
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851 if test -n "${ZSH_VERSION+set}" ; then
9852    setopt NO_GLOB_SUBST
9853 fi
9854
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9856 $as_echo_n "checking for objdir... " >&6; }
9857 if ${lt_cv_objdir+:} false; then :
9858   $as_echo_n "(cached) " >&6
9859 else
9860   rm -f .libs 2>/dev/null
9861 mkdir .libs 2>/dev/null
9862 if test -d .libs; then
9863   lt_cv_objdir=.libs
9864 else
9865   # MS-DOS does not allow filenames that begin with a dot.
9866   lt_cv_objdir=_libs
9867 fi
9868 rmdir .libs 2>/dev/null
9869 fi
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9871 $as_echo "$lt_cv_objdir" >&6; }
9872 objdir=$lt_cv_objdir
9873
9874
9875
9876
9877
9878 cat >>confdefs.h <<_ACEOF
9879 #define LT_OBJDIR "$lt_cv_objdir/"
9880 _ACEOF
9881
9882
9883
9884
9885 case $host_os in
9886 aix3*)
9887   # AIX sometimes has problems with the GCC collect2 program.  For some
9888   # reason, if we set the COLLECT_NAMES environment variable, the problems
9889   # vanish in a puff of smoke.
9890   if test "X${COLLECT_NAMES+set}" != Xset; then
9891     COLLECT_NAMES=
9892     export COLLECT_NAMES
9893   fi
9894   ;;
9895 esac
9896
9897 # Global variables:
9898 ofile=libtool
9899 can_build_shared=yes
9900
9901 # All known linkers require a `.a' archive for static linking (except MSVC,
9902 # which needs '.lib').
9903 libext=a
9904
9905 with_gnu_ld="$lt_cv_prog_gnu_ld"
9906
9907 old_CC="$CC"
9908 old_CFLAGS="$CFLAGS"
9909
9910 # Set sane defaults for various variables
9911 test -z "$CC" && CC=cc
9912 test -z "$LTCC" && LTCC=$CC
9913 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9914 test -z "$LD" && LD=ld
9915 test -z "$ac_objext" && ac_objext=o
9916
9917 for cc_temp in $compiler""; do
9918   case $cc_temp in
9919     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9920     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9921     \-*) ;;
9922     *) break;;
9923   esac
9924 done
9925 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9926
9927
9928 # Only perform the check for file, if the check method requires it
9929 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9930 case $deplibs_check_method in
9931 file_magic*)
9932   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9934 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9935 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9936   $as_echo_n "(cached) " >&6
9937 else
9938   case $MAGIC_CMD in
9939 [\\/*] |  ?:[\\/]*)
9940   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9941   ;;
9942 *)
9943   lt_save_MAGIC_CMD="$MAGIC_CMD"
9944   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9945   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9946   for ac_dir in $ac_dummy; do
9947     IFS="$lt_save_ifs"
9948     test -z "$ac_dir" && ac_dir=.
9949     if test -f $ac_dir/${ac_tool_prefix}file; then
9950       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9951       if test -n "$file_magic_test_file"; then
9952         case $deplibs_check_method in
9953         "file_magic "*)
9954           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9955           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9956           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9957             $EGREP "$file_magic_regex" > /dev/null; then
9958             :
9959           else
9960             cat <<_LT_EOF 1>&2
9961
9962 *** Warning: the command libtool uses to detect shared libraries,
9963 *** $file_magic_cmd, produces output that libtool cannot recognize.
9964 *** The result is that libtool may fail to recognize shared libraries
9965 *** as such.  This will affect the creation of libtool libraries that
9966 *** depend on shared libraries, but programs linked with such libtool
9967 *** libraries will work regardless of this problem.  Nevertheless, you
9968 *** may want to report the problem to your system manager and/or to
9969 *** bug-libtool@gnu.org
9970
9971 _LT_EOF
9972           fi ;;
9973         esac
9974       fi
9975       break
9976     fi
9977   done
9978   IFS="$lt_save_ifs"
9979   MAGIC_CMD="$lt_save_MAGIC_CMD"
9980   ;;
9981 esac
9982 fi
9983
9984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9985 if test -n "$MAGIC_CMD"; then
9986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9987 $as_echo "$MAGIC_CMD" >&6; }
9988 else
9989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990 $as_echo "no" >&6; }
9991 fi
9992
9993
9994
9995
9996
9997 if test -z "$lt_cv_path_MAGIC_CMD"; then
9998   if test -n "$ac_tool_prefix"; then
9999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10000 $as_echo_n "checking for file... " >&6; }
10001 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   case $MAGIC_CMD in
10005 [\\/*] |  ?:[\\/]*)
10006   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10007   ;;
10008 *)
10009   lt_save_MAGIC_CMD="$MAGIC_CMD"
10010   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10011   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10012   for ac_dir in $ac_dummy; do
10013     IFS="$lt_save_ifs"
10014     test -z "$ac_dir" && ac_dir=.
10015     if test -f $ac_dir/file; then
10016       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10017       if test -n "$file_magic_test_file"; then
10018         case $deplibs_check_method in
10019         "file_magic "*)
10020           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10021           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10022           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10023             $EGREP "$file_magic_regex" > /dev/null; then
10024             :
10025           else
10026             cat <<_LT_EOF 1>&2
10027
10028 *** Warning: the command libtool uses to detect shared libraries,
10029 *** $file_magic_cmd, produces output that libtool cannot recognize.
10030 *** The result is that libtool may fail to recognize shared libraries
10031 *** as such.  This will affect the creation of libtool libraries that
10032 *** depend on shared libraries, but programs linked with such libtool
10033 *** libraries will work regardless of this problem.  Nevertheless, you
10034 *** may want to report the problem to your system manager and/or to
10035 *** bug-libtool@gnu.org
10036
10037 _LT_EOF
10038           fi ;;
10039         esac
10040       fi
10041       break
10042     fi
10043   done
10044   IFS="$lt_save_ifs"
10045   MAGIC_CMD="$lt_save_MAGIC_CMD"
10046   ;;
10047 esac
10048 fi
10049
10050 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10051 if test -n "$MAGIC_CMD"; then
10052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10053 $as_echo "$MAGIC_CMD" >&6; }
10054 else
10055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10057 fi
10058
10059
10060   else
10061     MAGIC_CMD=:
10062   fi
10063 fi
10064
10065   fi
10066   ;;
10067 esac
10068
10069 # Use C for the default configuration in the libtool script
10070
10071 lt_save_CC="$CC"
10072 ac_ext=c
10073 ac_cpp='$CPP $CPPFLAGS'
10074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10077
10078
10079 # Source file extension for C test sources.
10080 ac_ext=c
10081
10082 # Object file extension for compiled C test sources.
10083 objext=o
10084 objext=$objext
10085
10086 # Code to be used in simple compile tests
10087 lt_simple_compile_test_code="int some_variable = 0;"
10088
10089 # Code to be used in simple link tests
10090 lt_simple_link_test_code='int main(){return(0);}'
10091
10092
10093
10094
10095
10096
10097
10098 # If no C compiler was specified, use CC.
10099 LTCC=${LTCC-"$CC"}
10100
10101 # If no C compiler flags were specified, use CFLAGS.
10102 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10103
10104 # Allow CC to be a program name with arguments.
10105 compiler=$CC
10106
10107 # Save the default compiler, since it gets overwritten when the other
10108 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10109 compiler_DEFAULT=$CC
10110
10111 # save warnings/boilerplate of simple test code
10112 ac_outfile=conftest.$ac_objext
10113 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10115 _lt_compiler_boilerplate=`cat conftest.err`
10116 $RM conftest*
10117
10118 ac_outfile=conftest.$ac_objext
10119 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10121 _lt_linker_boilerplate=`cat conftest.err`
10122 $RM -r conftest*
10123
10124
10125 ## CAVEAT EMPTOR:
10126 ## There is no encapsulation within the following macros, do not change
10127 ## the running order or otherwise move them around unless you know exactly
10128 ## what you are doing...
10129 if test -n "$compiler"; then
10130
10131 lt_prog_compiler_no_builtin_flag=
10132
10133 if test "$GCC" = yes; then
10134   case $cc_basename in
10135   nvcc*)
10136     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10137   *)
10138     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10139   esac
10140
10141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10142 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10143 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10144   $as_echo_n "(cached) " >&6
10145 else
10146   lt_cv_prog_compiler_rtti_exceptions=no
10147    ac_outfile=conftest.$ac_objext
10148    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10149    lt_compiler_flag="-fno-rtti -fno-exceptions"
10150    # Insert the option either (1) after the last *FLAGS variable, or
10151    # (2) before a word containing "conftest.", or (3) at the end.
10152    # Note that $ac_compile itself does not contain backslashes and begins
10153    # with a dollar sign (not a hyphen), so the echo should work correctly.
10154    # The option is referenced via a variable to avoid confusing sed.
10155    lt_compile=`echo "$ac_compile" | $SED \
10156    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10157    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10158    -e 's:$: $lt_compiler_flag:'`
10159    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10160    (eval "$lt_compile" 2>conftest.err)
10161    ac_status=$?
10162    cat conftest.err >&5
10163    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164    if (exit $ac_status) && test -s "$ac_outfile"; then
10165      # The compiler can only warn and ignore the option if not recognized
10166      # So say no if there are warnings other than the usual output.
10167      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10168      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10169      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10170        lt_cv_prog_compiler_rtti_exceptions=yes
10171      fi
10172    fi
10173    $RM conftest*
10174
10175 fi
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10177 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10178
10179 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10180     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10181 else
10182     :
10183 fi
10184
10185 fi
10186
10187
10188
10189
10190
10191
10192   lt_prog_compiler_wl=
10193 lt_prog_compiler_pic=
10194 lt_prog_compiler_static=
10195
10196
10197   if test "$GCC" = yes; then
10198     lt_prog_compiler_wl='-Wl,'
10199     lt_prog_compiler_static='-static'
10200
10201     case $host_os in
10202       aix*)
10203       # All AIX code is PIC.
10204       if test "$host_cpu" = ia64; then
10205         # AIX 5 now supports IA64 processor
10206         lt_prog_compiler_static='-Bstatic'
10207       fi
10208       ;;
10209
10210     amigaos*)
10211       case $host_cpu in
10212       powerpc)
10213             # see comment about AmigaOS4 .so support
10214             lt_prog_compiler_pic='-fPIC'
10215         ;;
10216       m68k)
10217             # FIXME: we need at least 68020 code to build shared libraries, but
10218             # adding the `-m68020' flag to GCC prevents building anything better,
10219             # like `-m68040'.
10220             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10221         ;;
10222       esac
10223       ;;
10224
10225     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10226       # PIC is the default for these OSes.
10227       ;;
10228
10229     mingw* | cygwin* | pw32* | os2* | cegcc*)
10230       # This hack is so that the source file can tell whether it is being
10231       # built for inclusion in a dll (and should export symbols for example).
10232       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10233       # (--disable-auto-import) libraries
10234       lt_prog_compiler_pic='-DDLL_EXPORT'
10235       ;;
10236
10237     darwin* | rhapsody*)
10238       # PIC is the default on this platform
10239       # Common symbols not allowed in MH_DYLIB files
10240       lt_prog_compiler_pic='-fno-common'
10241       ;;
10242
10243     haiku*)
10244       # PIC is the default for Haiku.
10245       # The "-static" flag exists, but is broken.
10246       lt_prog_compiler_static=
10247       ;;
10248
10249     hpux*)
10250       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10251       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10252       # sets the default TLS model and affects inlining.
10253       case $host_cpu in
10254       hppa*64*)
10255         # +Z the default
10256         ;;
10257       *)
10258         lt_prog_compiler_pic='-fPIC'
10259         ;;
10260       esac
10261       ;;
10262
10263     interix[3-9]*)
10264       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10265       # Instead, we relocate shared libraries at runtime.
10266       ;;
10267
10268     msdosdjgpp*)
10269       # Just because we use GCC doesn't mean we suddenly get shared libraries
10270       # on systems that don't support them.
10271       lt_prog_compiler_can_build_shared=no
10272       enable_shared=no
10273       ;;
10274
10275     *nto* | *qnx*)
10276       # QNX uses GNU C++, but need to define -shared option too, otherwise
10277       # it will coredump.
10278       lt_prog_compiler_pic='-fPIC -shared'
10279       ;;
10280
10281     sysv4*MP*)
10282       if test -d /usr/nec; then
10283         lt_prog_compiler_pic=-Kconform_pic
10284       fi
10285       ;;
10286
10287     *)
10288       lt_prog_compiler_pic='-fPIC'
10289       ;;
10290     esac
10291
10292     case $cc_basename in
10293     nvcc*) # Cuda Compiler Driver 2.2
10294       lt_prog_compiler_wl='-Xlinker '
10295       if test -n "$lt_prog_compiler_pic"; then
10296         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10297       fi
10298       ;;
10299     esac
10300   else
10301     # PORTME Check for flag to pass linker flags through the system compiler.
10302     case $host_os in
10303     aix*)
10304       lt_prog_compiler_wl='-Wl,'
10305       if test "$host_cpu" = ia64; then
10306         # AIX 5 now supports IA64 processor
10307         lt_prog_compiler_static='-Bstatic'
10308       else
10309         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10310       fi
10311       ;;
10312
10313     mingw* | cygwin* | pw32* | os2* | cegcc*)
10314       # This hack is so that the source file can tell whether it is being
10315       # built for inclusion in a dll (and should export symbols for example).
10316       lt_prog_compiler_pic='-DDLL_EXPORT'
10317       ;;
10318
10319     hpux9* | hpux10* | hpux11*)
10320       lt_prog_compiler_wl='-Wl,'
10321       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10322       # not for PA HP-UX.
10323       case $host_cpu in
10324       hppa*64*|ia64*)
10325         # +Z the default
10326         ;;
10327       *)
10328         lt_prog_compiler_pic='+Z'
10329         ;;
10330       esac
10331       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10332       lt_prog_compiler_static='${wl}-a ${wl}archive'
10333       ;;
10334
10335     irix5* | irix6* | nonstopux*)
10336       lt_prog_compiler_wl='-Wl,'
10337       # PIC (with -KPIC) is the default.
10338       lt_prog_compiler_static='-non_shared'
10339       ;;
10340
10341     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10342       case $cc_basename in
10343       # old Intel for x86_64 which still supported -KPIC.
10344       ecc*)
10345         lt_prog_compiler_wl='-Wl,'
10346         lt_prog_compiler_pic='-KPIC'
10347         lt_prog_compiler_static='-static'
10348         ;;
10349       # icc used to be incompatible with GCC.
10350       # ICC 10 doesn't accept -KPIC any more.
10351       icc* | ifort*)
10352         lt_prog_compiler_wl='-Wl,'
10353         lt_prog_compiler_pic='-fPIC'
10354         lt_prog_compiler_static='-static'
10355         ;;
10356       # Lahey Fortran 8.1.
10357       lf95*)
10358         lt_prog_compiler_wl='-Wl,'
10359         lt_prog_compiler_pic='--shared'
10360         lt_prog_compiler_static='--static'
10361         ;;
10362       nagfor*)
10363         # NAG Fortran compiler
10364         lt_prog_compiler_wl='-Wl,-Wl,,'
10365         lt_prog_compiler_pic='-PIC'
10366         lt_prog_compiler_static='-Bstatic'
10367         ;;
10368       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10369         # Portland Group compilers (*not* the Pentium gcc compiler,
10370         # which looks to be a dead project)
10371         lt_prog_compiler_wl='-Wl,'
10372         lt_prog_compiler_pic='-fpic'
10373         lt_prog_compiler_static='-Bstatic'
10374         ;;
10375       ccc*)
10376         lt_prog_compiler_wl='-Wl,'
10377         # All Alpha code is PIC.
10378         lt_prog_compiler_static='-non_shared'
10379         ;;
10380       xl* | bgxl* | bgf* | mpixl*)
10381         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10382         lt_prog_compiler_wl='-Wl,'
10383         lt_prog_compiler_pic='-qpic'
10384         lt_prog_compiler_static='-qstaticlink'
10385         ;;
10386       *)
10387         case `$CC -V 2>&1 | sed 5q` in
10388         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10389           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10390           lt_prog_compiler_pic='-KPIC'
10391           lt_prog_compiler_static='-Bstatic'
10392           lt_prog_compiler_wl=''
10393           ;;
10394         *Sun\ F* | *Sun*Fortran*)
10395           lt_prog_compiler_pic='-KPIC'
10396           lt_prog_compiler_static='-Bstatic'
10397           lt_prog_compiler_wl='-Qoption ld '
10398           ;;
10399         *Sun\ C*)
10400           # Sun C 5.9
10401           lt_prog_compiler_pic='-KPIC'
10402           lt_prog_compiler_static='-Bstatic'
10403           lt_prog_compiler_wl='-Wl,'
10404           ;;
10405         *Intel*\ [CF]*Compiler*)
10406           lt_prog_compiler_wl='-Wl,'
10407           lt_prog_compiler_pic='-fPIC'
10408           lt_prog_compiler_static='-static'
10409           ;;
10410         *Portland\ Group*)
10411           lt_prog_compiler_wl='-Wl,'
10412           lt_prog_compiler_pic='-fpic'
10413           lt_prog_compiler_static='-Bstatic'
10414           ;;
10415         esac
10416         ;;
10417       esac
10418       ;;
10419
10420     newsos6)
10421       lt_prog_compiler_pic='-KPIC'
10422       lt_prog_compiler_static='-Bstatic'
10423       ;;
10424
10425     *nto* | *qnx*)
10426       # QNX uses GNU C++, but need to define -shared option too, otherwise
10427       # it will coredump.
10428       lt_prog_compiler_pic='-fPIC -shared'
10429       ;;
10430
10431     osf3* | osf4* | osf5*)
10432       lt_prog_compiler_wl='-Wl,'
10433       # All OSF/1 code is PIC.
10434       lt_prog_compiler_static='-non_shared'
10435       ;;
10436
10437     rdos*)
10438       lt_prog_compiler_static='-non_shared'
10439       ;;
10440
10441     solaris*)
10442       lt_prog_compiler_pic='-KPIC'
10443       lt_prog_compiler_static='-Bstatic'
10444       case $cc_basename in
10445       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10446         lt_prog_compiler_wl='-Qoption ld ';;
10447       *)
10448         lt_prog_compiler_wl='-Wl,';;
10449       esac
10450       ;;
10451
10452     sunos4*)
10453       lt_prog_compiler_wl='-Qoption ld '
10454       lt_prog_compiler_pic='-PIC'
10455       lt_prog_compiler_static='-Bstatic'
10456       ;;
10457
10458     sysv4 | sysv4.2uw2* | sysv4.3*)
10459       lt_prog_compiler_wl='-Wl,'
10460       lt_prog_compiler_pic='-KPIC'
10461       lt_prog_compiler_static='-Bstatic'
10462       ;;
10463
10464     sysv4*MP*)
10465       if test -d /usr/nec ;then
10466         lt_prog_compiler_pic='-Kconform_pic'
10467         lt_prog_compiler_static='-Bstatic'
10468       fi
10469       ;;
10470
10471     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10472       lt_prog_compiler_wl='-Wl,'
10473       lt_prog_compiler_pic='-KPIC'
10474       lt_prog_compiler_static='-Bstatic'
10475       ;;
10476
10477     unicos*)
10478       lt_prog_compiler_wl='-Wl,'
10479       lt_prog_compiler_can_build_shared=no
10480       ;;
10481
10482     uts4*)
10483       lt_prog_compiler_pic='-pic'
10484       lt_prog_compiler_static='-Bstatic'
10485       ;;
10486
10487     *)
10488       lt_prog_compiler_can_build_shared=no
10489       ;;
10490     esac
10491   fi
10492
10493 case $host_os in
10494   # For platforms which do not support PIC, -DPIC is meaningless:
10495   *djgpp*)
10496     lt_prog_compiler_pic=
10497     ;;
10498   *)
10499     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10500     ;;
10501 esac
10502
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10504 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10505 if ${lt_cv_prog_compiler_pic+:} false; then :
10506   $as_echo_n "(cached) " >&6
10507 else
10508   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10509 fi
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10511 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10512 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10513
10514 #
10515 # Check to make sure the PIC flag actually works.
10516 #
10517 if test -n "$lt_prog_compiler_pic"; then
10518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10519 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10520 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10521   $as_echo_n "(cached) " >&6
10522 else
10523   lt_cv_prog_compiler_pic_works=no
10524    ac_outfile=conftest.$ac_objext
10525    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10526    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
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    # The option is referenced via a variable to avoid confusing sed.
10532    lt_compile=`echo "$ac_compile" | $SED \
10533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10535    -e 's:$: $lt_compiler_flag:'`
10536    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10537    (eval "$lt_compile" 2>conftest.err)
10538    ac_status=$?
10539    cat conftest.err >&5
10540    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541    if (exit $ac_status) && test -s "$ac_outfile"; then
10542      # The compiler can only warn and ignore the option if not recognized
10543      # So say no if there are warnings other than the usual output.
10544      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10545      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10546      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10547        lt_cv_prog_compiler_pic_works=yes
10548      fi
10549    fi
10550    $RM conftest*
10551
10552 fi
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10554 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10555
10556 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10557     case $lt_prog_compiler_pic in
10558      "" | " "*) ;;
10559      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10560      esac
10561 else
10562     lt_prog_compiler_pic=
10563      lt_prog_compiler_can_build_shared=no
10564 fi
10565
10566 fi
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578 #
10579 # Check to make sure the static flag actually works.
10580 #
10581 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10583 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10584 if ${lt_cv_prog_compiler_static_works+:} false; then :
10585   $as_echo_n "(cached) " >&6
10586 else
10587   lt_cv_prog_compiler_static_works=no
10588    save_LDFLAGS="$LDFLAGS"
10589    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10590    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10591    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10592      # The linker can only warn and ignore the option if not recognized
10593      # So say no if there are warnings
10594      if test -s conftest.err; then
10595        # Append any errors to the config.log.
10596        cat conftest.err 1>&5
10597        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10598        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10599        if diff conftest.exp conftest.er2 >/dev/null; then
10600          lt_cv_prog_compiler_static_works=yes
10601        fi
10602      else
10603        lt_cv_prog_compiler_static_works=yes
10604      fi
10605    fi
10606    $RM -r conftest*
10607    LDFLAGS="$save_LDFLAGS"
10608
10609 fi
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10611 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10612
10613 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10614     :
10615 else
10616     lt_prog_compiler_static=
10617 fi
10618
10619
10620
10621
10622
10623
10624
10625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10626 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10627 if ${lt_cv_prog_compiler_c_o+:} false; then :
10628   $as_echo_n "(cached) " >&6
10629 else
10630   lt_cv_prog_compiler_c_o=no
10631    $RM -r conftest 2>/dev/null
10632    mkdir conftest
10633    cd conftest
10634    mkdir out
10635    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10636
10637    lt_compiler_flag="-o out/conftest2.$ac_objext"
10638    # Insert the option either (1) after the last *FLAGS variable, or
10639    # (2) before a word containing "conftest.", or (3) at the end.
10640    # Note that $ac_compile itself does not contain backslashes and begins
10641    # with a dollar sign (not a hyphen), so the echo should work correctly.
10642    lt_compile=`echo "$ac_compile" | $SED \
10643    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10644    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10645    -e 's:$: $lt_compiler_flag:'`
10646    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10647    (eval "$lt_compile" 2>out/conftest.err)
10648    ac_status=$?
10649    cat out/conftest.err >&5
10650    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10652    then
10653      # The compiler can only warn and ignore the option if not recognized
10654      # So say no if there are warnings
10655      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10656      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10657      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10658        lt_cv_prog_compiler_c_o=yes
10659      fi
10660    fi
10661    chmod u+w . 2>&5
10662    $RM conftest*
10663    # SGI C++ compiler will create directory out/ii_files/ for
10664    # template instantiation
10665    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10666    $RM out/* && rmdir out
10667    cd ..
10668    $RM -r conftest
10669    $RM conftest*
10670
10671 fi
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10673 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10674
10675
10676
10677
10678
10679
10680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10681 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10682 if ${lt_cv_prog_compiler_c_o+:} false; then :
10683   $as_echo_n "(cached) " >&6
10684 else
10685   lt_cv_prog_compiler_c_o=no
10686    $RM -r conftest 2>/dev/null
10687    mkdir conftest
10688    cd conftest
10689    mkdir out
10690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10691
10692    lt_compiler_flag="-o out/conftest2.$ac_objext"
10693    # Insert the option either (1) after the last *FLAGS variable, or
10694    # (2) before a word containing "conftest.", or (3) at the end.
10695    # Note that $ac_compile itself does not contain backslashes and begins
10696    # with a dollar sign (not a hyphen), so the echo should work correctly.
10697    lt_compile=`echo "$ac_compile" | $SED \
10698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10700    -e 's:$: $lt_compiler_flag:'`
10701    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10702    (eval "$lt_compile" 2>out/conftest.err)
10703    ac_status=$?
10704    cat out/conftest.err >&5
10705    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10707    then
10708      # The compiler can only warn and ignore the option if not recognized
10709      # So say no if there are warnings
10710      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10711      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10712      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10713        lt_cv_prog_compiler_c_o=yes
10714      fi
10715    fi
10716    chmod u+w . 2>&5
10717    $RM conftest*
10718    # SGI C++ compiler will create directory out/ii_files/ for
10719    # template instantiation
10720    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10721    $RM out/* && rmdir out
10722    cd ..
10723    $RM -r conftest
10724    $RM conftest*
10725
10726 fi
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10728 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10729
10730
10731
10732
10733 hard_links="nottested"
10734 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10735   # do not overwrite the value of need_locks provided by the user
10736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10737 $as_echo_n "checking if we can lock with hard links... " >&6; }
10738   hard_links=yes
10739   $RM conftest*
10740   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10741   touch conftest.a
10742   ln conftest.a conftest.b 2>&5 || hard_links=no
10743   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10745 $as_echo "$hard_links" >&6; }
10746   if test "$hard_links" = no; then
10747     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10748 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10749     need_locks=warn
10750   fi
10751 else
10752   need_locks=no
10753 fi
10754
10755
10756
10757
10758
10759
10760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10761 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10762
10763   runpath_var=
10764   allow_undefined_flag=
10765   always_export_symbols=no
10766   archive_cmds=
10767   archive_expsym_cmds=
10768   compiler_needs_object=no
10769   enable_shared_with_static_runtimes=no
10770   export_dynamic_flag_spec=
10771   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10772   hardcode_automatic=no
10773   hardcode_direct=no
10774   hardcode_direct_absolute=no
10775   hardcode_libdir_flag_spec=
10776   hardcode_libdir_separator=
10777   hardcode_minus_L=no
10778   hardcode_shlibpath_var=unsupported
10779   inherit_rpath=no
10780   link_all_deplibs=unknown
10781   module_cmds=
10782   module_expsym_cmds=
10783   old_archive_from_new_cmds=
10784   old_archive_from_expsyms_cmds=
10785   thread_safe_flag_spec=
10786   whole_archive_flag_spec=
10787   # include_expsyms should be a list of space-separated symbols to be *always*
10788   # included in the symbol list
10789   include_expsyms=
10790   # exclude_expsyms can be an extended regexp of symbols to exclude
10791   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10792   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10793   # as well as any symbol that contains `d'.
10794   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10795   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10796   # platforms (ab)use it in PIC code, but their linkers get confused if
10797   # the symbol is explicitly referenced.  Since portable code cannot
10798   # rely on this symbol name, it's probably fine to never include it in
10799   # preloaded symbol tables.
10800   # Exclude shared library initialization/finalization symbols.
10801   extract_expsyms_cmds=
10802
10803   case $host_os in
10804   cygwin* | mingw* | pw32* | cegcc*)
10805     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10806     # When not using gcc, we currently assume that we are using
10807     # Microsoft Visual C++.
10808     if test "$GCC" != yes; then
10809       with_gnu_ld=no
10810     fi
10811     ;;
10812   interix*)
10813     # we just hope/assume this is gcc and not c89 (= MSVC++)
10814     with_gnu_ld=yes
10815     ;;
10816   openbsd*)
10817     with_gnu_ld=no
10818     ;;
10819   esac
10820
10821   ld_shlibs=yes
10822
10823   # On some targets, GNU ld is compatible enough with the native linker
10824   # that we're better off using the native interface for both.
10825   lt_use_gnu_ld_interface=no
10826   if test "$with_gnu_ld" = yes; then
10827     case $host_os in
10828       aix*)
10829         # The AIX port of GNU ld has always aspired to compatibility
10830         # with the native linker.  However, as the warning in the GNU ld
10831         # block says, versions before 2.19.5* couldn't really create working
10832         # shared libraries, regardless of the interface used.
10833         case `$LD -v 2>&1` in
10834           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10835           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10836           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10837           *)
10838             lt_use_gnu_ld_interface=yes
10839             ;;
10840         esac
10841         ;;
10842       *)
10843         lt_use_gnu_ld_interface=yes
10844         ;;
10845     esac
10846   fi
10847
10848   if test "$lt_use_gnu_ld_interface" = yes; then
10849     # If archive_cmds runs LD, not CC, wlarc should be empty
10850     wlarc='${wl}'
10851
10852     # Set some defaults for GNU ld with shared library support. These
10853     # are reset later if shared libraries are not supported. Putting them
10854     # here allows them to be overridden if necessary.
10855     runpath_var=LD_RUN_PATH
10856     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10857     export_dynamic_flag_spec='${wl}--export-dynamic'
10858     # ancient GNU ld didn't support --whole-archive et. al.
10859     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10860       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10861     else
10862       whole_archive_flag_spec=
10863     fi
10864     supports_anon_versioning=no
10865     case `$LD -v 2>&1` in
10866       *GNU\ gold*) supports_anon_versioning=yes ;;
10867       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10868       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10869       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10870       *\ 2.11.*) ;; # other 2.11 versions
10871       *) supports_anon_versioning=yes ;;
10872     esac
10873
10874     # See if GNU ld supports shared libraries.
10875     case $host_os in
10876     aix[3-9]*)
10877       # On AIX/PPC, the GNU linker is very broken
10878       if test "$host_cpu" != ia64; then
10879         ld_shlibs=no
10880         cat <<_LT_EOF 1>&2
10881
10882 *** Warning: the GNU linker, at least up to release 2.19, is reported
10883 *** to be unable to reliably create shared libraries on AIX.
10884 *** Therefore, libtool is disabling shared libraries support.  If you
10885 *** really care for shared libraries, you may want to install binutils
10886 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10887 *** You will then need to restart the configuration process.
10888
10889 _LT_EOF
10890       fi
10891       ;;
10892
10893     amigaos*)
10894       case $host_cpu in
10895       powerpc)
10896             # see comment about AmigaOS4 .so support
10897             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10898             archive_expsym_cmds=''
10899         ;;
10900       m68k)
10901             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)'
10902             hardcode_libdir_flag_spec='-L$libdir'
10903             hardcode_minus_L=yes
10904         ;;
10905       esac
10906       ;;
10907
10908     beos*)
10909       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10910         allow_undefined_flag=unsupported
10911         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10912         # support --undefined.  This deserves some investigation.  FIXME
10913         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10914       else
10915         ld_shlibs=no
10916       fi
10917       ;;
10918
10919     cygwin* | mingw* | pw32* | cegcc*)
10920       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10921       # as there is no search path for DLLs.
10922       hardcode_libdir_flag_spec='-L$libdir'
10923       export_dynamic_flag_spec='${wl}--export-all-symbols'
10924       allow_undefined_flag=unsupported
10925       always_export_symbols=no
10926       enable_shared_with_static_runtimes=yes
10927       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'
10928       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10929
10930       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10931         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10932         # If the export-symbols file already is a .def file (1st line
10933         # is EXPORTS), use it as is; otherwise, prepend...
10934         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10935           cp $export_symbols $output_objdir/$soname.def;
10936         else
10937           echo EXPORTS > $output_objdir/$soname.def;
10938           cat $export_symbols >> $output_objdir/$soname.def;
10939         fi~
10940         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10941       else
10942         ld_shlibs=no
10943       fi
10944       ;;
10945
10946     haiku*)
10947       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10948       link_all_deplibs=yes
10949       ;;
10950
10951     interix[3-9]*)
10952       hardcode_direct=no
10953       hardcode_shlibpath_var=no
10954       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10955       export_dynamic_flag_spec='${wl}-E'
10956       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10957       # Instead, shared libraries are loaded at an image base (0x10000000 by
10958       # default) and relocated if they conflict, which is a slow very memory
10959       # consuming and fragmenting process.  To avoid this, we pick a random,
10960       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10961       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10962       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10963       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'
10964       ;;
10965
10966     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10967       tmp_diet=no
10968       if test "$host_os" = linux-dietlibc; then
10969         case $cc_basename in
10970           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10971         esac
10972       fi
10973       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10974          && test "$tmp_diet" = no
10975       then
10976         tmp_addflag=' $pic_flag'
10977         tmp_sharedflag='-shared'
10978         case $cc_basename,$host_cpu in
10979         pgcc*)                          # Portland Group C compiler
10980           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'
10981           tmp_addflag=' $pic_flag'
10982           ;;
10983         pgf77* | pgf90* | pgf95* | pgfortran*)
10984                                         # Portland Group f77 and f90 compilers
10985           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'
10986           tmp_addflag=' $pic_flag -Mnomain' ;;
10987         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10988           tmp_addflag=' -i_dynamic' ;;
10989         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10990           tmp_addflag=' -i_dynamic -nofor_main' ;;
10991         ifc* | ifort*)                  # Intel Fortran compiler
10992           tmp_addflag=' -nofor_main' ;;
10993         lf95*)                          # Lahey Fortran 8.1
10994           whole_archive_flag_spec=
10995           tmp_sharedflag='--shared' ;;
10996         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10997           tmp_sharedflag='-qmkshrobj'
10998           tmp_addflag= ;;
10999         nvcc*)  # Cuda Compiler Driver 2.2
11000           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'
11001           compiler_needs_object=yes
11002           ;;
11003         esac
11004         case `$CC -V 2>&1 | sed 5q` in
11005         *Sun\ C*)                       # Sun C 5.9
11006           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'
11007           compiler_needs_object=yes
11008           tmp_sharedflag='-G' ;;
11009         *Sun\ F*)                       # Sun Fortran 8.3
11010           tmp_sharedflag='-G' ;;
11011         esac
11012         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11013
11014         if test "x$supports_anon_versioning" = xyes; then
11015           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11016             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11017             echo "local: *; };" >> $output_objdir/$libname.ver~
11018             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11019         fi
11020
11021         case $cc_basename in
11022         xlf* | bgf* | bgxlf* | mpixlf*)
11023           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11024           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11025           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11026           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11027           if test "x$supports_anon_versioning" = xyes; then
11028             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11029               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11030               echo "local: *; };" >> $output_objdir/$libname.ver~
11031               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11032           fi
11033           ;;
11034         esac
11035       else
11036         ld_shlibs=no
11037       fi
11038       ;;
11039
11040     netbsd*)
11041       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11042         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11043         wlarc=
11044       else
11045         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11046         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11047       fi
11048       ;;
11049
11050     solaris*)
11051       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11052         ld_shlibs=no
11053         cat <<_LT_EOF 1>&2
11054
11055 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11056 *** create shared libraries on Solaris systems.  Therefore, libtool
11057 *** is disabling shared libraries support.  We urge you to upgrade GNU
11058 *** binutils to release 2.9.1 or newer.  Another option is to modify
11059 *** your PATH or compiler configuration so that the native linker is
11060 *** used, and then restart.
11061
11062 _LT_EOF
11063       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11064         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11065         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11066       else
11067         ld_shlibs=no
11068       fi
11069       ;;
11070
11071     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11072       case `$LD -v 2>&1` in
11073         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11074         ld_shlibs=no
11075         cat <<_LT_EOF 1>&2
11076
11077 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11078 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11079 *** is disabling shared libraries support.  We urge you to upgrade GNU
11080 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11081 *** your PATH or compiler configuration so that the native linker is
11082 *** used, and then restart.
11083
11084 _LT_EOF
11085         ;;
11086         *)
11087           # For security reasons, it is highly recommended that you always
11088           # use absolute paths for naming shared libraries, and exclude the
11089           # DT_RUNPATH tag from executables and libraries.  But doing so
11090           # requires that you compile everything twice, which is a pain.
11091           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11092             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11093             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11094             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11095           else
11096             ld_shlibs=no
11097           fi
11098         ;;
11099       esac
11100       ;;
11101
11102     sunos4*)
11103       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11104       wlarc=
11105       hardcode_direct=yes
11106       hardcode_shlibpath_var=no
11107       ;;
11108
11109     *)
11110       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11111         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11112         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11113       else
11114         ld_shlibs=no
11115       fi
11116       ;;
11117     esac
11118
11119     if test "$ld_shlibs" = no; then
11120       runpath_var=
11121       hardcode_libdir_flag_spec=
11122       export_dynamic_flag_spec=
11123       whole_archive_flag_spec=
11124     fi
11125   else
11126     # PORTME fill in a description of your system's linker (not GNU ld)
11127     case $host_os in
11128     aix3*)
11129       allow_undefined_flag=unsupported
11130       always_export_symbols=yes
11131       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'
11132       # Note: this linker hardcodes the directories in LIBPATH if there
11133       # are no directories specified by -L.
11134       hardcode_minus_L=yes
11135       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11136         # Neither direct hardcoding nor static linking is supported with a
11137         # broken collect2.
11138         hardcode_direct=unsupported
11139       fi
11140       ;;
11141
11142     aix[4-9]*)
11143       if test "$host_cpu" = ia64; then
11144         # On IA64, the linker does run time linking by default, so we don't
11145         # have to do anything special.
11146         aix_use_runtimelinking=no
11147         exp_sym_flag='-Bexport'
11148         no_entry_flag=""
11149       else
11150         # If we're using GNU nm, then we don't want the "-C" option.
11151         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11152         # Also, AIX nm treats weak defined symbols like other global
11153         # defined symbols, whereas GNU nm marks them as "W".
11154         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11155           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'
11156         else
11157           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'
11158         fi
11159         aix_use_runtimelinking=no
11160
11161         # Test if we are trying to use run time linking or normal
11162         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11163         # need to do runtime linking.
11164         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11165           for ld_flag in $LDFLAGS; do
11166           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11167             aix_use_runtimelinking=yes
11168             break
11169           fi
11170           done
11171           ;;
11172         esac
11173
11174         exp_sym_flag='-bexport'
11175         no_entry_flag='-bnoentry'
11176       fi
11177
11178       # When large executables or shared objects are built, AIX ld can
11179       # have problems creating the table of contents.  If linking a library
11180       # or program results in "error TOC overflow" add -mminimal-toc to
11181       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11182       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11183
11184       archive_cmds=''
11185       hardcode_direct=yes
11186       hardcode_direct_absolute=yes
11187       hardcode_libdir_separator=':'
11188       link_all_deplibs=yes
11189       file_list_spec='${wl}-f,'
11190
11191       if test "$GCC" = yes; then
11192         case $host_os in aix4.[012]|aix4.[012].*)
11193         # We only want to do this on AIX 4.2 and lower, the check
11194         # below for broken collect2 doesn't work under 4.3+
11195           collect2name=`${CC} -print-prog-name=collect2`
11196           if test -f "$collect2name" &&
11197            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11198           then
11199           # We have reworked collect2
11200           :
11201           else
11202           # We have old collect2
11203           hardcode_direct=unsupported
11204           # It fails to find uninstalled libraries when the uninstalled
11205           # path is not listed in the libpath.  Setting hardcode_minus_L
11206           # to unsupported forces relinking
11207           hardcode_minus_L=yes
11208           hardcode_libdir_flag_spec='-L$libdir'
11209           hardcode_libdir_separator=
11210           fi
11211           ;;
11212         esac
11213         shared_flag='-shared'
11214         if test "$aix_use_runtimelinking" = yes; then
11215           shared_flag="$shared_flag "'${wl}-G'
11216         fi
11217       else
11218         # not using gcc
11219         if test "$host_cpu" = ia64; then
11220         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11221         # chokes on -Wl,-G. The following line is correct:
11222           shared_flag='-G'
11223         else
11224           if test "$aix_use_runtimelinking" = yes; then
11225             shared_flag='${wl}-G'
11226           else
11227             shared_flag='${wl}-bM:SRE'
11228           fi
11229         fi
11230       fi
11231
11232       export_dynamic_flag_spec='${wl}-bexpall'
11233       # It seems that -bexpall does not export symbols beginning with
11234       # underscore (_), so it is better to generate a list of symbols to export.
11235       always_export_symbols=yes
11236       if test "$aix_use_runtimelinking" = yes; then
11237         # Warning - without using the other runtime loading flags (-brtl),
11238         # -berok will link without error, but may produce a broken library.
11239         allow_undefined_flag='-berok'
11240         # Determine the default libpath from the value encoded in an
11241         # empty executable.
11242         if test "${lt_cv_aix_libpath+set}" = set; then
11243   aix_libpath=$lt_cv_aix_libpath
11244 else
11245   if ${lt_cv_aix_libpath_+:} false; then :
11246   $as_echo_n "(cached) " >&6
11247 else
11248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h.  */
11250
11251 int
11252 main ()
11253 {
11254
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 if ac_fn_c_try_link "$LINENO"; then :
11260
11261   lt_aix_libpath_sed='
11262       /Import File Strings/,/^$/ {
11263           /^0/ {
11264               s/^0  *\([^ ]*\) *$/\1/
11265               p
11266           }
11267       }'
11268   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11269   # Check for a 64-bit object if we didn't find anything.
11270   if test -z "$lt_cv_aix_libpath_"; then
11271     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11272   fi
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext \
11275     conftest$ac_exeext conftest.$ac_ext
11276   if test -z "$lt_cv_aix_libpath_"; then
11277     lt_cv_aix_libpath_="/usr/lib:/lib"
11278   fi
11279
11280 fi
11281
11282   aix_libpath=$lt_cv_aix_libpath_
11283 fi
11284
11285         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11286         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"
11287       else
11288         if test "$host_cpu" = ia64; then
11289           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11290           allow_undefined_flag="-z nodefs"
11291           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"
11292         else
11293          # Determine the default libpath from the value encoded in an
11294          # empty executable.
11295          if test "${lt_cv_aix_libpath+set}" = set; then
11296   aix_libpath=$lt_cv_aix_libpath
11297 else
11298   if ${lt_cv_aix_libpath_+:} false; then :
11299   $as_echo_n "(cached) " >&6
11300 else
11301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h.  */
11303
11304 int
11305 main ()
11306 {
11307
11308   ;
11309   return 0;
11310 }
11311 _ACEOF
11312 if ac_fn_c_try_link "$LINENO"; then :
11313
11314   lt_aix_libpath_sed='
11315       /Import File Strings/,/^$/ {
11316           /^0/ {
11317               s/^0  *\([^ ]*\) *$/\1/
11318               p
11319           }
11320       }'
11321   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11322   # Check for a 64-bit object if we didn't find anything.
11323   if test -z "$lt_cv_aix_libpath_"; then
11324     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11325   fi
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext \
11328     conftest$ac_exeext conftest.$ac_ext
11329   if test -z "$lt_cv_aix_libpath_"; then
11330     lt_cv_aix_libpath_="/usr/lib:/lib"
11331   fi
11332
11333 fi
11334
11335   aix_libpath=$lt_cv_aix_libpath_
11336 fi
11337
11338          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11339           # Warning - without using the other run time loading flags,
11340           # -berok will link without error, but may produce a broken library.
11341           no_undefined_flag=' ${wl}-bernotok'
11342           allow_undefined_flag=' ${wl}-berok'
11343           if test "$with_gnu_ld" = yes; then
11344             # We only use this code for GNU lds that support --whole-archive.
11345             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11346           else
11347             # Exported symbols can be pulled into shared objects from archives
11348             whole_archive_flag_spec='$convenience'
11349           fi
11350           archive_cmds_need_lc=yes
11351           # This is similar to how AIX traditionally builds its shared libraries.
11352           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'
11353         fi
11354       fi
11355       ;;
11356
11357     amigaos*)
11358       case $host_cpu in
11359       powerpc)
11360             # see comment about AmigaOS4 .so support
11361             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11362             archive_expsym_cmds=''
11363         ;;
11364       m68k)
11365             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)'
11366             hardcode_libdir_flag_spec='-L$libdir'
11367             hardcode_minus_L=yes
11368         ;;
11369       esac
11370       ;;
11371
11372     bsdi[45]*)
11373       export_dynamic_flag_spec=-rdynamic
11374       ;;
11375
11376     cygwin* | mingw* | pw32* | cegcc*)
11377       # When not using gcc, we currently assume that we are using
11378       # Microsoft Visual C++.
11379       # hardcode_libdir_flag_spec is actually meaningless, as there is
11380       # no search path for DLLs.
11381       case $cc_basename in
11382       cl*)
11383         # Native MSVC
11384         hardcode_libdir_flag_spec=' '
11385         allow_undefined_flag=unsupported
11386         always_export_symbols=yes
11387         file_list_spec='@'
11388         # Tell ltmain to make .lib files, not .a files.
11389         libext=lib
11390         # Tell ltmain to make .dll files, not .so files.
11391         shrext_cmds=".dll"
11392         # FIXME: Setting linknames here is a bad hack.
11393         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11394         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11395             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11396           else
11397             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11398           fi~
11399           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11400           linknames='
11401         # The linker will not automatically build a static lib if we build a DLL.
11402         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11403         enable_shared_with_static_runtimes=yes
11404         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11405         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11406         # Don't use ranlib
11407         old_postinstall_cmds='chmod 644 $oldlib'
11408         postlink_cmds='lt_outputfile="@OUTPUT@"~
11409           lt_tool_outputfile="@TOOL_OUTPUT@"~
11410           case $lt_outputfile in
11411             *.exe|*.EXE) ;;
11412             *)
11413               lt_outputfile="$lt_outputfile.exe"
11414               lt_tool_outputfile="$lt_tool_outputfile.exe"
11415               ;;
11416           esac~
11417           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11418             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11419             $RM "$lt_outputfile.manifest";
11420           fi'
11421         ;;
11422       *)
11423         # Assume MSVC wrapper
11424         hardcode_libdir_flag_spec=' '
11425         allow_undefined_flag=unsupported
11426         # Tell ltmain to make .lib files, not .a files.
11427         libext=lib
11428         # Tell ltmain to make .dll files, not .so files.
11429         shrext_cmds=".dll"
11430         # FIXME: Setting linknames here is a bad hack.
11431         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11432         # The linker will automatically build a .lib file if we build a DLL.
11433         old_archive_from_new_cmds='true'
11434         # FIXME: Should let the user specify the lib program.
11435         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11436         enable_shared_with_static_runtimes=yes
11437         ;;
11438       esac
11439       ;;
11440
11441     darwin* | rhapsody*)
11442
11443
11444   archive_cmds_need_lc=no
11445   hardcode_direct=no
11446   hardcode_automatic=yes
11447   hardcode_shlibpath_var=unsupported
11448   if test "$lt_cv_ld_force_load" = "yes"; then
11449     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\"`'
11450
11451   else
11452     whole_archive_flag_spec=''
11453   fi
11454   link_all_deplibs=yes
11455   allow_undefined_flag="$_lt_dar_allow_undefined"
11456   case $cc_basename in
11457      ifort*) _lt_dar_can_shared=yes ;;
11458      *) _lt_dar_can_shared=$GCC ;;
11459   esac
11460   if test "$_lt_dar_can_shared" = "yes"; then
11461     output_verbose_link_cmd=func_echo_all
11462     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11463     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11464     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}"
11465     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}"
11466
11467   else
11468   ld_shlibs=no
11469   fi
11470
11471       ;;
11472
11473     dgux*)
11474       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11475       hardcode_libdir_flag_spec='-L$libdir'
11476       hardcode_shlibpath_var=no
11477       ;;
11478
11479     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11480     # support.  Future versions do this automatically, but an explicit c++rt0.o
11481     # does not break anything, and helps significantly (at the cost of a little
11482     # extra space).
11483     freebsd2.2*)
11484       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11485       hardcode_libdir_flag_spec='-R$libdir'
11486       hardcode_direct=yes
11487       hardcode_shlibpath_var=no
11488       ;;
11489
11490     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11491     freebsd2.*)
11492       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11493       hardcode_direct=yes
11494       hardcode_minus_L=yes
11495       hardcode_shlibpath_var=no
11496       ;;
11497
11498     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11499     freebsd* | dragonfly*)
11500       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11501       hardcode_libdir_flag_spec='-R$libdir'
11502       hardcode_direct=yes
11503       hardcode_shlibpath_var=no
11504       ;;
11505
11506     hpux9*)
11507       if test "$GCC" = yes; then
11508         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'
11509       else
11510         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'
11511       fi
11512       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11513       hardcode_libdir_separator=:
11514       hardcode_direct=yes
11515
11516       # hardcode_minus_L: Not really in the search PATH,
11517       # but as the default location of the library.
11518       hardcode_minus_L=yes
11519       export_dynamic_flag_spec='${wl}-E'
11520       ;;
11521
11522     hpux10*)
11523       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11524         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11525       else
11526         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11527       fi
11528       if test "$with_gnu_ld" = no; then
11529         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11530         hardcode_libdir_separator=:
11531         hardcode_direct=yes
11532         hardcode_direct_absolute=yes
11533         export_dynamic_flag_spec='${wl}-E'
11534         # hardcode_minus_L: Not really in the search PATH,
11535         # but as the default location of the library.
11536         hardcode_minus_L=yes
11537       fi
11538       ;;
11539
11540     hpux11*)
11541       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11542         case $host_cpu in
11543         hppa*64*)
11544           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11545           ;;
11546         ia64*)
11547           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11548           ;;
11549         *)
11550           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11551           ;;
11552         esac
11553       else
11554         case $host_cpu in
11555         hppa*64*)
11556           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11557           ;;
11558         ia64*)
11559           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11560           ;;
11561         *)
11562
11563           # Older versions of the 11.00 compiler do not understand -b yet
11564           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11565           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11566 $as_echo_n "checking if $CC understands -b... " >&6; }
11567 if ${lt_cv_prog_compiler__b+:} false; then :
11568   $as_echo_n "(cached) " >&6
11569 else
11570   lt_cv_prog_compiler__b=no
11571    save_LDFLAGS="$LDFLAGS"
11572    LDFLAGS="$LDFLAGS -b"
11573    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11574    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11575      # The linker can only warn and ignore the option if not recognized
11576      # So say no if there are warnings
11577      if test -s conftest.err; then
11578        # Append any errors to the config.log.
11579        cat conftest.err 1>&5
11580        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11581        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11582        if diff conftest.exp conftest.er2 >/dev/null; then
11583          lt_cv_prog_compiler__b=yes
11584        fi
11585      else
11586        lt_cv_prog_compiler__b=yes
11587      fi
11588    fi
11589    $RM -r conftest*
11590    LDFLAGS="$save_LDFLAGS"
11591
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11594 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11595
11596 if test x"$lt_cv_prog_compiler__b" = xyes; then
11597     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11598 else
11599     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11600 fi
11601
11602           ;;
11603         esac
11604       fi
11605       if test "$with_gnu_ld" = no; then
11606         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11607         hardcode_libdir_separator=:
11608
11609         case $host_cpu in
11610         hppa*64*|ia64*)
11611           hardcode_direct=no
11612           hardcode_shlibpath_var=no
11613           ;;
11614         *)
11615           hardcode_direct=yes
11616           hardcode_direct_absolute=yes
11617           export_dynamic_flag_spec='${wl}-E'
11618
11619           # hardcode_minus_L: Not really in the search PATH,
11620           # but as the default location of the library.
11621           hardcode_minus_L=yes
11622           ;;
11623         esac
11624       fi
11625       ;;
11626
11627     irix5* | irix6* | nonstopux*)
11628       if test "$GCC" = yes; then
11629         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'
11630         # Try to use the -exported_symbol ld option, if it does not
11631         # work, assume that -exports_file does not work either and
11632         # implicitly export all symbols.
11633         # This should be the same for all languages, so no per-tag cache variable.
11634         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11635 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11636 if ${lt_cv_irix_exported_symbol+:} false; then :
11637   $as_echo_n "(cached) " >&6
11638 else
11639   save_LDFLAGS="$LDFLAGS"
11640            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11641            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h.  */
11643 int foo (void) { return 0; }
11644 _ACEOF
11645 if ac_fn_c_try_link "$LINENO"; then :
11646   lt_cv_irix_exported_symbol=yes
11647 else
11648   lt_cv_irix_exported_symbol=no
11649 fi
11650 rm -f core conftest.err conftest.$ac_objext \
11651     conftest$ac_exeext conftest.$ac_ext
11652            LDFLAGS="$save_LDFLAGS"
11653 fi
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11655 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11656         if test "$lt_cv_irix_exported_symbol" = yes; then
11657           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'
11658         fi
11659       else
11660         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'
11661         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'
11662       fi
11663       archive_cmds_need_lc='no'
11664       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11665       hardcode_libdir_separator=:
11666       inherit_rpath=yes
11667       link_all_deplibs=yes
11668       ;;
11669
11670     netbsd*)
11671       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11672         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11673       else
11674         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11675       fi
11676       hardcode_libdir_flag_spec='-R$libdir'
11677       hardcode_direct=yes
11678       hardcode_shlibpath_var=no
11679       ;;
11680
11681     newsos6)
11682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11683       hardcode_direct=yes
11684       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11685       hardcode_libdir_separator=:
11686       hardcode_shlibpath_var=no
11687       ;;
11688
11689     *nto* | *qnx*)
11690       ;;
11691
11692     openbsd*)
11693       if test -f /usr/libexec/ld.so; then
11694         hardcode_direct=yes
11695         hardcode_shlibpath_var=no
11696         hardcode_direct_absolute=yes
11697         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11698           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11699           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11700           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11701           export_dynamic_flag_spec='${wl}-E'
11702         else
11703           case $host_os in
11704            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11705              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11706              hardcode_libdir_flag_spec='-R$libdir'
11707              ;;
11708            *)
11709              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11710              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11711              ;;
11712           esac
11713         fi
11714       else
11715         ld_shlibs=no
11716       fi
11717       ;;
11718
11719     os2*)
11720       hardcode_libdir_flag_spec='-L$libdir'
11721       hardcode_minus_L=yes
11722       allow_undefined_flag=unsupported
11723       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'
11724       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11725       ;;
11726
11727     osf3*)
11728       if test "$GCC" = yes; then
11729         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11730         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'
11731       else
11732         allow_undefined_flag=' -expect_unresolved \*'
11733         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'
11734       fi
11735       archive_cmds_need_lc='no'
11736       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11737       hardcode_libdir_separator=:
11738       ;;
11739
11740     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11741       if test "$GCC" = yes; then
11742         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11743         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'
11744         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11745       else
11746         allow_undefined_flag=' -expect_unresolved \*'
11747         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'
11748         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~
11749         $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'
11750
11751         # Both c and cxx compiler support -rpath directly
11752         hardcode_libdir_flag_spec='-rpath $libdir'
11753       fi
11754       archive_cmds_need_lc='no'
11755       hardcode_libdir_separator=:
11756       ;;
11757
11758     solaris*)
11759       no_undefined_flag=' -z defs'
11760       if test "$GCC" = yes; then
11761         wlarc='${wl}'
11762         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11763         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11764           $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'
11765       else
11766         case `$CC -V 2>&1` in
11767         *"Compilers 5.0"*)
11768           wlarc=''
11769           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11770           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11771           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11772           ;;
11773         *)
11774           wlarc='${wl}'
11775           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11776           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11777           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11778           ;;
11779         esac
11780       fi
11781       hardcode_libdir_flag_spec='-R$libdir'
11782       hardcode_shlibpath_var=no
11783       case $host_os in
11784       solaris2.[0-5] | solaris2.[0-5].*) ;;
11785       *)
11786         # The compiler driver will combine and reorder linker options,
11787         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11788         # but is careful enough not to reorder.
11789         # Supported since Solaris 2.6 (maybe 2.5.1?)
11790         if test "$GCC" = yes; then
11791           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11792         else
11793           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11794         fi
11795         ;;
11796       esac
11797       link_all_deplibs=yes
11798       ;;
11799
11800     sunos4*)
11801       if test "x$host_vendor" = xsequent; then
11802         # Use $CC to link under sequent, because it throws in some extra .o
11803         # files that make .init and .fini sections work.
11804         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11805       else
11806         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11807       fi
11808       hardcode_libdir_flag_spec='-L$libdir'
11809       hardcode_direct=yes
11810       hardcode_minus_L=yes
11811       hardcode_shlibpath_var=no
11812       ;;
11813
11814     sysv4)
11815       case $host_vendor in
11816         sni)
11817           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11818           hardcode_direct=yes # is this really true???
11819         ;;
11820         siemens)
11821           ## LD is ld it makes a PLAMLIB
11822           ## CC just makes a GrossModule.
11823           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11824           reload_cmds='$CC -r -o $output$reload_objs'
11825           hardcode_direct=no
11826         ;;
11827         motorola)
11828           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11829           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11830         ;;
11831       esac
11832       runpath_var='LD_RUN_PATH'
11833       hardcode_shlibpath_var=no
11834       ;;
11835
11836     sysv4.3*)
11837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11838       hardcode_shlibpath_var=no
11839       export_dynamic_flag_spec='-Bexport'
11840       ;;
11841
11842     sysv4*MP*)
11843       if test -d /usr/nec; then
11844         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11845         hardcode_shlibpath_var=no
11846         runpath_var=LD_RUN_PATH
11847         hardcode_runpath_var=yes
11848         ld_shlibs=yes
11849       fi
11850       ;;
11851
11852     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11853       no_undefined_flag='${wl}-z,text'
11854       archive_cmds_need_lc=no
11855       hardcode_shlibpath_var=no
11856       runpath_var='LD_RUN_PATH'
11857
11858       if test "$GCC" = yes; then
11859         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11860         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11861       else
11862         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11863         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11864       fi
11865       ;;
11866
11867     sysv5* | sco3.2v5* | sco5v6*)
11868       # Note: We can NOT use -z defs as we might desire, because we do not
11869       # link with -lc, and that would cause any symbols used from libc to
11870       # always be unresolved, which means just about no library would
11871       # ever link correctly.  If we're not using GNU ld we use -z text
11872       # though, which does catch some bad symbols but isn't as heavy-handed
11873       # as -z defs.
11874       no_undefined_flag='${wl}-z,text'
11875       allow_undefined_flag='${wl}-z,nodefs'
11876       archive_cmds_need_lc=no
11877       hardcode_shlibpath_var=no
11878       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11879       hardcode_libdir_separator=':'
11880       link_all_deplibs=yes
11881       export_dynamic_flag_spec='${wl}-Bexport'
11882       runpath_var='LD_RUN_PATH'
11883
11884       if test "$GCC" = yes; then
11885         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11886         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11887       else
11888         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11889         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11890       fi
11891       ;;
11892
11893     uts4*)
11894       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11895       hardcode_libdir_flag_spec='-L$libdir'
11896       hardcode_shlibpath_var=no
11897       ;;
11898
11899     *)
11900       ld_shlibs=no
11901       ;;
11902     esac
11903
11904     if test x$host_vendor = xsni; then
11905       case $host in
11906       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11907         export_dynamic_flag_spec='${wl}-Blargedynsym'
11908         ;;
11909       esac
11910     fi
11911   fi
11912
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11914 $as_echo "$ld_shlibs" >&6; }
11915 test "$ld_shlibs" = no && can_build_shared=no
11916
11917 with_gnu_ld=$with_gnu_ld
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933 #
11934 # Do we need to explicitly link libc?
11935 #
11936 case "x$archive_cmds_need_lc" in
11937 x|xyes)
11938   # Assume -lc should be added
11939   archive_cmds_need_lc=yes
11940
11941   if test "$enable_shared" = yes && test "$GCC" = yes; then
11942     case $archive_cmds in
11943     *'~'*)
11944       # FIXME: we may have to deal with multi-command sequences.
11945       ;;
11946     '$CC '*)
11947       # Test whether the compiler implicitly links with -lc since on some
11948       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11949       # to ld, don't add -lc before -lgcc.
11950       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11951 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11952 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11953   $as_echo_n "(cached) " >&6
11954 else
11955   $RM conftest*
11956         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11957
11958         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11959   (eval $ac_compile) 2>&5
11960   ac_status=$?
11961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11962   test $ac_status = 0; } 2>conftest.err; then
11963           soname=conftest
11964           lib=conftest
11965           libobjs=conftest.$ac_objext
11966           deplibs=
11967           wl=$lt_prog_compiler_wl
11968           pic_flag=$lt_prog_compiler_pic
11969           compiler_flags=-v
11970           linker_flags=-v
11971           verstring=
11972           output_objdir=.
11973           libname=conftest
11974           lt_save_allow_undefined_flag=$allow_undefined_flag
11975           allow_undefined_flag=
11976           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11977   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11978   ac_status=$?
11979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980   test $ac_status = 0; }
11981           then
11982             lt_cv_archive_cmds_need_lc=no
11983           else
11984             lt_cv_archive_cmds_need_lc=yes
11985           fi
11986           allow_undefined_flag=$lt_save_allow_undefined_flag
11987         else
11988           cat conftest.err 1>&5
11989         fi
11990         $RM conftest*
11991
11992 fi
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11994 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11995       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11996       ;;
11997     esac
11998   fi
11999   ;;
12000 esac
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12154 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12155
12156 if test "$GCC" = yes; then
12157   case $host_os in
12158     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12159     *) lt_awk_arg="/^libraries:/" ;;
12160   esac
12161   case $host_os in
12162     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12163     *) lt_sed_strip_eq="s,=/,/,g" ;;
12164   esac
12165   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12166   case $lt_search_path_spec in
12167   *\;*)
12168     # if the path contains ";" then we assume it to be the separator
12169     # otherwise default to the standard path separator (i.e. ":") - it is
12170     # assumed that no part of a normal pathname contains ";" but that should
12171     # okay in the real world where ";" in dirpaths is itself problematic.
12172     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12173     ;;
12174   *)
12175     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12176     ;;
12177   esac
12178   # Ok, now we have the path, separated by spaces, we can step through it
12179   # and add multilib dir if necessary.
12180   lt_tmp_lt_search_path_spec=
12181   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12182   for lt_sys_path in $lt_search_path_spec; do
12183     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12184       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12185     else
12186       test -d "$lt_sys_path" && \
12187         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12188     fi
12189   done
12190   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12191 BEGIN {RS=" "; FS="/|\n";} {
12192   lt_foo="";
12193   lt_count=0;
12194   for (lt_i = NF; lt_i > 0; lt_i--) {
12195     if ($lt_i != "" && $lt_i != ".") {
12196       if ($lt_i == "..") {
12197         lt_count++;
12198       } else {
12199         if (lt_count == 0) {
12200           lt_foo="/" $lt_i lt_foo;
12201         } else {
12202           lt_count--;
12203         }
12204       }
12205     }
12206   }
12207   if (lt_foo != "") { lt_freq[lt_foo]++; }
12208   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12209 }'`
12210   # AWK program above erroneously prepends '/' to C:/dos/paths
12211   # for these hosts.
12212   case $host_os in
12213     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12214       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12215   esac
12216   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12217 else
12218   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12219 fi
12220 library_names_spec=
12221 libname_spec='lib$name'
12222 soname_spec=
12223 shrext_cmds=".so"
12224 postinstall_cmds=
12225 postuninstall_cmds=
12226 finish_cmds=
12227 finish_eval=
12228 shlibpath_var=
12229 shlibpath_overrides_runpath=unknown
12230 version_type=none
12231 dynamic_linker="$host_os ld.so"
12232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12233 need_lib_prefix=unknown
12234 hardcode_into_libs=no
12235
12236 # when you set need_version to no, make sure it does not cause -set_version
12237 # flags to be left without arguments
12238 need_version=unknown
12239
12240 case $host_os in
12241 aix3*)
12242   version_type=linux # correct to gnu/linux during the next big refactor
12243   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12244   shlibpath_var=LIBPATH
12245
12246   # AIX 3 has no versioning support, so we append a major version to the name.
12247   soname_spec='${libname}${release}${shared_ext}$major'
12248   ;;
12249
12250 aix[4-9]*)
12251   version_type=linux # correct to gnu/linux during the next big refactor
12252   need_lib_prefix=no
12253   need_version=no
12254   hardcode_into_libs=yes
12255   if test "$host_cpu" = ia64; then
12256     # AIX 5 supports IA64
12257     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12258     shlibpath_var=LD_LIBRARY_PATH
12259   else
12260     # With GCC up to 2.95.x, collect2 would create an import file
12261     # for dependence libraries.  The import file would start with
12262     # the line `#! .'.  This would cause the generated library to
12263     # depend on `.', always an invalid library.  This was fixed in
12264     # development snapshots of GCC prior to 3.0.
12265     case $host_os in
12266       aix4 | aix4.[01] | aix4.[01].*)
12267       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12268            echo ' yes '
12269            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12270         :
12271       else
12272         can_build_shared=no
12273       fi
12274       ;;
12275     esac
12276     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12277     # soname into executable. Probably we can add versioning support to
12278     # collect2, so additional links can be useful in future.
12279     if test "$aix_use_runtimelinking" = yes; then
12280       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12281       # instead of lib<name>.a to let people know that these are not
12282       # typical AIX shared libraries.
12283       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12284     else
12285       # We preserve .a as extension for shared libraries through AIX4.2
12286       # and later when we are not doing run time linking.
12287       library_names_spec='${libname}${release}.a $libname.a'
12288       soname_spec='${libname}${release}${shared_ext}$major'
12289     fi
12290     shlibpath_var=LIBPATH
12291   fi
12292   ;;
12293
12294 amigaos*)
12295   case $host_cpu in
12296   powerpc)
12297     # Since July 2007 AmigaOS4 officially supports .so libraries.
12298     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12300     ;;
12301   m68k)
12302     library_names_spec='$libname.ixlibrary $libname.a'
12303     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12304     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'
12305     ;;
12306   esac
12307   ;;
12308
12309 beos*)
12310   library_names_spec='${libname}${shared_ext}'
12311   dynamic_linker="$host_os ld.so"
12312   shlibpath_var=LIBRARY_PATH
12313   ;;
12314
12315 bsdi[45]*)
12316   version_type=linux # correct to gnu/linux during the next big refactor
12317   need_version=no
12318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319   soname_spec='${libname}${release}${shared_ext}$major'
12320   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12321   shlibpath_var=LD_LIBRARY_PATH
12322   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12323   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12324   # the default ld.so.conf also contains /usr/contrib/lib and
12325   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12326   # libtool to hard-code these into programs
12327   ;;
12328
12329 cygwin* | mingw* | pw32* | cegcc*)
12330   version_type=windows
12331   shrext_cmds=".dll"
12332   need_version=no
12333   need_lib_prefix=no
12334
12335   case $GCC,$cc_basename in
12336   yes,*)
12337     # gcc
12338     library_names_spec='$libname.dll.a'
12339     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12340     postinstall_cmds='base_file=`basename \${file}`~
12341       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12342       dldir=$destdir/`dirname \$dlpath`~
12343       test -d \$dldir || mkdir -p \$dldir~
12344       $install_prog $dir/$dlname \$dldir/$dlname~
12345       chmod a+x \$dldir/$dlname~
12346       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12347         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12348       fi'
12349     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12350       dlpath=$dir/\$dldll~
12351        $RM \$dlpath'
12352     shlibpath_overrides_runpath=yes
12353
12354     case $host_os in
12355     cygwin*)
12356       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12357       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12358
12359       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12360       ;;
12361     mingw* | cegcc*)
12362       # MinGW DLLs use traditional 'lib' prefix
12363       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12364       ;;
12365     pw32*)
12366       # pw32 DLLs use 'pw' prefix rather than 'lib'
12367       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12368       ;;
12369     esac
12370     dynamic_linker='Win32 ld.exe'
12371     ;;
12372
12373   *,cl*)
12374     # Native MSVC
12375     libname_spec='$name'
12376     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12377     library_names_spec='${libname}.dll.lib'
12378
12379     case $build_os in
12380     mingw*)
12381       sys_lib_search_path_spec=
12382       lt_save_ifs=$IFS
12383       IFS=';'
12384       for lt_path in $LIB
12385       do
12386         IFS=$lt_save_ifs
12387         # Let DOS variable expansion print the short 8.3 style file name.
12388         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12389         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12390       done
12391       IFS=$lt_save_ifs
12392       # Convert to MSYS style.
12393       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12394       ;;
12395     cygwin*)
12396       # Convert to unix form, then to dos form, then back to unix form
12397       # but this time dos style (no spaces!) so that the unix form looks
12398       # like /cygdrive/c/PROGRA~1:/cygdr...
12399       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12400       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12401       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12402       ;;
12403     *)
12404       sys_lib_search_path_spec="$LIB"
12405       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12406         # It is most probably a Windows format PATH.
12407         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12408       else
12409         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12410       fi
12411       # FIXME: find the short name or the path components, as spaces are
12412       # common. (e.g. "Program Files" -> "PROGRA~1")
12413       ;;
12414     esac
12415
12416     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12417     postinstall_cmds='base_file=`basename \${file}`~
12418       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12419       dldir=$destdir/`dirname \$dlpath`~
12420       test -d \$dldir || mkdir -p \$dldir~
12421       $install_prog $dir/$dlname \$dldir/$dlname'
12422     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12423       dlpath=$dir/\$dldll~
12424        $RM \$dlpath'
12425     shlibpath_overrides_runpath=yes
12426     dynamic_linker='Win32 link.exe'
12427     ;;
12428
12429   *)
12430     # Assume MSVC wrapper
12431     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12432     dynamic_linker='Win32 ld.exe'
12433     ;;
12434   esac
12435   # FIXME: first we should search . and the directory the executable is in
12436   shlibpath_var=PATH
12437   ;;
12438
12439 darwin* | rhapsody*)
12440   dynamic_linker="$host_os dyld"
12441   version_type=darwin
12442   need_lib_prefix=no
12443   need_version=no
12444   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12445   soname_spec='${libname}${release}${major}$shared_ext'
12446   shlibpath_overrides_runpath=yes
12447   shlibpath_var=DYLD_LIBRARY_PATH
12448   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12449
12450   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12451   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12452   ;;
12453
12454 dgux*)
12455   version_type=linux # correct to gnu/linux during the next big refactor
12456   need_lib_prefix=no
12457   need_version=no
12458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12459   soname_spec='${libname}${release}${shared_ext}$major'
12460   shlibpath_var=LD_LIBRARY_PATH
12461   ;;
12462
12463 freebsd* | dragonfly*)
12464   # DragonFly does not have aout.  When/if they implement a new
12465   # versioning mechanism, adjust this.
12466   if test -x /usr/bin/objformat; then
12467     objformat=`/usr/bin/objformat`
12468   else
12469     case $host_os in
12470     freebsd[23].*) objformat=aout ;;
12471     *) objformat=elf ;;
12472     esac
12473   fi
12474   version_type=freebsd-$objformat
12475   case $version_type in
12476     freebsd-elf*)
12477       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12478       need_version=no
12479       need_lib_prefix=no
12480       ;;
12481     freebsd-*)
12482       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12483       need_version=yes
12484       ;;
12485   esac
12486   shlibpath_var=LD_LIBRARY_PATH
12487   case $host_os in
12488   freebsd2.*)
12489     shlibpath_overrides_runpath=yes
12490     ;;
12491   freebsd3.[01]* | freebsdelf3.[01]*)
12492     shlibpath_overrides_runpath=yes
12493     hardcode_into_libs=yes
12494     ;;
12495   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12496   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12497     shlibpath_overrides_runpath=no
12498     hardcode_into_libs=yes
12499     ;;
12500   *) # from 4.6 on, and DragonFly
12501     shlibpath_overrides_runpath=yes
12502     hardcode_into_libs=yes
12503     ;;
12504   esac
12505   ;;
12506
12507 gnu*)
12508   version_type=linux # correct to gnu/linux during the next big refactor
12509   need_lib_prefix=no
12510   need_version=no
12511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12512   soname_spec='${libname}${release}${shared_ext}$major'
12513   shlibpath_var=LD_LIBRARY_PATH
12514   shlibpath_overrides_runpath=no
12515   hardcode_into_libs=yes
12516   ;;
12517
12518 haiku*)
12519   version_type=linux # correct to gnu/linux during the next big refactor
12520   need_lib_prefix=no
12521   need_version=no
12522   dynamic_linker="$host_os runtime_loader"
12523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12524   soname_spec='${libname}${release}${shared_ext}$major'
12525   shlibpath_var=LIBRARY_PATH
12526   shlibpath_overrides_runpath=yes
12527   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12528   hardcode_into_libs=yes
12529   ;;
12530
12531 hpux9* | hpux10* | hpux11*)
12532   # Give a soname corresponding to the major version so that dld.sl refuses to
12533   # link against other versions.
12534   version_type=sunos
12535   need_lib_prefix=no
12536   need_version=no
12537   case $host_cpu in
12538   ia64*)
12539     shrext_cmds='.so'
12540     hardcode_into_libs=yes
12541     dynamic_linker="$host_os dld.so"
12542     shlibpath_var=LD_LIBRARY_PATH
12543     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545     soname_spec='${libname}${release}${shared_ext}$major'
12546     if test "X$HPUX_IA64_MODE" = X32; then
12547       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12548     else
12549       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12550     fi
12551     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12552     ;;
12553   hppa*64*)
12554     shrext_cmds='.sl'
12555     hardcode_into_libs=yes
12556     dynamic_linker="$host_os dld.sl"
12557     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560     soname_spec='${libname}${release}${shared_ext}$major'
12561     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12563     ;;
12564   *)
12565     shrext_cmds='.sl'
12566     dynamic_linker="$host_os dld.sl"
12567     shlibpath_var=SHLIB_PATH
12568     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570     soname_spec='${libname}${release}${shared_ext}$major'
12571     ;;
12572   esac
12573   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12574   postinstall_cmds='chmod 555 $lib'
12575   # or fails outright, so override atomically:
12576   install_override_mode=555
12577   ;;
12578
12579 interix[3-9]*)
12580   version_type=linux # correct to gnu/linux during the next big refactor
12581   need_lib_prefix=no
12582   need_version=no
12583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12584   soname_spec='${libname}${release}${shared_ext}$major'
12585   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12586   shlibpath_var=LD_LIBRARY_PATH
12587   shlibpath_overrides_runpath=no
12588   hardcode_into_libs=yes
12589   ;;
12590
12591 irix5* | irix6* | nonstopux*)
12592   case $host_os in
12593     nonstopux*) version_type=nonstopux ;;
12594     *)
12595         if test "$lt_cv_prog_gnu_ld" = yes; then
12596                 version_type=linux # correct to gnu/linux during the next big refactor
12597         else
12598                 version_type=irix
12599         fi ;;
12600   esac
12601   need_lib_prefix=no
12602   need_version=no
12603   soname_spec='${libname}${release}${shared_ext}$major'
12604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12605   case $host_os in
12606   irix5* | nonstopux*)
12607     libsuff= shlibsuff=
12608     ;;
12609   *)
12610     case $LD in # libtool.m4 will add one of these switches to LD
12611     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12612       libsuff= shlibsuff= libmagic=32-bit;;
12613     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12614       libsuff=32 shlibsuff=N32 libmagic=N32;;
12615     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12616       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12617     *) libsuff= shlibsuff= libmagic=never-match;;
12618     esac
12619     ;;
12620   esac
12621   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12622   shlibpath_overrides_runpath=no
12623   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12624   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12625   hardcode_into_libs=yes
12626   ;;
12627
12628 # No shared lib support for Linux oldld, aout, or coff.
12629 linux*oldld* | linux*aout* | linux*coff*)
12630   dynamic_linker=no
12631   ;;
12632
12633 # This must be glibc/ELF.
12634 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12635   version_type=linux # correct to gnu/linux during the next big refactor
12636   need_lib_prefix=no
12637   need_version=no
12638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639   soname_spec='${libname}${release}${shared_ext}$major'
12640   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12641   shlibpath_var=LD_LIBRARY_PATH
12642   shlibpath_overrides_runpath=no
12643
12644   # Some binutils ld are patched to set DT_RUNPATH
12645   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12646   $as_echo_n "(cached) " >&6
12647 else
12648   lt_cv_shlibpath_overrides_runpath=no
12649     save_LDFLAGS=$LDFLAGS
12650     save_libdir=$libdir
12651     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12652          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12653     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h.  */
12655
12656 int
12657 main ()
12658 {
12659
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 if ac_fn_c_try_link "$LINENO"; then :
12665   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12666   lt_cv_shlibpath_overrides_runpath=yes
12667 fi
12668 fi
12669 rm -f core conftest.err conftest.$ac_objext \
12670     conftest$ac_exeext conftest.$ac_ext
12671     LDFLAGS=$save_LDFLAGS
12672     libdir=$save_libdir
12673
12674 fi
12675
12676   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12677
12678   # This implies no fast_install, which is unacceptable.
12679   # Some rework will be needed to allow for fast_install
12680   # before this can be enabled.
12681   hardcode_into_libs=yes
12682
12683   # Append ld.so.conf contents to the search path
12684   if test -f /etc/ld.so.conf; then
12685     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' ' '`
12686     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12687   fi
12688
12689   # We used to test for /lib/ld.so.1 and disable shared libraries on
12690   # powerpc, because MkLinux only supported shared libraries with the
12691   # GNU dynamic linker.  Since this was broken with cross compilers,
12692   # most powerpc-linux boxes support dynamic linking these days and
12693   # people can always --disable-shared, the test was removed, and we
12694   # assume the GNU/Linux dynamic linker is in use.
12695   dynamic_linker='GNU/Linux ld.so'
12696   ;;
12697
12698 netbsd*)
12699   version_type=sunos
12700   need_lib_prefix=no
12701   need_version=no
12702   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12704     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12705     dynamic_linker='NetBSD (a.out) ld.so'
12706   else
12707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12708     soname_spec='${libname}${release}${shared_ext}$major'
12709     dynamic_linker='NetBSD ld.elf_so'
12710   fi
12711   shlibpath_var=LD_LIBRARY_PATH
12712   shlibpath_overrides_runpath=yes
12713   hardcode_into_libs=yes
12714   ;;
12715
12716 newsos6)
12717   version_type=linux # correct to gnu/linux during the next big refactor
12718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12719   shlibpath_var=LD_LIBRARY_PATH
12720   shlibpath_overrides_runpath=yes
12721   ;;
12722
12723 *nto* | *qnx*)
12724   version_type=qnx
12725   need_lib_prefix=no
12726   need_version=no
12727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12728   soname_spec='${libname}${release}${shared_ext}$major'
12729   shlibpath_var=LD_LIBRARY_PATH
12730   shlibpath_overrides_runpath=no
12731   hardcode_into_libs=yes
12732   dynamic_linker='ldqnx.so'
12733   ;;
12734
12735 openbsd*)
12736   version_type=sunos
12737   sys_lib_dlsearch_path_spec="/usr/lib"
12738   need_lib_prefix=no
12739   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12740   case $host_os in
12741     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12742     *)                          need_version=no  ;;
12743   esac
12744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12745   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12746   shlibpath_var=LD_LIBRARY_PATH
12747   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12748     case $host_os in
12749       openbsd2.[89] | openbsd2.[89].*)
12750         shlibpath_overrides_runpath=no
12751         ;;
12752       *)
12753         shlibpath_overrides_runpath=yes
12754         ;;
12755       esac
12756   else
12757     shlibpath_overrides_runpath=yes
12758   fi
12759   ;;
12760
12761 os2*)
12762   libname_spec='$name'
12763   shrext_cmds=".dll"
12764   need_lib_prefix=no
12765   library_names_spec='$libname${shared_ext} $libname.a'
12766   dynamic_linker='OS/2 ld.exe'
12767   shlibpath_var=LIBPATH
12768   ;;
12769
12770 osf3* | osf4* | osf5*)
12771   version_type=osf
12772   need_lib_prefix=no
12773   need_version=no
12774   soname_spec='${libname}${release}${shared_ext}$major'
12775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12776   shlibpath_var=LD_LIBRARY_PATH
12777   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12778   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12779   ;;
12780
12781 rdos*)
12782   dynamic_linker=no
12783   ;;
12784
12785 solaris*)
12786   version_type=linux # correct to gnu/linux during the next big refactor
12787   need_lib_prefix=no
12788   need_version=no
12789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12790   soname_spec='${libname}${release}${shared_ext}$major'
12791   shlibpath_var=LD_LIBRARY_PATH
12792   shlibpath_overrides_runpath=yes
12793   hardcode_into_libs=yes
12794   # ldd complains unless libraries are executable
12795   postinstall_cmds='chmod +x $lib'
12796   ;;
12797
12798 sunos4*)
12799   version_type=sunos
12800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12801   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12802   shlibpath_var=LD_LIBRARY_PATH
12803   shlibpath_overrides_runpath=yes
12804   if test "$with_gnu_ld" = yes; then
12805     need_lib_prefix=no
12806   fi
12807   need_version=yes
12808   ;;
12809
12810 sysv4 | sysv4.3*)
12811   version_type=linux # correct to gnu/linux during the next big refactor
12812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12813   soname_spec='${libname}${release}${shared_ext}$major'
12814   shlibpath_var=LD_LIBRARY_PATH
12815   case $host_vendor in
12816     sni)
12817       shlibpath_overrides_runpath=no
12818       need_lib_prefix=no
12819       runpath_var=LD_RUN_PATH
12820       ;;
12821     siemens)
12822       need_lib_prefix=no
12823       ;;
12824     motorola)
12825       need_lib_prefix=no
12826       need_version=no
12827       shlibpath_overrides_runpath=no
12828       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12829       ;;
12830   esac
12831   ;;
12832
12833 sysv4*MP*)
12834   if test -d /usr/nec ;then
12835     version_type=linux # correct to gnu/linux during the next big refactor
12836     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12837     soname_spec='$libname${shared_ext}.$major'
12838     shlibpath_var=LD_LIBRARY_PATH
12839   fi
12840   ;;
12841
12842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12843   version_type=freebsd-elf
12844   need_lib_prefix=no
12845   need_version=no
12846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12847   soname_spec='${libname}${release}${shared_ext}$major'
12848   shlibpath_var=LD_LIBRARY_PATH
12849   shlibpath_overrides_runpath=yes
12850   hardcode_into_libs=yes
12851   if test "$with_gnu_ld" = yes; then
12852     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12853   else
12854     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12855     case $host_os in
12856       sco3.2v5*)
12857         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12858         ;;
12859     esac
12860   fi
12861   sys_lib_dlsearch_path_spec='/usr/lib'
12862   ;;
12863
12864 tpf*)
12865   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12866   version_type=linux # correct to gnu/linux during the next big refactor
12867   need_lib_prefix=no
12868   need_version=no
12869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12870   shlibpath_var=LD_LIBRARY_PATH
12871   shlibpath_overrides_runpath=no
12872   hardcode_into_libs=yes
12873   ;;
12874
12875 uts4*)
12876   version_type=linux # correct to gnu/linux during the next big refactor
12877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12878   soname_spec='${libname}${release}${shared_ext}$major'
12879   shlibpath_var=LD_LIBRARY_PATH
12880   ;;
12881
12882 *)
12883   dynamic_linker=no
12884   ;;
12885 esac
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12887 $as_echo "$dynamic_linker" >&6; }
12888 test "$dynamic_linker" = no && can_build_shared=no
12889
12890 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12891 if test "$GCC" = yes; then
12892   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12893 fi
12894
12895 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12896   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12897 fi
12898 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12899   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12900 fi
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12994 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12995 hardcode_action=
12996 if test -n "$hardcode_libdir_flag_spec" ||
12997    test -n "$runpath_var" ||
12998    test "X$hardcode_automatic" = "Xyes" ; then
12999
13000   # We can hardcode non-existent directories.
13001   if test "$hardcode_direct" != no &&
13002      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13003      # have to relink, otherwise we might link with an installed library
13004      # when we should be linking with a yet-to-be-installed one
13005      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13006      test "$hardcode_minus_L" != no; then
13007     # Linking always hardcodes the temporary library directory.
13008     hardcode_action=relink
13009   else
13010     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13011     hardcode_action=immediate
13012   fi
13013 else
13014   # We cannot hardcode anything, or else we can only hardcode existing
13015   # directories.
13016   hardcode_action=unsupported
13017 fi
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13019 $as_echo "$hardcode_action" >&6; }
13020
13021 if test "$hardcode_action" = relink ||
13022    test "$inherit_rpath" = yes; then
13023   # Fast installation is not supported
13024   enable_fast_install=no
13025 elif test "$shlibpath_overrides_runpath" = yes ||
13026      test "$enable_shared" = no; then
13027   # Fast installation is not necessary
13028   enable_fast_install=needless
13029 fi
13030
13031
13032
13033
13034
13035
13036   if test "x$enable_dlopen" != xyes; then
13037   enable_dlopen=unknown
13038   enable_dlopen_self=unknown
13039   enable_dlopen_self_static=unknown
13040 else
13041   lt_cv_dlopen=no
13042   lt_cv_dlopen_libs=
13043
13044   case $host_os in
13045   beos*)
13046     lt_cv_dlopen="load_add_on"
13047     lt_cv_dlopen_libs=
13048     lt_cv_dlopen_self=yes
13049     ;;
13050
13051   mingw* | pw32* | cegcc*)
13052     lt_cv_dlopen="LoadLibrary"
13053     lt_cv_dlopen_libs=
13054     ;;
13055
13056   cygwin*)
13057     lt_cv_dlopen="dlopen"
13058     lt_cv_dlopen_libs=
13059     ;;
13060
13061   darwin*)
13062   # if libdl is installed we need to link against it
13063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13064 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13065 if ${ac_cv_lib_dl_dlopen+:} false; then :
13066   $as_echo_n "(cached) " >&6
13067 else
13068   ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-ldl  $LIBS"
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h.  */
13072
13073 /* Override any GCC internal prototype to avoid an error.
13074    Use char because int might match the return type of a GCC
13075    builtin and then its argument prototype would still apply.  */
13076 #ifdef __cplusplus
13077 extern "C"
13078 #endif
13079 char dlopen ();
13080 int
13081 main ()
13082 {
13083 return dlopen ();
13084   ;
13085   return 0;
13086 }
13087 _ACEOF
13088 if ac_fn_c_try_link "$LINENO"; then :
13089   ac_cv_lib_dl_dlopen=yes
13090 else
13091   ac_cv_lib_dl_dlopen=no
13092 fi
13093 rm -f core conftest.err conftest.$ac_objext \
13094     conftest$ac_exeext conftest.$ac_ext
13095 LIBS=$ac_check_lib_save_LIBS
13096 fi
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13098 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13099 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13100   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13101 else
13102
13103     lt_cv_dlopen="dyld"
13104     lt_cv_dlopen_libs=
13105     lt_cv_dlopen_self=yes
13106
13107 fi
13108
13109     ;;
13110
13111   *)
13112     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13113 if test "x$ac_cv_func_shl_load" = xyes; then :
13114   lt_cv_dlopen="shl_load"
13115 else
13116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13117 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13118 if ${ac_cv_lib_dld_shl_load+:} false; then :
13119   $as_echo_n "(cached) " >&6
13120 else
13121   ac_check_lib_save_LIBS=$LIBS
13122 LIBS="-ldld  $LIBS"
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h.  */
13125
13126 /* Override any GCC internal prototype to avoid an error.
13127    Use char because int might match the return type of a GCC
13128    builtin and then its argument prototype would still apply.  */
13129 #ifdef __cplusplus
13130 extern "C"
13131 #endif
13132 char shl_load ();
13133 int
13134 main ()
13135 {
13136 return shl_load ();
13137   ;
13138   return 0;
13139 }
13140 _ACEOF
13141 if ac_fn_c_try_link "$LINENO"; then :
13142   ac_cv_lib_dld_shl_load=yes
13143 else
13144   ac_cv_lib_dld_shl_load=no
13145 fi
13146 rm -f core conftest.err conftest.$ac_objext \
13147     conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13149 fi
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13151 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13152 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13153   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13154 else
13155   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13156 if test "x$ac_cv_func_dlopen" = xyes; then :
13157   lt_cv_dlopen="dlopen"
13158 else
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13160 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13161 if ${ac_cv_lib_dl_dlopen+:} false; then :
13162   $as_echo_n "(cached) " >&6
13163 else
13164   ac_check_lib_save_LIBS=$LIBS
13165 LIBS="-ldl  $LIBS"
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h.  */
13168
13169 /* Override any GCC internal prototype to avoid an error.
13170    Use char because int might match the return type of a GCC
13171    builtin and then its argument prototype would still apply.  */
13172 #ifdef __cplusplus
13173 extern "C"
13174 #endif
13175 char dlopen ();
13176 int
13177 main ()
13178 {
13179 return dlopen ();
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 if ac_fn_c_try_link "$LINENO"; then :
13185   ac_cv_lib_dl_dlopen=yes
13186 else
13187   ac_cv_lib_dl_dlopen=no
13188 fi
13189 rm -f core conftest.err conftest.$ac_objext \
13190     conftest$ac_exeext conftest.$ac_ext
13191 LIBS=$ac_check_lib_save_LIBS
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13194 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13195 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13196   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13197 else
13198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13199 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13200 if ${ac_cv_lib_svld_dlopen+:} false; then :
13201   $as_echo_n "(cached) " >&6
13202 else
13203   ac_check_lib_save_LIBS=$LIBS
13204 LIBS="-lsvld  $LIBS"
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h.  */
13207
13208 /* Override any GCC internal prototype to avoid an error.
13209    Use char because int might match the return type of a GCC
13210    builtin and then its argument prototype would still apply.  */
13211 #ifdef __cplusplus
13212 extern "C"
13213 #endif
13214 char dlopen ();
13215 int
13216 main ()
13217 {
13218 return dlopen ();
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 if ac_fn_c_try_link "$LINENO"; then :
13224   ac_cv_lib_svld_dlopen=yes
13225 else
13226   ac_cv_lib_svld_dlopen=no
13227 fi
13228 rm -f core conftest.err conftest.$ac_objext \
13229     conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13231 fi
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13233 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13234 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13235   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13236 else
13237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13238 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13239 if ${ac_cv_lib_dld_dld_link+:} false; then :
13240   $as_echo_n "(cached) " >&6
13241 else
13242   ac_check_lib_save_LIBS=$LIBS
13243 LIBS="-ldld  $LIBS"
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h.  */
13246
13247 /* Override any GCC internal prototype to avoid an error.
13248    Use char because int might match the return type of a GCC
13249    builtin and then its argument prototype would still apply.  */
13250 #ifdef __cplusplus
13251 extern "C"
13252 #endif
13253 char dld_link ();
13254 int
13255 main ()
13256 {
13257 return dld_link ();
13258   ;
13259   return 0;
13260 }
13261 _ACEOF
13262 if ac_fn_c_try_link "$LINENO"; then :
13263   ac_cv_lib_dld_dld_link=yes
13264 else
13265   ac_cv_lib_dld_dld_link=no
13266 fi
13267 rm -f core conftest.err conftest.$ac_objext \
13268     conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS
13270 fi
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13272 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13273 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13274   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13275 fi
13276
13277
13278 fi
13279
13280
13281 fi
13282
13283
13284 fi
13285
13286
13287 fi
13288
13289
13290 fi
13291
13292     ;;
13293   esac
13294
13295   if test "x$lt_cv_dlopen" != xno; then
13296     enable_dlopen=yes
13297   else
13298     enable_dlopen=no
13299   fi
13300
13301   case $lt_cv_dlopen in
13302   dlopen)
13303     save_CPPFLAGS="$CPPFLAGS"
13304     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13305
13306     save_LDFLAGS="$LDFLAGS"
13307     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13308
13309     save_LIBS="$LIBS"
13310     LIBS="$lt_cv_dlopen_libs $LIBS"
13311
13312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13313 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13314 if ${lt_cv_dlopen_self+:} false; then :
13315   $as_echo_n "(cached) " >&6
13316 else
13317           if test "$cross_compiling" = yes; then :
13318   lt_cv_dlopen_self=cross
13319 else
13320   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13321   lt_status=$lt_dlunknown
13322   cat > conftest.$ac_ext <<_LT_EOF
13323 #line $LINENO "configure"
13324 #include "confdefs.h"
13325
13326 #if HAVE_DLFCN_H
13327 #include <dlfcn.h>
13328 #endif
13329
13330 #include <stdio.h>
13331
13332 #ifdef RTLD_GLOBAL
13333 #  define LT_DLGLOBAL           RTLD_GLOBAL
13334 #else
13335 #  ifdef DL_GLOBAL
13336 #    define LT_DLGLOBAL         DL_GLOBAL
13337 #  else
13338 #    define LT_DLGLOBAL         0
13339 #  endif
13340 #endif
13341
13342 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13343    find out it does not work in some platform. */
13344 #ifndef LT_DLLAZY_OR_NOW
13345 #  ifdef RTLD_LAZY
13346 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13347 #  else
13348 #    ifdef DL_LAZY
13349 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13350 #    else
13351 #      ifdef RTLD_NOW
13352 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13353 #      else
13354 #        ifdef DL_NOW
13355 #          define LT_DLLAZY_OR_NOW      DL_NOW
13356 #        else
13357 #          define LT_DLLAZY_OR_NOW      0
13358 #        endif
13359 #      endif
13360 #    endif
13361 #  endif
13362 #endif
13363
13364 /* When -fvisbility=hidden is used, assume the code has been annotated
13365    correspondingly for the symbols needed.  */
13366 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13367 int fnord () __attribute__((visibility("default")));
13368 #endif
13369
13370 int fnord () { return 42; }
13371 int main ()
13372 {
13373   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13374   int status = $lt_dlunknown;
13375
13376   if (self)
13377     {
13378       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13379       else
13380         {
13381           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13382           else puts (dlerror ());
13383         }
13384       /* dlclose (self); */
13385     }
13386   else
13387     puts (dlerror ());
13388
13389   return status;
13390 }
13391 _LT_EOF
13392   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13393   (eval $ac_link) 2>&5
13394   ac_status=$?
13395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13396   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13397     (./conftest; exit; ) >&5 2>/dev/null
13398     lt_status=$?
13399     case x$lt_status in
13400       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13401       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13402       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13403     esac
13404   else :
13405     # compilation failed
13406     lt_cv_dlopen_self=no
13407   fi
13408 fi
13409 rm -fr conftest*
13410
13411
13412 fi
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13414 $as_echo "$lt_cv_dlopen_self" >&6; }
13415
13416     if test "x$lt_cv_dlopen_self" = xyes; then
13417       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13418       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13419 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13420 if ${lt_cv_dlopen_self_static+:} false; then :
13421   $as_echo_n "(cached) " >&6
13422 else
13423           if test "$cross_compiling" = yes; then :
13424   lt_cv_dlopen_self_static=cross
13425 else
13426   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13427   lt_status=$lt_dlunknown
13428   cat > conftest.$ac_ext <<_LT_EOF
13429 #line $LINENO "configure"
13430 #include "confdefs.h"
13431
13432 #if HAVE_DLFCN_H
13433 #include <dlfcn.h>
13434 #endif
13435
13436 #include <stdio.h>
13437
13438 #ifdef RTLD_GLOBAL
13439 #  define LT_DLGLOBAL           RTLD_GLOBAL
13440 #else
13441 #  ifdef DL_GLOBAL
13442 #    define LT_DLGLOBAL         DL_GLOBAL
13443 #  else
13444 #    define LT_DLGLOBAL         0
13445 #  endif
13446 #endif
13447
13448 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13449    find out it does not work in some platform. */
13450 #ifndef LT_DLLAZY_OR_NOW
13451 #  ifdef RTLD_LAZY
13452 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13453 #  else
13454 #    ifdef DL_LAZY
13455 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13456 #    else
13457 #      ifdef RTLD_NOW
13458 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13459 #      else
13460 #        ifdef DL_NOW
13461 #          define LT_DLLAZY_OR_NOW      DL_NOW
13462 #        else
13463 #          define LT_DLLAZY_OR_NOW      0
13464 #        endif
13465 #      endif
13466 #    endif
13467 #  endif
13468 #endif
13469
13470 /* When -fvisbility=hidden is used, assume the code has been annotated
13471    correspondingly for the symbols needed.  */
13472 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13473 int fnord () __attribute__((visibility("default")));
13474 #endif
13475
13476 int fnord () { return 42; }
13477 int main ()
13478 {
13479   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13480   int status = $lt_dlunknown;
13481
13482   if (self)
13483     {
13484       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13485       else
13486         {
13487           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13488           else puts (dlerror ());
13489         }
13490       /* dlclose (self); */
13491     }
13492   else
13493     puts (dlerror ());
13494
13495   return status;
13496 }
13497 _LT_EOF
13498   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13499   (eval $ac_link) 2>&5
13500   ac_status=$?
13501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13502   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13503     (./conftest; exit; ) >&5 2>/dev/null
13504     lt_status=$?
13505     case x$lt_status in
13506       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13507       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13508       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13509     esac
13510   else :
13511     # compilation failed
13512     lt_cv_dlopen_self_static=no
13513   fi
13514 fi
13515 rm -fr conftest*
13516
13517
13518 fi
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13520 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13521     fi
13522
13523     CPPFLAGS="$save_CPPFLAGS"
13524     LDFLAGS="$save_LDFLAGS"
13525     LIBS="$save_LIBS"
13526     ;;
13527   esac
13528
13529   case $lt_cv_dlopen_self in
13530   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13531   *) enable_dlopen_self=unknown ;;
13532   esac
13533
13534   case $lt_cv_dlopen_self_static in
13535   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13536   *) enable_dlopen_self_static=unknown ;;
13537   esac
13538 fi
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556 striplib=
13557 old_striplib=
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13559 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13560 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13561   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13562   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13564 $as_echo "yes" >&6; }
13565 else
13566 # FIXME - insert some real tests, host_os isn't really good enough
13567   case $host_os in
13568   darwin*)
13569     if test -n "$STRIP" ; then
13570       striplib="$STRIP -x"
13571       old_striplib="$STRIP -S"
13572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13573 $as_echo "yes" >&6; }
13574     else
13575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576 $as_echo "no" >&6; }
13577     fi
13578     ;;
13579   *)
13580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13582     ;;
13583   esac
13584 fi
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597   # Report which library types will actually be built
13598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13599 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13601 $as_echo "$can_build_shared" >&6; }
13602
13603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13604 $as_echo_n "checking whether to build shared libraries... " >&6; }
13605   test "$can_build_shared" = "no" && enable_shared=no
13606
13607   # On AIX, shared libraries and static libraries use the same namespace, and
13608   # are all built from PIC.
13609   case $host_os in
13610   aix3*)
13611     test "$enable_shared" = yes && enable_static=no
13612     if test -n "$RANLIB"; then
13613       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13614       postinstall_cmds='$RANLIB $lib'
13615     fi
13616     ;;
13617
13618   aix[4-9]*)
13619     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13620       test "$enable_shared" = yes && enable_static=no
13621     fi
13622     ;;
13623   esac
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13625 $as_echo "$enable_shared" >&6; }
13626
13627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13628 $as_echo_n "checking whether to build static libraries... " >&6; }
13629   # Make sure either enable_shared or enable_static is yes.
13630   test "$enable_shared" = yes || enable_static=yes
13631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13632 $as_echo "$enable_static" >&6; }
13633
13634
13635
13636
13637 fi
13638 ac_ext=c
13639 ac_cpp='$CPP $CPPFLAGS'
13640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13643
13644 CC="$lt_save_CC"
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660         ac_config_commands="$ac_config_commands libtool"
13661
13662
13663
13664
13665 # Only expand once:
13666
13667
13668
13669
13670 # Check whether --with-libtool was given.
13671 if test "${with_libtool+set}" = set; then :
13672   withval=$with_libtool; case $with_libtool in
13673     yes|builtin) ;;
13674     no)         as_fn_error $? "\"--without-libtool not supported.\"" "$LINENO" 5
13675                 ;;
13676     system)     LIBTOOL=libtool
13677                 ;;
13678     *)          LIBTOOL="$with_libtool"
13679                 ;;
13680 esac
13681 fi
13682
13683
13684 if test "$enable_shared" = "no"; then
13685     with_noexec=no
13686     enable_dlopen=no
13687     lt_cv_dlopen=none
13688     lt_cv_dlopen_libs=
13689     ac_cv_func_dlopen=no
13690     LT_LDFLAGS=-static
13691 else
13692     eval _shrext="$shrext_cmds"
13693     # Darwin uses .dylib for libraries but .so for modules
13694     if test X"$_shrext" = X".dylib"; then
13695         SOEXT=".so"
13696     else
13697         SOEXT="$_shrext"
13698     fi
13699 fi
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13701 $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13702
13703 # Check whether --with-noexec was given.
13704 if test "${with_noexec+set}" = set; then :
13705   withval=$with_noexec; case $with_noexec in
13706     yes)        with_noexec="$libexecdir/sudo/sudo_noexec.so"
13707                 ;;
13708     no)         ;;
13709     *)          ;;
13710 esac
13711 else
13712   with_noexec="$libexecdir/sudo/sudo_noexec.so"
13713 fi
13714
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13716 $as_echo "$with_noexec" >&6; }
13717 NOEXECFILE="sudo_noexec.so"
13718 NOEXECDIR="`echo $with_noexec|sed -e 's:^${\([^}]*\)}:$(\1):' -e 's:^\(.*\)/[^/]*:\1:'`"
13719
13720 # Extract the first word of "uname", so it can be a program name with args.
13721 set dummy uname; ac_word=$2
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723 $as_echo_n "checking for $ac_word... " >&6; }
13724 if ${ac_cv_path_UNAMEPROG+:} false; then :
13725   $as_echo_n "(cached) " >&6
13726 else
13727   case $UNAMEPROG in
13728   [\\/]* | ?:[\\/]*)
13729   ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
13730   ;;
13731   *)
13732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13734 do
13735   IFS=$as_save_IFS
13736   test -z "$as_dir" && as_dir=.
13737     for ac_exec_ext in '' $ac_executable_extensions; do
13738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13739     ac_cv_path_UNAMEPROG="$as_dir/$ac_word$ac_exec_ext"
13740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741     break 2
13742   fi
13743 done
13744   done
13745 IFS=$as_save_IFS
13746
13747   test -z "$ac_cv_path_UNAMEPROG" && ac_cv_path_UNAMEPROG="uname"
13748   ;;
13749 esac
13750 fi
13751 UNAMEPROG=$ac_cv_path_UNAMEPROG
13752 if test -n "$UNAMEPROG"; then
13753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13754 $as_echo "$UNAMEPROG" >&6; }
13755 else
13756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13758 fi
13759
13760
13761 # Extract the first word of "tr", so it can be a program name with args.
13762 set dummy tr; ac_word=$2
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13764 $as_echo_n "checking for $ac_word... " >&6; }
13765 if ${ac_cv_path_TRPROG+:} false; then :
13766   $as_echo_n "(cached) " >&6
13767 else
13768   case $TRPROG in
13769   [\\/]* | ?:[\\/]*)
13770   ac_cv_path_TRPROG="$TRPROG" # Let the user override the test with a path.
13771   ;;
13772   *)
13773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13774 for as_dir in $PATH
13775 do
13776   IFS=$as_save_IFS
13777   test -z "$as_dir" && as_dir=.
13778     for ac_exec_ext in '' $ac_executable_extensions; do
13779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13780     ac_cv_path_TRPROG="$as_dir/$ac_word$ac_exec_ext"
13781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13782     break 2
13783   fi
13784 done
13785   done
13786 IFS=$as_save_IFS
13787
13788   test -z "$ac_cv_path_TRPROG" && ac_cv_path_TRPROG="tr"
13789   ;;
13790 esac
13791 fi
13792 TRPROG=$ac_cv_path_TRPROG
13793 if test -n "$TRPROG"; then
13794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13795 $as_echo "$TRPROG" >&6; }
13796 else
13797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798 $as_echo "no" >&6; }
13799 fi
13800
13801
13802 # Extract the first word of "mandoc", so it can be a program name with args.
13803 set dummy mandoc; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if ${ac_cv_path_MANDOCPROG+:} false; then :
13807   $as_echo_n "(cached) " >&6
13808 else
13809   case $MANDOCPROG in
13810   [\\/]* | ?:[\\/]*)
13811   ac_cv_path_MANDOCPROG="$MANDOCPROG" # Let the user override the test with a path.
13812   ;;
13813   *)
13814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815 for as_dir in $PATH
13816 do
13817   IFS=$as_save_IFS
13818   test -z "$as_dir" && as_dir=.
13819     for ac_exec_ext in '' $ac_executable_extensions; do
13820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13821     ac_cv_path_MANDOCPROG="$as_dir/$ac_word$ac_exec_ext"
13822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13823     break 2
13824   fi
13825 done
13826   done
13827 IFS=$as_save_IFS
13828
13829   test -z "$ac_cv_path_MANDOCPROG" && ac_cv_path_MANDOCPROG="mandoc"
13830   ;;
13831 esac
13832 fi
13833 MANDOCPROG=$ac_cv_path_MANDOCPROG
13834 if test -n "$MANDOCPROG"; then
13835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOCPROG" >&5
13836 $as_echo "$MANDOCPROG" >&6; }
13837 else
13838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839 $as_echo "no" >&6; }
13840 fi
13841
13842
13843 if test "$MANDOCPROG" != "mandoc"; then
13844     : ${MANTYPE='mdoc'}
13845 else
13846     # Extract the first word of "nroff", so it can be a program name with args.
13847 set dummy nroff; ac_word=$2
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13849 $as_echo_n "checking for $ac_word... " >&6; }
13850 if ${ac_cv_path_NROFFPROG+:} false; then :
13851   $as_echo_n "(cached) " >&6
13852 else
13853   case $NROFFPROG in
13854   [\\/]* | ?:[\\/]*)
13855   ac_cv_path_NROFFPROG="$NROFFPROG" # Let the user override the test with a path.
13856   ;;
13857   *)
13858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859 for as_dir in $PATH
13860 do
13861   IFS=$as_save_IFS
13862   test -z "$as_dir" && as_dir=.
13863     for ac_exec_ext in '' $ac_executable_extensions; do
13864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13865     ac_cv_path_NROFFPROG="$as_dir/$ac_word$ac_exec_ext"
13866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13867     break 2
13868   fi
13869 done
13870   done
13871 IFS=$as_save_IFS
13872
13873   ;;
13874 esac
13875 fi
13876 NROFFPROG=$ac_cv_path_NROFFPROG
13877 if test -n "$NROFFPROG"; then
13878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13879 $as_echo "$NROFFPROG" >&6; }
13880 else
13881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13882 $as_echo "no" >&6; }
13883 fi
13884
13885
13886     if test -n "$NROFFPROG"; then
13887         test -n "$MANTYPE" && sudo_cv_var_mantype="$MANTYPE"
13888         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which macro set to use for manual pages" >&5
13889 $as_echo_n "checking which macro set to use for manual pages... " >&6; }
13890 if ${sudo_cv_var_mantype+:} false; then :
13891   $as_echo_n "(cached) " >&6
13892 else
13893
13894                 sudo_cv_var_mantype="man"
13895                 echo ".Sh NAME" > conftest
13896                 echo ".Nm sudo" >> conftest
13897                 echo ".Nd sudo" >> conftest
13898                 echo ".Sh DESCRIPTION" >> conftest
13899                 echo "sudo" >> conftest
13900                 if $NROFFPROG -mdoc conftest >/dev/null 2>&1; then
13901                     sudo_cv_var_mantype="mdoc"
13902                 fi
13903                 rm -f conftest
13904
13905
13906 fi
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_mantype" >&5
13908 $as_echo "$sudo_cv_var_mantype" >&6; }
13909         MANTYPE="$sudo_cv_var_mantype"
13910     else
13911         MANTYPE=cat
13912         MANDIRTYPE=cat
13913         mansrcdir='$(srcdir)'
13914     fi
13915 fi
13916
13917 if test -n "$sudo_cv_prev_host"; then
13918     if test "$sudo_cv_prev_host" != "$host"; then
13919         as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13920     else
13921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13922 $as_echo_n "checking previous host type... " >&6; }
13923         if ${sudo_cv_prev_host+:} false; then :
13924   $as_echo_n "(cached) " >&6
13925 else
13926   sudo_cv_prev_host="$host"
13927 fi
13928
13929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13930 $as_echo "$sudo_cv_prev_host" >&6; }
13931     fi
13932 else
13933     # this will produce no output since there is no cached value
13934     if ${sudo_cv_prev_host+:} false; then :
13935   $as_echo_n "(cached) " >&6
13936 else
13937   sudo_cv_prev_host="$host"
13938 fi
13939
13940 fi
13941
13942 if test -n "$host_os"; then
13943     OS=`echo $host_os | sed 's/[0-9].*//'`
13944     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13945     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13946 else
13947     OS="unknown"
13948     OSREV=0
13949     OSMAJOR=0
13950 fi
13951
13952 case "$host" in
13953     *-*-sunos4*)
13954                 # LD_PRELOAD is space-delimited
13955                 RTLD_PRELOAD_DELIM=" "
13956
13957                 # getcwd(3) opens a pipe to getpwd(1)!?!
13958                 BROKEN_GETCWD=1
13959
13960                 # system headers lack prototypes but gcc helps...
13961                 if test -n "$GCC"; then
13962                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13963                 fi
13964
13965                 shadow_funcs="getpwanam issecure"
13966                 ;;
13967     *-*-solaris2*)
13968                 # LD_PRELOAD is space-delimited
13969                 RTLD_PRELOAD_DELIM=" "
13970
13971                 # Solaris-specific initialization
13972                 OS_INIT=os_init_solaris
13973                 SUDO_OBJS="${SUDO_OBJS} solaris.o"
13974
13975                 # To get the crypt(3) prototype (so we pass -Wall)
13976                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13977                 # AFS support needs -lucb
13978                 if test "$with_AFS" = "yes"; then
13979                     AFS_LIBS="-lc -lucb"
13980                 fi
13981                 : ${mansectsu='1m'}
13982                 : ${mansectform='4'}
13983                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13984                 for ac_func in priv_set
13985 do :
13986   ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13987 if test "x$ac_cv_func_priv_set" = xyes; then :
13988   cat >>confdefs.h <<_ACEOF
13989 #define HAVE_PRIV_SET 1
13990 _ACEOF
13991  PSMAN=1
13992 fi
13993 done
13994
13995                 ;;
13996     *-*-aix*)
13997                 # To get all prototypes (so we pass -Wall)
13998                 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13999                 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
14000
14001                 # On AIX 6 and higher default to PAM, else default to LAM
14002                 if test $OSMAJOR -ge 6; then
14003                     if test X"$with_pam" = X""; then
14004                         AUTH_EXCL_DEF="PAM"
14005                     fi
14006                 else
14007                     if test X"$with_aixauth" = X""; then
14008                         for ac_func in authenticate
14009 do :
14010   ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
14011 if test "x$ac_cv_func_authenticate" = xyes; then :
14012   cat >>confdefs.h <<_ACEOF
14013 #define HAVE_AUTHENTICATE 1
14014 _ACEOF
14015  AUTH_EXCL_DEF="AIX_AUTH"
14016 fi
14017 done
14018
14019                     fi
14020                 fi
14021
14022                 # AIX analog of nsswitch.conf, enabled by default
14023
14024 # Check whether --with-netsvc was given.
14025 if test "${with_netsvc+set}" = set; then :
14026   withval=$with_netsvc; case $with_netsvc in
14027                     no)         ;;
14028                     yes)        with_netsvc="/etc/netsvc.conf"
14029                                 ;;
14030                     *)          ;;
14031                 esac
14032 fi
14033
14034                 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
14035                     with_netsvc="/etc/netsvc.conf"
14036                 fi
14037
14038                 # LDR_PRELOAD is only supported in AIX 5.3 and later
14039                 if test $OSMAJOR -lt 5; then
14040                     with_noexec=no
14041                 else
14042                     RTLD_PRELOAD_VAR="LDR_PRELOAD"
14043                 fi
14044
14045                 # AIX-specific functions
14046                 for ac_func in getuserattr setauthdb setrlimit64
14047 do :
14048   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14049 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14050 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14051   cat >>confdefs.h <<_ACEOF
14052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14053 _ACEOF
14054
14055 fi
14056 done
14057
14058                 COMMON_OBJS="$COMMON_OBJS aix.lo"
14059                 ;;
14060     *-*-hiuxmpp*)
14061                 : ${mansectsu='1m'}
14062                 : ${mansectform='4'}
14063
14064                 # HP-UX shared libs must be executable
14065                 SHLIB_MODE=0755
14066                 ;;
14067     *-*-hpux*)
14068                 # AFS support needs -lBSD
14069                 if test "$with_AFS" = "yes"; then
14070                     AFS_LIBS="-lc -lBSD"
14071                 fi
14072                 : ${mansectsu='1m'}
14073                 : ${mansectform='4'}
14074
14075                 # HP-UX shared libs must be executable
14076                 SHLIB_MODE=0755
14077
14078                 # The HP bundled compiler cannot generate shared libs
14079                 if test -z "$GCC"; then
14080                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
14081 $as_echo_n "checking for HP bundled C compiler... " >&6; }
14082 if ${sudo_cv_var_hpccbundled+:} false; then :
14083   $as_echo_n "(cached) " >&6
14084 else
14085   if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
14086                             sudo_cv_var_hpccbundled=yes
14087                         else
14088                             sudo_cv_var_hpccbundled=no
14089                         fi
14090
14091 fi
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
14093 $as_echo "$sudo_cv_var_hpccbundled" >&6; }
14094                     if test "$sudo_cv_var_hpccbundled" = "yes"; then
14095                         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
14096                     fi
14097                 fi
14098
14099                 # Build PA-RISC1.1 objects for better portability
14100                 case "$host_cpu" in
14101                     hppa[2-9]*)
14102                         _CFLAGS="$CFLAGS"
14103                         if test -n "$GCC"; then
14104                             portable_flag="-march=1.1"
14105                         else
14106                             portable_flag="+DAportable"
14107                         fi
14108                         CFLAGS="$CFLAGS $portable_flag"
14109                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
14110 $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
14111 if ${sudo_cv_var_daportable+:} false; then :
14112   $as_echo_n "(cached) " >&6
14113 else
14114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h.  */
14116
14117 int
14118 main ()
14119 {
14120
14121   ;
14122   return 0;
14123 }
14124 _ACEOF
14125 if ac_fn_c_try_link "$LINENO"; then :
14126   sudo_cv_var_daportable=yes
14127 else
14128   sudo_cv_var_daportable=no
14129
14130 fi
14131 rm -f core conftest.err conftest.$ac_objext \
14132     conftest$ac_exeext conftest.$ac_ext
14133
14134
14135 fi
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
14137 $as_echo "$sudo_cv_var_daportable" >&6; }
14138                         if test X"$sudo_cv_var_daportable" != X"yes"; then
14139                             CFLAGS="$_CFLAGS"
14140                         fi
14141                         ;;
14142                 esac
14143
14144                 case "$host_os" in
14145                         hpux[1-8].*)
14146                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14147
14148                         ;;
14149                         hpux9.*)
14150                             $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14151
14152
14153                             shadow_funcs="getspwuid"
14154
14155                             # DCE support (requires ANSI C compiler)
14156                             if test "$with_DCE" = "yes"; then
14157                                 # order of libs in 9.X is important. -lc_r must be last
14158                                 SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
14159                                 LIBS="${LIBS} -ldce -lM -lc_r"
14160
14161     case "${CPPFLAGS}" in
14162         *"-D_REENTRANT"|*"-D_REENTRANT ")
14163             ;;
14164         *)
14165             if test X"${CPPFLAGS}" = X""; then
14166                 CPPFLAGS="-D_REENTRANT"
14167             else
14168                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT"
14169             fi
14170             ;;
14171     esac
14172
14173
14174     case "${CPPFLAGS}" in
14175         *"-I/usr/include/reentrant"|*"-I/usr/include/reentrant ")
14176             ;;
14177         *)
14178             if test X"${CPPFLAGS}" = X""; then
14179                 CPPFLAGS="-I/usr/include/reentrant"
14180             else
14181                 CPPFLAGS="${CPPFLAGS} -I/usr/include/reentrant"
14182             fi
14183             ;;
14184     esac
14185
14186                             fi
14187                         ;;
14188                         hpux10.*)
14189                             shadow_funcs="getprpwnam iscomsec"
14190                             shadow_libs="-lsec"
14191                             # HP-UX 10.20 libc has an incompatible getline
14192                             ac_cv_func_getline="no"
14193                         ;;
14194                         *)
14195                             shadow_funcs="getspnam iscomsec"
14196                             shadow_libs="-lsec"
14197                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14198                         ;;
14199                 esac
14200                 for ac_func in pstat_getproc
14201 do :
14202   ac_fn_c_check_func "$LINENO" "pstat_getproc" "ac_cv_func_pstat_getproc"
14203 if test "x$ac_cv_func_pstat_getproc" = xyes; then :
14204   cat >>confdefs.h <<_ACEOF
14205 #define HAVE_PSTAT_GETPROC 1
14206 _ACEOF
14207
14208 fi
14209 done
14210
14211                 ;;
14212     *-dec-osf*)
14213                 # ignore envariables wrt dynamic lib path
14214                 # XXX - sudo LDFLAGS instead?
14215                 SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
14216
14217                 : ${CHECKSIA='true'}
14218                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
14219 $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
14220                 # Check whether --enable-sia was given.
14221 if test "${enable_sia+set}" = set; then :
14222   enableval=$enable_sia;  case "$enableval" in
14223                     yes)        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224 $as_echo "no" >&6; }
14225                                 CHECKSIA=true
14226                                 ;;
14227                     no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14228 $as_echo "yes" >&6; }
14229                                 CHECKSIA=false
14230                                 ;;
14231                     *)          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14233                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
14234 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
14235                                 ;;
14236                   esac
14237
14238 else
14239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14240 $as_echo "no" >&6; }
14241 fi
14242
14243
14244                 shadow_funcs="getprpwnam dispcrypt"
14245                 # OSF/1 4.x and higher need -ldb too
14246                 if test $OSMAJOR -lt 4; then
14247                     shadow_libs="-lsecurity -laud -lm"
14248                 else
14249                     shadow_libs="-lsecurity -ldb -laud -lm"
14250                 fi
14251
14252                 # use SIA by default, if we have it
14253                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
14254
14255                 #
14256                 # Some versions of Digital Unix ship with a broken
14257                 # copy of prot.h, which we need for shadow passwords.
14258                 # XXX - make should remove this as part of distclean
14259                 #
14260                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
14261 $as_echo_n "checking for broken prot.h... " >&6; }
14262                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h.  */
14264
14265 #include <sys/types.h>
14266 #include <sys/security.h>
14267 #include <prot.h>
14268
14269 int
14270 main ()
14271 {
14272 exit(0);
14273   ;
14274   return 0;
14275 }
14276 _ACEOF
14277 if ac_fn_c_try_compile "$LINENO"; then :
14278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14280 else
14281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
14282 $as_echo "yes, fixing locally" >&6; }
14283                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
14284
14285 fi
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287                 # ":DEFAULT" must be appended to _RLD_LIST
14288                 RTLD_PRELOAD_VAR="_RLD_LIST"
14289                 RTLD_PRELOAD_DEFAULT="DEFAULT"
14290                 : ${mansectsu='8'}
14291                 : ${mansectform='4'}
14292                 ;;
14293     *-*-irix*)
14294                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
14295                 if test -z "$NROFFPROG"; then
14296                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14297                         if test -d /usr/share/catman/local; then
14298                             mandir="/usr/share/catman/local"
14299                         else
14300                             mandir="/usr/catman/local"
14301                         fi
14302                     fi
14303                     # Compress cat pages with pack
14304                     MANCOMPRESS='pack'
14305                     MANCOMPRESSEXT='.z'
14306                 else
14307                     if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14308                         if test -d "/usr/share/man/local"; then
14309                             mandir="/usr/share/man/local"
14310                         else
14311                             mandir="/usr/man/local"
14312                         fi
14313                     fi
14314                 fi
14315                 # IRIX <= 4 needs -lsun
14316                 if test "$OSMAJOR" -le 4; then
14317                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14318 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14319 if ${ac_cv_lib_sun_getpwnam+:} false; then :
14320   $as_echo_n "(cached) " >&6
14321 else
14322   ac_check_lib_save_LIBS=$LIBS
14323 LIBS="-lsun  $LIBS"
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h.  */
14326
14327 /* Override any GCC internal prototype to avoid an error.
14328    Use char because int might match the return type of a GCC
14329    builtin and then its argument prototype would still apply.  */
14330 #ifdef __cplusplus
14331 extern "C"
14332 #endif
14333 char getpwnam ();
14334 int
14335 main ()
14336 {
14337 return getpwnam ();
14338   ;
14339   return 0;
14340 }
14341 _ACEOF
14342 if ac_fn_c_try_link "$LINENO"; then :
14343   ac_cv_lib_sun_getpwnam=yes
14344 else
14345   ac_cv_lib_sun_getpwnam=no
14346 fi
14347 rm -f core conftest.err conftest.$ac_objext \
14348     conftest$ac_exeext conftest.$ac_ext
14349 LIBS=$ac_check_lib_save_LIBS
14350 fi
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14352 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14353 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14354   LIBS="${LIBS} -lsun"
14355 fi
14356
14357                 fi
14358                 # ":DEFAULT" must be appended to _RLD_LIST
14359                 RTLD_PRELOAD_VAR="_RLD_LIST"
14360                 RTLD_PRELOAD_DEFAULT="DEFAULT"
14361                 : ${mansectsu='1m'}
14362                 : ${mansectform='4'}
14363                 ;;
14364     *-*-linux*|*-*-k*bsd*-gnu)
14365                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14366                 # Some Linux versions need to link with -lshadow
14367                 shadow_funcs="getspnam"
14368                 shadow_libs_optional="-lshadow"
14369                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14370                 ;;
14371     *-convex-bsd*)
14372                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14373                 if test -z "$GCC"; then
14374                     CFLAGS="${CFLAGS} -D__STDC__"
14375                 fi
14376
14377                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14378                 shadow_funcs="getprpwnam"
14379                 shadow_libs="-lprot"
14380                 ;;
14381     *-*-ultrix*)
14382                 OS="ultrix"
14383                 shadow_funcs="getauthuid"
14384                 shadow_libs="-lauth"
14385                 ;;
14386     *-*-riscos*)
14387                 LIBS="${LIBS} -lsun -lbsd"
14388
14389     case "${CPPFLAGS}" in
14390         *"-I/usr/include"|*"-I/usr/include ")
14391             ;;
14392         *)
14393             if test X"${CPPFLAGS}" = X""; then
14394                 CPPFLAGS="-I/usr/include"
14395             else
14396                 CPPFLAGS="${CPPFLAGS} -I/usr/include"
14397             fi
14398             ;;
14399     esac
14400
14401
14402     case "${CPPFLAGS}" in
14403         *"-I/usr/include/bsd"|*"-I/usr/include/bsd ")
14404             ;;
14405         *)
14406             if test X"${CPPFLAGS}" = X""; then
14407                 CPPFLAGS="-I/usr/include/bsd"
14408             else
14409                 CPPFLAGS="${CPPFLAGS} -I/usr/include/bsd"
14410             fi
14411             ;;
14412     esac
14413
14414                 OSDEFS="${OSDEFS} -D_MIPS"
14415                 : ${mansectsu='1m'}
14416                 : ${mansectform='4'}
14417                 ;;
14418     *-*-isc*)
14419                 OSDEFS="${OSDEFS} -D_ISC"
14420                 LIB_CRYPT=1
14421                 SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14422
14423                 shadow_funcs="getspnam"
14424                 shadow_libs="-lsec"
14425
14426                 : ${mansectsu='1m'}
14427                 : ${mansectform='4'}
14428                 ;;
14429     *-*-sco*|*-sco-*)
14430                 shadow_funcs="getprpwnam"
14431                 shadow_libs="-lprot -lx"
14432                 : ${mansectsu='1m'}
14433                 : ${mansectform='4'}
14434                 ;;
14435     m88k-motorola-sysv*)
14436                 # motorolla's cc (a variant of gcc) does -O but not -O2
14437                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14438                 : ${mansectsu='1m'}
14439                 : ${mansectform='4'}
14440                 ;;
14441     *-sequent-sysv*)
14442                 shadow_funcs="getspnam"
14443                 shadow_libs="-lsec"
14444                 : ${mansectsu='1m'}
14445                 : ${mansectform='4'}
14446                 ;;
14447     *-ncr-sysv4*|*-ncr-sysvr4*)
14448                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14449 $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14450 if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14451   $as_echo_n "(cached) " >&6
14452 else
14453   ac_check_lib_save_LIBS=$LIBS
14454 LIBS="-lc89  $LIBS"
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h.  */
14457
14458 /* Override any GCC internal prototype to avoid an error.
14459    Use char because int might match the return type of a GCC
14460    builtin and then its argument prototype would still apply.  */
14461 #ifdef __cplusplus
14462 extern "C"
14463 #endif
14464 char strcasecmp ();
14465 int
14466 main ()
14467 {
14468 return strcasecmp ();
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 if ac_fn_c_try_link "$LINENO"; then :
14474   ac_cv_lib_c89_strcasecmp=yes
14475 else
14476   ac_cv_lib_c89_strcasecmp=no
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext \
14479     conftest$ac_exeext conftest.$ac_ext
14480 LIBS=$ac_check_lib_save_LIBS
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14483 $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14484 if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14485   LIBS="${LIBS} -lc89"
14486 fi
14487
14488                 : ${mansectsu='1m'}
14489                 : ${mansectform='4'}
14490                 ;;
14491     *-ccur-sysv4*|*-ccur-sysvr4*)
14492                 LIBS="${LIBS} -lgen"
14493                 : ${mansectsu='1m'}
14494                 : ${mansectform='4'}
14495                 ;;
14496     *-*-bsdi*)
14497                 SKIP_SETREUID=yes
14498                 # Check for newer BSD auth API
14499                 if test -z "$with_bsdauth"; then
14500                     for ac_func in auth_challenge
14501 do :
14502   ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14503 if test "x$ac_cv_func_auth_challenge" = xyes; then :
14504   cat >>confdefs.h <<_ACEOF
14505 #define HAVE_AUTH_CHALLENGE 1
14506 _ACEOF
14507  AUTH_EXCL_DEF="BSD_AUTH"
14508 fi
14509 done
14510
14511                 fi
14512                 ;;
14513     *-*-freebsd*)
14514                 # FreeBSD has a real setreuid(2) starting with 2.1 and
14515                 # backported to 2.0.5.  We just take 2.1 and above...
14516                 case "$OSREV" in
14517                 0.*|1.*|2.0*)
14518                     SKIP_SETREUID=yes
14519                     ;;
14520                 esac
14521                 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14522                 if test "${with_skey-'no'}" = "yes"; then
14523                      SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14524                 fi
14525                 CHECKSHADOW="false"
14526                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14527                 : ${with_logincap='maybe'}
14528                 ;;
14529     *-*-*openbsd*)
14530                 # OpenBSD-specific initialization
14531                 OS_INIT=os_init_openbsd
14532                 SUDO_OBJS="${SUDO_OBJS} openbsd.o"
14533
14534                 # OpenBSD has a real setreuid(2) starting with 3.3 but
14535                 # we will use setresuid(2) instead.
14536                 SKIP_SETREUID=yes
14537                 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14538                 CHECKSHADOW="false"
14539                 # OpenBSD >= 3.0 supports BSD auth
14540                 if test -z "$with_bsdauth"; then
14541                     if test "$OSMAJOR" -ge 3; then
14542                         AUTH_EXCL_DEF="BSD_AUTH"
14543                     fi
14544                 fi
14545                 : ${with_logincap='maybe'}
14546                 ;;
14547     *-*-*netbsd*)
14548                 # NetBSD has a real setreuid(2) starting with 1.3.2
14549                 case "$OSREV" in
14550                 0.9*|1.[012]*|1.3|1.3.1)
14551                     SKIP_SETREUID=yes
14552                     ;;
14553                 esac
14554                 CHECKSHADOW="false"
14555                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14556                 : ${with_logincap='maybe'}
14557                 ;;
14558     *-*-dragonfly*)
14559                 OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14560                 if test "${with_skey-'no'}" = "yes"; then
14561                      SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14562                 fi
14563                 CHECKSHADOW="false"
14564                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14565                 : ${with_logincap='yes'}
14566                 ;;
14567     *-*-*bsd*)
14568                 CHECKSHADOW="false"
14569                 ;;
14570     *-*-darwin*)
14571                 # Darwin has a real setreuid(2) starting with 9.0
14572                 if test $OSMAJOR -lt 9; then
14573                     SKIP_SETREUID=yes
14574                 fi
14575                 CHECKSHADOW="false"
14576                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14577                 : ${with_logincap='yes'}
14578                 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14579                 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14580                 ;;
14581     *-*-nextstep*)
14582                 # lockf() on is broken on the NeXT -- use flock instead
14583                 ac_cv_func_lockf=no
14584                 ac_cv_func_flock=yes
14585                 RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14586                 RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14587                 ;;
14588     *-*-*sysv4*)
14589                 : ${mansectsu='1m'}
14590                 : ${mansectform='4'}
14591                 ;;
14592     *-*-sysv*)
14593                 : ${mansectsu='1m'}
14594                 : ${mansectform='4'}
14595                 ;;
14596     *-gnu*)
14597                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14598                 ;;
14599 esac
14600
14601 if test -n "$with_noexec"; then
14602     cat >>confdefs.h <<EOF
14603 #define RTLD_PRELOAD_VAR "$RTLD_PRELOAD_VAR"
14604 EOF
14605
14606     cat >>confdefs.h <<EOF
14607 #define RTLD_PRELOAD_DELIM "$RTLD_PRELOAD_DELIM"
14608 EOF
14609
14610     if test -n "$RTLD_PRELOAD_DEFAULT"; then
14611         cat >>confdefs.h <<EOF
14612 #define RTLD_PRELOAD_DEFAULT "$RTLD_PRELOAD_DEFAULT"
14613 EOF
14614
14615     fi
14616     if test -n "$RTLD_PRELOAD_ENABLE_VAR"; then
14617         cat >>confdefs.h <<EOF
14618 #define RTLD_PRELOAD_ENABLE_VAR "$RTLD_PRELOAD_ENABLE_VAR"
14619 EOF
14620
14621     fi
14622 fi
14623
14624 AUTH_REG=${AUTH_REG# }
14625 AUTH_EXCL=${AUTH_EXCL# }
14626 if test -n "$AUTH_EXCL"; then
14627     set -- $AUTH_EXCL
14628     if test $# != 1; then
14629         as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14630     fi
14631     if test -n "$AUTH_REG"; then
14632         as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14633     fi
14634 fi
14635 if test X"${with_skey}${with_opie}" = X"yesyes"; then
14636     as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14637 fi
14638
14639 : ${mansectsu='8'}
14640 : ${mansectform='5'}
14641
14642 if test -n "$with_libpath"; then
14643     for i in ${with_libpath}; do
14644
14645     case "${LDFLAGS}" in
14646         *"-L$i"|*"-L$i ")
14647             ;;
14648         *)
14649             LDFLAGS="${LDFLAGS} -L$i"
14650             if test X"$enable_rpath" = X"yes"; then
14651                 LDFLAGS_R="${LDFLAGS_R} -R$i"
14652             fi
14653             ;;
14654     esac
14655
14656     done
14657 fi
14658 if test -n "$with_libraries"; then
14659     for i in ${with_libraries}; do
14660         case $i in
14661             -l*)        ;;
14662             *.a)        ;;
14663             *.o)        ;;
14664             *)  i="-l${i}";;
14665         esac
14666         LIBS="${LIBS} ${i}"
14667     done
14668 fi
14669
14670 if test $ac_cv_c_compiler_gnu = yes; then
14671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14672 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14673 if ${ac_cv_prog_gcc_traditional+:} false; then :
14674   $as_echo_n "(cached) " >&6
14675 else
14676     ac_pattern="Autoconf.*'x'"
14677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h.  */
14679 #include <sgtty.h>
14680 Autoconf TIOCGETP
14681 _ACEOF
14682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14683   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14684   ac_cv_prog_gcc_traditional=yes
14685 else
14686   ac_cv_prog_gcc_traditional=no
14687 fi
14688 rm -f conftest*
14689
14690
14691   if test $ac_cv_prog_gcc_traditional = no; then
14692     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h.  */
14694 #include <termio.h>
14695 Autoconf TCGETA
14696 _ACEOF
14697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14698   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14699   ac_cv_prog_gcc_traditional=yes
14700 fi
14701 rm -f conftest*
14702
14703   fi
14704 fi
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14706 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14707   if test $ac_cv_prog_gcc_traditional = yes; then
14708     CC="$CC -traditional"
14709   fi
14710 fi
14711
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14713 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14714 if ${ac_cv_c_const+:} false; then :
14715   $as_echo_n "(cached) " >&6
14716 else
14717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h.  */
14719
14720 int
14721 main ()
14722 {
14723 /* FIXME: Include the comments suggested by Paul. */
14724 #ifndef __cplusplus
14725   /* Ultrix mips cc rejects this.  */
14726   typedef int charset[2];
14727   const charset cs;
14728   /* SunOS 4.1.1 cc rejects this.  */
14729   char const *const *pcpcc;
14730   char **ppc;
14731   /* NEC SVR4.0.2 mips cc rejects this.  */
14732   struct point {int x, y;};
14733   static struct point const zero = {0,0};
14734   /* AIX XL C 1.02.0.0 rejects this.
14735      It does not let you subtract one const X* pointer from another in
14736      an arm of an if-expression whose if-part is not a constant
14737      expression */
14738   const char *g = "string";
14739   pcpcc = &g + (g ? g-g : 0);
14740   /* HPUX 7.0 cc rejects these. */
14741   ++pcpcc;
14742   ppc = (char**) pcpcc;
14743   pcpcc = (char const *const *) ppc;
14744   { /* SCO 3.2v4 cc rejects this.  */
14745     char *t;
14746     char const *s = 0 ? (char *) 0 : (char const *) 0;
14747
14748     *t++ = 0;
14749     if (s) return 0;
14750   }
14751   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14752     int x[] = {25, 17};
14753     const int *foo = &x[0];
14754     ++foo;
14755   }
14756   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14757     typedef const int *iptr;
14758     iptr p = 0;
14759     ++p;
14760   }
14761   { /* AIX XL C 1.02.0.0 rejects this saying
14762        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14763     struct s { int j; const int *ap[3]; };
14764     struct s *b; b->j = 5;
14765   }
14766   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14767     const int foo = 10;
14768     if (!foo) return 0;
14769   }
14770   return !cs[0] && !zero.x;
14771 #endif
14772
14773   ;
14774   return 0;
14775 }
14776 _ACEOF
14777 if ac_fn_c_try_compile "$LINENO"; then :
14778   ac_cv_c_const=yes
14779 else
14780   ac_cv_c_const=no
14781 fi
14782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783 fi
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14785 $as_echo "$ac_cv_c_const" >&6; }
14786 if test $ac_cv_c_const = no; then
14787
14788 $as_echo "#define const /**/" >>confdefs.h
14789
14790 fi
14791
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14793 $as_echo_n "checking for working volatile... " >&6; }
14794 if ${ac_cv_c_volatile+:} false; then :
14795   $as_echo_n "(cached) " >&6
14796 else
14797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h.  */
14799
14800 int
14801 main ()
14802 {
14803
14804 volatile int x;
14805 int * volatile y = (int *) 0;
14806 return !x && !y;
14807   ;
14808   return 0;
14809 }
14810 _ACEOF
14811 if ac_fn_c_try_compile "$LINENO"; then :
14812   ac_cv_c_volatile=yes
14813 else
14814   ac_cv_c_volatile=no
14815 fi
14816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14817 fi
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14819 $as_echo "$ac_cv_c_volatile" >&6; }
14820 if test $ac_cv_c_volatile = no; then
14821
14822 $as_echo "#define volatile /**/" >>confdefs.h
14823
14824 fi
14825
14826 # Check for variadic macro support in cpp
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h.  */
14829
14830 $ac_includes_default
14831 #if defined(__GNUC__) && __GNUC__ == 2
14832 # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
14833 #else
14834 # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
14835 #endif
14836
14837 int
14838 main ()
14839 {
14840 sudo_fprintf(stderr, "a %s", "test");
14841   ;
14842   return 0;
14843 }
14844 _ACEOF
14845 if ac_fn_c_try_compile "$LINENO"; then :
14846
14847 else
14848   as_fn_error $? "Your C compiler doesn't support variadic macros, try building with gcc instead" "$LINENO" 5
14849 fi
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851
14852 for ac_prog in 'bison -y' byacc
14853 do
14854   # Extract the first word of "$ac_prog", so it can be a program name with args.
14855 set dummy $ac_prog; ac_word=$2
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14857 $as_echo_n "checking for $ac_word... " >&6; }
14858 if ${ac_cv_prog_YACC+:} false; then :
14859   $as_echo_n "(cached) " >&6
14860 else
14861   if test -n "$YACC"; then
14862   ac_cv_prog_YACC="$YACC" # Let the user override the test.
14863 else
14864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14865 for as_dir in $PATH
14866 do
14867   IFS=$as_save_IFS
14868   test -z "$as_dir" && as_dir=.
14869     for ac_exec_ext in '' $ac_executable_extensions; do
14870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14871     ac_cv_prog_YACC="$ac_prog"
14872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14873     break 2
14874   fi
14875 done
14876   done
14877 IFS=$as_save_IFS
14878
14879 fi
14880 fi
14881 YACC=$ac_cv_prog_YACC
14882 if test -n "$YACC"; then
14883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14884 $as_echo "$YACC" >&6; }
14885 else
14886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14887 $as_echo "no" >&6; }
14888 fi
14889
14890
14891   test -n "$YACC" && break
14892 done
14893 test -n "$YACC" || YACC="yacc"
14894
14895 # Extract the first word of "flex", so it can be a program name with args.
14896 set dummy flex; ac_word=$2
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14898 $as_echo_n "checking for $ac_word... " >&6; }
14899 if ${ac_cv_path_FLEX+:} false; then :
14900   $as_echo_n "(cached) " >&6
14901 else
14902   case $FLEX in
14903   [\\/]* | ?:[\\/]*)
14904   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14905   ;;
14906   *)
14907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14908 for as_dir in $PATH
14909 do
14910   IFS=$as_save_IFS
14911   test -z "$as_dir" && as_dir=.
14912     for ac_exec_ext in '' $ac_executable_extensions; do
14913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14914     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14916     break 2
14917   fi
14918 done
14919   done
14920 IFS=$as_save_IFS
14921
14922   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14923   ;;
14924 esac
14925 fi
14926 FLEX=$ac_cv_path_FLEX
14927 if test -n "$FLEX"; then
14928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14929 $as_echo "$FLEX" >&6; }
14930 else
14931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932 $as_echo "no" >&6; }
14933 fi
14934
14935
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14937 $as_echo_n "checking for mv... " >&6; }
14938 found=no
14939 for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14940     if test -f "$p"; then
14941         found=yes
14942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14943 $as_echo "$p" >&6; }
14944         cat >>confdefs.h <<EOF
14945 #define _PATH_MV "$p"
14946 EOF
14947
14948         break
14949     fi
14950 done
14951 if test X"$found" != X"yes"; then
14952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14953 $as_echo "not found" >&6; }
14954 fi
14955
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14957 $as_echo_n "checking for bourne shell... " >&6; }
14958 found=no
14959 for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14960     if test -f "$p"; then
14961         found=yes
14962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14963 $as_echo "$p" >&6; }
14964         cat >>confdefs.h <<EOF
14965 #define _PATH_BSHELL "$p"
14966 EOF
14967
14968         break
14969     fi
14970 done
14971 if test X"$found" != X"yes"; then
14972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14973 $as_echo "not found" >&6; }
14974 fi
14975
14976 if test -z "$with_sendmail"; then
14977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14978 $as_echo_n "checking for sendmail... " >&6; }
14979 found=no
14980 for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14981     if test -f "$p"; then
14982         found=yes
14983         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14984 $as_echo "$p" >&6; }
14985         cat >>confdefs.h <<EOF
14986 #define _PATH_SUDO_SENDMAIL "$p"
14987 EOF
14988
14989         break
14990     fi
14991 done
14992 if test X"$found" != X"yes"; then
14993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14994 $as_echo "not found" >&6; }
14995 fi
14996
14997 fi
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14999 $as_echo_n "checking for vi... " >&6; }
15000 found=no
15001 for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
15002     if test -f "$editor"; then
15003         found=yes
15004         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
15005 $as_echo "$editor" >&6; }
15006         cat >>confdefs.h <<EOF
15007 #define _PATH_VI "$editor"
15008 EOF
15009
15010         break
15011     fi
15012 done
15013 if test X"$found" != X"yes"; then
15014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15015 $as_echo "not found" >&6; }
15016 fi
15017
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
15019 $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
15020 if test X"$with_logfac" = X""; then
15021     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h.  */
15023 #include <syslog.h>
15024 int
15025 main ()
15026 {
15027 int i = LOG_AUTHPRIV; (void)i;
15028   ;
15029   return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_c_try_compile "$LINENO"; then :
15033   logfac=authpriv
15034 fi
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15036 fi
15037
15038 cat >>confdefs.h <<_ACEOF
15039 #define LOGFAC "$logfac"
15040 _ACEOF
15041
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
15043 $as_echo "$logfac" >&6; }
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15045 $as_echo_n "checking for ANSI C header files... " >&6; }
15046 if ${ac_cv_header_stdc+:} false; then :
15047   $as_echo_n "(cached) " >&6
15048 else
15049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h.  */
15051 #include <stdlib.h>
15052 #include <stdarg.h>
15053 #include <string.h>
15054 #include <float.h>
15055
15056 int
15057 main ()
15058 {
15059
15060   ;
15061   return 0;
15062 }
15063 _ACEOF
15064 if ac_fn_c_try_compile "$LINENO"; then :
15065   ac_cv_header_stdc=yes
15066 else
15067   ac_cv_header_stdc=no
15068 fi
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070
15071 if test $ac_cv_header_stdc = yes; then
15072   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h.  */
15075 #include <string.h>
15076
15077 _ACEOF
15078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15079   $EGREP "memchr" >/dev/null 2>&1; then :
15080
15081 else
15082   ac_cv_header_stdc=no
15083 fi
15084 rm -f conftest*
15085
15086 fi
15087
15088 if test $ac_cv_header_stdc = yes; then
15089   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h.  */
15092 #include <stdlib.h>
15093
15094 _ACEOF
15095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15096   $EGREP "free" >/dev/null 2>&1; then :
15097
15098 else
15099   ac_cv_header_stdc=no
15100 fi
15101 rm -f conftest*
15102
15103 fi
15104
15105 if test $ac_cv_header_stdc = yes; then
15106   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15107   if test "$cross_compiling" = yes; then :
15108   :
15109 else
15110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h.  */
15112 #include <ctype.h>
15113 #include <stdlib.h>
15114 #if ((' ' & 0x0FF) == 0x020)
15115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15117 #else
15118 # define ISLOWER(c) \
15119                    (('a' <= (c) && (c) <= 'i') \
15120                      || ('j' <= (c) && (c) <= 'r') \
15121                      || ('s' <= (c) && (c) <= 'z'))
15122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15123 #endif
15124
15125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15126 int
15127 main ()
15128 {
15129   int i;
15130   for (i = 0; i < 256; i++)
15131     if (XOR (islower (i), ISLOWER (i))
15132         || toupper (i) != TOUPPER (i))
15133       return 2;
15134   return 0;
15135 }
15136 _ACEOF
15137 if ac_fn_c_try_run "$LINENO"; then :
15138
15139 else
15140   ac_cv_header_stdc=no
15141 fi
15142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15143   conftest.$ac_objext conftest.beam conftest.$ac_ext
15144 fi
15145
15146 fi
15147 fi
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15149 $as_echo "$ac_cv_header_stdc" >&6; }
15150 if test $ac_cv_header_stdc = yes; then
15151
15152 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15153
15154 fi
15155
15156 ac_header_dirent=no
15157 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15158   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15160 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15161 if eval \${$as_ac_Header+:} false; then :
15162   $as_echo_n "(cached) " >&6
15163 else
15164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h.  */
15166 #include <sys/types.h>
15167 #include <$ac_hdr>
15168
15169 int
15170 main ()
15171 {
15172 if ((DIR *) 0)
15173 return 0;
15174   ;
15175   return 0;
15176 }
15177 _ACEOF
15178 if ac_fn_c_try_compile "$LINENO"; then :
15179   eval "$as_ac_Header=yes"
15180 else
15181   eval "$as_ac_Header=no"
15182 fi
15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15184 fi
15185 eval ac_res=\$$as_ac_Header
15186                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15187 $as_echo "$ac_res" >&6; }
15188 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15189   cat >>confdefs.h <<_ACEOF
15190 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15191 _ACEOF
15192
15193 ac_header_dirent=$ac_hdr; break
15194 fi
15195
15196 done
15197 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15198 if test $ac_header_dirent = dirent.h; then
15199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15200 $as_echo_n "checking for library containing opendir... " >&6; }
15201 if ${ac_cv_search_opendir+:} false; then :
15202   $as_echo_n "(cached) " >&6
15203 else
15204   ac_func_search_save_LIBS=$LIBS
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h.  */
15207
15208 /* Override any GCC internal prototype to avoid an error.
15209    Use char because int might match the return type of a GCC
15210    builtin and then its argument prototype would still apply.  */
15211 #ifdef __cplusplus
15212 extern "C"
15213 #endif
15214 char opendir ();
15215 int
15216 main ()
15217 {
15218 return opendir ();
15219   ;
15220   return 0;
15221 }
15222 _ACEOF
15223 for ac_lib in '' dir; do
15224   if test -z "$ac_lib"; then
15225     ac_res="none required"
15226   else
15227     ac_res=-l$ac_lib
15228     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15229   fi
15230   if ac_fn_c_try_link "$LINENO"; then :
15231   ac_cv_search_opendir=$ac_res
15232 fi
15233 rm -f core conftest.err conftest.$ac_objext \
15234     conftest$ac_exeext
15235   if ${ac_cv_search_opendir+:} false; then :
15236   break
15237 fi
15238 done
15239 if ${ac_cv_search_opendir+:} false; then :
15240
15241 else
15242   ac_cv_search_opendir=no
15243 fi
15244 rm conftest.$ac_ext
15245 LIBS=$ac_func_search_save_LIBS
15246 fi
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15248 $as_echo "$ac_cv_search_opendir" >&6; }
15249 ac_res=$ac_cv_search_opendir
15250 if test "$ac_res" != no; then :
15251   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15252
15253 fi
15254
15255 else
15256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15257 $as_echo_n "checking for library containing opendir... " >&6; }
15258 if ${ac_cv_search_opendir+:} false; then :
15259   $as_echo_n "(cached) " >&6
15260 else
15261   ac_func_search_save_LIBS=$LIBS
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h.  */
15264
15265 /* Override any GCC internal prototype to avoid an error.
15266    Use char because int might match the return type of a GCC
15267    builtin and then its argument prototype would still apply.  */
15268 #ifdef __cplusplus
15269 extern "C"
15270 #endif
15271 char opendir ();
15272 int
15273 main ()
15274 {
15275 return opendir ();
15276   ;
15277   return 0;
15278 }
15279 _ACEOF
15280 for ac_lib in '' x; do
15281   if test -z "$ac_lib"; then
15282     ac_res="none required"
15283   else
15284     ac_res=-l$ac_lib
15285     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15286   fi
15287   if ac_fn_c_try_link "$LINENO"; then :
15288   ac_cv_search_opendir=$ac_res
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext \
15291     conftest$ac_exeext
15292   if ${ac_cv_search_opendir+:} false; then :
15293   break
15294 fi
15295 done
15296 if ${ac_cv_search_opendir+:} false; then :
15297
15298 else
15299   ac_cv_search_opendir=no
15300 fi
15301 rm conftest.$ac_ext
15302 LIBS=$ac_func_search_save_LIBS
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15305 $as_echo "$ac_cv_search_opendir" >&6; }
15306 ac_res=$ac_cv_search_opendir
15307 if test "$ac_res" != no; then :
15308   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15309
15310 fi
15311
15312 fi
15313
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15315 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15316 if ${ac_cv_header_time+:} false; then :
15317   $as_echo_n "(cached) " >&6
15318 else
15319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h.  */
15321 #include <sys/types.h>
15322 #include <sys/time.h>
15323 #include <time.h>
15324
15325 int
15326 main ()
15327 {
15328 if ((struct tm *) 0)
15329 return 0;
15330   ;
15331   return 0;
15332 }
15333 _ACEOF
15334 if ac_fn_c_try_compile "$LINENO"; then :
15335   ac_cv_header_time=yes
15336 else
15337   ac_cv_header_time=no
15338 fi
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340 fi
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15342 $as_echo "$ac_cv_header_time" >&6; }
15343 if test $ac_cv_header_time = yes; then
15344
15345 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15346
15347 fi
15348
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15350 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15351 if ${ac_cv_header_stdbool_h+:} false; then :
15352   $as_echo_n "(cached) " >&6
15353 else
15354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h.  */
15356
15357 #include <stdbool.h>
15358 #ifndef bool
15359  "error: bool is not defined"
15360 #endif
15361 #ifndef false
15362  "error: false is not defined"
15363 #endif
15364 #if false
15365  "error: false is not 0"
15366 #endif
15367 #ifndef true
15368  "error: true is not defined"
15369 #endif
15370 #if true != 1
15371  "error: true is not 1"
15372 #endif
15373 #ifndef __bool_true_false_are_defined
15374  "error: __bool_true_false_are_defined is not defined"
15375 #endif
15376
15377         struct s { _Bool s: 1; _Bool t; } s;
15378
15379         char a[true == 1 ? 1 : -1];
15380         char b[false == 0 ? 1 : -1];
15381         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15382         char d[(bool) 0.5 == true ? 1 : -1];
15383         /* See body of main program for 'e'.  */
15384         char f[(_Bool) 0.0 == false ? 1 : -1];
15385         char g[true];
15386         char h[sizeof (_Bool)];
15387         char i[sizeof s.t];
15388         enum { j = false, k = true, l = false * true, m = true * 256 };
15389         /* The following fails for
15390            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15391         _Bool n[m];
15392         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15393         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15394         /* Catch a bug in an HP-UX C compiler.  See
15395            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15396            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15397          */
15398         _Bool q = true;
15399         _Bool *pq = &q;
15400
15401 int
15402 main ()
15403 {
15404
15405         bool e = &s;
15406         *pq |= q;
15407         *pq |= ! q;
15408         /* Refer to every declared value, to avoid compiler optimizations.  */
15409         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15410                 + !m + !n + !o + !p + !q + !pq);
15411
15412   ;
15413   return 0;
15414 }
15415 _ACEOF
15416 if ac_fn_c_try_compile "$LINENO"; then :
15417   ac_cv_header_stdbool_h=yes
15418 else
15419   ac_cv_header_stdbool_h=no
15420 fi
15421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422 fi
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15424 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15425 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15426 if test "x$ac_cv_type__Bool" = xyes; then :
15427
15428 cat >>confdefs.h <<_ACEOF
15429 #define HAVE__BOOL 1
15430 _ACEOF
15431
15432
15433 fi
15434
15435 if test $ac_cv_header_stdbool_h = yes; then
15436
15437 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15438
15439 fi
15440
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
15442 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
15443 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
15444   $as_echo_n "(cached) " >&6
15445 else
15446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h.  */
15448 #include <sys/types.h>
15449 int
15450 main ()
15451 {
15452 return makedev(0, 0);
15453   ;
15454   return 0;
15455 }
15456 _ACEOF
15457 if ac_fn_c_try_link "$LINENO"; then :
15458   ac_cv_header_sys_types_h_makedev=yes
15459 else
15460   ac_cv_header_sys_types_h_makedev=no
15461 fi
15462 rm -f core conftest.err conftest.$ac_objext \
15463     conftest$ac_exeext conftest.$ac_ext
15464
15465 fi
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
15467 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
15468
15469 if test $ac_cv_header_sys_types_h_makedev = no; then
15470 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
15471 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
15472
15473 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
15474
15475 fi
15476
15477
15478
15479   if test $ac_cv_header_sys_mkdev_h = no; then
15480     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
15481 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
15482
15483 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
15484
15485 fi
15486
15487
15488   fi
15489 fi
15490
15491 for ac_header in malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15492 do :
15493   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15494 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15496   cat >>confdefs.h <<_ACEOF
15497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15498 _ACEOF
15499
15500 fi
15501
15502 done
15503
15504 for ac_header in endian.h sys/endian.h machine/endian.h
15505 do :
15506   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15507 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15509   cat >>confdefs.h <<_ACEOF
15510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15511 _ACEOF
15512  break
15513 fi
15514
15515 done
15516
15517 for ac_header in procfs.h sys/procfs.h
15518 do :
15519   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15520 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15522   cat >>confdefs.h <<_ACEOF
15523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15524 _ACEOF
15525  ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default
15526 #ifdef HAVE_PROCFS_H
15527 #include <procfs.h>
15528 #endif
15529 #ifdef HAVE_SYS_PROCFS_H
15530 #include <sys/procfs.h>
15531 #endif
15532
15533 "
15534 if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes; then :
15535
15536 cat >>confdefs.h <<_ACEOF
15537 #define HAVE_STRUCT_PSINFO_PR_TTYDEV 1
15538 _ACEOF
15539
15540 for ac_func in _ttyname_dev
15541 do :
15542   ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev"
15543 if test "x$ac_cv_func__ttyname_dev" = xyes; then :
15544   cat >>confdefs.h <<_ACEOF
15545 #define HAVE__TTYNAME_DEV 1
15546 _ACEOF
15547
15548 fi
15549 done
15550
15551 fi
15552
15553 break
15554 fi
15555
15556 done
15557
15558 # Check whether --enable-largefile was given.
15559 if test "${enable_largefile+set}" = set; then :
15560   enableval=$enable_largefile;
15561 fi
15562
15563 if test "$enable_largefile" != no; then
15564
15565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15566 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15567 if ${ac_cv_sys_largefile_CC+:} false; then :
15568   $as_echo_n "(cached) " >&6
15569 else
15570   ac_cv_sys_largefile_CC=no
15571      if test "$GCC" != yes; then
15572        ac_save_CC=$CC
15573        while :; do
15574          # IRIX 6.2 and later do not support large files by default,
15575          # so use the C compiler's -n32 option if that helps.
15576          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h.  */
15578 #include <sys/types.h>
15579  /* Check that off_t can represent 2**63 - 1 correctly.
15580     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15581     since some C++ compilers masquerading as C compilers
15582     incorrectly reject 9223372036854775807.  */
15583 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15584   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15585                        && LARGE_OFF_T % 2147483647 == 1)
15586                       ? 1 : -1];
15587 int
15588 main ()
15589 {
15590
15591   ;
15592   return 0;
15593 }
15594 _ACEOF
15595          if ac_fn_c_try_compile "$LINENO"; then :
15596   break
15597 fi
15598 rm -f core conftest.err conftest.$ac_objext
15599          CC="$CC -n32"
15600          if ac_fn_c_try_compile "$LINENO"; then :
15601   ac_cv_sys_largefile_CC=' -n32'; break
15602 fi
15603 rm -f core conftest.err conftest.$ac_objext
15604          break
15605        done
15606        CC=$ac_save_CC
15607        rm -f conftest.$ac_ext
15608     fi
15609 fi
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15611 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15612   if test "$ac_cv_sys_largefile_CC" != no; then
15613     CC=$CC$ac_cv_sys_largefile_CC
15614   fi
15615
15616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15617 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15618 if ${ac_cv_sys_file_offset_bits+:} false; then :
15619   $as_echo_n "(cached) " >&6
15620 else
15621   while :; do
15622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h.  */
15624 #include <sys/types.h>
15625  /* Check that off_t can represent 2**63 - 1 correctly.
15626     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15627     since some C++ compilers masquerading as C compilers
15628     incorrectly reject 9223372036854775807.  */
15629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15630   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15631                        && LARGE_OFF_T % 2147483647 == 1)
15632                       ? 1 : -1];
15633 int
15634 main ()
15635 {
15636
15637   ;
15638   return 0;
15639 }
15640 _ACEOF
15641 if ac_fn_c_try_compile "$LINENO"; then :
15642   ac_cv_sys_file_offset_bits=no; break
15643 fi
15644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h.  */
15647 #define _FILE_OFFSET_BITS 64
15648 #include <sys/types.h>
15649  /* Check that off_t can represent 2**63 - 1 correctly.
15650     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15651     since some C++ compilers masquerading as C compilers
15652     incorrectly reject 9223372036854775807.  */
15653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15654   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15655                        && LARGE_OFF_T % 2147483647 == 1)
15656                       ? 1 : -1];
15657 int
15658 main ()
15659 {
15660
15661   ;
15662   return 0;
15663 }
15664 _ACEOF
15665 if ac_fn_c_try_compile "$LINENO"; then :
15666   ac_cv_sys_file_offset_bits=64; break
15667 fi
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669   ac_cv_sys_file_offset_bits=unknown
15670   break
15671 done
15672 fi
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15674 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15675 case $ac_cv_sys_file_offset_bits in #(
15676   no | unknown) ;;
15677   *)
15678 cat >>confdefs.h <<_ACEOF
15679 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15680 _ACEOF
15681 ;;
15682 esac
15683 rm -rf conftest*
15684   if test $ac_cv_sys_file_offset_bits = unknown; then
15685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15686 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15687 if ${ac_cv_sys_large_files+:} false; then :
15688   $as_echo_n "(cached) " >&6
15689 else
15690   while :; do
15691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h.  */
15693 #include <sys/types.h>
15694  /* Check that off_t can represent 2**63 - 1 correctly.
15695     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15696     since some C++ compilers masquerading as C compilers
15697     incorrectly reject 9223372036854775807.  */
15698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15699   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15700                        && LARGE_OFF_T % 2147483647 == 1)
15701                       ? 1 : -1];
15702 int
15703 main ()
15704 {
15705
15706   ;
15707   return 0;
15708 }
15709 _ACEOF
15710 if ac_fn_c_try_compile "$LINENO"; then :
15711   ac_cv_sys_large_files=no; break
15712 fi
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h.  */
15716 #define _LARGE_FILES 1
15717 #include <sys/types.h>
15718  /* Check that off_t can represent 2**63 - 1 correctly.
15719     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15720     since some C++ compilers masquerading as C compilers
15721     incorrectly reject 9223372036854775807.  */
15722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15723   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15724                        && LARGE_OFF_T % 2147483647 == 1)
15725                       ? 1 : -1];
15726 int
15727 main ()
15728 {
15729
15730   ;
15731   return 0;
15732 }
15733 _ACEOF
15734 if ac_fn_c_try_compile "$LINENO"; then :
15735   ac_cv_sys_large_files=1; break
15736 fi
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738   ac_cv_sys_large_files=unknown
15739   break
15740 done
15741 fi
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15743 $as_echo "$ac_cv_sys_large_files" >&6; }
15744 case $ac_cv_sys_large_files in #(
15745   no | unknown) ;;
15746   *)
15747 cat >>confdefs.h <<_ACEOF
15748 #define _LARGE_FILES $ac_cv_sys_large_files
15749 _ACEOF
15750 ;;
15751 esac
15752 rm -rf conftest*
15753   fi
15754 fi
15755
15756 case "$host_os" in
15757     hpux11.*)
15758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15759 $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15760 if ${sudo_cv_xopen_source_extended+:} false; then :
15761   $as_echo_n "(cached) " >&6
15762 else
15763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h.  */
15765 $ac_includes_default
15766         #include <sys/socket.h>
15767 int
15768 main ()
15769 {
15770
15771   ;
15772   return 0;
15773 }
15774 _ACEOF
15775 if ac_fn_c_try_compile "$LINENO"; then :
15776   sudo_cv_xopen_source_extended=no
15777 else
15778
15779             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h.  */
15781 #define _XOPEN_SOURCE_EXTENDED
15782             $ac_includes_default
15783             #include <sys/socket.h>
15784 int
15785 main ()
15786 {
15787
15788   ;
15789   return 0;
15790 }
15791 _ACEOF
15792 if ac_fn_c_try_compile "$LINENO"; then :
15793   sudo_cv_xopen_source_extended=yes
15794 else
15795   sudo_cv_xopen_source_extended=error
15796 fi
15797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15798
15799 fi
15800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15801 fi
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15803 $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15804         if test "$sudo_cv_xopen_source_extended" = "yes"; then
15805             OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15806             cat >>confdefs.h <<\EOF
15807 #define _XOPEN_SOURCE_EXTENDED 1
15808 EOF
15809
15810         fi
15811         ;;
15812 esac
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15814 $as_echo_n "checking POSIX termios... " >&6; }
15815 if ${ac_cv_sys_posix_termios+:} false; then :
15816   $as_echo_n "(cached) " >&6
15817 else
15818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h.  */
15820 #include <sys/types.h>
15821 #include <unistd.h>
15822 #include <termios.h>
15823
15824 int
15825 main ()
15826 {
15827 /* SunOS 4.0.3 has termios.h but not the library calls.  */
15828    tcgetattr(0, 0);
15829   ;
15830   return 0;
15831 }
15832 _ACEOF
15833 if ac_fn_c_try_link "$LINENO"; then :
15834   ac_cv_sys_posix_termios=yes
15835 else
15836   ac_cv_sys_posix_termios=no
15837 fi
15838 rm -f core conftest.err conftest.$ac_objext \
15839     conftest$ac_exeext conftest.$ac_ext
15840 fi
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15842 $as_echo "$ac_cv_sys_posix_termios" >&6; }
15843
15844 if test "$ac_cv_sys_posix_termios" != "yes"; then
15845     as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15846 fi
15847
15848 maildir=no
15849 if test X"$ac_cv_header_paths_h" = X"yes"; then
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h.  */
15852 $ac_includes_default
15853 #include <paths.h>
15854 int
15855 main ()
15856 {
15857 char *p = _PATH_MAILDIR;
15858   ;
15859   return 0;
15860 }
15861 _ACEOF
15862 if ac_fn_c_try_compile "$LINENO"; then :
15863   maildir=yes
15864 fi
15865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866 fi
15867 if test $maildir = no; then
15868     # Solaris has maillock.h which defines MAILDIR
15869     for ac_header in maillock.h
15870 do :
15871   ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15872 if test "x$ac_cv_header_maillock_h" = xyes; then :
15873   cat >>confdefs.h <<_ACEOF
15874 #define HAVE_MAILLOCK_H 1
15875 _ACEOF
15876
15877         cat >>confdefs.h <<\EOF
15878 #define _PATH_MAILDIR MAILDIR
15879 EOF
15880
15881         maildir=yes
15882
15883 fi
15884
15885 done
15886
15887     if test $maildir = no; then
15888         for d in /var/mail /var/spool/mail /usr/spool/mail; do
15889             if test -d "$d"; then
15890                 maildir=yes
15891                 cat >>confdefs.h <<EOF
15892 #define _PATH_MAILDIR "$d"
15893 EOF
15894
15895                 break
15896             fi
15897         done
15898         if test $maildir = no; then
15899             # unable to find mail dir, hope for the best
15900             cat >>confdefs.h <<EOF
15901 #define _PATH_MAILDIR "/var/mail"
15902 EOF
15903
15904         fi
15905     fi
15906 fi
15907
15908 if test ${with_logincap-'no'} != "no"; then
15909     for ac_header in login_cap.h
15910 do :
15911   ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15912 if test "x$ac_cv_header_login_cap_h" = xyes; then :
15913   cat >>confdefs.h <<_ACEOF
15914 #define HAVE_LOGIN_CAP_H 1
15915 _ACEOF
15916  LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15917         case "$OS" in
15918             freebsd|netbsd)
15919                 SUDO_LIBS="${SUDO_LIBS} -lutil"
15920                 SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15921                 ;;
15922         esac
15923
15924 fi
15925
15926 done
15927
15928 fi
15929 if test ${with_project-'no'} != "no"; then
15930     ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15931 if test "x$ac_cv_header_project_h" = xyes; then :
15932
15933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15934 $as_echo_n "checking for setproject in -lproject... " >&6; }
15935 if ${ac_cv_lib_project_setproject+:} false; then :
15936   $as_echo_n "(cached) " >&6
15937 else
15938   ac_check_lib_save_LIBS=$LIBS
15939 LIBS="-lproject  $LIBS"
15940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h.  */
15942
15943 /* Override any GCC internal prototype to avoid an error.
15944    Use char because int might match the return type of a GCC
15945    builtin and then its argument prototype would still apply.  */
15946 #ifdef __cplusplus
15947 extern "C"
15948 #endif
15949 char setproject ();
15950 int
15951 main ()
15952 {
15953 return setproject ();
15954   ;
15955   return 0;
15956 }
15957 _ACEOF
15958 if ac_fn_c_try_link "$LINENO"; then :
15959   ac_cv_lib_project_setproject=yes
15960 else
15961   ac_cv_lib_project_setproject=no
15962 fi
15963 rm -f core conftest.err conftest.$ac_objext \
15964     conftest$ac_exeext conftest.$ac_ext
15965 LIBS=$ac_check_lib_save_LIBS
15966 fi
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15968 $as_echo "$ac_cv_lib_project_setproject" >&6; }
15969 if test "x$ac_cv_lib_project_setproject" = xyes; then :
15970
15971             $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15972
15973             SUDO_LIBS="${SUDO_LIBS} -lproject"
15974
15975 fi
15976
15977
15978 fi
15979
15980
15981 fi
15982 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15983 if test "x$ac_cv_type_mode_t" = xyes; then :
15984
15985 else
15986
15987 cat >>confdefs.h <<_ACEOF
15988 #define mode_t int
15989 _ACEOF
15990
15991 fi
15992
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15994 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15995 if ${ac_cv_type_uid_t+:} false; then :
15996   $as_echo_n "(cached) " >&6
15997 else
15998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h.  */
16000 #include <sys/types.h>
16001
16002 _ACEOF
16003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16004   $EGREP "uid_t" >/dev/null 2>&1; then :
16005   ac_cv_type_uid_t=yes
16006 else
16007   ac_cv_type_uid_t=no
16008 fi
16009 rm -f conftest*
16010
16011 fi
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16013 $as_echo "$ac_cv_type_uid_t" >&6; }
16014 if test $ac_cv_type_uid_t = no; then
16015
16016 $as_echo "#define uid_t int" >>confdefs.h
16017
16018
16019 $as_echo "#define gid_t int" >>confdefs.h
16020
16021 fi
16022
16023 ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
16024 if test "x$ac_cv_type___signed_char" = xyes; then :
16025
16026 else
16027   ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
16028 if test "x$ac_cv_type_signed_char" = xyes; then :
16029   $as_echo "#define __signed signed" >>confdefs.h
16030
16031 else
16032   $as_echo "#define __signed /**/" >>confdefs.h
16033
16034 fi
16035
16036 fi
16037
16038 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
16039 #include <signal.h>
16040 "
16041 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
16042
16043 else
16044   $as_echo "#define sig_atomic_t int" >>confdefs.h
16045
16046 fi
16047
16048 ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
16049 #include <signal.h>
16050 "
16051 if test "x$ac_cv_type_sigaction_t" = xyes; then :
16052
16053 cat >>confdefs.h <<_ACEOF
16054 #define HAVE_SIGACTION_T 1
16055 _ACEOF
16056
16057
16058 fi
16059
16060 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
16061 #if TIME_WITH_SYS_TIME
16062 # include <sys/time.h>
16063 #endif
16064 #include <time.h>
16065 "
16066 if test "x$ac_cv_type_struct_timespec" = xyes; then :
16067
16068 cat >>confdefs.h <<_ACEOF
16069 #define HAVE_STRUCT_TIMESPEC 1
16070 _ACEOF
16071
16072
16073 fi
16074
16075 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
16076 #include <netinet/in.h>
16077 "
16078 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
16079
16080 cat >>confdefs.h <<_ACEOF
16081 #define HAVE_STRUCT_IN6_ADDR 1
16082 _ACEOF
16083
16084
16085 fi
16086
16087
16088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16089 $as_echo_n "checking for long long int... " >&6; }
16090 if ${ac_cv_type_long_long_int+:} false; then :
16091   $as_echo_n "(cached) " >&6
16092 else
16093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h.  */
16095
16096   /* For now, do not test the preprocessor; as of 2007 there are too many
16097          implementations with broken preprocessors.  Perhaps this can
16098          be revisited in 2012.  In the meantime, code should not expect
16099          #if to work with literals wider than 32 bits.  */
16100       /* Test literals.  */
16101       long long int ll = 9223372036854775807ll;
16102       long long int nll = -9223372036854775807LL;
16103       unsigned long long int ull = 18446744073709551615ULL;
16104       /* Test constant expressions.   */
16105       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16106                      ? 1 : -1)];
16107       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16108                      ? 1 : -1)];
16109       int i = 63;
16110 int
16111 main ()
16112 {
16113 /* Test availability of runtime routines for shift and division.  */
16114       long long int llmax = 9223372036854775807ll;
16115       unsigned long long int ullmax = 18446744073709551615ull;
16116       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16117               | (llmax / ll) | (llmax % ll)
16118               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16119               | (ullmax / ull) | (ullmax % ull));
16120   ;
16121   return 0;
16122 }
16123
16124 _ACEOF
16125 if ac_fn_c_try_link "$LINENO"; then :
16126                         if test "$cross_compiling" = yes; then :
16127   ac_cv_type_long_long_int=yes
16128 else
16129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h.  */
16131 #include <limits.h>
16132                #ifndef LLONG_MAX
16133                # define HALF \
16134                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16135                # define LLONG_MAX (HALF - 1 + HALF)
16136                #endif
16137 int
16138 main ()
16139 {
16140 long long int n = 1;
16141                int i;
16142                for (i = 0; ; i++)
16143                  {
16144                    long long int m = n << i;
16145                    if (m >> i != n)
16146                      return 1;
16147                    if (LLONG_MAX / 2 < m)
16148                      break;
16149                  }
16150                return 0;
16151   ;
16152   return 0;
16153 }
16154 _ACEOF
16155 if ac_fn_c_try_run "$LINENO"; then :
16156   ac_cv_type_long_long_int=yes
16157 else
16158   ac_cv_type_long_long_int=no
16159 fi
16160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16161   conftest.$ac_objext conftest.beam conftest.$ac_ext
16162 fi
16163
16164 else
16165   ac_cv_type_long_long_int=no
16166 fi
16167 rm -f core conftest.err conftest.$ac_objext \
16168     conftest$ac_exeext conftest.$ac_ext
16169 fi
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16171 $as_echo "$ac_cv_type_long_long_int" >&6; }
16172   if test $ac_cv_type_long_long_int = yes; then
16173
16174 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16175
16176   fi
16177
16178 if test X"$ac_cv_type_long_long_int" != X"yes"; then
16179     as_fn_error $? "\"C compiler does not appear have required long long support\"" "$LINENO" 5
16180 fi
16181 # The cast to long int works around a bug in the HP C Compiler
16182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16184 # This bug is HP SR number 8606223364.
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
16186 $as_echo_n "checking size of long int... " >&6; }
16187 if ${ac_cv_sizeof_long_int+:} false; then :
16188   $as_echo_n "(cached) " >&6
16189 else
16190   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
16191
16192 else
16193   if test "$ac_cv_type_long_int" = yes; then
16194      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16196 as_fn_error 77 "cannot compute sizeof (long int)
16197 See \`config.log' for more details" "$LINENO" 5; }
16198    else
16199      ac_cv_sizeof_long_int=0
16200    fi
16201 fi
16202
16203 fi
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
16205 $as_echo "$ac_cv_sizeof_long_int" >&6; }
16206
16207
16208
16209 cat >>confdefs.h <<_ACEOF
16210 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16211 _ACEOF
16212
16213
16214 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16215 if test "x$ac_cv_type_size_t" = xyes; then :
16216
16217 else
16218
16219 cat >>confdefs.h <<_ACEOF
16220 #define size_t unsigned int
16221 _ACEOF
16222
16223 fi
16224
16225 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16226 if test "x$ac_cv_type_ssize_t" = xyes; then :
16227
16228 else
16229
16230 cat >>confdefs.h <<_ACEOF
16231 #define ssize_t int
16232 _ACEOF
16233
16234 fi
16235
16236 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
16237 if test "x$ac_cv_type_dev_t" = xyes; then :
16238
16239 else
16240
16241 cat >>confdefs.h <<_ACEOF
16242 #define dev_t int
16243 _ACEOF
16244
16245 fi
16246
16247 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
16248 if test "x$ac_cv_type_ino_t" = xyes; then :
16249
16250 else
16251
16252 cat >>confdefs.h <<_ACEOF
16253 #define ino_t unsigned int
16254 _ACEOF
16255
16256 fi
16257
16258 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
16259 if test "x$ac_cv_type_uint8_t" = xyes; then :
16260
16261 else
16262
16263 cat >>confdefs.h <<_ACEOF
16264 #define uint8_t unsigned char
16265 _ACEOF
16266
16267 fi
16268
16269 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
16270 if test "x$ac_cv_type_uint32_t" = xyes; then :
16271
16272 else
16273
16274 cat >>confdefs.h <<_ACEOF
16275 #define uint32_t unsigned int
16276 _ACEOF
16277
16278 fi
16279
16280 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
16281 if test "x$ac_cv_type_uint64_t" = xyes; then :
16282
16283 else
16284
16285 cat >>confdefs.h <<_ACEOF
16286 #define uint64_t unsigned long long
16287 _ACEOF
16288
16289 fi
16290
16291 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16292 $ac_includes_default
16293 #include <sys/socket.h>
16294 "
16295 if test "x$ac_cv_type_socklen_t" = xyes; then :
16296
16297 else
16298   $as_echo "#define socklen_t unsigned int" >>confdefs.h
16299
16300 fi
16301
16302
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
16304 $as_echo_n "checking max length of uid_t... " >&6; }
16305 if ${sudo_cv_uid_t_len+:} false; then :
16306   $as_echo_n "(cached) " >&6
16307 else
16308   rm -f conftestdata
16309 if test "$cross_compiling" = yes; then :
16310   sudo_cv_uid_t_len=10
16311 else
16312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h.  */
16314 #include <stdio.h>
16315 #include <pwd.h>
16316 #include <limits.h>
16317 #include <sys/types.h>
16318 #include <sys/param.h>
16319 main() {
16320   FILE *f;
16321   char b[1024];
16322   uid_t u = (uid_t) -1;
16323
16324   if ((f = fopen("conftestdata", "w")) == NULL)
16325     exit(1);
16326
16327   (void) sprintf(b, "%lu", (unsigned long) u);
16328   (void) fprintf(f, "%d\n", strlen(b));
16329   (void) fclose(f);
16330   exit(0);
16331 }
16332 _ACEOF
16333 if ac_fn_c_try_run "$LINENO"; then :
16334   sudo_cv_uid_t_len=`cat conftestdata`
16335 else
16336   sudo_cv_uid_t_len=10
16337 fi
16338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16339   conftest.$ac_objext conftest.beam conftest.$ac_ext
16340 fi
16341
16342
16343 fi
16344
16345 rm -f conftestdata
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
16347 $as_echo "$sudo_cv_uid_t_len" >&6; }
16348
16349 cat >>confdefs.h <<_ACEOF
16350 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
16351 _ACEOF
16352
16353
16354
16355     ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
16356           #include <sys/socket.h>
16357
16358 "
16359 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
16360
16361 $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
16362
16363 fi
16364
16365
16366 _CFLAGS="$CFLAGS"
16367 CFLAGS="$CFLAGS $OSDEFS"
16368 if test $ac_cv_header_utmpx_h = "yes"; then
16369     ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
16370         #include <sys/types.h>
16371         #include <utmpx.h>
16372
16373 "
16374 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
16375
16376 cat >>confdefs.h <<_ACEOF
16377 #define HAVE_STRUCT_UTMPX_UT_ID 1
16378 _ACEOF
16379
16380
16381 fi
16382 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
16383         #include <sys/types.h>
16384         #include <utmpx.h>
16385
16386 "
16387 if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
16388
16389 cat >>confdefs.h <<_ACEOF
16390 #define HAVE_STRUCT_UTMPX_UT_PID 1
16391 _ACEOF
16392
16393
16394 fi
16395 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
16396         #include <sys/types.h>
16397         #include <utmpx.h>
16398
16399 "
16400 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
16401
16402 cat >>confdefs.h <<_ACEOF
16403 #define HAVE_STRUCT_UTMPX_UT_TV 1
16404 _ACEOF
16405
16406
16407 fi
16408 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
16409         #include <sys/types.h>
16410         #include <utmpx.h>
16411
16412 "
16413 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
16414
16415 cat >>confdefs.h <<_ACEOF
16416 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
16417 _ACEOF
16418
16419
16420 fi
16421
16422                 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
16423         #include <sys/types.h>
16424         #include <utmpx.h>
16425
16426 "
16427 if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
16428
16429 cat >>confdefs.h <<_ACEOF
16430 #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
16431 _ACEOF
16432
16433 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16434
16435 else
16436
16437         ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
16438             #include <sys/types.h>
16439             #include <utmpx.h>
16440
16441 "
16442 if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
16443
16444 cat >>confdefs.h <<_ACEOF
16445 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16446 _ACEOF
16447
16448 $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16449
16450 fi
16451
16452
16453 fi
16454
16455 else
16456     ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
16457         #include <sys/types.h>
16458         #include <utmp.h>
16459
16460 "
16461 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
16462
16463 cat >>confdefs.h <<_ACEOF
16464 #define HAVE_STRUCT_UTMP_UT_ID 1
16465 _ACEOF
16466
16467
16468 fi
16469 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
16470         #include <sys/types.h>
16471         #include <utmp.h>
16472
16473 "
16474 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
16475
16476 cat >>confdefs.h <<_ACEOF
16477 #define HAVE_STRUCT_UTMP_UT_PID 1
16478 _ACEOF
16479
16480
16481 fi
16482 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16483         #include <sys/types.h>
16484         #include <utmp.h>
16485
16486 "
16487 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16488
16489 cat >>confdefs.h <<_ACEOF
16490 #define HAVE_STRUCT_UTMP_UT_TV 1
16491 _ACEOF
16492
16493
16494 fi
16495 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16496         #include <sys/types.h>
16497         #include <utmp.h>
16498
16499 "
16500 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16501
16502 cat >>confdefs.h <<_ACEOF
16503 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16504 _ACEOF
16505
16506
16507 fi
16508 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16509         #include <sys/types.h>
16510         #include <utmp.h>
16511
16512 "
16513 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16514
16515 cat >>confdefs.h <<_ACEOF
16516 #define HAVE_STRUCT_UTMP_UT_USER 1
16517 _ACEOF
16518
16519
16520 fi
16521
16522                 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16523         #include <sys/types.h>
16524         #include <utmp.h>
16525
16526 "
16527 if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16528
16529 cat >>confdefs.h <<_ACEOF
16530 #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16531 _ACEOF
16532
16533 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16534
16535 else
16536
16537         ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16538             #include <sys/types.h>
16539             #include <utmp.h>
16540
16541 "
16542 if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16543
16544 cat >>confdefs.h <<_ACEOF
16545 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16546 _ACEOF
16547
16548 $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16549
16550 fi
16551
16552
16553 fi
16554
16555 fi
16556 CFLAGS="$_CFLAGS"
16557
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16559 $as_echo_n "checking type of array argument to getgroups... " >&6; }
16560 if ${ac_cv_type_getgroups+:} false; then :
16561   $as_echo_n "(cached) " >&6
16562 else
16563   if test "$cross_compiling" = yes; then :
16564   ac_cv_type_getgroups=cross
16565 else
16566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h.  */
16568 /* Thanks to Mike Rendell for this test.  */
16569 $ac_includes_default
16570 #define NGID 256
16571 #undef MAX
16572 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16573
16574 int
16575 main ()
16576 {
16577   gid_t gidset[NGID];
16578   int i, n;
16579   union { gid_t gval; long int lval; }  val;
16580
16581   val.lval = -1;
16582   for (i = 0; i < NGID; i++)
16583     gidset[i] = val.gval;
16584   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16585                  gidset);
16586   /* Exit non-zero if getgroups seems to require an array of ints.  This
16587      happens when gid_t is short int but getgroups modifies an array
16588      of ints.  */
16589   return n > 0 && gidset[n] != val.gval;
16590 }
16591 _ACEOF
16592 if ac_fn_c_try_run "$LINENO"; then :
16593   ac_cv_type_getgroups=gid_t
16594 else
16595   ac_cv_type_getgroups=int
16596 fi
16597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16598   conftest.$ac_objext conftest.beam conftest.$ac_ext
16599 fi
16600
16601 if test $ac_cv_type_getgroups = cross; then
16602         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h.  */
16604 #include <unistd.h>
16605
16606 _ACEOF
16607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16608   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16609   ac_cv_type_getgroups=gid_t
16610 else
16611   ac_cv_type_getgroups=int
16612 fi
16613 rm -f conftest*
16614
16615 fi
16616 fi
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16618 $as_echo "$ac_cv_type_getgroups" >&6; }
16619
16620 cat >>confdefs.h <<_ACEOF
16621 #define GETGROUPS_T $ac_cv_type_getgroups
16622 _ACEOF
16623
16624
16625 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16626 if test "x$ac_cv_type_size_t" = xyes; then :
16627
16628 else
16629
16630 cat >>confdefs.h <<_ACEOF
16631 #define size_t unsigned int
16632 _ACEOF
16633
16634 fi
16635
16636 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16637 if test "x$ac_cv_func_getgroups" = xyes; then :
16638
16639 fi
16640
16641
16642 # If we don't yet have getgroups, see if it's in -lbsd.
16643 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16644 ac_save_LIBS=$LIBS
16645 if test $ac_cv_func_getgroups = no; then
16646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16647 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16648 if ${ac_cv_lib_bsd_getgroups+:} false; then :
16649   $as_echo_n "(cached) " >&6
16650 else
16651   ac_check_lib_save_LIBS=$LIBS
16652 LIBS="-lbsd  $LIBS"
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h.  */
16655
16656 /* Override any GCC internal prototype to avoid an error.
16657    Use char because int might match the return type of a GCC
16658    builtin and then its argument prototype would still apply.  */
16659 #ifdef __cplusplus
16660 extern "C"
16661 #endif
16662 char getgroups ();
16663 int
16664 main ()
16665 {
16666 return getgroups ();
16667   ;
16668   return 0;
16669 }
16670 _ACEOF
16671 if ac_fn_c_try_link "$LINENO"; then :
16672   ac_cv_lib_bsd_getgroups=yes
16673 else
16674   ac_cv_lib_bsd_getgroups=no
16675 fi
16676 rm -f core conftest.err conftest.$ac_objext \
16677     conftest$ac_exeext conftest.$ac_ext
16678 LIBS=$ac_check_lib_save_LIBS
16679 fi
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16681 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16682 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16683   GETGROUPS_LIB=-lbsd
16684 fi
16685
16686 fi
16687
16688 # Run the program to test the functionality of the system-supplied
16689 # getgroups function only if there is such a function.
16690 if test $ac_cv_func_getgroups = yes; then
16691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16692 $as_echo_n "checking for working getgroups... " >&6; }
16693 if ${ac_cv_func_getgroups_works+:} false; then :
16694   $as_echo_n "(cached) " >&6
16695 else
16696   if test "$cross_compiling" = yes; then :
16697   ac_cv_func_getgroups_works=no
16698 else
16699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h.  */
16701 $ac_includes_default
16702 int
16703 main ()
16704 {
16705 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
16706        return getgroups (0, 0) == -1;
16707   ;
16708   return 0;
16709 }
16710 _ACEOF
16711 if ac_fn_c_try_run "$LINENO"; then :
16712   ac_cv_func_getgroups_works=yes
16713 else
16714   ac_cv_func_getgroups_works=no
16715 fi
16716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16717   conftest.$ac_objext conftest.beam conftest.$ac_ext
16718 fi
16719
16720
16721 fi
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16723 $as_echo "$ac_cv_func_getgroups_works" >&6; }
16724 else
16725   ac_cv_func_getgroups_works=no
16726 fi
16727 if test $ac_cv_func_getgroups_works = yes; then
16728
16729 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16730
16731 fi
16732 LIBS=$ac_save_LIBS
16733
16734 for ac_func in glob nl_langinfo regcomp setenv strftime strrchr strtoll \
16735                sysconf tzset
16736 do :
16737   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16738 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16739 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16740   cat >>confdefs.h <<_ACEOF
16741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16742 _ACEOF
16743
16744 fi
16745 done
16746
16747 for ac_func in getgrouplist
16748 do :
16749   ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16750 if test "x$ac_cv_func_getgrouplist" = xyes; then :
16751   cat >>confdefs.h <<_ACEOF
16752 #define HAVE_GETGROUPLIST 1
16753 _ACEOF
16754
16755 else
16756
16757     case "$host_os" in
16758     aix*)
16759         for ac_func in getgrset
16760 do :
16761   ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
16762 if test "x$ac_cv_func_getgrset" = xyes; then :
16763   cat >>confdefs.h <<_ACEOF
16764 #define HAVE_GETGRSET 1
16765 _ACEOF
16766
16767 fi
16768 done
16769
16770         ;;
16771     *)
16772         ac_fn_c_check_func "$LINENO" "nss_search" "ac_cv_func_nss_search"
16773 if test "x$ac_cv_func_nss_search" = xyes; then :
16774
16775             ac_fn_c_check_func "$LINENO" "_nss_XbyY_buf_alloc" "ac_cv_func__nss_XbyY_buf_alloc"
16776 if test "x$ac_cv_func__nss_XbyY_buf_alloc" = xyes; then :
16777
16778                 # Solaris
16779                 ac_fn_c_check_func "$LINENO" "_nss_initf_group" "ac_cv_func__nss_initf_group"
16780 if test "x$ac_cv_func__nss_initf_group" = xyes; then :
16781
16782                     for ac_header in nss_dbdefs.h
16783 do :
16784   ac_fn_c_check_header_mongrel "$LINENO" "nss_dbdefs.h" "ac_cv_header_nss_dbdefs_h" "$ac_includes_default"
16785 if test "x$ac_cv_header_nss_dbdefs_h" = xyes; then :
16786   cat >>confdefs.h <<_ACEOF
16787 #define HAVE_NSS_DBDEFS_H 1
16788 _ACEOF
16789
16790 fi
16791
16792 done
16793
16794                     $as_echo "#define HAVE_NSS_SEARCH 1" >>confdefs.h
16795
16796                     $as_echo "#define HAVE__NSS_XBYY_BUF_ALLOC 1" >>confdefs.h
16797
16798                     $as_echo "#define HAVE__NSS_INITF_GROUP 1" >>confdefs.h
16799
16800
16801 fi
16802
16803
16804 else
16805
16806                 # HP-UX
16807                 ac_fn_c_check_func "$LINENO" "__nss_XbyY_buf_alloc" "ac_cv_func___nss_XbyY_buf_alloc"
16808 if test "x$ac_cv_func___nss_XbyY_buf_alloc" = xyes; then :
16809
16810                     ac_fn_c_check_func "$LINENO" "__nss_initf_group" "ac_cv_func___nss_initf_group"
16811 if test "x$ac_cv_func___nss_initf_group" = xyes; then :
16812
16813                         for ac_header in nss_dbdefs.h
16814 do :
16815   ac_fn_c_check_header_mongrel "$LINENO" "nss_dbdefs.h" "ac_cv_header_nss_dbdefs_h" "$ac_includes_default"
16816 if test "x$ac_cv_header_nss_dbdefs_h" = xyes; then :
16817   cat >>confdefs.h <<_ACEOF
16818 #define HAVE_NSS_DBDEFS_H 1
16819 _ACEOF
16820
16821 fi
16822
16823 done
16824
16825                         $as_echo "#define HAVE_NSS_SEARCH 1" >>confdefs.h
16826
16827                         $as_echo "#define HAVE___NSS_XBYY_BUF_ALLOC 1" >>confdefs.h
16828
16829                         $as_echo "#define HAVE___NSS_INITF_GROUP 1" >>confdefs.h
16830
16831
16832 fi
16833
16834
16835 fi
16836
16837
16838 fi
16839
16840
16841 fi
16842
16843         ;;
16844     esac
16845     case " $LIBOBJS " in
16846   *" getgrouplist.$ac_objext "* ) ;;
16847   *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16848  ;;
16849 esac
16850
16851
16852 fi
16853 done
16854
16855 for ac_func in getline
16856 do :
16857   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16858 if test "x$ac_cv_func_getline" = xyes; then :
16859   cat >>confdefs.h <<_ACEOF
16860 #define HAVE_GETLINE 1
16861 _ACEOF
16862
16863 else
16864
16865     case " $LIBOBJS " in
16866   *" getline.$ac_objext "* ) ;;
16867   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16868  ;;
16869 esac
16870
16871     for ac_func in fgetln
16872 do :
16873   ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16874 if test "x$ac_cv_func_fgetln" = xyes; then :
16875   cat >>confdefs.h <<_ACEOF
16876 #define HAVE_FGETLN 1
16877 _ACEOF
16878
16879 fi
16880 done
16881
16882
16883 fi
16884 done
16885
16886 if test "$enable_hardening" != "no"; then
16887     O_CPPFLAGS="$CPPFLAGS"
16888     CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
16889     ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
16890 if test "x$ac_cv_func___sprintf_chk" = xyes; then :
16891
16892         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h.  */
16894
16895 int
16896 main ()
16897 {
16898 char buf[4]; (void)sprintf(buf, "%s", "foo");
16899   ;
16900   return 0;
16901 }
16902 _ACEOF
16903 if ac_fn_c_try_link "$LINENO"; then :
16904   OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
16905 fi
16906 rm -f core conftest.err conftest.$ac_objext \
16907     conftest$ac_exeext conftest.$ac_ext
16908
16909 fi
16910
16911     CPPFLAGS="$O_CPPFLAGS"
16912 fi
16913
16914 utmp_style=LEGACY
16915 for ac_func in getutxid getutid
16916 do :
16917   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16918 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16919 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16920   cat >>confdefs.h <<_ACEOF
16921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16922 _ACEOF
16923  utmp_style=POSIX; break
16924 fi
16925 done
16926
16927 if test "$utmp_style" = "LEGACY"; then
16928     for ac_func in getttyent ttyslot
16929 do :
16930   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16931 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16932 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16933   cat >>confdefs.h <<_ACEOF
16934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16935 _ACEOF
16936  break
16937 fi
16938 done
16939
16940     for ac_func in fseeko
16941 do :
16942   ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
16943 if test "x$ac_cv_func_fseeko" = xyes; then :
16944   cat >>confdefs.h <<_ACEOF
16945 #define HAVE_FSEEKO 1
16946 _ACEOF
16947
16948 fi
16949 done
16950
16951 fi
16952
16953 for ac_func in sysctl
16954 do :
16955   ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
16956 if test "x$ac_cv_func_sysctl" = xyes; then :
16957   cat >>confdefs.h <<_ACEOF
16958 #define HAVE_SYSCTL 1
16959 _ACEOF
16960  ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
16961         #include <sys/param.h>
16962         #include <sys/sysctl.h>
16963         #include <sys/user.h>
16964
16965 "
16966 if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
16967
16968 cat >>confdefs.h <<_ACEOF
16969 #define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
16970 _ACEOF
16971
16972
16973 else
16974
16975         ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
16976             #include <sys/param.h>
16977             #include <sys/sysctl.h>
16978
16979 "
16980 if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
16981
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
16984 _ACEOF
16985
16986
16987 else
16988
16989             ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
16990                 #include <sys/param.h>
16991                 #include <sys/sysctl.h>
16992
16993 "
16994 if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
16995
16996 cat >>confdefs.h <<_ACEOF
16997 #define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
16998 _ACEOF
16999
17000
17001 else
17002
17003                 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
17004                     #include <sys/param.h>
17005                     #include <sys/sysctl.h>
17006
17007 "
17008 if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
17009
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
17012 _ACEOF
17013
17014
17015 fi
17016
17017
17018 fi
17019
17020
17021 fi
17022
17023
17024 fi
17025
17026
17027 fi
17028 done
17029
17030
17031 for ac_func in openpty
17032 do :
17033   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
17034 if test "x$ac_cv_func_openpty" = xyes; then :
17035   cat >>confdefs.h <<_ACEOF
17036 #define HAVE_OPENPTY 1
17037 _ACEOF
17038  for ac_header in libutil.h util.h pty.h
17039 do :
17040   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17043   cat >>confdefs.h <<_ACEOF
17044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17045 _ACEOF
17046  break
17047 fi
17048
17049 done
17050
17051 else
17052
17053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
17054 $as_echo_n "checking for openpty in -lutil... " >&6; }
17055 if ${ac_cv_lib_util_openpty+:} false; then :
17056   $as_echo_n "(cached) " >&6
17057 else
17058   ac_check_lib_save_LIBS=$LIBS
17059 LIBS="-lutil  $LIBS"
17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h.  */
17062
17063 /* Override any GCC internal prototype to avoid an error.
17064    Use char because int might match the return type of a GCC
17065    builtin and then its argument prototype would still apply.  */
17066 #ifdef __cplusplus
17067 extern "C"
17068 #endif
17069 char openpty ();
17070 int
17071 main ()
17072 {
17073 return openpty ();
17074   ;
17075   return 0;
17076 }
17077 _ACEOF
17078 if ac_fn_c_try_link "$LINENO"; then :
17079   ac_cv_lib_util_openpty=yes
17080 else
17081   ac_cv_lib_util_openpty=no
17082 fi
17083 rm -f core conftest.err conftest.$ac_objext \
17084     conftest$ac_exeext conftest.$ac_ext
17085 LIBS=$ac_check_lib_save_LIBS
17086 fi
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
17088 $as_echo "$ac_cv_lib_util_openpty" >&6; }
17089 if test "x$ac_cv_lib_util_openpty" = xyes; then :
17090
17091         for ac_header in libutil.h util.h pty.h
17092 do :
17093   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17094 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17096   cat >>confdefs.h <<_ACEOF
17097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17098 _ACEOF
17099  break
17100 fi
17101
17102 done
17103
17104         case "$SUDO_LIBS" in
17105             *-lutil*) ;;
17106             *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
17107         esac
17108         $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
17109
17110
17111 else
17112
17113         for ac_func in _getpty
17114 do :
17115   ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
17116 if test "x$ac_cv_func__getpty" = xyes; then :
17117   cat >>confdefs.h <<_ACEOF
17118 #define HAVE__GETPTY 1
17119 _ACEOF
17120
17121 else
17122
17123             for ac_func in grantpt
17124 do :
17125   ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
17126 if test "x$ac_cv_func_grantpt" = xyes; then :
17127   cat >>confdefs.h <<_ACEOF
17128 #define HAVE_GRANTPT 1
17129 _ACEOF
17130
17131                 for ac_func in posix_openpt
17132 do :
17133   ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
17134 if test "x$ac_cv_func_posix_openpt" = xyes; then :
17135   cat >>confdefs.h <<_ACEOF
17136 #define HAVE_POSIX_OPENPT 1
17137 _ACEOF
17138
17139 fi
17140 done
17141
17142
17143 else
17144
17145                 for ac_func in revoke
17146 do :
17147   ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
17148 if test "x$ac_cv_func_revoke" = xyes; then :
17149   cat >>confdefs.h <<_ACEOF
17150 #define HAVE_REVOKE 1
17151 _ACEOF
17152
17153 fi
17154 done
17155
17156
17157 fi
17158 done
17159
17160
17161 fi
17162 done
17163
17164
17165 fi
17166
17167
17168 fi
17169 done
17170
17171 for ac_func in unsetenv
17172 do :
17173   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
17174 if test "x$ac_cv_func_unsetenv" = xyes; then :
17175   cat >>confdefs.h <<_ACEOF
17176 #define HAVE_UNSETENV 1
17177 _ACEOF
17178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
17179 $as_echo_n "checking whether unsetenv returns void... " >&6; }
17180 if ${sudo_cv_func_unsetenv_void+:} false; then :
17181   $as_echo_n "(cached) " >&6
17182 else
17183   if test "$cross_compiling" = yes; then :
17184   sudo_cv_func_unsetenv_void=no
17185 else
17186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h.  */
17188 $ac_includes_default
17189         int unsetenv();
17190
17191 int
17192 main ()
17193 {
17194
17195         return unsetenv("FOO") != 0;
17196
17197   ;
17198   return 0;
17199 }
17200
17201 _ACEOF
17202 if ac_fn_c_try_run "$LINENO"; then :
17203   sudo_cv_func_unsetenv_void=no
17204 else
17205   sudo_cv_func_unsetenv_void=yes
17206 fi
17207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17208   conftest.$ac_objext conftest.beam conftest.$ac_ext
17209 fi
17210
17211 fi
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
17213 $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
17214     if test $sudo_cv_func_unsetenv_void = yes; then
17215
17216 $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
17217
17218     fi
17219
17220 fi
17221 done
17222
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv takes a const argument" >&5
17224 $as_echo_n "checking whether putenv takes a const argument... " >&6; }
17225 if ${sudo_cv_func_putenv_const+:} false; then :
17226   $as_echo_n "(cached) " >&6
17227 else
17228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h.  */
17230 $ac_includes_default
17231 int putenv(const char *string) {return 0;}
17232 int
17233 main ()
17234 {
17235
17236   ;
17237   return 0;
17238 }
17239 _ACEOF
17240 if ac_fn_c_try_compile "$LINENO"; then :
17241   sudo_cv_func_putenv_const=yes
17242 else
17243   sudo_cv_func_putenv_const=no
17244 fi
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246
17247 fi
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
17249 $as_echo "$sudo_cv_func_putenv_const" >&6; }
17250   if test $sudo_cv_func_putenv_const = yes; then
17251
17252 $as_echo "#define PUTENV_CONST const" >>confdefs.h
17253
17254   else
17255     $as_echo "#define PUTENV_CONST /**/" >>confdefs.h
17256
17257   fi
17258
17259 if test -z "$SKIP_SETRESUID"; then
17260     for ac_func in setresuid
17261 do :
17262   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17263 if test "x$ac_cv_func_setresuid" = xyes; then :
17264   cat >>confdefs.h <<_ACEOF
17265 #define HAVE_SETRESUID 1
17266 _ACEOF
17267
17268         SKIP_SETREUID=yes
17269         for ac_func in getresuid
17270 do :
17271   ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
17272 if test "x$ac_cv_func_getresuid" = xyes; then :
17273   cat >>confdefs.h <<_ACEOF
17274 #define HAVE_GETRESUID 1
17275 _ACEOF
17276
17277 fi
17278 done
17279
17280
17281 fi
17282 done
17283
17284 fi
17285 if test -z "$SKIP_SETREUID"; then
17286     for ac_func in setreuid
17287 do :
17288   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17289 if test "x$ac_cv_func_setreuid" = xyes; then :
17290   cat >>confdefs.h <<_ACEOF
17291 #define HAVE_SETREUID 1
17292 _ACEOF
17293
17294 fi
17295 done
17296
17297 fi
17298 for ac_func in seteuid
17299 do :
17300   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
17301 if test "x$ac_cv_func_seteuid" = xyes; then :
17302   cat >>confdefs.h <<_ACEOF
17303 #define HAVE_SETEUID 1
17304 _ACEOF
17305
17306 fi
17307 done
17308
17309 if test X"$with_interfaces" != X"no"; then
17310     for ac_func in getifaddrs
17311 do :
17312   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
17313 if test "x$ac_cv_func_getifaddrs" = xyes; then :
17314   cat >>confdefs.h <<_ACEOF
17315 #define HAVE_GETIFADDRS 1
17316 _ACEOF
17317  for ac_func in freeifaddrs
17318 do :
17319   ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
17320 if test "x$ac_cv_func_freeifaddrs" = xyes; then :
17321   cat >>confdefs.h <<_ACEOF
17322 #define HAVE_FREEIFADDRS 1
17323 _ACEOF
17324
17325 fi
17326 done
17327
17328 fi
17329 done
17330
17331 fi
17332 if test -z "$BROKEN_GETCWD"; then
17333     ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
17334 if test "x$ac_cv_func_getcwd" = xyes; then :
17335   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
17336
17337 else
17338   case " $LIBOBJS " in
17339   *" getcwd.$ac_objext "* ) ;;
17340   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
17341  ;;
17342 esac
17343
17344 fi
17345
17346
17347 fi
17348 for ac_func in lockf flock
17349 do :
17350   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17352 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17353   cat >>confdefs.h <<_ACEOF
17354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17355 _ACEOF
17356  break
17357 fi
17358 done
17359
17360 for ac_func in innetgr _innetgr
17361 do :
17362   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17363 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17364 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17365   cat >>confdefs.h <<_ACEOF
17366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17367 _ACEOF
17368  for ac_func in getdomainname
17369 do :
17370   ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
17371 if test "x$ac_cv_func_getdomainname" = xyes; then :
17372   cat >>confdefs.h <<_ACEOF
17373 #define HAVE_GETDOMAINNAME 1
17374 _ACEOF
17375
17376 fi
17377 done
17378  break
17379 fi
17380 done
17381
17382 for ac_func in utimes
17383 do :
17384   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
17385 if test "x$ac_cv_func_utimes" = xyes; then :
17386   cat >>confdefs.h <<_ACEOF
17387 #define HAVE_UTIMES 1
17388 _ACEOF
17389  for ac_func in futimes futimesat
17390 do :
17391   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17392 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17393 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17394   cat >>confdefs.h <<_ACEOF
17395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17396 _ACEOF
17397  break
17398 fi
17399 done
17400
17401 else
17402   for ac_func in futime
17403 do :
17404   ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
17405 if test "x$ac_cv_func_futime" = xyes; then :
17406   cat >>confdefs.h <<_ACEOF
17407 #define HAVE_FUTIME 1
17408 _ACEOF
17409
17410 fi
17411 done
17412  case " $LIBOBJS " in
17413   *" utimes.$ac_objext "* ) ;;
17414   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17415  ;;
17416 esac
17417
17418 fi
17419 done
17420
17421 for ac_func in killpg
17422 do :
17423   ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
17424 if test "x$ac_cv_func_killpg" = xyes; then :
17425   cat >>confdefs.h <<_ACEOF
17426 #define HAVE_KILLPG 1
17427 _ACEOF
17428
17429 else
17430   case " $LIBOBJS " in
17431   *" killpg.$ac_objext "* ) ;;
17432   *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
17433  ;;
17434 esac
17435
17436 fi
17437 done
17438
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
17440 $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
17441 if ${sudo_cv_func_fnmatch+:} false; then :
17442   $as_echo_n "(cached) " >&6
17443 else
17444   rm -f conftestdata; > conftestdata
17445 if test "$cross_compiling" = yes; then :
17446   sudo_cv_func_fnmatch=no
17447 else
17448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h.  */
17450 #include <fnmatch.h>
17451 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17452 _ACEOF
17453 if ac_fn_c_try_run "$LINENO"; then :
17454   sudo_cv_func_fnmatch=yes
17455 else
17456   sudo_cv_func_fnmatch=no
17457 fi
17458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17459   conftest.$ac_objext conftest.beam conftest.$ac_ext
17460 fi
17461
17462 rm -f core core.* *.core
17463 fi
17464
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
17466 $as_echo "$sudo_cv_func_fnmatch" >&6; }
17467 if test $sudo_cv_func_fnmatch = yes; then :
17468   $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
17469
17470 else
17471   case " $LIBOBJS " in
17472   *" fnmatch.$ac_objext "* ) ;;
17473   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17474  ;;
17475 esac
17476
17477     COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
17478
17479 fi
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
17481 $as_echo_n "checking for isblank... " >&6; }
17482 if ${sudo_cv_func_isblank+:} false; then :
17483   $as_echo_n "(cached) " >&6
17484 else
17485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h.  */
17487 #include <ctype.h>
17488 int
17489 main ()
17490 {
17491 return (isblank('a'));
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 if ac_fn_c_try_link "$LINENO"; then :
17497   sudo_cv_func_isblank=yes
17498 else
17499   sudo_cv_func_isblank=no
17500 fi
17501 rm -f core conftest.err conftest.$ac_objext \
17502     conftest$ac_exeext conftest.$ac_ext
17503 fi
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
17505 $as_echo "$sudo_cv_func_isblank" >&6; }
17506
17507   if test "$sudo_cv_func_isblank" = "yes"; then
17508
17509 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17510
17511   else
17512     case " $LIBOBJS " in
17513   *" isblank.$ac_objext "* ) ;;
17514   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17515  ;;
17516 esac
17517
17518   fi
17519
17520 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17521 if test "x$ac_cv_func_memrchr" = xyes; then :
17522   $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17523
17524 else
17525   case " $LIBOBJS " in
17526   *" memrchr.$ac_objext "* ) ;;
17527   *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17528  ;;
17529 esac
17530
17531 fi
17532
17533 ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
17534 if test "x$ac_cv_func_pw_dup" = xyes; then :
17535   $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
17536
17537 else
17538   case " $LIBOBJS " in
17539   *" pw_dup.$ac_objext "* ) ;;
17540   *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
17541  ;;
17542 esac
17543
17544 fi
17545
17546 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17547 if test "x$ac_cv_func_strlcpy" = xyes; then :
17548   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17549
17550 else
17551   case " $LIBOBJS " in
17552   *" strlcpy.$ac_objext "* ) ;;
17553   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17554  ;;
17555 esac
17556
17557 fi
17558
17559 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17560 if test "x$ac_cv_func_strlcat" = xyes; then :
17561   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17562
17563 else
17564   case " $LIBOBJS " in
17565   *" strlcat.$ac_objext "* ) ;;
17566   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17567  ;;
17568 esac
17569
17570 fi
17571
17572
17573 for ac_func in nanosleep
17574 do :
17575   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17576 if test "x$ac_cv_func_nanosleep" = xyes; then :
17577   cat >>confdefs.h <<_ACEOF
17578 #define HAVE_NANOSLEEP 1
17579 _ACEOF
17580
17581 else
17582
17583     # On Solaris, nanosleep is in librt
17584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
17585 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
17586 if ${ac_cv_lib_rt_nanosleep+:} false; then :
17587   $as_echo_n "(cached) " >&6
17588 else
17589   ac_check_lib_save_LIBS=$LIBS
17590 LIBS="-lrt  $LIBS"
17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h.  */
17593
17594 /* Override any GCC internal prototype to avoid an error.
17595    Use char because int might match the return type of a GCC
17596    builtin and then its argument prototype would still apply.  */
17597 #ifdef __cplusplus
17598 extern "C"
17599 #endif
17600 char nanosleep ();
17601 int
17602 main ()
17603 {
17604 return nanosleep ();
17605   ;
17606   return 0;
17607 }
17608 _ACEOF
17609 if ac_fn_c_try_link "$LINENO"; then :
17610   ac_cv_lib_rt_nanosleep=yes
17611 else
17612   ac_cv_lib_rt_nanosleep=no
17613 fi
17614 rm -f core conftest.err conftest.$ac_objext \
17615     conftest$ac_exeext conftest.$ac_ext
17616 LIBS=$ac_check_lib_save_LIBS
17617 fi
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
17619 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
17620 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
17621   REPLAY_LIBS="${REPLAY_LIBS} -lrt"
17622 else
17623   case " $LIBOBJS " in
17624   *" nanosleep.$ac_objext "* ) ;;
17625   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17626  ;;
17627 esac
17628
17629 fi
17630
17631
17632 fi
17633 done
17634
17635 for ac_func in closefrom
17636 do :
17637   ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
17638 if test "x$ac_cv_func_closefrom" = xyes; then :
17639   cat >>confdefs.h <<_ACEOF
17640 #define HAVE_CLOSEFROM 1
17641 _ACEOF
17642
17643 else
17644   case " $LIBOBJS " in
17645   *" closefrom.$ac_objext "* ) ;;
17646   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17647  ;;
17648 esac
17649
17650     ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
17651           #include <fcntl.h>
17652 "
17653 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
17654   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
17655
17656 fi
17657
17658
17659 fi
17660 done
17661
17662 for ac_func in mkstemps mkdtemp
17663 do :
17664   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17667   cat >>confdefs.h <<_ACEOF
17668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17669 _ACEOF
17670
17671 else
17672
17673     for ac_func in random lrand48
17674 do :
17675   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17676 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17677 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17678   cat >>confdefs.h <<_ACEOF
17679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17680 _ACEOF
17681  break
17682 fi
17683 done
17684
17685     case " $LIBOBJS " in
17686   *" mktemp.$ac_objext "* ) ;;
17687   *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17688  ;;
17689 esac
17690
17691
17692 fi
17693 done
17694
17695 for ac_func in snprintf vsnprintf asprintf vasprintf
17696 do :
17697   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17700   cat >>confdefs.h <<_ACEOF
17701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17702 _ACEOF
17703
17704 else
17705   NEED_SNPRINTF=1
17706 fi
17707 done
17708
17709 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17710     ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17711 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17712   $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17713
17714         ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17715 if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17716   $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17717
17718 fi
17719
17720 else
17721   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17722 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17723   $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17724
17725 fi
17726
17727 fi
17728
17729 fi
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h.  */
17732 #include <sys/types.h>
17733 #include <$ac_header_dirent>
17734 int
17735 main ()
17736 {
17737 DIR *d; (void)dirfd(d);
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 if ac_fn_c_try_link "$LINENO"; then :
17743   $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17744
17745 else
17746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h.  */
17748 #include <sys/types.h>
17749 #include <$ac_header_dirent>
17750 int
17751 main ()
17752 {
17753 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17754   ;
17755   return 0;
17756 }
17757 _ACEOF
17758 if ac_fn_c_try_link "$LINENO"; then :
17759   $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17760
17761 fi
17762 rm -f core conftest.err conftest.$ac_objext \
17763     conftest$ac_exeext conftest.$ac_ext
17764 fi
17765 rm -f core conftest.err conftest.$ac_objext \
17766     conftest$ac_exeext conftest.$ac_ext
17767 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17768 $ac_includes_default
17769 #include <$ac_header_dirent>
17770
17771 "
17772 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17773
17774 cat >>confdefs.h <<_ACEOF
17775 #define HAVE_STRUCT_DIRENT_D_TYPE 1
17776 _ACEOF
17777
17778
17779 fi
17780
17781 if test -n "$NEED_SNPRINTF"; then
17782     case " $LIBOBJS " in
17783   *" snprintf.$ac_objext "* ) ;;
17784   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17785  ;;
17786 esac
17787
17788 fi
17789 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17790 if test "x$ac_cv_func_socket" = xyes; then :
17791
17792 else
17793
17794     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17795         _libs=
17796         for lib in $libs; do
17797             case "$NET_LIBS" in
17798                 *"$lib"*)   ;;
17799                 *)          _libs="$_libs $lib";;
17800             esac
17801         done
17802         libs="${_libs# }"
17803         test -z "$libs" && continue
17804         lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17805         extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17806
17807     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
17808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
17809 $as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
17810     if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17811   $as_echo_n "(cached) " >&6
17812 else
17813
17814         SUDO_CHECK_LIB_OLIBS="$LIBS"
17815         LIBS="$LIBS -l$lib${5+ }$extralibs"
17816         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h.  */
17818
17819 /* Override any GCC internal prototype to avoid an error.
17820    Use char because int might match the return type of a GCC
17821    builtin and then its argument prototype would still apply.  */
17822 #ifdef __cplusplus
17823 extern "C"
17824 #endif
17825 char socket ();
17826 int
17827 main ()
17828 {
17829 return socket ();
17830   ;
17831   return 0;
17832 }
17833 _ACEOF
17834 if ac_fn_c_try_link "$LINENO"; then :
17835   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
17836 else
17837   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
17838
17839 fi
17840 rm -f core conftest.err conftest.$ac_objext \
17841     conftest$ac_exeext conftest.$ac_ext
17842         LIBS="$SUDO_CHECK_LIB_OLIBS"
17843
17844 fi
17845
17846     if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
17847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17848 $as_echo "yes" >&6; }
17849         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17850     else
17851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17852 $as_echo "no" >&6; }
17853
17854     fi
17855
17856     done
17857
17858 fi
17859
17860 ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17861 if test "x$ac_cv_func_inet_addr" = xyes; then :
17862
17863 else
17864
17865     ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17866 if test "x$ac_cv_func___inet_addr" = xyes; then :
17867
17868 else
17869
17870         for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17871             _libs=
17872             for lib in $libs; do
17873                 case "$NET_LIBS" in
17874                     *"$lib"*)   ;;
17875                     *)          _libs="$_libs $lib";;
17876                 esac
17877             done
17878             libs="${_libs# }"
17879             test -z "$libs" && continue
17880             lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17881             extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17882
17883     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
17884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5
17885 $as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; }
17886     if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17887   $as_echo_n "(cached) " >&6
17888 else
17889
17890         SUDO_CHECK_LIB_OLIBS="$LIBS"
17891         LIBS="$LIBS -l$lib${5+ }$extralibs"
17892         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h.  */
17894
17895 /* Override any GCC internal prototype to avoid an error.
17896    Use char because int might match the return type of a GCC
17897    builtin and then its argument prototype would still apply.  */
17898 #ifdef __cplusplus
17899 extern "C"
17900 #endif
17901 char inet_addr ();
17902 int
17903 main ()
17904 {
17905 return inet_addr ();
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 if ac_fn_c_try_link "$LINENO"; then :
17911   eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes
17912 else
17913   eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no
17914
17915 fi
17916 rm -f core conftest.err conftest.$ac_objext \
17917     conftest$ac_exeext conftest.$ac_ext
17918         LIBS="$SUDO_CHECK_LIB_OLIBS"
17919
17920 fi
17921
17922     if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then
17923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17924 $as_echo "yes" >&6; }
17925         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17926     else
17927         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17928 $as_echo "no" >&6; }
17929
17930     fi
17931
17932         done
17933
17934 fi
17935
17936
17937 fi
17938
17939 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17940 if test "x$ac_cv_func_syslog" = xyes; then :
17941
17942 else
17943
17944     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17945         _libs=
17946         for lib in $libs; do
17947             case "$NET_LIBS" in
17948                 *"$lib"*)   ;;
17949                 *)          _libs="$_libs $lib";;
17950             esac
17951         done
17952         libs="${_libs# }"
17953         test -z "$libs" && continue
17954         lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17955         extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17956
17957     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
17958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
17959 $as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
17960     if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17961   $as_echo_n "(cached) " >&6
17962 else
17963
17964         SUDO_CHECK_LIB_OLIBS="$LIBS"
17965         LIBS="$LIBS -l$lib${5+ }$extralibs"
17966         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967 /* end confdefs.h.  */
17968
17969 /* Override any GCC internal prototype to avoid an error.
17970    Use char because int might match the return type of a GCC
17971    builtin and then its argument prototype would still apply.  */
17972 #ifdef __cplusplus
17973 extern "C"
17974 #endif
17975 char syslog ();
17976 int
17977 main ()
17978 {
17979 return syslog ();
17980   ;
17981   return 0;
17982 }
17983 _ACEOF
17984 if ac_fn_c_try_link "$LINENO"; then :
17985   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
17986 else
17987   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
17988
17989 fi
17990 rm -f core conftest.err conftest.$ac_objext \
17991     conftest$ac_exeext conftest.$ac_ext
17992         LIBS="$SUDO_CHECK_LIB_OLIBS"
17993
17994 fi
17995
17996     if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
17997         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17998 $as_echo "yes" >&6; }
17999         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
18000     else
18001         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18002 $as_echo "no" >&6; }
18003
18004     fi
18005
18006     done
18007
18008 fi
18009
18010 for ac_func in getaddrinfo
18011 do :
18012   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18013 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18014   cat >>confdefs.h <<_ACEOF
18015 #define HAVE_GETADDRINFO 1
18016 _ACEOF
18017
18018 else
18019
18020     found=no
18021     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
18022         _libs=
18023         for lib in $libs; do
18024             case "$NET_LIBS" in
18025                 *"$lib"*)   ;;
18026                 *)          _libs="$_libs $lib";;
18027             esac
18028         done
18029         libs="${_libs# }"
18030         test -z "$libs" && continue
18031         lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
18032         extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
18033
18034     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/        *//g' -e 's/-l/_/g'`
18035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib${5+ }$extralibs" >&5
18036 $as_echo_n "checking for getaddrinfo in -l$lib${5+ }$extralibs... " >&6; }
18037     if { as_var=sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
18038   $as_echo_n "(cached) " >&6
18039 else
18040
18041         SUDO_CHECK_LIB_OLIBS="$LIBS"
18042         LIBS="$LIBS -l$lib${5+ }$extralibs"
18043         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044 /* end confdefs.h.  */
18045
18046 /* Override any GCC internal prototype to avoid an error.
18047    Use char because int might match the return type of a GCC
18048    builtin and then its argument prototype would still apply.  */
18049 #ifdef __cplusplus
18050 extern "C"
18051 #endif
18052 char getaddrinfo ();
18053 int
18054 main ()
18055 {
18056 return getaddrinfo ();
18057   ;
18058   return 0;
18059 }
18060 _ACEOF
18061 if ac_fn_c_try_link "$LINENO"; then :
18062   eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=yes
18063 else
18064   eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=no
18065
18066 fi
18067 rm -f core conftest.err conftest.$ac_objext \
18068     conftest$ac_exeext conftest.$ac_ext
18069         LIBS="$SUDO_CHECK_LIB_OLIBS"
18070
18071 fi
18072
18073     if eval test \$sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras = "yes"; then
18074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18075 $as_echo "yes" >&6; }
18076         NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; found=yes; break
18077     else
18078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18079 $as_echo "no" >&6; }
18080
18081     fi
18082
18083     done
18084     if test X"$found" != X"no"; then
18085         $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
18086
18087     fi
18088
18089 fi
18090 done
18091
18092 for ac_func in getprogname
18093 do :
18094   ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
18095 if test "x$ac_cv_func_getprogname" = xyes; then :
18096   cat >>confdefs.h <<_ACEOF
18097 #define HAVE_GETPROGNAME 1
18098 _ACEOF
18099
18100 else
18101
18102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
18103 $as_echo_n "checking for __progname... " >&6; }
18104     if ${sudo_cv___progname+:} false; then :
18105   $as_echo_n "(cached) " >&6
18106 else
18107
18108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109 /* end confdefs.h.  */
18110
18111 int
18112 main ()
18113 {
18114 extern char *__progname; (void)puts(__progname);
18115   ;
18116   return 0;
18117 }
18118 _ACEOF
18119 if ac_fn_c_try_link "$LINENO"; then :
18120   sudo_cv___progname=yes
18121 else
18122   sudo_cv___progname=no
18123 fi
18124 rm -f core conftest.err conftest.$ac_objext \
18125     conftest$ac_exeext conftest.$ac_ext
18126 fi
18127
18128     if test "$sudo_cv___progname" = "yes"; then
18129         $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
18130
18131     else
18132         case " $LIBOBJS " in
18133   *" getprogname.$ac_objext "* ) ;;
18134   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
18135  ;;
18136 esac
18137
18138     fi
18139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
18140 $as_echo "$sudo_cv___progname" >&6; }
18141
18142 fi
18143 done
18144
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
18146 $as_echo_n "checking for __func__... " >&6; }
18147 if ${sudo_cv___func__+:} false; then :
18148   $as_echo_n "(cached) " >&6
18149 else
18150
18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152 /* end confdefs.h.  */
18153
18154 int
18155 main ()
18156 {
18157 (void)puts(__func__);
18158   ;
18159   return 0;
18160 }
18161 _ACEOF
18162 if ac_fn_c_try_link "$LINENO"; then :
18163   sudo_cv___func__=yes
18164 else
18165   sudo_cv___func__=no
18166 fi
18167 rm -f core conftest.err conftest.$ac_objext \
18168     conftest$ac_exeext conftest.$ac_ext
18169 fi
18170
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
18172 $as_echo "$sudo_cv___func__" >&6; }
18173 if test "$sudo_cv___func__" = "yes"; then
18174     $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
18175
18176 elif test -n "$GCC"; then
18177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
18178 $as_echo_n "checking for __FUNCTION__... " >&6; }
18179     if ${sudo_cv___FUNCTION__+:} false; then :
18180   $as_echo_n "(cached) " >&6
18181 else
18182
18183     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h.  */
18185
18186 int
18187 main ()
18188 {
18189 (void)puts(__FUNCTION__);
18190   ;
18191   return 0;
18192 }
18193 _ACEOF
18194 if ac_fn_c_try_link "$LINENO"; then :
18195   sudo_cv___FUNCTION__=yes
18196 else
18197   sudo_cv___FUNCTION__=no
18198 fi
18199 rm -f core conftest.err conftest.$ac_objext \
18200     conftest$ac_exeext conftest.$ac_ext
18201 fi
18202
18203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
18204 $as_echo "$sudo_cv___FUNCTION__" >&6; }
18205     if test "$sudo_cv___FUNCTION__" = "yes"; then
18206         $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
18207
18208
18209 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
18210
18211     fi
18212 fi
18213
18214 # gettext() and friends may be located in libc (Linux and Solaris)
18215 # or in libintl.  However, it is possible to have libintl installed
18216 # even when gettext() is present in libc.  In the case of GNU libintl,
18217 # gettext() will be defined to gettext_libintl in libintl.h.
18218 # Since gcc prefers /usr/local/include to /usr/include, we need to
18219 # make sure we use the gettext() that matches the include file.
18220 if test "$enable_nls" != "no"; then
18221     if test "$enable_nls" != "yes"; then
18222
18223     case "${CPPFLAGS}" in
18224         *"-I${enable_nls}/include"|*"-I${enable_nls}/include ")
18225             ;;
18226         *)
18227             if test X"${CPPFLAGS}" = X""; then
18228                 CPPFLAGS="-I${enable_nls}/include"
18229             else
18230                 CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
18231             fi
18232             ;;
18233     esac
18234
18235
18236     case "${LDFLAGS}" in
18237         *"-L$enable_nls/lib"|*"-L$enable_nls/lib ")
18238             ;;
18239         *)
18240             LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
18241             if test X"$enable_rpath" = X"yes"; then
18242                 LDFLAGS_R="${LDFLAGS_R} -R$enable_nls/lib"
18243             fi
18244             ;;
18245     esac
18246
18247     fi
18248     OLIBS="$LIBS"
18249     for l in "libc" "-lintl" "-lintl -liconv"; do
18250         if test "$l" = "libc"; then
18251             # If user specified a dir for libintl ignore libc
18252             if test "$enable_nls" != "yes"; then
18253                 continue
18254             fi
18255             gettext_name=sudo_cv_gettext
18256             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
18257 $as_echo_n "checking for gettext... " >&6; }
18258         else
18259             LIBS="$OLIBS $l"
18260             gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
18261             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
18262 $as_echo_n "checking for gettext in $l... " >&6; }
18263         fi
18264         if eval \${$gettext_name+:} false; then :
18265   $as_echo_n "(cached) " >&6
18266 else
18267
18268                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h.  */
18270
18271                         #include <libintl.h>
18272 int
18273 main ()
18274 {
18275 (void)gettext((char *)0);
18276   ;
18277   return 0;
18278 }
18279
18280 _ACEOF
18281 if ac_fn_c_try_link "$LINENO"; then :
18282   eval $gettext_name=yes
18283 else
18284   eval $gettext_name=no
18285
18286 fi
18287 rm -f core conftest.err conftest.$ac_objext \
18288     conftest$ac_exeext conftest.$ac_ext
18289
18290 fi
18291
18292         eval gettext_result="\$$gettext_name"
18293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
18294 $as_echo "$gettext_result" >&6; }
18295         if test "$gettext_result" = "yes"; then
18296             for ac_func in ngettext
18297 do :
18298   ac_fn_c_check_func "$LINENO" "ngettext" "ac_cv_func_ngettext"
18299 if test "x$ac_cv_func_ngettext" = xyes; then :
18300   cat >>confdefs.h <<_ACEOF
18301 #define HAVE_NGETTEXT 1
18302 _ACEOF
18303
18304 fi
18305 done
18306
18307             break
18308         fi
18309     done
18310     LIBS="$OLIBS"
18311
18312     if test "$sudo_cv_gettext" = "yes"; then
18313         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18314
18315         SUDO_NLS=enabled
18316         # For Solaris we need links from lang to lang.UTF-8 in localedir
18317         case "$host_os" in
18318             solaris2*) LOCALEDIR_SUFFIX=".UTF-8";;
18319         esac
18320     elif test "$sudo_cv_gettext_lintl" = "yes"; then
18321         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18322
18323         SUDO_NLS=enabled
18324         LIBINTL="-lintl"
18325     elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
18326         $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18327
18328         SUDO_NLS=enabled
18329         LIBINTL="-lintl -liconv"
18330     fi
18331 fi
18332
18333 case "$enable_zlib" in
18334     yes)
18335         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18336 $as_echo_n "checking for gzdopen in -lz... " >&6; }
18337 if ${ac_cv_lib_z_gzdopen+:} false; then :
18338   $as_echo_n "(cached) " >&6
18339 else
18340   ac_check_lib_save_LIBS=$LIBS
18341 LIBS="-lz  $LIBS"
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h.  */
18344
18345 /* Override any GCC internal prototype to avoid an error.
18346    Use char because int might match the return type of a GCC
18347    builtin and then its argument prototype would still apply.  */
18348 #ifdef __cplusplus
18349 extern "C"
18350 #endif
18351 char gzdopen ();
18352 int
18353 main ()
18354 {
18355 return gzdopen ();
18356   ;
18357   return 0;
18358 }
18359 _ACEOF
18360 if ac_fn_c_try_link "$LINENO"; then :
18361   ac_cv_lib_z_gzdopen=yes
18362 else
18363   ac_cv_lib_z_gzdopen=no
18364 fi
18365 rm -f core conftest.err conftest.$ac_objext \
18366     conftest$ac_exeext conftest.$ac_ext
18367 LIBS=$ac_check_lib_save_LIBS
18368 fi
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18370 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18371 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
18372
18373             for ac_header in zlib.h
18374 do :
18375   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18376 if test "x$ac_cv_header_zlib_h" = xyes; then :
18377   cat >>confdefs.h <<_ACEOF
18378 #define HAVE_ZLIB_H 1
18379 _ACEOF
18380  ZLIB="-lz"
18381 else
18382   enable_zlib=builtin
18383 fi
18384
18385 done
18386
18387
18388 fi
18389
18390         ;;
18391     no)
18392         ;;
18393     system)
18394         $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18395
18396         ZLIB="-lz"
18397         ;;
18398     builtin)
18399         # handled below
18400         ;;
18401     *)
18402         $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18403
18404
18405     case "${CPPFLAGS}" in
18406         *"-I${enable_zlib}/include"|*"-I${enable_zlib}/include ")
18407             ;;
18408         *)
18409             if test X"${CPPFLAGS}" = X""; then
18410                 CPPFLAGS="-I${enable_zlib}/include"
18411             else
18412                 CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
18413             fi
18414             ;;
18415     esac
18416
18417
18418     case "${ZLIB}" in
18419         *"-L$enable_zlib/lib"|*"-L$enable_zlib/lib ")
18420             ;;
18421         *)
18422             ZLIB="${ZLIB} -L$enable_zlib/lib"
18423             if test X"$enable_rpath" = X"yes"; then
18424                 ZLIB_R="${ZLIB_R} -R$enable_zlib/lib"
18425             fi
18426             ;;
18427     esac
18428
18429         ZLIB="${ZLIB} -lz"
18430         ;;
18431 esac
18432 if test X"$enable_zlib" = X"builtin"; then
18433     $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18434
18435     CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
18436     ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
18437     ZLIB_SRC=zlib
18438     ac_config_headers="$ac_config_headers zlib/zconf.h"
18439
18440     ac_config_files="$ac_config_files zlib/Makefile"
18441
18442 fi
18443
18444 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
18445 $ac_includes_default
18446 #include <errno.h>
18447
18448 "
18449 if test "x$ac_cv_have_decl_errno" = xyes; then :
18450   ac_have_decl=1
18451 else
18452   ac_have_decl=0
18453 fi
18454
18455 cat >>confdefs.h <<_ACEOF
18456 #define HAVE_DECL_ERRNO $ac_have_decl
18457 _ACEOF
18458
18459
18460 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
18461 $ac_includes_default
18462 #include <netdb.h>
18463
18464 "
18465 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
18466   ac_have_decl=1
18467 else
18468   ac_have_decl=0
18469 fi
18470
18471 cat >>confdefs.h <<_ACEOF
18472 #define HAVE_DECL_H_ERRNO $ac_have_decl
18473 _ACEOF
18474
18475
18476 for ac_func in strsignal
18477 do :
18478   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
18479 if test "x$ac_cv_func_strsignal" = xyes; then :
18480   cat >>confdefs.h <<_ACEOF
18481 #define HAVE_STRSIGNAL 1
18482 _ACEOF
18483
18484 else
18485
18486     case " $LIBOBJS " in
18487   *" strsignal.$ac_objext "* ) ;;
18488   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
18489  ;;
18490 esac
18491
18492     HAVE_SIGLIST="false"
18493     ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
18494 $ac_includes_default
18495 #include <signal.h>
18496
18497 "
18498 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
18499   ac_have_decl=1
18500 else
18501   ac_have_decl=0
18502 fi
18503
18504 cat >>confdefs.h <<_ACEOF
18505 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
18506 _ACEOF
18507 if test $ac_have_decl = 1; then :
18508
18509         HAVE_SIGLIST="true"
18510         break
18511
18512 fi
18513 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
18514 $ac_includes_default
18515 #include <signal.h>
18516
18517 "
18518 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
18519   ac_have_decl=1
18520 else
18521   ac_have_decl=0
18522 fi
18523
18524 cat >>confdefs.h <<_ACEOF
18525 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
18526 _ACEOF
18527 if test $ac_have_decl = 1; then :
18528
18529         HAVE_SIGLIST="true"
18530         break
18531
18532 fi
18533 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
18534 $ac_includes_default
18535 #include <signal.h>
18536
18537 "
18538 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
18539   ac_have_decl=1
18540 else
18541   ac_have_decl=0
18542 fi
18543
18544 cat >>confdefs.h <<_ACEOF
18545 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
18546 _ACEOF
18547 if test $ac_have_decl = 1; then :
18548
18549         HAVE_SIGLIST="true"
18550         break
18551
18552 fi
18553
18554     if test "$HAVE_SIGLIST" != "true"; then
18555         case " $LIBOBJS " in
18556   *" siglist.$ac_objext "* ) ;;
18557   *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
18558  ;;
18559 esac
18560
18561     fi
18562
18563 fi
18564 done
18565
18566
18567 for ac_func in sig2str
18568 do :
18569   ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
18570 if test "x$ac_cv_func_sig2str" = xyes; then :
18571   cat >>confdefs.h <<_ACEOF
18572 #define HAVE_SIG2STR 1
18573 _ACEOF
18574
18575 else
18576
18577     case " $LIBOBJS " in
18578   *" sig2str.$ac_objext "* ) ;;
18579   *) LIBOBJS="$LIBOBJS sig2str.$ac_objext"
18580  ;;
18581 esac
18582
18583     HAVE_SIGNAME="false"
18584     ac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "
18585 $ac_includes_default
18586 #include <signal.h>
18587
18588 "
18589 if test "x$ac_cv_have_decl_sys_signame" = xyes; then :
18590   ac_have_decl=1
18591 else
18592   ac_have_decl=0
18593 fi
18594
18595 cat >>confdefs.h <<_ACEOF
18596 #define HAVE_DECL_SYS_SIGNAME $ac_have_decl
18597 _ACEOF
18598 if test $ac_have_decl = 1; then :
18599
18600         HAVE_SIGNAME="true"
18601         break
18602
18603 fi
18604 ac_fn_c_check_decl "$LINENO" "_sys_signame" "ac_cv_have_decl__sys_signame" "
18605 $ac_includes_default
18606 #include <signal.h>
18607
18608 "
18609 if test "x$ac_cv_have_decl__sys_signame" = xyes; then :
18610   ac_have_decl=1
18611 else
18612   ac_have_decl=0
18613 fi
18614
18615 cat >>confdefs.h <<_ACEOF
18616 #define HAVE_DECL__SYS_SIGNAME $ac_have_decl
18617 _ACEOF
18618 if test $ac_have_decl = 1; then :
18619
18620         HAVE_SIGNAME="true"
18621         break
18622
18623 fi
18624 ac_fn_c_check_decl "$LINENO" "__sys_signame" "ac_cv_have_decl___sys_signame" "
18625 $ac_includes_default
18626 #include <signal.h>
18627
18628 "
18629 if test "x$ac_cv_have_decl___sys_signame" = xyes; then :
18630   ac_have_decl=1
18631 else
18632   ac_have_decl=0
18633 fi
18634
18635 cat >>confdefs.h <<_ACEOF
18636 #define HAVE_DECL___SYS_SIGNAME $ac_have_decl
18637 _ACEOF
18638 if test $ac_have_decl = 1; then :
18639
18640         HAVE_SIGNAME="true"
18641         break
18642
18643 fi
18644 ac_fn_c_check_decl "$LINENO" "sys_sigabbrev" "ac_cv_have_decl_sys_sigabbrev" "
18645 $ac_includes_default
18646 #include <signal.h>
18647
18648 "
18649 if test "x$ac_cv_have_decl_sys_sigabbrev" = xyes; then :
18650   ac_have_decl=1
18651 else
18652   ac_have_decl=0
18653 fi
18654
18655 cat >>confdefs.h <<_ACEOF
18656 #define HAVE_DECL_SYS_SIGABBREV $ac_have_decl
18657 _ACEOF
18658 if test $ac_have_decl = 1; then :
18659
18660         HAVE_SIGNAME="true"
18661         break
18662
18663 fi
18664
18665     if test "$HAVE_SIGNAME" != "true"; then
18666         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for undeclared sys_sigabbrev" >&5
18667 $as_echo_n "checking for undeclared sys_sigabbrev... " >&6; }
18668 if ${sudo_cv_var_sys_sigabbrev+:} false; then :
18669   $as_echo_n "(cached) " >&6
18670 else
18671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18672 /* end confdefs.h.  */
18673 extern char **sys_sigabbrev;
18674 int
18675 main ()
18676 {
18677 return sys_sigabbrev[1];
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 if ac_fn_c_try_link "$LINENO"; then :
18683   sudo_cv_var_sys_sigabbrev=yes
18684 else
18685   sudo_cv_var_sys_sigabbrev=no
18686
18687 fi
18688 rm -f core conftest.err conftest.$ac_objext \
18689     conftest$ac_exeext conftest.$ac_ext
18690
18691
18692 fi
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_sys_sigabbrev" >&5
18694 $as_echo "$sudo_cv_var_sys_sigabbrev" >&6; }
18695         if test "$sudo_cv_var_sys_sigabbrev" = yes; then
18696             $as_echo "#define HAVE_SYS_SIGABBREV 1" >>confdefs.h
18697
18698         else
18699             case " $LIBOBJS " in
18700   *" signame.$ac_objext "* ) ;;
18701   *) LIBOBJS="$LIBOBJS signame.$ac_objext"
18702  ;;
18703 esac
18704
18705         fi
18706     fi
18707
18708 fi
18709 done
18710
18711
18712 if test ${with_netsvc-"no"} != "no"; then
18713     cat >>confdefs.h <<EOF
18714 #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
18715 EOF
18716
18717     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
18718 elif test ${with_nsswitch-"yes"} != "no"; then
18719     cat >>confdefs.h <<EOF
18720 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
18721 EOF
18722
18723     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
18724 fi
18725
18726
18727 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
18728     for auth in $AUTH_EXCL_DEF; do
18729         case $auth in
18730             AIX_AUTH)   with_aixauth=maybe;;
18731             BSD_AUTH)   with_bsdauth=maybe;;
18732             PAM)        with_pam=maybe;;
18733             SIA)        CHECKSIA=true;;
18734         esac
18735     done
18736 fi
18737
18738 if test ${with_pam-"no"} != "no"; then
18739     #
18740     # Check for pam_start() in libpam first, then for pam_appl.h.
18741     #
18742     found_pam_lib=no
18743     as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18745 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18746 if eval \${$as_ac_Lib+:} false; then :
18747   $as_echo_n "(cached) " >&6
18748 else
18749   ac_check_lib_save_LIBS=$LIBS
18750 LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
18751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752 /* end confdefs.h.  */
18753
18754 /* Override any GCC internal prototype to avoid an error.
18755    Use char because int might match the return type of a GCC
18756    builtin and then its argument prototype would still apply.  */
18757 #ifdef __cplusplus
18758 extern "C"
18759 #endif
18760 char pam_start ();
18761 int
18762 main ()
18763 {
18764 return pam_start ();
18765   ;
18766   return 0;
18767 }
18768 _ACEOF
18769 if ac_fn_c_try_link "$LINENO"; then :
18770   eval "$as_ac_Lib=yes"
18771 else
18772   eval "$as_ac_Lib=no"
18773 fi
18774 rm -f core conftest.err conftest.$ac_objext \
18775     conftest$ac_exeext conftest.$ac_ext
18776 LIBS=$ac_check_lib_save_LIBS
18777 fi
18778 eval ac_res=\$$as_ac_Lib
18779                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18780 $as_echo "$ac_res" >&6; }
18781 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18782   found_pam_lib=yes
18783 fi
18784
18785     #
18786     # Some PAM implementations (MacOS X for example) put the PAM headers
18787     # in /usr/include/pam instead of /usr/include/security...
18788     #
18789     found_pam_hdrs=no
18790     for ac_header in security/pam_appl.h pam/pam_appl.h
18791 do :
18792   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18793 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18795   cat >>confdefs.h <<_ACEOF
18796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18797 _ACEOF
18798  found_pam_hdrs=yes; break
18799 fi
18800
18801 done
18802
18803     if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
18804         # Found both PAM libs and headers
18805         with_pam=yes
18806     elif test "$with_pam" = "yes"; then
18807         if test "$found_pam_lib" = "no"; then
18808             as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
18809         fi
18810         if test "$found_pam_hdrs" = "no"; then
18811             as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
18812         fi
18813     elif test "$found_pam_lib" != "$found_pam_hdrs"; then
18814         if test "$found_pam_lib" = "no"; then
18815             as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
18816         fi
18817         if test "$found_pam_hdrs" = "no"; then
18818             as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
18819         fi
18820     fi
18821
18822     if test "$with_pam" = "yes"; then
18823         # Older PAM implementations lack pam_getenvlist
18824         OLIBS="$LIBS"
18825         LIBS="$LIBS -lpam $lt_cv_dlopen_libs"
18826         for ac_func in pam_getenvlist
18827 do :
18828   ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
18829 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
18830   cat >>confdefs.h <<_ACEOF
18831 #define HAVE_PAM_GETENVLIST 1
18832 _ACEOF
18833
18834 fi
18835 done
18836
18837         LIBS="$OLIBS"
18838
18839         # We already link with -ldl if needed (see LIBDL below)
18840         SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
18841         $as_echo "#define HAVE_PAM 1" >>confdefs.h
18842
18843         AUTH_OBJS="$AUTH_OBJS pam.lo";
18844         AUTH_EXCL=PAM
18845
18846
18847 # Check whether --with-pam-login was given.
18848 if test "${with_pam_login+set}" = set; then :
18849   withval=$with_pam_login; case $with_pam_login in
18850             yes)        $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
18851
18852                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
18853 $as_echo_n "checking whether to use PAM login... " >&6; }
18854                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18855 $as_echo "yes" >&6; }
18856                         ;;
18857             no)         ;;
18858             *)          as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
18859                         ;;
18860         esac
18861 fi
18862
18863
18864         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
18865 $as_echo_n "checking whether to use PAM session support... " >&6; }
18866         # Check whether --enable-pam_session was given.
18867 if test "${enable_pam_session+set}" = set; then :
18868   enableval=$enable_pam_session;  case "$enableval" in
18869                 yes)    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18870 $as_echo "yes" >&6; }
18871                         ;;
18872                 no)     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18873 $as_echo "no" >&6; }
18874                         $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
18875
18876                         pam_session=off
18877                         ;;
18878                 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18879 $as_echo "no" >&6; }
18880                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
18881 $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
18882                         ;;
18883             esac
18884 else
18885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18886 $as_echo "yes" >&6; }
18887 fi
18888
18889     fi
18890 fi
18891
18892 if test ${with_aixauth-'no'} != "no"; then
18893     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
18894         { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
18895 $as_echo "$as_me: using AIX general authentication" >&6;}
18896         $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
18897
18898         AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
18899         SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
18900         AUTH_EXCL=AIX_AUTH
18901     fi
18902 fi
18903
18904 if test ${with_bsdauth-'no'} != "no"; then
18905     ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
18906 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
18907   $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
18908
18909         AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
18910         BSDAUTH_USAGE='[-a auth_type] '
18911         AUTH_EXCL=BSD_AUTH; BAMAN=1
18912 else
18913   as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
18914 fi
18915
18916
18917 fi
18918
18919 if test ${CHECKSIA-'false'} = "true"; then
18920     for ac_func in sia_ses_init
18921 do :
18922   ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
18923 if test "x$ac_cv_func_sia_ses_init" = xyes; then :
18924   cat >>confdefs.h <<_ACEOF
18925 #define HAVE_SIA_SES_INIT 1
18926 _ACEOF
18927  found=true
18928 else
18929   found=false
18930 fi
18931 done
18932
18933     if test "$found" = "true"; then
18934         AUTH_EXCL=SIA
18935         AUTH_OBJS="$AUTH_OBJS sia.lo"
18936     fi
18937 fi
18938
18939 if test ${with_fwtk-'no'} != "no"; then
18940     if test "$with_fwtk" != "yes"; then
18941
18942     case "${SUDOERS_LDFLAGS}" in
18943         *"-L${with_fwtk}"|*"-L${with_fwtk} ")
18944             ;;
18945         *)
18946             SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
18947             if test X"$enable_rpath" = X"yes"; then
18948                 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_fwtk}"
18949             fi
18950             ;;
18951     esac
18952
18953
18954     case "${CPPFLAGS}" in
18955         *"-I${with_fwtk}"|*"-I${with_fwtk} ")
18956             ;;
18957         *)
18958             if test X"${CPPFLAGS}" = X""; then
18959                 CPPFLAGS="-I${with_fwtk}"
18960             else
18961                 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
18962             fi
18963             ;;
18964     esac
18965
18966         with_fwtk=yes
18967     fi
18968     SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
18969     AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18970 fi
18971
18972 if test ${with_SecurID-'no'} != "no"; then
18973     if test "$with_SecurID" != "yes"; then
18974         :
18975     elif test -d /usr/ace/examples; then
18976         with_SecurID=/usr/ace/examples
18977     else
18978         with_SecurID=/usr/ace
18979     fi
18980
18981     case "${CPPFLAGS}" in
18982         *"-I${with_SecurID}"|*"-I${with_SecurID} ")
18983             ;;
18984         *)
18985             if test X"${CPPFLAGS}" = X""; then
18986                 CPPFLAGS="-I${with_SecurID}"
18987             else
18988                 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18989             fi
18990             ;;
18991     esac
18992
18993
18994     case "${SUDOERS_LDFLAGS}" in
18995         *"-L${with_SecurID}"|*"-L${with_SecurID} ")
18996             ;;
18997         *)
18998             SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID}"
18999             if test X"$enable_rpath" = X"yes"; then
19000                 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_SecurID}"
19001             fi
19002             ;;
19003     esac
19004
19005     SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
19006     AUTH_OBJS="$AUTH_OBJS securid5.lo";
19007 fi
19008
19009
19010 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
19011     for auth in $AUTH_DEF; do
19012         case $auth in
19013             passwd)     : ${with_passwd='maybe'};;
19014         esac
19015     done
19016 fi
19017
19018 if test ${with_kerb5-'no'} != "no"; then
19019     # Extract the first word of "krb5-config", so it can be a program name with args.
19020 set dummy krb5-config; ac_word=$2
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19022 $as_echo_n "checking for $ac_word... " >&6; }
19023 if ${ac_cv_prog_KRB5CONFIG+:} false; then :
19024   $as_echo_n "(cached) " >&6
19025 else
19026   if test -n "$KRB5CONFIG"; then
19027   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
19028 else
19029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19030 for as_dir in $PATH
19031 do
19032   IFS=$as_save_IFS
19033   test -z "$as_dir" && as_dir=.
19034     for ac_exec_ext in '' $ac_executable_extensions; do
19035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19036     ac_cv_prog_KRB5CONFIG="yes"
19037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19038     break 2
19039   fi
19040 done
19041   done
19042 IFS=$as_save_IFS
19043
19044   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
19045 fi
19046 fi
19047 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
19048 if test -n "$KRB5CONFIG"; then
19049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
19050 $as_echo "$KRB5CONFIG" >&6; }
19051 else
19052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19053 $as_echo "no" >&6; }
19054 fi
19055
19056
19057     if test -n "$KRB5CONFIG"; then
19058         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
19059
19060         AUTH_OBJS="$AUTH_OBJS kerb5.lo"
19061         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
19062         SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
19063                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
19064 $as_echo_n "checking whether we are using Heimdal... " >&6; }
19065         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h.  */
19067 #include <krb5.h>
19068 int
19069 main ()
19070 {
19071 const char *tmp = heimdal_version;
19072   ;
19073   return 0;
19074 }
19075 _ACEOF
19076 if ac_fn_c_try_compile "$LINENO"; then :
19077
19078                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19079 $as_echo "yes" >&6; }
19080                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
19081
19082
19083 else
19084
19085                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19086 $as_echo "no" >&6; }
19087
19088
19089 fi
19090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19091     else
19092         $as_echo "#define HAVE_KERB5 1" >>confdefs.h
19093
19094                                 if test "$with_kerb5" = "yes"; then
19095             found=no
19096             O_CPPFLAGS="$CPPFLAGS"
19097             for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
19098                 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
19099                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h.  */
19101 #include <krb5.h>
19102 int
19103 main ()
19104 {
19105
19106   ;
19107   return 0;
19108 }
19109 _ACEOF
19110 if ac_fn_c_try_cpp "$LINENO"; then :
19111   found=yes; break
19112 fi
19113 rm -f conftest.err conftest.i conftest.$ac_ext
19114             done
19115             if test X"$found" = X"no"; then
19116                 CPPFLAGS="$O_CPPFLAGS"
19117                 { $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
19118 $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;}
19119             fi
19120         else
19121
19122     case "${SUDOERS_LDFLAGS}" in
19123         *"-L${with_kerb5}/lib"|*"-L${with_kerb5}/lib ")
19124             ;;
19125         *)
19126             SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
19127             if test X"$enable_rpath" = X"yes"; then
19128                 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_kerb5}/lib"
19129             fi
19130             ;;
19131     esac
19132
19133
19134     case "${CPPFLAGS}" in
19135         *"-I${with_kerb5}/include"|*"-I${with_kerb5}/include ")
19136             ;;
19137         *)
19138             if test X"${CPPFLAGS}" = X""; then
19139                 CPPFLAGS="-I${with_kerb5}/include"
19140             else
19141                 CPPFLAGS="${CPPFLAGS} -I${with_kerb5}/include"
19142             fi
19143             ;;
19144     esac
19145
19146         fi
19147
19148                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
19149 $as_echo_n "checking whether we are using Heimdal... " >&6; }
19150         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h.  */
19152 #include <krb5.h>
19153 int
19154 main ()
19155 {
19156 const char *tmp = heimdal_version;
19157   ;
19158   return 0;
19159 }
19160 _ACEOF
19161 if ac_fn_c_try_compile "$LINENO"; then :
19162
19163                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19164 $as_echo "yes" >&6; }
19165                 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
19166
19167                 # XXX - need to check whether -lcrypo is needed!
19168                 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
19169                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
19170 $as_echo_n "checking for main in -lroken... " >&6; }
19171 if ${ac_cv_lib_roken_main+:} false; then :
19172   $as_echo_n "(cached) " >&6
19173 else
19174   ac_check_lib_save_LIBS=$LIBS
19175 LIBS="-lroken  $LIBS"
19176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177 /* end confdefs.h.  */
19178
19179
19180 int
19181 main ()
19182 {
19183 return main ();
19184   ;
19185   return 0;
19186 }
19187 _ACEOF
19188 if ac_fn_c_try_link "$LINENO"; then :
19189   ac_cv_lib_roken_main=yes
19190 else
19191   ac_cv_lib_roken_main=no
19192 fi
19193 rm -f core conftest.err conftest.$ac_objext \
19194     conftest$ac_exeext conftest.$ac_ext
19195 LIBS=$ac_check_lib_save_LIBS
19196 fi
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
19198 $as_echo "$ac_cv_lib_roken_main" >&6; }
19199 if test "x$ac_cv_lib_roken_main" = xyes; then :
19200   SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
19201 fi
19202
19203
19204 else
19205
19206                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19207 $as_echo "no" >&6; }
19208                 SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
19209                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
19210 $as_echo_n "checking for main in -lkrb5support... " >&6; }
19211 if ${ac_cv_lib_krb5support_main+:} false; then :
19212   $as_echo_n "(cached) " >&6
19213 else
19214   ac_check_lib_save_LIBS=$LIBS
19215 LIBS="-lkrb5support  $LIBS"
19216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19217 /* end confdefs.h.  */
19218
19219
19220 int
19221 main ()
19222 {
19223 return main ();
19224   ;
19225   return 0;
19226 }
19227 _ACEOF
19228 if ac_fn_c_try_link "$LINENO"; then :
19229   ac_cv_lib_krb5support_main=yes
19230 else
19231   ac_cv_lib_krb5support_main=no
19232 fi
19233 rm -f core conftest.err conftest.$ac_objext \
19234     conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19236 fi
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
19238 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
19239 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
19240   SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
19241 fi
19242
19243
19244 fi
19245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19246         AUTH_OBJS="$AUTH_OBJS kerb5.lo"
19247     fi
19248     _LIBS="$LIBS"
19249     LIBS="${LIBS} ${SUDOERS_LIBS}"
19250     for ac_func in krb5_verify_user krb5_init_secure_context
19251 do :
19252   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19254 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19255   cat >>confdefs.h <<_ACEOF
19256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19257 _ACEOF
19258
19259 fi
19260 done
19261
19262     for ac_func in krb5_get_init_creds_opt_alloc
19263 do :
19264   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
19265 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
19266   cat >>confdefs.h <<_ACEOF
19267 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
19268 _ACEOF
19269
19270         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
19271 $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
19272 if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
19273   $as_echo_n "(cached) " >&6
19274 else
19275
19276                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h.  */
19278 #include <krb5.h>
19279 int
19280 main ()
19281 {
19282 krb5_get_init_creds_opt_free(NULL, NULL);
19283
19284   ;
19285   return 0;
19286 }
19287 _ACEOF
19288 if ac_fn_c_try_compile "$LINENO"; then :
19289   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
19290 else
19291   sudo_cv_krb5_get_init_creds_opt_free_two_args=no
19292
19293 fi
19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19295
19296
19297 fi
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
19299 $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
19300
19301 fi
19302 done
19303
19304     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
19305         $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
19306
19307     fi
19308     LIBS="$_LIBS"
19309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
19310 $as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
19311     # Check whether --enable-kerb5-instance was given.
19312 if test "${enable_kerb5_instance+set}" = set; then :
19313   enableval=$enable_kerb5_instance;  case "$enableval" in
19314             yes)        as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
19315                         ;;
19316             no)         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19317 $as_echo "no" >&6; }
19318                         ;;
19319             *)          cat >>confdefs.h <<EOF
19320 #define SUDO_KRB5_INSTANCE "$enableval"
19321 EOF
19322
19323                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
19324 $as_echo "$enableval" >&6; }
19325                         ;;
19326         esac
19327 else
19328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19329 $as_echo "no" >&6; }
19330 fi
19331
19332 fi
19333
19334 if test ${with_AFS-'no'} = "yes"; then
19335
19336     # looks like the "standard" place for AFS libs is /usr/afsws/lib
19337     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
19338     for i in $AFSLIBDIRS; do
19339         if test -d ${i}; then
19340
19341     case "${SUDOERS_LDFLAGS}" in
19342         *"-L$i"|*"-L$i ")
19343             ;;
19344         *)
19345             SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
19346             if test X"$enable_rpath" = X"yes"; then
19347                 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R$i"
19348             fi
19349             ;;
19350     esac
19351
19352             FOUND_AFSLIBDIR=true
19353         fi
19354     done
19355     if test -z "$FOUND_AFSLIBDIR"; then
19356         { $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
19357 $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;}
19358     fi
19359
19360     # Order is important here.  Note that we build AFS_LIBS from right to left
19361     # since AFS_LIBS may be initialized with BSD compat libs that must go last
19362     AFS_LIBS="-laudit ${AFS_LIBS}"
19363     for i in $AFSLIBDIRS; do
19364         if test -f ${i}/util.a; then
19365             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
19366             FOUND_UTIL_A=true
19367             break;
19368         fi
19369     done
19370     if test -z "$FOUND_UTIL_A"; then
19371         AFS_LIBS="-lutil ${AFS_LIBS}"
19372     fi
19373     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
19374
19375     # AFS includes may live in /usr/include on some machines...
19376     for i in /usr/afsws/include; do
19377         if test -d ${i}; then
19378
19379     case "${CPPFLAGS}" in
19380         *"-I${i}"|*"-I${i} ")
19381             ;;
19382         *)
19383             if test X"${CPPFLAGS}" = X""; then
19384                 CPPFLAGS="-I${i}"
19385             else
19386                 CPPFLAGS="${CPPFLAGS} -I${i}"
19387             fi
19388             ;;
19389     esac
19390
19391             FOUND_AFSINCDIR=true
19392         fi
19393     done
19394
19395     if test -z "$FOUND_AFSLIBDIR"; then
19396         { $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
19397 $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;}
19398     fi
19399
19400     AUTH_OBJS="$AUTH_OBJS afs.lo"
19401 fi
19402
19403 if test ${with_DCE-'no'} = "yes"; then
19404     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
19405     SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
19406     AUTH_OBJS="$AUTH_OBJS dce.lo"
19407 fi
19408
19409 if test "${with_skey-'no'}" = "yes"; then
19410     O_LDFLAGS="$LDFLAGS"
19411     if test "$with_skey" != "yes"; then
19412
19413     case "${CPPFLAGS}" in
19414         *"-I${with_skey}/include"|*"-I${with_skey}/include ")
19415             ;;
19416         *)
19417             if test X"${CPPFLAGS}" = X""; then
19418                 CPPFLAGS="-I${with_skey}/include"
19419             else
19420                 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
19421             fi
19422             ;;
19423     esac
19424
19425         LDFLAGS="$LDFLAGS -L${with_skey}/lib"
19426
19427     case "${SUDOERS_LDFLAGS}" in
19428         *"-L${with_skey}/lib"|*"-L${with_skey}/lib ")
19429             ;;
19430         *)
19431             SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
19432             if test X"$enable_rpath" = X"yes"; then
19433                 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_skey}/lib"
19434             fi
19435             ;;
19436     esac
19437
19438         ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19439 "
19440 if test "x$ac_cv_header_skey_h" = xyes; then :
19441   found=yes
19442 else
19443   found=no
19444 fi
19445
19446
19447     else
19448         found=no
19449         O_CPPFLAGS="$CPPFLAGS"
19450         for dir in "" "/usr/local" "/usr/contrib"; do
19451             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19452             ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19453 "
19454 if test "x$ac_cv_header_skey_h" = xyes; then :
19455   found=yes; break
19456 fi
19457
19458
19459         done
19460         if test "$found" = "no" -o -z "$dir"; then
19461             CPPFLAGS="$O_CPPFLAGS"
19462         else
19463             LDFLAGS="$LDFLAGS -L${dir}/lib"
19464
19465     case "${SUDOERS_LDFLAGS}" in
19466         *"-L${dir}/lib"|*"-L${dir}/lib ")
19467             ;;
19468         *)
19469             SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19470             if test X"$enable_rpath" = X"yes"; then
19471                 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${dir}/lib"
19472             fi
19473             ;;
19474     esac
19475
19476         fi
19477         if test "$found" = "no"; then
19478             { $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
19479 $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;}
19480         fi
19481     fi
19482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
19483 $as_echo_n "checking for main in -lskey... " >&6; }
19484 if ${ac_cv_lib_skey_main+:} false; then :
19485   $as_echo_n "(cached) " >&6
19486 else
19487   ac_check_lib_save_LIBS=$LIBS
19488 LIBS="-lskey  $LIBS"
19489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490 /* end confdefs.h.  */
19491
19492
19493 int
19494 main ()
19495 {
19496 return main ();
19497   ;
19498   return 0;
19499 }
19500 _ACEOF
19501 if ac_fn_c_try_link "$LINENO"; then :
19502   ac_cv_lib_skey_main=yes
19503 else
19504   ac_cv_lib_skey_main=no
19505 fi
19506 rm -f core conftest.err conftest.$ac_objext \
19507     conftest$ac_exeext conftest.$ac_ext
19508 LIBS=$ac_check_lib_save_LIBS
19509 fi
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
19511 $as_echo "$ac_cv_lib_skey_main" >&6; }
19512 if test "x$ac_cv_lib_skey_main" = xyes; then :
19513   found=yes
19514 else
19515   { $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
19516 $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;}
19517 fi
19518
19519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
19520 $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
19521 if ${ac_cv_lib_skey_skeyaccess+:} false; then :
19522   $as_echo_n "(cached) " >&6
19523 else
19524   ac_check_lib_save_LIBS=$LIBS
19525 LIBS="-lskey  $LIBS"
19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527 /* end confdefs.h.  */
19528
19529 /* Override any GCC internal prototype to avoid an error.
19530    Use char because int might match the return type of a GCC
19531    builtin and then its argument prototype would still apply.  */
19532 #ifdef __cplusplus
19533 extern "C"
19534 #endif
19535 char skeyaccess ();
19536 int
19537 main ()
19538 {
19539 return skeyaccess ();
19540   ;
19541   return 0;
19542 }
19543 _ACEOF
19544 if ac_fn_c_try_link "$LINENO"; then :
19545   ac_cv_lib_skey_skeyaccess=yes
19546 else
19547   ac_cv_lib_skey_skeyaccess=no
19548 fi
19549 rm -f core conftest.err conftest.$ac_objext \
19550     conftest$ac_exeext conftest.$ac_ext
19551 LIBS=$ac_check_lib_save_LIBS
19552 fi
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
19554 $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
19555 if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
19556   $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
19557
19558 fi
19559
19560
19561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
19562 $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
19563     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19564 /* end confdefs.h.  */
19565 #include <stdio.h>
19566             #include <skey.h>
19567 int
19568 main ()
19569 {
19570 skeychallenge(NULL, NULL, NULL, 0);
19571
19572   ;
19573   return 0;
19574 }
19575 _ACEOF
19576 if ac_fn_c_try_compile "$LINENO"; then :
19577
19578             $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
19579
19580             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19581 $as_echo "yes" >&6; }
19582
19583 else
19584
19585             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19586 $as_echo "no" >&6; }
19587
19588
19589 fi
19590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19591
19592     LDFLAGS="$O_LDFLAGS"
19593     SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
19594     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19595 fi
19596
19597 if test "${with_opie-'no'}" = "yes"; then
19598     O_LDFLAGS="$LDFLAGS"
19599     if test "$with_opie" != "yes"; then
19600
19601     case "${CPPFLAGS}" in
19602         *"-I${with_opie}/include"|*"-I${with_opie}/include ")
19603             ;;
19604         *)
19605             if test X"${CPPFLAGS}" = X""; then
19606                 CPPFLAGS="-I${with_opie}/include"
19607             else
19608                 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
19609             fi
19610             ;;
19611     esac
19612
19613         LDFLAGS="$LDFLAGS -L${with_opie}/lib"
19614
19615     case "${SUDOERS_LDFLAGS}" in
19616         *"-L${with_opie}/lib"|*"-L${with_opie}/lib ")
19617             ;;
19618         *)
19619             SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
19620             if test X"$enable_rpath" = X"yes"; then
19621                 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_opie}/lib"
19622             fi
19623             ;;
19624     esac
19625
19626         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19627 /* end confdefs.h.  */
19628 #include <opie.h>
19629 int
19630 main ()
19631 {
19632
19633   ;
19634   return 0;
19635 }
19636 _ACEOF
19637 if ac_fn_c_try_cpp "$LINENO"; then :
19638   found=yes
19639 else
19640   found=no
19641 fi
19642 rm -f conftest.err conftest.i conftest.$ac_ext
19643     else
19644         found=no
19645         O_CPPFLAGS="$CPPFLAGS"
19646         for dir in "" "/usr/local" "/usr/contrib"; do
19647             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19648             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h.  */
19650 #include <opie.h>
19651 int
19652 main ()
19653 {
19654
19655   ;
19656   return 0;
19657 }
19658 _ACEOF
19659 if ac_fn_c_try_cpp "$LINENO"; then :
19660   found=yes; break
19661 fi
19662 rm -f conftest.err conftest.i conftest.$ac_ext
19663         done
19664         if test "$found" = "no" -o -z "$dir"; then
19665             CPPFLAGS="$O_CPPFLAGS"
19666         else
19667             LDFLAGS="$LDFLAGS -L${dir}/lib"
19668
19669     case "${SUDOERS_LDFLAGS}" in
19670         *"-L${dir}/lib"|*"-L${dir}/lib ")
19671             ;;
19672         *)
19673             SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19674             if test X"$enable_rpath" = X"yes"; then
19675                 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${dir}/lib"
19676             fi
19677             ;;
19678     esac
19679
19680         fi
19681         if test "$found" = "no"; then
19682             { $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
19683 $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;}
19684         fi
19685     fi
19686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19687 $as_echo_n "checking for main in -lopie... " >&6; }
19688 if ${ac_cv_lib_opie_main+:} false; then :
19689   $as_echo_n "(cached) " >&6
19690 else
19691   ac_check_lib_save_LIBS=$LIBS
19692 LIBS="-lopie  $LIBS"
19693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19694 /* end confdefs.h.  */
19695
19696
19697 int
19698 main ()
19699 {
19700 return main ();
19701   ;
19702   return 0;
19703 }
19704 _ACEOF
19705 if ac_fn_c_try_link "$LINENO"; then :
19706   ac_cv_lib_opie_main=yes
19707 else
19708   ac_cv_lib_opie_main=no
19709 fi
19710 rm -f core conftest.err conftest.$ac_objext \
19711     conftest$ac_exeext conftest.$ac_ext
19712 LIBS=$ac_check_lib_save_LIBS
19713 fi
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19715 $as_echo "$ac_cv_lib_opie_main" >&6; }
19716 if test "x$ac_cv_lib_opie_main" = xyes; then :
19717   found=yes
19718 else
19719   { $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
19720 $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;}
19721 fi
19722
19723     LDFLAGS="$O_LDFLAGS"
19724     SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19725     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19726 fi
19727
19728 if test ${with_passwd-'no'} != "no"; then
19729                 if test -z "$LIB_CRYPT"; then
19730         _LIBS="$LIBS"
19731         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19732 $as_echo_n "checking for library containing crypt... " >&6; }
19733 if ${ac_cv_search_crypt+:} false; then :
19734   $as_echo_n "(cached) " >&6
19735 else
19736   ac_func_search_save_LIBS=$LIBS
19737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19738 /* end confdefs.h.  */
19739
19740 /* Override any GCC internal prototype to avoid an error.
19741    Use char because int might match the return type of a GCC
19742    builtin and then its argument prototype would still apply.  */
19743 #ifdef __cplusplus
19744 extern "C"
19745 #endif
19746 char crypt ();
19747 int
19748 main ()
19749 {
19750 return crypt ();
19751   ;
19752   return 0;
19753 }
19754 _ACEOF
19755 for ac_lib in '' crypt crypt_d ufc; do
19756   if test -z "$ac_lib"; then
19757     ac_res="none required"
19758   else
19759     ac_res=-l$ac_lib
19760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19761   fi
19762   if ac_fn_c_try_link "$LINENO"; then :
19763   ac_cv_search_crypt=$ac_res
19764 fi
19765 rm -f core conftest.err conftest.$ac_objext \
19766     conftest$ac_exeext
19767   if ${ac_cv_search_crypt+:} false; then :
19768   break
19769 fi
19770 done
19771 if ${ac_cv_search_crypt+:} false; then :
19772
19773 else
19774   ac_cv_search_crypt=no
19775 fi
19776 rm conftest.$ac_ext
19777 LIBS=$ac_func_search_save_LIBS
19778 fi
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19780 $as_echo "$ac_cv_search_crypt" >&6; }
19781 ac_res=$ac_cv_search_crypt
19782 if test "$ac_res" != no; then :
19783   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19784   test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19785 fi
19786
19787         LIBS="$_LIBS"
19788     fi
19789
19790     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19791         _LIBS="$LIBS"
19792         LIBS="$LIBS $shadow_libs"
19793         found=no
19794         for ac_func in $shadow_funcs
19795 do :
19796   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19797 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19798 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19799   cat >>confdefs.h <<_ACEOF
19800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19801 _ACEOF
19802  found=yes
19803 fi
19804 done
19805
19806         if test "$found" = "yes"; then
19807             SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19808         elif test -n "$shadow_libs_optional"; then
19809             LIBS="$LIBS $shadow_libs_optional"
19810             for ac_func in $shadow_funcs
19811 do :
19812   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19815   cat >>confdefs.h <<_ACEOF
19816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19817 _ACEOF
19818  found=yes
19819 fi
19820 done
19821
19822             if test "$found" = "yes"; then
19823                 SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19824             fi
19825         fi
19826         if test "$found" = "yes"; then
19827             case "$shadow_funcs" in
19828                 *getprpwnam*) SECUREWARE=1;;
19829             esac
19830             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19831         else
19832             LIBS="$_LIBS"
19833         fi
19834         CHECKSHADOW=false
19835     fi
19836     if test "$CHECKSHADOW" = "true"; then
19837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19838 $as_echo_n "checking for library containing getspnam... " >&6; }
19839 if ${ac_cv_search_getspnam+:} false; then :
19840   $as_echo_n "(cached) " >&6
19841 else
19842   ac_func_search_save_LIBS=$LIBS
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h.  */
19845
19846 /* Override any GCC internal prototype to avoid an error.
19847    Use char because int might match the return type of a GCC
19848    builtin and then its argument prototype would still apply.  */
19849 #ifdef __cplusplus
19850 extern "C"
19851 #endif
19852 char getspnam ();
19853 int
19854 main ()
19855 {
19856 return getspnam ();
19857   ;
19858   return 0;
19859 }
19860 _ACEOF
19861 for ac_lib in '' gen; do
19862   if test -z "$ac_lib"; then
19863     ac_res="none required"
19864   else
19865     ac_res=-l$ac_lib
19866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19867   fi
19868   if ac_fn_c_try_link "$LINENO"; then :
19869   ac_cv_search_getspnam=$ac_res
19870 fi
19871 rm -f core conftest.err conftest.$ac_objext \
19872     conftest$ac_exeext
19873   if ${ac_cv_search_getspnam+:} false; then :
19874   break
19875 fi
19876 done
19877 if ${ac_cv_search_getspnam+:} false; then :
19878
19879 else
19880   ac_cv_search_getspnam=no
19881 fi
19882 rm conftest.$ac_ext
19883 LIBS=$ac_func_search_save_LIBS
19884 fi
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19886 $as_echo "$ac_cv_search_getspnam" >&6; }
19887 ac_res=$ac_cv_search_getspnam
19888 if test "$ac_res" != no; then :
19889   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19890   $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19891  CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19892 fi
19893
19894     fi
19895     if test "$CHECKSHADOW" = "true"; then
19896         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19897 $as_echo_n "checking for library containing getprpwnam... " >&6; }
19898 if ${ac_cv_search_getprpwnam+:} false; then :
19899   $as_echo_n "(cached) " >&6
19900 else
19901   ac_func_search_save_LIBS=$LIBS
19902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19903 /* end confdefs.h.  */
19904
19905 /* Override any GCC internal prototype to avoid an error.
19906    Use char because int might match the return type of a GCC
19907    builtin and then its argument prototype would still apply.  */
19908 #ifdef __cplusplus
19909 extern "C"
19910 #endif
19911 char getprpwnam ();
19912 int
19913 main ()
19914 {
19915 return getprpwnam ();
19916   ;
19917   return 0;
19918 }
19919 _ACEOF
19920 for ac_lib in '' sec security prot; do
19921   if test -z "$ac_lib"; then
19922     ac_res="none required"
19923   else
19924     ac_res=-l$ac_lib
19925     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19926   fi
19927   if ac_fn_c_try_link "$LINENO"; then :
19928   ac_cv_search_getprpwnam=$ac_res
19929 fi
19930 rm -f core conftest.err conftest.$ac_objext \
19931     conftest$ac_exeext
19932   if ${ac_cv_search_getprpwnam+:} false; then :
19933   break
19934 fi
19935 done
19936 if ${ac_cv_search_getprpwnam+:} false; then :
19937
19938 else
19939   ac_cv_search_getprpwnam=no
19940 fi
19941 rm conftest.$ac_ext
19942 LIBS=$ac_func_search_save_LIBS
19943 fi
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19945 $as_echo "$ac_cv_search_getprpwnam" >&6; }
19946 ac_res=$ac_cv_search_getprpwnam
19947 if test "$ac_res" != no; then :
19948   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19949   $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19950  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19951 fi
19952
19953     fi
19954     if test -n "$SECUREWARE"; then
19955         for ac_func in bigcrypt set_auth_parameters initprivs
19956 do :
19957   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19958 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19960   cat >>confdefs.h <<_ACEOF
19961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19962 _ACEOF
19963
19964 fi
19965 done
19966
19967         AUTH_OBJS="$AUTH_OBJS secureware.lo"
19968     fi
19969 fi
19970
19971 if test ${with_ldap-'no'} != "no"; then
19972     O_LDFLAGS="$LDFLAGS"
19973     if test "$with_ldap" != "yes"; then
19974
19975     case "${SUDOERS_LDFLAGS}" in
19976         *"-L${with_ldap}/lib"|*"-L${with_ldap}/lib ")
19977             ;;
19978         *)
19979             SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19980             if test X"$enable_rpath" = X"yes"; then
19981                 SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_ldap}/lib"
19982             fi
19983             ;;
19984     esac
19985
19986         LDFLAGS="$LDFLAGS -L${with_ldap}/lib"
19987
19988     case "${CPPFLAGS}" in
19989         *"-I${with_ldap}/include"|*"-I${with_ldap}/include ")
19990             ;;
19991         *)
19992             if test X"${CPPFLAGS}" = X""; then
19993                 CPPFLAGS="-I${with_ldap}/include"
19994             else
19995                 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19996             fi
19997             ;;
19998     esac
19999
20000         with_ldap=yes
20001     fi
20002     SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
20003     LDAP=""
20004
20005     _LIBS="$LIBS"
20006     LDAP_LIBS=""
20007     IBMLDAP_EXTRA=""
20008     found=no
20009     # On HP-UX, libibmldap has a hidden dependency on libCsup
20010     case "$host_os" in
20011         hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCsup" >&5
20012 $as_echo_n "checking for main in -lCsup... " >&6; }
20013 if ${ac_cv_lib_Csup_main+:} false; then :
20014   $as_echo_n "(cached) " >&6
20015 else
20016   ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-lCsup  $LIBS"
20018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20019 /* end confdefs.h.  */
20020
20021
20022 int
20023 main ()
20024 {
20025 return main ();
20026   ;
20027   return 0;
20028 }
20029 _ACEOF
20030 if ac_fn_c_try_link "$LINENO"; then :
20031   ac_cv_lib_Csup_main=yes
20032 else
20033   ac_cv_lib_Csup_main=no
20034 fi
20035 rm -f core conftest.err conftest.$ac_objext \
20036     conftest$ac_exeext conftest.$ac_ext
20037 LIBS=$ac_check_lib_save_LIBS
20038 fi
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Csup_main" >&5
20040 $as_echo "$ac_cv_lib_Csup_main" >&6; }
20041 if test "x$ac_cv_lib_Csup_main" = xyes; then :
20042   IBMLDAP_EXTRA=" -lCsup"
20043 fi
20044 ;;
20045     esac
20046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
20047 $as_echo_n "checking for library containing ldap_init... " >&6; }
20048 if ${ac_cv_search_ldap_init+:} false; then :
20049   $as_echo_n "(cached) " >&6
20050 else
20051   ac_func_search_save_LIBS=$LIBS
20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h.  */
20054
20055 /* Override any GCC internal prototype to avoid an error.
20056    Use char because int might match the return type of a GCC
20057    builtin and then its argument prototype would still apply.  */
20058 #ifdef __cplusplus
20059 extern "C"
20060 #endif
20061 char ldap_init ();
20062 int
20063 main ()
20064 {
20065 return ldap_init ();
20066   ;
20067   return 0;
20068 }
20069 _ACEOF
20070 for ac_lib in '' "ldap" "ldap -llber" "ldap -llber -lssl -lcrypto" "ibmldap${IBMLDAP_EXTRA}" "ibmldap -lidsldif${IBMLDAP_EXTRA}"; do
20071   if test -z "$ac_lib"; then
20072     ac_res="none required"
20073   else
20074     ac_res=-l$ac_lib
20075     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20076   fi
20077   if ac_fn_c_try_link "$LINENO"; then :
20078   ac_cv_search_ldap_init=$ac_res
20079 fi
20080 rm -f core conftest.err conftest.$ac_objext \
20081     conftest$ac_exeext
20082   if ${ac_cv_search_ldap_init+:} false; then :
20083   break
20084 fi
20085 done
20086 if ${ac_cv_search_ldap_init+:} false; then :
20087
20088 else
20089   ac_cv_search_ldap_init=no
20090 fi
20091 rm conftest.$ac_ext
20092 LIBS=$ac_func_search_save_LIBS
20093 fi
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
20095 $as_echo "$ac_cv_search_ldap_init" >&6; }
20096 ac_res=$ac_cv_search_ldap_init
20097 if test "$ac_res" != no; then :
20098   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20099
20100         test "$ac_res" != "none required" && LDAP_LIBS="$ac_res"
20101         found=yes
20102
20103 fi
20104
20105     # If nothing linked, try -lldap and hope for the best
20106     if test "$found" = "no"; then
20107         LDAP_LIBS="-lldap"
20108     fi
20109     LIBS="${_LIBS} ${LDAP_LIBS}"
20110         OLIBS="$LIBS"
20111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
20112 $as_echo_n "checking for library containing ber_set_option... " >&6; }
20113 if ${ac_cv_search_ber_set_option+:} false; then :
20114   $as_echo_n "(cached) " >&6
20115 else
20116   ac_func_search_save_LIBS=$LIBS
20117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h.  */
20119
20120 /* Override any GCC internal prototype to avoid an error.
20121    Use char because int might match the return type of a GCC
20122    builtin and then its argument prototype would still apply.  */
20123 #ifdef __cplusplus
20124 extern "C"
20125 #endif
20126 char ber_set_option ();
20127 int
20128 main ()
20129 {
20130 return ber_set_option ();
20131   ;
20132   return 0;
20133 }
20134 _ACEOF
20135 for ac_lib in '' lber; do
20136   if test -z "$ac_lib"; then
20137     ac_res="none required"
20138   else
20139     ac_res=-l$ac_lib
20140     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20141   fi
20142   if ac_fn_c_try_link "$LINENO"; then :
20143   ac_cv_search_ber_set_option=$ac_res
20144 fi
20145 rm -f core conftest.err conftest.$ac_objext \
20146     conftest$ac_exeext
20147   if ${ac_cv_search_ber_set_option+:} false; then :
20148   break
20149 fi
20150 done
20151 if ${ac_cv_search_ber_set_option+:} false; then :
20152
20153 else
20154   ac_cv_search_ber_set_option=no
20155 fi
20156 rm conftest.$ac_ext
20157 LIBS=$ac_func_search_save_LIBS
20158 fi
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
20160 $as_echo "$ac_cv_search_ber_set_option" >&6; }
20161 ac_res=$ac_cv_search_ber_set_option
20162 if test "$ac_res" != no; then :
20163   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20164   found=yes
20165 else
20166   found=no
20167 fi
20168
20169     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
20170         LDAP_LIBS="$LDAP_LIBS -llber"
20171     fi
20172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
20173 $as_echo_n "checking whether lber.h is needed... " >&6; }
20174     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h.  */
20176 #include <sys/types.h>
20177     #include <ldap.h>
20178 int
20179 main ()
20180 {
20181 (void)ldap_init(0, 0)
20182   ;
20183   return 0;
20184 }
20185 _ACEOF
20186 if ac_fn_c_try_link "$LINENO"; then :
20187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20188 $as_echo "no" >&6; }
20189 else
20190
20191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20192 $as_echo "yes" >&6; }
20193     $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
20194
20195 fi
20196 rm -f core conftest.err conftest.$ac_objext \
20197     conftest$ac_exeext conftest.$ac_ext
20198
20199     for ac_header in sasl/sasl.h sasl.h
20200 do :
20201   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20202 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20203 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20204   cat >>confdefs.h <<_ACEOF
20205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20206 _ACEOF
20207
20208         for ac_func in ldap_sasl_interactive_bind_s
20209 do :
20210   ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
20211 if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
20212   cat >>confdefs.h <<_ACEOF
20213 #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
20214 _ACEOF
20215
20216 fi
20217 done
20218
20219         break
20220
20221 fi
20222
20223 done
20224
20225     for ac_header in ldap_ssl.h mps/ldap_ssl.h
20226 do :
20227   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20228 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
20229 "
20230 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20231   cat >>confdefs.h <<_ACEOF
20232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20233 _ACEOF
20234  break
20235 fi
20236
20237 done
20238
20239     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_init ldap_ssl_client_init ldap_start_tls_s_np
20240 do :
20241   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20242 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20243 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20244   cat >>confdefs.h <<_ACEOF
20245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20246 _ACEOF
20247
20248 fi
20249 done
20250
20251     for ac_func in ldap_search_ext_s ldap_search_st
20252 do :
20253   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20255 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20256   cat >>confdefs.h <<_ACEOF
20257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20258 _ACEOF
20259  break
20260 fi
20261 done
20262
20263
20264     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
20265         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
20266 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
20267 if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
20268   $as_echo_n "(cached) " >&6
20269 else
20270   ac_check_lib_save_LIBS=$LIBS
20271 LIBS="-lgssapi  $LIBS"
20272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20273 /* end confdefs.h.  */
20274
20275 /* Override any GCC internal prototype to avoid an error.
20276    Use char because int might match the return type of a GCC
20277    builtin and then its argument prototype would still apply.  */
20278 #ifdef __cplusplus
20279 extern "C"
20280 #endif
20281 char gss_krb5_ccache_name ();
20282 int
20283 main ()
20284 {
20285 return gss_krb5_ccache_name ();
20286   ;
20287   return 0;
20288 }
20289 _ACEOF
20290 if ac_fn_c_try_link "$LINENO"; then :
20291   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
20292 else
20293   ac_cv_lib_gssapi_gss_krb5_ccache_name=no
20294 fi
20295 rm -f core conftest.err conftest.$ac_objext \
20296     conftest$ac_exeext conftest.$ac_ext
20297 LIBS=$ac_check_lib_save_LIBS
20298 fi
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
20300 $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
20301 if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
20302   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20303
20304             LDAP_LIBS="${LDAP_LIBS} -lgssapi"
20305 else
20306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
20307 $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
20308 if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
20309   $as_echo_n "(cached) " >&6
20310 else
20311   ac_check_lib_save_LIBS=$LIBS
20312 LIBS="-lgssapi_krb5  $LIBS"
20313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20314 /* end confdefs.h.  */
20315
20316 /* Override any GCC internal prototype to avoid an error.
20317    Use char because int might match the return type of a GCC
20318    builtin and then its argument prototype would still apply.  */
20319 #ifdef __cplusplus
20320 extern "C"
20321 #endif
20322 char gss_krb5_ccache_name ();
20323 int
20324 main ()
20325 {
20326 return gss_krb5_ccache_name ();
20327   ;
20328   return 0;
20329 }
20330 _ACEOF
20331 if ac_fn_c_try_link "$LINENO"; then :
20332   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
20333 else
20334   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
20335 fi
20336 rm -f core conftest.err conftest.$ac_objext \
20337     conftest$ac_exeext conftest.$ac_ext
20338 LIBS=$ac_check_lib_save_LIBS
20339 fi
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
20341 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
20342 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
20343   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20344
20345                 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
20346 fi
20347
20348
20349 fi
20350
20351
20352         # gssapi headers may be separate or part of Kerberos V
20353         found=no
20354         O_CPPFLAGS="$CPPFLAGS"
20355         for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
20356             test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20357             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20358 /* end confdefs.h.  */
20359 #include <gssapi/gssapi.h>
20360 int
20361 main ()
20362 {
20363
20364   ;
20365   return 0;
20366 }
20367 _ACEOF
20368 if ac_fn_c_try_cpp "$LINENO"; then :
20369   found="gssapi/gssapi.h"; break
20370 else
20371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20372 /* end confdefs.h.  */
20373 #include <gssapi.h>
20374 int
20375 main ()
20376 {
20377
20378   ;
20379   return 0;
20380 }
20381 _ACEOF
20382 if ac_fn_c_try_cpp "$LINENO"; then :
20383   found="gssapi.h"; break
20384 fi
20385 rm -f conftest.err conftest.i conftest.$ac_ext
20386 fi
20387 rm -f conftest.err conftest.i conftest.$ac_ext
20388         done
20389         if test X"$found" != X"no"; then
20390             for ac_header in $found
20391 do :
20392   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20393 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20394 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20395   cat >>confdefs.h <<_ACEOF
20396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20397 _ACEOF
20398
20399 fi
20400
20401 done
20402
20403             if test X"$found" = X"gssapi/gssapi.h"; then
20404                 for ac_header in gssapi/gssapi_krb5.h
20405 do :
20406   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
20407 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
20408   cat >>confdefs.h <<_ACEOF
20409 #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
20410 _ACEOF
20411
20412 fi
20413
20414 done
20415
20416             fi
20417         else
20418             CPPFLAGS="$O_CPPFLAGS"
20419             { $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
20420 $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;}
20421         fi
20422     fi
20423
20424     SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
20425     LIBS="$_LIBS"
20426     LDFLAGS="$O_LDFLAGS"
20427 fi
20428
20429 #
20430 # How to do dynamic object loading.
20431 # We support dlopen() and sh_load(), else fall back to static loading.
20432 #
20433 case "$lt_cv_dlopen" in
20434     dlopen)
20435         $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
20436
20437         SUDO_OBJS="$SUDO_OBJS locale_stub.o"
20438         LT_STATIC="--tag=disable-static"
20439         ;;
20440     shl_load)
20441         $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20442
20443         SUDO_OBJS="$SUDO_OBJS locale_stub.o"
20444         LT_STATIC="--tag=disable-static"
20445         case " $LIBOBJS " in
20446   *" dlopen.$ac_objext "* ) ;;
20447   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20448  ;;
20449 esac
20450
20451         ;;
20452     *)
20453         if test X"${ac_cv_func_dlopen}" = X"yes"; then
20454             as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
20455         fi
20456         # Preload sudoers module symbols
20457         SUDO_OBJS="${SUDO_OBJS} preload.o"
20458         SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
20459         LT_STATIC=""
20460         case " $LIBOBJS " in
20461   *" dlopen.$ac_objext "* ) ;;
20462   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20463  ;;
20464 esac
20465
20466         ;;
20467 esac
20468
20469 #
20470 # Add library needed for dynamic loading, if any.
20471 #
20472 LIBDL="$lt_cv_dlopen_libs"
20473 if test X"$LIBDL" != X""; then
20474     SUDO_LIBS="${SUDO_LIBS} $LIBDL"
20475     SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
20476 fi
20477
20478 # On HP-UX, you cannot dlopen() a shared object that uses pthreads unless
20479 # the main program is linked against -lpthread.  We have no knowledge of
20480 # what libraries a plugin may depend on (e.g. HP-UX LDAP which uses pthreads)
20481 # so always link against -lpthread on HP-UX if it is available.
20482 # This check should go after all other libraries tests.
20483 case "$host_os" in
20484     hpux*)
20485         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
20486 $as_echo_n "checking for main in -lpthread... " >&6; }
20487 if ${ac_cv_lib_pthread_main+:} false; then :
20488   $as_echo_n "(cached) " >&6
20489 else
20490   ac_check_lib_save_LIBS=$LIBS
20491 LIBS="-lpthread  $LIBS"
20492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20493 /* end confdefs.h.  */
20494
20495
20496 int
20497 main ()
20498 {
20499 return main ();
20500   ;
20501   return 0;
20502 }
20503 _ACEOF
20504 if ac_fn_c_try_link "$LINENO"; then :
20505   ac_cv_lib_pthread_main=yes
20506 else
20507   ac_cv_lib_pthread_main=no
20508 fi
20509 rm -f core conftest.err conftest.$ac_objext \
20510     conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20512 fi
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
20514 $as_echo "$ac_cv_lib_pthread_main" >&6; }
20515 if test "x$ac_cv_lib_pthread_main" = xyes; then :
20516   SUDO_LIBS="${SUDO_LIBS} -lpthread"
20517 fi
20518
20519         OSDEFS="${OSDEFS} -D_REENTRANT"
20520         ;;
20521 esac
20522
20523 if test "$utmp_style" = "LEGACY"; then
20524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
20525 $as_echo_n "checking for utmp file path... " >&6; }
20526 found=no
20527 for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
20528     if test -r "$p"; then
20529         found=yes
20530         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
20531 $as_echo "$p" >&6; }
20532         cat >>confdefs.h <<EOF
20533 #define _PATH_UTMP "$p"
20534 EOF
20535
20536         break
20537     fi
20538 done
20539 if test X"$found" != X"yes"; then
20540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20541 $as_echo "not found" >&6; }
20542 fi
20543
20544 fi
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
20546 $as_echo_n "checking for log file location... " >&6; }
20547 if test -n "$with_logpath"; then
20548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
20549 $as_echo "$with_logpath" >&6; }
20550     cat >>confdefs.h <<EOF
20551 #define _PATH_SUDO_LOGFILE "$with_logpath"
20552 EOF
20553
20554 elif test -d "/var/log"; then
20555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
20556 $as_echo "/var/log/sudo.log" >&6; }
20557     cat >>confdefs.h <<\EOF
20558 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
20559 EOF
20560
20561 elif test -d "/var/adm"; then
20562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
20563 $as_echo "/var/adm/sudo.log" >&6; }
20564     cat >>confdefs.h <<\EOF
20565 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
20566 EOF
20567
20568 elif test -d "/usr/adm"; then
20569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
20570 $as_echo "/usr/adm/sudo.log" >&6; }
20571     cat >>confdefs.h <<\EOF
20572 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
20573 EOF
20574
20575 else
20576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
20577 $as_echo "unknown" >&6; }
20578 fi
20579
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
20581 $as_echo_n "checking for timestamp file location... " >&6; }
20582 timedir="$with_timedir"
20583 if test -z "$timedir"; then
20584     for d in /var/db /var/lib /var/adm /usr/adm; do
20585         if test -d "$d"; then
20586             timedir="$d/sudo"
20587             break
20588         fi
20589     done
20590 fi
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
20592 $as_echo "$timedir" >&6; }
20593 cat >>confdefs.h <<EOF
20594 #define _PATH_SUDO_TIMEDIR "$timedir"
20595 EOF
20596
20597
20598
20599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
20600 $as_echo_n "checking for I/O log dir location... " >&6; }
20601     if test "${with_iologdir-yes}" != "yes"; then
20602         iolog_dir="$with_iologdir"
20603     elif test -d "/var/log"; then
20604         iolog_dir="/var/log/sudo-io"
20605     elif test -d "/var/adm"; then
20606         iolog_dir="/var/adm/sudo-io"
20607     else
20608         iolog_dir="/usr/adm/sudo-io"
20609     fi
20610     if test "${with_iologdir}" != "no"; then
20611         cat >>confdefs.h <<EOF
20612 #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
20613 EOF
20614
20615     fi
20616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
20617 $as_echo "$iolog_dir" >&6; }
20618
20619
20620
20621 ac_c_werror_flag=yes
20622
20623 if test -n "$GCC" -a "$lt_cv_prog_gnu_ld" != "yes" -a -n "$GCC"; then
20624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -static-libgcc" >&5
20625 $as_echo_n "checking whether C compiler accepts -static-libgcc... " >&6; }
20626 if ${ax_cv_check_cflags___static_libgcc+:} false; then :
20627   $as_echo_n "(cached) " >&6
20628 else
20629
20630   ax_check_save_flags=$CFLAGS
20631   CFLAGS="$CFLAGS  -static-libgcc"
20632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20633 /* end confdefs.h.  */
20634
20635 int
20636 main ()
20637 {
20638
20639   ;
20640   return 0;
20641 }
20642 _ACEOF
20643 if ac_fn_c_try_compile "$LINENO"; then :
20644   ax_cv_check_cflags___static_libgcc=yes
20645 else
20646   ax_cv_check_cflags___static_libgcc=no
20647 fi
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20649   CFLAGS=$ax_check_save_flags
20650 fi
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___static_libgcc" >&5
20652 $as_echo "$ax_cv_check_cflags___static_libgcc" >&6; }
20653 if test x"$ax_cv_check_cflags___static_libgcc" = xyes; then :
20654   LT_LDFLAGS="$LT_LDFLAGS -Wc,-static-libgcc"
20655 else
20656   :
20657 fi
20658
20659 fi
20660
20661 if test -n "$GCC"; then
20662     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-fvisibility=hidden" | $as_tr_sh`
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
20664 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
20665 if eval \${$as_CACHEVAR+:} false; then :
20666   $as_echo_n "(cached) " >&6
20667 else
20668
20669   ax_check_save_flags=$CFLAGS
20670   CFLAGS="$CFLAGS  -fvisibility=hidden"
20671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h.  */
20673
20674 int
20675 main ()
20676 {
20677
20678   ;
20679   return 0;
20680 }
20681 _ACEOF
20682 if ac_fn_c_try_compile "$LINENO"; then :
20683   eval "$as_CACHEVAR=yes"
20684 else
20685   eval "$as_CACHEVAR=no"
20686 fi
20687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20688   CFLAGS=$ax_check_save_flags
20689 fi
20690 eval ac_res=\$$as_CACHEVAR
20691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20692 $as_echo "$ac_res" >&6; }
20693 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
20694
20695         $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20696
20697         CFLAGS="${CFLAGS} -fvisibility=hidden"
20698         LT_LDEXPORTS=
20699         LT_LDDEP=
20700         NO_VIZ=
20701
20702 else
20703   :
20704 fi
20705
20706 else
20707     case "$host_os" in
20708         hpux*)
20709             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Bhidden_def" >&5
20710 $as_echo_n "checking whether C compiler accepts -Bhidden_def... " >&6; }
20711 if ${ax_cv_check_cflags___Bhidden_def+:} false; then :
20712   $as_echo_n "(cached) " >&6
20713 else
20714
20715   ax_check_save_flags=$CFLAGS
20716   CFLAGS="$CFLAGS  -Bhidden_def"
20717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20718 /* end confdefs.h.  */
20719
20720 int
20721 main ()
20722 {
20723
20724   ;
20725   return 0;
20726 }
20727 _ACEOF
20728 if ac_fn_c_try_compile "$LINENO"; then :
20729   ax_cv_check_cflags___Bhidden_def=yes
20730 else
20731   ax_cv_check_cflags___Bhidden_def=no
20732 fi
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734   CFLAGS=$ax_check_save_flags
20735 fi
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Bhidden_def" >&5
20737 $as_echo "$ax_cv_check_cflags___Bhidden_def" >&6; }
20738 if test x"$ax_cv_check_cflags___Bhidden_def" = xyes; then :
20739
20740                 $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20741
20742                 CFLAGS="${CFLAGS} -Bhidden_def"
20743                 LT_LDEXPORTS=
20744                 LT_LDDEP=
20745
20746 else
20747   :
20748 fi
20749
20750             ;;
20751         solaris2*)
20752             as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-xldscope=hidden" | $as_tr_sh`
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -xldscope=hidden" >&5
20754 $as_echo_n "checking whether C compiler accepts -xldscope=hidden... " >&6; }
20755 if eval \${$as_CACHEVAR+:} false; then :
20756   $as_echo_n "(cached) " >&6
20757 else
20758
20759   ax_check_save_flags=$CFLAGS
20760   CFLAGS="$CFLAGS  -xldscope=hidden"
20761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20762 /* end confdefs.h.  */
20763
20764 int
20765 main ()
20766 {
20767
20768   ;
20769   return 0;
20770 }
20771 _ACEOF
20772 if ac_fn_c_try_compile "$LINENO"; then :
20773   eval "$as_CACHEVAR=yes"
20774 else
20775   eval "$as_CACHEVAR=no"
20776 fi
20777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20778   CFLAGS=$ax_check_save_flags
20779 fi
20780 eval ac_res=\$$as_CACHEVAR
20781                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20782 $as_echo "$ac_res" >&6; }
20783 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
20784
20785                 $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20786
20787                 CFLAGS="${CFLAGS} -xldscope=hidden"
20788                 LT_LDEXPORTS=
20789                 LT_LDDEP=
20790
20791 else
20792   :
20793 fi
20794
20795             ;;
20796     esac
20797 fi
20798
20799 if test -n "$LT_LDEXPORTS"; then
20800     if test "$lt_cv_prog_gnu_ld" = "yes"; then
20801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
20802 $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
20803 if ${sudo_cv_var_gnu_ld_anon_map+:} false; then :
20804   $as_echo_n "(cached) " >&6
20805 else
20806
20807                 sudo_cv_var_gnu_ld_anon_map=no
20808                 cat > conftest.map <<-EOF
20809                 {
20810                     global: foo;
20811                     local:  *;
20812                 };
20813 EOF
20814                 _CFLAGS="$CFLAGS"
20815                 CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20816                 _LDFLAGS="$LDFLAGS"
20817                 LDFLAGS="$LDFLAGS -fpic -shared -Wl,--version-script,./conftest.map"
20818                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20819 /* end confdefs.h.  */
20820 int foo;
20821 int
20822 main ()
20823 {
20824
20825   ;
20826   return 0;
20827 }
20828 _ACEOF
20829 if ac_fn_c_try_link "$LINENO"; then :
20830   sudo_cv_var_gnu_ld_anon_map=yes
20831 fi
20832 rm -f core conftest.err conftest.$ac_objext \
20833     conftest$ac_exeext conftest.$ac_ext
20834                 CFLAGS="$_CFLAGS"
20835                 LDFLAGS="$_LDFLAGS"
20836
20837
20838 fi
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gnu_ld_anon_map" >&5
20840 $as_echo "$sudo_cv_var_gnu_ld_anon_map" >&6; }
20841         if test "$sudo_cv_var_gnu_ld_anon_map" = "yes"; then
20842             LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,--version-script,\$(shlib_map)"
20843         fi
20844     else
20845         case "$host_os" in
20846             solaris2*)
20847                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
20848 $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
20849 if ${sudo_cv_var_solaris_ld_anon_map+:} false; then :
20850   $as_echo_n "(cached) " >&6
20851 else
20852
20853                         sudo_cv_var_solaris_ld_anon_map=no
20854                         cat > conftest.map <<-EOF
20855                         {
20856                             global: foo;
20857                             local:  *;
20858                         };
20859 EOF
20860                         _CFLAGS="$CFLAGS"
20861                         CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20862                         _LDFLAGS="$LDFLAGS"
20863                         LDFLAGS="$LDFLAGS -shared -Wl,-M,./conftest.map"
20864                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865 /* end confdefs.h.  */
20866 int foo;
20867 int
20868 main ()
20869 {
20870
20871   ;
20872   return 0;
20873 }
20874 _ACEOF
20875 if ac_fn_c_try_link "$LINENO"; then :
20876   sudo_cv_var_solaris_ld_anon_map=yes
20877 fi
20878 rm -f core conftest.err conftest.$ac_objext \
20879     conftest$ac_exeext conftest.$ac_ext
20880                         CFLAGS="$_CFLAGS"
20881                         LDFLAGS="$_LDFLAGS"
20882
20883
20884 fi
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_solaris_ld_anon_map" >&5
20886 $as_echo "$sudo_cv_var_solaris_ld_anon_map" >&6; }
20887                 if test "$sudo_cv_var_solaris_ld_anon_map" = "yes"; then
20888                     LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,-M,\$(shlib_map)"
20889                 fi
20890                 ;;
20891             hpux*)
20892                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports controlling exported symbols" >&5
20893 $as_echo_n "checking whether ld supports controlling exported symbols... " >&6; }
20894 if ${sudo_cv_var_hpux_ld_symbol_export+:} false; then :
20895   $as_echo_n "(cached) " >&6
20896 else
20897
20898                         sudo_cv_var_hpux_ld_symbol_export=no
20899                         echo "+e foo" > conftest.opt
20900                         _CFLAGS="$CFLAGS"
20901                         CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20902                         _LDFLAGS="$LDFLAGS"
20903                         if test -n "$GCC"; then
20904                             LDFLAGS="$LDFLAGS -shared -Wl,-c,./conftest.opt"
20905                         else
20906                             LDFLAGS="$LDFLAGS -Wl,-b -Wl,-c,./conftest.opt"
20907                         fi
20908                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909 /* end confdefs.h.  */
20910 int foo;
20911 int
20912 main ()
20913 {
20914
20915   ;
20916   return 0;
20917 }
20918 _ACEOF
20919 if ac_fn_c_try_link "$LINENO"; then :
20920   sudo_cv_var_hpux_ld_symbol_export=yes
20921 fi
20922 rm -f core conftest.err conftest.$ac_objext \
20923     conftest$ac_exeext conftest.$ac_ext
20924                         CFLAGS="$_CFLAGS"
20925                         LDFLAGS="$_LDFLAGS"
20926                         rm -f conftest.opt
20927
20928
20929 fi
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpux_ld_symbol_export" >&5
20931 $as_echo "$sudo_cv_var_hpux_ld_symbol_export" >&6; }
20932                 if test "$sudo_cv_var_hpux_ld_symbol_export" = "yes"; then
20933                     LT_LDEXPORTS=; LT_LDDEP="\$(shlib_opt)"; LT_LDOPT="-Wl,-c,\$(shlib_opt)"
20934                 fi
20935                 ;;
20936         esac
20937     fi
20938 fi
20939
20940 if test -n "$GCC"; then
20941     if test -z "$enable_pie"; then
20942         case "$host_os" in
20943             linux*)
20944                 # Attempt to build with PIE support
20945                 enable_pie="maybe"
20946                 ;;
20947         esac
20948     fi
20949     if test -n "$enable_pie"; then
20950         if test "$enable_pie" = "no"; then
20951             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-pie" >&5
20952 $as_echo_n "checking whether C compiler accepts -fno-pie... " >&6; }
20953 if ${ax_cv_check_cflags___fno_pie+:} false; then :
20954   $as_echo_n "(cached) " >&6
20955 else
20956
20957   ax_check_save_flags=$CFLAGS
20958   CFLAGS="$CFLAGS  -fno-pie"
20959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20960 /* end confdefs.h.  */
20961
20962 int
20963 main ()
20964 {
20965
20966   ;
20967   return 0;
20968 }
20969 _ACEOF
20970 if ac_fn_c_try_compile "$LINENO"; then :
20971   ax_cv_check_cflags___fno_pie=yes
20972 else
20973   ax_cv_check_cflags___fno_pie=no
20974 fi
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976   CFLAGS=$ax_check_save_flags
20977 fi
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_pie" >&5
20979 $as_echo "$ax_cv_check_cflags___fno_pie" >&6; }
20980 if test x"$ax_cv_check_cflags___fno_pie" = xyes; then :
20981
20982                 _CFLAGS="$CFLAGS"
20983                 CFLAGS="$CFLAGS -fno-pie"
20984                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -nopie" >&5
20985 $as_echo_n "checking whether the linker accepts -nopie... " >&6; }
20986 if ${ax_cv_check_ldflags___nopie+:} false; then :
20987   $as_echo_n "(cached) " >&6
20988 else
20989
20990   ax_check_save_flags=$LDFLAGS
20991   LDFLAGS="$LDFLAGS  -nopie"
20992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h.  */
20994
20995 int
20996 main ()
20997 {
20998
20999   ;
21000   return 0;
21001 }
21002 _ACEOF
21003 if ac_fn_c_try_link "$LINENO"; then :
21004   ax_cv_check_ldflags___nopie=yes
21005 else
21006   ax_cv_check_ldflags___nopie=no
21007 fi
21008 rm -f core conftest.err conftest.$ac_objext \
21009     conftest$ac_exeext conftest.$ac_ext
21010   LDFLAGS=$ax_check_save_flags
21011 fi
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___nopie" >&5
21013 $as_echo "$ax_cv_check_ldflags___nopie" >&6; }
21014 if test x"$ax_cv_check_ldflags___nopie" = xyes; then :
21015
21016                     PIE_CFLAGS="-fno-pie"
21017                     PIE_LDFLAGS="-nopie"
21018
21019 else
21020   :
21021 fi
21022
21023                 CFLAGS="$_CFLAGS"
21024
21025 else
21026   :
21027 fi
21028
21029         else
21030             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
21031 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
21032 if ${ax_cv_check_cflags___fPIE+:} false; then :
21033   $as_echo_n "(cached) " >&6
21034 else
21035
21036   ax_check_save_flags=$CFLAGS
21037   CFLAGS="$CFLAGS  -fPIE"
21038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h.  */
21040
21041 int
21042 main ()
21043 {
21044
21045   ;
21046   return 0;
21047 }
21048 _ACEOF
21049 if ac_fn_c_try_compile "$LINENO"; then :
21050   ax_cv_check_cflags___fPIE=yes
21051 else
21052   ax_cv_check_cflags___fPIE=no
21053 fi
21054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055   CFLAGS=$ax_check_save_flags
21056 fi
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
21058 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
21059 if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
21060
21061                 _CFLAGS="$CFLAGS"
21062                 CFLAGS="$CFLAGS -fPIE"
21063                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
21064 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
21065 if ${ax_cv_check_ldflags___pie+:} false; then :
21066   $as_echo_n "(cached) " >&6
21067 else
21068
21069   ax_check_save_flags=$LDFLAGS
21070   LDFLAGS="$LDFLAGS  -pie"
21071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h.  */
21073
21074 int
21075 main ()
21076 {
21077
21078   ;
21079   return 0;
21080 }
21081 _ACEOF
21082 if ac_fn_c_try_link "$LINENO"; then :
21083   ax_cv_check_ldflags___pie=yes
21084 else
21085   ax_cv_check_ldflags___pie=no
21086 fi
21087 rm -f core conftest.err conftest.$ac_objext \
21088     conftest$ac_exeext conftest.$ac_ext
21089   LDFLAGS=$ax_check_save_flags
21090 fi
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
21092 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
21093 if test x"$ax_cv_check_ldflags___pie" = xyes; then :
21094
21095                     if test "$enable_pie" = "maybe"; then
21096                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PIE support" >&5
21097 $as_echo_n "checking for working PIE support... " >&6; }
21098 if ${sudo_cv_working_pie+:} false; then :
21099   $as_echo_n "(cached) " >&6
21100 else
21101   rm -f conftestdata; > conftestdata
21102 if test "$cross_compiling" = yes; then :
21103   sudo_cv_working_pie=no
21104 else
21105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21106 /* end confdefs.h.  */
21107 $ac_includes_default
21108 main() { char *p = malloc(1024); if (p == NULL) return 1; memset(p, 0, 1024); return 0; }
21109 _ACEOF
21110 if ac_fn_c_try_run "$LINENO"; then :
21111   sudo_cv_working_pie=yes
21112 else
21113   sudo_cv_working_pie=no
21114 fi
21115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21116   conftest.$ac_objext conftest.beam conftest.$ac_ext
21117 fi
21118
21119 rm -f core core.* *.core
21120 fi
21121
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_working_pie" >&5
21123 $as_echo "$sudo_cv_working_pie" >&6; }
21124 if test $sudo_cv_working_pie = yes; then :
21125   enable_pie=yes
21126 fi
21127                     fi
21128                     if test "$enable_pie" = "yes"; then
21129                         PIE_CFLAGS="-fPIE"
21130                         PIE_LDFLAGS="-Wc,-fPIE -pie"
21131                     fi
21132
21133 else
21134   :
21135 fi
21136
21137                 CFLAGS="$_CFLAGS"
21138
21139 else
21140   :
21141 fi
21142
21143         fi
21144     fi
21145 fi
21146 if test "$enable_pie" != "yes"; then
21147     # Solaris 11.1 and higher supports tagging binaries to use ASLR
21148     case "$host_os" in
21149         solaris2.1[1-9]|solaris2.[2-9][0-9])
21150             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,aslr" >&5
21151 $as_echo_n "checking whether the linker accepts -Wl,-z,aslr... " >&6; }
21152 if ${ax_cv_check_ldflags___Wl__z_aslr+:} false; then :
21153   $as_echo_n "(cached) " >&6
21154 else
21155
21156   ax_check_save_flags=$LDFLAGS
21157   LDFLAGS="$LDFLAGS  -Wl,-z,aslr"
21158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159 /* end confdefs.h.  */
21160
21161 int
21162 main ()
21163 {
21164
21165   ;
21166   return 0;
21167 }
21168 _ACEOF
21169 if ac_fn_c_try_link "$LINENO"; then :
21170   ax_cv_check_ldflags___Wl__z_aslr=yes
21171 else
21172   ax_cv_check_ldflags___Wl__z_aslr=no
21173 fi
21174 rm -f core conftest.err conftest.$ac_objext \
21175     conftest$ac_exeext conftest.$ac_ext
21176   LDFLAGS=$ax_check_save_flags
21177 fi
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_aslr" >&5
21179 $as_echo "$ax_cv_check_ldflags___Wl__z_aslr" >&6; }
21180 if test x"$ax_cv_check_ldflags___Wl__z_aslr" = xyes; then :
21181   PIE_LDFLAGS="${PIE_LDFLAGS}${PIE_LDFLAGS+ }-Wl,-z,aslr"
21182 else
21183   :
21184 fi
21185
21186             ;;
21187     esac
21188 fi
21189
21190 if test "$enable_hardening" != "no"; then
21191     if test -n "$GCC"; then
21192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
21193 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
21194 if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
21195   $as_echo_n "(cached) " >&6
21196 else
21197
21198   ax_check_save_flags=$CFLAGS
21199   CFLAGS="$CFLAGS  -fstack-protector-all"
21200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21201 /* end confdefs.h.  */
21202
21203 int
21204 main ()
21205 {
21206
21207   ;
21208   return 0;
21209 }
21210 _ACEOF
21211 if ac_fn_c_try_compile "$LINENO"; then :
21212   ax_cv_check_cflags___fstack_protector_all=yes
21213 else
21214   ax_cv_check_cflags___fstack_protector_all=no
21215 fi
21216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21217   CFLAGS=$ax_check_save_flags
21218 fi
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
21220 $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
21221 if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
21222
21223             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
21224 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
21225 if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
21226   $as_echo_n "(cached) " >&6
21227 else
21228
21229   ax_check_save_flags=$LDFLAGS
21230   LDFLAGS="$LDFLAGS  -fstack-protector-all"
21231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21232 /* end confdefs.h.  */
21233
21234 int
21235 main ()
21236 {
21237
21238   ;
21239   return 0;
21240 }
21241 _ACEOF
21242 if ac_fn_c_try_link "$LINENO"; then :
21243   ax_cv_check_ldflags___fstack_protector_all=yes
21244 else
21245   ax_cv_check_ldflags___fstack_protector_all=no
21246 fi
21247 rm -f core conftest.err conftest.$ac_objext \
21248     conftest$ac_exeext conftest.$ac_ext
21249   LDFLAGS=$ax_check_save_flags
21250 fi
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
21252 $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
21253 if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
21254
21255                 SSP_CFLAGS="-fstack-protector-all"
21256                 SSP_LDFLAGS="-Wc,-fstack-protector-all"
21257
21258 else
21259   :
21260 fi
21261
21262
21263 else
21264   :
21265 fi
21266
21267         if test -z "$SSP_CFLAGS"; then
21268             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
21269 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
21270 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
21271   $as_echo_n "(cached) " >&6
21272 else
21273
21274   ax_check_save_flags=$CFLAGS
21275   CFLAGS="$CFLAGS  -fstack-protector"
21276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21277 /* end confdefs.h.  */
21278
21279 int
21280 main ()
21281 {
21282
21283   ;
21284   return 0;
21285 }
21286 _ACEOF
21287 if ac_fn_c_try_compile "$LINENO"; then :
21288   ax_cv_check_cflags___fstack_protector=yes
21289 else
21290   ax_cv_check_cflags___fstack_protector=no
21291 fi
21292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293   CFLAGS=$ax_check_save_flags
21294 fi
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
21296 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
21297 if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
21298
21299                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
21300 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
21301 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
21302   $as_echo_n "(cached) " >&6
21303 else
21304
21305   ax_check_save_flags=$LDFLAGS
21306   LDFLAGS="$LDFLAGS  -fstack-protector"
21307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21308 /* end confdefs.h.  */
21309
21310 int
21311 main ()
21312 {
21313
21314   ;
21315   return 0;
21316 }
21317 _ACEOF
21318 if ac_fn_c_try_link "$LINENO"; then :
21319   ax_cv_check_ldflags___fstack_protector=yes
21320 else
21321   ax_cv_check_ldflags___fstack_protector=no
21322 fi
21323 rm -f core conftest.err conftest.$ac_objext \
21324     conftest$ac_exeext conftest.$ac_ext
21325   LDFLAGS=$ax_check_save_flags
21326 fi
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
21328 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
21329 if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
21330
21331                     SSP_CFLAGS="-fstack-protector"
21332                     SSP_LDFLAGS="-Wc,-fstack-protector"
21333
21334 else
21335   :
21336 fi
21337
21338
21339 else
21340   :
21341 fi
21342
21343         fi
21344     fi
21345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
21346 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
21347 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
21348   $as_echo_n "(cached) " >&6
21349 else
21350
21351   ax_check_save_flags=$LDFLAGS
21352   LDFLAGS="$LDFLAGS  -Wl,-z,relro"
21353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354 /* end confdefs.h.  */
21355
21356 int
21357 main ()
21358 {
21359
21360   ;
21361   return 0;
21362 }
21363 _ACEOF
21364 if ac_fn_c_try_link "$LINENO"; then :
21365   ax_cv_check_ldflags___Wl__z_relro=yes
21366 else
21367   ax_cv_check_ldflags___Wl__z_relro=no
21368 fi
21369 rm -f core conftest.err conftest.$ac_objext \
21370     conftest$ac_exeext conftest.$ac_ext
21371   LDFLAGS=$ax_check_save_flags
21372 fi
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
21374 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
21375 if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
21376   LDFLAGS="${LDFLAGS} -Wl,-z,relro"
21377 else
21378   :
21379 fi
21380
21381 fi
21382
21383 case "$with_passwd" in
21384 yes|maybe)
21385     AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
21386     ;;
21387 *)
21388     $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
21389
21390     if test -z "$AUTH_OBJS"; then
21391         as_fn_error $? "no authentication methods defined." "$LINENO" 5
21392     fi
21393     ;;
21394 esac
21395 AUTH_OBJS=${AUTH_OBJS# }
21396 _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
21398 $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
21399
21400 if test -n "$LIBS"; then
21401     L="$LIBS"
21402     LIBS=
21403     for l in ${L}; do
21404         dupe=0
21405         for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
21406             test $l = $sl && dupe=1
21407         done
21408         test $dupe = 0 && LIBS="${LIBS} $l"
21409     done
21410 fi
21411
21412
21413 cat >>confdefs.h <<_ACEOF
21414 #define os_init $OS_INIT
21415 _ACEOF
21416
21417
21418 if test -n "$GCC"; then
21419     if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
21420         CFLAGS="${CFLAGS} -Wall"
21421     fi
21422     if test X"$enable_werror" = X"yes"; then
21423         CFLAGS="${CFLAGS} -Werror"
21424     fi
21425 fi
21426
21427 CROSS_COMPILING="$cross_compiling"
21428
21429 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
21430
21431 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no" -o "$enabled_shared" != X"no"; then
21432     oexec_prefix="$exec_prefix"
21433     if test "$exec_prefix" = '$(prefix)'; then
21434         if test "$prefix" = "NONE"; then
21435             exec_prefix="$ac_default_prefix"
21436         else
21437             exec_prefix="$prefix"
21438         fi
21439     fi
21440     if test X"$with_noexec" != X"no"; then
21441         PROGS="${PROGS} libsudo_noexec.la"
21442         INSTALL_NOEXEC="install-noexec"
21443
21444         noexec_file="$with_noexec"
21445         _noexec_file=
21446         while test X"$noexec_file" != X"$_noexec_file"; do
21447             _noexec_file="$noexec_file"
21448             eval noexec_file="$_noexec_file"
21449         done
21450         cat >>confdefs.h <<EOF
21451 #define _PATH_SUDO_NOEXEC "$noexec_file"
21452 EOF
21453
21454     fi
21455     if test X"$with_selinux" != X"no"; then
21456         sesh_file="$libexecdir/sudo/sesh"
21457         _sesh_file=
21458         while test X"$sesh_file" != X"$_sesh_file"; do
21459             _sesh_file="$sesh_file"
21460             eval sesh_file="$_sesh_file"
21461         done
21462         cat >>confdefs.h <<EOF
21463 #define _PATH_SUDO_SESH "$sesh_file"
21464 EOF
21465
21466     fi
21467     if test X"$enable_shared" != X"no"; then
21468         PLUGINDIR="$with_plugindir"
21469         _PLUGINDIR=
21470         while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
21471             _PLUGINDIR="$PLUGINDIR"
21472             eval PLUGINDIR="$_PLUGINDIR"
21473         done
21474         cat >>confdefs.h <<EOF
21475 #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
21476 EOF
21477
21478         cat >>confdefs.h <<EOF
21479 #define SUDOERS_PLUGIN "sudoers.so"
21480 EOF
21481
21482     fi
21483     exec_prefix="$oexec_prefix"
21484 fi
21485 if test X"$with_selinux" = X"no"; then
21486     cat >>confdefs.h <<EOF
21487 #define _PATH_SUDO_SESH NULL
21488 EOF
21489
21490 fi
21491
21492 if test X"$LDFLAGS_R" != X""; then
21493     LDFLAGS="$LDFLAGS $LDFLAGS_R"
21494 fi
21495 if test X"$SUDOERS_LDFLAGS_R" != X""; then
21496     SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS $SUDOERS_LDFLAGS_R"
21497 fi
21498 if test X"$ZLIB_R" != X""; then
21499     ZLIB="$ZLIB_R $ZLIB"
21500 fi
21501
21502 if test X"$prefix" = X"NONE"; then
21503     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
21504 else
21505     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
21506 fi
21507 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
21508 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
21509 test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
21510 test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
21511 test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
21512 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
21513 test "$localedir" = '${datarootdir}/locale' && localedir='$(datarootdir)/locale'
21514 test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var'
21515 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
21516
21517 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/group_file/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
21518
21519 cat >confcache <<\_ACEOF
21520 # This file is a shell script that caches the results of configure
21521 # tests run on this system so they can be shared between configure
21522 # scripts and configure runs, see configure's option --config-cache.
21523 # It is not useful on other systems.  If it contains results you don't
21524 # want to keep, you may remove or edit it.
21525 #
21526 # config.status only pays attention to the cache file if you give it
21527 # the --recheck option to rerun configure.
21528 #
21529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21531 # following values.
21532
21533 _ACEOF
21534
21535 # The following way of writing the cache mishandles newlines in values,
21536 # but we know of no workaround that is simple, portable, and efficient.
21537 # So, we kill variables containing newlines.
21538 # Ultrix sh set writes to stderr and can't be redirected directly,
21539 # and sets the high bit in the cache file unless we assign to the vars.
21540 (
21541   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21542     eval ac_val=\$$ac_var
21543     case $ac_val in #(
21544     *${as_nl}*)
21545       case $ac_var in #(
21546       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21548       esac
21549       case $ac_var in #(
21550       _ | IFS | as_nl) ;; #(
21551       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21552       *) { eval $ac_var=; unset $ac_var;} ;;
21553       esac ;;
21554     esac
21555   done
21556
21557   (set) 2>&1 |
21558     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21559     *${as_nl}ac_space=\ *)
21560       # `set' does not quote correctly, so add quotes: double-quote
21561       # substitution turns \\\\ into \\, and sed turns \\ into \.
21562       sed -n \
21563         "s/'/'\\\\''/g;
21564           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21565       ;; #(
21566     *)
21567       # `set' quotes correctly as required by POSIX, so do not add quotes.
21568       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21569       ;;
21570     esac |
21571     sort
21572 ) |
21573   sed '
21574      /^ac_cv_env_/b end
21575      t clear
21576      :clear
21577      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21578      t end
21579      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21580      :end' >>confcache
21581 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21582   if test -w "$cache_file"; then
21583     if test "x$cache_file" != "x/dev/null"; then
21584       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21585 $as_echo "$as_me: updating cache $cache_file" >&6;}
21586       if test ! -f "$cache_file" || test -h "$cache_file"; then
21587         cat confcache >"$cache_file"
21588       else
21589         case $cache_file in #(
21590         */* | ?:*)
21591           mv -f confcache "$cache_file"$$ &&
21592           mv -f "$cache_file"$$ "$cache_file" ;; #(
21593         *)
21594           mv -f confcache "$cache_file" ;;
21595         esac
21596       fi
21597     fi
21598   else
21599     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21600 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21601   fi
21602 fi
21603 rm -f confcache
21604
21605 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21606 # Let make expand exec_prefix.
21607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21608
21609 DEFS=-DHAVE_CONFIG_H
21610
21611 ac_libobjs=
21612 ac_ltlibobjs=
21613 U=
21614 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21615   # 1. Remove the extension, and $U if already installed.
21616   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21617   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21618   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21619   #    will be set to the directory where LIBOBJS objects are built.
21620   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21621   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21622 done
21623 LIBOBJS=$ac_libobjs
21624
21625 LTLIBOBJS=$ac_ltlibobjs
21626
21627
21628
21629 : "${CONFIG_STATUS=./config.status}"
21630 ac_write_fail=0
21631 ac_clean_files_save=$ac_clean_files
21632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21634 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21635 as_write_fail=0
21636 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21637 #! $SHELL
21638 # Generated by $as_me.
21639 # Run this file to recreate the current configuration.
21640 # Compiler output produced by configure, useful for debugging
21641 # configure, is in config.log if it exists.
21642
21643 debug=false
21644 ac_cs_recheck=false
21645 ac_cs_silent=false
21646
21647 SHELL=\${CONFIG_SHELL-$SHELL}
21648 export SHELL
21649 _ASEOF
21650 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21651 ## -------------------- ##
21652 ## M4sh Initialization. ##
21653 ## -------------------- ##
21654
21655 # Be more Bourne compatible
21656 DUALCASE=1; export DUALCASE # for MKS sh
21657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21658   emulate sh
21659   NULLCMD=:
21660   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21661   # is contrary to our usage.  Disable this feature.
21662   alias -g '${1+"$@"}'='"$@"'
21663   setopt NO_GLOB_SUBST
21664 else
21665   case `(set -o) 2>/dev/null` in #(
21666   *posix*) :
21667     set -o posix ;; #(
21668   *) :
21669      ;;
21670 esac
21671 fi
21672
21673
21674 as_nl='
21675 '
21676 export as_nl
21677 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21681 # Prefer a ksh shell builtin over an external printf program on Solaris,
21682 # but without wasting forks for bash or zsh.
21683 if test -z "$BASH_VERSION$ZSH_VERSION" \
21684     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21685   as_echo='print -r --'
21686   as_echo_n='print -rn --'
21687 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21688   as_echo='printf %s\n'
21689   as_echo_n='printf %s'
21690 else
21691   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21692     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21693     as_echo_n='/usr/ucb/echo -n'
21694   else
21695     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21696     as_echo_n_body='eval
21697       arg=$1;
21698       case $arg in #(
21699       *"$as_nl"*)
21700         expr "X$arg" : "X\\(.*\\)$as_nl";
21701         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21702       esac;
21703       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21704     '
21705     export as_echo_n_body
21706     as_echo_n='sh -c $as_echo_n_body as_echo'
21707   fi
21708   export as_echo_body
21709   as_echo='sh -c $as_echo_body as_echo'
21710 fi
21711
21712 # The user is always right.
21713 if test "${PATH_SEPARATOR+set}" != set; then
21714   PATH_SEPARATOR=:
21715   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21716     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21717       PATH_SEPARATOR=';'
21718   }
21719 fi
21720
21721
21722 # IFS
21723 # We need space, tab and new line, in precisely that order.  Quoting is
21724 # there to prevent editors from complaining about space-tab.
21725 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21726 # splitting by setting IFS to empty value.)
21727 IFS=" ""        $as_nl"
21728
21729 # Find who we are.  Look in the path if we contain no directory separator.
21730 as_myself=
21731 case $0 in #((
21732   *[\\/]* ) as_myself=$0 ;;
21733   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21734 for as_dir in $PATH
21735 do
21736   IFS=$as_save_IFS
21737   test -z "$as_dir" && as_dir=.
21738     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21739   done
21740 IFS=$as_save_IFS
21741
21742      ;;
21743 esac
21744 # We did not find ourselves, most probably we were run as `sh COMMAND'
21745 # in which case we are not to be found in the path.
21746 if test "x$as_myself" = x; then
21747   as_myself=$0
21748 fi
21749 if test ! -f "$as_myself"; then
21750   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21751   exit 1
21752 fi
21753
21754 # Unset variables that we do not need and which cause bugs (e.g. in
21755 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21756 # suppresses any "Segmentation fault" message there.  '((' could
21757 # trigger a bug in pdksh 5.2.14.
21758 for as_var in BASH_ENV ENV MAIL MAILPATH
21759 do eval test x\${$as_var+set} = xset \
21760   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21761 done
21762 PS1='$ '
21763 PS2='> '
21764 PS4='+ '
21765
21766 # NLS nuisances.
21767 LC_ALL=C
21768 export LC_ALL
21769 LANGUAGE=C
21770 export LANGUAGE
21771
21772 # CDPATH.
21773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21774
21775
21776 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21777 # ----------------------------------------
21778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21780 # script with STATUS, using 1 if that was 0.
21781 as_fn_error ()
21782 {
21783   as_status=$1; test $as_status -eq 0 && as_status=1
21784   if test "$4"; then
21785     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21786     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21787   fi
21788   $as_echo "$as_me: error: $2" >&2
21789   as_fn_exit $as_status
21790 } # as_fn_error
21791
21792
21793 # as_fn_set_status STATUS
21794 # -----------------------
21795 # Set $? to STATUS, without forking.
21796 as_fn_set_status ()
21797 {
21798   return $1
21799 } # as_fn_set_status
21800
21801 # as_fn_exit STATUS
21802 # -----------------
21803 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21804 as_fn_exit ()
21805 {
21806   set +e
21807   as_fn_set_status $1
21808   exit $1
21809 } # as_fn_exit
21810
21811 # as_fn_unset VAR
21812 # ---------------
21813 # Portably unset VAR.
21814 as_fn_unset ()
21815 {
21816   { eval $1=; unset $1;}
21817 }
21818 as_unset=as_fn_unset
21819 # as_fn_append VAR VALUE
21820 # ----------------------
21821 # Append the text in VALUE to the end of the definition contained in VAR. Take
21822 # advantage of any shell optimizations that allow amortized linear growth over
21823 # repeated appends, instead of the typical quadratic growth present in naive
21824 # implementations.
21825 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21826   eval 'as_fn_append ()
21827   {
21828     eval $1+=\$2
21829   }'
21830 else
21831   as_fn_append ()
21832   {
21833     eval $1=\$$1\$2
21834   }
21835 fi # as_fn_append
21836
21837 # as_fn_arith ARG...
21838 # ------------------
21839 # Perform arithmetic evaluation on the ARGs, and store the result in the
21840 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21841 # must be portable across $(()) and expr.
21842 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21843   eval 'as_fn_arith ()
21844   {
21845     as_val=$(( $* ))
21846   }'
21847 else
21848   as_fn_arith ()
21849   {
21850     as_val=`expr "$@" || test $? -eq 1`
21851   }
21852 fi # as_fn_arith
21853
21854
21855 if expr a : '\(a\)' >/dev/null 2>&1 &&
21856    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21857   as_expr=expr
21858 else
21859   as_expr=false
21860 fi
21861
21862 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21863   as_basename=basename
21864 else
21865   as_basename=false
21866 fi
21867
21868 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21869   as_dirname=dirname
21870 else
21871   as_dirname=false
21872 fi
21873
21874 as_me=`$as_basename -- "$0" ||
21875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21876          X"$0" : 'X\(//\)$' \| \
21877          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21878 $as_echo X/"$0" |
21879     sed '/^.*\/\([^/][^/]*\)\/*$/{
21880             s//\1/
21881             q
21882           }
21883           /^X\/\(\/\/\)$/{
21884             s//\1/
21885             q
21886           }
21887           /^X\/\(\/\).*/{
21888             s//\1/
21889             q
21890           }
21891           s/.*/./; q'`
21892
21893 # Avoid depending upon Character Ranges.
21894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21897 as_cr_digits='0123456789'
21898 as_cr_alnum=$as_cr_Letters$as_cr_digits
21899
21900 ECHO_C= ECHO_N= ECHO_T=
21901 case `echo -n x` in #(((((
21902 -n*)
21903   case `echo 'xy\c'` in
21904   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21905   xy)  ECHO_C='\c';;
21906   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21907        ECHO_T=' ';;
21908   esac;;
21909 *)
21910   ECHO_N='-n';;
21911 esac
21912
21913 rm -f conf$$ conf$$.exe conf$$.file
21914 if test -d conf$$.dir; then
21915   rm -f conf$$.dir/conf$$.file
21916 else
21917   rm -f conf$$.dir
21918   mkdir conf$$.dir 2>/dev/null
21919 fi
21920 if (echo >conf$$.file) 2>/dev/null; then
21921   if ln -s conf$$.file conf$$ 2>/dev/null; then
21922     as_ln_s='ln -s'
21923     # ... but there are two gotchas:
21924     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21925     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21926     # In both cases, we have to default to `cp -p'.
21927     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21928       as_ln_s='cp -p'
21929   elif ln conf$$.file conf$$ 2>/dev/null; then
21930     as_ln_s=ln
21931   else
21932     as_ln_s='cp -p'
21933   fi
21934 else
21935   as_ln_s='cp -p'
21936 fi
21937 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21938 rmdir conf$$.dir 2>/dev/null
21939
21940
21941 # as_fn_mkdir_p
21942 # -------------
21943 # Create "$as_dir" as a directory, including parents if necessary.
21944 as_fn_mkdir_p ()
21945 {
21946
21947   case $as_dir in #(
21948   -*) as_dir=./$as_dir;;
21949   esac
21950   test -d "$as_dir" || eval $as_mkdir_p || {
21951     as_dirs=
21952     while :; do
21953       case $as_dir in #(
21954       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21955       *) as_qdir=$as_dir;;
21956       esac
21957       as_dirs="'$as_qdir' $as_dirs"
21958       as_dir=`$as_dirname -- "$as_dir" ||
21959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21960          X"$as_dir" : 'X\(//\)[^/]' \| \
21961          X"$as_dir" : 'X\(//\)$' \| \
21962          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21963 $as_echo X"$as_dir" |
21964     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21965             s//\1/
21966             q
21967           }
21968           /^X\(\/\/\)[^/].*/{
21969             s//\1/
21970             q
21971           }
21972           /^X\(\/\/\)$/{
21973             s//\1/
21974             q
21975           }
21976           /^X\(\/\).*/{
21977             s//\1/
21978             q
21979           }
21980           s/.*/./; q'`
21981       test -d "$as_dir" && break
21982     done
21983     test -z "$as_dirs" || eval "mkdir $as_dirs"
21984   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21985
21986
21987 } # as_fn_mkdir_p
21988 if mkdir -p . 2>/dev/null; then
21989   as_mkdir_p='mkdir -p "$as_dir"'
21990 else
21991   test -d ./-p && rmdir ./-p
21992   as_mkdir_p=false
21993 fi
21994
21995 if test -x / >/dev/null 2>&1; then
21996   as_test_x='test -x'
21997 else
21998   if ls -dL / >/dev/null 2>&1; then
21999     as_ls_L_option=L
22000   else
22001     as_ls_L_option=
22002   fi
22003   as_test_x='
22004     eval sh -c '\''
22005       if test -d "$1"; then
22006         test -d "$1/.";
22007       else
22008         case $1 in #(
22009         -*)set "./$1";;
22010         esac;
22011         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22012         ???[sx]*):;;*)false;;esac;fi
22013     '\'' sh
22014   '
22015 fi
22016 as_executable_p=$as_test_x
22017
22018 # Sed expression to map a string onto a valid CPP name.
22019 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22020
22021 # Sed expression to map a string onto a valid variable name.
22022 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22023
22024
22025 exec 6>&1
22026 ## ----------------------------------- ##
22027 ## Main body of $CONFIG_STATUS script. ##
22028 ## ----------------------------------- ##
22029 _ASEOF
22030 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22031
22032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22033 # Save the log message, to keep $0 and so on meaningful, and to
22034 # report actual input values of CONFIG_FILES etc. instead of their
22035 # values after options handling.
22036 ac_log="
22037 This file was extended by sudo $as_me 1.8.7, which was
22038 generated by GNU Autoconf 2.68.  Invocation command line was
22039
22040   CONFIG_FILES    = $CONFIG_FILES
22041   CONFIG_HEADERS  = $CONFIG_HEADERS
22042   CONFIG_LINKS    = $CONFIG_LINKS
22043   CONFIG_COMMANDS = $CONFIG_COMMANDS
22044   $ $0 $@
22045
22046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22047 "
22048
22049 _ACEOF
22050
22051 case $ac_config_files in *"
22052 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22053 esac
22054
22055 case $ac_config_headers in *"
22056 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22057 esac
22058
22059
22060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22061 # Files that config.status was made for.
22062 config_files="$ac_config_files"
22063 config_headers="$ac_config_headers"
22064 config_commands="$ac_config_commands"
22065
22066 _ACEOF
22067
22068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22069 ac_cs_usage="\
22070 \`$as_me' instantiates files and other configuration actions
22071 from templates according to the current configuration.  Unless the files
22072 and actions are specified as TAGs, all are instantiated by default.
22073
22074 Usage: $0 [OPTION]... [TAG]...
22075
22076   -h, --help       print this help, then exit
22077   -V, --version    print version number and configuration settings, then exit
22078       --config     print configuration, then exit
22079   -q, --quiet, --silent
22080                    do not print progress messages
22081   -d, --debug      don't remove temporary files
22082       --recheck    update $as_me by reconfiguring in the same conditions
22083       --file=FILE[:TEMPLATE]
22084                    instantiate the configuration file FILE
22085       --header=FILE[:TEMPLATE]
22086                    instantiate the configuration header FILE
22087
22088 Configuration files:
22089 $config_files
22090
22091 Configuration headers:
22092 $config_headers
22093
22094 Configuration commands:
22095 $config_commands
22096
22097 Report bugs to <http://www.sudo.ws/bugs/>."
22098
22099 _ACEOF
22100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22101 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22102 ac_cs_version="\\
22103 sudo config.status 1.8.7
22104 configured by $0, generated by GNU Autoconf 2.68,
22105   with options \\"\$ac_cs_config\\"
22106
22107 Copyright (C) 2010 Free Software Foundation, Inc.
22108 This config.status script is free software; the Free Software Foundation
22109 gives unlimited permission to copy, distribute and modify it."
22110
22111 ac_pwd='$ac_pwd'
22112 srcdir='$srcdir'
22113 AWK='$AWK'
22114 test -n "\$AWK" || AWK=awk
22115 _ACEOF
22116
22117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22118 # The default lists apply if the user does not specify any file.
22119 ac_need_defaults=:
22120 while test $# != 0
22121 do
22122   case $1 in
22123   --*=?*)
22124     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22125     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22126     ac_shift=:
22127     ;;
22128   --*=)
22129     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22130     ac_optarg=
22131     ac_shift=:
22132     ;;
22133   *)
22134     ac_option=$1
22135     ac_optarg=$2
22136     ac_shift=shift
22137     ;;
22138   esac
22139
22140   case $ac_option in
22141   # Handling of the options.
22142   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22143     ac_cs_recheck=: ;;
22144   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22145     $as_echo "$ac_cs_version"; exit ;;
22146   --config | --confi | --conf | --con | --co | --c )
22147     $as_echo "$ac_cs_config"; exit ;;
22148   --debug | --debu | --deb | --de | --d | -d )
22149     debug=: ;;
22150   --file | --fil | --fi | --f )
22151     $ac_shift
22152     case $ac_optarg in
22153     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22154     '') as_fn_error $? "missing file argument" ;;
22155     esac
22156     as_fn_append CONFIG_FILES " '$ac_optarg'"
22157     ac_need_defaults=false;;
22158   --header | --heade | --head | --hea )
22159     $ac_shift
22160     case $ac_optarg in
22161     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22162     esac
22163     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22164     ac_need_defaults=false;;
22165   --he | --h)
22166     # Conflict between --help and --header
22167     as_fn_error $? "ambiguous option: \`$1'
22168 Try \`$0 --help' for more information.";;
22169   --help | --hel | -h )
22170     $as_echo "$ac_cs_usage"; exit ;;
22171   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22172   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22173     ac_cs_silent=: ;;
22174
22175   # This is an error.
22176   -*) as_fn_error $? "unrecognized option: \`$1'
22177 Try \`$0 --help' for more information." ;;
22178
22179   *) as_fn_append ac_config_targets " $1"
22180      ac_need_defaults=false ;;
22181
22182   esac
22183   shift
22184 done
22185
22186 ac_configure_extra_args=
22187
22188 if $ac_cs_silent; then
22189   exec 6>/dev/null
22190   ac_configure_extra_args="$ac_configure_extra_args --silent"
22191 fi
22192
22193 _ACEOF
22194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22195 if \$ac_cs_recheck; then
22196   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22197   shift
22198   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22199   CONFIG_SHELL='$SHELL'
22200   export CONFIG_SHELL
22201   exec "\$@"
22202 fi
22203
22204 _ACEOF
22205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22206 exec 5>>config.log
22207 {
22208   echo
22209   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22210 ## Running $as_me. ##
22211 _ASBOX
22212   $as_echo "$ac_log"
22213 } >&5
22214
22215 _ACEOF
22216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22217 #
22218 # INIT-COMMANDS
22219 #
22220
22221
22222 # The HP-UX ksh and POSIX shell print the target directory to stdout
22223 # if CDPATH is set.
22224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22225
22226 sed_quote_subst='$sed_quote_subst'
22227 double_quote_subst='$double_quote_subst'
22228 delay_variable_subst='$delay_variable_subst'
22229 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22230 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22231 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22232 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22233 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22234 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22235 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22236 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22237 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22238 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22239 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22240 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22241 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22242 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22243 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22244 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22245 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22246 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22247 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22248 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22249 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22250 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22251 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22252 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22253 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22254 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22255 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22256 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22257 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22258 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22259 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22260 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22261 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22262 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22263 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22264 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22265 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22266 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22267 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22268 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22269 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22270 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22271 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22272 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22273 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22274 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22275 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22276 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22277 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22278 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22279 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22280 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22281 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22282 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22283 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22284 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22285 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"`'
22286 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22287 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22288 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22289 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22290 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22291 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22292 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22293 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22294 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22295 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22296 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22297 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22298 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22299 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22300 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22301 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22302 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22303 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22304 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22305 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22306 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22307 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22308 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22309 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22310 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22311 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22312 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22313 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22314 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22315 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22316 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22317 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22318 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22319 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22320 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22321 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22322 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22323 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22324 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22325 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22326 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22327 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22328 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22329 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22330 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22331 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22332 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22333 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22334 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22335 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22336 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22337 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22338 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22339 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22340 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22341 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22342 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22343 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22344 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22345 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22346 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22347 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22348 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22349 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22350 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22351 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22352 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22353 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22354 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22355 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22356 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22357 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22358 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22359
22360 LTCC='$LTCC'
22361 LTCFLAGS='$LTCFLAGS'
22362 compiler='$compiler_DEFAULT'
22363
22364 # A function that is used when there is no print builtin or printf.
22365 func_fallback_echo ()
22366 {
22367   eval 'cat <<_LTECHO_EOF
22368 \$1
22369 _LTECHO_EOF'
22370 }
22371
22372 # Quote evaled strings.
22373 for var in SHELL \
22374 ECHO \
22375 PATH_SEPARATOR \
22376 SED \
22377 GREP \
22378 EGREP \
22379 FGREP \
22380 LD \
22381 NM \
22382 LN_S \
22383 lt_SP2NL \
22384 lt_NL2SP \
22385 reload_flag \
22386 OBJDUMP \
22387 deplibs_check_method \
22388 file_magic_cmd \
22389 file_magic_glob \
22390 want_nocaseglob \
22391 DLLTOOL \
22392 sharedlib_from_linklib_cmd \
22393 AR \
22394 AR_FLAGS \
22395 archiver_list_spec \
22396 STRIP \
22397 RANLIB \
22398 CC \
22399 CFLAGS \
22400 compiler \
22401 lt_cv_sys_global_symbol_pipe \
22402 lt_cv_sys_global_symbol_to_cdecl \
22403 lt_cv_sys_global_symbol_to_c_name_address \
22404 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22405 nm_file_list_spec \
22406 lt_prog_compiler_no_builtin_flag \
22407 lt_prog_compiler_pic \
22408 lt_prog_compiler_wl \
22409 lt_prog_compiler_static \
22410 lt_cv_prog_compiler_c_o \
22411 need_locks \
22412 MANIFEST_TOOL \
22413 DSYMUTIL \
22414 NMEDIT \
22415 LIPO \
22416 OTOOL \
22417 OTOOL64 \
22418 shrext_cmds \
22419 export_dynamic_flag_spec \
22420 whole_archive_flag_spec \
22421 compiler_needs_object \
22422 with_gnu_ld \
22423 allow_undefined_flag \
22424 no_undefined_flag \
22425 hardcode_libdir_flag_spec \
22426 hardcode_libdir_separator \
22427 exclude_expsyms \
22428 include_expsyms \
22429 file_list_spec \
22430 variables_saved_for_relink \
22431 libname_spec \
22432 library_names_spec \
22433 soname_spec \
22434 install_override_mode \
22435 finish_eval \
22436 old_striplib \
22437 striplib; do
22438     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22439     *[\\\\\\\`\\"\\\$]*)
22440       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22441       ;;
22442     *)
22443       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22444       ;;
22445     esac
22446 done
22447
22448 # Double-quote double-evaled strings.
22449 for var in reload_cmds \
22450 old_postinstall_cmds \
22451 old_postuninstall_cmds \
22452 old_archive_cmds \
22453 extract_expsyms_cmds \
22454 old_archive_from_new_cmds \
22455 old_archive_from_expsyms_cmds \
22456 archive_cmds \
22457 archive_expsym_cmds \
22458 module_cmds \
22459 module_expsym_cmds \
22460 export_symbols_cmds \
22461 prelink_cmds \
22462 postlink_cmds \
22463 postinstall_cmds \
22464 postuninstall_cmds \
22465 finish_cmds \
22466 sys_lib_search_path_spec \
22467 sys_lib_dlsearch_path_spec; do
22468     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22469     *[\\\\\\\`\\"\\\$]*)
22470       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22471       ;;
22472     *)
22473       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22474       ;;
22475     esac
22476 done
22477
22478 ac_aux_dir='$ac_aux_dir'
22479 xsi_shell='$xsi_shell'
22480 lt_shell_append='$lt_shell_append'
22481
22482 # See if we are running on zsh, and set the options which allow our
22483 # commands through without removal of \ escapes INIT.
22484 if test -n "\${ZSH_VERSION+set}" ; then
22485    setopt NO_GLOB_SUBST
22486 fi
22487
22488
22489     PACKAGE='$PACKAGE'
22490     VERSION='$VERSION'
22491     TIMESTAMP='$TIMESTAMP'
22492     RM='$RM'
22493     ofile='$ofile'
22494
22495
22496
22497
22498 _ACEOF
22499
22500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22501
22502 # Handling of arguments.
22503 for ac_config_target in $ac_config_targets
22504 do
22505   case $ac_config_target in
22506     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22507     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
22508     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22509     "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
22510     "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
22511     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22512     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
22513     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
22514     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22515     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22516     "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
22517     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22518     "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
22519     "plugins/group_file/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/group_file/Makefile" ;;
22520     "plugins/system_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/system_group/Makefile" ;;
22521     "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
22522     "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
22523
22524   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22525   esac
22526 done
22527
22528
22529 # If the user did not use the arguments to specify the items to instantiate,
22530 # then the envvar interface is used.  Set only those that are not.
22531 # We use the long form for the default assignment because of an extremely
22532 # bizarre bug on SunOS 4.1.3.
22533 if $ac_need_defaults; then
22534   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22535   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22536   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22537 fi
22538
22539 # Have a temporary directory for convenience.  Make it in the build tree
22540 # simply because there is no reason against having it here, and in addition,
22541 # creating and moving files from /tmp can sometimes cause problems.
22542 # Hook for its removal unless debugging.
22543 # Note that there is a small window in which the directory will not be cleaned:
22544 # after its creation but before its name has been assigned to `$tmp'.
22545 $debug ||
22546 {
22547   tmp= ac_tmp=
22548   trap 'exit_status=$?
22549   : "${ac_tmp:=$tmp}"
22550   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22551 ' 0
22552   trap 'as_fn_exit 1' 1 2 13 15
22553 }
22554 # Create a (secure) tmp directory for tmp files.
22555
22556 {
22557   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22558   test -d "$tmp"
22559 }  ||
22560 {
22561   tmp=./conf$$-$RANDOM
22562   (umask 077 && mkdir "$tmp")
22563 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22564 ac_tmp=$tmp
22565
22566 # Set up the scripts for CONFIG_FILES section.
22567 # No need to generate them if there are no CONFIG_FILES.
22568 # This happens for instance with `./config.status config.h'.
22569 if test -n "$CONFIG_FILES"; then
22570
22571
22572 ac_cr=`echo X | tr X '\015'`
22573 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22574 # But we know of no other shell where ac_cr would be empty at this
22575 # point, so we can use a bashism as a fallback.
22576 if test "x$ac_cr" = x; then
22577   eval ac_cr=\$\'\\r\'
22578 fi
22579 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22580 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22581   ac_cs_awk_cr='\\r'
22582 else
22583   ac_cs_awk_cr=$ac_cr
22584 fi
22585
22586 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22587 _ACEOF
22588
22589
22590 {
22591   echo "cat >conf$$subs.awk <<_ACEOF" &&
22592   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22593   echo "_ACEOF"
22594 } >conf$$subs.sh ||
22595   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22596 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22597 ac_delim='%!_!# '
22598 for ac_last_try in false false false false false :; do
22599   . ./conf$$subs.sh ||
22600     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22601
22602   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22603   if test $ac_delim_n = $ac_delim_num; then
22604     break
22605   elif $ac_last_try; then
22606     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22607   else
22608     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22609   fi
22610 done
22611 rm -f conf$$subs.sh
22612
22613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22614 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22615 _ACEOF
22616 sed -n '
22617 h
22618 s/^/S["/; s/!.*/"]=/
22619 p
22620 g
22621 s/^[^!]*!//
22622 :repl
22623 t repl
22624 s/'"$ac_delim"'$//
22625 t delim
22626 :nl
22627 h
22628 s/\(.\{148\}\)..*/\1/
22629 t more1
22630 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22631 p
22632 n
22633 b repl
22634 :more1
22635 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22636 p
22637 g
22638 s/.\{148\}//
22639 t nl
22640 :delim
22641 h
22642 s/\(.\{148\}\)..*/\1/
22643 t more2
22644 s/["\\]/\\&/g; s/^/"/; s/$/"/
22645 p
22646 b
22647 :more2
22648 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22649 p
22650 g
22651 s/.\{148\}//
22652 t delim
22653 ' <conf$$subs.awk | sed '
22654 /^[^""]/{
22655   N
22656   s/\n//
22657 }
22658 ' >>$CONFIG_STATUS || ac_write_fail=1
22659 rm -f conf$$subs.awk
22660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22661 _ACAWK
22662 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22663   for (key in S) S_is_set[key] = 1
22664   FS = "\a"
22665
22666 }
22667 {
22668   line = $ 0
22669   nfields = split(line, field, "@")
22670   substed = 0
22671   len = length(field[1])
22672   for (i = 2; i < nfields; i++) {
22673     key = field[i]
22674     keylen = length(key)
22675     if (S_is_set[key]) {
22676       value = S[key]
22677       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22678       len += length(value) + length(field[++i])
22679       substed = 1
22680     } else
22681       len += 1 + keylen
22682   }
22683
22684   print line
22685 }
22686
22687 _ACAWK
22688 _ACEOF
22689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22690 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22691   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22692 else
22693   cat
22694 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22695   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22696 _ACEOF
22697
22698 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22699 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22700 # trailing colons and then remove the whole line if VPATH becomes empty
22701 # (actually we leave an empty line to preserve line numbers).
22702 if test "x$srcdir" = x.; then
22703   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22704 h
22705 s///
22706 s/^/:/
22707 s/[      ]*$/:/
22708 s/:\$(srcdir):/:/g
22709 s/:\${srcdir}:/:/g
22710 s/:@srcdir@:/:/g
22711 s/^:*//
22712 s/:*$//
22713 x
22714 s/\(=[   ]*\).*/\1/
22715 G
22716 s/\n//
22717 s/^[^=]*=[       ]*$//
22718 }'
22719 fi
22720
22721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22722 fi # test -n "$CONFIG_FILES"
22723
22724 # Set up the scripts for CONFIG_HEADERS section.
22725 # No need to generate them if there are no CONFIG_HEADERS.
22726 # This happens for instance with `./config.status Makefile'.
22727 if test -n "$CONFIG_HEADERS"; then
22728 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22729 BEGIN {
22730 _ACEOF
22731
22732 # Transform confdefs.h into an awk script `defines.awk', embedded as
22733 # here-document in config.status, that substitutes the proper values into
22734 # config.h.in to produce config.h.
22735
22736 # Create a delimiter string that does not exist in confdefs.h, to ease
22737 # handling of long lines.
22738 ac_delim='%!_!# '
22739 for ac_last_try in false false :; do
22740   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22741   if test -z "$ac_tt"; then
22742     break
22743   elif $ac_last_try; then
22744     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22745   else
22746     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22747   fi
22748 done
22749
22750 # For the awk script, D is an array of macro values keyed by name,
22751 # likewise P contains macro parameters if any.  Preserve backslash
22752 # newline sequences.
22753
22754 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22755 sed -n '
22756 s/.\{148\}/&'"$ac_delim"'/g
22757 t rset
22758 :rset
22759 s/^[     ]*#[    ]*define[       ][      ]*/ /
22760 t def
22761 d
22762 :def
22763 s/\\$//
22764 t bsnl
22765 s/["\\]/\\&/g
22766 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22767 D["\1"]=" \3"/p
22768 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22769 d
22770 :bsnl
22771 s/["\\]/\\&/g
22772 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22773 D["\1"]=" \3\\\\\\n"\\/p
22774 t cont
22775 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22776 t cont
22777 d
22778 :cont
22779 n
22780 s/.\{148\}/&'"$ac_delim"'/g
22781 t clear
22782 :clear
22783 s/\\$//
22784 t bsnlc
22785 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22786 d
22787 :bsnlc
22788 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22789 b cont
22790 ' <confdefs.h | sed '
22791 s/'"$ac_delim"'/"\\\
22792 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22793
22794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22795   for (key in D) D_is_set[key] = 1
22796   FS = "\a"
22797 }
22798 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22799   line = \$ 0
22800   split(line, arg, " ")
22801   if (arg[1] == "#") {
22802     defundef = arg[2]
22803     mac1 = arg[3]
22804   } else {
22805     defundef = substr(arg[1], 2)
22806     mac1 = arg[2]
22807   }
22808   split(mac1, mac2, "(") #)
22809   macro = mac2[1]
22810   prefix = substr(line, 1, index(line, defundef) - 1)
22811   if (D_is_set[macro]) {
22812     # Preserve the white space surrounding the "#".
22813     print prefix "define", macro P[macro] D[macro]
22814     next
22815   } else {
22816     # Replace #undef with comments.  This is necessary, for example,
22817     # in the case of _POSIX_SOURCE, which is predefined and required
22818     # on some systems where configure will not decide to define it.
22819     if (defundef == "undef") {
22820       print "/*", prefix defundef, macro, "*/"
22821       next
22822     }
22823   }
22824 }
22825 { print }
22826 _ACAWK
22827 _ACEOF
22828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22829   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22830 fi # test -n "$CONFIG_HEADERS"
22831
22832
22833 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22834 shift
22835 for ac_tag
22836 do
22837   case $ac_tag in
22838   :[FHLC]) ac_mode=$ac_tag; continue;;
22839   esac
22840   case $ac_mode$ac_tag in
22841   :[FHL]*:*);;
22842   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22843   :[FH]-) ac_tag=-:-;;
22844   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22845   esac
22846   ac_save_IFS=$IFS
22847   IFS=:
22848   set x $ac_tag
22849   IFS=$ac_save_IFS
22850   shift
22851   ac_file=$1
22852   shift
22853
22854   case $ac_mode in
22855   :L) ac_source=$1;;
22856   :[FH])
22857     ac_file_inputs=
22858     for ac_f
22859     do
22860       case $ac_f in
22861       -) ac_f="$ac_tmp/stdin";;
22862       *) # Look for the file first in the build tree, then in the source tree
22863          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22864          # because $ac_f cannot contain `:'.
22865          test -f "$ac_f" ||
22866            case $ac_f in
22867            [\\/$]*) false;;
22868            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22869            esac ||
22870            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22871       esac
22872       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22873       as_fn_append ac_file_inputs " '$ac_f'"
22874     done
22875
22876     # Let's still pretend it is `configure' which instantiates (i.e., don't
22877     # use $as_me), people would be surprised to read:
22878     #    /* config.h.  Generated by config.status.  */
22879     configure_input='Generated from '`
22880           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22881         `' by configure.'
22882     if test x"$ac_file" != x-; then
22883       configure_input="$ac_file.  $configure_input"
22884       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22885 $as_echo "$as_me: creating $ac_file" >&6;}
22886     fi
22887     # Neutralize special characters interpreted by sed in replacement strings.
22888     case $configure_input in #(
22889     *\&* | *\|* | *\\* )
22890        ac_sed_conf_input=`$as_echo "$configure_input" |
22891        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22892     *) ac_sed_conf_input=$configure_input;;
22893     esac
22894
22895     case $ac_tag in
22896     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22897       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22898     esac
22899     ;;
22900   esac
22901
22902   ac_dir=`$as_dirname -- "$ac_file" ||
22903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22904          X"$ac_file" : 'X\(//\)[^/]' \| \
22905          X"$ac_file" : 'X\(//\)$' \| \
22906          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22907 $as_echo X"$ac_file" |
22908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22909             s//\1/
22910             q
22911           }
22912           /^X\(\/\/\)[^/].*/{
22913             s//\1/
22914             q
22915           }
22916           /^X\(\/\/\)$/{
22917             s//\1/
22918             q
22919           }
22920           /^X\(\/\).*/{
22921             s//\1/
22922             q
22923           }
22924           s/.*/./; q'`
22925   as_dir="$ac_dir"; as_fn_mkdir_p
22926   ac_builddir=.
22927
22928 case "$ac_dir" in
22929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22930 *)
22931   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22932   # A ".." for each directory in $ac_dir_suffix.
22933   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22934   case $ac_top_builddir_sub in
22935   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22936   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22937   esac ;;
22938 esac
22939 ac_abs_top_builddir=$ac_pwd
22940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22941 # for backward compatibility:
22942 ac_top_builddir=$ac_top_build_prefix
22943
22944 case $srcdir in
22945   .)  # We are building in place.
22946     ac_srcdir=.
22947     ac_top_srcdir=$ac_top_builddir_sub
22948     ac_abs_top_srcdir=$ac_pwd ;;
22949   [\\/]* | ?:[\\/]* )  # Absolute name.
22950     ac_srcdir=$srcdir$ac_dir_suffix;
22951     ac_top_srcdir=$srcdir
22952     ac_abs_top_srcdir=$srcdir ;;
22953   *) # Relative name.
22954     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22955     ac_top_srcdir=$ac_top_build_prefix$srcdir
22956     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22957 esac
22958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22959
22960
22961   case $ac_mode in
22962   :F)
22963   #
22964   # CONFIG_FILE
22965   #
22966
22967 _ACEOF
22968
22969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22970 # If the template does not know about datarootdir, expand it.
22971 # FIXME: This hack should be removed a few years after 2.60.
22972 ac_datarootdir_hack=; ac_datarootdir_seen=
22973 ac_sed_dataroot='
22974 /datarootdir/ {
22975   p
22976   q
22977 }
22978 /@datadir@/p
22979 /@docdir@/p
22980 /@infodir@/p
22981 /@localedir@/p
22982 /@mandir@/p'
22983 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22984 *datarootdir*) ac_datarootdir_seen=yes;;
22985 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22986   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22987 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22988 _ACEOF
22989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22990   ac_datarootdir_hack='
22991   s&@datadir@&$datadir&g
22992   s&@docdir@&$docdir&g
22993   s&@infodir@&$infodir&g
22994   s&@localedir@&$localedir&g
22995   s&@mandir@&$mandir&g
22996   s&\\\${datarootdir}&$datarootdir&g' ;;
22997 esac
22998 _ACEOF
22999
23000 # Neutralize VPATH when `$srcdir' = `.'.
23001 # Shell code in configure.ac might set extrasub.
23002 # FIXME: do we really want to maintain this feature?
23003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23004 ac_sed_extra="$ac_vpsub
23005 $extrasub
23006 _ACEOF
23007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23008 :t
23009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23010 s|@configure_input@|$ac_sed_conf_input|;t t
23011 s&@top_builddir@&$ac_top_builddir_sub&;t t
23012 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23013 s&@srcdir@&$ac_srcdir&;t t
23014 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23015 s&@top_srcdir@&$ac_top_srcdir&;t t
23016 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23017 s&@builddir@&$ac_builddir&;t t
23018 s&@abs_builddir@&$ac_abs_builddir&;t t
23019 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23020 $ac_datarootdir_hack
23021 "
23022 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23023   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23024
23025 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23026   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23027   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
23028       "$ac_tmp/out"`; test -z "$ac_out"; } &&
23029   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23030 which seems to be undefined.  Please make sure it is defined" >&5
23031 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23032 which seems to be undefined.  Please make sure it is defined" >&2;}
23033
23034   rm -f "$ac_tmp/stdin"
23035   case $ac_file in
23036   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23037   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23038   esac \
23039   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23040  ;;
23041   :H)
23042   #
23043   # CONFIG_HEADER
23044   #
23045   if test x"$ac_file" != x-; then
23046     {
23047       $as_echo "/* $configure_input  */" \
23048       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23049     } >"$ac_tmp/config.h" \
23050       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23051     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23052       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23053 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23054     else
23055       rm -f "$ac_file"
23056       mv "$ac_tmp/config.h" "$ac_file" \
23057         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23058     fi
23059   else
23060     $as_echo "/* $configure_input  */" \
23061       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23062       || as_fn_error $? "could not create -" "$LINENO" 5
23063   fi
23064  ;;
23065
23066   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23067 $as_echo "$as_me: executing $ac_file commands" >&6;}
23068  ;;
23069   esac
23070
23071
23072   case $ac_file$ac_mode in
23073     "libtool":C)
23074
23075     # See if we are running on zsh, and set the options which allow our
23076     # commands through without removal of \ escapes.
23077     if test -n "${ZSH_VERSION+set}" ; then
23078       setopt NO_GLOB_SUBST
23079     fi
23080
23081     cfgfile="${ofile}T"
23082     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23083     $RM "$cfgfile"
23084
23085     cat <<_LT_EOF >> "$cfgfile"
23086 #! $SHELL
23087
23088 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23089 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23091 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23092 #
23093 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23094 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23095 #                 Foundation, Inc.
23096 #   Written by Gordon Matzigkeit, 1996
23097 #
23098 #   This file is part of GNU Libtool.
23099 #
23100 # GNU Libtool is free software; you can redistribute it and/or
23101 # modify it under the terms of the GNU General Public License as
23102 # published by the Free Software Foundation; either version 2 of
23103 # the License, or (at your option) any later version.
23104 #
23105 # As a special exception to the GNU General Public License,
23106 # if you distribute this file as part of a program or library that
23107 # is built using GNU Libtool, you may include this file under the
23108 # same distribution terms that you use for the rest of that program.
23109 #
23110 # GNU Libtool is distributed in the hope that it will be useful,
23111 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23112 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23113 # GNU General Public License for more details.
23114 #
23115 # You should have received a copy of the GNU General Public License
23116 # along with GNU Libtool; see the file COPYING.  If not, a copy
23117 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23118 # obtained by writing to the Free Software Foundation, Inc.,
23119 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23120
23121
23122 # The names of the tagged configurations supported by this script.
23123 available_tags=""
23124
23125 # ### BEGIN LIBTOOL CONFIG
23126
23127 # Which release of libtool.m4 was used?
23128 macro_version=$macro_version
23129 macro_revision=$macro_revision
23130
23131 # Whether or not to build shared libraries.
23132 build_libtool_libs=$enable_shared
23133
23134 # Whether or not to build static libraries.
23135 build_old_libs=$enable_static
23136
23137 # What type of objects to build.
23138 pic_mode=$pic_mode
23139
23140 # Whether or not to optimize for fast installation.
23141 fast_install=$enable_fast_install
23142
23143 # Shell to use when invoking shell scripts.
23144 SHELL=$lt_SHELL
23145
23146 # An echo program that protects backslashes.
23147 ECHO=$lt_ECHO
23148
23149 # The PATH separator for the build system.
23150 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23151
23152 # The host system.
23153 host_alias=$host_alias
23154 host=$host
23155 host_os=$host_os
23156
23157 # The build system.
23158 build_alias=$build_alias
23159 build=$build
23160 build_os=$build_os
23161
23162 # A sed program that does not truncate output.
23163 SED=$lt_SED
23164
23165 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23166 Xsed="\$SED -e 1s/^X//"
23167
23168 # A grep program that handles long lines.
23169 GREP=$lt_GREP
23170
23171 # An ERE matcher.
23172 EGREP=$lt_EGREP
23173
23174 # A literal string matcher.
23175 FGREP=$lt_FGREP
23176
23177 # A BSD- or MS-compatible name lister.
23178 NM=$lt_NM
23179
23180 # Whether we need soft or hard links.
23181 LN_S=$lt_LN_S
23182
23183 # What is the maximum length of a command?
23184 max_cmd_len=$max_cmd_len
23185
23186 # Object file suffix (normally "o").
23187 objext=$ac_objext
23188
23189 # Executable file suffix (normally "").
23190 exeext=$exeext
23191
23192 # whether the shell understands "unset".
23193 lt_unset=$lt_unset
23194
23195 # turn spaces into newlines.
23196 SP2NL=$lt_lt_SP2NL
23197
23198 # turn newlines into spaces.
23199 NL2SP=$lt_lt_NL2SP
23200
23201 # convert \$build file names to \$host format.
23202 to_host_file_cmd=$lt_cv_to_host_file_cmd
23203
23204 # convert \$build files to toolchain format.
23205 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23206
23207 # An object symbol dumper.
23208 OBJDUMP=$lt_OBJDUMP
23209
23210 # Method to check whether dependent libraries are shared objects.
23211 deplibs_check_method=$lt_deplibs_check_method
23212
23213 # Command to use when deplibs_check_method = "file_magic".
23214 file_magic_cmd=$lt_file_magic_cmd
23215
23216 # How to find potential files when deplibs_check_method = "file_magic".
23217 file_magic_glob=$lt_file_magic_glob
23218
23219 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23220 want_nocaseglob=$lt_want_nocaseglob
23221
23222 # DLL creation program.
23223 DLLTOOL=$lt_DLLTOOL
23224
23225 # Command to associate shared and link libraries.
23226 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23227
23228 # The archiver.
23229 AR=$lt_AR
23230
23231 # Flags to create an archive.
23232 AR_FLAGS=$lt_AR_FLAGS
23233
23234 # How to feed a file listing to the archiver.
23235 archiver_list_spec=$lt_archiver_list_spec
23236
23237 # A symbol stripping program.
23238 STRIP=$lt_STRIP
23239
23240 # Commands used to install an old-style archive.
23241 RANLIB=$lt_RANLIB
23242 old_postinstall_cmds=$lt_old_postinstall_cmds
23243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23244
23245 # Whether to use a lock for old archive extraction.
23246 lock_old_archive_extraction=$lock_old_archive_extraction
23247
23248 # A C compiler.
23249 LTCC=$lt_CC
23250
23251 # LTCC compiler flags.
23252 LTCFLAGS=$lt_CFLAGS
23253
23254 # Take the output of nm and produce a listing of raw symbols and C names.
23255 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23256
23257 # Transform the output of nm in a proper C declaration.
23258 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23259
23260 # Transform the output of nm in a C name address pair.
23261 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23262
23263 # Transform the output of nm in a C name address pair when lib prefix is needed.
23264 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23265
23266 # Specify filename containing input files for \$NM.
23267 nm_file_list_spec=$lt_nm_file_list_spec
23268
23269 # The root where to search for dependent libraries,and in which our libraries should be installed.
23270 lt_sysroot=$lt_sysroot
23271
23272 # The name of the directory that contains temporary libtool files.
23273 objdir=$objdir
23274
23275 # Used to examine libraries when file_magic_cmd begins with "file".
23276 MAGIC_CMD=$MAGIC_CMD
23277
23278 # Must we lock files when doing compilation?
23279 need_locks=$lt_need_locks
23280
23281 # Manifest tool.
23282 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23283
23284 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23285 DSYMUTIL=$lt_DSYMUTIL
23286
23287 # Tool to change global to local symbols on Mac OS X.
23288 NMEDIT=$lt_NMEDIT
23289
23290 # Tool to manipulate fat objects and archives on Mac OS X.
23291 LIPO=$lt_LIPO
23292
23293 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23294 OTOOL=$lt_OTOOL
23295
23296 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23297 OTOOL64=$lt_OTOOL64
23298
23299 # Old archive suffix (normally "a").
23300 libext=$libext
23301
23302 # Shared library suffix (normally ".so").
23303 shrext_cmds=$lt_shrext_cmds
23304
23305 # The commands to extract the exported symbol list from a shared archive.
23306 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23307
23308 # Variables whose values should be saved in libtool wrapper scripts and
23309 # restored at link time.
23310 variables_saved_for_relink=$lt_variables_saved_for_relink
23311
23312 # Do we need the "lib" prefix for modules?
23313 need_lib_prefix=$need_lib_prefix
23314
23315 # Do we need a version for libraries?
23316 need_version=$need_version
23317
23318 # Library versioning type.
23319 version_type=$version_type
23320
23321 # Shared library runtime path variable.
23322 runpath_var=$runpath_var
23323
23324 # Shared library path variable.
23325 shlibpath_var=$shlibpath_var
23326
23327 # Is shlibpath searched before the hard-coded library search path?
23328 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23329
23330 # Format of library name prefix.
23331 libname_spec=$lt_libname_spec
23332
23333 # List of archive names.  First name is the real one, the rest are links.
23334 # The last name is the one that the linker finds with -lNAME
23335 library_names_spec=$lt_library_names_spec
23336
23337 # The coded name of the library, if different from the real name.
23338 soname_spec=$lt_soname_spec
23339
23340 # Permission mode override for installation of shared libraries.
23341 install_override_mode=$lt_install_override_mode
23342
23343 # Command to use after installation of a shared archive.
23344 postinstall_cmds=$lt_postinstall_cmds
23345
23346 # Command to use after uninstallation of a shared archive.
23347 postuninstall_cmds=$lt_postuninstall_cmds
23348
23349 # Commands used to finish a libtool library installation in a directory.
23350 finish_cmds=$lt_finish_cmds
23351
23352 # As "finish_cmds", except a single script fragment to be evaled but
23353 # not shown.
23354 finish_eval=$lt_finish_eval
23355
23356 # Whether we should hardcode library paths into libraries.
23357 hardcode_into_libs=$hardcode_into_libs
23358
23359 # Compile-time system search path for libraries.
23360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23361
23362 # Run-time system search path for libraries.
23363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23364
23365 # Whether dlopen is supported.
23366 dlopen_support=$enable_dlopen
23367
23368 # Whether dlopen of programs is supported.
23369 dlopen_self=$enable_dlopen_self
23370
23371 # Whether dlopen of statically linked programs is supported.
23372 dlopen_self_static=$enable_dlopen_self_static
23373
23374 # Commands to strip libraries.
23375 old_striplib=$lt_old_striplib
23376 striplib=$lt_striplib
23377
23378
23379 # The linker used to build libraries.
23380 LD=$lt_LD
23381
23382 # How to create reloadable object files.
23383 reload_flag=$lt_reload_flag
23384 reload_cmds=$lt_reload_cmds
23385
23386 # Commands used to build an old-style archive.
23387 old_archive_cmds=$lt_old_archive_cmds
23388
23389 # A language specific compiler.
23390 CC=$lt_compiler
23391
23392 # Is the compiler the GNU compiler?
23393 with_gcc=$GCC
23394
23395 # Compiler flag to turn off builtin functions.
23396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23397
23398 # Additional compiler flags for building library objects.
23399 pic_flag=$lt_lt_prog_compiler_pic
23400
23401 # How to pass a linker flag through the compiler.
23402 wl=$lt_lt_prog_compiler_wl
23403
23404 # Compiler flag to prevent dynamic linking.
23405 link_static_flag=$lt_lt_prog_compiler_static
23406
23407 # Does compiler simultaneously support -c and -o options?
23408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23409
23410 # Whether or not to add -lc for building shared libraries.
23411 build_libtool_need_lc=$archive_cmds_need_lc
23412
23413 # Whether or not to disallow shared libs when runtime libs are static.
23414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23415
23416 # Compiler flag to allow reflexive dlopens.
23417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23418
23419 # Compiler flag to generate shared objects directly from archives.
23420 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23421
23422 # Whether the compiler copes with passing no objects directly.
23423 compiler_needs_object=$lt_compiler_needs_object
23424
23425 # Create an old-style archive from a shared archive.
23426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23427
23428 # Create a temporary old-style archive to link instead of a shared archive.
23429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23430
23431 # Commands used to build a shared archive.
23432 archive_cmds=$lt_archive_cmds
23433 archive_expsym_cmds=$lt_archive_expsym_cmds
23434
23435 # Commands used to build a loadable module if different from building
23436 # a shared archive.
23437 module_cmds=$lt_module_cmds
23438 module_expsym_cmds=$lt_module_expsym_cmds
23439
23440 # Whether we are building with GNU ld or not.
23441 with_gnu_ld=$lt_with_gnu_ld
23442
23443 # Flag that allows shared libraries with undefined symbols to be built.
23444 allow_undefined_flag=$lt_allow_undefined_flag
23445
23446 # Flag that enforces no undefined symbols.
23447 no_undefined_flag=$lt_no_undefined_flag
23448
23449 # Flag to hardcode \$libdir into a binary during linking.
23450 # This must work even if \$libdir does not exist
23451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23452
23453 # Whether we need a single "-rpath" flag with a separated argument.
23454 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23455
23456 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23457 # DIR into the resulting binary.
23458 hardcode_direct=$hardcode_direct
23459
23460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23461 # DIR into the resulting binary and the resulting library dependency is
23462 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23463 # library is relocated.
23464 hardcode_direct_absolute=$hardcode_direct_absolute
23465
23466 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23467 # into the resulting binary.
23468 hardcode_minus_L=$hardcode_minus_L
23469
23470 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23471 # into the resulting binary.
23472 hardcode_shlibpath_var=$hardcode_shlibpath_var
23473
23474 # Set to "yes" if building a shared library automatically hardcodes DIR
23475 # into the library and all subsequent libraries and executables linked
23476 # against it.
23477 hardcode_automatic=$hardcode_automatic
23478
23479 # Set to yes if linker adds runtime paths of dependent libraries
23480 # to runtime path list.
23481 inherit_rpath=$inherit_rpath
23482
23483 # Whether libtool must link a program against all its dependency libraries.
23484 link_all_deplibs=$link_all_deplibs
23485
23486 # Set to "yes" if exported symbols are required.
23487 always_export_symbols=$always_export_symbols
23488
23489 # The commands to list exported symbols.
23490 export_symbols_cmds=$lt_export_symbols_cmds
23491
23492 # Symbols that should not be listed in the preloaded symbols.
23493 exclude_expsyms=$lt_exclude_expsyms
23494
23495 # Symbols that must always be exported.
23496 include_expsyms=$lt_include_expsyms
23497
23498 # Commands necessary for linking programs (against libraries) with templates.
23499 prelink_cmds=$lt_prelink_cmds
23500
23501 # Commands necessary for finishing linking programs.
23502 postlink_cmds=$lt_postlink_cmds
23503
23504 # Specify filename containing input files.
23505 file_list_spec=$lt_file_list_spec
23506
23507 # How to hardcode a shared library path into an executable.
23508 hardcode_action=$hardcode_action
23509
23510 # ### END LIBTOOL CONFIG
23511
23512 _LT_EOF
23513
23514   case $host_os in
23515   aix3*)
23516     cat <<\_LT_EOF >> "$cfgfile"
23517 # AIX sometimes has problems with the GCC collect2 program.  For some
23518 # reason, if we set the COLLECT_NAMES environment variable, the problems
23519 # vanish in a puff of smoke.
23520 if test "X${COLLECT_NAMES+set}" != Xset; then
23521   COLLECT_NAMES=
23522   export COLLECT_NAMES
23523 fi
23524 _LT_EOF
23525     ;;
23526   esac
23527
23528
23529 ltmain="$ac_aux_dir/ltmain.sh"
23530
23531
23532   # We use sed instead of cat because bash on DJGPP gets confused if
23533   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23534   # text mode, it properly converts lines to CR/LF.  This bash problem
23535   # is reportedly fixed, but why not run on old versions too?
23536   sed '$q' "$ltmain" >> "$cfgfile" \
23537      || (rm -f "$cfgfile"; exit 1)
23538
23539   if test x"$xsi_shell" = xyes; then
23540   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23541 func_dirname ()\
23542 {\
23543 \    case ${1} in\
23544 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23545 \      *  ) func_dirname_result="${3}" ;;\
23546 \    esac\
23547 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23548   && mv -f "$cfgfile.tmp" "$cfgfile" \
23549     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23550 test 0 -eq $? || _lt_function_replace_fail=:
23551
23552
23553   sed -e '/^func_basename ()$/,/^} # func_basename /c\
23554 func_basename ()\
23555 {\
23556 \    func_basename_result="${1##*/}"\
23557 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23558   && mv -f "$cfgfile.tmp" "$cfgfile" \
23559     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23560 test 0 -eq $? || _lt_function_replace_fail=:
23561
23562
23563   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23564 func_dirname_and_basename ()\
23565 {\
23566 \    case ${1} in\
23567 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23568 \      *  ) func_dirname_result="${3}" ;;\
23569 \    esac\
23570 \    func_basename_result="${1##*/}"\
23571 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23572   && mv -f "$cfgfile.tmp" "$cfgfile" \
23573     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23574 test 0 -eq $? || _lt_function_replace_fail=:
23575
23576
23577   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23578 func_stripname ()\
23579 {\
23580 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23581 \    # positional parameters, so assign one to ordinary parameter first.\
23582 \    func_stripname_result=${3}\
23583 \    func_stripname_result=${func_stripname_result#"${1}"}\
23584 \    func_stripname_result=${func_stripname_result%"${2}"}\
23585 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23586   && mv -f "$cfgfile.tmp" "$cfgfile" \
23587     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23588 test 0 -eq $? || _lt_function_replace_fail=:
23589
23590
23591   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23592 func_split_long_opt ()\
23593 {\
23594 \    func_split_long_opt_name=${1%%=*}\
23595 \    func_split_long_opt_arg=${1#*=}\
23596 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23597   && mv -f "$cfgfile.tmp" "$cfgfile" \
23598     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23599 test 0 -eq $? || _lt_function_replace_fail=:
23600
23601
23602   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23603 func_split_short_opt ()\
23604 {\
23605 \    func_split_short_opt_arg=${1#??}\
23606 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23607 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23608   && mv -f "$cfgfile.tmp" "$cfgfile" \
23609     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23610 test 0 -eq $? || _lt_function_replace_fail=:
23611
23612
23613   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23614 func_lo2o ()\
23615 {\
23616 \    case ${1} in\
23617 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23618 \      *)    func_lo2o_result=${1} ;;\
23619 \    esac\
23620 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23621   && mv -f "$cfgfile.tmp" "$cfgfile" \
23622     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23623 test 0 -eq $? || _lt_function_replace_fail=:
23624
23625
23626   sed -e '/^func_xform ()$/,/^} # func_xform /c\
23627 func_xform ()\
23628 {\
23629     func_xform_result=${1%.*}.lo\
23630 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23631   && mv -f "$cfgfile.tmp" "$cfgfile" \
23632     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23633 test 0 -eq $? || _lt_function_replace_fail=:
23634
23635
23636   sed -e '/^func_arith ()$/,/^} # func_arith /c\
23637 func_arith ()\
23638 {\
23639     func_arith_result=$(( $* ))\
23640 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23641   && mv -f "$cfgfile.tmp" "$cfgfile" \
23642     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23643 test 0 -eq $? || _lt_function_replace_fail=:
23644
23645
23646   sed -e '/^func_len ()$/,/^} # func_len /c\
23647 func_len ()\
23648 {\
23649     func_len_result=${#1}\
23650 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23651   && mv -f "$cfgfile.tmp" "$cfgfile" \
23652     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23653 test 0 -eq $? || _lt_function_replace_fail=:
23654
23655 fi
23656
23657 if test x"$lt_shell_append" = xyes; then
23658   sed -e '/^func_append ()$/,/^} # func_append /c\
23659 func_append ()\
23660 {\
23661     eval "${1}+=\\${2}"\
23662 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23663   && mv -f "$cfgfile.tmp" "$cfgfile" \
23664     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23665 test 0 -eq $? || _lt_function_replace_fail=:
23666
23667
23668   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23669 func_append_quoted ()\
23670 {\
23671 \    func_quote_for_eval "${2}"\
23672 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23673 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23674   && mv -f "$cfgfile.tmp" "$cfgfile" \
23675     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23676 test 0 -eq $? || _lt_function_replace_fail=:
23677
23678
23679   # Save a `func_append' function call where possible by direct use of '+='
23680   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23681     && mv -f "$cfgfile.tmp" "$cfgfile" \
23682       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23683   test 0 -eq $? || _lt_function_replace_fail=:
23684 else
23685   # Save a `func_append' function call even when '+=' is not available
23686   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23687     && mv -f "$cfgfile.tmp" "$cfgfile" \
23688       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23689   test 0 -eq $? || _lt_function_replace_fail=:
23690 fi
23691
23692 if test x"$_lt_function_replace_fail" = x":"; then
23693   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23694 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23695 fi
23696
23697
23698    mv -f "$cfgfile" "$ofile" ||
23699     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23700   chmod +x "$ofile"
23701
23702  ;;
23703
23704   esac
23705 done # for ac_tag
23706
23707
23708 as_fn_exit 0
23709 _ACEOF
23710 ac_clean_files=$ac_clean_files_save
23711
23712 test $ac_write_fail = 0 ||
23713   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23714
23715
23716 # configure is writing to config.log, and then calls config.status.
23717 # config.status does its own redirection, appending to config.log.
23718 # Unfortunately, on DOS this fails, as config.log is still kept open
23719 # by configure, so config.status won't be able to write to it; its
23720 # output is simply discarded.  So we exec the FD to /dev/null,
23721 # effectively closing config.log, so it can be properly (re)opened and
23722 # appended to by config.status.  When coming back to configure, we
23723 # need to make the FD available again.
23724 if test "$no_create" != yes; then
23725   ac_cs_success=:
23726   ac_config_status_args=
23727   test "$silent" = yes &&
23728     ac_config_status_args="$ac_config_status_args --quiet"
23729   exec 5>/dev/null
23730   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23731   exec 5>>config.log
23732   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23733   # would make configure fail if this is the last instruction.
23734   $ac_cs_success || as_fn_exit 1
23735 fi
23736 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23737   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23738 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23739 fi
23740
23741
23742 if test "$with_pam" = "yes"; then
23743     case $host_os in
23744         hpux*)
23745             if test -f /usr/lib/security/libpam_hpsec.so.1; then
23746                 { $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
23747 $as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
23748                 { $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
23749 $as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
23750             fi
23751             ;;
23752         linux*)
23753             { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
23754 $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
23755             ;;
23756     esac
23757 fi
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860