File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / sudo / configure
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Oct 9 09:29:52 2012 UTC (11 years, 10 months ago) by misho
Branches: sudo, MAIN
CVS tags: HEAD
sudo

    1: #! /bin/sh
    2: # Guess values for system-dependent variables and create Makefiles.
    3: # Generated by GNU Autoconf 2.68 for sudo 1.8.6p3.
    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.6p3'
  574: PACKAGE_STRING='sudo 1.8.6p3'
  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: editor
  662: secure_path
  663: netsvc_conf
  664: nsswitch_conf
  665: sssd_lib
  666: ldap_secret
  667: ldap_conf
  668: path_info
  669: root_sudo
  670: insults
  671: tty_tickets
  672: passwd_tries
  673: env_reset
  674: env_editor
  675: runas_default
  676: fqdn
  677: badpass_message
  678: mailsub
  679: mailto
  680: mail_no_perms
  681: mail_no_host
  682: mail_no_user
  683: ignore_dot
  684: loglen
  685: badpri
  686: goodpri
  687: logfac
  688: lecture
  689: long_otp_prompt
  690: passprompt
  691: umask_override
  692: sudo_umask
  693: password_timeout
  694: timeout
  695: timedir
  696: iolog_dir
  697: NO_VIZ
  698: PIE_CFLAGS
  699: PIE_LDFLAGS
  700: CROSS_COMPILING
  701: COMPAT_TEST_PROGS
  702: SUDO_NLS
  703: LIBINTL
  704: LT_STATIC
  705: LIBDL
  706: CONFIGURE_ARGS
  707: ac_config_libobj_dir
  708: LIBTOOL_DEPS
  709: ZLIB_SRC
  710: ZLIB
  711: LOGINCAP_USAGE
  712: LDAP
  713: SELINUX_USAGE
  714: BSDAUTH_USAGE
  715: DONT_LEAK_PATH_INFO
  716: INSTALL_NOEXEC
  717: noexec_file
  718: SOEXT
  719: PLUGINDIR
  720: NOEXECDIR
  721: NOEXECFILE
  722: mansrcdir
  723: mansectform
  724: mansectsu
  725: devdir
  726: SEMAN
  727: PSMAN
  728: LCMAN
  729: BAMAN
  730: DEVEL
  731: SUDOERS_GID
  732: SUDOERS_UID
  733: SUDOERS_MODE
  734: SHLIB_MODE
  735: MANCOMPRESSEXT
  736: MANCOMPRESS
  737: MANDIRTYPE
  738: MANTYPE
  739: AUTH_OBJS
  740: OSDEFS
  741: GETGROUPS_LIB
  742: REPLAY_LIBS
  743: AFS_LIBS
  744: NET_LIBS
  745: SUDOERS_LIBS
  746: SUDO_LIBS
  747: SUDO_OBJS
  748: SUDOERS_OBJS
  749: COMMON_OBJS
  750: LT_LDEXPORTS
  751: LT_LDDEP
  752: LT_LDOPT
  753: LT_LDMAP
  754: LT_LDFLAGS
  755: SUDOERS_LDFLAGS
  756: LDFLAGS
  757: CPPFLAGS
  758: PROGS
  759: CFLAGS
  760: LIBTOOL
  761: HAVE_BSM_AUDIT
  762: target_alias
  763: host_alias
  764: build_alias
  765: LIBS
  766: ECHO_T
  767: ECHO_N
  768: ECHO_C
  769: DEFS
  770: mandir
  771: localedir
  772: libdir
  773: psdir
  774: pdfdir
  775: dvidir
  776: htmldir
  777: infodir
  778: docdir
  779: oldincludedir
  780: includedir
  781: localstatedir
  782: sharedstatedir
  783: sysconfdir
  784: datadir
  785: datarootdir
  786: libexecdir
  787: sbindir
  788: bindir
  789: program_transform_name
  790: prefix
  791: exec_prefix
  792: PACKAGE_URL
  793: PACKAGE_BUGREPORT
  794: PACKAGE_STRING
  795: PACKAGE_VERSION
  796: PACKAGE_TARNAME
  797: PACKAGE_NAME
  798: PATH_SEPARATOR
  799: SHELL'
  800: ac_subst_files=''
  801: ac_user_opts='
  802: enable_option_checking
  803: with_otp_only
  804: with_alertmail
  805: with_devel
  806: with_CC
  807: with_rpath
  808: with_blibpath
  809: with_bsm_audit
  810: with_linux_audit
  811: with_sssd
  812: with_sssd_lib
  813: with_incpath
  814: with_libpath
  815: with_libraries
  816: with_efence
  817: with_csops
  818: with_passwd
  819: with_skey
  820: with_opie
  821: with_long_otp_prompt
  822: with_SecurID
  823: with_fwtk
  824: with_kerb5
  825: with_aixauth
  826: with_pam
  827: with_AFS
  828: with_DCE
  829: with_logincap
  830: with_bsdauth
  831: with_project
  832: with_lecture
  833: with_logging
  834: with_logfac
  835: with_goodpri
  836: with_badpri
  837: with_logpath
  838: with_loglen
  839: with_ignore_dot
  840: with_mail_if_no_user
  841: with_mail_if_no_host
  842: with_mail_if_noperms
  843: with_mailto
  844: with_mailsubject
  845: with_passprompt
  846: with_badpass_message
  847: with_fqdn
  848: with_timedir
  849: with_iologdir
  850: with_sendmail
  851: with_sudoers_mode
  852: with_sudoers_uid
  853: with_sudoers_gid
  854: with_umask
  855: with_umask_override
  856: with_runas_default
  857: with_exempt
  858: with_editor
  859: with_env_editor
  860: with_passwd_tries
  861: with_timeout
  862: with_password_timeout
  863: with_tty_tickets
  864: with_insults
  865: with_all_insults
  866: with_classic_insults
  867: with_csops_insults
  868: with_hal_insults
  869: with_goons_insults
  870: with_nsswitch
  871: with_ldap
  872: with_ldap_conf_file
  873: with_ldap_secret_file
  874: with_pc_insults
  875: with_secure_path
  876: with_interfaces
  877: with_stow
  878: with_askpass
  879: with_plugindir
  880: with_man
  881: with_mdoc
  882: enable_authentication
  883: enable_root_mailer
  884: enable_setreuid
  885: enable_setresuid
  886: enable_shadow
  887: enable_root_sudo
  888: enable_log_host
  889: enable_noargs_shell
  890: enable_shell_sets_home
  891: enable_path_info
  892: enable_env_debug
  893: enable_zlib
  894: enable_env_reset
  895: enable_warnings
  896: enable_werror
  897: enable_hardening
  898: enable_pie
  899: enable_admin_flag
  900: enable_nls
  901: with_selinux
  902: enable_gss_krb5_ccache_name
  903: enable_shared
  904: enable_static
  905: with_pic
  906: enable_fast_install
  907: with_gnu_ld
  908: with_sysroot
  909: enable_libtool_lock
  910: with_noexec
  911: with_netsvc
  912: enable_sia
  913: enable_largefile
  914: with_pam_login
  915: enable_pam_session
  916: enable_kerb5_instance
  917: '
  918:       ac_precious_vars='build_alias
  919: host_alias
  920: target_alias
  921: CC
  922: CFLAGS
  923: LDFLAGS
  924: LIBS
  925: CPPFLAGS
  926: CPP
  927: YACC
  928: YFLAGS'
  929: 
  930: 
  931: # Initialize some variables set by options.
  932: ac_init_help=
  933: ac_init_version=false
  934: ac_unrecognized_opts=
  935: ac_unrecognized_sep=
  936: # The variables have the same names as the options, with
  937: # dashes changed to underlines.
  938: cache_file=/dev/null
  939: exec_prefix=NONE
  940: no_create=
  941: no_recursion=
  942: prefix=NONE
  943: program_prefix=NONE
  944: program_suffix=NONE
  945: program_transform_name=s,x,x,
  946: silent=
  947: site=
  948: srcdir=
  949: verbose=
  950: x_includes=NONE
  951: x_libraries=NONE
  952: 
  953: # Installation directory options.
  954: # These are left unexpanded so users can "make install exec_prefix=/foo"
  955: # and all the variables that are supposed to be based on exec_prefix
  956: # by default will actually change.
  957: # Use braces instead of parens because sh, perl, etc. also accept them.
  958: # (The list follows the same order as the GNU Coding Standards.)
  959: bindir='${exec_prefix}/bin'
  960: sbindir='${exec_prefix}/sbin'
  961: libexecdir='${exec_prefix}/libexec'
  962: datarootdir='${prefix}/share'
  963: datadir='${datarootdir}'
  964: sysconfdir='${prefix}/etc'
  965: sharedstatedir='${prefix}/com'
  966: localstatedir='${prefix}/var'
  967: includedir='${prefix}/include'
  968: oldincludedir='/usr/include'
  969: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  970: infodir='${datarootdir}/info'
  971: htmldir='${docdir}'
  972: dvidir='${docdir}'
  973: pdfdir='${docdir}'
  974: psdir='${docdir}'
  975: libdir='${exec_prefix}/lib'
  976: localedir='${datarootdir}/locale'
  977: mandir='${datarootdir}/man'
  978: 
  979: ac_prev=
  980: ac_dashdash=
  981: for ac_option
  982: do
  983:   # If the previous option needs an argument, assign it.
  984:   if test -n "$ac_prev"; then
  985:     eval $ac_prev=\$ac_option
  986:     ac_prev=
  987:     continue
  988:   fi
  989: 
  990:   case $ac_option in
  991:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  992:   *=)   ac_optarg= ;;
  993:   *)    ac_optarg=yes ;;
  994:   esac
  995: 
  996:   # Accept the important Cygnus configure options, so we can diagnose typos.
  997: 
  998:   case $ac_dashdash$ac_option in
  999:   --)
 1000:     ac_dashdash=yes ;;
 1001: 
 1002:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
 1003:     ac_prev=bindir ;;
 1004:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 1005:     bindir=$ac_optarg ;;
 1006: 
 1007:   -build | --build | --buil | --bui | --bu)
 1008:     ac_prev=build_alias ;;
 1009:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 1010:     build_alias=$ac_optarg ;;
 1011: 
 1012:   -cache-file | --cache-file | --cache-fil | --cache-fi \
 1013:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 1014:     ac_prev=cache_file ;;
 1015:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 1016:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 1017:     cache_file=$ac_optarg ;;
 1018: 
 1019:   --config-cache | -C)
 1020:     cache_file=config.cache ;;
 1021: 
 1022:   -datadir | --datadir | --datadi | --datad)
 1023:     ac_prev=datadir ;;
 1024:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
 1025:     datadir=$ac_optarg ;;
 1026: 
 1027:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 1028:   | --dataroo | --dataro | --datar)
 1029:     ac_prev=datarootdir ;;
 1030:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 1031:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 1032:     datarootdir=$ac_optarg ;;
 1033: 
 1034:   -disable-* | --disable-*)
 1035:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 1036:     # Reject names that are not valid shell variable names.
 1037:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1038:       as_fn_error $? "invalid feature name: $ac_useropt"
 1039:     ac_useropt_orig=$ac_useropt
 1040:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1041:     case $ac_user_opts in
 1042:       *"
 1043: "enable_$ac_useropt"
 1044: "*) ;;
 1045:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 1046: 	 ac_unrecognized_sep=', ';;
 1047:     esac
 1048:     eval enable_$ac_useropt=no ;;
 1049: 
 1050:   -docdir | --docdir | --docdi | --doc | --do)
 1051:     ac_prev=docdir ;;
 1052:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 1053:     docdir=$ac_optarg ;;
 1054: 
 1055:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 1056:     ac_prev=dvidir ;;
 1057:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 1058:     dvidir=$ac_optarg ;;
 1059: 
 1060:   -enable-* | --enable-*)
 1061:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 1062:     # Reject names that are not valid shell variable names.
 1063:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1064:       as_fn_error $? "invalid feature name: $ac_useropt"
 1065:     ac_useropt_orig=$ac_useropt
 1066:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1067:     case $ac_user_opts in
 1068:       *"
 1069: "enable_$ac_useropt"
 1070: "*) ;;
 1071:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 1072: 	 ac_unrecognized_sep=', ';;
 1073:     esac
 1074:     eval enable_$ac_useropt=\$ac_optarg ;;
 1075: 
 1076:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 1077:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 1078:   | --exec | --exe | --ex)
 1079:     ac_prev=exec_prefix ;;
 1080:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 1081:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 1082:   | --exec=* | --exe=* | --ex=*)
 1083:     exec_prefix=$ac_optarg ;;
 1084: 
 1085:   -gas | --gas | --ga | --g)
 1086:     # Obsolete; use --with-gas.
 1087:     with_gas=yes ;;
 1088: 
 1089:   -help | --help | --hel | --he | -h)
 1090:     ac_init_help=long ;;
 1091:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 1092:     ac_init_help=recursive ;;
 1093:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 1094:     ac_init_help=short ;;
 1095: 
 1096:   -host | --host | --hos | --ho)
 1097:     ac_prev=host_alias ;;
 1098:   -host=* | --host=* | --hos=* | --ho=*)
 1099:     host_alias=$ac_optarg ;;
 1100: 
 1101:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 1102:     ac_prev=htmldir ;;
 1103:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 1104:   | --ht=*)
 1105:     htmldir=$ac_optarg ;;
 1106: 
 1107:   -includedir | --includedir | --includedi | --included | --include \
 1108:   | --includ | --inclu | --incl | --inc)
 1109:     ac_prev=includedir ;;
 1110:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 1111:   | --includ=* | --inclu=* | --incl=* | --inc=*)
 1112:     includedir=$ac_optarg ;;
 1113: 
 1114:   -infodir | --infodir | --infodi | --infod | --info | --inf)
 1115:     ac_prev=infodir ;;
 1116:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 1117:     infodir=$ac_optarg ;;
 1118: 
 1119:   -libdir | --libdir | --libdi | --libd)
 1120:     ac_prev=libdir ;;
 1121:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
 1122:     libdir=$ac_optarg ;;
 1123: 
 1124:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 1125:   | --libexe | --libex | --libe)
 1126:     ac_prev=libexecdir ;;
 1127:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 1128:   | --libexe=* | --libex=* | --libe=*)
 1129:     libexecdir=$ac_optarg ;;
 1130: 
 1131:   -localedir | --localedir | --localedi | --localed | --locale)
 1132:     ac_prev=localedir ;;
 1133:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 1134:     localedir=$ac_optarg ;;
 1135: 
 1136:   -localstatedir | --localstatedir | --localstatedi | --localstated \
 1137:   | --localstate | --localstat | --localsta | --localst | --locals)
 1138:     ac_prev=localstatedir ;;
 1139:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 1140:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 1141:     localstatedir=$ac_optarg ;;
 1142: 
 1143:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 1144:     ac_prev=mandir ;;
 1145:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 1146:     mandir=$ac_optarg ;;
 1147: 
 1148:   -nfp | --nfp | --nf)
 1149:     # Obsolete; use --without-fp.
 1150:     with_fp=no ;;
 1151: 
 1152:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 1153:   | --no-cr | --no-c | -n)
 1154:     no_create=yes ;;
 1155: 
 1156:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 1157:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 1158:     no_recursion=yes ;;
 1159: 
 1160:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 1161:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 1162:   | --oldin | --oldi | --old | --ol | --o)
 1163:     ac_prev=oldincludedir ;;
 1164:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 1165:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 1166:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 1167:     oldincludedir=$ac_optarg ;;
 1168: 
 1169:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 1170:     ac_prev=prefix ;;
 1171:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 1172:     prefix=$ac_optarg ;;
 1173: 
 1174:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
 1175:   | --program-pre | --program-pr | --program-p)
 1176:     ac_prev=program_prefix ;;
 1177:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
 1178:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 1179:     program_prefix=$ac_optarg ;;
 1180: 
 1181:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 1182:   | --program-suf | --program-su | --program-s)
 1183:     ac_prev=program_suffix ;;
 1184:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 1185:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 1186:     program_suffix=$ac_optarg ;;
 1187: 
 1188:   -program-transform-name | --program-transform-name \
 1189:   | --program-transform-nam | --program-transform-na \
 1190:   | --program-transform-n | --program-transform- \
 1191:   | --program-transform | --program-transfor \
 1192:   | --program-transfo | --program-transf \
 1193:   | --program-trans | --program-tran \
 1194:   | --progr-tra | --program-tr | --program-t)
 1195:     ac_prev=program_transform_name ;;
 1196:   -program-transform-name=* | --program-transform-name=* \
 1197:   | --program-transform-nam=* | --program-transform-na=* \
 1198:   | --program-transform-n=* | --program-transform-=* \
 1199:   | --program-transform=* | --program-transfor=* \
 1200:   | --program-transfo=* | --program-transf=* \
 1201:   | --program-trans=* | --program-tran=* \
 1202:   | --progr-tra=* | --program-tr=* | --program-t=*)
 1203:     program_transform_name=$ac_optarg ;;
 1204: 
 1205:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 1206:     ac_prev=pdfdir ;;
 1207:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 1208:     pdfdir=$ac_optarg ;;
 1209: 
 1210:   -psdir | --psdir | --psdi | --psd | --ps)
 1211:     ac_prev=psdir ;;
 1212:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 1213:     psdir=$ac_optarg ;;
 1214: 
 1215:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1216:   | -silent | --silent | --silen | --sile | --sil)
 1217:     silent=yes ;;
 1218: 
 1219:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1220:     ac_prev=sbindir ;;
 1221:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1222:   | --sbi=* | --sb=*)
 1223:     sbindir=$ac_optarg ;;
 1224: 
 1225:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1226:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1227:   | --sharedst | --shareds | --shared | --share | --shar \
 1228:   | --sha | --sh)
 1229:     ac_prev=sharedstatedir ;;
 1230:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1231:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1232:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1233:   | --sha=* | --sh=*)
 1234:     sharedstatedir=$ac_optarg ;;
 1235: 
 1236:   -site | --site | --sit)
 1237:     ac_prev=site ;;
 1238:   -site=* | --site=* | --sit=*)
 1239:     site=$ac_optarg ;;
 1240: 
 1241:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1242:     ac_prev=srcdir ;;
 1243:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1244:     srcdir=$ac_optarg ;;
 1245: 
 1246:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1247:   | --syscon | --sysco | --sysc | --sys | --sy)
 1248:     ac_prev=sysconfdir ;;
 1249:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1250:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1251:     sysconfdir=$ac_optarg ;;
 1252: 
 1253:   -target | --target | --targe | --targ | --tar | --ta | --t)
 1254:     ac_prev=target_alias ;;
 1255:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1256:     target_alias=$ac_optarg ;;
 1257: 
 1258:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1259:     verbose=yes ;;
 1260: 
 1261:   -version | --version | --versio | --versi | --vers | -V)
 1262:     ac_init_version=: ;;
 1263: 
 1264:   -with-* | --with-*)
 1265:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1266:     # Reject names that are not valid shell variable names.
 1267:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1268:       as_fn_error $? "invalid package name: $ac_useropt"
 1269:     ac_useropt_orig=$ac_useropt
 1270:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1271:     case $ac_user_opts in
 1272:       *"
 1273: "with_$ac_useropt"
 1274: "*) ;;
 1275:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1276: 	 ac_unrecognized_sep=', ';;
 1277:     esac
 1278:     eval with_$ac_useropt=\$ac_optarg ;;
 1279: 
 1280:   -without-* | --without-*)
 1281:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1282:     # Reject names that are not valid shell variable names.
 1283:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1284:       as_fn_error $? "invalid package name: $ac_useropt"
 1285:     ac_useropt_orig=$ac_useropt
 1286:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1287:     case $ac_user_opts in
 1288:       *"
 1289: "with_$ac_useropt"
 1290: "*) ;;
 1291:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1292: 	 ac_unrecognized_sep=', ';;
 1293:     esac
 1294:     eval with_$ac_useropt=no ;;
 1295: 
 1296:   --x)
 1297:     # Obsolete; use --with-x.
 1298:     with_x=yes ;;
 1299: 
 1300:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1301:   | --x-incl | --x-inc | --x-in | --x-i)
 1302:     ac_prev=x_includes ;;
 1303:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1304:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1305:     x_includes=$ac_optarg ;;
 1306: 
 1307:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1308:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1309:     ac_prev=x_libraries ;;
 1310:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1311:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1312:     x_libraries=$ac_optarg ;;
 1313: 
 1314:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1315: Try \`$0 --help' for more information"
 1316:     ;;
 1317: 
 1318:   *=*)
 1319:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1320:     # Reject names that are not valid shell variable names.
 1321:     case $ac_envvar in #(
 1322:       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1323:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1324:     esac
 1325:     eval $ac_envvar=\$ac_optarg
 1326:     export $ac_envvar ;;
 1327: 
 1328:   *)
 1329:     # FIXME: should be removed in autoconf 3.0.
 1330:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1331:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1332:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1333:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1334:     ;;
 1335: 
 1336:   esac
 1337: done
 1338: 
 1339: if test -n "$ac_prev"; then
 1340:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1341:   as_fn_error $? "missing argument to $ac_option"
 1342: fi
 1343: 
 1344: if test -n "$ac_unrecognized_opts"; then
 1345:   case $enable_option_checking in
 1346:     no) ;;
 1347:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1348:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1349:   esac
 1350: fi
 1351: 
 1352: # Check all directory arguments for consistency.
 1353: for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1354: 		datadir sysconfdir sharedstatedir localstatedir includedir \
 1355: 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1356: 		libdir localedir mandir
 1357: do
 1358:   eval ac_val=\$$ac_var
 1359:   # Remove trailing slashes.
 1360:   case $ac_val in
 1361:     */ )
 1362:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1363:       eval $ac_var=\$ac_val;;
 1364:   esac
 1365:   # Be sure to have absolute directory names.
 1366:   case $ac_val in
 1367:     [\\/$]* | ?:[\\/]* )  continue;;
 1368:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1369:   esac
 1370:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1371: done
 1372: 
 1373: # There might be people who depend on the old broken behavior: `$host'
 1374: # used to hold the argument of --host etc.
 1375: # FIXME: To remove some day.
 1376: build=$build_alias
 1377: host=$host_alias
 1378: target=$target_alias
 1379: 
 1380: # FIXME: To remove some day.
 1381: if test "x$host_alias" != x; then
 1382:   if test "x$build_alias" = x; then
 1383:     cross_compiling=maybe
 1384:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 1385:     If a cross compiler is detected then cross compile mode will be used" >&2
 1386:   elif test "x$build_alias" != "x$host_alias"; then
 1387:     cross_compiling=yes
 1388:   fi
 1389: fi
 1390: 
 1391: ac_tool_prefix=
 1392: test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1393: 
 1394: test "$silent" = yes && exec 6>/dev/null
 1395: 
 1396: 
 1397: ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1398: ac_ls_di=`ls -di .` &&
 1399: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1400:   as_fn_error $? "working directory cannot be determined"
 1401: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1402:   as_fn_error $? "pwd does not report name of working directory"
 1403: 
 1404: 
 1405: # Find the source files, if location was not specified.
 1406: if test -z "$srcdir"; then
 1407:   ac_srcdir_defaulted=yes
 1408:   # Try the directory containing this script, then the parent directory.
 1409:   ac_confdir=`$as_dirname -- "$as_myself" ||
 1410: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1411: 	 X"$as_myself" : 'X\(//\)[^/]' \| \
 1412: 	 X"$as_myself" : 'X\(//\)$' \| \
 1413: 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1414: $as_echo X"$as_myself" |
 1415:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1416: 	    s//\1/
 1417: 	    q
 1418: 	  }
 1419: 	  /^X\(\/\/\)[^/].*/{
 1420: 	    s//\1/
 1421: 	    q
 1422: 	  }
 1423: 	  /^X\(\/\/\)$/{
 1424: 	    s//\1/
 1425: 	    q
 1426: 	  }
 1427: 	  /^X\(\/\).*/{
 1428: 	    s//\1/
 1429: 	    q
 1430: 	  }
 1431: 	  s/.*/./; q'`
 1432:   srcdir=$ac_confdir
 1433:   if test ! -r "$srcdir/$ac_unique_file"; then
 1434:     srcdir=..
 1435:   fi
 1436: else
 1437:   ac_srcdir_defaulted=no
 1438: fi
 1439: if test ! -r "$srcdir/$ac_unique_file"; then
 1440:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1441:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1442: fi
 1443: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1444: ac_abs_confdir=`(
 1445: 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1446: 	pwd)`
 1447: # When building in place, set srcdir=.
 1448: if test "$ac_abs_confdir" = "$ac_pwd"; then
 1449:   srcdir=.
 1450: fi
 1451: # Remove unnecessary trailing slashes from srcdir.
 1452: # Double slashes in file names in object file debugging info
 1453: # mess up M-x gdb in Emacs.
 1454: case $srcdir in
 1455: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1456: esac
 1457: for ac_var in $ac_precious_vars; do
 1458:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1459:   eval ac_env_${ac_var}_value=\$${ac_var}
 1460:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1461:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1462: done
 1463: 
 1464: #
 1465: # Report the --help message.
 1466: #
 1467: if test "$ac_init_help" = "long"; then
 1468:   # Omit some internal or obsolete options to make the list less imposing.
 1469:   # This message is too long to be a string in the A/UX 3.1 sh.
 1470:   cat <<_ACEOF
 1471: \`configure' configures sudo 1.8.6p3 to adapt to many kinds of systems.
 1472: 
 1473: Usage: $0 [OPTION]... [VAR=VALUE]...
 1474: 
 1475: To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1476: VAR=VALUE.  See below for descriptions of some of the useful variables.
 1477: 
 1478: Defaults for the options are specified in brackets.
 1479: 
 1480: Configuration:
 1481:   -h, --help              display this help and exit
 1482:       --help=short        display options specific to this package
 1483:       --help=recursive    display the short help of all the included packages
 1484:   -V, --version           display version information and exit
 1485:   -q, --quiet, --silent   do not print \`checking ...' messages
 1486:       --cache-file=FILE   cache test results in FILE [disabled]
 1487:   -C, --config-cache      alias for \`--cache-file=config.cache'
 1488:   -n, --no-create         do not create output files
 1489:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1490: 
 1491: Installation directories:
 1492:   --prefix=PREFIX         install architecture-independent files in PREFIX
 1493:                           [$ac_default_prefix]
 1494:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1495:                           [PREFIX]
 1496: 
 1497: By default, \`make install' will install all the files in
 1498: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1499: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1500: for instance \`--prefix=\$HOME'.
 1501: 
 1502: For better control, use the options below.
 1503: 
 1504: Fine tuning of the installation directories:
 1505:   --bindir=DIR            user executables [EPREFIX/bin]
 1506:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1507:   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1508:   --sysconfdir=DIR        read-only single-machine data [/etc]
 1509:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1510:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1511:   --libdir=DIR            object code libraries [EPREFIX/lib]
 1512:   --includedir=DIR        C header files [PREFIX/include]
 1513:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1514:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1515:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1516:   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1517:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1518:   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1519:   --docdir=DIR            documentation root [DATAROOTDIR/doc/sudo]
 1520:   --htmldir=DIR           html documentation [DOCDIR]
 1521:   --dvidir=DIR            dvi documentation [DOCDIR]
 1522:   --pdfdir=DIR            pdf documentation [DOCDIR]
 1523:   --psdir=DIR             ps documentation [DOCDIR]
 1524: _ACEOF
 1525: 
 1526:   cat <<\_ACEOF
 1527: 
 1528: System types:
 1529:   --build=BUILD     configure for building on BUILD [guessed]
 1530:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 1531: _ACEOF
 1532: fi
 1533: 
 1534: if test -n "$ac_init_help"; then
 1535:   case $ac_init_help in
 1536:      short | recursive ) echo "Configuration of sudo 1.8.6p3:";;
 1537:    esac
 1538:   cat <<\_ACEOF
 1539: 
 1540: Optional Features:
 1541:   --disable-option-checking  ignore unrecognized --enable/--with options
 1542:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1543:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1544:   --disable-authentication
 1545:                           Do not require authentication by default
 1546:   --disable-root-mailer   Don't run the mailer as root, run as the user
 1547:   --disable-setreuid      Don't try to use the setreuid() function
 1548:   --disable-setresuid     Don't try to use the setresuid() function
 1549:   --disable-shadow        Never use shadow passwords
 1550:   --disable-root-sudo     Don't allow root to run sudo
 1551:   --enable-log-host       Log the hostname in the log file
 1552:   --enable-noargs-shell   If sudo is given no arguments run a shell
 1553:   --enable-shell-sets-home
 1554:                           Set $HOME to target user in shell mode
 1555:   --disable-path-info     Print 'command not allowed' not 'command not found'
 1556:   --enable-env-debug      Whether to enable environment debugging.
 1557:   --enable-zlib[=PATH]    Whether to enable or disable zlib
 1558:   --enable-env-reset      Whether to enable environment resetting by default.
 1559:   --enable-warnings       Whether to enable compiler warnings
 1560:   --enable-werror         Whether to enable the -Werror compiler option
 1561:   --disable-hardening     Do not use compiler/linker exploit mitigation
 1562:                           options
 1563:   --disable-pie           Do not build position independent executables, even
 1564:                           if the compiler/linker supports them
 1565:   --enable-admin-flag     Whether to create a Ubuntu-style admin flag file
 1566:   --disable-nls           Disable natural language support using gettext
 1567:   --enable-gss-krb5-ccache-name
 1568:                           Use GSS-API to set the Kerberos V cred cache name
 1569:   --enable-shared[=PKGS]  build shared libraries [default=yes]
 1570:   --enable-static[=PKGS]  build static libraries [default=yes]
 1571:   --enable-fast-install[=PKGS]
 1572:                           optimize for fast installation [default=yes]
 1573:   --disable-libtool-lock  avoid locking (might break parallel builds)
 1574:   --disable-sia           Disable SIA on Digital UNIX
 1575:   --disable-largefile     omit support for large files
 1576:   --disable-pam-session   Disable PAM session support
 1577:   --enable-kerb5-instance instance string to append to the username (separated
 1578:                           by a slash)
 1579: 
 1580: Optional Packages:
 1581:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1582:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1583:   --with-otp-only         deprecated
 1584:   --with-alertmail        deprecated
 1585:   --with-devel            add development options
 1586:   --with-CC               C compiler to use
 1587:   --with-rpath            pass -R flag in addition to -L for lib paths
 1588:   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
 1589:   --with-bsm-audit        enable BSM audit support
 1590:   --with-linux-audit      enable Linux audit support
 1591:   --with-sssd             enable SSSD support
 1592:   --with-sssd-lib         path to the SSSD library
 1593:   --with-incpath          additional places to look for include files
 1594:   --with-libpath          additional places to look for libraries
 1595:   --with-libraries        additional libraries to link with
 1596:   --with-efence           link with -lefence for malloc() debugging
 1597:   --with-csops            add CSOps standard options
 1598:   --without-passwd        don't use passwd/shadow file for authentication
 1599:   --with-skey=DIR         enable S/Key support
 1600:   --with-opie=DIR         enable OPIE support
 1601:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
 1602:   --with-SecurID[=DIR]    enable SecurID support
 1603:   --with-fwtk[=DIR]       enable FWTK AuthSRV support
 1604:   --with-kerb5[=DIR]      enable Kerberos V support
 1605:   --with-aixauth          enable AIX general authentication support
 1606:   --with-pam              enable PAM support
 1607:   --with-AFS              enable AFS support
 1608:   --with-DCE              enable DCE support
 1609:   --with-logincap         enable BSD login class support
 1610:   --with-bsdauth          enable BSD authentication support
 1611:   --with-project          enable Solaris project support
 1612:   --without-lecture       don't print lecture for first-time sudoer
 1613:   --with-logging          log via syslog, file, or both
 1614:   --with-logfac           syslog facility to log with (default is "auth")
 1615:   --with-goodpri          syslog priority for commands (def is "notice")
 1616:   --with-badpri           syslog priority for failures (def is "alert")
 1617:   --with-logpath          path to the sudo log file
 1618:   --with-loglen           maximum length of a log file line (default is 80)
 1619:   --with-ignore-dot       ignore '.' in the PATH
 1620:   --without-mail-if-no-user
 1621:                           do not send mail if user not in sudoers
 1622:   --with-mail-if-no-host  send mail if user in sudoers but not for this host
 1623:   --with-mail-if-noperms  send mail if user not allowed to run command
 1624:   --with-mailto           who should get sudo mail (default is "root")
 1625:   --with-mailsubject      subject of sudo mail
 1626:   --with-passprompt       default password prompt
 1627:   --with-badpass-message  message the user sees when the password is wrong
 1628:   --with-fqdn             expect fully qualified hosts in sudoers
 1629:   --with-timedir          path to the sudo timestamp dir
 1630:   --with-iologdir=DIR     directory to store sudo I/O log files in
 1631:   --with-sendmail         set path to sendmail
 1632:   --without-sendmail      do not send mail at all
 1633:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
 1634:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
 1635:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
 1636:   --with-umask            umask with which the prog should run (default is
 1637:                           022)
 1638:   --without-umask         Preserves the umask of the user invoking sudo.
 1639:   --with-umask-override   Use the umask specified in sudoers even if it is
 1640:                           less restrictive than the user's.
 1641:   --with-runas-default    User to run commands as (default is "root")
 1642:   --with-exempt=group     no passwd needed for users in this group
 1643:   --with-editor=path      Default editor for visudo (defaults to vi)
 1644:   --with-env-editor       Use the environment variable EDITOR for visudo
 1645:   --with-passwd-tries     number of tries to enter password (default is 3)
 1646:   --with-timeout          minutes before sudo asks for passwd again (def is 5
 1647:                           minutes)
 1648:   --with-password-timeout passwd prompt timeout in minutes (default is 5
 1649:                           minutes)
 1650:   --with-tty-tickets      use a different ticket file for each tty
 1651:   --with-insults          insult the user for entering an incorrect password
 1652:   --with-all-insults      include all the sudo insult sets
 1653:   --with-classic-insults  include the insults from the "classic" sudo
 1654:   --with-csops-insults    include CSOps insults
 1655:   --with-hal-insults      include 2001-like insults
 1656:   --with-goons-insults    include the insults from the "Goon Show"
 1657:   --with-nsswitch[=PATH]  path to nsswitch.conf
 1658:   --with-ldap[=DIR]       enable LDAP support
 1659:   --with-ldap-conf-file   path to LDAP configuration file
 1660:   --with-ldap-secret-file path to LDAP secret password file
 1661:   --with-pc-insults       replace politically incorrect insults with less
 1662:                           offensive ones
 1663:   --with-secure-path      override the user's path with a built-in one
 1664:   --without-interfaces    don't try to read the ip addr of ether interfaces
 1665:   --with-stow             deprecated
 1666:   --with-askpass=PATH     Fully qualified pathname of askpass helper
 1667:   --with-plugindir        set directory to load plugins from
 1668:   --with-man              manual pages use man macros
 1669:   --with-mdoc             manual pages use mdoc macros
 1670:   --with-selinux          enable SELinux support
 1671:   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 1672:                           both]
 1673:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 1674:   --with-sysroot=DIR Search for dependent libraries within DIR
 1675:                         (or the compiler's sysroot if not specified).
 1676:   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
 1677:   --with-netsvc[=PATH]    path to netsvc.conf
 1678:   --with-pam-login        enable specific PAM session for sudo -i
 1679: 
 1680: Some influential environment variables:
 1681:   CC          C compiler command
 1682:   CFLAGS      C compiler flags
 1683:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 1684:               nonstandard directory <lib dir>
 1685:   LIBS        libraries to pass to the linker, e.g. -l<library>
 1686:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 1687:               you have headers in a nonstandard directory <include dir>
 1688:   CPP         C preprocessor
 1689:   YACC        The `Yet Another Compiler Compiler' implementation to use.
 1690:               Defaults to the first program found out of: `bison -y', `byacc',
 1691:               `yacc'.
 1692:   YFLAGS      The list of arguments that will be passed by default to $YACC.
 1693:               This script will default YFLAGS to the empty string to avoid a
 1694:               default value of `-d' given by some make applications.
 1695: 
 1696: Use these variables to override the choices made by `configure' or to help
 1697: it to find libraries and programs with nonstandard names/locations.
 1698: 
 1699: Report bugs to <http://www.sudo.ws/bugs/>.
 1700: _ACEOF
 1701: ac_status=$?
 1702: fi
 1703: 
 1704: if test "$ac_init_help" = "recursive"; then
 1705:   # If there are subdirs, report their specific --help.
 1706:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1707:     test -d "$ac_dir" ||
 1708:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1709:       continue
 1710:     ac_builddir=.
 1711: 
 1712: case "$ac_dir" in
 1713: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1714: *)
 1715:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1716:   # A ".." for each directory in $ac_dir_suffix.
 1717:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1718:   case $ac_top_builddir_sub in
 1719:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1720:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1721:   esac ;;
 1722: esac
 1723: ac_abs_top_builddir=$ac_pwd
 1724: ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1725: # for backward compatibility:
 1726: ac_top_builddir=$ac_top_build_prefix
 1727: 
 1728: case $srcdir in
 1729:   .)  # We are building in place.
 1730:     ac_srcdir=.
 1731:     ac_top_srcdir=$ac_top_builddir_sub
 1732:     ac_abs_top_srcdir=$ac_pwd ;;
 1733:   [\\/]* | ?:[\\/]* )  # Absolute name.
 1734:     ac_srcdir=$srcdir$ac_dir_suffix;
 1735:     ac_top_srcdir=$srcdir
 1736:     ac_abs_top_srcdir=$srcdir ;;
 1737:   *) # Relative name.
 1738:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1739:     ac_top_srcdir=$ac_top_build_prefix$srcdir
 1740:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1741: esac
 1742: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1743: 
 1744:     cd "$ac_dir" || { ac_status=$?; continue; }
 1745:     # Check for guested configure.
 1746:     if test -f "$ac_srcdir/configure.gnu"; then
 1747:       echo &&
 1748:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1749:     elif test -f "$ac_srcdir/configure"; then
 1750:       echo &&
 1751:       $SHELL "$ac_srcdir/configure" --help=recursive
 1752:     else
 1753:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1754:     fi || ac_status=$?
 1755:     cd "$ac_pwd" || { ac_status=$?; break; }
 1756:   done
 1757: fi
 1758: 
 1759: test -n "$ac_init_help" && exit $ac_status
 1760: if $ac_init_version; then
 1761:   cat <<\_ACEOF
 1762: sudo configure 1.8.6p3
 1763: generated by GNU Autoconf 2.68
 1764: 
 1765: Copyright (C) 2010 Free Software Foundation, Inc.
 1766: This configure script is free software; the Free Software Foundation
 1767: gives unlimited permission to copy, distribute and modify it.
 1768: _ACEOF
 1769:   exit
 1770: fi
 1771: 
 1772: ## ------------------------ ##
 1773: ## Autoconf initialization. ##
 1774: ## ------------------------ ##
 1775: 
 1776: # ac_fn_c_try_compile LINENO
 1777: # --------------------------
 1778: # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1779: ac_fn_c_try_compile ()
 1780: {
 1781:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1782:   rm -f conftest.$ac_objext
 1783:   if { { ac_try="$ac_compile"
 1784: case "(($ac_try" in
 1785:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1786:   *) ac_try_echo=$ac_try;;
 1787: esac
 1788: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1789: $as_echo "$ac_try_echo"; } >&5
 1790:   (eval "$ac_compile") 2>conftest.err
 1791:   ac_status=$?
 1792:   if test -s conftest.err; then
 1793:     grep -v '^ *+' conftest.err >conftest.er1
 1794:     cat conftest.er1 >&5
 1795:     mv -f conftest.er1 conftest.err
 1796:   fi
 1797:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1798:   test $ac_status = 0; } && {
 1799: 	 test -z "$ac_c_werror_flag" ||
 1800: 	 test ! -s conftest.err
 1801:        } && test -s conftest.$ac_objext; then :
 1802:   ac_retval=0
 1803: else
 1804:   $as_echo "$as_me: failed program was:" >&5
 1805: sed 's/^/| /' conftest.$ac_ext >&5
 1806: 
 1807: 	ac_retval=1
 1808: fi
 1809:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1810:   as_fn_set_status $ac_retval
 1811: 
 1812: } # ac_fn_c_try_compile
 1813: 
 1814: # ac_fn_c_try_link LINENO
 1815: # -----------------------
 1816: # Try to link conftest.$ac_ext, and return whether this succeeded.
 1817: ac_fn_c_try_link ()
 1818: {
 1819:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1820:   rm -f conftest.$ac_objext conftest$ac_exeext
 1821:   if { { ac_try="$ac_link"
 1822: case "(($ac_try" in
 1823:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1824:   *) ac_try_echo=$ac_try;;
 1825: esac
 1826: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1827: $as_echo "$ac_try_echo"; } >&5
 1828:   (eval "$ac_link") 2>conftest.err
 1829:   ac_status=$?
 1830:   if test -s conftest.err; then
 1831:     grep -v '^ *+' conftest.err >conftest.er1
 1832:     cat conftest.er1 >&5
 1833:     mv -f conftest.er1 conftest.err
 1834:   fi
 1835:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1836:   test $ac_status = 0; } && {
 1837: 	 test -z "$ac_c_werror_flag" ||
 1838: 	 test ! -s conftest.err
 1839:        } && test -s conftest$ac_exeext && {
 1840: 	 test "$cross_compiling" = yes ||
 1841: 	 $as_test_x conftest$ac_exeext
 1842:        }; then :
 1843:   ac_retval=0
 1844: else
 1845:   $as_echo "$as_me: failed program was:" >&5
 1846: sed 's/^/| /' conftest.$ac_ext >&5
 1847: 
 1848: 	ac_retval=1
 1849: fi
 1850:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 1851:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 1852:   # interfere with the next link command; also delete a directory that is
 1853:   # left behind by Apple's compiler.  We do this before executing the actions.
 1854:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1855:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1856:   as_fn_set_status $ac_retval
 1857: 
 1858: } # ac_fn_c_try_link
 1859: 
 1860: # ac_fn_c_try_cpp LINENO
 1861: # ----------------------
 1862: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 1863: ac_fn_c_try_cpp ()
 1864: {
 1865:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1866:   if { { ac_try="$ac_cpp conftest.$ac_ext"
 1867: case "(($ac_try" in
 1868:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1869:   *) ac_try_echo=$ac_try;;
 1870: esac
 1871: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1872: $as_echo "$ac_try_echo"; } >&5
 1873:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 1874:   ac_status=$?
 1875:   if test -s conftest.err; then
 1876:     grep -v '^ *+' conftest.err >conftest.er1
 1877:     cat conftest.er1 >&5
 1878:     mv -f conftest.er1 conftest.err
 1879:   fi
 1880:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1881:   test $ac_status = 0; } > conftest.i && {
 1882: 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 1883: 	 test ! -s conftest.err
 1884:        }; then :
 1885:   ac_retval=0
 1886: else
 1887:   $as_echo "$as_me: failed program was:" >&5
 1888: sed 's/^/| /' conftest.$ac_ext >&5
 1889: 
 1890:     ac_retval=1
 1891: fi
 1892:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1893:   as_fn_set_status $ac_retval
 1894: 
 1895: } # ac_fn_c_try_cpp
 1896: 
 1897: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 1898: # -------------------------------------------------------
 1899: # Tests whether HEADER exists and can be compiled using the include files in
 1900: # INCLUDES, setting the cache variable VAR accordingly.
 1901: ac_fn_c_check_header_compile ()
 1902: {
 1903:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1904:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1905: $as_echo_n "checking for $2... " >&6; }
 1906: if eval \${$3+:} false; then :
 1907:   $as_echo_n "(cached) " >&6
 1908: else
 1909:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1910: /* end confdefs.h.  */
 1911: $4
 1912: #include <$2>
 1913: _ACEOF
 1914: if ac_fn_c_try_compile "$LINENO"; then :
 1915:   eval "$3=yes"
 1916: else
 1917:   eval "$3=no"
 1918: fi
 1919: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1920: fi
 1921: eval ac_res=\$$3
 1922: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1923: $as_echo "$ac_res" >&6; }
 1924:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1925: 
 1926: } # ac_fn_c_check_header_compile
 1927: 
 1928: # ac_fn_c_try_run LINENO
 1929: # ----------------------
 1930: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 1931: # that executables *can* be run.
 1932: ac_fn_c_try_run ()
 1933: {
 1934:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1935:   if { { ac_try="$ac_link"
 1936: case "(($ac_try" in
 1937:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1938:   *) ac_try_echo=$ac_try;;
 1939: esac
 1940: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1941: $as_echo "$ac_try_echo"; } >&5
 1942:   (eval "$ac_link") 2>&5
 1943:   ac_status=$?
 1944:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1945:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 1946:   { { case "(($ac_try" in
 1947:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1948:   *) ac_try_echo=$ac_try;;
 1949: esac
 1950: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1951: $as_echo "$ac_try_echo"; } >&5
 1952:   (eval "$ac_try") 2>&5
 1953:   ac_status=$?
 1954:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1955:   test $ac_status = 0; }; }; then :
 1956:   ac_retval=0
 1957: else
 1958:   $as_echo "$as_me: program exited with status $ac_status" >&5
 1959:        $as_echo "$as_me: failed program was:" >&5
 1960: sed 's/^/| /' conftest.$ac_ext >&5
 1961: 
 1962:        ac_retval=$ac_status
 1963: fi
 1964:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1965:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1966:   as_fn_set_status $ac_retval
 1967: 
 1968: } # ac_fn_c_try_run
 1969: 
 1970: # ac_fn_c_check_func LINENO FUNC VAR
 1971: # ----------------------------------
 1972: # Tests whether FUNC exists, setting the cache variable VAR accordingly
 1973: ac_fn_c_check_func ()
 1974: {
 1975:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1976:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1977: $as_echo_n "checking for $2... " >&6; }
 1978: if eval \${$3+:} false; then :
 1979:   $as_echo_n "(cached) " >&6
 1980: else
 1981:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1982: /* end confdefs.h.  */
 1983: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 1984:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 1985: #define $2 innocuous_$2
 1986: 
 1987: /* System header to define __stub macros and hopefully few prototypes,
 1988:     which can conflict with char $2 (); below.
 1989:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 1990:     <limits.h> exists even on freestanding compilers.  */
 1991: 
 1992: #ifdef __STDC__
 1993: # include <limits.h>
 1994: #else
 1995: # include <assert.h>
 1996: #endif
 1997: 
 1998: #undef $2
 1999: 
 2000: /* Override any GCC internal prototype to avoid an error.
 2001:    Use char because int might match the return type of a GCC
 2002:    builtin and then its argument prototype would still apply.  */
 2003: #ifdef __cplusplus
 2004: extern "C"
 2005: #endif
 2006: char $2 ();
 2007: /* The GNU C library defines this for functions which it implements
 2008:     to always fail with ENOSYS.  Some functions are actually named
 2009:     something starting with __ and the normal name is an alias.  */
 2010: #if defined __stub_$2 || defined __stub___$2
 2011: choke me
 2012: #endif
 2013: 
 2014: int
 2015: main ()
 2016: {
 2017: return $2 ();
 2018:   ;
 2019:   return 0;
 2020: }
 2021: _ACEOF
 2022: if ac_fn_c_try_link "$LINENO"; then :
 2023:   eval "$3=yes"
 2024: else
 2025:   eval "$3=no"
 2026: fi
 2027: rm -f core conftest.err conftest.$ac_objext \
 2028:     conftest$ac_exeext conftest.$ac_ext
 2029: fi
 2030: eval ac_res=\$$3
 2031: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2032: $as_echo "$ac_res" >&6; }
 2033:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2034: 
 2035: } # ac_fn_c_check_func
 2036: 
 2037: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 2038: # -------------------------------------------
 2039: # Tests whether TYPE exists after having included INCLUDES, setting cache
 2040: # variable VAR accordingly.
 2041: ac_fn_c_check_type ()
 2042: {
 2043:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2044:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 2045: $as_echo_n "checking for $2... " >&6; }
 2046: if eval \${$3+:} false; then :
 2047:   $as_echo_n "(cached) " >&6
 2048: else
 2049:   eval "$3=no"
 2050:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2051: /* end confdefs.h.  */
 2052: $4
 2053: int
 2054: main ()
 2055: {
 2056: if (sizeof ($2))
 2057: 	 return 0;
 2058:   ;
 2059:   return 0;
 2060: }
 2061: _ACEOF
 2062: if ac_fn_c_try_compile "$LINENO"; then :
 2063:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2064: /* end confdefs.h.  */
 2065: $4
 2066: int
 2067: main ()
 2068: {
 2069: if (sizeof (($2)))
 2070: 	    return 0;
 2071:   ;
 2072:   return 0;
 2073: }
 2074: _ACEOF
 2075: if ac_fn_c_try_compile "$LINENO"; then :
 2076: 
 2077: else
 2078:   eval "$3=yes"
 2079: fi
 2080: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2081: fi
 2082: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2083: fi
 2084: eval ac_res=\$$3
 2085: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2086: $as_echo "$ac_res" >&6; }
 2087:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2088: 
 2089: } # ac_fn_c_check_type
 2090: 
 2091: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 2092: # -------------------------------------------------------
 2093: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
 2094: # the include files in INCLUDES and setting the cache variable VAR
 2095: # accordingly.
 2096: ac_fn_c_check_header_mongrel ()
 2097: {
 2098:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2099:   if eval \${$3+:} false; then :
 2100:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 2101: $as_echo_n "checking for $2... " >&6; }
 2102: if eval \${$3+:} false; then :
 2103:   $as_echo_n "(cached) " >&6
 2104: fi
 2105: eval ac_res=\$$3
 2106: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2107: $as_echo "$ac_res" >&6; }
 2108: else
 2109:   # Is the header compilable?
 2110: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 2111: $as_echo_n "checking $2 usability... " >&6; }
 2112: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2113: /* end confdefs.h.  */
 2114: $4
 2115: #include <$2>
 2116: _ACEOF
 2117: if ac_fn_c_try_compile "$LINENO"; then :
 2118:   ac_header_compiler=yes
 2119: else
 2120:   ac_header_compiler=no
 2121: fi
 2122: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 2124: $as_echo "$ac_header_compiler" >&6; }
 2125: 
 2126: # Is the header present?
 2127: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 2128: $as_echo_n "checking $2 presence... " >&6; }
 2129: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2130: /* end confdefs.h.  */
 2131: #include <$2>
 2132: _ACEOF
 2133: if ac_fn_c_try_cpp "$LINENO"; then :
 2134:   ac_header_preproc=yes
 2135: else
 2136:   ac_header_preproc=no
 2137: fi
 2138: rm -f conftest.err conftest.i conftest.$ac_ext
 2139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 2140: $as_echo "$ac_header_preproc" >&6; }
 2141: 
 2142: # So?  What about this header?
 2143: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 2144:   yes:no: )
 2145:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 2146: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 2147:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 2148: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 2149:     ;;
 2150:   no:yes:* )
 2151:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 2152: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 2153:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 2154: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 2155:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 2156: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 2157:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 2158: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 2159:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 2160: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 2161: ( $as_echo "## --------------------------------------- ##
 2162: ## Report this to http://www.sudo.ws/bugs/ ##
 2163: ## --------------------------------------- ##"
 2164:      ) | sed "s/^/$as_me: WARNING:     /" >&2
 2165:     ;;
 2166: esac
 2167:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 2168: $as_echo_n "checking for $2... " >&6; }
 2169: if eval \${$3+:} false; then :
 2170:   $as_echo_n "(cached) " >&6
 2171: else
 2172:   eval "$3=\$ac_header_compiler"
 2173: fi
 2174: eval ac_res=\$$3
 2175: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2176: $as_echo "$ac_res" >&6; }
 2177: fi
 2178:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2179: 
 2180: } # ac_fn_c_check_header_mongrel
 2181: 
 2182: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 2183: # ----------------------------------------------------
 2184: # Tries to find if the field MEMBER exists in type AGGR, after including
 2185: # INCLUDES, setting cache variable VAR accordingly.
 2186: ac_fn_c_check_member ()
 2187: {
 2188:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2189:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 2190: $as_echo_n "checking for $2.$3... " >&6; }
 2191: if eval \${$4+:} false; then :
 2192:   $as_echo_n "(cached) " >&6
 2193: else
 2194:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2195: /* end confdefs.h.  */
 2196: $5
 2197: int
 2198: main ()
 2199: {
 2200: static $2 ac_aggr;
 2201: if (ac_aggr.$3)
 2202: return 0;
 2203:   ;
 2204:   return 0;
 2205: }
 2206: _ACEOF
 2207: if ac_fn_c_try_compile "$LINENO"; then :
 2208:   eval "$4=yes"
 2209: else
 2210:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2211: /* end confdefs.h.  */
 2212: $5
 2213: int
 2214: main ()
 2215: {
 2216: static $2 ac_aggr;
 2217: if (sizeof ac_aggr.$3)
 2218: return 0;
 2219:   ;
 2220:   return 0;
 2221: }
 2222: _ACEOF
 2223: if ac_fn_c_try_compile "$LINENO"; then :
 2224:   eval "$4=yes"
 2225: else
 2226:   eval "$4=no"
 2227: fi
 2228: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2229: fi
 2230: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2231: fi
 2232: eval ac_res=\$$4
 2233: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2234: $as_echo "$ac_res" >&6; }
 2235:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2236: 
 2237: } # ac_fn_c_check_member
 2238: 
 2239: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 2240: # --------------------------------------------
 2241: # Tries to find the compile-time value of EXPR in a program that includes
 2242: # INCLUDES, setting VAR accordingly. Returns whether the value could be
 2243: # computed
 2244: ac_fn_c_compute_int ()
 2245: {
 2246:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2247:   if test "$cross_compiling" = yes; then
 2248:     # Depending upon the size, compute the lo and hi bounds.
 2249: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2250: /* end confdefs.h.  */
 2251: $4
 2252: int
 2253: main ()
 2254: {
 2255: static int test_array [1 - 2 * !(($2) >= 0)];
 2256: test_array [0] = 0
 2257: 
 2258:   ;
 2259:   return 0;
 2260: }
 2261: _ACEOF
 2262: if ac_fn_c_try_compile "$LINENO"; then :
 2263:   ac_lo=0 ac_mid=0
 2264:   while :; do
 2265:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2266: /* end confdefs.h.  */
 2267: $4
 2268: int
 2269: main ()
 2270: {
 2271: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 2272: test_array [0] = 0
 2273: 
 2274:   ;
 2275:   return 0;
 2276: }
 2277: _ACEOF
 2278: if ac_fn_c_try_compile "$LINENO"; then :
 2279:   ac_hi=$ac_mid; break
 2280: else
 2281:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 2282: 			if test $ac_lo -le $ac_mid; then
 2283: 			  ac_lo= ac_hi=
 2284: 			  break
 2285: 			fi
 2286: 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 2287: fi
 2288: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2289:   done
 2290: else
 2291:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2292: /* end confdefs.h.  */
 2293: $4
 2294: int
 2295: main ()
 2296: {
 2297: static int test_array [1 - 2 * !(($2) < 0)];
 2298: test_array [0] = 0
 2299: 
 2300:   ;
 2301:   return 0;
 2302: }
 2303: _ACEOF
 2304: if ac_fn_c_try_compile "$LINENO"; then :
 2305:   ac_hi=-1 ac_mid=-1
 2306:   while :; do
 2307:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2308: /* end confdefs.h.  */
 2309: $4
 2310: int
 2311: main ()
 2312: {
 2313: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 2314: test_array [0] = 0
 2315: 
 2316:   ;
 2317:   return 0;
 2318: }
 2319: _ACEOF
 2320: if ac_fn_c_try_compile "$LINENO"; then :
 2321:   ac_lo=$ac_mid; break
 2322: else
 2323:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 2324: 			if test $ac_mid -le $ac_hi; then
 2325: 			  ac_lo= ac_hi=
 2326: 			  break
 2327: 			fi
 2328: 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 2329: fi
 2330: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2331:   done
 2332: else
 2333:   ac_lo= ac_hi=
 2334: fi
 2335: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2336: fi
 2337: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2338: # Binary search between lo and hi bounds.
 2339: while test "x$ac_lo" != "x$ac_hi"; do
 2340:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 2341:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2342: /* end confdefs.h.  */
 2343: $4
 2344: int
 2345: main ()
 2346: {
 2347: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 2348: test_array [0] = 0
 2349: 
 2350:   ;
 2351:   return 0;
 2352: }
 2353: _ACEOF
 2354: if ac_fn_c_try_compile "$LINENO"; then :
 2355:   ac_hi=$ac_mid
 2356: else
 2357:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 2358: fi
 2359: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2360: done
 2361: case $ac_lo in #((
 2362: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 2363: '') ac_retval=1 ;;
 2364: esac
 2365:   else
 2366:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2367: /* end confdefs.h.  */
 2368: $4
 2369: static long int longval () { return $2; }
 2370: static unsigned long int ulongval () { return $2; }
 2371: #include <stdio.h>
 2372: #include <stdlib.h>
 2373: int
 2374: main ()
 2375: {
 2376: 
 2377:   FILE *f = fopen ("conftest.val", "w");
 2378:   if (! f)
 2379:     return 1;
 2380:   if (($2) < 0)
 2381:     {
 2382:       long int i = longval ();
 2383:       if (i != ($2))
 2384: 	return 1;
 2385:       fprintf (f, "%ld", i);
 2386:     }
 2387:   else
 2388:     {
 2389:       unsigned long int i = ulongval ();
 2390:       if (i != ($2))
 2391: 	return 1;
 2392:       fprintf (f, "%lu", i);
 2393:     }
 2394:   /* Do not output a trailing newline, as this causes \r\n confusion
 2395:      on some platforms.  */
 2396:   return ferror (f) || fclose (f) != 0;
 2397: 
 2398:   ;
 2399:   return 0;
 2400: }
 2401: _ACEOF
 2402: if ac_fn_c_try_run "$LINENO"; then :
 2403:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 2404: else
 2405:   ac_retval=1
 2406: fi
 2407: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 2408:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 2409: rm -f conftest.val
 2410: 
 2411:   fi
 2412:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2413:   as_fn_set_status $ac_retval
 2414: 
 2415: } # ac_fn_c_compute_int
 2416: 
 2417: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 2418: # ---------------------------------------------
 2419: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 2420: # accordingly.
 2421: ac_fn_c_check_decl ()
 2422: {
 2423:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2424:   as_decl_name=`echo $2|sed 's/ *(.*//'`
 2425:   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 2426:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 2427: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 2428: if eval \${$3+:} false; then :
 2429:   $as_echo_n "(cached) " >&6
 2430: else
 2431:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2432: /* end confdefs.h.  */
 2433: $4
 2434: int
 2435: main ()
 2436: {
 2437: #ifndef $as_decl_name
 2438: #ifdef __cplusplus
 2439:   (void) $as_decl_use;
 2440: #else
 2441:   (void) $as_decl_name;
 2442: #endif
 2443: #endif
 2444: 
 2445:   ;
 2446:   return 0;
 2447: }
 2448: _ACEOF
 2449: if ac_fn_c_try_compile "$LINENO"; then :
 2450:   eval "$3=yes"
 2451: else
 2452:   eval "$3=no"
 2453: fi
 2454: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2455: fi
 2456: eval ac_res=\$$3
 2457: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2458: $as_echo "$ac_res" >&6; }
 2459:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2460: 
 2461: } # ac_fn_c_check_decl
 2462: cat >config.log <<_ACEOF
 2463: This file contains any messages produced by compilers while
 2464: running configure, to aid debugging if configure makes a mistake.
 2465: 
 2466: It was created by sudo $as_me 1.8.6p3, which was
 2467: generated by GNU Autoconf 2.68.  Invocation command line was
 2468: 
 2469:   $ $0 $@
 2470: 
 2471: _ACEOF
 2472: exec 5>>config.log
 2473: {
 2474: cat <<_ASUNAME
 2475: ## --------- ##
 2476: ## Platform. ##
 2477: ## --------- ##
 2478: 
 2479: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 2480: uname -m = `(uname -m) 2>/dev/null || echo unknown`
 2481: uname -r = `(uname -r) 2>/dev/null || echo unknown`
 2482: uname -s = `(uname -s) 2>/dev/null || echo unknown`
 2483: uname -v = `(uname -v) 2>/dev/null || echo unknown`
 2484: 
 2485: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 2486: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 2487: 
 2488: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 2489: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 2490: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 2491: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 2492: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 2493: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 2494: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 2495: 
 2496: _ASUNAME
 2497: 
 2498: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2499: for as_dir in $PATH
 2500: do
 2501:   IFS=$as_save_IFS
 2502:   test -z "$as_dir" && as_dir=.
 2503:     $as_echo "PATH: $as_dir"
 2504:   done
 2505: IFS=$as_save_IFS
 2506: 
 2507: } >&5
 2508: 
 2509: cat >&5 <<_ACEOF
 2510: 
 2511: 
 2512: ## ----------- ##
 2513: ## Core tests. ##
 2514: ## ----------- ##
 2515: 
 2516: _ACEOF
 2517: 
 2518: 
 2519: # Keep a trace of the command line.
 2520: # Strip out --no-create and --no-recursion so they do not pile up.
 2521: # Strip out --silent because we don't want to record it for future runs.
 2522: # Also quote any args containing shell meta-characters.
 2523: # Make two passes to allow for proper duplicate-argument suppression.
 2524: ac_configure_args=
 2525: ac_configure_args0=
 2526: ac_configure_args1=
 2527: ac_must_keep_next=false
 2528: for ac_pass in 1 2
 2529: do
 2530:   for ac_arg
 2531:   do
 2532:     case $ac_arg in
 2533:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 2534:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 2535:     | -silent | --silent | --silen | --sile | --sil)
 2536:       continue ;;
 2537:     *\'*)
 2538:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 2539:     esac
 2540:     case $ac_pass in
 2541:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 2542:     2)
 2543:       as_fn_append ac_configure_args1 " '$ac_arg'"
 2544:       if test $ac_must_keep_next = true; then
 2545: 	ac_must_keep_next=false # Got value, back to normal.
 2546:       else
 2547: 	case $ac_arg in
 2548: 	  *=* | --config-cache | -C | -disable-* | --disable-* \
 2549: 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 2550: 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 2551: 	  | -with-* | --with-* | -without-* | --without-* | --x)
 2552: 	    case "$ac_configure_args0 " in
 2553: 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 2554: 	    esac
 2555: 	    ;;
 2556: 	  -* ) ac_must_keep_next=true ;;
 2557: 	esac
 2558:       fi
 2559:       as_fn_append ac_configure_args " '$ac_arg'"
 2560:       ;;
 2561:     esac
 2562:   done
 2563: done
 2564: { ac_configure_args0=; unset ac_configure_args0;}
 2565: { ac_configure_args1=; unset ac_configure_args1;}
 2566: 
 2567: # When interrupted or exit'd, cleanup temporary files, and complete
 2568: # config.log.  We remove comments because anyway the quotes in there
 2569: # would cause problems or look ugly.
 2570: # WARNING: Use '\'' to represent an apostrophe within the trap.
 2571: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 2572: trap 'exit_status=$?
 2573:   # Save into config.log some information that might help in debugging.
 2574:   {
 2575:     echo
 2576: 
 2577:     $as_echo "## ---------------- ##
 2578: ## Cache variables. ##
 2579: ## ---------------- ##"
 2580:     echo
 2581:     # The following way of writing the cache mishandles newlines in values,
 2582: (
 2583:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 2584:     eval ac_val=\$$ac_var
 2585:     case $ac_val in #(
 2586:     *${as_nl}*)
 2587:       case $ac_var in #(
 2588:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 2589: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 2590:       esac
 2591:       case $ac_var in #(
 2592:       _ | IFS | as_nl) ;; #(
 2593:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 2594:       *) { eval $ac_var=; unset $ac_var;} ;;
 2595:       esac ;;
 2596:     esac
 2597:   done
 2598:   (set) 2>&1 |
 2599:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 2600:     *${as_nl}ac_space=\ *)
 2601:       sed -n \
 2602: 	"s/'\''/'\''\\\\'\'''\''/g;
 2603: 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 2604:       ;; #(
 2605:     *)
 2606:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 2607:       ;;
 2608:     esac |
 2609:     sort
 2610: )
 2611:     echo
 2612: 
 2613:     $as_echo "## ----------------- ##
 2614: ## Output variables. ##
 2615: ## ----------------- ##"
 2616:     echo
 2617:     for ac_var in $ac_subst_vars
 2618:     do
 2619:       eval ac_val=\$$ac_var
 2620:       case $ac_val in
 2621:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2622:       esac
 2623:       $as_echo "$ac_var='\''$ac_val'\''"
 2624:     done | sort
 2625:     echo
 2626: 
 2627:     if test -n "$ac_subst_files"; then
 2628:       $as_echo "## ------------------- ##
 2629: ## File substitutions. ##
 2630: ## ------------------- ##"
 2631:       echo
 2632:       for ac_var in $ac_subst_files
 2633:       do
 2634: 	eval ac_val=\$$ac_var
 2635: 	case $ac_val in
 2636: 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2637: 	esac
 2638: 	$as_echo "$ac_var='\''$ac_val'\''"
 2639:       done | sort
 2640:       echo
 2641:     fi
 2642: 
 2643:     if test -s confdefs.h; then
 2644:       $as_echo "## ----------- ##
 2645: ## confdefs.h. ##
 2646: ## ----------- ##"
 2647:       echo
 2648:       cat confdefs.h
 2649:       echo
 2650:     fi
 2651:     test "$ac_signal" != 0 &&
 2652:       $as_echo "$as_me: caught signal $ac_signal"
 2653:     $as_echo "$as_me: exit $exit_status"
 2654:   } >&5
 2655:   rm -f core *.core core.conftest.* &&
 2656:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 2657:     exit $exit_status
 2658: ' 0
 2659: for ac_signal in 1 2 13 15; do
 2660:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 2661: done
 2662: ac_signal=0
 2663: 
 2664: # confdefs.h avoids OS command line length limits that DEFS can exceed.
 2665: rm -f -r conftest* confdefs.h
 2666: 
 2667: $as_echo "/* confdefs.h */" > confdefs.h
 2668: 
 2669: # Predefined preprocessor variables.
 2670: 
 2671: cat >>confdefs.h <<_ACEOF
 2672: #define PACKAGE_NAME "$PACKAGE_NAME"
 2673: _ACEOF
 2674: 
 2675: cat >>confdefs.h <<_ACEOF
 2676: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 2677: _ACEOF
 2678: 
 2679: cat >>confdefs.h <<_ACEOF
 2680: #define PACKAGE_VERSION "$PACKAGE_VERSION"
 2681: _ACEOF
 2682: 
 2683: cat >>confdefs.h <<_ACEOF
 2684: #define PACKAGE_STRING "$PACKAGE_STRING"
 2685: _ACEOF
 2686: 
 2687: cat >>confdefs.h <<_ACEOF
 2688: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 2689: _ACEOF
 2690: 
 2691: cat >>confdefs.h <<_ACEOF
 2692: #define PACKAGE_URL "$PACKAGE_URL"
 2693: _ACEOF
 2694: 
 2695: 
 2696: # Let the site file select an alternate cache file if it wants to.
 2697: # Prefer an explicitly selected file to automatically selected ones.
 2698: ac_site_file1=NONE
 2699: ac_site_file2=NONE
 2700: if test -n "$CONFIG_SITE"; then
 2701:   # We do not want a PATH search for config.site.
 2702:   case $CONFIG_SITE in #((
 2703:     -*)  ac_site_file1=./$CONFIG_SITE;;
 2704:     */*) ac_site_file1=$CONFIG_SITE;;
 2705:     *)   ac_site_file1=./$CONFIG_SITE;;
 2706:   esac
 2707: elif test "x$prefix" != xNONE; then
 2708:   ac_site_file1=$prefix/share/config.site
 2709:   ac_site_file2=$prefix/etc/config.site
 2710: else
 2711:   ac_site_file1=$ac_default_prefix/share/config.site
 2712:   ac_site_file2=$ac_default_prefix/etc/config.site
 2713: fi
 2714: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 2715: do
 2716:   test "x$ac_site_file" = xNONE && continue
 2717:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 2718:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2719: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 2720:     sed 's/^/| /' "$ac_site_file" >&5
 2721:     . "$ac_site_file" \
 2722:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2723: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2724: as_fn_error $? "failed to load site script $ac_site_file
 2725: See \`config.log' for more details" "$LINENO" 5; }
 2726:   fi
 2727: done
 2728: 
 2729: if test -r "$cache_file"; then
 2730:   # Some versions of bash will fail to source /dev/null (special files
 2731:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 2732:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 2733:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 2734: $as_echo "$as_me: loading cache $cache_file" >&6;}
 2735:     case $cache_file in
 2736:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 2737:       *)                      . "./$cache_file";;
 2738:     esac
 2739:   fi
 2740: else
 2741:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 2742: $as_echo "$as_me: creating cache $cache_file" >&6;}
 2743:   >$cache_file
 2744: fi
 2745: 
 2746: # Check that the precious variables saved in the cache have kept the same
 2747: # value.
 2748: ac_cache_corrupted=false
 2749: for ac_var in $ac_precious_vars; do
 2750:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 2751:   eval ac_new_set=\$ac_env_${ac_var}_set
 2752:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 2753:   eval ac_new_val=\$ac_env_${ac_var}_value
 2754:   case $ac_old_set,$ac_new_set in
 2755:     set,)
 2756:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 2757: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 2758:       ac_cache_corrupted=: ;;
 2759:     ,set)
 2760:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 2761: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 2762:       ac_cache_corrupted=: ;;
 2763:     ,);;
 2764:     *)
 2765:       if test "x$ac_old_val" != "x$ac_new_val"; then
 2766: 	# differences in whitespace do not lead to failure.
 2767: 	ac_old_val_w=`echo x $ac_old_val`
 2768: 	ac_new_val_w=`echo x $ac_new_val`
 2769: 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
 2770: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 2771: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 2772: 	  ac_cache_corrupted=:
 2773: 	else
 2774: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 2775: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 2776: 	  eval $ac_var=\$ac_old_val
 2777: 	fi
 2778: 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 2779: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 2780: 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 2781: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 2782:       fi;;
 2783:   esac
 2784:   # Pass precious variables to config.status.
 2785:   if test "$ac_new_set" = set; then
 2786:     case $ac_new_val in
 2787:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 2788:     *) ac_arg=$ac_var=$ac_new_val ;;
 2789:     esac
 2790:     case " $ac_configure_args " in
 2791:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 2792:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 2793:     esac
 2794:   fi
 2795: done
 2796: if $ac_cache_corrupted; then
 2797:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2798: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2799:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 2800: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 2801:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 2802: fi
 2803: ## -------------------- ##
 2804: ## Main body of script. ##
 2805: ## -------------------- ##
 2806: 
 2807: ac_ext=c
 2808: ac_cpp='$CPP $CPPFLAGS'
 2809: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2810: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2811: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2812: 
 2813: 
 2814: ac_config_headers="$ac_config_headers config.h pathnames.h"
 2815: 
 2816: { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
 2817: $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
 2818: 
 2819: 
 2820: 
 2821: 
 2822: 
 2823: 
 2824: 
 2825: 
 2826: 
 2827: 
 2828: 
 2829: 
 2830: 
 2831: 
 2832: 
 2833: 
 2834: 
 2835: 
 2836: 
 2837: 
 2838: 
 2839: 
 2840: 
 2841: 
 2842: 
 2843: 
 2844: 
 2845: 
 2846: 
 2847: 
 2848: 
 2849: 
 2850: 
 2851: 
 2852: 
 2853: 
 2854: 
 2855: 
 2856: 
 2857: 
 2858: 
 2859: 
 2860: 
 2861: 
 2862: 
 2863: 
 2864: 
 2865: 
 2866: 
 2867: 
 2868: 
 2869: 
 2870: 
 2871: 
 2872: 
 2873: 
 2874: 
 2875: 
 2876: 
 2877: 
 2878: 
 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: # Begin initial values for man page substitution
 2921: #
 2922: iolog_dir=/var/log/sudo-io
 2923: timedir=/var/adm/sudo
 2924: timeout=5
 2925: password_timeout=5
 2926: sudo_umask=0022
 2927: umask_override=off
 2928: passprompt="Password:"
 2929: long_otp_prompt=off
 2930: lecture=once
 2931: logfac=auth
 2932: goodpri=notice
 2933: badpri=alert
 2934: loglen=80
 2935: ignore_dot=off
 2936: mail_no_user=on
 2937: mail_no_host=off
 2938: mail_no_perms=off
 2939: mailto=root
 2940: mailsub="*** SECURITY information for %h ***"
 2941: badpass_message="Sorry, try again."
 2942: fqdn=off
 2943: runas_default=root
 2944: env_editor=off
 2945: env_reset=on
 2946: editor=vi
 2947: passwd_tries=3
 2948: tty_tickets=on
 2949: insults=off
 2950: root_sudo=on
 2951: path_info=on
 2952: ldap_conf=/etc/ldap.conf
 2953: ldap_secret=/etc/ldap.secret
 2954: netsvc_conf=/etc/netsvc.conf
 2955: noexec_file=/usr/local/libexec/sudo_noexec.so
 2956: nsswitch_conf=/etc/nsswitch.conf
 2957: secure_path="not set"
 2958: #
 2959: # End initial values for man page substitution
 2960: #
 2961: INSTALL_NOEXEC=
 2962: devdir='$(srcdir)'
 2963: PROGS="sudo"
 2964: : ${MANDIRTYPE='man'}
 2965: : ${mansrcdir='.'}
 2966: : ${SHLIB_MODE='0644'}
 2967: : ${SUDOERS_MODE='0440'}
 2968: : ${SUDOERS_UID='0'}
 2969: : ${SUDOERS_GID='0'}
 2970: DEVEL=
 2971: LDAP="#"
 2972: BAMAN=0
 2973: LCMAN=0
 2974: PSMAN=0
 2975: SEMAN=0
 2976: LIBINTL=
 2977: ZLIB=
 2978: ZLIB_SRC=
 2979: AUTH_OBJS=
 2980: AUTH_REG=
 2981: AUTH_EXCL=
 2982: AUTH_EXCL_DEF=
 2983: AUTH_DEF=passwd
 2984: SUDO_NLS=disabled
 2985: LT_LDEXPORTS="-export-symbols \$(shlib_exp)"
 2986: LT_LDDEP="\$(shlib_exp)"
 2987: NO_VIZ=
 2988: 
 2989: CHECKSHADOW=true
 2990: shadow_defs=
 2991: shadow_funcs=
 2992: shadow_libs=
 2993: shadow_libs_optional=
 2994: CONFIGURE_ARGS="$@"
 2995: 
 2996: RTLD_PRELOAD_VAR="LD_PRELOAD"
 2997: RTLD_PRELOAD_ENABLE_VAR=
 2998: RTLD_PRELOAD_DELIM=":"
 2999: RTLD_PRELOAD_DEFAULT=
 3000: 
 3001: 
 3002: 
 3003: 
 3004: 
 3005: # Check whether --with-otp-only was given.
 3006: if test "${with_otp_only+set}" = set; then :
 3007:   withval=$with_otp_only; case $with_otp_only in
 3008:     yes)	with_passwd="no"
 3009: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
 3010: $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
 3011: 		;;
 3012: esac
 3013: fi
 3014: 
 3015: 
 3016: 
 3017: # Check whether --with-alertmail was given.
 3018: if test "${with_alertmail+set}" = set; then :
 3019:   withval=$with_alertmail; case $with_alertmail in
 3020:     *)		with_mailto="$with_alertmail"
 3021: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
 3022: $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
 3023: 		;;
 3024: esac
 3025: fi
 3026: 
 3027: 
 3028: 
 3029: 
 3030: # Check whether --with-devel was given.
 3031: if test "${with_devel+set}" = set; then :
 3032:   withval=$with_devel; case $with_devel in
 3033:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
 3034: $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
 3035: 		OSDEFS="${OSDEFS} -DSUDO_DEVEL"
 3036: 		DEVEL="true"
 3037: 		devdir=.
 3038: 		;;
 3039:     no)		;;
 3040:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
 3041: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
 3042: 		;;
 3043: esac
 3044: fi
 3045: 
 3046: 
 3047: 
 3048: # Check whether --with-CC was given.
 3049: if test "${with_CC+set}" = set; then :
 3050:   withval=$with_CC; case $with_CC in
 3051:     *)		as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
 3052: 		;;
 3053: esac
 3054: fi
 3055: 
 3056: 
 3057: 
 3058: # Check whether --with-rpath was given.
 3059: if test "${with_rpath+set}" = set; then :
 3060:   withval=$with_rpath; case $with_rpath in
 3061:     yes|no)	;;
 3062:     *)		as_fn_error $? "\"--with-rpath does not take an argument.\"" "$LINENO" 5
 3063: 		;;
 3064: esac
 3065: fi
 3066: 
 3067: 
 3068: 
 3069: # Check whether --with-blibpath was given.
 3070: if test "${with_blibpath+set}" = set; then :
 3071:   withval=$with_blibpath; case $with_blibpath in
 3072:     yes|no)	;;
 3073:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5
 3074: $as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
 3075: 		;;
 3076: esac
 3077: fi
 3078: 
 3079: 
 3080: 
 3081: # Check whether --with-bsm-audit was given.
 3082: if test "${with_bsm_audit+set}" = set; then :
 3083:   withval=$with_bsm_audit; case $with_bsm_audit in
 3084:     yes)	$as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
 3085: 
 3086: 		SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
 3087: 		SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
 3088: 		;;
 3089:     no)		;;
 3090:     *)		as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
 3091: 		;;
 3092: esac
 3093: fi
 3094: 
 3095: 
 3096: ac_ext=c
 3097: ac_cpp='$CPP $CPPFLAGS'
 3098: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3099: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3100: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3101: if test -n "$ac_tool_prefix"; then
 3102:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 3103: set dummy ${ac_tool_prefix}gcc; ac_word=$2
 3104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3105: $as_echo_n "checking for $ac_word... " >&6; }
 3106: if ${ac_cv_prog_CC+:} false; then :
 3107:   $as_echo_n "(cached) " >&6
 3108: else
 3109:   if test -n "$CC"; then
 3110:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3111: else
 3112: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3113: for as_dir in $PATH
 3114: do
 3115:   IFS=$as_save_IFS
 3116:   test -z "$as_dir" && as_dir=.
 3117:     for ac_exec_ext in '' $ac_executable_extensions; do
 3118:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3119:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 3120:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3121:     break 2
 3122:   fi
 3123: done
 3124:   done
 3125: IFS=$as_save_IFS
 3126: 
 3127: fi
 3128: fi
 3129: CC=$ac_cv_prog_CC
 3130: if test -n "$CC"; then
 3131:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3132: $as_echo "$CC" >&6; }
 3133: else
 3134:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3135: $as_echo "no" >&6; }
 3136: fi
 3137: 
 3138: 
 3139: fi
 3140: if test -z "$ac_cv_prog_CC"; then
 3141:   ac_ct_CC=$CC
 3142:   # Extract the first word of "gcc", so it can be a program name with args.
 3143: set dummy gcc; ac_word=$2
 3144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3145: $as_echo_n "checking for $ac_word... " >&6; }
 3146: if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3147:   $as_echo_n "(cached) " >&6
 3148: else
 3149:   if test -n "$ac_ct_CC"; then
 3150:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3151: else
 3152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3153: for as_dir in $PATH
 3154: do
 3155:   IFS=$as_save_IFS
 3156:   test -z "$as_dir" && as_dir=.
 3157:     for ac_exec_ext in '' $ac_executable_extensions; do
 3158:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3159:     ac_cv_prog_ac_ct_CC="gcc"
 3160:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3161:     break 2
 3162:   fi
 3163: done
 3164:   done
 3165: IFS=$as_save_IFS
 3166: 
 3167: fi
 3168: fi
 3169: ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3170: if test -n "$ac_ct_CC"; then
 3171:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3172: $as_echo "$ac_ct_CC" >&6; }
 3173: else
 3174:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3175: $as_echo "no" >&6; }
 3176: fi
 3177: 
 3178:   if test "x$ac_ct_CC" = x; then
 3179:     CC=""
 3180:   else
 3181:     case $cross_compiling:$ac_tool_warned in
 3182: yes:)
 3183: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3184: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3185: ac_tool_warned=yes ;;
 3186: esac
 3187:     CC=$ac_ct_CC
 3188:   fi
 3189: else
 3190:   CC="$ac_cv_prog_CC"
 3191: fi
 3192: 
 3193: if test -z "$CC"; then
 3194:           if test -n "$ac_tool_prefix"; then
 3195:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 3196: set dummy ${ac_tool_prefix}cc; ac_word=$2
 3197: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3198: $as_echo_n "checking for $ac_word... " >&6; }
 3199: if ${ac_cv_prog_CC+:} false; then :
 3200:   $as_echo_n "(cached) " >&6
 3201: else
 3202:   if test -n "$CC"; then
 3203:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3204: else
 3205: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3206: for as_dir in $PATH
 3207: do
 3208:   IFS=$as_save_IFS
 3209:   test -z "$as_dir" && as_dir=.
 3210:     for ac_exec_ext in '' $ac_executable_extensions; do
 3211:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3212:     ac_cv_prog_CC="${ac_tool_prefix}cc"
 3213:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3214:     break 2
 3215:   fi
 3216: done
 3217:   done
 3218: IFS=$as_save_IFS
 3219: 
 3220: fi
 3221: fi
 3222: CC=$ac_cv_prog_CC
 3223: if test -n "$CC"; then
 3224:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3225: $as_echo "$CC" >&6; }
 3226: else
 3227:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3228: $as_echo "no" >&6; }
 3229: fi
 3230: 
 3231: 
 3232:   fi
 3233: fi
 3234: if test -z "$CC"; then
 3235:   # Extract the first word of "cc", so it can be a program name with args.
 3236: set dummy cc; ac_word=$2
 3237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3238: $as_echo_n "checking for $ac_word... " >&6; }
 3239: if ${ac_cv_prog_CC+:} false; then :
 3240:   $as_echo_n "(cached) " >&6
 3241: else
 3242:   if test -n "$CC"; then
 3243:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3244: else
 3245:   ac_prog_rejected=no
 3246: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3247: for as_dir in $PATH
 3248: do
 3249:   IFS=$as_save_IFS
 3250:   test -z "$as_dir" && as_dir=.
 3251:     for ac_exec_ext in '' $ac_executable_extensions; do
 3252:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3253:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 3254:        ac_prog_rejected=yes
 3255:        continue
 3256:      fi
 3257:     ac_cv_prog_CC="cc"
 3258:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3259:     break 2
 3260:   fi
 3261: done
 3262:   done
 3263: IFS=$as_save_IFS
 3264: 
 3265: if test $ac_prog_rejected = yes; then
 3266:   # We found a bogon in the path, so make sure we never use it.
 3267:   set dummy $ac_cv_prog_CC
 3268:   shift
 3269:   if test $# != 0; then
 3270:     # We chose a different compiler from the bogus one.
 3271:     # However, it has the same basename, so the bogon will be chosen
 3272:     # first if we set CC to just the basename; use the full file name.
 3273:     shift
 3274:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 3275:   fi
 3276: fi
 3277: fi
 3278: fi
 3279: CC=$ac_cv_prog_CC
 3280: if test -n "$CC"; then
 3281:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3282: $as_echo "$CC" >&6; }
 3283: else
 3284:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3285: $as_echo "no" >&6; }
 3286: fi
 3287: 
 3288: 
 3289: fi
 3290: if test -z "$CC"; then
 3291:   if test -n "$ac_tool_prefix"; then
 3292:   for ac_prog in cl.exe
 3293:   do
 3294:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 3295: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 3296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3297: $as_echo_n "checking for $ac_word... " >&6; }
 3298: if ${ac_cv_prog_CC+:} false; then :
 3299:   $as_echo_n "(cached) " >&6
 3300: else
 3301:   if test -n "$CC"; then
 3302:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3303: else
 3304: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3305: for as_dir in $PATH
 3306: do
 3307:   IFS=$as_save_IFS
 3308:   test -z "$as_dir" && as_dir=.
 3309:     for ac_exec_ext in '' $ac_executable_extensions; do
 3310:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3311:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 3312:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3313:     break 2
 3314:   fi
 3315: done
 3316:   done
 3317: IFS=$as_save_IFS
 3318: 
 3319: fi
 3320: fi
 3321: CC=$ac_cv_prog_CC
 3322: if test -n "$CC"; then
 3323:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3324: $as_echo "$CC" >&6; }
 3325: else
 3326:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3327: $as_echo "no" >&6; }
 3328: fi
 3329: 
 3330: 
 3331:     test -n "$CC" && break
 3332:   done
 3333: fi
 3334: if test -z "$CC"; then
 3335:   ac_ct_CC=$CC
 3336:   for ac_prog in cl.exe
 3337: do
 3338:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 3339: set dummy $ac_prog; ac_word=$2
 3340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3341: $as_echo_n "checking for $ac_word... " >&6; }
 3342: if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3343:   $as_echo_n "(cached) " >&6
 3344: else
 3345:   if test -n "$ac_ct_CC"; then
 3346:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3347: else
 3348: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3349: for as_dir in $PATH
 3350: do
 3351:   IFS=$as_save_IFS
 3352:   test -z "$as_dir" && as_dir=.
 3353:     for ac_exec_ext in '' $ac_executable_extensions; do
 3354:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 3355:     ac_cv_prog_ac_ct_CC="$ac_prog"
 3356:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3357:     break 2
 3358:   fi
 3359: done
 3360:   done
 3361: IFS=$as_save_IFS
 3362: 
 3363: fi
 3364: fi
 3365: ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3366: if test -n "$ac_ct_CC"; then
 3367:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3368: $as_echo "$ac_ct_CC" >&6; }
 3369: else
 3370:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3371: $as_echo "no" >&6; }
 3372: fi
 3373: 
 3374: 
 3375:   test -n "$ac_ct_CC" && break
 3376: done
 3377: 
 3378:   if test "x$ac_ct_CC" = x; then
 3379:     CC=""
 3380:   else
 3381:     case $cross_compiling:$ac_tool_warned in
 3382: yes:)
 3383: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3384: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3385: ac_tool_warned=yes ;;
 3386: esac
 3387:     CC=$ac_ct_CC
 3388:   fi
 3389: fi
 3390: 
 3391: fi
 3392: 
 3393: 
 3394: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3395: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3396: as_fn_error $? "no acceptable C compiler found in \$PATH
 3397: See \`config.log' for more details" "$LINENO" 5; }
 3398: 
 3399: # Provide some information about the compiler.
 3400: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 3401: set X $ac_compile
 3402: ac_compiler=$2
 3403: for ac_option in --version -v -V -qversion; do
 3404:   { { ac_try="$ac_compiler $ac_option >&5"
 3405: case "(($ac_try" in
 3406:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3407:   *) ac_try_echo=$ac_try;;
 3408: esac
 3409: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3410: $as_echo "$ac_try_echo"; } >&5
 3411:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 3412:   ac_status=$?
 3413:   if test -s conftest.err; then
 3414:     sed '10a\
 3415: ... rest of stderr output deleted ...
 3416:          10q' conftest.err >conftest.er1
 3417:     cat conftest.er1 >&5
 3418:   fi
 3419:   rm -f conftest.er1 conftest.err
 3420:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3421:   test $ac_status = 0; }
 3422: done
 3423: 
 3424: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3425: /* end confdefs.h.  */
 3426: 
 3427: int
 3428: main ()
 3429: {
 3430: 
 3431:   ;
 3432:   return 0;
 3433: }
 3434: _ACEOF
 3435: ac_clean_files_save=$ac_clean_files
 3436: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 3437: # Try to create an executable without -o first, disregard a.out.
 3438: # It will help us diagnose broken compilers, and finding out an intuition
 3439: # of exeext.
 3440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 3441: $as_echo_n "checking whether the C compiler works... " >&6; }
 3442: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 3443: 
 3444: # The possible output files:
 3445: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 3446: 
 3447: ac_rmfiles=
 3448: for ac_file in $ac_files
 3449: do
 3450:   case $ac_file in
 3451:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 3452:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 3453:   esac
 3454: done
 3455: rm -f $ac_rmfiles
 3456: 
 3457: if { { ac_try="$ac_link_default"
 3458: case "(($ac_try" in
 3459:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3460:   *) ac_try_echo=$ac_try;;
 3461: esac
 3462: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3463: $as_echo "$ac_try_echo"; } >&5
 3464:   (eval "$ac_link_default") 2>&5
 3465:   ac_status=$?
 3466:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3467:   test $ac_status = 0; }; then :
 3468:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 3469: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 3470: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 3471: # so that the user can short-circuit this test for compilers unknown to
 3472: # Autoconf.
 3473: for ac_file in $ac_files ''
 3474: do
 3475:   test -f "$ac_file" || continue
 3476:   case $ac_file in
 3477:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 3478: 	;;
 3479:     [ab].out )
 3480: 	# We found the default executable, but exeext='' is most
 3481: 	# certainly right.
 3482: 	break;;
 3483:     *.* )
 3484: 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 3485: 	then :; else
 3486: 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3487: 	fi
 3488: 	# We set ac_cv_exeext here because the later test for it is not
 3489: 	# safe: cross compilers may not add the suffix if given an `-o'
 3490: 	# argument, so we may need to know it at that point already.
 3491: 	# Even if this section looks crufty: it has the advantage of
 3492: 	# actually working.
 3493: 	break;;
 3494:     * )
 3495: 	break;;
 3496:   esac
 3497: done
 3498: test "$ac_cv_exeext" = no && ac_cv_exeext=
 3499: 
 3500: else
 3501:   ac_file=''
 3502: fi
 3503: if test -z "$ac_file"; then :
 3504:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3505: $as_echo "no" >&6; }
 3506: $as_echo "$as_me: failed program was:" >&5
 3507: sed 's/^/| /' conftest.$ac_ext >&5
 3508: 
 3509: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3510: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3511: as_fn_error 77 "C compiler cannot create executables
 3512: See \`config.log' for more details" "$LINENO" 5; }
 3513: else
 3514:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3515: $as_echo "yes" >&6; }
 3516: fi
 3517: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 3518: $as_echo_n "checking for C compiler default output file name... " >&6; }
 3519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 3520: $as_echo "$ac_file" >&6; }
 3521: ac_exeext=$ac_cv_exeext
 3522: 
 3523: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 3524: ac_clean_files=$ac_clean_files_save
 3525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 3526: $as_echo_n "checking for suffix of executables... " >&6; }
 3527: if { { ac_try="$ac_link"
 3528: case "(($ac_try" in
 3529:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3530:   *) ac_try_echo=$ac_try;;
 3531: esac
 3532: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3533: $as_echo "$ac_try_echo"; } >&5
 3534:   (eval "$ac_link") 2>&5
 3535:   ac_status=$?
 3536:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3537:   test $ac_status = 0; }; then :
 3538:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 3539: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 3540: # work properly (i.e., refer to `conftest.exe'), while it won't with
 3541: # `rm'.
 3542: for ac_file in conftest.exe conftest conftest.*; do
 3543:   test -f "$ac_file" || continue
 3544:   case $ac_file in
 3545:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 3546:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3547: 	  break;;
 3548:     * ) break;;
 3549:   esac
 3550: done
 3551: else
 3552:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3553: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3554: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 3555: See \`config.log' for more details" "$LINENO" 5; }
 3556: fi
 3557: rm -f conftest conftest$ac_cv_exeext
 3558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 3559: $as_echo "$ac_cv_exeext" >&6; }
 3560: 
 3561: rm -f conftest.$ac_ext
 3562: EXEEXT=$ac_cv_exeext
 3563: ac_exeext=$EXEEXT
 3564: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3565: /* end confdefs.h.  */
 3566: #include <stdio.h>
 3567: int
 3568: main ()
 3569: {
 3570: FILE *f = fopen ("conftest.out", "w");
 3571:  return ferror (f) || fclose (f) != 0;
 3572: 
 3573:   ;
 3574:   return 0;
 3575: }
 3576: _ACEOF
 3577: ac_clean_files="$ac_clean_files conftest.out"
 3578: # Check that the compiler produces executables we can run.  If not, either
 3579: # the compiler is broken, or we cross compile.
 3580: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 3581: $as_echo_n "checking whether we are cross compiling... " >&6; }
 3582: if test "$cross_compiling" != yes; then
 3583:   { { ac_try="$ac_link"
 3584: case "(($ac_try" in
 3585:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3586:   *) ac_try_echo=$ac_try;;
 3587: esac
 3588: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3589: $as_echo "$ac_try_echo"; } >&5
 3590:   (eval "$ac_link") 2>&5
 3591:   ac_status=$?
 3592:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3593:   test $ac_status = 0; }
 3594:   if { ac_try='./conftest$ac_cv_exeext'
 3595:   { { case "(($ac_try" in
 3596:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3597:   *) ac_try_echo=$ac_try;;
 3598: esac
 3599: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3600: $as_echo "$ac_try_echo"; } >&5
 3601:   (eval "$ac_try") 2>&5
 3602:   ac_status=$?
 3603:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3604:   test $ac_status = 0; }; }; then
 3605:     cross_compiling=no
 3606:   else
 3607:     if test "$cross_compiling" = maybe; then
 3608: 	cross_compiling=yes
 3609:     else
 3610: 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3611: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3612: as_fn_error $? "cannot run C compiled programs.
 3613: If you meant to cross compile, use \`--host'.
 3614: See \`config.log' for more details" "$LINENO" 5; }
 3615:     fi
 3616:   fi
 3617: fi
 3618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 3619: $as_echo "$cross_compiling" >&6; }
 3620: 
 3621: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 3622: ac_clean_files=$ac_clean_files_save
 3623: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 3624: $as_echo_n "checking for suffix of object files... " >&6; }
 3625: if ${ac_cv_objext+:} false; then :
 3626:   $as_echo_n "(cached) " >&6
 3627: else
 3628:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3629: /* end confdefs.h.  */
 3630: 
 3631: int
 3632: main ()
 3633: {
 3634: 
 3635:   ;
 3636:   return 0;
 3637: }
 3638: _ACEOF
 3639: rm -f conftest.o conftest.obj
 3640: if { { ac_try="$ac_compile"
 3641: case "(($ac_try" in
 3642:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3643:   *) ac_try_echo=$ac_try;;
 3644: esac
 3645: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3646: $as_echo "$ac_try_echo"; } >&5
 3647:   (eval "$ac_compile") 2>&5
 3648:   ac_status=$?
 3649:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3650:   test $ac_status = 0; }; then :
 3651:   for ac_file in conftest.o conftest.obj conftest.*; do
 3652:   test -f "$ac_file" || continue;
 3653:   case $ac_file in
 3654:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 3655:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 3656:        break;;
 3657:   esac
 3658: done
 3659: else
 3660:   $as_echo "$as_me: failed program was:" >&5
 3661: sed 's/^/| /' conftest.$ac_ext >&5
 3662: 
 3663: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3664: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3665: as_fn_error $? "cannot compute suffix of object files: cannot compile
 3666: See \`config.log' for more details" "$LINENO" 5; }
 3667: fi
 3668: rm -f conftest.$ac_cv_objext conftest.$ac_ext
 3669: fi
 3670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 3671: $as_echo "$ac_cv_objext" >&6; }
 3672: OBJEXT=$ac_cv_objext
 3673: ac_objext=$OBJEXT
 3674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 3675: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 3676: if ${ac_cv_c_compiler_gnu+:} false; then :
 3677:   $as_echo_n "(cached) " >&6
 3678: else
 3679:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3680: /* end confdefs.h.  */
 3681: 
 3682: int
 3683: main ()
 3684: {
 3685: #ifndef __GNUC__
 3686:        choke me
 3687: #endif
 3688: 
 3689:   ;
 3690:   return 0;
 3691: }
 3692: _ACEOF
 3693: if ac_fn_c_try_compile "$LINENO"; then :
 3694:   ac_compiler_gnu=yes
 3695: else
 3696:   ac_compiler_gnu=no
 3697: fi
 3698: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3699: ac_cv_c_compiler_gnu=$ac_compiler_gnu
 3700: 
 3701: fi
 3702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 3703: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 3704: if test $ac_compiler_gnu = yes; then
 3705:   GCC=yes
 3706: else
 3707:   GCC=
 3708: fi
 3709: ac_test_CFLAGS=${CFLAGS+set}
 3710: ac_save_CFLAGS=$CFLAGS
 3711: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 3712: $as_echo_n "checking whether $CC accepts -g... " >&6; }
 3713: if ${ac_cv_prog_cc_g+:} false; then :
 3714:   $as_echo_n "(cached) " >&6
 3715: else
 3716:   ac_save_c_werror_flag=$ac_c_werror_flag
 3717:    ac_c_werror_flag=yes
 3718:    ac_cv_prog_cc_g=no
 3719:    CFLAGS="-g"
 3720:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3721: /* end confdefs.h.  */
 3722: 
 3723: int
 3724: main ()
 3725: {
 3726: 
 3727:   ;
 3728:   return 0;
 3729: }
 3730: _ACEOF
 3731: if ac_fn_c_try_compile "$LINENO"; then :
 3732:   ac_cv_prog_cc_g=yes
 3733: else
 3734:   CFLAGS=""
 3735:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3736: /* end confdefs.h.  */
 3737: 
 3738: int
 3739: main ()
 3740: {
 3741: 
 3742:   ;
 3743:   return 0;
 3744: }
 3745: _ACEOF
 3746: if ac_fn_c_try_compile "$LINENO"; then :
 3747: 
 3748: else
 3749:   ac_c_werror_flag=$ac_save_c_werror_flag
 3750: 	 CFLAGS="-g"
 3751: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3752: /* end confdefs.h.  */
 3753: 
 3754: int
 3755: main ()
 3756: {
 3757: 
 3758:   ;
 3759:   return 0;
 3760: }
 3761: _ACEOF
 3762: if ac_fn_c_try_compile "$LINENO"; then :
 3763:   ac_cv_prog_cc_g=yes
 3764: fi
 3765: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3766: fi
 3767: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3768: fi
 3769: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3770:    ac_c_werror_flag=$ac_save_c_werror_flag
 3771: fi
 3772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 3773: $as_echo "$ac_cv_prog_cc_g" >&6; }
 3774: if test "$ac_test_CFLAGS" = set; then
 3775:   CFLAGS=$ac_save_CFLAGS
 3776: elif test $ac_cv_prog_cc_g = yes; then
 3777:   if test "$GCC" = yes; then
 3778:     CFLAGS="-g -O2"
 3779:   else
 3780:     CFLAGS="-g"
 3781:   fi
 3782: else
 3783:   if test "$GCC" = yes; then
 3784:     CFLAGS="-O2"
 3785:   else
 3786:     CFLAGS=
 3787:   fi
 3788: fi
 3789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 3790: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 3791: if ${ac_cv_prog_cc_c89+:} false; then :
 3792:   $as_echo_n "(cached) " >&6
 3793: else
 3794:   ac_cv_prog_cc_c89=no
 3795: ac_save_CC=$CC
 3796: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3797: /* end confdefs.h.  */
 3798: #include <stdarg.h>
 3799: #include <stdio.h>
 3800: #include <sys/types.h>
 3801: #include <sys/stat.h>
 3802: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 3803: struct buf { int x; };
 3804: FILE * (*rcsopen) (struct buf *, struct stat *, int);
 3805: static char *e (p, i)
 3806:      char **p;
 3807:      int i;
 3808: {
 3809:   return p[i];
 3810: }
 3811: static char *f (char * (*g) (char **, int), char **p, ...)
 3812: {
 3813:   char *s;
 3814:   va_list v;
 3815:   va_start (v,p);
 3816:   s = g (p, va_arg (v,int));
 3817:   va_end (v);
 3818:   return s;
 3819: }
 3820: 
 3821: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 3822:    function prototypes and stuff, but not '\xHH' hex character constants.
 3823:    These don't provoke an error unfortunately, instead are silently treated
 3824:    as 'x'.  The following induces an error, until -std is added to get
 3825:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 3826:    array size at least.  It's necessary to write '\x00'==0 to get something
 3827:    that's true only with -std.  */
 3828: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 3829: 
 3830: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 3831:    inside strings and character constants.  */
 3832: #define FOO(x) 'x'
 3833: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 3834: 
 3835: int test (int i, double x);
 3836: struct s1 {int (*f) (int a);};
 3837: struct s2 {int (*f) (double a);};
 3838: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 3839: int argc;
 3840: char **argv;
 3841: int
 3842: main ()
 3843: {
 3844: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 3845:   ;
 3846:   return 0;
 3847: }
 3848: _ACEOF
 3849: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 3850: 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 3851: do
 3852:   CC="$ac_save_CC $ac_arg"
 3853:   if ac_fn_c_try_compile "$LINENO"; then :
 3854:   ac_cv_prog_cc_c89=$ac_arg
 3855: fi
 3856: rm -f core conftest.err conftest.$ac_objext
 3857:   test "x$ac_cv_prog_cc_c89" != "xno" && break
 3858: done
 3859: rm -f conftest.$ac_ext
 3860: CC=$ac_save_CC
 3861: 
 3862: fi
 3863: # AC_CACHE_VAL
 3864: case "x$ac_cv_prog_cc_c89" in
 3865:   x)
 3866:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 3867: $as_echo "none needed" >&6; } ;;
 3868:   xno)
 3869:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 3870: $as_echo "unsupported" >&6; } ;;
 3871:   *)
 3872:     CC="$CC $ac_cv_prog_cc_c89"
 3873:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 3874: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 3875: esac
 3876: if test "x$ac_cv_prog_cc_c89" != xno; then :
 3877: 
 3878: fi
 3879: 
 3880: ac_ext=c
 3881: ac_cpp='$CPP $CPPFLAGS'
 3882: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3883: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3884: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3885: 
 3886: 
 3887: 
 3888: # Check whether --with-linux-audit was given.
 3889: if test "${with_linux_audit+set}" = set; then :
 3890:   withval=$with_linux_audit; case $with_linux_audit in
 3891:     yes)	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3892: /* end confdefs.h.  */
 3893: #include <libaudit.h>
 3894: int
 3895: main ()
 3896: {
 3897: int i = AUDIT_USER_CMD; (void)i;
 3898:   ;
 3899:   return 0;
 3900: }
 3901: _ACEOF
 3902: if ac_fn_c_try_compile "$LINENO"; then :
 3903: 
 3904: 		    $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
 3905: 
 3906: 		    SUDO_LIBS="${SUDO_LIBS} -laudit"
 3907: 		    SUDOERS_LIBS="${SUDO_LIBS} -laudit"
 3908: 		    SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
 3909: 
 3910: else
 3911: 
 3912: 		    as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
 3913: 
 3914: fi
 3915: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3916: 		;;
 3917:     no)		;;
 3918:     *)		as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
 3919: 		;;
 3920: esac
 3921: fi
 3922: 
 3923: 
 3924: 
 3925: # Check whether --with-sssd was given.
 3926: if test "${with_sssd+set}" = set; then :
 3927:   withval=$with_sssd; case $with_sssd in
 3928:     yes)	SUDOERS_OBJS="${SUDOERS_OBJS} sssd.lo"
 3929: 		$as_echo "#define HAVE_SSSD 1" >>confdefs.h
 3930: 
 3931: 		;;
 3932:     no)		;;
 3933:     *)		as_fn_error $? "\"--with-sssd does not take an argument.\"" "$LINENO" 5
 3934: 		;;
 3935: esac
 3936: fi
 3937: 
 3938: 
 3939: 
 3940: # Check whether --with-sssd-lib was given.
 3941: if test "${with_sssd_lib+set}" = set; then :
 3942:   withval=$with_sssd_lib;
 3943: fi
 3944: 
 3945: sssd_lib="\"LIBDIR\""
 3946: test -n "$with_sssd_lib" && sssd_lib="$with_sssd_lib"
 3947: cat >>confdefs.h <<EOF
 3948: #define _PATH_SSSD_LIB "$sssd_lib"
 3949: EOF
 3950: 
 3951: 
 3952: 
 3953: # Check whether --with-incpath was given.
 3954: if test "${with_incpath+set}" = set; then :
 3955:   withval=$with_incpath; case $with_incpath in
 3956:     yes)	as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
 3957: 		;;
 3958:     no)		as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
 3959: 		;;
 3960:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
 3961: $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
 3962: 		for i in ${with_incpath}; do
 3963: 		    CPPFLAGS="${CPPFLAGS} -I${i}"
 3964: 		done
 3965: 		;;
 3966: esac
 3967: fi
 3968: 
 3969: 
 3970: 
 3971: # Check whether --with-libpath was given.
 3972: if test "${with_libpath+set}" = set; then :
 3973:   withval=$with_libpath; case $with_libpath in
 3974:     yes)	as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
 3975: 		;;
 3976:     no)		as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
 3977: 		;;
 3978:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
 3979: $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
 3980: 		;;
 3981: esac
 3982: fi
 3983: 
 3984: 
 3985: 
 3986: # Check whether --with-libraries was given.
 3987: if test "${with_libraries+set}" = set; then :
 3988:   withval=$with_libraries; case $with_libraries in
 3989:     yes)	as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
 3990: 		;;
 3991:     no)		as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
 3992: 		;;
 3993:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
 3994: $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
 3995: 		;;
 3996: esac
 3997: fi
 3998: 
 3999: 
 4000: 
 4001: # Check whether --with-efence was given.
 4002: if test "${with_efence+set}" = set; then :
 4003:   withval=$with_efence; case $with_efence in
 4004:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
 4005: $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
 4006: 		LIBS="${LIBS} -lefence"
 4007: 		if test -f /usr/local/lib/libefence.a; then
 4008: 		    with_libpath="${with_libpath} /usr/local/lib"
 4009: 		fi
 4010: 		;;
 4011:     no)		;;
 4012:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
 4013: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
 4014: 		;;
 4015: esac
 4016: fi
 4017: 
 4018: 
 4019: 
 4020: # Check whether --with-csops was given.
 4021: if test "${with_csops+set}" = set; then :
 4022:   withval=$with_csops; case $with_csops in
 4023:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
 4024: $as_echo "$as_me: Adding CSOps standard options" >&6;}
 4025: 		CHECKSIA=false
 4026: 		with_ignore_dot=yes
 4027: 		insults=on
 4028: 		with_classic_insults=yes
 4029: 		with_csops_insults=yes
 4030: 		with_env_editor=yes
 4031: 		: ${mansectsu='8'}
 4032: 		: ${mansectform='5'}
 4033: 		;;
 4034:     no)		;;
 4035:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
 4036: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
 4037: 		;;
 4038: esac
 4039: fi
 4040: 
 4041: 
 4042: 
 4043: # Check whether --with-passwd was given.
 4044: if test "${with_passwd+set}" = set; then :
 4045:   withval=$with_passwd; case $with_passwd in
 4046:     yes|no)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
 4047: $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
 4048: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
 4049: $as_echo "$with_passwd" >&6; }
 4050: 		AUTH_DEF=""
 4051: 		test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
 4052: 		;;
 4053:     *)		as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
 4054: 		;;
 4055: esac
 4056: fi
 4057: 
 4058: 
 4059: 
 4060: # Check whether --with-skey was given.
 4061: if test "${with_skey+set}" = set; then :
 4062:   withval=$with_skey; case $with_skey in
 4063:     no)		;;
 4064:     *)		$as_echo "#define HAVE_SKEY 1" >>confdefs.h
 4065: 
 4066: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
 4067: $as_echo_n "checking whether to try S/Key authentication... " >&6; }
 4068: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4069: $as_echo "yes" >&6; }
 4070: 		AUTH_REG="$AUTH_REG S/Key"
 4071: 		;;
 4072: esac
 4073: fi
 4074: 
 4075: 
 4076: 
 4077: # Check whether --with-opie was given.
 4078: if test "${with_opie+set}" = set; then :
 4079:   withval=$with_opie; case $with_opie in
 4080:     no)		;;
 4081:     *)		$as_echo "#define HAVE_OPIE 1" >>confdefs.h
 4082: 
 4083: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
 4084: $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
 4085: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4086: $as_echo "yes" >&6; }
 4087: 		AUTH_REG="$AUTH_REG NRL_OPIE"
 4088: 		;;
 4089: esac
 4090: fi
 4091: 
 4092: 
 4093: 
 4094: # Check whether --with-long-otp-prompt was given.
 4095: if test "${with_long_otp_prompt+set}" = set; then :
 4096:   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
 4097:     yes)	$as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
 4098: 
 4099: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
 4100: $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
 4101: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4102: $as_echo "yes" >&6; }
 4103: 		long_otp_prompt=on
 4104: 		;;
 4105:     no)		long_otp_prompt=off
 4106: 		;;
 4107:     *)		as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
 4108: 		;;
 4109: esac
 4110: fi
 4111: 
 4112: 
 4113: 
 4114: # Check whether --with-SecurID was given.
 4115: if test "${with_SecurID+set}" = set; then :
 4116:   withval=$with_SecurID; case $with_SecurID in
 4117:     no)		;;
 4118:     *)		$as_echo "#define HAVE_SECURID 1" >>confdefs.h
 4119: 
 4120: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
 4121: $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
 4122: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4123: $as_echo "yes" >&6; }
 4124: 		AUTH_EXCL="$AUTH_EXCL SecurID"
 4125: 		;;
 4126: esac
 4127: fi
 4128: 
 4129: 
 4130: 
 4131: # Check whether --with-fwtk was given.
 4132: if test "${with_fwtk+set}" = set; then :
 4133:   withval=$with_fwtk; case $with_fwtk in
 4134:     no)		;;
 4135:     *)		$as_echo "#define HAVE_FWTK 1" >>confdefs.h
 4136: 
 4137: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
 4138: $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
 4139: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4140: $as_echo "yes" >&6; }
 4141: 		AUTH_EXCL="$AUTH_EXCL FWTK"
 4142: 		;;
 4143: esac
 4144: fi
 4145: 
 4146: 
 4147: 
 4148: # Check whether --with-kerb5 was given.
 4149: if test "${with_kerb5+set}" = set; then :
 4150:   withval=$with_kerb5; case $with_kerb5 in
 4151:     no)		;;
 4152:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
 4153: $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
 4154: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4155: $as_echo "yes" >&6; }
 4156: 		AUTH_REG="$AUTH_REG kerb5"
 4157: 		;;
 4158: esac
 4159: fi
 4160: 
 4161: 
 4162: 
 4163: # Check whether --with-aixauth was given.
 4164: if test "${with_aixauth+set}" = set; then :
 4165:   withval=$with_aixauth; case $with_aixauth in
 4166:     yes)	AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
 4167:     no)		;;
 4168:     *)		as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
 4169: 		;;
 4170: esac
 4171: fi
 4172: 
 4173: 
 4174: 
 4175: # Check whether --with-pam was given.
 4176: if test "${with_pam+set}" = set; then :
 4177:   withval=$with_pam; case $with_pam in
 4178:     yes)	AUTH_EXCL="$AUTH_EXCL PAM";;
 4179:     no)		;;
 4180:     *)		as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
 4181: 		;;
 4182: esac
 4183: fi
 4184: 
 4185: 
 4186: 
 4187: # Check whether --with-AFS was given.
 4188: if test "${with_AFS+set}" = set; then :
 4189:   withval=$with_AFS; case $with_AFS in
 4190:     yes)	$as_echo "#define HAVE_AFS 1" >>confdefs.h
 4191: 
 4192: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
 4193: $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
 4194: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4195: $as_echo "yes" >&6; }
 4196: 		AUTH_REG="$AUTH_REG AFS"
 4197: 		;;
 4198:     no)		;;
 4199:     *)		as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
 4200: 		;;
 4201: esac
 4202: fi
 4203: 
 4204: 
 4205: 
 4206: # Check whether --with-DCE was given.
 4207: if test "${with_DCE+set}" = set; then :
 4208:   withval=$with_DCE; case $with_DCE in
 4209:     yes)	$as_echo "#define HAVE_DCE 1" >>confdefs.h
 4210: 
 4211: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
 4212: $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
 4213: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4214: $as_echo "yes" >&6; }
 4215: 		AUTH_REG="$AUTH_REG DCE"
 4216: 		;;
 4217:     no)		;;
 4218:     *)		as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
 4219: 		;;
 4220: esac
 4221: fi
 4222: 
 4223: 
 4224: 
 4225: # Check whether --with-logincap was given.
 4226: if test "${with_logincap+set}" = set; then :
 4227:   withval=$with_logincap; case $with_logincap in
 4228:     yes|no)	;;
 4229:     *)		as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
 4230: 		;;
 4231: esac
 4232: fi
 4233: 
 4234: 
 4235: 
 4236: # Check whether --with-bsdauth was given.
 4237: if test "${with_bsdauth+set}" = set; then :
 4238:   withval=$with_bsdauth; case $with_bsdauth in
 4239:     yes)	AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
 4240:     no)		;;
 4241:     *)		as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
 4242: 		;;
 4243: esac
 4244: fi
 4245: 
 4246: 
 4247: 
 4248: # Check whether --with-project was given.
 4249: if test "${with_project+set}" = set; then :
 4250:   withval=$with_project; case $with_project in
 4251:     yes|no)	;;
 4252:     no)	;;
 4253:     *)		as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
 4254: 		;;
 4255: esac
 4256: fi
 4257: 
 4258: 
 4259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
 4260: $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
 4261: 
 4262: # Check whether --with-lecture was given.
 4263: if test "${with_lecture+set}" = set; then :
 4264:   withval=$with_lecture; case $with_lecture in
 4265:     yes|short|always)	lecture=once
 4266: 		;;
 4267:     no|none|never)	lecture=never
 4268: 		;;
 4269:     *)		as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
 4270: 		;;
 4271: esac
 4272: fi
 4273: 
 4274: if test "$lecture" = "once"; then
 4275:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4276: $as_echo "yes" >&6; }
 4277: else
 4278:     $as_echo "#define NO_LECTURE 1" >>confdefs.h
 4279: 
 4280:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4281: $as_echo "no" >&6; }
 4282: fi
 4283: 
 4284: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
 4285: $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
 4286: 
 4287: # Check whether --with-logging was given.
 4288: if test "${with_logging+set}" = set; then :
 4289:   withval=$with_logging; case $with_logging in
 4290:     yes)	as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
 4291: 		;;
 4292:     no)		as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
 4293: 		;;
 4294:     syslog)	$as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
 4295: 
 4296: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
 4297: $as_echo "syslog" >&6; }
 4298: 		;;
 4299:     file)	$as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
 4300: 
 4301: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
 4302: $as_echo "file" >&6; }
 4303: 		;;
 4304:     both)	$as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
 4305: 
 4306: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
 4307: $as_echo "both" >&6; }
 4308: 		;;
 4309:     *)		as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
 4310: 		;;
 4311: esac
 4312: else
 4313:   $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
 4314:  { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
 4315: $as_echo "syslog" >&6; }
 4316: fi
 4317: 
 4318: 
 4319: 
 4320: # Check whether --with-logfac was given.
 4321: if test "${with_logfac+set}" = set; then :
 4322:   withval=$with_logfac; case $with_logfac in
 4323:     yes)	as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
 4324: 		;;
 4325:     no)		as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
 4326: 		;;
 4327:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)		logfac=$with_logfac
 4328: 		;;
 4329:     *)		as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
 4330: 		;;
 4331: esac
 4332: fi
 4333: 
 4334: 
 4335: { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
 4336: $as_echo_n "checking at which syslog priority to log commands... " >&6; }
 4337: 
 4338: # Check whether --with-goodpri was given.
 4339: if test "${with_goodpri+set}" = set; then :
 4340:   withval=$with_goodpri; case $with_goodpri in
 4341:     yes)	as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
 4342: 		;;
 4343:     no)		as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
 4344: 		;;
 4345:     alert|crit|debug|emerg|err|info|notice|warning)
 4346: 		goodpri=$with_goodpri
 4347: 		;;
 4348:     *)		as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
 4349: 		;;
 4350: esac
 4351: fi
 4352: 
 4353: 
 4354: cat >>confdefs.h <<_ACEOF
 4355: #define PRI_SUCCESS "$goodpri"
 4356: _ACEOF
 4357: 
 4358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
 4359: $as_echo "$goodpri" >&6; }
 4360: 
 4361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
 4362: $as_echo_n "checking at which syslog priority to log failures... " >&6; }
 4363: 
 4364: # Check whether --with-badpri was given.
 4365: if test "${with_badpri+set}" = set; then :
 4366:   withval=$with_badpri; case $with_badpri in
 4367:     yes)	as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
 4368: 		;;
 4369:     no)		as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
 4370: 		;;
 4371:     alert|crit|debug|emerg|err|info|notice|warning)
 4372: 		badpri=$with_badpri
 4373: 		;;
 4374:     *)		as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
 4375: 		;;
 4376: esac
 4377: fi
 4378: 
 4379: 
 4380: cat >>confdefs.h <<_ACEOF
 4381: #define PRI_FAILURE "$badpri"
 4382: _ACEOF
 4383: 
 4384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
 4385: $as_echo "$badpri" >&6; }
 4386: 
 4387: 
 4388: # Check whether --with-logpath was given.
 4389: if test "${with_logpath+set}" = set; then :
 4390:   withval=$with_logpath; case $with_logpath in
 4391:     yes)	as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
 4392: 		;;
 4393:     no)		as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
 4394: 		;;
 4395: esac
 4396: fi
 4397: 
 4398: 
 4399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
 4400: $as_echo_n "checking how long a line in the log file should be... " >&6; }
 4401: 
 4402: # Check whether --with-loglen was given.
 4403: if test "${with_loglen+set}" = set; then :
 4404:   withval=$with_loglen; case $with_loglen in
 4405:     yes)	as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
 4406: 		;;
 4407:     no)		as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
 4408: 		;;
 4409:     [0-9]*)	loglen=$with_loglen
 4410: 		;;
 4411:     *)		as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
 4412: 		;;
 4413: esac
 4414: fi
 4415: 
 4416: 
 4417: cat >>confdefs.h <<_ACEOF
 4418: #define MAXLOGFILELEN $loglen
 4419: _ACEOF
 4420: 
 4421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
 4422: $as_echo "$loglen" >&6; }
 4423: 
 4424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
 4425: $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
 4426: 
 4427: # Check whether --with-ignore-dot was given.
 4428: if test "${with_ignore_dot+set}" = set; then :
 4429:   withval=$with_ignore_dot; case $with_ignore_dot in
 4430:     yes)	ignore_dot=on
 4431: 		;;
 4432:     no)		ignore_dot=off
 4433: 		;;
 4434:     *)		as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
 4435: 		;;
 4436: esac
 4437: fi
 4438: 
 4439: if test "$ignore_dot" = "on"; then
 4440:     $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
 4441: 
 4442:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4443: $as_echo "yes" >&6; }
 4444: else
 4445:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4446: $as_echo "no" >&6; }
 4447: fi
 4448: 
 4449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
 4450: $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
 4451: 
 4452: # Check whether --with-mail-if-no-user was given.
 4453: if test "${with_mail_if_no_user+set}" = set; then :
 4454:   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
 4455:     yes)	mail_no_user=on
 4456: 		;;
 4457:     no)		mail_no_user=off
 4458: 		;;
 4459:     *)		as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
 4460: 		;;
 4461: esac
 4462: fi
 4463: 
 4464: if test "$mail_no_user" = "on"; then
 4465:     $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
 4466: 
 4467:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4468: $as_echo "yes" >&6; }
 4469: else
 4470:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4471: $as_echo "no" >&6; }
 4472: fi
 4473: 
 4474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
 4475: $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
 4476: 
 4477: # Check whether --with-mail-if-no-host was given.
 4478: if test "${with_mail_if_no_host+set}" = set; then :
 4479:   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
 4480:     yes)	mail_no_host=on
 4481: 		;;
 4482:     no)		mail_no_host=off
 4483: 		;;
 4484:     *)		as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
 4485: 		;;
 4486: esac
 4487: fi
 4488: 
 4489: if test "$mail_no_host" = "on"; then
 4490:     $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
 4491: 
 4492:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4493: $as_echo "yes" >&6; }
 4494: else
 4495:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4496: $as_echo "no" >&6; }
 4497: fi
 4498: 
 4499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
 4500: $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
 4501: 
 4502: # Check whether --with-mail-if-noperms was given.
 4503: if test "${with_mail_if_noperms+set}" = set; then :
 4504:   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
 4505:     yes)	mail_noperms=on
 4506: 		;;
 4507:     no)		mail_noperms=off
 4508: 		;;
 4509:     *)		as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
 4510: 		;;
 4511: esac
 4512: fi
 4513: 
 4514: if test "$mail_noperms" = "on"; then
 4515:     $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
 4516: 
 4517:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4518: $as_echo "yes" >&6; }
 4519: else
 4520:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4521: $as_echo "no" >&6; }
 4522: fi
 4523: 
 4524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
 4525: $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
 4526: 
 4527: # Check whether --with-mailto was given.
 4528: if test "${with_mailto+set}" = set; then :
 4529:   withval=$with_mailto; case $with_mailto in
 4530:     yes)	as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
 4531: 		;;
 4532:     no)		as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
 4533: 		;;
 4534:     *)		mailto=$with_mailto
 4535: 		;;
 4536: esac
 4537: fi
 4538: 
 4539: 
 4540: cat >>confdefs.h <<_ACEOF
 4541: #define MAILTO "$mailto"
 4542: _ACEOF
 4543: 
 4544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
 4545: $as_echo "$mailto" >&6; }
 4546: 
 4547: 
 4548: # Check whether --with-mailsubject was given.
 4549: if test "${with_mailsubject+set}" = set; then :
 4550:   withval=$with_mailsubject; case $with_mailsubject in
 4551:     yes)	as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
 4552: 		;;
 4553:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
 4554: $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
 4555: 		;;
 4556:     *)		mailsub="$with_mailsubject"
 4557: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
 4558: $as_echo_n "checking sudo mail subject... " >&6; }
 4559: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
 4560: $as_echo "Using alert mail subject: $mailsub" >&6; }
 4561: 		;;
 4562: esac
 4563: fi
 4564: 
 4565: 
 4566: cat >>confdefs.h <<_ACEOF
 4567: #define MAILSUBJECT "$mailsub"
 4568: _ACEOF
 4569: 
 4570: 
 4571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
 4572: $as_echo_n "checking for bad password prompt... " >&6; }
 4573: 
 4574: # Check whether --with-passprompt was given.
 4575: if test "${with_passprompt+set}" = set; then :
 4576:   withval=$with_passprompt; case $with_passprompt in
 4577:     yes)	as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
 4578: 		;;
 4579:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
 4580: $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
 4581: 		;;
 4582:     *)		passprompt="$with_passprompt"
 4583: esac
 4584: fi
 4585: 
 4586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
 4587: $as_echo "$passprompt" >&6; }
 4588: 
 4589: cat >>confdefs.h <<_ACEOF
 4590: #define PASSPROMPT "$passprompt"
 4591: _ACEOF
 4592: 
 4593: 
 4594: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
 4595: $as_echo_n "checking for bad password message... " >&6; }
 4596: 
 4597: # Check whether --with-badpass-message was given.
 4598: if test "${with_badpass_message+set}" = set; then :
 4599:   withval=$with_badpass_message; case $with_badpass_message in
 4600:     yes)	as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
 4601: 		;;
 4602:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
 4603: $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
 4604: 		;;
 4605:     *)		badpass_message="$with_badpass_message"
 4606: 		;;
 4607: esac
 4608: fi
 4609: 
 4610: 
 4611: cat >>confdefs.h <<_ACEOF
 4612: #define INCORRECT_PASSWORD "$badpass_message"
 4613: _ACEOF
 4614: 
 4615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
 4616: $as_echo "$badpass_message" >&6; }
 4617: 
 4618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
 4619: $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
 4620: 
 4621: # Check whether --with-fqdn was given.
 4622: if test "${with_fqdn+set}" = set; then :
 4623:   withval=$with_fqdn; case $with_fqdn in
 4624:     yes)	fqdn=on
 4625: 		;;
 4626:     no)		fqdn=off
 4627: 		;;
 4628:     *)		as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
 4629: 		;;
 4630: esac
 4631: fi
 4632: 
 4633: if test "$fqdn" = "on"; then
 4634:     $as_echo "#define FQDN 1" >>confdefs.h
 4635: 
 4636:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4637: $as_echo "yes" >&6; }
 4638: else
 4639:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4640: $as_echo "no" >&6; }
 4641: fi
 4642: 
 4643: 
 4644: # Check whether --with-timedir was given.
 4645: if test "${with_timedir+set}" = set; then :
 4646:   withval=$with_timedir; case $with_timedir in
 4647:     yes)	as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
 4648: 		;;
 4649:     no)		as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
 4650: 		;;
 4651: esac
 4652: fi
 4653: 
 4654: 
 4655: 
 4656: # Check whether --with-iologdir was given.
 4657: if test "${with_iologdir+set}" = set; then :
 4658:   withval=$with_iologdir; case $with_iologdir in
 4659:     yes)    ;;
 4660:     no)     as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
 4661: 	    ;;
 4662: esac
 4663: fi
 4664: 
 4665: 
 4666: 
 4667: # Check whether --with-sendmail was given.
 4668: if test "${with_sendmail+set}" = set; then :
 4669:   withval=$with_sendmail; case $with_sendmail in
 4670:     yes)	with_sendmail=""
 4671: 		;;
 4672:     no)		;;
 4673:     *)		cat >>confdefs.h <<EOF
 4674: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
 4675: EOF
 4676: 
 4677: 		;;
 4678: esac
 4679: fi
 4680: 
 4681: 
 4682: 
 4683: # Check whether --with-sudoers-mode was given.
 4684: if test "${with_sudoers_mode+set}" = set; then :
 4685:   withval=$with_sudoers_mode; case $with_sudoers_mode in
 4686:     yes)	as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
 4687: 		;;
 4688:     no)		as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
 4689: 		;;
 4690:     [1-9]*)	SUDOERS_MODE=0${with_sudoers_mode}
 4691: 		;;
 4692:     0*)		SUDOERS_MODE=$with_sudoers_mode
 4693: 		;;
 4694:     *)		as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
 4695: 		;;
 4696: esac
 4697: fi
 4698: 
 4699: 
 4700: 
 4701: # Check whether --with-sudoers-uid was given.
 4702: if test "${with_sudoers_uid+set}" = set; then :
 4703:   withval=$with_sudoers_uid; case $with_sudoers_uid in
 4704:     yes)	as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
 4705: 		;;
 4706:     no)		as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
 4707: 		;;
 4708:     [0-9]*)	SUDOERS_UID=$with_sudoers_uid
 4709: 		;;
 4710:     *)		as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
 4711: 		;;
 4712: esac
 4713: fi
 4714: 
 4715: 
 4716: 
 4717: # Check whether --with-sudoers-gid was given.
 4718: if test "${with_sudoers_gid+set}" = set; then :
 4719:   withval=$with_sudoers_gid; case $with_sudoers_gid in
 4720:     yes)	as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
 4721: 		;;
 4722:     no)		as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
 4723: 		;;
 4724:     [0-9]*)	SUDOERS_GID=$with_sudoers_gid
 4725: 		;;
 4726:     *)		as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
 4727: 		;;
 4728: esac
 4729: fi
 4730: 
 4731: 
 4732: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
 4733: $as_echo_n "checking for umask programs should be run with... " >&6; }
 4734: 
 4735: # Check whether --with-umask was given.
 4736: if test "${with_umask+set}" = set; then :
 4737:   withval=$with_umask; case $with_umask in
 4738:     yes)	as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
 4739: 		;;
 4740:     no)		sudo_umask=0777
 4741: 		;;
 4742:     [0-9]*)	sudo_umask=$with_umask
 4743: 		;;
 4744:     *)		as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
 4745: 		;;
 4746: esac
 4747: fi
 4748: 
 4749: 
 4750: cat >>confdefs.h <<_ACEOF
 4751: #define SUDO_UMASK $sudo_umask
 4752: _ACEOF
 4753: 
 4754: if test "$sudo_umask" = "0777"; then
 4755:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
 4756: $as_echo "user" >&6; }
 4757: else
 4758:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
 4759: $as_echo "$sudo_umask" >&6; }
 4760: fi
 4761: 
 4762: 
 4763: # Check whether --with-umask-override was given.
 4764: if test "${with_umask_override+set}" = set; then :
 4765:   withval=$with_umask_override; case $with_umask_override in
 4766:     yes)	$as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
 4767: 
 4768: 		umask_override=on
 4769: 		;;
 4770:     no)		umask_override=off
 4771: 		;;
 4772:     *)		as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
 4773: 		;;
 4774: esac
 4775: fi
 4776: 
 4777: 
 4778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
 4779: $as_echo_n "checking for default user to run commands as... " >&6; }
 4780: 
 4781: # Check whether --with-runas-default was given.
 4782: if test "${with_runas_default+set}" = set; then :
 4783:   withval=$with_runas_default; case $with_runas_default in
 4784:     yes)	as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
 4785: 		;;
 4786:     no)		as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
 4787: 		;;
 4788:     *)		runas_default="$with_runas_default"
 4789: 		;;
 4790: esac
 4791: fi
 4792: 
 4793: 
 4794: cat >>confdefs.h <<_ACEOF
 4795: #define RUNAS_DEFAULT "$runas_default"
 4796: _ACEOF
 4797: 
 4798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
 4799: $as_echo "$runas_default" >&6; }
 4800: 
 4801: 
 4802: # Check whether --with-exempt was given.
 4803: if test "${with_exempt+set}" = set; then :
 4804:   withval=$with_exempt; case $with_exempt in
 4805:     yes)	as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
 4806: 		;;
 4807:     no)		as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
 4808: 		;;
 4809:     *)
 4810: cat >>confdefs.h <<_ACEOF
 4811: #define EXEMPTGROUP "$with_exempt"
 4812: _ACEOF
 4813: 
 4814: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
 4815: $as_echo_n "checking for group to be exempt from password... " >&6; }
 4816: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
 4817: $as_echo "$with_exempt" >&6; }
 4818: 		;;
 4819: esac
 4820: fi
 4821: 
 4822: 
 4823: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
 4824: $as_echo_n "checking for editor that visudo should use... " >&6; }
 4825: 
 4826: # Check whether --with-editor was given.
 4827: if test "${with_editor+set}" = set; then :
 4828:   withval=$with_editor; case $with_editor in
 4829:     yes)	as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
 4830: 		;;
 4831:     no)		as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
 4832: 		;;
 4833:     *)
 4834: cat >>confdefs.h <<_ACEOF
 4835: #define EDITOR "$with_editor"
 4836: _ACEOF
 4837: 
 4838: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
 4839: $as_echo "$with_editor" >&6; }
 4840: 		editor="$with_editor"
 4841: 		;;
 4842: esac
 4843: else
 4844:   $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
 4845:  { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
 4846: $as_echo "vi" >&6; }
 4847: fi
 4848: 
 4849: 
 4850: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
 4851: $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
 4852: 
 4853: # Check whether --with-env-editor was given.
 4854: if test "${with_env_editor+set}" = set; then :
 4855:   withval=$with_env_editor; case $with_env_editor in
 4856:     yes)	env_editor=on
 4857: 		;;
 4858:     no)		env_editor=off
 4859: 		;;
 4860:     *)		as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
 4861: 		;;
 4862: esac
 4863: fi
 4864: 
 4865: if test "$env_editor" = "on"; then
 4866:     $as_echo "#define ENV_EDITOR 1" >>confdefs.h
 4867: 
 4868:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4869: $as_echo "yes" >&6; }
 4870: else
 4871:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4872: $as_echo "no" >&6; }
 4873: fi
 4874: 
 4875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
 4876: $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
 4877: 
 4878: # Check whether --with-passwd-tries was given.
 4879: if test "${with_passwd_tries+set}" = set; then :
 4880:   withval=$with_passwd_tries; case $with_passwd_tries in
 4881:     yes)	;;
 4882:     no)		as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
 4883: 		;;
 4884:     [1-9]*)	passwd_tries=$with_passwd_tries
 4885: 		;;
 4886:     *)		as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
 4887: 		;;
 4888: esac
 4889: fi
 4890: 
 4891: 
 4892: cat >>confdefs.h <<_ACEOF
 4893: #define TRIES_FOR_PASSWORD $passwd_tries
 4894: _ACEOF
 4895: 
 4896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
 4897: $as_echo "$passwd_tries" >&6; }
 4898: 
 4899: { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
 4900: $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
 4901: 
 4902: # Check whether --with-timeout was given.
 4903: if test "${with_timeout+set}" = set; then :
 4904:   withval=$with_timeout; case $with_timeout in
 4905:     yes)	;;
 4906:     no)		timeout=0
 4907: 		;;
 4908:     [0-9]*)	timeout=$with_timeout
 4909: 		;;
 4910:     *)		as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
 4911: 		;;
 4912: esac
 4913: fi
 4914: 
 4915: 
 4916: cat >>confdefs.h <<_ACEOF
 4917: #define TIMEOUT $timeout
 4918: _ACEOF
 4919: 
 4920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
 4921: $as_echo "$timeout" >&6; }
 4922: 
 4923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
 4924: $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
 4925: 
 4926: # Check whether --with-password-timeout was given.
 4927: if test "${with_password_timeout+set}" = set; then :
 4928:   withval=$with_password_timeout; case $with_password_timeout in
 4929:     yes)	;;
 4930:     no)		password_timeout=0
 4931: 		;;
 4932:     [0-9]*)	password_timeout=$with_password_timeout
 4933: 		;;
 4934:     *)		as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
 4935: 		;;
 4936: esac
 4937: fi
 4938: 
 4939: 
 4940: cat >>confdefs.h <<_ACEOF
 4941: #define PASSWORD_TIMEOUT $password_timeout
 4942: _ACEOF
 4943: 
 4944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
 4945: $as_echo "$password_timeout" >&6; }
 4946: 
 4947: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
 4948: $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
 4949: 
 4950: # Check whether --with-tty-tickets was given.
 4951: if test "${with_tty_tickets+set}" = set; then :
 4952:   withval=$with_tty_tickets; case $with_tty_tickets in
 4953:     yes)	tty_tickets=on
 4954: 		;;
 4955:     no)		tty_tickets=off
 4956: 		;;
 4957:     *)		as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
 4958: 		;;
 4959: esac
 4960: fi
 4961: 
 4962: if test "$tty_tickets" = "off"; then
 4963:     $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
 4964: 
 4965:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4966: $as_echo "no" >&6; }
 4967: else
 4968:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4969: $as_echo "yes" >&6; }
 4970: fi
 4971: 
 4972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
 4973: $as_echo_n "checking whether to include insults... " >&6; }
 4974: 
 4975: # Check whether --with-insults was given.
 4976: if test "${with_insults+set}" = set; then :
 4977:   withval=$with_insults; case $with_insults in
 4978:     yes)	insults=on
 4979: 		with_classic_insults=yes
 4980: 		with_csops_insults=yes
 4981: 		;;
 4982:     disabled)	insults=off
 4983: 		with_classic_insults=yes
 4984: 		with_csops_insults=yes
 4985: 		;;
 4986:     no)		insults=off
 4987: 		;;
 4988:     *)		as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
 4989: 		;;
 4990: esac
 4991: fi
 4992: 
 4993: if test "$insults" = "on"; then
 4994:     $as_echo "#define USE_INSULTS 1" >>confdefs.h
 4995: 
 4996:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4997: $as_echo "yes" >&6; }
 4998: else
 4999:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5000: $as_echo "no" >&6; }
 5001: fi
 5002: 
 5003: 
 5004: # Check whether --with-all-insults was given.
 5005: if test "${with_all_insults+set}" = set; then :
 5006:   withval=$with_all_insults; case $with_all_insults in
 5007:     yes)	with_classic_insults=yes
 5008: 		with_csops_insults=yes
 5009: 		with_hal_insults=yes
 5010: 		with_goons_insults=yes
 5011: 		;;
 5012:     no)		;;
 5013:     *)		as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
 5014: 		;;
 5015: esac
 5016: fi
 5017: 
 5018: 
 5019: 
 5020: # Check whether --with-classic-insults was given.
 5021: if test "${with_classic_insults+set}" = set; then :
 5022:   withval=$with_classic_insults; case $with_classic_insults in
 5023:     yes)	$as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
 5024: 
 5025: 		;;
 5026:     no)		;;
 5027:     *)		as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
 5028: 		;;
 5029: esac
 5030: fi
 5031: 
 5032: 
 5033: 
 5034: # Check whether --with-csops-insults was given.
 5035: if test "${with_csops_insults+set}" = set; then :
 5036:   withval=$with_csops_insults; case $with_csops_insults in
 5037:     yes)	$as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
 5038: 
 5039: 		;;
 5040:     no)		;;
 5041:     *)		as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
 5042: 		;;
 5043: esac
 5044: fi
 5045: 
 5046: 
 5047: 
 5048: # Check whether --with-hal-insults was given.
 5049: if test "${with_hal_insults+set}" = set; then :
 5050:   withval=$with_hal_insults; case $with_hal_insults in
 5051:     yes)	$as_echo "#define HAL_INSULTS 1" >>confdefs.h
 5052: 
 5053: 		;;
 5054:     no)		;;
 5055:     *)		as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
 5056: 		;;
 5057: esac
 5058: fi
 5059: 
 5060: 
 5061: 
 5062: # Check whether --with-goons-insults was given.
 5063: if test "${with_goons_insults+set}" = set; then :
 5064:   withval=$with_goons_insults; case $with_goons_insults in
 5065:     yes)	$as_echo "#define GOONS_INSULTS 1" >>confdefs.h
 5066: 
 5067: 		;;
 5068:     no)		;;
 5069:     *)		as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
 5070: 		;;
 5071: esac
 5072: fi
 5073: 
 5074: 
 5075: 
 5076: # Check whether --with-nsswitch was given.
 5077: if test "${with_nsswitch+set}" = set; then :
 5078:   withval=$with_nsswitch; case $with_nsswitch in
 5079:     no)		;;
 5080:     yes)	with_nsswitch="/etc/nsswitch.conf"
 5081: 		;;
 5082:     *)		;;
 5083: esac
 5084: fi
 5085: 
 5086: 
 5087: 
 5088: # Check whether --with-ldap was given.
 5089: if test "${with_ldap+set}" = set; then :
 5090:   withval=$with_ldap; case $with_ldap in
 5091:     no)		;;
 5092:     *)		$as_echo "#define HAVE_LDAP 1" >>confdefs.h
 5093: 
 5094: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
 5095: $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
 5096: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5097: $as_echo "yes" >&6; }
 5098: 		;;
 5099: esac
 5100: fi
 5101: 
 5102: 
 5103: 
 5104: # Check whether --with-ldap-conf-file was given.
 5105: if test "${with_ldap_conf_file+set}" = set; then :
 5106:   withval=$with_ldap_conf_file;
 5107: fi
 5108: 
 5109: test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
 5110: cat >>confdefs.h <<EOF
 5111: #define _PATH_LDAP_CONF "$ldap_conf"
 5112: EOF
 5113: 
 5114: 
 5115: 
 5116: # Check whether --with-ldap-secret-file was given.
 5117: if test "${with_ldap_secret_file+set}" = set; then :
 5118:   withval=$with_ldap_secret_file;
 5119: fi
 5120: 
 5121: test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
 5122: cat >>confdefs.h <<EOF
 5123: #define _PATH_LDAP_SECRET "$ldap_secret"
 5124: EOF
 5125: 
 5126: 
 5127: 
 5128: # Check whether --with-pc-insults was given.
 5129: if test "${with_pc_insults+set}" = set; then :
 5130:   withval=$with_pc_insults; case $with_pc_insults in
 5131:     yes)	$as_echo "#define PC_INSULTS 1" >>confdefs.h
 5132: 
 5133: 		;;
 5134:     no)		;;
 5135:     *)		as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
 5136: 		;;
 5137: esac
 5138: fi
 5139: 
 5140: 
 5141: if test "$insults" = "on"; then
 5142:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
 5143: $as_echo_n "checking which insult sets to include... " >&6; }
 5144:     i=""
 5145:     test "$with_goons_insults" = "yes" && i="goons ${i}"
 5146:     test "$with_hal_insults" = "yes" && i="hal ${i}"
 5147:     test "$with_csops_insults" = "yes" && i="csops ${i}"
 5148:     test "$with_classic_insults" = "yes" && i="classic ${i}"
 5149:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
 5150: $as_echo "$i" >&6; }
 5151: fi
 5152: 
 5153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
 5154: $as_echo_n "checking whether to override the user's path... " >&6; }
 5155: 
 5156: # Check whether --with-secure-path was given.
 5157: if test "${with_secure_path+set}" = set; then :
 5158:   withval=$with_secure_path; case $with_secure_path in
 5159:     yes)	with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
 5160: 		cat >>confdefs.h <<_ACEOF
 5161: #define SECURE_PATH "$with_secure_path"
 5162: _ACEOF
 5163: 
 5164: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
 5165: $as_echo "$with_secure_path" >&6; }
 5166: 		secure_path="set to $with_secure_path"
 5167: 		;;
 5168:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5169: $as_echo "no" >&6; }
 5170: 		;;
 5171:     *)		cat >>confdefs.h <<_ACEOF
 5172: #define SECURE_PATH "$with_secure_path"
 5173: _ACEOF
 5174: 
 5175: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
 5176: $as_echo "$with_secure_path" >&6; }
 5177: 		secure_path="set to F<$with_secure_path>"
 5178: 		;;
 5179: esac
 5180: else
 5181:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5182: $as_echo "no" >&6; }
 5183: fi
 5184: 
 5185: 
 5186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
 5187: $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
 5188: 
 5189: # Check whether --with-interfaces was given.
 5190: if test "${with_interfaces+set}" = set; then :
 5191:   withval=$with_interfaces; case $with_interfaces in
 5192:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5193: $as_echo "yes" >&6; }
 5194: 		;;
 5195:     no)		$as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
 5196: 
 5197: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5198: $as_echo "no" >&6; }
 5199: 		;;
 5200:     *)		as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
 5201: 		;;
 5202: esac
 5203: else
 5204:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5205: $as_echo "yes" >&6; }
 5206: fi
 5207: 
 5208: 
 5209: 
 5210: # Check whether --with-stow was given.
 5211: if test "${with_stow+set}" = set; then :
 5212:   withval=$with_stow; case $with_stow in
 5213:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: --with-stow option deprecated, now is defalt behavior" >&5
 5214: $as_echo "$as_me: --with-stow option deprecated, now is defalt behavior" >&6;}
 5215: 		;;
 5216: esac
 5217: fi
 5218: 
 5219: 
 5220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
 5221: $as_echo_n "checking whether to use an askpass helper... " >&6; }
 5222: 
 5223: # Check whether --with-askpass was given.
 5224: if test "${with_askpass+set}" = set; then :
 5225:   withval=$with_askpass; case $with_askpass in
 5226:     yes)	as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
 5227: 		;;
 5228:     no)		;;
 5229:     *)		cat >>confdefs.h <<EOF
 5230: #define _PATH_SUDO_ASKPASS "$with_askpass"
 5231: EOF
 5232: 
 5233: 		;;
 5234: esac
 5235: else
 5236:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5237: $as_echo "no" >&6; }
 5238: fi
 5239: 
 5240: 
 5241: 
 5242: # Check whether --with-plugindir was given.
 5243: if test "${with_plugindir+set}" = set; then :
 5244:   withval=$with_plugindir; case $with_plugindir in
 5245:     no)		as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
 5246: 		;;
 5247:     *)		;;
 5248: esac
 5249: else
 5250:   with_plugindir="$libexecdir"
 5251: fi
 5252: 
 5253: 
 5254: 
 5255: # Check whether --with-man was given.
 5256: if test "${with_man+set}" = set; then :
 5257:   withval=$with_man; case $with_man in
 5258:     yes)	MANTYPE=man
 5259: 		;;
 5260:     no)		as_fn_error $? "\"--without-man not supported.\"" "$LINENO" 5
 5261: 		;;
 5262:     *)		as_fn_error $? "\"ignoring unknown argument to --with-man: $with_man.\"" "$LINENO" 5
 5263: 		;;
 5264: esac
 5265: fi
 5266: 
 5267: 
 5268: 
 5269: # Check whether --with-mdoc was given.
 5270: if test "${with_mdoc+set}" = set; then :
 5271:   withval=$with_mdoc; case $with_mdoc in
 5272:     yes)	MANTYPE=mdoc
 5273: 		;;
 5274:     no)		as_fn_error $? "\"--without-mdoc not supported.\"" "$LINENO" 5
 5275: 		;;
 5276:     *)		as_fn_error $? "\"ignoring unknown argument to --with-mdoc: $with_mdoc.\"" "$LINENO" 5
 5277: 		;;
 5278: esac
 5279: fi
 5280: 
 5281: 
 5282: 
 5283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
 5284: $as_echo_n "checking whether to do user authentication by default... " >&6; }
 5285: # Check whether --enable-authentication was given.
 5286: if test "${enable_authentication+set}" = set; then :
 5287:   enableval=$enable_authentication;  case "$enableval" in
 5288:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5289: $as_echo "yes" >&6; }
 5290: 		;;
 5291:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5292: $as_echo "no" >&6; }
 5293: 		$as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
 5294: 
 5295: 		;;
 5296:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5297: $as_echo "no" >&6; }
 5298:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
 5299: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
 5300: 		;;
 5301:   esac
 5302: 
 5303: else
 5304:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5305: $as_echo "yes" >&6; }
 5306: fi
 5307: 
 5308: 
 5309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
 5310: $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
 5311: # Check whether --enable-root-mailer was given.
 5312: if test "${enable_root_mailer+set}" = set; then :
 5313:   enableval=$enable_root_mailer;  case "$enableval" in
 5314:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5315: $as_echo "no" >&6; }
 5316: 		;;
 5317:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5318: $as_echo "yes" >&6; }
 5319: 		$as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
 5320: 
 5321: 		;;
 5322:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5323: $as_echo "no" >&6; }
 5324:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
 5325: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
 5326: 		;;
 5327:   esac
 5328: 
 5329: else
 5330:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5331: $as_echo "no" >&6; }
 5332: fi
 5333: 
 5334: 
 5335: # Check whether --enable-setreuid was given.
 5336: if test "${enable_setreuid+set}" = set; then :
 5337:   enableval=$enable_setreuid;  case "$enableval" in
 5338:     no)		SKIP_SETREUID=yes
 5339: 		;;
 5340:     *)		;;
 5341:   esac
 5342: 
 5343: fi
 5344: 
 5345: 
 5346: # Check whether --enable-setresuid was given.
 5347: if test "${enable_setresuid+set}" = set; then :
 5348:   enableval=$enable_setresuid;  case "$enableval" in
 5349:     no)		SKIP_SETRESUID=yes
 5350: 		;;
 5351:     *)		;;
 5352:   esac
 5353: 
 5354: fi
 5355: 
 5356: 
 5357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
 5358: $as_echo_n "checking whether to disable shadow password support... " >&6; }
 5359: # Check whether --enable-shadow was given.
 5360: if test "${enable_shadow+set}" = set; then :
 5361:   enableval=$enable_shadow;  case "$enableval" in
 5362:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5363: $as_echo "no" >&6; }
 5364: 		;;
 5365:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5366: $as_echo "yes" >&6; }
 5367: 		CHECKSHADOW="false"
 5368: 		;;
 5369:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5370: $as_echo "no" >&6; }
 5371:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
 5372: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
 5373: 		;;
 5374:   esac
 5375: 
 5376: else
 5377:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5378: $as_echo "no" >&6; }
 5379: fi
 5380: 
 5381: 
 5382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
 5383: $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
 5384: # Check whether --enable-root-sudo was given.
 5385: if test "${enable_root_sudo+set}" = set; then :
 5386:   enableval=$enable_root_sudo;  case "$enableval" in
 5387:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5388: $as_echo "yes" >&6; }
 5389: 		;;
 5390:     no)		$as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
 5391: 
 5392: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5393: $as_echo "no" >&6; }
 5394: 		root_sudo=off
 5395: 		;;
 5396:     *)		as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
 5397: 		;;
 5398:   esac
 5399: 
 5400: else
 5401:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5402: $as_echo "yes" >&6; }
 5403: fi
 5404: 
 5405: 
 5406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
 5407: $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
 5408: # Check whether --enable-log-host was given.
 5409: if test "${enable_log_host+set}" = set; then :
 5410:   enableval=$enable_log_host;  case "$enableval" in
 5411:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5412: $as_echo "yes" >&6; }
 5413: 		$as_echo "#define HOST_IN_LOG 1" >>confdefs.h
 5414: 
 5415: 		;;
 5416:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5417: $as_echo "no" >&6; }
 5418: 		;;
 5419:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5420: $as_echo "no" >&6; }
 5421:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
 5422: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
 5423: 		;;
 5424:   esac
 5425: 
 5426: else
 5427:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5428: $as_echo "no" >&6; }
 5429: fi
 5430: 
 5431: 
 5432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
 5433: $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
 5434: # Check whether --enable-noargs-shell was given.
 5435: if test "${enable_noargs_shell+set}" = set; then :
 5436:   enableval=$enable_noargs_shell;  case "$enableval" in
 5437:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5438: $as_echo "yes" >&6; }
 5439: 		$as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
 5440: 
 5441: 		;;
 5442:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5443: $as_echo "no" >&6; }
 5444: 		;;
 5445:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5446: $as_echo "no" >&6; }
 5447:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
 5448: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
 5449: 		;;
 5450:   esac
 5451: 
 5452: else
 5453:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5454: $as_echo "no" >&6; }
 5455: fi
 5456: 
 5457: 
 5458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
 5459: $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
 5460: # Check whether --enable-shell-sets-home was given.
 5461: if test "${enable_shell_sets_home+set}" = set; then :
 5462:   enableval=$enable_shell_sets_home;  case "$enableval" in
 5463:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5464: $as_echo "yes" >&6; }
 5465: 		$as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
 5466: 
 5467: 		;;
 5468:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5469: $as_echo "no" >&6; }
 5470: 		;;
 5471:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5472: $as_echo "no" >&6; }
 5473:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
 5474: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
 5475: 		;;
 5476:   esac
 5477: 
 5478: else
 5479:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5480: $as_echo "no" >&6; }
 5481: fi
 5482: 
 5483: 
 5484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
 5485: $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
 5486: # Check whether --enable-path_info was given.
 5487: if test "${enable_path_info+set}" = set; then :
 5488:   enableval=$enable_path_info;  case "$enableval" in
 5489:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5490: $as_echo "no" >&6; }
 5491: 		;;
 5492:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5493: $as_echo "yes" >&6; }
 5494: 		$as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
 5495: 
 5496: 		path_info=off
 5497: 		;;
 5498:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5499: $as_echo "no" >&6; }
 5500: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
 5501: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
 5502: 		;;
 5503:   esac
 5504: 
 5505: else
 5506:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5507: $as_echo "no" >&6; }
 5508: fi
 5509: 
 5510: 
 5511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
 5512: $as_echo_n "checking whether to enable environment debugging... " >&6; }
 5513: # Check whether --enable-env_debug was given.
 5514: if test "${enable_env_debug+set}" = set; then :
 5515:   enableval=$enable_env_debug;  case "$enableval" in
 5516:     yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5517: $as_echo "yes" >&6; }
 5518: 		$as_echo "#define ENV_DEBUG 1" >>confdefs.h
 5519: 
 5520: 		;;
 5521:     no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5522: $as_echo "no" >&6; }
 5523: 		;;
 5524:     *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5525: $as_echo "no" >&6; }
 5526:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
 5527: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
 5528: 		;;
 5529:   esac
 5530: 
 5531: else
 5532:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5533: $as_echo "no" >&6; }
 5534: fi
 5535: 
 5536: 
 5537: # Check whether --enable-zlib was given.
 5538: if test "${enable_zlib+set}" = set; then :
 5539:   enableval=$enable_zlib;
 5540: else
 5541:   enable_zlib=yes
 5542: fi
 5543: 
 5544: 
 5545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
 5546: $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
 5547: # Check whether --enable-env_reset was given.
 5548: if test "${enable_env_reset+set}" = set; then :
 5549:   enableval=$enable_env_reset;  case "$enableval" in
 5550:     yes)	env_reset=on
 5551: 		;;
 5552:     no)		env_reset=off
 5553: 		;;
 5554:     *)		env_reset=on
 5555:     		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
 5556: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
 5557: 		;;
 5558:   esac
 5559: 
 5560: fi
 5561: 
 5562: if test "$env_reset" = "on"; then
 5563:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5564: $as_echo "yes" >&6; }
 5565:     $as_echo "#define ENV_RESET 1" >>confdefs.h
 5566: 
 5567: else
 5568:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5569: $as_echo "no" >&6; }
 5570:     $as_echo "#define ENV_RESET 0" >>confdefs.h
 5571: 
 5572: fi
 5573: 
 5574: # Check whether --enable-warnings was given.
 5575: if test "${enable_warnings+set}" = set; then :
 5576:   enableval=$enable_warnings;  case "$enableval" in
 5577:     yes)    ;;
 5578:     no)	    ;;
 5579:     *)	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
 5580: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
 5581: 	    ;;
 5582:   esac
 5583: 
 5584: fi
 5585: 
 5586: 
 5587: # Check whether --enable-werror was given.
 5588: if test "${enable_werror+set}" = set; then :
 5589:   enableval=$enable_werror;  case "$enableval" in
 5590:     yes)    ;;
 5591:     no)	    ;;
 5592:     *)	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
 5593: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
 5594: 	    ;;
 5595:   esac
 5596: 
 5597: fi
 5598: 
 5599: 
 5600: # Check whether --enable-hardening was given.
 5601: if test "${enable_hardening+set}" = set; then :
 5602:   enableval=$enable_hardening;
 5603: else
 5604:   enable_hardening=yes
 5605: fi
 5606: 
 5607: 
 5608: # Check whether --enable-pie was given.
 5609: if test "${enable_pie+set}" = set; then :
 5610:   enableval=$enable_pie;
 5611: else
 5612:   enable_pie=yes
 5613: fi
 5614: 
 5615: 
 5616: # Check whether --enable-admin-flag was given.
 5617: if test "${enable_admin_flag+set}" = set; then :
 5618:   enableval=$enable_admin_flag;  case "$enableval" in
 5619:     yes)    $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
 5620: 
 5621: 	    ;;
 5622:     no)	    ;;
 5623:     *)	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
 5624: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
 5625: 	    ;;
 5626:   esac
 5627: 
 5628: fi
 5629: 
 5630: 
 5631: # Check whether --enable-nls was given.
 5632: if test "${enable_nls+set}" = set; then :
 5633:   enableval=$enable_nls;
 5634: else
 5635:   enable_nls=yes
 5636: fi
 5637: 
 5638: 
 5639: 
 5640: # Check whether --with-selinux was given.
 5641: if test "${with_selinux+set}" = set; then :
 5642:   withval=$with_selinux; case $with_selinux in
 5643:     yes)	SELINUX_USAGE="[-r role] [-t type] "
 5644:     		$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
 5645: 
 5646: 		SUDO_LIBS="${SUDO_LIBS} -lselinux"
 5647: 		SUDO_OBJS="${SUDO_OBJS} selinux.o"
 5648: 		PROGS="${PROGS} sesh"
 5649: 		SEMAN=1
 5650: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
 5651: $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
 5652: if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
 5653:   $as_echo_n "(cached) " >&6
 5654: else
 5655:   ac_check_lib_save_LIBS=$LIBS
 5656: LIBS="-lselinux  $LIBS"
 5657: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5658: /* end confdefs.h.  */
 5659: 
 5660: /* Override any GCC internal prototype to avoid an error.
 5661:    Use char because int might match the return type of a GCC
 5662:    builtin and then its argument prototype would still apply.  */
 5663: #ifdef __cplusplus
 5664: extern "C"
 5665: #endif
 5666: char setkeycreatecon ();
 5667: int
 5668: main ()
 5669: {
 5670: return setkeycreatecon ();
 5671:   ;
 5672:   return 0;
 5673: }
 5674: _ACEOF
 5675: if ac_fn_c_try_link "$LINENO"; then :
 5676:   ac_cv_lib_selinux_setkeycreatecon=yes
 5677: else
 5678:   ac_cv_lib_selinux_setkeycreatecon=no
 5679: fi
 5680: rm -f core conftest.err conftest.$ac_objext \
 5681:     conftest$ac_exeext conftest.$ac_ext
 5682: LIBS=$ac_check_lib_save_LIBS
 5683: fi
 5684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
 5685: $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
 5686: if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
 5687:   $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
 5688: 
 5689: fi
 5690: 
 5691: 		;;
 5692:     no)		;;
 5693:     *)		as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
 5694: 		;;
 5695: esac
 5696: fi
 5697: 
 5698: 
 5699: # Check whether --enable-gss_krb5_ccache_name was given.
 5700: if test "${enable_gss_krb5_ccache_name+set}" = set; then :
 5701:   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
 5702: else
 5703:   check_gss_krb5_ccache_name=no
 5704: fi
 5705: 
 5706: 
 5707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
 5708: $as_echo_n "checking for library containing strerror... " >&6; }
 5709: if ${ac_cv_search_strerror+:} false; then :
 5710:   $as_echo_n "(cached) " >&6
 5711: else
 5712:   ac_func_search_save_LIBS=$LIBS
 5713: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5714: /* end confdefs.h.  */
 5715: 
 5716: /* Override any GCC internal prototype to avoid an error.
 5717:    Use char because int might match the return type of a GCC
 5718:    builtin and then its argument prototype would still apply.  */
 5719: #ifdef __cplusplus
 5720: extern "C"
 5721: #endif
 5722: char strerror ();
 5723: int
 5724: main ()
 5725: {
 5726: return strerror ();
 5727:   ;
 5728:   return 0;
 5729: }
 5730: _ACEOF
 5731: for ac_lib in '' cposix; do
 5732:   if test -z "$ac_lib"; then
 5733:     ac_res="none required"
 5734:   else
 5735:     ac_res=-l$ac_lib
 5736:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 5737:   fi
 5738:   if ac_fn_c_try_link "$LINENO"; then :
 5739:   ac_cv_search_strerror=$ac_res
 5740: fi
 5741: rm -f core conftest.err conftest.$ac_objext \
 5742:     conftest$ac_exeext
 5743:   if ${ac_cv_search_strerror+:} false; then :
 5744:   break
 5745: fi
 5746: done
 5747: if ${ac_cv_search_strerror+:} false; then :
 5748: 
 5749: else
 5750:   ac_cv_search_strerror=no
 5751: fi
 5752: rm conftest.$ac_ext
 5753: LIBS=$ac_func_search_save_LIBS
 5754: fi
 5755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
 5756: $as_echo "$ac_cv_search_strerror" >&6; }
 5757: ac_res=$ac_cv_search_strerror
 5758: if test "$ac_res" != no; then :
 5759:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 5760: 
 5761: fi
 5762: 
 5763: ac_ext=c
 5764: ac_cpp='$CPP $CPPFLAGS'
 5765: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 5766: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 5767: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 5768: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 5769: $as_echo_n "checking how to run the C preprocessor... " >&6; }
 5770: # On Suns, sometimes $CPP names a directory.
 5771: if test -n "$CPP" && test -d "$CPP"; then
 5772:   CPP=
 5773: fi
 5774: if test -z "$CPP"; then
 5775:   if ${ac_cv_prog_CPP+:} false; then :
 5776:   $as_echo_n "(cached) " >&6
 5777: else
 5778:       # Double quotes because CPP needs to be expanded
 5779:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 5780:     do
 5781:       ac_preproc_ok=false
 5782: for ac_c_preproc_warn_flag in '' yes
 5783: do
 5784:   # Use a header file that comes with gcc, so configuring glibc
 5785:   # with a fresh cross-compiler works.
 5786:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 5787:   # <limits.h> exists even on freestanding compilers.
 5788:   # On the NeXT, cc -E runs the code through the compiler's parser,
 5789:   # not just through cpp. "Syntax error" is here to catch this case.
 5790:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5791: /* end confdefs.h.  */
 5792: #ifdef __STDC__
 5793: # include <limits.h>
 5794: #else
 5795: # include <assert.h>
 5796: #endif
 5797: 		     Syntax error
 5798: _ACEOF
 5799: if ac_fn_c_try_cpp "$LINENO"; then :
 5800: 
 5801: else
 5802:   # Broken: fails on valid input.
 5803: continue
 5804: fi
 5805: rm -f conftest.err conftest.i conftest.$ac_ext
 5806: 
 5807:   # OK, works on sane cases.  Now check whether nonexistent headers
 5808:   # can be detected and how.
 5809:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5810: /* end confdefs.h.  */
 5811: #include <ac_nonexistent.h>
 5812: _ACEOF
 5813: if ac_fn_c_try_cpp "$LINENO"; then :
 5814:   # Broken: success on invalid input.
 5815: continue
 5816: else
 5817:   # Passes both tests.
 5818: ac_preproc_ok=:
 5819: break
 5820: fi
 5821: rm -f conftest.err conftest.i conftest.$ac_ext
 5822: 
 5823: done
 5824: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 5825: rm -f conftest.i conftest.err conftest.$ac_ext
 5826: if $ac_preproc_ok; then :
 5827:   break
 5828: fi
 5829: 
 5830:     done
 5831:     ac_cv_prog_CPP=$CPP
 5832: 
 5833: fi
 5834:   CPP=$ac_cv_prog_CPP
 5835: else
 5836:   ac_cv_prog_CPP=$CPP
 5837: fi
 5838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 5839: $as_echo "$CPP" >&6; }
 5840: ac_preproc_ok=false
 5841: for ac_c_preproc_warn_flag in '' yes
 5842: do
 5843:   # Use a header file that comes with gcc, so configuring glibc
 5844:   # with a fresh cross-compiler works.
 5845:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 5846:   # <limits.h> exists even on freestanding compilers.
 5847:   # On the NeXT, cc -E runs the code through the compiler's parser,
 5848:   # not just through cpp. "Syntax error" is here to catch this case.
 5849:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5850: /* end confdefs.h.  */
 5851: #ifdef __STDC__
 5852: # include <limits.h>
 5853: #else
 5854: # include <assert.h>
 5855: #endif
 5856: 		     Syntax error
 5857: _ACEOF
 5858: if ac_fn_c_try_cpp "$LINENO"; then :
 5859: 
 5860: else
 5861:   # Broken: fails on valid input.
 5862: continue
 5863: fi
 5864: rm -f conftest.err conftest.i conftest.$ac_ext
 5865: 
 5866:   # OK, works on sane cases.  Now check whether nonexistent headers
 5867:   # can be detected and how.
 5868:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5869: /* end confdefs.h.  */
 5870: #include <ac_nonexistent.h>
 5871: _ACEOF
 5872: if ac_fn_c_try_cpp "$LINENO"; then :
 5873:   # Broken: success on invalid input.
 5874: continue
 5875: else
 5876:   # Passes both tests.
 5877: ac_preproc_ok=:
 5878: break
 5879: fi
 5880: rm -f conftest.err conftest.i conftest.$ac_ext
 5881: 
 5882: done
 5883: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 5884: rm -f conftest.i conftest.err conftest.$ac_ext
 5885: if $ac_preproc_ok; then :
 5886: 
 5887: else
 5888:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 5889: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 5890: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 5891: See \`config.log' for more details" "$LINENO" 5; }
 5892: fi
 5893: 
 5894: ac_ext=c
 5895: ac_cpp='$CPP $CPPFLAGS'
 5896: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 5897: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 5898: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 5899: 
 5900: if test -n "$ac_tool_prefix"; then
 5901:   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 5902: set dummy ${ac_tool_prefix}ar; ac_word=$2
 5903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5904: $as_echo_n "checking for $ac_word... " >&6; }
 5905: if ${ac_cv_prog_AR+:} false; then :
 5906:   $as_echo_n "(cached) " >&6
 5907: else
 5908:   if test -n "$AR"; then
 5909:   ac_cv_prog_AR="$AR" # Let the user override the test.
 5910: else
 5911: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5912: for as_dir in $PATH
 5913: do
 5914:   IFS=$as_save_IFS
 5915:   test -z "$as_dir" && as_dir=.
 5916:     for ac_exec_ext in '' $ac_executable_extensions; do
 5917:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 5918:     ac_cv_prog_AR="${ac_tool_prefix}ar"
 5919:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5920:     break 2
 5921:   fi
 5922: done
 5923:   done
 5924: IFS=$as_save_IFS
 5925: 
 5926: fi
 5927: fi
 5928: AR=$ac_cv_prog_AR
 5929: if test -n "$AR"; then
 5930:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 5931: $as_echo "$AR" >&6; }
 5932: else
 5933:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5934: $as_echo "no" >&6; }
 5935: fi
 5936: 
 5937: 
 5938: fi
 5939: if test -z "$ac_cv_prog_AR"; then
 5940:   ac_ct_AR=$AR
 5941:   # Extract the first word of "ar", so it can be a program name with args.
 5942: set dummy ar; ac_word=$2
 5943: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5944: $as_echo_n "checking for $ac_word... " >&6; }
 5945: if ${ac_cv_prog_ac_ct_AR+:} false; then :
 5946:   $as_echo_n "(cached) " >&6
 5947: else
 5948:   if test -n "$ac_ct_AR"; then
 5949:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 5950: else
 5951: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5952: for as_dir in $PATH
 5953: do
 5954:   IFS=$as_save_IFS
 5955:   test -z "$as_dir" && as_dir=.
 5956:     for ac_exec_ext in '' $ac_executable_extensions; do
 5957:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 5958:     ac_cv_prog_ac_ct_AR="ar"
 5959:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5960:     break 2
 5961:   fi
 5962: done
 5963:   done
 5964: IFS=$as_save_IFS
 5965: 
 5966: fi
 5967: fi
 5968: ac_ct_AR=$ac_cv_prog_ac_ct_AR
 5969: if test -n "$ac_ct_AR"; then
 5970:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 5971: $as_echo "$ac_ct_AR" >&6; }
 5972: else
 5973:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5974: $as_echo "no" >&6; }
 5975: fi
 5976: 
 5977:   if test "x$ac_ct_AR" = x; then
 5978:     AR="false"
 5979:   else
 5980:     case $cross_compiling:$ac_tool_warned in
 5981: yes:)
 5982: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 5983: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 5984: ac_tool_warned=yes ;;
 5985: esac
 5986:     AR=$ac_ct_AR
 5987:   fi
 5988: else
 5989:   AR="$ac_cv_prog_AR"
 5990: fi
 5991: 
 5992: if test -n "$ac_tool_prefix"; then
 5993:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 5994: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 5995: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5996: $as_echo_n "checking for $ac_word... " >&6; }
 5997: if ${ac_cv_prog_RANLIB+:} false; then :
 5998:   $as_echo_n "(cached) " >&6
 5999: else
 6000:   if test -n "$RANLIB"; then
 6001:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 6002: else
 6003: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6004: for as_dir in $PATH
 6005: do
 6006:   IFS=$as_save_IFS
 6007:   test -z "$as_dir" && as_dir=.
 6008:     for ac_exec_ext in '' $ac_executable_extensions; do
 6009:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 6010:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 6011:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 6012:     break 2
 6013:   fi
 6014: done
 6015:   done
 6016: IFS=$as_save_IFS
 6017: 
 6018: fi
 6019: fi
 6020: RANLIB=$ac_cv_prog_RANLIB
 6021: if test -n "$RANLIB"; then
 6022:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 6023: $as_echo "$RANLIB" >&6; }
 6024: else
 6025:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6026: $as_echo "no" >&6; }
 6027: fi
 6028: 
 6029: 
 6030: fi
 6031: if test -z "$ac_cv_prog_RANLIB"; then
 6032:   ac_ct_RANLIB=$RANLIB
 6033:   # Extract the first word of "ranlib", so it can be a program name with args.
 6034: set dummy ranlib; ac_word=$2
 6035: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 6036: $as_echo_n "checking for $ac_word... " >&6; }
 6037: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 6038:   $as_echo_n "(cached) " >&6
 6039: else
 6040:   if test -n "$ac_ct_RANLIB"; then
 6041:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 6042: else
 6043: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6044: for as_dir in $PATH
 6045: do
 6046:   IFS=$as_save_IFS
 6047:   test -z "$as_dir" && as_dir=.
 6048:     for ac_exec_ext in '' $ac_executable_extensions; do
 6049:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 6050:     ac_cv_prog_ac_ct_RANLIB="ranlib"
 6051:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 6052:     break 2
 6053:   fi
 6054: done
 6055:   done
 6056: IFS=$as_save_IFS
 6057: 
 6058: fi
 6059: fi
 6060: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 6061: if test -n "$ac_ct_RANLIB"; then
 6062:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 6063: $as_echo "$ac_ct_RANLIB" >&6; }
 6064: else
 6065:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6066: $as_echo "no" >&6; }
 6067: fi
 6068: 
 6069:   if test "x$ac_ct_RANLIB" = x; then
 6070:     RANLIB=":"
 6071:   else
 6072:     case $cross_compiling:$ac_tool_warned in
 6073: yes:)
 6074: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 6075: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 6076: ac_tool_warned=yes ;;
 6077: esac
 6078:     RANLIB=$ac_ct_RANLIB
 6079:   fi
 6080: else
 6081:   RANLIB="$ac_cv_prog_RANLIB"
 6082: fi
 6083: 
 6084: if test X"$AR" = X"false"; then
 6085:     as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
 6086: fi
 6087: 
 6088: if test "x$ac_cv_prog_cc_c89" = "xno"; then
 6089:     as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
 6090: fi
 6091: 
 6092: if test "$enable_static" = "no"; then
 6093:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
 6094: $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
 6095:     enable_static=yes
 6096: fi
 6097: 
 6098: ac_aux_dir=
 6099: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 6100:   if test -f "$ac_dir/install-sh"; then
 6101:     ac_aux_dir=$ac_dir
 6102:     ac_install_sh="$ac_aux_dir/install-sh -c"
 6103:     break
 6104:   elif test -f "$ac_dir/install.sh"; then
 6105:     ac_aux_dir=$ac_dir
 6106:     ac_install_sh="$ac_aux_dir/install.sh -c"
 6107:     break
 6108:   elif test -f "$ac_dir/shtool"; then
 6109:     ac_aux_dir=$ac_dir
 6110:     ac_install_sh="$ac_aux_dir/shtool install -c"
 6111:     break
 6112:   fi
 6113: done
 6114: if test -z "$ac_aux_dir"; then
 6115:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 6116: fi
 6117: 
 6118: # These three variables are undocumented and unsupported,
 6119: # and are intended to be withdrawn in a future Autoconf release.
 6120: # They can cause serious problems if a builder's source tree is in a directory
 6121: # whose full name contains unusual characters.
 6122: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 6123: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 6124: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 6125: 
 6126: 
 6127: # Make sure we can run config.sub.
 6128: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 6129:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 6130: 
 6131: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 6132: $as_echo_n "checking build system type... " >&6; }
 6133: if ${ac_cv_build+:} false; then :
 6134:   $as_echo_n "(cached) " >&6
 6135: else
 6136:   ac_build_alias=$build_alias
 6137: test "x$ac_build_alias" = x &&
 6138:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 6139: test "x$ac_build_alias" = x &&
 6140:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 6141: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 6142:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 6143: 
 6144: fi
 6145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 6146: $as_echo "$ac_cv_build" >&6; }
 6147: case $ac_cv_build in
 6148: *-*-*) ;;
 6149: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 6150: esac
 6151: build=$ac_cv_build
 6152: ac_save_IFS=$IFS; IFS='-'
 6153: set x $ac_cv_build
 6154: shift
 6155: build_cpu=$1
 6156: build_vendor=$2
 6157: shift; shift
 6158: # Remember, the first character of IFS is used to create $*,
 6159: # except with old shells:
 6160: build_os=$*
 6161: IFS=$ac_save_IFS
 6162: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 6163: 
 6164: 
 6165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 6166: $as_echo_n "checking host system type... " >&6; }
 6167: if ${ac_cv_host+:} false; then :
 6168:   $as_echo_n "(cached) " >&6
 6169: else
 6170:   if test "x$host_alias" = x; then
 6171:   ac_cv_host=$ac_cv_build
 6172: else
 6173:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 6174:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 6175: fi
 6176: 
 6177: fi
 6178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 6179: $as_echo "$ac_cv_host" >&6; }
 6180: case $ac_cv_host in
 6181: *-*-*) ;;
 6182: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 6183: esac
 6184: host=$ac_cv_host
 6185: ac_save_IFS=$IFS; IFS='-'
 6186: set x $ac_cv_host
 6187: shift
 6188: host_cpu=$1
 6189: host_vendor=$2
 6190: shift; shift
 6191: # Remember, the first character of IFS is used to create $*,
 6192: # except with old shells:
 6193: host_os=$*
 6194: IFS=$ac_save_IFS
 6195: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 6196: 
 6197: 
 6198: 
 6199: 
 6200: case `pwd` in
 6201:   *\ * | *\	*)
 6202:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 6203: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 6204: esac
 6205: 
 6206: 
 6207: 
 6208: macro_version='2.4.2'
 6209: macro_revision='1.3337'
 6210: 
 6211: 
 6212: 
 6213: 
 6214: 
 6215: 
 6216: 
 6217: 
 6218: 
 6219: 
 6220: 
 6221: 
 6222: 
 6223: ltmain="$ac_aux_dir/ltmain.sh"
 6224: 
 6225: # Backslashify metacharacters that are still active within
 6226: # double-quoted strings.
 6227: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 6228: 
 6229: # Same as above, but do not quote variable references.
 6230: double_quote_subst='s/\(["`\\]\)/\\\1/g'
 6231: 
 6232: # Sed substitution to delay expansion of an escaped shell variable in a
 6233: # double_quote_subst'ed string.
 6234: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 6235: 
 6236: # Sed substitution to delay expansion of an escaped single quote.
 6237: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 6238: 
 6239: # Sed substitution to avoid accidental globbing in evaled expressions
 6240: no_glob_subst='s/\*/\\\*/g'
 6241: 
 6242: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 6243: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 6244: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 6245: 
 6246: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 6247: $as_echo_n "checking how to print strings... " >&6; }
 6248: # Test print first, because it will be a builtin if present.
 6249: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 6250:    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 6251:   ECHO='print -r --'
 6252: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 6253:   ECHO='printf %s\n'
 6254: else
 6255:   # Use this function as a fallback that always works.
 6256:   func_fallback_echo ()
 6257:   {
 6258:     eval 'cat <<_LTECHO_EOF
 6259: $1
 6260: _LTECHO_EOF'
 6261:   }
 6262:   ECHO='func_fallback_echo'
 6263: fi
 6264: 
 6265: # func_echo_all arg...
 6266: # Invoke $ECHO with all args, space-separated.
 6267: func_echo_all ()
 6268: {
 6269:     $ECHO ""
 6270: }
 6271: 
 6272: case "$ECHO" in
 6273:   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 6274: $as_echo "printf" >&6; } ;;
 6275:   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 6276: $as_echo "print -r" >&6; } ;;
 6277:   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 6278: $as_echo "cat" >&6; } ;;
 6279: esac
 6280: 
 6281: 
 6282: 
 6283: 
 6284: 
 6285: 
 6286: 
 6287: 
 6288: 
 6289: 
 6290: 
 6291: 
 6292: 
 6293: 
 6294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 6295: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
 6296: if ${ac_cv_path_SED+:} false; then :
 6297:   $as_echo_n "(cached) " >&6
 6298: else
 6299:             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 6300:      for ac_i in 1 2 3 4 5 6 7; do
 6301:        ac_script="$ac_script$as_nl$ac_script"
 6302:      done
 6303:      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 6304:      { ac_script=; unset ac_script;}
 6305:      if test -z "$SED"; then
 6306:   ac_path_SED_found=false
 6307:   # Loop through the user's path and test for each of PROGNAME-LIST
 6308:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6309: for as_dir in $PATH
 6310: do
 6311:   IFS=$as_save_IFS
 6312:   test -z "$as_dir" && as_dir=.
 6313:     for ac_prog in sed gsed; do
 6314:     for ac_exec_ext in '' $ac_executable_extensions; do
 6315:       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 6316:       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 6317: # Check for GNU ac_path_SED and select it if it is found.
 6318:   # Check for GNU $ac_path_SED
 6319: case `"$ac_path_SED" --version 2>&1` in
 6320: *GNU*)
 6321:   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 6322: *)
 6323:   ac_count=0
 6324:   $as_echo_n 0123456789 >"conftest.in"
 6325:   while :
 6326:   do
 6327:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 6328:     mv "conftest.tmp" "conftest.in"
 6329:     cp "conftest.in" "conftest.nl"
 6330:     $as_echo '' >> "conftest.nl"
 6331:     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 6332:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 6333:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 6334:     if test $ac_count -gt ${ac_path_SED_max-0}; then
 6335:       # Best one so far, save it but keep looking for a better one
 6336:       ac_cv_path_SED="$ac_path_SED"
 6337:       ac_path_SED_max=$ac_count
 6338:     fi
 6339:     # 10*(2^10) chars as input seems more than enough
 6340:     test $ac_count -gt 10 && break
 6341:   done
 6342:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 6343: esac
 6344: 
 6345:       $ac_path_SED_found && break 3
 6346:     done
 6347:   done
 6348:   done
 6349: IFS=$as_save_IFS
 6350:   if test -z "$ac_cv_path_SED"; then
 6351:     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 6352:   fi
 6353: else
 6354:   ac_cv_path_SED=$SED
 6355: fi
 6356: 
 6357: fi
 6358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 6359: $as_echo "$ac_cv_path_SED" >&6; }
 6360:  SED="$ac_cv_path_SED"
 6361:   rm -f conftest.sed
 6362: 
 6363: test -z "$SED" && SED=sed
 6364: Xsed="$SED -e 1s/^X//"
 6365: 
 6366: 
 6367: 
 6368: 
 6369: 
 6370: 
 6371: 
 6372: 
 6373: 
 6374: 
 6375: 
 6376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 6377: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 6378: if ${ac_cv_path_GREP+:} false; then :
 6379:   $as_echo_n "(cached) " >&6
 6380: else
 6381:   if test -z "$GREP"; then
 6382:   ac_path_GREP_found=false
 6383:   # Loop through the user's path and test for each of PROGNAME-LIST
 6384:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6385: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 6386: do
 6387:   IFS=$as_save_IFS
 6388:   test -z "$as_dir" && as_dir=.
 6389:     for ac_prog in grep ggrep; do
 6390:     for ac_exec_ext in '' $ac_executable_extensions; do
 6391:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 6392:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 6393: # Check for GNU ac_path_GREP and select it if it is found.
 6394:   # Check for GNU $ac_path_GREP
 6395: case `"$ac_path_GREP" --version 2>&1` in
 6396: *GNU*)
 6397:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 6398: *)
 6399:   ac_count=0
 6400:   $as_echo_n 0123456789 >"conftest.in"
 6401:   while :
 6402:   do
 6403:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 6404:     mv "conftest.tmp" "conftest.in"
 6405:     cp "conftest.in" "conftest.nl"
 6406:     $as_echo 'GREP' >> "conftest.nl"
 6407:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 6408:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 6409:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 6410:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 6411:       # Best one so far, save it but keep looking for a better one
 6412:       ac_cv_path_GREP="$ac_path_GREP"
 6413:       ac_path_GREP_max=$ac_count
 6414:     fi
 6415:     # 10*(2^10) chars as input seems more than enough
 6416:     test $ac_count -gt 10 && break
 6417:   done
 6418:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 6419: esac
 6420: 
 6421:       $ac_path_GREP_found && break 3
 6422:     done
 6423:   done
 6424:   done
 6425: IFS=$as_save_IFS
 6426:   if test -z "$ac_cv_path_GREP"; then
 6427:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 6428:   fi
 6429: else
 6430:   ac_cv_path_GREP=$GREP
 6431: fi
 6432: 
 6433: fi
 6434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 6435: $as_echo "$ac_cv_path_GREP" >&6; }
 6436:  GREP="$ac_cv_path_GREP"
 6437: 
 6438: 
 6439: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 6440: $as_echo_n "checking for egrep... " >&6; }
 6441: if ${ac_cv_path_EGREP+:} false; then :
 6442:   $as_echo_n "(cached) " >&6
 6443: else
 6444:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 6445:    then ac_cv_path_EGREP="$GREP -E"
 6446:    else
 6447:      if test -z "$EGREP"; then
 6448:   ac_path_EGREP_found=false
 6449:   # Loop through the user's path and test for each of PROGNAME-LIST
 6450:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6451: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 6452: do
 6453:   IFS=$as_save_IFS
 6454:   test -z "$as_dir" && as_dir=.
 6455:     for ac_prog in egrep; do
 6456:     for ac_exec_ext in '' $ac_executable_extensions; do
 6457:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 6458:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 6459: # Check for GNU ac_path_EGREP and select it if it is found.
 6460:   # Check for GNU $ac_path_EGREP
 6461: case `"$ac_path_EGREP" --version 2>&1` in
 6462: *GNU*)
 6463:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 6464: *)
 6465:   ac_count=0
 6466:   $as_echo_n 0123456789 >"conftest.in"
 6467:   while :
 6468:   do
 6469:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 6470:     mv "conftest.tmp" "conftest.in"
 6471:     cp "conftest.in" "conftest.nl"
 6472:     $as_echo 'EGREP' >> "conftest.nl"
 6473:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 6474:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 6475:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 6476:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 6477:       # Best one so far, save it but keep looking for a better one
 6478:       ac_cv_path_EGREP="$ac_path_EGREP"
 6479:       ac_path_EGREP_max=$ac_count
 6480:     fi
 6481:     # 10*(2^10) chars as input seems more than enough
 6482:     test $ac_count -gt 10 && break
 6483:   done
 6484:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 6485: esac
 6486: 
 6487:       $ac_path_EGREP_found && break 3
 6488:     done
 6489:   done
 6490:   done
 6491: IFS=$as_save_IFS
 6492:   if test -z "$ac_cv_path_EGREP"; then
 6493:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 6494:   fi
 6495: else
 6496:   ac_cv_path_EGREP=$EGREP
 6497: fi
 6498: 
 6499:    fi
 6500: fi
 6501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 6502: $as_echo "$ac_cv_path_EGREP" >&6; }
 6503:  EGREP="$ac_cv_path_EGREP"
 6504: 
 6505: 
 6506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 6507: $as_echo_n "checking for fgrep... " >&6; }
 6508: if ${ac_cv_path_FGREP+:} false; then :
 6509:   $as_echo_n "(cached) " >&6
 6510: else
 6511:   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 6512:    then ac_cv_path_FGREP="$GREP -F"
 6513:    else
 6514:      if test -z "$FGREP"; then
 6515:   ac_path_FGREP_found=false
 6516:   # Loop through the user's path and test for each of PROGNAME-LIST
 6517:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6518: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 6519: do
 6520:   IFS=$as_save_IFS
 6521:   test -z "$as_dir" && as_dir=.
 6522:     for ac_prog in fgrep; do
 6523:     for ac_exec_ext in '' $ac_executable_extensions; do
 6524:       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 6525:       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 6526: # Check for GNU ac_path_FGREP and select it if it is found.
 6527:   # Check for GNU $ac_path_FGREP
 6528: case `"$ac_path_FGREP" --version 2>&1` in
 6529: *GNU*)
 6530:   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 6531: *)
 6532:   ac_count=0
 6533:   $as_echo_n 0123456789 >"conftest.in"
 6534:   while :
 6535:   do
 6536:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 6537:     mv "conftest.tmp" "conftest.in"
 6538:     cp "conftest.in" "conftest.nl"
 6539:     $as_echo 'FGREP' >> "conftest.nl"
 6540:     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 6541:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 6542:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 6543:     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 6544:       # Best one so far, save it but keep looking for a better one
 6545:       ac_cv_path_FGREP="$ac_path_FGREP"
 6546:       ac_path_FGREP_max=$ac_count
 6547:     fi
 6548:     # 10*(2^10) chars as input seems more than enough
 6549:     test $ac_count -gt 10 && break
 6550:   done
 6551:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 6552: esac
 6553: 
 6554:       $ac_path_FGREP_found && break 3
 6555:     done
 6556:   done
 6557:   done
 6558: IFS=$as_save_IFS
 6559:   if test -z "$ac_cv_path_FGREP"; then
 6560:     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 6561:   fi
 6562: else
 6563:   ac_cv_path_FGREP=$FGREP
 6564: fi
 6565: 
 6566:    fi
 6567: fi
 6568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 6569: $as_echo "$ac_cv_path_FGREP" >&6; }
 6570:  FGREP="$ac_cv_path_FGREP"
 6571: 
 6572: 
 6573: test -z "$GREP" && GREP=grep
 6574: 
 6575: 
 6576: 
 6577: 
 6578: 
 6579: 
 6580: 
 6581: 
 6582: 
 6583: 
 6584: 
 6585: 
 6586: 
 6587: 
 6588: 
 6589: 
 6590: 
 6591: 
 6592: 
 6593: # Check whether --with-gnu-ld was given.
 6594: if test "${with_gnu_ld+set}" = set; then :
 6595:   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 6596: else
 6597:   with_gnu_ld=no
 6598: fi
 6599: 
 6600: ac_prog=ld
 6601: if test "$GCC" = yes; then
 6602:   # Check if gcc -print-prog-name=ld gives a path.
 6603:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 6604: $as_echo_n "checking for ld used by $CC... " >&6; }
 6605:   case $host in
 6606:   *-*-mingw*)
 6607:     # gcc leaves a trailing carriage return which upsets mingw
 6608:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 6609:   *)
 6610:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 6611:   esac
 6612:   case $ac_prog in
 6613:     # Accept absolute paths.
 6614:     [\\/]* | ?:[\\/]*)
 6615:       re_direlt='/[^/][^/]*/\.\./'
 6616:       # Canonicalize the pathname of ld
 6617:       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 6618:       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 6619: 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 6620:       done
 6621:       test -z "$LD" && LD="$ac_prog"
 6622:       ;;
 6623:   "")
 6624:     # If it fails, then pretend we aren't using GCC.
 6625:     ac_prog=ld
 6626:     ;;
 6627:   *)
 6628:     # If it is relative, then search for the first ld in PATH.
 6629:     with_gnu_ld=unknown
 6630:     ;;
 6631:   esac
 6632: elif test "$with_gnu_ld" = yes; then
 6633:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 6634: $as_echo_n "checking for GNU ld... " >&6; }
 6635: else
 6636:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 6637: $as_echo_n "checking for non-GNU ld... " >&6; }
 6638: fi
 6639: if ${lt_cv_path_LD+:} false; then :
 6640:   $as_echo_n "(cached) " >&6
 6641: else
 6642:   if test -z "$LD"; then
 6643:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 6644:   for ac_dir in $PATH; do
 6645:     IFS="$lt_save_ifs"
 6646:     test -z "$ac_dir" && ac_dir=.
 6647:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 6648:       lt_cv_path_LD="$ac_dir/$ac_prog"
 6649:       # Check to see if the program is GNU ld.  I'd rather use --version,
 6650:       # but apparently some variants of GNU ld only accept -v.
 6651:       # Break only if it was the GNU/non-GNU ld that we prefer.
 6652:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 6653:       *GNU* | *'with BFD'*)
 6654: 	test "$with_gnu_ld" != no && break
 6655: 	;;
 6656:       *)
 6657: 	test "$with_gnu_ld" != yes && break
 6658: 	;;
 6659:       esac
 6660:     fi
 6661:   done
 6662:   IFS="$lt_save_ifs"
 6663: else
 6664:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
 6665: fi
 6666: fi
 6667: 
 6668: LD="$lt_cv_path_LD"
 6669: if test -n "$LD"; then
 6670:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 6671: $as_echo "$LD" >&6; }
 6672: else
 6673:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6674: $as_echo "no" >&6; }
 6675: fi
 6676: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 6677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 6678: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 6679: if ${lt_cv_prog_gnu_ld+:} false; then :
 6680:   $as_echo_n "(cached) " >&6
 6681: else
 6682:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
 6683: case `$LD -v 2>&1 </dev/null` in
 6684: *GNU* | *'with BFD'*)
 6685:   lt_cv_prog_gnu_ld=yes
 6686:   ;;
 6687: *)
 6688:   lt_cv_prog_gnu_ld=no
 6689:   ;;
 6690: esac
 6691: fi
 6692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 6693: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
 6694: with_gnu_ld=$lt_cv_prog_gnu_ld
 6695: 
 6696: 
 6697: 
 6698: 
 6699: 
 6700: 
 6701: 
 6702: 
 6703: 
 6704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 6705: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 6706: if ${lt_cv_path_NM+:} false; then :
 6707:   $as_echo_n "(cached) " >&6
 6708: else
 6709:   if test -n "$NM"; then
 6710:   # Let the user override the test.
 6711:   lt_cv_path_NM="$NM"
 6712: else
 6713:   lt_nm_to_check="${ac_tool_prefix}nm"
 6714:   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 6715:     lt_nm_to_check="$lt_nm_to_check nm"
 6716:   fi
 6717:   for lt_tmp_nm in $lt_nm_to_check; do
 6718:     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 6719:     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 6720:       IFS="$lt_save_ifs"
 6721:       test -z "$ac_dir" && ac_dir=.
 6722:       tmp_nm="$ac_dir/$lt_tmp_nm"
 6723:       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 6724: 	# Check to see if the nm accepts a BSD-compat flag.
 6725: 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
 6726: 	#   nm: unknown option "B" ignored
 6727: 	# Tru64's nm complains that /dev/null is an invalid object file
 6728: 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 6729: 	*/dev/null* | *'Invalid file or object type'*)
 6730: 	  lt_cv_path_NM="$tmp_nm -B"
 6731: 	  break
 6732: 	  ;;
 6733: 	*)
 6734: 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 6735: 	  */dev/null*)
 6736: 	    lt_cv_path_NM="$tmp_nm -p"
 6737: 	    break
 6738: 	    ;;
 6739: 	  *)
 6740: 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 6741: 	    continue # so that we can try to find one that supports BSD flags
 6742: 	    ;;
 6743: 	  esac
 6744: 	  ;;
 6745: 	esac
 6746:       fi
 6747:     done
 6748:     IFS="$lt_save_ifs"
 6749:   done
 6750:   : ${lt_cv_path_NM=no}
 6751: fi
 6752: fi
 6753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 6754: $as_echo "$lt_cv_path_NM" >&6; }
 6755: if test "$lt_cv_path_NM" != "no"; then
 6756:   NM="$lt_cv_path_NM"
 6757: else
 6758:   # Didn't find any BSD compatible name lister, look for dumpbin.
 6759:   if test -n "$DUMPBIN"; then :
 6760:     # Let the user override the test.
 6761:   else
 6762:     if test -n "$ac_tool_prefix"; then
 6763:   for ac_prog in dumpbin "link -dump"
 6764:   do
 6765:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 6766: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 6767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 6768: $as_echo_n "checking for $ac_word... " >&6; }
 6769: if ${ac_cv_prog_DUMPBIN+:} false; then :
 6770:   $as_echo_n "(cached) " >&6
 6771: else
 6772:   if test -n "$DUMPBIN"; then
 6773:   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 6774: else
 6775: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6776: for as_dir in $PATH
 6777: do
 6778:   IFS=$as_save_IFS
 6779:   test -z "$as_dir" && as_dir=.
 6780:     for ac_exec_ext in '' $ac_executable_extensions; do
 6781:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 6782:     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 6783:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 6784:     break 2
 6785:   fi
 6786: done
 6787:   done
 6788: IFS=$as_save_IFS
 6789: 
 6790: fi
 6791: fi
 6792: DUMPBIN=$ac_cv_prog_DUMPBIN
 6793: if test -n "$DUMPBIN"; then
 6794:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 6795: $as_echo "$DUMPBIN" >&6; }
 6796: else
 6797:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6798: $as_echo "no" >&6; }
 6799: fi
 6800: 
 6801: 
 6802:     test -n "$DUMPBIN" && break
 6803:   done
 6804: fi
 6805: if test -z "$DUMPBIN"; then
 6806:   ac_ct_DUMPBIN=$DUMPBIN
 6807:   for ac_prog in dumpbin "link -dump"
 6808: do
 6809:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 6810: set dummy $ac_prog; ac_word=$2
 6811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 6812: $as_echo_n "checking for $ac_word... " >&6; }
 6813: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 6814:   $as_echo_n "(cached) " >&6
 6815: else
 6816:   if test -n "$ac_ct_DUMPBIN"; then
 6817:   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 6818: else
 6819: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6820: for as_dir in $PATH
 6821: do
 6822:   IFS=$as_save_IFS
 6823:   test -z "$as_dir" && as_dir=.
 6824:     for ac_exec_ext in '' $ac_executable_extensions; do
 6825:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 6826:     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 6827:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 6828:     break 2
 6829:   fi
 6830: done
 6831:   done
 6832: IFS=$as_save_IFS
 6833: 
 6834: fi
 6835: fi
 6836: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 6837: if test -n "$ac_ct_DUMPBIN"; then
 6838:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 6839: $as_echo "$ac_ct_DUMPBIN" >&6; }
 6840: else
 6841:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6842: $as_echo "no" >&6; }
 6843: fi
 6844: 
 6845: 
 6846:   test -n "$ac_ct_DUMPBIN" && break
 6847: done
 6848: 
 6849:   if test "x$ac_ct_DUMPBIN" = x; then
 6850:     DUMPBIN=":"
 6851:   else
 6852:     case $cross_compiling:$ac_tool_warned in
 6853: yes:)
 6854: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 6855: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 6856: ac_tool_warned=yes ;;
 6857: esac
 6858:     DUMPBIN=$ac_ct_DUMPBIN
 6859:   fi
 6860: fi
 6861: 
 6862:     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 6863:     *COFF*)
 6864:       DUMPBIN="$DUMPBIN -symbols"
 6865:       ;;
 6866:     *)
 6867:       DUMPBIN=:
 6868:       ;;
 6869:     esac
 6870:   fi
 6871: 
 6872:   if test "$DUMPBIN" != ":"; then
 6873:     NM="$DUMPBIN"
 6874:   fi
 6875: fi
 6876: test -z "$NM" && NM=nm
 6877: 
 6878: 
 6879: 
 6880: 
 6881: 
 6882: 
 6883: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 6884: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
 6885: if ${lt_cv_nm_interface+:} false; then :
 6886:   $as_echo_n "(cached) " >&6
 6887: else
 6888:   lt_cv_nm_interface="BSD nm"
 6889:   echo "int some_variable = 0;" > conftest.$ac_ext
 6890:   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 6891:   (eval "$ac_compile" 2>conftest.err)
 6892:   cat conftest.err >&5
 6893:   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 6894:   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 6895:   cat conftest.err >&5
 6896:   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 6897:   cat conftest.out >&5
 6898:   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 6899:     lt_cv_nm_interface="MS dumpbin"
 6900:   fi
 6901:   rm -f conftest*
 6902: fi
 6903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 6904: $as_echo "$lt_cv_nm_interface" >&6; }
 6905: 
 6906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 6907: $as_echo_n "checking whether ln -s works... " >&6; }
 6908: LN_S=$as_ln_s
 6909: if test "$LN_S" = "ln -s"; then
 6910:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 6911: $as_echo "yes" >&6; }
 6912: else
 6913:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 6914: $as_echo "no, using $LN_S" >&6; }
 6915: fi
 6916: 
 6917: # find the maximum length of command line arguments
 6918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 6919: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
 6920: if ${lt_cv_sys_max_cmd_len+:} false; then :
 6921:   $as_echo_n "(cached) " >&6
 6922: else
 6923:     i=0
 6924:   teststring="ABCD"
 6925: 
 6926:   case $build_os in
 6927:   msdosdjgpp*)
 6928:     # On DJGPP, this test can blow up pretty badly due to problems in libc
 6929:     # (any single argument exceeding 2000 bytes causes a buffer overrun
 6930:     # during glob expansion).  Even if it were fixed, the result of this
 6931:     # check would be larger than it should be.
 6932:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 6933:     ;;
 6934: 
 6935:   gnu*)
 6936:     # Under GNU Hurd, this test is not required because there is
 6937:     # no limit to the length of command line arguments.
 6938:     # Libtool will interpret -1 as no limit whatsoever
 6939:     lt_cv_sys_max_cmd_len=-1;
 6940:     ;;
 6941: 
 6942:   cygwin* | mingw* | cegcc*)
 6943:     # On Win9x/ME, this test blows up -- it succeeds, but takes
 6944:     # about 5 minutes as the teststring grows exponentially.
 6945:     # Worse, since 9x/ME are not pre-emptively multitasking,
 6946:     # you end up with a "frozen" computer, even though with patience
 6947:     # the test eventually succeeds (with a max line length of 256k).
 6948:     # Instead, let's just punt: use the minimum linelength reported by
 6949:     # all of the supported platforms: 8192 (on NT/2K/XP).
 6950:     lt_cv_sys_max_cmd_len=8192;
 6951:     ;;
 6952: 
 6953:   mint*)
 6954:     # On MiNT this can take a long time and run out of memory.
 6955:     lt_cv_sys_max_cmd_len=8192;
 6956:     ;;
 6957: 
 6958:   amigaos*)
 6959:     # On AmigaOS with pdksh, this test takes hours, literally.
 6960:     # So we just punt and use a minimum line length of 8192.
 6961:     lt_cv_sys_max_cmd_len=8192;
 6962:     ;;
 6963: 
 6964:   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 6965:     # This has been around since 386BSD, at least.  Likely further.
 6966:     if test -x /sbin/sysctl; then
 6967:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 6968:     elif test -x /usr/sbin/sysctl; then
 6969:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 6970:     else
 6971:       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
 6972:     fi
 6973:     # And add a safety zone
 6974:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 6975:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 6976:     ;;
 6977: 
 6978:   interix*)
 6979:     # We know the value 262144 and hardcode it with a safety zone (like BSD)
 6980:     lt_cv_sys_max_cmd_len=196608
 6981:     ;;
 6982: 
 6983:   os2*)
 6984:     # The test takes a long time on OS/2.
 6985:     lt_cv_sys_max_cmd_len=8192
 6986:     ;;
 6987: 
 6988:   osf*)
 6989:     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 6990:     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 6991:     # nice to cause kernel panics so lets avoid the loop below.
 6992:     # First set a reasonable default.
 6993:     lt_cv_sys_max_cmd_len=16384
 6994:     #
 6995:     if test -x /sbin/sysconfig; then
 6996:       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 6997:         *1*) lt_cv_sys_max_cmd_len=-1 ;;
 6998:       esac
 6999:     fi
 7000:     ;;
 7001:   sco3.2v5*)
 7002:     lt_cv_sys_max_cmd_len=102400
 7003:     ;;
 7004:   sysv5* | sco5v6* | sysv4.2uw2*)
 7005:     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 7006:     if test -n "$kargmax"; then
 7007:       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
 7008:     else
 7009:       lt_cv_sys_max_cmd_len=32768
 7010:     fi
 7011:     ;;
 7012:   *)
 7013:     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 7014:     if test -n "$lt_cv_sys_max_cmd_len"; then
 7015:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 7016:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 7017:     else
 7018:       # Make teststring a little bigger before we do anything with it.
 7019:       # a 1K string should be a reasonable start.
 7020:       for i in 1 2 3 4 5 6 7 8 ; do
 7021:         teststring=$teststring$teststring
 7022:       done
 7023:       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 7024:       # If test is not a shell built-in, we'll probably end up computing a
 7025:       # maximum length that is only half of the actual maximum length, but
 7026:       # we can't tell.
 7027:       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 7028: 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 7029: 	      test $i != 17 # 1/2 MB should be enough
 7030:       do
 7031:         i=`expr $i + 1`
 7032:         teststring=$teststring$teststring
 7033:       done
 7034:       # Only check the string length outside the loop.
 7035:       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 7036:       teststring=
 7037:       # Add a significant safety factor because C++ compilers can tack on
 7038:       # massive amounts of additional arguments before passing them to the
 7039:       # linker.  It appears as though 1/2 is a usable value.
 7040:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 7041:     fi
 7042:     ;;
 7043:   esac
 7044: 
 7045: fi
 7046: 
 7047: if test -n $lt_cv_sys_max_cmd_len ; then
 7048:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 7049: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 7050: else
 7051:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 7052: $as_echo "none" >&6; }
 7053: fi
 7054: max_cmd_len=$lt_cv_sys_max_cmd_len
 7055: 
 7056: 
 7057: 
 7058: 
 7059: 
 7060: 
 7061: : ${CP="cp -f"}
 7062: : ${MV="mv -f"}
 7063: : ${RM="rm -f"}
 7064: 
 7065: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 7066: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 7067: # Try some XSI features
 7068: xsi_shell=no
 7069: ( _lt_dummy="a/b/c"
 7070:   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 7071:       = c,a/b,b/c, \
 7072:     && eval 'test $(( 1 + 1 )) -eq 2 \
 7073:     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 7074:   && xsi_shell=yes
 7075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 7076: $as_echo "$xsi_shell" >&6; }
 7077: 
 7078: 
 7079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 7080: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 7081: lt_shell_append=no
 7082: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 7083:     >/dev/null 2>&1 \
 7084:   && lt_shell_append=yes
 7085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 7086: $as_echo "$lt_shell_append" >&6; }
 7087: 
 7088: 
 7089: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 7090:   lt_unset=unset
 7091: else
 7092:   lt_unset=false
 7093: fi
 7094: 
 7095: 
 7096: 
 7097: 
 7098: 
 7099: # test EBCDIC or ASCII
 7100: case `echo X|tr X '\101'` in
 7101:  A) # ASCII based system
 7102:     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 7103:   lt_SP2NL='tr \040 \012'
 7104:   lt_NL2SP='tr \015\012 \040\040'
 7105:   ;;
 7106:  *) # EBCDIC based system
 7107:   lt_SP2NL='tr \100 \n'
 7108:   lt_NL2SP='tr \r\n \100\100'
 7109:   ;;
 7110: esac
 7111: 
 7112: 
 7113: 
 7114: 
 7115: 
 7116: 
 7117: 
 7118: 
 7119: 
 7120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 7121: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 7122: if ${lt_cv_to_host_file_cmd+:} false; then :
 7123:   $as_echo_n "(cached) " >&6
 7124: else
 7125:   case $host in
 7126:   *-*-mingw* )
 7127:     case $build in
 7128:       *-*-mingw* ) # actually msys
 7129:         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 7130:         ;;
 7131:       *-*-cygwin* )
 7132:         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 7133:         ;;
 7134:       * ) # otherwise, assume *nix
 7135:         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 7136:         ;;
 7137:     esac
 7138:     ;;
 7139:   *-*-cygwin* )
 7140:     case $build in
 7141:       *-*-mingw* ) # actually msys
 7142:         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 7143:         ;;
 7144:       *-*-cygwin* )
 7145:         lt_cv_to_host_file_cmd=func_convert_file_noop
 7146:         ;;
 7147:       * ) # otherwise, assume *nix
 7148:         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 7149:         ;;
 7150:     esac
 7151:     ;;
 7152:   * ) # unhandled hosts (and "normal" native builds)
 7153:     lt_cv_to_host_file_cmd=func_convert_file_noop
 7154:     ;;
 7155: esac
 7156: 
 7157: fi
 7158: 
 7159: to_host_file_cmd=$lt_cv_to_host_file_cmd
 7160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 7161: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
 7162: 
 7163: 
 7164: 
 7165: 
 7166: 
 7167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 7168: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 7169: if ${lt_cv_to_tool_file_cmd+:} false; then :
 7170:   $as_echo_n "(cached) " >&6
 7171: else
 7172:   #assume ordinary cross tools, or native build.
 7173: lt_cv_to_tool_file_cmd=func_convert_file_noop
 7174: case $host in
 7175:   *-*-mingw* )
 7176:     case $build in
 7177:       *-*-mingw* ) # actually msys
 7178:         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 7179:         ;;
 7180:     esac
 7181:     ;;
 7182: esac
 7183: 
 7184: fi
 7185: 
 7186: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 7187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 7188: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 7189: 
 7190: 
 7191: 
 7192: 
 7193: 
 7194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 7195: $as_echo_n "checking for $LD option to reload object files... " >&6; }
 7196: if ${lt_cv_ld_reload_flag+:} false; then :
 7197:   $as_echo_n "(cached) " >&6
 7198: else
 7199:   lt_cv_ld_reload_flag='-r'
 7200: fi
 7201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 7202: $as_echo "$lt_cv_ld_reload_flag" >&6; }
 7203: reload_flag=$lt_cv_ld_reload_flag
 7204: case $reload_flag in
 7205: "" | " "*) ;;
 7206: *) reload_flag=" $reload_flag" ;;
 7207: esac
 7208: reload_cmds='$LD$reload_flag -o $output$reload_objs'
 7209: case $host_os in
 7210:   cygwin* | mingw* | pw32* | cegcc*)
 7211:     if test "$GCC" != yes; then
 7212:       reload_cmds=false
 7213:     fi
 7214:     ;;
 7215:   darwin*)
 7216:     if test "$GCC" = yes; then
 7217:       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 7218:     else
 7219:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
 7220:     fi
 7221:     ;;
 7222: esac
 7223: 
 7224: 
 7225: 
 7226: 
 7227: 
 7228: 
 7229: 
 7230: 
 7231: 
 7232: if test -n "$ac_tool_prefix"; then
 7233:   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 7234: set dummy ${ac_tool_prefix}objdump; ac_word=$2
 7235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7236: $as_echo_n "checking for $ac_word... " >&6; }
 7237: if ${ac_cv_prog_OBJDUMP+:} false; then :
 7238:   $as_echo_n "(cached) " >&6
 7239: else
 7240:   if test -n "$OBJDUMP"; then
 7241:   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 7242: else
 7243: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7244: for as_dir in $PATH
 7245: do
 7246:   IFS=$as_save_IFS
 7247:   test -z "$as_dir" && as_dir=.
 7248:     for ac_exec_ext in '' $ac_executable_extensions; do
 7249:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7250:     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 7251:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7252:     break 2
 7253:   fi
 7254: done
 7255:   done
 7256: IFS=$as_save_IFS
 7257: 
 7258: fi
 7259: fi
 7260: OBJDUMP=$ac_cv_prog_OBJDUMP
 7261: if test -n "$OBJDUMP"; then
 7262:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 7263: $as_echo "$OBJDUMP" >&6; }
 7264: else
 7265:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7266: $as_echo "no" >&6; }
 7267: fi
 7268: 
 7269: 
 7270: fi
 7271: if test -z "$ac_cv_prog_OBJDUMP"; then
 7272:   ac_ct_OBJDUMP=$OBJDUMP
 7273:   # Extract the first word of "objdump", so it can be a program name with args.
 7274: set dummy objdump; ac_word=$2
 7275: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7276: $as_echo_n "checking for $ac_word... " >&6; }
 7277: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 7278:   $as_echo_n "(cached) " >&6
 7279: else
 7280:   if test -n "$ac_ct_OBJDUMP"; then
 7281:   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 7282: else
 7283: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7284: for as_dir in $PATH
 7285: do
 7286:   IFS=$as_save_IFS
 7287:   test -z "$as_dir" && as_dir=.
 7288:     for ac_exec_ext in '' $ac_executable_extensions; do
 7289:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7290:     ac_cv_prog_ac_ct_OBJDUMP="objdump"
 7291:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7292:     break 2
 7293:   fi
 7294: done
 7295:   done
 7296: IFS=$as_save_IFS
 7297: 
 7298: fi
 7299: fi
 7300: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 7301: if test -n "$ac_ct_OBJDUMP"; then
 7302:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 7303: $as_echo "$ac_ct_OBJDUMP" >&6; }
 7304: else
 7305:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7306: $as_echo "no" >&6; }
 7307: fi
 7308: 
 7309:   if test "x$ac_ct_OBJDUMP" = x; then
 7310:     OBJDUMP="false"
 7311:   else
 7312:     case $cross_compiling:$ac_tool_warned in
 7313: yes:)
 7314: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 7315: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 7316: ac_tool_warned=yes ;;
 7317: esac
 7318:     OBJDUMP=$ac_ct_OBJDUMP
 7319:   fi
 7320: else
 7321:   OBJDUMP="$ac_cv_prog_OBJDUMP"
 7322: fi
 7323: 
 7324: test -z "$OBJDUMP" && OBJDUMP=objdump
 7325: 
 7326: 
 7327: 
 7328: 
 7329: 
 7330: 
 7331: 
 7332: 
 7333: 
 7334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 7335: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
 7336: if ${lt_cv_deplibs_check_method+:} false; then :
 7337:   $as_echo_n "(cached) " >&6
 7338: else
 7339:   lt_cv_file_magic_cmd='$MAGIC_CMD'
 7340: lt_cv_file_magic_test_file=
 7341: lt_cv_deplibs_check_method='unknown'
 7342: # Need to set the preceding variable on all platforms that support
 7343: # interlibrary dependencies.
 7344: # 'none' -- dependencies not supported.
 7345: # `unknown' -- same as none, but documents that we really don't know.
 7346: # 'pass_all' -- all dependencies passed with no checks.
 7347: # 'test_compile' -- check by making test program.
 7348: # 'file_magic [[regex]]' -- check by looking for files in library path
 7349: # which responds to the $file_magic_cmd with a given extended regex.
 7350: # If you have `file' or equivalent on your system and you're not sure
 7351: # whether `pass_all' will *always* work, you probably want this one.
 7352: 
 7353: case $host_os in
 7354: aix[4-9]*)
 7355:   lt_cv_deplibs_check_method=pass_all
 7356:   ;;
 7357: 
 7358: beos*)
 7359:   lt_cv_deplibs_check_method=pass_all
 7360:   ;;
 7361: 
 7362: bsdi[45]*)
 7363:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 7364:   lt_cv_file_magic_cmd='/usr/bin/file -L'
 7365:   lt_cv_file_magic_test_file=/shlib/libc.so
 7366:   ;;
 7367: 
 7368: cygwin*)
 7369:   # func_win32_libid is a shell function defined in ltmain.sh
 7370:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 7371:   lt_cv_file_magic_cmd='func_win32_libid'
 7372:   ;;
 7373: 
 7374: mingw* | pw32*)
 7375:   # Base MSYS/MinGW do not provide the 'file' command needed by
 7376:   # func_win32_libid shell function, so use a weaker test based on 'objdump',
 7377:   # unless we find 'file', for example because we are cross-compiling.
 7378:   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 7379:   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 7380:     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 7381:     lt_cv_file_magic_cmd='func_win32_libid'
 7382:   else
 7383:     # Keep this pattern in sync with the one in func_win32_libid.
 7384:     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 7385:     lt_cv_file_magic_cmd='$OBJDUMP -f'
 7386:   fi
 7387:   ;;
 7388: 
 7389: cegcc*)
 7390:   # use the weaker test based on 'objdump'. See mingw*.
 7391:   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 7392:   lt_cv_file_magic_cmd='$OBJDUMP -f'
 7393:   ;;
 7394: 
 7395: darwin* | rhapsody*)
 7396:   lt_cv_deplibs_check_method=pass_all
 7397:   ;;
 7398: 
 7399: freebsd* | dragonfly*)
 7400:   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 7401:     case $host_cpu in
 7402:     i*86 )
 7403:       # Not sure whether the presence of OpenBSD here was a mistake.
 7404:       # Let's accept both of them until this is cleared up.
 7405:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 7406:       lt_cv_file_magic_cmd=/usr/bin/file
 7407:       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 7408:       ;;
 7409:     esac
 7410:   else
 7411:     lt_cv_deplibs_check_method=pass_all
 7412:   fi
 7413:   ;;
 7414: 
 7415: gnu*)
 7416:   lt_cv_deplibs_check_method=pass_all
 7417:   ;;
 7418: 
 7419: haiku*)
 7420:   lt_cv_deplibs_check_method=pass_all
 7421:   ;;
 7422: 
 7423: hpux10.20* | hpux11*)
 7424:   lt_cv_file_magic_cmd=/usr/bin/file
 7425:   case $host_cpu in
 7426:   ia64*)
 7427:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 7428:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 7429:     ;;
 7430:   hppa*64*)
 7431:     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]'
 7432:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 7433:     ;;
 7434:   *)
 7435:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 7436:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
 7437:     ;;
 7438:   esac
 7439:   ;;
 7440: 
 7441: interix[3-9]*)
 7442:   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 7443:   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 7444:   ;;
 7445: 
 7446: irix5* | irix6* | nonstopux*)
 7447:   case $LD in
 7448:   *-32|*"-32 ") libmagic=32-bit;;
 7449:   *-n32|*"-n32 ") libmagic=N32;;
 7450:   *-64|*"-64 ") libmagic=64-bit;;
 7451:   *) libmagic=never-match;;
 7452:   esac
 7453:   lt_cv_deplibs_check_method=pass_all
 7454:   ;;
 7455: 
 7456: # This must be glibc/ELF.
 7457: linux* | k*bsd*-gnu | kopensolaris*-gnu)
 7458:   lt_cv_deplibs_check_method=pass_all
 7459:   ;;
 7460: 
 7461: netbsd*)
 7462:   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 7463:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 7464:   else
 7465:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 7466:   fi
 7467:   ;;
 7468: 
 7469: newos6*)
 7470:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 7471:   lt_cv_file_magic_cmd=/usr/bin/file
 7472:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
 7473:   ;;
 7474: 
 7475: *nto* | *qnx*)
 7476:   lt_cv_deplibs_check_method=pass_all
 7477:   ;;
 7478: 
 7479: openbsd*)
 7480:   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 7481:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 7482:   else
 7483:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 7484:   fi
 7485:   ;;
 7486: 
 7487: osf3* | osf4* | osf5*)
 7488:   lt_cv_deplibs_check_method=pass_all
 7489:   ;;
 7490: 
 7491: rdos*)
 7492:   lt_cv_deplibs_check_method=pass_all
 7493:   ;;
 7494: 
 7495: solaris*)
 7496:   lt_cv_deplibs_check_method=pass_all
 7497:   ;;
 7498: 
 7499: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 7500:   lt_cv_deplibs_check_method=pass_all
 7501:   ;;
 7502: 
 7503: sysv4 | sysv4.3*)
 7504:   case $host_vendor in
 7505:   motorola)
 7506:     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]'
 7507:     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 7508:     ;;
 7509:   ncr)
 7510:     lt_cv_deplibs_check_method=pass_all
 7511:     ;;
 7512:   sequent)
 7513:     lt_cv_file_magic_cmd='/bin/file'
 7514:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 7515:     ;;
 7516:   sni)
 7517:     lt_cv_file_magic_cmd='/bin/file'
 7518:     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 7519:     lt_cv_file_magic_test_file=/lib/libc.so
 7520:     ;;
 7521:   siemens)
 7522:     lt_cv_deplibs_check_method=pass_all
 7523:     ;;
 7524:   pc)
 7525:     lt_cv_deplibs_check_method=pass_all
 7526:     ;;
 7527:   esac
 7528:   ;;
 7529: 
 7530: tpf*)
 7531:   lt_cv_deplibs_check_method=pass_all
 7532:   ;;
 7533: esac
 7534: 
 7535: fi
 7536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 7537: $as_echo "$lt_cv_deplibs_check_method" >&6; }
 7538: 
 7539: file_magic_glob=
 7540: want_nocaseglob=no
 7541: if test "$build" = "$host"; then
 7542:   case $host_os in
 7543:   mingw* | pw32*)
 7544:     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 7545:       want_nocaseglob=yes
 7546:     else
 7547:       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 7548:     fi
 7549:     ;;
 7550:   esac
 7551: fi
 7552: 
 7553: file_magic_cmd=$lt_cv_file_magic_cmd
 7554: deplibs_check_method=$lt_cv_deplibs_check_method
 7555: test -z "$deplibs_check_method" && deplibs_check_method=unknown
 7556: 
 7557: 
 7558: 
 7559: 
 7560: 
 7561: 
 7562: 
 7563: 
 7564: 
 7565: 
 7566: 
 7567: 
 7568: 
 7569: 
 7570: 
 7571: 
 7572: 
 7573: 
 7574: 
 7575: 
 7576: 
 7577: 
 7578: if test -n "$ac_tool_prefix"; then
 7579:   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 7580: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 7581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7582: $as_echo_n "checking for $ac_word... " >&6; }
 7583: if ${ac_cv_prog_DLLTOOL+:} false; then :
 7584:   $as_echo_n "(cached) " >&6
 7585: else
 7586:   if test -n "$DLLTOOL"; then
 7587:   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 7588: else
 7589: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7590: for as_dir in $PATH
 7591: do
 7592:   IFS=$as_save_IFS
 7593:   test -z "$as_dir" && as_dir=.
 7594:     for ac_exec_ext in '' $ac_executable_extensions; do
 7595:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7596:     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 7597:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7598:     break 2
 7599:   fi
 7600: done
 7601:   done
 7602: IFS=$as_save_IFS
 7603: 
 7604: fi
 7605: fi
 7606: DLLTOOL=$ac_cv_prog_DLLTOOL
 7607: if test -n "$DLLTOOL"; then
 7608:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 7609: $as_echo "$DLLTOOL" >&6; }
 7610: else
 7611:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7612: $as_echo "no" >&6; }
 7613: fi
 7614: 
 7615: 
 7616: fi
 7617: if test -z "$ac_cv_prog_DLLTOOL"; then
 7618:   ac_ct_DLLTOOL=$DLLTOOL
 7619:   # Extract the first word of "dlltool", so it can be a program name with args.
 7620: set dummy dlltool; ac_word=$2
 7621: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7622: $as_echo_n "checking for $ac_word... " >&6; }
 7623: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 7624:   $as_echo_n "(cached) " >&6
 7625: else
 7626:   if test -n "$ac_ct_DLLTOOL"; then
 7627:   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 7628: else
 7629: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7630: for as_dir in $PATH
 7631: do
 7632:   IFS=$as_save_IFS
 7633:   test -z "$as_dir" && as_dir=.
 7634:     for ac_exec_ext in '' $ac_executable_extensions; do
 7635:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7636:     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 7637:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7638:     break 2
 7639:   fi
 7640: done
 7641:   done
 7642: IFS=$as_save_IFS
 7643: 
 7644: fi
 7645: fi
 7646: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 7647: if test -n "$ac_ct_DLLTOOL"; then
 7648:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 7649: $as_echo "$ac_ct_DLLTOOL" >&6; }
 7650: else
 7651:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7652: $as_echo "no" >&6; }
 7653: fi
 7654: 
 7655:   if test "x$ac_ct_DLLTOOL" = x; then
 7656:     DLLTOOL="false"
 7657:   else
 7658:     case $cross_compiling:$ac_tool_warned in
 7659: yes:)
 7660: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 7661: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 7662: ac_tool_warned=yes ;;
 7663: esac
 7664:     DLLTOOL=$ac_ct_DLLTOOL
 7665:   fi
 7666: else
 7667:   DLLTOOL="$ac_cv_prog_DLLTOOL"
 7668: fi
 7669: 
 7670: test -z "$DLLTOOL" && DLLTOOL=dlltool
 7671: 
 7672: 
 7673: 
 7674: 
 7675: 
 7676: 
 7677: 
 7678: 
 7679: 
 7680: 
 7681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 7682: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 7683: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 7684:   $as_echo_n "(cached) " >&6
 7685: else
 7686:   lt_cv_sharedlib_from_linklib_cmd='unknown'
 7687: 
 7688: case $host_os in
 7689: cygwin* | mingw* | pw32* | cegcc*)
 7690:   # two different shell functions defined in ltmain.sh
 7691:   # decide which to use based on capabilities of $DLLTOOL
 7692:   case `$DLLTOOL --help 2>&1` in
 7693:   *--identify-strict*)
 7694:     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 7695:     ;;
 7696:   *)
 7697:     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 7698:     ;;
 7699:   esac
 7700:   ;;
 7701: *)
 7702:   # fallback: assume linklib IS sharedlib
 7703:   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 7704:   ;;
 7705: esac
 7706: 
 7707: fi
 7708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 7709: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 7710: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 7711: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 7712: 
 7713: 
 7714: 
 7715: 
 7716: 
 7717: 
 7718: 
 7719: if test -n "$ac_tool_prefix"; then
 7720:   for ac_prog in ar
 7721:   do
 7722:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 7723: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 7724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7725: $as_echo_n "checking for $ac_word... " >&6; }
 7726: if ${ac_cv_prog_AR+:} false; then :
 7727:   $as_echo_n "(cached) " >&6
 7728: else
 7729:   if test -n "$AR"; then
 7730:   ac_cv_prog_AR="$AR" # Let the user override the test.
 7731: else
 7732: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7733: for as_dir in $PATH
 7734: do
 7735:   IFS=$as_save_IFS
 7736:   test -z "$as_dir" && as_dir=.
 7737:     for ac_exec_ext in '' $ac_executable_extensions; do
 7738:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7739:     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 7740:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7741:     break 2
 7742:   fi
 7743: done
 7744:   done
 7745: IFS=$as_save_IFS
 7746: 
 7747: fi
 7748: fi
 7749: AR=$ac_cv_prog_AR
 7750: if test -n "$AR"; then
 7751:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 7752: $as_echo "$AR" >&6; }
 7753: else
 7754:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7755: $as_echo "no" >&6; }
 7756: fi
 7757: 
 7758: 
 7759:     test -n "$AR" && break
 7760:   done
 7761: fi
 7762: if test -z "$AR"; then
 7763:   ac_ct_AR=$AR
 7764:   for ac_prog in ar
 7765: do
 7766:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 7767: set dummy $ac_prog; ac_word=$2
 7768: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7769: $as_echo_n "checking for $ac_word... " >&6; }
 7770: if ${ac_cv_prog_ac_ct_AR+:} false; then :
 7771:   $as_echo_n "(cached) " >&6
 7772: else
 7773:   if test -n "$ac_ct_AR"; then
 7774:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 7775: else
 7776: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7777: for as_dir in $PATH
 7778: do
 7779:   IFS=$as_save_IFS
 7780:   test -z "$as_dir" && as_dir=.
 7781:     for ac_exec_ext in '' $ac_executable_extensions; do
 7782:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7783:     ac_cv_prog_ac_ct_AR="$ac_prog"
 7784:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7785:     break 2
 7786:   fi
 7787: done
 7788:   done
 7789: IFS=$as_save_IFS
 7790: 
 7791: fi
 7792: fi
 7793: ac_ct_AR=$ac_cv_prog_ac_ct_AR
 7794: if test -n "$ac_ct_AR"; then
 7795:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 7796: $as_echo "$ac_ct_AR" >&6; }
 7797: else
 7798:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7799: $as_echo "no" >&6; }
 7800: fi
 7801: 
 7802: 
 7803:   test -n "$ac_ct_AR" && break
 7804: done
 7805: 
 7806:   if test "x$ac_ct_AR" = x; then
 7807:     AR="false"
 7808:   else
 7809:     case $cross_compiling:$ac_tool_warned in
 7810: yes:)
 7811: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 7812: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 7813: ac_tool_warned=yes ;;
 7814: esac
 7815:     AR=$ac_ct_AR
 7816:   fi
 7817: fi
 7818: 
 7819: : ${AR=ar}
 7820: : ${AR_FLAGS=cru}
 7821: 
 7822: 
 7823: 
 7824: 
 7825: 
 7826: 
 7827: 
 7828: 
 7829: 
 7830: 
 7831: 
 7832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 7833: $as_echo_n "checking for archiver @FILE support... " >&6; }
 7834: if ${lt_cv_ar_at_file+:} false; then :
 7835:   $as_echo_n "(cached) " >&6
 7836: else
 7837:   lt_cv_ar_at_file=no
 7838:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 7839: /* end confdefs.h.  */
 7840: 
 7841: int
 7842: main ()
 7843: {
 7844: 
 7845:   ;
 7846:   return 0;
 7847: }
 7848: _ACEOF
 7849: if ac_fn_c_try_compile "$LINENO"; then :
 7850:   echo conftest.$ac_objext > conftest.lst
 7851:       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 7852:       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 7853:   (eval $lt_ar_try) 2>&5
 7854:   ac_status=$?
 7855:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 7856:   test $ac_status = 0; }
 7857:       if test "$ac_status" -eq 0; then
 7858: 	# Ensure the archiver fails upon bogus file names.
 7859: 	rm -f conftest.$ac_objext libconftest.a
 7860: 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 7861:   (eval $lt_ar_try) 2>&5
 7862:   ac_status=$?
 7863:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 7864:   test $ac_status = 0; }
 7865: 	if test "$ac_status" -ne 0; then
 7866:           lt_cv_ar_at_file=@
 7867:         fi
 7868:       fi
 7869:       rm -f conftest.* libconftest.a
 7870: 
 7871: fi
 7872: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 7873: 
 7874: fi
 7875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 7876: $as_echo "$lt_cv_ar_at_file" >&6; }
 7877: 
 7878: if test "x$lt_cv_ar_at_file" = xno; then
 7879:   archiver_list_spec=
 7880: else
 7881:   archiver_list_spec=$lt_cv_ar_at_file
 7882: fi
 7883: 
 7884: 
 7885: 
 7886: 
 7887: 
 7888: 
 7889: 
 7890: if test -n "$ac_tool_prefix"; then
 7891:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 7892: set dummy ${ac_tool_prefix}strip; ac_word=$2
 7893: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7894: $as_echo_n "checking for $ac_word... " >&6; }
 7895: if ${ac_cv_prog_STRIP+:} false; then :
 7896:   $as_echo_n "(cached) " >&6
 7897: else
 7898:   if test -n "$STRIP"; then
 7899:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 7900: else
 7901: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7902: for as_dir in $PATH
 7903: do
 7904:   IFS=$as_save_IFS
 7905:   test -z "$as_dir" && as_dir=.
 7906:     for ac_exec_ext in '' $ac_executable_extensions; do
 7907:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7908:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 7909:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7910:     break 2
 7911:   fi
 7912: done
 7913:   done
 7914: IFS=$as_save_IFS
 7915: 
 7916: fi
 7917: fi
 7918: STRIP=$ac_cv_prog_STRIP
 7919: if test -n "$STRIP"; then
 7920:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 7921: $as_echo "$STRIP" >&6; }
 7922: else
 7923:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7924: $as_echo "no" >&6; }
 7925: fi
 7926: 
 7927: 
 7928: fi
 7929: if test -z "$ac_cv_prog_STRIP"; then
 7930:   ac_ct_STRIP=$STRIP
 7931:   # Extract the first word of "strip", so it can be a program name with args.
 7932: set dummy strip; ac_word=$2
 7933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7934: $as_echo_n "checking for $ac_word... " >&6; }
 7935: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 7936:   $as_echo_n "(cached) " >&6
 7937: else
 7938:   if test -n "$ac_ct_STRIP"; then
 7939:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 7940: else
 7941: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7942: for as_dir in $PATH
 7943: do
 7944:   IFS=$as_save_IFS
 7945:   test -z "$as_dir" && as_dir=.
 7946:     for ac_exec_ext in '' $ac_executable_extensions; do
 7947:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 7948:     ac_cv_prog_ac_ct_STRIP="strip"
 7949:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 7950:     break 2
 7951:   fi
 7952: done
 7953:   done
 7954: IFS=$as_save_IFS
 7955: 
 7956: fi
 7957: fi
 7958: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 7959: if test -n "$ac_ct_STRIP"; then
 7960:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 7961: $as_echo "$ac_ct_STRIP" >&6; }
 7962: else
 7963:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7964: $as_echo "no" >&6; }
 7965: fi
 7966: 
 7967:   if test "x$ac_ct_STRIP" = x; then
 7968:     STRIP=":"
 7969:   else
 7970:     case $cross_compiling:$ac_tool_warned in
 7971: yes:)
 7972: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 7973: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 7974: ac_tool_warned=yes ;;
 7975: esac
 7976:     STRIP=$ac_ct_STRIP
 7977:   fi
 7978: else
 7979:   STRIP="$ac_cv_prog_STRIP"
 7980: fi
 7981: 
 7982: test -z "$STRIP" && STRIP=:
 7983: 
 7984: 
 7985: 
 7986: 
 7987: 
 7988: 
 7989: if test -n "$ac_tool_prefix"; then
 7990:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 7991: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 7992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7993: $as_echo_n "checking for $ac_word... " >&6; }
 7994: if ${ac_cv_prog_RANLIB+:} false; then :
 7995:   $as_echo_n "(cached) " >&6
 7996: else
 7997:   if test -n "$RANLIB"; then
 7998:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 7999: else
 8000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8001: for as_dir in $PATH
 8002: do
 8003:   IFS=$as_save_IFS
 8004:   test -z "$as_dir" && as_dir=.
 8005:     for ac_exec_ext in '' $ac_executable_extensions; do
 8006:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8007:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 8008:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8009:     break 2
 8010:   fi
 8011: done
 8012:   done
 8013: IFS=$as_save_IFS
 8014: 
 8015: fi
 8016: fi
 8017: RANLIB=$ac_cv_prog_RANLIB
 8018: if test -n "$RANLIB"; then
 8019:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 8020: $as_echo "$RANLIB" >&6; }
 8021: else
 8022:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8023: $as_echo "no" >&6; }
 8024: fi
 8025: 
 8026: 
 8027: fi
 8028: if test -z "$ac_cv_prog_RANLIB"; then
 8029:   ac_ct_RANLIB=$RANLIB
 8030:   # Extract the first word of "ranlib", so it can be a program name with args.
 8031: set dummy ranlib; ac_word=$2
 8032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8033: $as_echo_n "checking for $ac_word... " >&6; }
 8034: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 8035:   $as_echo_n "(cached) " >&6
 8036: else
 8037:   if test -n "$ac_ct_RANLIB"; then
 8038:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 8039: else
 8040: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8041: for as_dir in $PATH
 8042: do
 8043:   IFS=$as_save_IFS
 8044:   test -z "$as_dir" && as_dir=.
 8045:     for ac_exec_ext in '' $ac_executable_extensions; do
 8046:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8047:     ac_cv_prog_ac_ct_RANLIB="ranlib"
 8048:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8049:     break 2
 8050:   fi
 8051: done
 8052:   done
 8053: IFS=$as_save_IFS
 8054: 
 8055: fi
 8056: fi
 8057: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 8058: if test -n "$ac_ct_RANLIB"; then
 8059:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 8060: $as_echo "$ac_ct_RANLIB" >&6; }
 8061: else
 8062:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8063: $as_echo "no" >&6; }
 8064: fi
 8065: 
 8066:   if test "x$ac_ct_RANLIB" = x; then
 8067:     RANLIB=":"
 8068:   else
 8069:     case $cross_compiling:$ac_tool_warned in
 8070: yes:)
 8071: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 8072: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 8073: ac_tool_warned=yes ;;
 8074: esac
 8075:     RANLIB=$ac_ct_RANLIB
 8076:   fi
 8077: else
 8078:   RANLIB="$ac_cv_prog_RANLIB"
 8079: fi
 8080: 
 8081: test -z "$RANLIB" && RANLIB=:
 8082: 
 8083: 
 8084: 
 8085: 
 8086: 
 8087: 
 8088: # Determine commands to create old-style static archives.
 8089: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 8090: old_postinstall_cmds='chmod 644 $oldlib'
 8091: old_postuninstall_cmds=
 8092: 
 8093: if test -n "$RANLIB"; then
 8094:   case $host_os in
 8095:   openbsd*)
 8096:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 8097:     ;;
 8098:   *)
 8099:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 8100:     ;;
 8101:   esac
 8102:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 8103: fi
 8104: 
 8105: case $host_os in
 8106:   darwin*)
 8107:     lock_old_archive_extraction=yes ;;
 8108:   *)
 8109:     lock_old_archive_extraction=no ;;
 8110: esac
 8111: 
 8112: 
 8113: 
 8114: 
 8115: 
 8116: 
 8117: 
 8118: 
 8119: 
 8120: 
 8121: 
 8122: 
 8123: 
 8124: 
 8125: 
 8126: 
 8127: 
 8128: 
 8129: 
 8130: 
 8131: 
 8132: for ac_prog in gawk mawk nawk awk
 8133: do
 8134:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 8135: set dummy $ac_prog; ac_word=$2
 8136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8137: $as_echo_n "checking for $ac_word... " >&6; }
 8138: if ${ac_cv_prog_AWK+:} false; then :
 8139:   $as_echo_n "(cached) " >&6
 8140: else
 8141:   if test -n "$AWK"; then
 8142:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
 8143: else
 8144: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8145: for as_dir in $PATH
 8146: do
 8147:   IFS=$as_save_IFS
 8148:   test -z "$as_dir" && as_dir=.
 8149:     for ac_exec_ext in '' $ac_executable_extensions; do
 8150:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8151:     ac_cv_prog_AWK="$ac_prog"
 8152:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8153:     break 2
 8154:   fi
 8155: done
 8156:   done
 8157: IFS=$as_save_IFS
 8158: 
 8159: fi
 8160: fi
 8161: AWK=$ac_cv_prog_AWK
 8162: if test -n "$AWK"; then
 8163:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 8164: $as_echo "$AWK" >&6; }
 8165: else
 8166:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8167: $as_echo "no" >&6; }
 8168: fi
 8169: 
 8170: 
 8171:   test -n "$AWK" && break
 8172: done
 8173: 
 8174: 
 8175: 
 8176: 
 8177: 
 8178: 
 8179: 
 8180: 
 8181: 
 8182: 
 8183: 
 8184: 
 8185: 
 8186: 
 8187: 
 8188: 
 8189: 
 8190: 
 8191: 
 8192: # If no C compiler was specified, use CC.
 8193: LTCC=${LTCC-"$CC"}
 8194: 
 8195: # If no C compiler flags were specified, use CFLAGS.
 8196: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 8197: 
 8198: # Allow CC to be a program name with arguments.
 8199: compiler=$CC
 8200: 
 8201: 
 8202: # Check for command to grab the raw symbol name followed by C symbol from nm.
 8203: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 8204: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 8205: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 8206:   $as_echo_n "(cached) " >&6
 8207: else
 8208: 
 8209: # These are sane defaults that work on at least a few old systems.
 8210: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 8211: 
 8212: # Character class describing NM global symbol codes.
 8213: symcode='[BCDEGRST]'
 8214: 
 8215: # Regexp to match symbols that can be accessed directly from C.
 8216: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 8217: 
 8218: # Define system-specific variables.
 8219: case $host_os in
 8220: aix*)
 8221:   symcode='[BCDT]'
 8222:   ;;
 8223: cygwin* | mingw* | pw32* | cegcc*)
 8224:   symcode='[ABCDGISTW]'
 8225:   ;;
 8226: hpux*)
 8227:   if test "$host_cpu" = ia64; then
 8228:     symcode='[ABCDEGRST]'
 8229:   fi
 8230:   ;;
 8231: irix* | nonstopux*)
 8232:   symcode='[BCDEGRST]'
 8233:   ;;
 8234: osf*)
 8235:   symcode='[BCDEGQRST]'
 8236:   ;;
 8237: solaris*)
 8238:   symcode='[BDRT]'
 8239:   ;;
 8240: sco3.2v5*)
 8241:   symcode='[DT]'
 8242:   ;;
 8243: sysv4.2uw2*)
 8244:   symcode='[DT]'
 8245:   ;;
 8246: sysv5* | sco5v6* | unixware* | OpenUNIX*)
 8247:   symcode='[ABDT]'
 8248:   ;;
 8249: sysv4)
 8250:   symcode='[DFNSTU]'
 8251:   ;;
 8252: esac
 8253: 
 8254: # If we're using GNU nm, then use its standard symbol codes.
 8255: case `$NM -V 2>&1` in
 8256: *GNU* | *'with BFD'*)
 8257:   symcode='[ABCDGIRSTW]' ;;
 8258: esac
 8259: 
 8260: # Transform an extracted symbol line into a proper C declaration.
 8261: # Some systems (esp. on ia64) link data and code symbols differently,
 8262: # so use this general approach.
 8263: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 8264: 
 8265: # Transform an extracted symbol line into symbol name and symbol address
 8266: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 8267: 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'"
 8268: 
 8269: # Handle CRLF in mingw tool chain
 8270: opt_cr=
 8271: case $build_os in
 8272: mingw*)
 8273:   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 8274:   ;;
 8275: esac
 8276: 
 8277: # Try without a prefix underscore, then with it.
 8278: for ac_symprfx in "" "_"; do
 8279: 
 8280:   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 8281:   symxfrm="\\1 $ac_symprfx\\2 \\2"
 8282: 
 8283:   # Write the raw and C identifiers.
 8284:   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 8285:     # Fake it for dumpbin and say T for any non-static function
 8286:     # and D for any global variable.
 8287:     # Also find C++ and __fastcall symbols from MSVC++,
 8288:     # which start with @ or ?.
 8289:     lt_cv_sys_global_symbol_pipe="$AWK '"\
 8290: "     {last_section=section; section=\$ 3};"\
 8291: "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 8292: "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 8293: "     \$ 0!~/External *\|/{next};"\
 8294: "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 8295: "     {if(hide[section]) next};"\
 8296: "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 8297: "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 8298: "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 8299: "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 8300: "     ' prfx=^$ac_symprfx"
 8301:   else
 8302:     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 8303:   fi
 8304:   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 8305: 
 8306:   # Check to see that the pipe works correctly.
 8307:   pipe_works=no
 8308: 
 8309:   rm -f conftest*
 8310:   cat > conftest.$ac_ext <<_LT_EOF
 8311: #ifdef __cplusplus
 8312: extern "C" {
 8313: #endif
 8314: char nm_test_var;
 8315: void nm_test_func(void);
 8316: void nm_test_func(void){}
 8317: #ifdef __cplusplus
 8318: }
 8319: #endif
 8320: int main(){nm_test_var='a';nm_test_func();return(0);}
 8321: _LT_EOF
 8322: 
 8323:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 8324:   (eval $ac_compile) 2>&5
 8325:   ac_status=$?
 8326:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8327:   test $ac_status = 0; }; then
 8328:     # Now try to grab the symbols.
 8329:     nlist=conftest.nm
 8330:     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 8331:   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 8332:   ac_status=$?
 8333:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8334:   test $ac_status = 0; } && test -s "$nlist"; then
 8335:       # Try sorting and uniquifying the output.
 8336:       if sort "$nlist" | uniq > "$nlist"T; then
 8337: 	mv -f "$nlist"T "$nlist"
 8338:       else
 8339: 	rm -f "$nlist"T
 8340:       fi
 8341: 
 8342:       # Make sure that we snagged all the symbols we need.
 8343:       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 8344: 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 8345: 	  cat <<_LT_EOF > conftest.$ac_ext
 8346: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 8347: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 8348: /* DATA imports from DLLs on WIN32 con't be const, because runtime
 8349:    relocations are performed -- see ld's documentation on pseudo-relocs.  */
 8350: # define LT_DLSYM_CONST
 8351: #elif defined(__osf__)
 8352: /* This system does not cope well with relocations in const data.  */
 8353: # define LT_DLSYM_CONST
 8354: #else
 8355: # define LT_DLSYM_CONST const
 8356: #endif
 8357: 
 8358: #ifdef __cplusplus
 8359: extern "C" {
 8360: #endif
 8361: 
 8362: _LT_EOF
 8363: 	  # Now generate the symbol file.
 8364: 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 8365: 
 8366: 	  cat <<_LT_EOF >> conftest.$ac_ext
 8367: 
 8368: /* The mapping between symbol names and symbols.  */
 8369: LT_DLSYM_CONST struct {
 8370:   const char *name;
 8371:   void       *address;
 8372: }
 8373: lt__PROGRAM__LTX_preloaded_symbols[] =
 8374: {
 8375:   { "@PROGRAM@", (void *) 0 },
 8376: _LT_EOF
 8377: 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 8378: 	  cat <<\_LT_EOF >> conftest.$ac_ext
 8379:   {0, (void *) 0}
 8380: };
 8381: 
 8382: /* This works around a problem in FreeBSD linker */
 8383: #ifdef FREEBSD_WORKAROUND
 8384: static const void *lt_preloaded_setup() {
 8385:   return lt__PROGRAM__LTX_preloaded_symbols;
 8386: }
 8387: #endif
 8388: 
 8389: #ifdef __cplusplus
 8390: }
 8391: #endif
 8392: _LT_EOF
 8393: 	  # Now try linking the two files.
 8394: 	  mv conftest.$ac_objext conftstm.$ac_objext
 8395: 	  lt_globsym_save_LIBS=$LIBS
 8396: 	  lt_globsym_save_CFLAGS=$CFLAGS
 8397: 	  LIBS="conftstm.$ac_objext"
 8398: 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 8399: 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 8400:   (eval $ac_link) 2>&5
 8401:   ac_status=$?
 8402:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8403:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 8404: 	    pipe_works=yes
 8405: 	  fi
 8406: 	  LIBS=$lt_globsym_save_LIBS
 8407: 	  CFLAGS=$lt_globsym_save_CFLAGS
 8408: 	else
 8409: 	  echo "cannot find nm_test_func in $nlist" >&5
 8410: 	fi
 8411:       else
 8412: 	echo "cannot find nm_test_var in $nlist" >&5
 8413:       fi
 8414:     else
 8415:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 8416:     fi
 8417:   else
 8418:     echo "$progname: failed program was:" >&5
 8419:     cat conftest.$ac_ext >&5
 8420:   fi
 8421:   rm -rf conftest* conftst*
 8422: 
 8423:   # Do not use the global_symbol_pipe unless it works.
 8424:   if test "$pipe_works" = yes; then
 8425:     break
 8426:   else
 8427:     lt_cv_sys_global_symbol_pipe=
 8428:   fi
 8429: done
 8430: 
 8431: fi
 8432: 
 8433: if test -z "$lt_cv_sys_global_symbol_pipe"; then
 8434:   lt_cv_sys_global_symbol_to_cdecl=
 8435: fi
 8436: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 8437:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 8438: $as_echo "failed" >&6; }
 8439: else
 8440:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 8441: $as_echo "ok" >&6; }
 8442: fi
 8443: 
 8444: # Response file support.
 8445: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 8446:   nm_file_list_spec='@'
 8447: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 8448:   nm_file_list_spec='@'
 8449: fi
 8450: 
 8451: 
 8452: 
 8453: 
 8454: 
 8455: 
 8456: 
 8457: 
 8458: 
 8459: 
 8460: 
 8461: 
 8462: 
 8463: 
 8464: 
 8465: 
 8466: 
 8467: 
 8468: 
 8469: 
 8470: 
 8471: 
 8472: 
 8473: 
 8474: 
 8475: 
 8476: 
 8477: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 8478: $as_echo_n "checking for sysroot... " >&6; }
 8479: 
 8480: # Check whether --with-sysroot was given.
 8481: if test "${with_sysroot+set}" = set; then :
 8482:   withval=$with_sysroot;
 8483: else
 8484:   with_sysroot=no
 8485: fi
 8486: 
 8487: 
 8488: lt_sysroot=
 8489: case ${with_sysroot} in #(
 8490:  yes)
 8491:    if test "$GCC" = yes; then
 8492:      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 8493:    fi
 8494:    ;; #(
 8495:  /*)
 8496:    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 8497:    ;; #(
 8498:  no|'')
 8499:    ;; #(
 8500:  *)
 8501:    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 8502: $as_echo "${with_sysroot}" >&6; }
 8503:    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 8504:    ;;
 8505: esac
 8506: 
 8507:  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 8508: $as_echo "${lt_sysroot:-no}" >&6; }
 8509: 
 8510: 
 8511: 
 8512: 
 8513: 
 8514: # Check whether --enable-libtool-lock was given.
 8515: if test "${enable_libtool_lock+set}" = set; then :
 8516:   enableval=$enable_libtool_lock;
 8517: fi
 8518: 
 8519: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 8520: 
 8521: # Some flags need to be propagated to the compiler or linker for good
 8522: # libtool support.
 8523: case $host in
 8524: ia64-*-hpux*)
 8525:   # Find out which ABI we are using.
 8526:   echo 'int i;' > conftest.$ac_ext
 8527:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 8528:   (eval $ac_compile) 2>&5
 8529:   ac_status=$?
 8530:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8531:   test $ac_status = 0; }; then
 8532:     case `/usr/bin/file conftest.$ac_objext` in
 8533:       *ELF-32*)
 8534: 	HPUX_IA64_MODE="32"
 8535: 	;;
 8536:       *ELF-64*)
 8537: 	HPUX_IA64_MODE="64"
 8538: 	;;
 8539:     esac
 8540:   fi
 8541:   rm -rf conftest*
 8542:   ;;
 8543: *-*-irix6*)
 8544:   # Find out which ABI we are using.
 8545:   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 8546:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 8547:   (eval $ac_compile) 2>&5
 8548:   ac_status=$?
 8549:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8550:   test $ac_status = 0; }; then
 8551:     if test "$lt_cv_prog_gnu_ld" = yes; then
 8552:       case `/usr/bin/file conftest.$ac_objext` in
 8553: 	*32-bit*)
 8554: 	  LD="${LD-ld} -melf32bsmip"
 8555: 	  ;;
 8556: 	*N32*)
 8557: 	  LD="${LD-ld} -melf32bmipn32"
 8558: 	  ;;
 8559: 	*64-bit*)
 8560: 	  LD="${LD-ld} -melf64bmip"
 8561: 	;;
 8562:       esac
 8563:     else
 8564:       case `/usr/bin/file conftest.$ac_objext` in
 8565: 	*32-bit*)
 8566: 	  LD="${LD-ld} -32"
 8567: 	  ;;
 8568: 	*N32*)
 8569: 	  LD="${LD-ld} -n32"
 8570: 	  ;;
 8571: 	*64-bit*)
 8572: 	  LD="${LD-ld} -64"
 8573: 	  ;;
 8574:       esac
 8575:     fi
 8576:   fi
 8577:   rm -rf conftest*
 8578:   ;;
 8579: 
 8580: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 8581: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 8582:   # Find out which ABI we are using.
 8583:   echo 'int i;' > conftest.$ac_ext
 8584:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 8585:   (eval $ac_compile) 2>&5
 8586:   ac_status=$?
 8587:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8588:   test $ac_status = 0; }; then
 8589:     case `/usr/bin/file conftest.o` in
 8590:       *32-bit*)
 8591: 	case $host in
 8592: 	  x86_64-*kfreebsd*-gnu)
 8593: 	    LD="${LD-ld} -m elf_i386_fbsd"
 8594: 	    ;;
 8595: 	  x86_64-*linux*)
 8596: 	    LD="${LD-ld} -m elf_i386"
 8597: 	    ;;
 8598: 	  ppc64-*linux*|powerpc64-*linux*)
 8599: 	    LD="${LD-ld} -m elf32ppclinux"
 8600: 	    ;;
 8601: 	  s390x-*linux*)
 8602: 	    LD="${LD-ld} -m elf_s390"
 8603: 	    ;;
 8604: 	  sparc64-*linux*)
 8605: 	    LD="${LD-ld} -m elf32_sparc"
 8606: 	    ;;
 8607: 	esac
 8608: 	;;
 8609:       *64-bit*)
 8610: 	case $host in
 8611: 	  x86_64-*kfreebsd*-gnu)
 8612: 	    LD="${LD-ld} -m elf_x86_64_fbsd"
 8613: 	    ;;
 8614: 	  x86_64-*linux*)
 8615: 	    LD="${LD-ld} -m elf_x86_64"
 8616: 	    ;;
 8617: 	  ppc*-*linux*|powerpc*-*linux*)
 8618: 	    LD="${LD-ld} -m elf64ppc"
 8619: 	    ;;
 8620: 	  s390*-*linux*|s390*-*tpf*)
 8621: 	    LD="${LD-ld} -m elf64_s390"
 8622: 	    ;;
 8623: 	  sparc*-*linux*)
 8624: 	    LD="${LD-ld} -m elf64_sparc"
 8625: 	    ;;
 8626: 	esac
 8627: 	;;
 8628:     esac
 8629:   fi
 8630:   rm -rf conftest*
 8631:   ;;
 8632: 
 8633: *-*-sco3.2v5*)
 8634:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 8635:   SAVE_CFLAGS="$CFLAGS"
 8636:   CFLAGS="$CFLAGS -belf"
 8637:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 8638: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 8639: if ${lt_cv_cc_needs_belf+:} false; then :
 8640:   $as_echo_n "(cached) " >&6
 8641: else
 8642:   ac_ext=c
 8643: ac_cpp='$CPP $CPPFLAGS'
 8644: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 8645: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 8646: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 8647: 
 8648:      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 8649: /* end confdefs.h.  */
 8650: 
 8651: int
 8652: main ()
 8653: {
 8654: 
 8655:   ;
 8656:   return 0;
 8657: }
 8658: _ACEOF
 8659: if ac_fn_c_try_link "$LINENO"; then :
 8660:   lt_cv_cc_needs_belf=yes
 8661: else
 8662:   lt_cv_cc_needs_belf=no
 8663: fi
 8664: rm -f core conftest.err conftest.$ac_objext \
 8665:     conftest$ac_exeext conftest.$ac_ext
 8666:      ac_ext=c
 8667: ac_cpp='$CPP $CPPFLAGS'
 8668: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 8669: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 8670: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 8671: 
 8672: fi
 8673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 8674: $as_echo "$lt_cv_cc_needs_belf" >&6; }
 8675:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 8676:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 8677:     CFLAGS="$SAVE_CFLAGS"
 8678:   fi
 8679:   ;;
 8680: *-*solaris*)
 8681:   # Find out which ABI we are using.
 8682:   echo 'int i;' > conftest.$ac_ext
 8683:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 8684:   (eval $ac_compile) 2>&5
 8685:   ac_status=$?
 8686:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 8687:   test $ac_status = 0; }; then
 8688:     case `/usr/bin/file conftest.o` in
 8689:     *64-bit*)
 8690:       case $lt_cv_prog_gnu_ld in
 8691:       yes*)
 8692:         case $host in
 8693:         i?86-*-solaris*)
 8694:           LD="${LD-ld} -m elf_x86_64"
 8695:           ;;
 8696:         sparc*-*-solaris*)
 8697:           LD="${LD-ld} -m elf64_sparc"
 8698:           ;;
 8699:         esac
 8700:         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 8701:         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 8702:           LD="${LD-ld}_sol2"
 8703:         fi
 8704:         ;;
 8705:       *)
 8706: 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 8707: 	  LD="${LD-ld} -64"
 8708: 	fi
 8709: 	;;
 8710:       esac
 8711:       ;;
 8712:     esac
 8713:   fi
 8714:   rm -rf conftest*
 8715:   ;;
 8716: esac
 8717: 
 8718: need_locks="$enable_libtool_lock"
 8719: 
 8720: if test -n "$ac_tool_prefix"; then
 8721:   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 8722: set dummy ${ac_tool_prefix}mt; ac_word=$2
 8723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8724: $as_echo_n "checking for $ac_word... " >&6; }
 8725: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 8726:   $as_echo_n "(cached) " >&6
 8727: else
 8728:   if test -n "$MANIFEST_TOOL"; then
 8729:   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 8730: else
 8731: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8732: for as_dir in $PATH
 8733: do
 8734:   IFS=$as_save_IFS
 8735:   test -z "$as_dir" && as_dir=.
 8736:     for ac_exec_ext in '' $ac_executable_extensions; do
 8737:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8738:     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 8739:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8740:     break 2
 8741:   fi
 8742: done
 8743:   done
 8744: IFS=$as_save_IFS
 8745: 
 8746: fi
 8747: fi
 8748: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 8749: if test -n "$MANIFEST_TOOL"; then
 8750:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 8751: $as_echo "$MANIFEST_TOOL" >&6; }
 8752: else
 8753:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8754: $as_echo "no" >&6; }
 8755: fi
 8756: 
 8757: 
 8758: fi
 8759: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 8760:   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 8761:   # Extract the first word of "mt", so it can be a program name with args.
 8762: set dummy mt; ac_word=$2
 8763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8764: $as_echo_n "checking for $ac_word... " >&6; }
 8765: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 8766:   $as_echo_n "(cached) " >&6
 8767: else
 8768:   if test -n "$ac_ct_MANIFEST_TOOL"; then
 8769:   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 8770: else
 8771: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8772: for as_dir in $PATH
 8773: do
 8774:   IFS=$as_save_IFS
 8775:   test -z "$as_dir" && as_dir=.
 8776:     for ac_exec_ext in '' $ac_executable_extensions; do
 8777:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8778:     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 8779:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8780:     break 2
 8781:   fi
 8782: done
 8783:   done
 8784: IFS=$as_save_IFS
 8785: 
 8786: fi
 8787: fi
 8788: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 8789: if test -n "$ac_ct_MANIFEST_TOOL"; then
 8790:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 8791: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 8792: else
 8793:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8794: $as_echo "no" >&6; }
 8795: fi
 8796: 
 8797:   if test "x$ac_ct_MANIFEST_TOOL" = x; then
 8798:     MANIFEST_TOOL=":"
 8799:   else
 8800:     case $cross_compiling:$ac_tool_warned in
 8801: yes:)
 8802: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 8803: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 8804: ac_tool_warned=yes ;;
 8805: esac
 8806:     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 8807:   fi
 8808: else
 8809:   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 8810: fi
 8811: 
 8812: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 8813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 8814: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 8815: if ${lt_cv_path_mainfest_tool+:} false; then :
 8816:   $as_echo_n "(cached) " >&6
 8817: else
 8818:   lt_cv_path_mainfest_tool=no
 8819:   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 8820:   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 8821:   cat conftest.err >&5
 8822:   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 8823:     lt_cv_path_mainfest_tool=yes
 8824:   fi
 8825:   rm -f conftest*
 8826: fi
 8827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 8828: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
 8829: if test "x$lt_cv_path_mainfest_tool" != xyes; then
 8830:   MANIFEST_TOOL=:
 8831: fi
 8832: 
 8833: 
 8834: 
 8835: 
 8836: 
 8837: 
 8838:   case $host_os in
 8839:     rhapsody* | darwin*)
 8840:     if test -n "$ac_tool_prefix"; then
 8841:   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 8842: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 8843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8844: $as_echo_n "checking for $ac_word... " >&6; }
 8845: if ${ac_cv_prog_DSYMUTIL+:} false; then :
 8846:   $as_echo_n "(cached) " >&6
 8847: else
 8848:   if test -n "$DSYMUTIL"; then
 8849:   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 8850: else
 8851: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8852: for as_dir in $PATH
 8853: do
 8854:   IFS=$as_save_IFS
 8855:   test -z "$as_dir" && as_dir=.
 8856:     for ac_exec_ext in '' $ac_executable_extensions; do
 8857:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8858:     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 8859:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8860:     break 2
 8861:   fi
 8862: done
 8863:   done
 8864: IFS=$as_save_IFS
 8865: 
 8866: fi
 8867: fi
 8868: DSYMUTIL=$ac_cv_prog_DSYMUTIL
 8869: if test -n "$DSYMUTIL"; then
 8870:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 8871: $as_echo "$DSYMUTIL" >&6; }
 8872: else
 8873:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8874: $as_echo "no" >&6; }
 8875: fi
 8876: 
 8877: 
 8878: fi
 8879: if test -z "$ac_cv_prog_DSYMUTIL"; then
 8880:   ac_ct_DSYMUTIL=$DSYMUTIL
 8881:   # Extract the first word of "dsymutil", so it can be a program name with args.
 8882: set dummy dsymutil; ac_word=$2
 8883: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8884: $as_echo_n "checking for $ac_word... " >&6; }
 8885: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 8886:   $as_echo_n "(cached) " >&6
 8887: else
 8888:   if test -n "$ac_ct_DSYMUTIL"; then
 8889:   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 8890: else
 8891: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8892: for as_dir in $PATH
 8893: do
 8894:   IFS=$as_save_IFS
 8895:   test -z "$as_dir" && as_dir=.
 8896:     for ac_exec_ext in '' $ac_executable_extensions; do
 8897:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8898:     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 8899:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8900:     break 2
 8901:   fi
 8902: done
 8903:   done
 8904: IFS=$as_save_IFS
 8905: 
 8906: fi
 8907: fi
 8908: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 8909: if test -n "$ac_ct_DSYMUTIL"; then
 8910:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 8911: $as_echo "$ac_ct_DSYMUTIL" >&6; }
 8912: else
 8913:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8914: $as_echo "no" >&6; }
 8915: fi
 8916: 
 8917:   if test "x$ac_ct_DSYMUTIL" = x; then
 8918:     DSYMUTIL=":"
 8919:   else
 8920:     case $cross_compiling:$ac_tool_warned in
 8921: yes:)
 8922: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 8923: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 8924: ac_tool_warned=yes ;;
 8925: esac
 8926:     DSYMUTIL=$ac_ct_DSYMUTIL
 8927:   fi
 8928: else
 8929:   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 8930: fi
 8931: 
 8932:     if test -n "$ac_tool_prefix"; then
 8933:   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 8934: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 8935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8936: $as_echo_n "checking for $ac_word... " >&6; }
 8937: if ${ac_cv_prog_NMEDIT+:} false; then :
 8938:   $as_echo_n "(cached) " >&6
 8939: else
 8940:   if test -n "$NMEDIT"; then
 8941:   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 8942: else
 8943: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8944: for as_dir in $PATH
 8945: do
 8946:   IFS=$as_save_IFS
 8947:   test -z "$as_dir" && as_dir=.
 8948:     for ac_exec_ext in '' $ac_executable_extensions; do
 8949:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8950:     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 8951:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8952:     break 2
 8953:   fi
 8954: done
 8955:   done
 8956: IFS=$as_save_IFS
 8957: 
 8958: fi
 8959: fi
 8960: NMEDIT=$ac_cv_prog_NMEDIT
 8961: if test -n "$NMEDIT"; then
 8962:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 8963: $as_echo "$NMEDIT" >&6; }
 8964: else
 8965:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8966: $as_echo "no" >&6; }
 8967: fi
 8968: 
 8969: 
 8970: fi
 8971: if test -z "$ac_cv_prog_NMEDIT"; then
 8972:   ac_ct_NMEDIT=$NMEDIT
 8973:   # Extract the first word of "nmedit", so it can be a program name with args.
 8974: set dummy nmedit; ac_word=$2
 8975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 8976: $as_echo_n "checking for $ac_word... " >&6; }
 8977: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 8978:   $as_echo_n "(cached) " >&6
 8979: else
 8980:   if test -n "$ac_ct_NMEDIT"; then
 8981:   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 8982: else
 8983: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8984: for as_dir in $PATH
 8985: do
 8986:   IFS=$as_save_IFS
 8987:   test -z "$as_dir" && as_dir=.
 8988:     for ac_exec_ext in '' $ac_executable_extensions; do
 8989:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 8990:     ac_cv_prog_ac_ct_NMEDIT="nmedit"
 8991:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 8992:     break 2
 8993:   fi
 8994: done
 8995:   done
 8996: IFS=$as_save_IFS
 8997: 
 8998: fi
 8999: fi
 9000: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 9001: if test -n "$ac_ct_NMEDIT"; then
 9002:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 9003: $as_echo "$ac_ct_NMEDIT" >&6; }
 9004: else
 9005:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9006: $as_echo "no" >&6; }
 9007: fi
 9008: 
 9009:   if test "x$ac_ct_NMEDIT" = x; then
 9010:     NMEDIT=":"
 9011:   else
 9012:     case $cross_compiling:$ac_tool_warned in
 9013: yes:)
 9014: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 9015: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 9016: ac_tool_warned=yes ;;
 9017: esac
 9018:     NMEDIT=$ac_ct_NMEDIT
 9019:   fi
 9020: else
 9021:   NMEDIT="$ac_cv_prog_NMEDIT"
 9022: fi
 9023: 
 9024:     if test -n "$ac_tool_prefix"; then
 9025:   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 9026: set dummy ${ac_tool_prefix}lipo; ac_word=$2
 9027: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 9028: $as_echo_n "checking for $ac_word... " >&6; }
 9029: if ${ac_cv_prog_LIPO+:} false; then :
 9030:   $as_echo_n "(cached) " >&6
 9031: else
 9032:   if test -n "$LIPO"; then
 9033:   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 9034: else
 9035: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 9036: for as_dir in $PATH
 9037: do
 9038:   IFS=$as_save_IFS
 9039:   test -z "$as_dir" && as_dir=.
 9040:     for ac_exec_ext in '' $ac_executable_extensions; do
 9041:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 9042:     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 9043:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 9044:     break 2
 9045:   fi
 9046: done
 9047:   done
 9048: IFS=$as_save_IFS
 9049: 
 9050: fi
 9051: fi
 9052: LIPO=$ac_cv_prog_LIPO
 9053: if test -n "$LIPO"; then
 9054:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 9055: $as_echo "$LIPO" >&6; }
 9056: else
 9057:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9058: $as_echo "no" >&6; }
 9059: fi
 9060: 
 9061: 
 9062: fi
 9063: if test -z "$ac_cv_prog_LIPO"; then
 9064:   ac_ct_LIPO=$LIPO
 9065:   # Extract the first word of "lipo", so it can be a program name with args.
 9066: set dummy lipo; ac_word=$2
 9067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 9068: $as_echo_n "checking for $ac_word... " >&6; }
 9069: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 9070:   $as_echo_n "(cached) " >&6
 9071: else
 9072:   if test -n "$ac_ct_LIPO"; then
 9073:   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 9074: else
 9075: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 9076: for as_dir in $PATH
 9077: do
 9078:   IFS=$as_save_IFS
 9079:   test -z "$as_dir" && as_dir=.
 9080:     for ac_exec_ext in '' $ac_executable_extensions; do
 9081:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 9082:     ac_cv_prog_ac_ct_LIPO="lipo"
 9083:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 9084:     break 2
 9085:   fi
 9086: done
 9087:   done
 9088: IFS=$as_save_IFS
 9089: 
 9090: fi
 9091: fi
 9092: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 9093: if test -n "$ac_ct_LIPO"; then
 9094:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 9095: $as_echo "$ac_ct_LIPO" >&6; }
 9096: else
 9097:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9098: $as_echo "no" >&6; }
 9099: fi
 9100: 
 9101:   if test "x$ac_ct_LIPO" = x; then
 9102:     LIPO=":"
 9103:   else
 9104:     case $cross_compiling:$ac_tool_warned in
 9105: yes:)
 9106: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 9107: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 9108: ac_tool_warned=yes ;;
 9109: esac
 9110:     LIPO=$ac_ct_LIPO
 9111:   fi
 9112: else
 9113:   LIPO="$ac_cv_prog_LIPO"
 9114: fi
 9115: 
 9116:     if test -n "$ac_tool_prefix"; then
 9117:   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 9118: set dummy ${ac_tool_prefix}otool; ac_word=$2
 9119: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 9120: $as_echo_n "checking for $ac_word... " >&6; }
 9121: if ${ac_cv_prog_OTOOL+:} false; then :
 9122:   $as_echo_n "(cached) " >&6
 9123: else
 9124:   if test -n "$OTOOL"; then
 9125:   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 9126: else
 9127: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 9128: for as_dir in $PATH
 9129: do
 9130:   IFS=$as_save_IFS
 9131:   test -z "$as_dir" && as_dir=.
 9132:     for ac_exec_ext in '' $ac_executable_extensions; do
 9133:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 9134:     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 9135:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 9136:     break 2
 9137:   fi
 9138: done
 9139:   done
 9140: IFS=$as_save_IFS
 9141: 
 9142: fi
 9143: fi
 9144: OTOOL=$ac_cv_prog_OTOOL
 9145: if test -n "$OTOOL"; then
 9146:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 9147: $as_echo "$OTOOL" >&6; }
 9148: else
 9149:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9150: $as_echo "no" >&6; }
 9151: fi
 9152: 
 9153: 
 9154: fi
 9155: if test -z "$ac_cv_prog_OTOOL"; then
 9156:   ac_ct_OTOOL=$OTOOL
 9157:   # Extract the first word of "otool", so it can be a program name with args.
 9158: set dummy otool; ac_word=$2
 9159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 9160: $as_echo_n "checking for $ac_word... " >&6; }
 9161: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 9162:   $as_echo_n "(cached) " >&6
 9163: else
 9164:   if test -n "$ac_ct_OTOOL"; then
 9165:   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 9166: else
 9167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 9168: for as_dir in $PATH
 9169: do
 9170:   IFS=$as_save_IFS
 9171:   test -z "$as_dir" && as_dir=.
 9172:     for ac_exec_ext in '' $ac_executable_extensions; do
 9173:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 9174:     ac_cv_prog_ac_ct_OTOOL="otool"
 9175:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 9176:     break 2
 9177:   fi
 9178: done
 9179:   done
 9180: IFS=$as_save_IFS
 9181: 
 9182: fi
 9183: fi
 9184: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 9185: if test -n "$ac_ct_OTOOL"; then
 9186:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 9187: $as_echo "$ac_ct_OTOOL" >&6; }
 9188: else
 9189:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9190: $as_echo "no" >&6; }
 9191: fi
 9192: 
 9193:   if test "x$ac_ct_OTOOL" = x; then
 9194:     OTOOL=":"
 9195:   else
 9196:     case $cross_compiling:$ac_tool_warned in
 9197: yes:)
 9198: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 9199: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 9200: ac_tool_warned=yes ;;
 9201: esac
 9202:     OTOOL=$ac_ct_OTOOL
 9203:   fi
 9204: else
 9205:   OTOOL="$ac_cv_prog_OTOOL"
 9206: fi
 9207: 
 9208:     if test -n "$ac_tool_prefix"; then
 9209:   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 9210: set dummy ${ac_tool_prefix}otool64; ac_word=$2
 9211: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 9212: $as_echo_n "checking for $ac_word... " >&6; }
 9213: if ${ac_cv_prog_OTOOL64+:} false; then :
 9214:   $as_echo_n "(cached) " >&6
 9215: else
 9216:   if test -n "$OTOOL64"; then
 9217:   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 9218: else
 9219: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 9220: for as_dir in $PATH
 9221: do
 9222:   IFS=$as_save_IFS
 9223:   test -z "$as_dir" && as_dir=.
 9224:     for ac_exec_ext in '' $ac_executable_extensions; do
 9225:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 9226:     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 9227:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 9228:     break 2
 9229:   fi
 9230: done
 9231:   done
 9232: IFS=$as_save_IFS
 9233: 
 9234: fi
 9235: fi
 9236: OTOOL64=$ac_cv_prog_OTOOL64
 9237: if test -n "$OTOOL64"; then
 9238:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 9239: $as_echo "$OTOOL64" >&6; }
 9240: else
 9241:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9242: $as_echo "no" >&6; }
 9243: fi
 9244: 
 9245: 
 9246: fi
 9247: if test -z "$ac_cv_prog_OTOOL64"; then
 9248:   ac_ct_OTOOL64=$OTOOL64
 9249:   # Extract the first word of "otool64", so it can be a program name with args.
 9250: set dummy otool64; ac_word=$2
 9251: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 9252: $as_echo_n "checking for $ac_word... " >&6; }
 9253: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 9254:   $as_echo_n "(cached) " >&6
 9255: else
 9256:   if test -n "$ac_ct_OTOOL64"; then
 9257:   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 9258: else
 9259: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 9260: for as_dir in $PATH
 9261: do
 9262:   IFS=$as_save_IFS
 9263:   test -z "$as_dir" && as_dir=.
 9264:     for ac_exec_ext in '' $ac_executable_extensions; do
 9265:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 9266:     ac_cv_prog_ac_ct_OTOOL64="otool64"
 9267:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 9268:     break 2
 9269:   fi
 9270: done
 9271:   done
 9272: IFS=$as_save_IFS
 9273: 
 9274: fi
 9275: fi
 9276: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 9277: if test -n "$ac_ct_OTOOL64"; then
 9278:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 9279: $as_echo "$ac_ct_OTOOL64" >&6; }
 9280: else
 9281:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9282: $as_echo "no" >&6; }
 9283: fi
 9284: 
 9285:   if test "x$ac_ct_OTOOL64" = x; then
 9286:     OTOOL64=":"
 9287:   else
 9288:     case $cross_compiling:$ac_tool_warned in
 9289: yes:)
 9290: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 9291: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 9292: ac_tool_warned=yes ;;
 9293: esac
 9294:     OTOOL64=$ac_ct_OTOOL64
 9295:   fi
 9296: else
 9297:   OTOOL64="$ac_cv_prog_OTOOL64"
 9298: fi
 9299: 
 9300: 
 9301: 
 9302: 
 9303: 
 9304: 
 9305: 
 9306: 
 9307: 
 9308: 
 9309: 
 9310: 
 9311: 
 9312: 
 9313: 
 9314: 
 9315: 
 9316: 
 9317: 
 9318: 
 9319: 
 9320: 
 9321: 
 9322: 
 9323: 
 9324: 
 9325: 
 9326:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 9327: $as_echo_n "checking for -single_module linker flag... " >&6; }
 9328: if ${lt_cv_apple_cc_single_mod+:} false; then :
 9329:   $as_echo_n "(cached) " >&6
 9330: else
 9331:   lt_cv_apple_cc_single_mod=no
 9332:       if test -z "${LT_MULTI_MODULE}"; then
 9333: 	# By default we will add the -single_module flag. You can override
 9334: 	# by either setting the environment variable LT_MULTI_MODULE
 9335: 	# non-empty at configure time, or by adding -multi_module to the
 9336: 	# link flags.
 9337: 	rm -rf libconftest.dylib*
 9338: 	echo "int foo(void){return 1;}" > conftest.c
 9339: 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 9340: -dynamiclib -Wl,-single_module conftest.c" >&5
 9341: 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 9342: 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 9343:         _lt_result=$?
 9344: 	# If there is a non-empty error log, and "single_module"
 9345: 	# appears in it, assume the flag caused a linker warning
 9346:         if test -s conftest.err && $GREP single_module conftest.err; then
 9347: 	  cat conftest.err >&5
 9348: 	# Otherwise, if the output was created with a 0 exit code from
 9349: 	# the compiler, it worked.
 9350: 	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 9351: 	  lt_cv_apple_cc_single_mod=yes
 9352: 	else
 9353: 	  cat conftest.err >&5
 9354: 	fi
 9355: 	rm -rf libconftest.dylib*
 9356: 	rm -f conftest.*
 9357:       fi
 9358: fi
 9359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 9360: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 9361: 
 9362:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 9363: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 9364: if ${lt_cv_ld_exported_symbols_list+:} false; then :
 9365:   $as_echo_n "(cached) " >&6
 9366: else
 9367:   lt_cv_ld_exported_symbols_list=no
 9368:       save_LDFLAGS=$LDFLAGS
 9369:       echo "_main" > conftest.sym
 9370:       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 9371:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 9372: /* end confdefs.h.  */
 9373: 
 9374: int
 9375: main ()
 9376: {
 9377: 
 9378:   ;
 9379:   return 0;
 9380: }
 9381: _ACEOF
 9382: if ac_fn_c_try_link "$LINENO"; then :
 9383:   lt_cv_ld_exported_symbols_list=yes
 9384: else
 9385:   lt_cv_ld_exported_symbols_list=no
 9386: fi
 9387: rm -f core conftest.err conftest.$ac_objext \
 9388:     conftest$ac_exeext conftest.$ac_ext
 9389: 	LDFLAGS="$save_LDFLAGS"
 9390: 
 9391: fi
 9392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 9393: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 9394: 
 9395:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 9396: $as_echo_n "checking for -force_load linker flag... " >&6; }
 9397: if ${lt_cv_ld_force_load+:} false; then :
 9398:   $as_echo_n "(cached) " >&6
 9399: else
 9400:   lt_cv_ld_force_load=no
 9401:       cat > conftest.c << _LT_EOF
 9402: int forced_loaded() { return 2;}
 9403: _LT_EOF
 9404:       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 9405:       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 9406:       echo "$AR cru libconftest.a conftest.o" >&5
 9407:       $AR cru libconftest.a conftest.o 2>&5
 9408:       echo "$RANLIB libconftest.a" >&5
 9409:       $RANLIB libconftest.a 2>&5
 9410:       cat > conftest.c << _LT_EOF
 9411: int main() { return 0;}
 9412: _LT_EOF
 9413:       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 9414:       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 9415:       _lt_result=$?
 9416:       if test -s conftest.err && $GREP force_load conftest.err; then
 9417: 	cat conftest.err >&5
 9418:       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 9419: 	lt_cv_ld_force_load=yes
 9420:       else
 9421: 	cat conftest.err >&5
 9422:       fi
 9423:         rm -f conftest.err libconftest.a conftest conftest.c
 9424:         rm -rf conftest.dSYM
 9425: 
 9426: fi
 9427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 9428: $as_echo "$lt_cv_ld_force_load" >&6; }
 9429:     case $host_os in
 9430:     rhapsody* | darwin1.[012])
 9431:       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 9432:     darwin1.*)
 9433:       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 9434:     darwin*) # darwin 5.x on
 9435:       # if running on 10.5 or later, the deployment target defaults
 9436:       # to the OS version, if on x86, and 10.4, the deployment
 9437:       # target defaults to 10.4. Don't you love it?
 9438:       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 9439: 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 9440: 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 9441: 	10.[012]*)
 9442: 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 9443: 	10.*)
 9444: 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 9445:       esac
 9446:     ;;
 9447:   esac
 9448:     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 9449:       _lt_dar_single_mod='$single_module'
 9450:     fi
 9451:     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 9452:       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 9453:     else
 9454:       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 9455:     fi
 9456:     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 9457:       _lt_dsymutil='~$DSYMUTIL $lib || :'
 9458:     else
 9459:       _lt_dsymutil=
 9460:     fi
 9461:     ;;
 9462:   esac
 9463: 
 9464: 
 9465: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 9466: $as_echo_n "checking for ANSI C header files... " >&6; }
 9467: if ${ac_cv_header_stdc+:} false; then :
 9468:   $as_echo_n "(cached) " >&6
 9469: else
 9470:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 9471: /* end confdefs.h.  */
 9472: #include <stdlib.h>
 9473: #include <stdarg.h>
 9474: #include <string.h>
 9475: #include <float.h>
 9476: 
 9477: int
 9478: main ()
 9479: {
 9480: 
 9481:   ;
 9482:   return 0;
 9483: }
 9484: _ACEOF
 9485: if ac_fn_c_try_compile "$LINENO"; then :
 9486:   ac_cv_header_stdc=yes
 9487: else
 9488:   ac_cv_header_stdc=no
 9489: fi
 9490: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 9491: 
 9492: if test $ac_cv_header_stdc = yes; then
 9493:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 9494:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 9495: /* end confdefs.h.  */
 9496: #include <string.h>
 9497: 
 9498: _ACEOF
 9499: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 9500:   $EGREP "memchr" >/dev/null 2>&1; then :
 9501: 
 9502: else
 9503:   ac_cv_header_stdc=no
 9504: fi
 9505: rm -f conftest*
 9506: 
 9507: fi
 9508: 
 9509: if test $ac_cv_header_stdc = yes; then
 9510:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 9511:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 9512: /* end confdefs.h.  */
 9513: #include <stdlib.h>
 9514: 
 9515: _ACEOF
 9516: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 9517:   $EGREP "free" >/dev/null 2>&1; then :
 9518: 
 9519: else
 9520:   ac_cv_header_stdc=no
 9521: fi
 9522: rm -f conftest*
 9523: 
 9524: fi
 9525: 
 9526: if test $ac_cv_header_stdc = yes; then
 9527:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 9528:   if test "$cross_compiling" = yes; then :
 9529:   :
 9530: else
 9531:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 9532: /* end confdefs.h.  */
 9533: #include <ctype.h>
 9534: #include <stdlib.h>
 9535: #if ((' ' & 0x0FF) == 0x020)
 9536: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 9537: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 9538: #else
 9539: # define ISLOWER(c) \
 9540: 		   (('a' <= (c) && (c) <= 'i') \
 9541: 		     || ('j' <= (c) && (c) <= 'r') \
 9542: 		     || ('s' <= (c) && (c) <= 'z'))
 9543: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 9544: #endif
 9545: 
 9546: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 9547: int
 9548: main ()
 9549: {
 9550:   int i;
 9551:   for (i = 0; i < 256; i++)
 9552:     if (XOR (islower (i), ISLOWER (i))
 9553: 	|| toupper (i) != TOUPPER (i))
 9554:       return 2;
 9555:   return 0;
 9556: }
 9557: _ACEOF
 9558: if ac_fn_c_try_run "$LINENO"; then :
 9559: 
 9560: else
 9561:   ac_cv_header_stdc=no
 9562: fi
 9563: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 9564:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 9565: fi
 9566: 
 9567: fi
 9568: fi
 9569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 9570: $as_echo "$ac_cv_header_stdc" >&6; }
 9571: if test $ac_cv_header_stdc = yes; then
 9572: 
 9573: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 9574: 
 9575: fi
 9576: 
 9577: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 9578: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 9579: 		  inttypes.h stdint.h unistd.h
 9580: do :
 9581:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 9582: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 9583: "
 9584: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 9585:   cat >>confdefs.h <<_ACEOF
 9586: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 9587: _ACEOF
 9588: 
 9589: fi
 9590: 
 9591: done
 9592: 
 9593: 
 9594: for ac_header in dlfcn.h
 9595: do :
 9596:   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 9597: "
 9598: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 9599:   cat >>confdefs.h <<_ACEOF
 9600: #define HAVE_DLFCN_H 1
 9601: _ACEOF
 9602: 
 9603: fi
 9604: 
 9605: done
 9606: 
 9607: 
 9608: 
 9609: 
 9610: 
 9611: # Set options
 9612: enable_dlopen=yes
 9613: 
 9614: 
 9615: 
 9616: 
 9617:   enable_win32_dll=no
 9618: 
 9619: 
 9620:             # Check whether --enable-shared was given.
 9621: if test "${enable_shared+set}" = set; then :
 9622:   enableval=$enable_shared; p=${PACKAGE-default}
 9623:     case $enableval in
 9624:     yes) enable_shared=yes ;;
 9625:     no) enable_shared=no ;;
 9626:     *)
 9627:       enable_shared=no
 9628:       # Look at the argument we got.  We use all the common list separators.
 9629:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 9630:       for pkg in $enableval; do
 9631: 	IFS="$lt_save_ifs"
 9632: 	if test "X$pkg" = "X$p"; then
 9633: 	  enable_shared=yes
 9634: 	fi
 9635:       done
 9636:       IFS="$lt_save_ifs"
 9637:       ;;
 9638:     esac
 9639: else
 9640:   enable_shared=yes
 9641: fi
 9642: 
 9643: 
 9644: 
 9645: 
 9646: 
 9647: 
 9648: 
 9649: 
 9650: 
 9651:   # Check whether --enable-static was given.
 9652: if test "${enable_static+set}" = set; then :
 9653:   enableval=$enable_static; p=${PACKAGE-default}
 9654:     case $enableval in
 9655:     yes) enable_static=yes ;;
 9656:     no) enable_static=no ;;
 9657:     *)
 9658:      enable_static=no
 9659:       # Look at the argument we got.  We use all the common list separators.
 9660:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 9661:       for pkg in $enableval; do
 9662: 	IFS="$lt_save_ifs"
 9663: 	if test "X$pkg" = "X$p"; then
 9664: 	  enable_static=yes
 9665: 	fi
 9666:       done
 9667:       IFS="$lt_save_ifs"
 9668:       ;;
 9669:     esac
 9670: else
 9671:   enable_static=yes
 9672: fi
 9673: 
 9674: 
 9675: 
 9676: 
 9677: 
 9678: 
 9679: 
 9680: 
 9681: 
 9682: 
 9683: # Check whether --with-pic was given.
 9684: if test "${with_pic+set}" = set; then :
 9685:   withval=$with_pic; lt_p=${PACKAGE-default}
 9686:     case $withval in
 9687:     yes|no) pic_mode=$withval ;;
 9688:     *)
 9689:       pic_mode=default
 9690:       # Look at the argument we got.  We use all the common list separators.
 9691:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 9692:       for lt_pkg in $withval; do
 9693: 	IFS="$lt_save_ifs"
 9694: 	if test "X$lt_pkg" = "X$lt_p"; then
 9695: 	  pic_mode=yes
 9696: 	fi
 9697:       done
 9698:       IFS="$lt_save_ifs"
 9699:       ;;
 9700:     esac
 9701: else
 9702:   pic_mode=default
 9703: fi
 9704: 
 9705: 
 9706: test -z "$pic_mode" && pic_mode=default
 9707: 
 9708: 
 9709: 
 9710: 
 9711: 
 9712: 
 9713: 
 9714:   # Check whether --enable-fast-install was given.
 9715: if test "${enable_fast_install+set}" = set; then :
 9716:   enableval=$enable_fast_install; p=${PACKAGE-default}
 9717:     case $enableval in
 9718:     yes) enable_fast_install=yes ;;
 9719:     no) enable_fast_install=no ;;
 9720:     *)
 9721:       enable_fast_install=no
 9722:       # Look at the argument we got.  We use all the common list separators.
 9723:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 9724:       for pkg in $enableval; do
 9725: 	IFS="$lt_save_ifs"
 9726: 	if test "X$pkg" = "X$p"; then
 9727: 	  enable_fast_install=yes
 9728: 	fi
 9729:       done
 9730:       IFS="$lt_save_ifs"
 9731:       ;;
 9732:     esac
 9733: else
 9734:   enable_fast_install=yes
 9735: fi
 9736: 
 9737: 
 9738: 
 9739: 
 9740: 
 9741: 
 9742: 
 9743: 
 9744: 
 9745: 
 9746: 
 9747: # This can be used to rebuild libtool when needed
 9748: LIBTOOL_DEPS="$ltmain"
 9749: 
 9750: # Always use our own libtool.
 9751: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 9752: 
 9753: 
 9754: 
 9755: 
 9756: 
 9757: 
 9758: 
 9759: 
 9760: 
 9761: 
 9762: 
 9763: 
 9764: 
 9765: 
 9766: 
 9767: 
 9768: 
 9769: 
 9770: 
 9771: 
 9772: 
 9773: 
 9774: 
 9775: 
 9776: 
 9777: 
 9778: 
 9779: 
 9780: 
 9781: 
 9782: test -z "$LN_S" && LN_S="ln -s"
 9783: 
 9784: 
 9785: 
 9786: 
 9787: 
 9788: 
 9789: 
 9790: 
 9791: 
 9792: 
 9793: 
 9794: 
 9795: 
 9796: 
 9797: if test -n "${ZSH_VERSION+set}" ; then
 9798:    setopt NO_GLOB_SUBST
 9799: fi
 9800: 
 9801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 9802: $as_echo_n "checking for objdir... " >&6; }
 9803: if ${lt_cv_objdir+:} false; then :
 9804:   $as_echo_n "(cached) " >&6
 9805: else
 9806:   rm -f .libs 2>/dev/null
 9807: mkdir .libs 2>/dev/null
 9808: if test -d .libs; then
 9809:   lt_cv_objdir=.libs
 9810: else
 9811:   # MS-DOS does not allow filenames that begin with a dot.
 9812:   lt_cv_objdir=_libs
 9813: fi
 9814: rmdir .libs 2>/dev/null
 9815: fi
 9816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 9817: $as_echo "$lt_cv_objdir" >&6; }
 9818: objdir=$lt_cv_objdir
 9819: 
 9820: 
 9821: 
 9822: 
 9823: 
 9824: cat >>confdefs.h <<_ACEOF
 9825: #define LT_OBJDIR "$lt_cv_objdir/"
 9826: _ACEOF
 9827: 
 9828: 
 9829: 
 9830: 
 9831: case $host_os in
 9832: aix3*)
 9833:   # AIX sometimes has problems with the GCC collect2 program.  For some
 9834:   # reason, if we set the COLLECT_NAMES environment variable, the problems
 9835:   # vanish in a puff of smoke.
 9836:   if test "X${COLLECT_NAMES+set}" != Xset; then
 9837:     COLLECT_NAMES=
 9838:     export COLLECT_NAMES
 9839:   fi
 9840:   ;;
 9841: esac
 9842: 
 9843: # Global variables:
 9844: ofile=libtool
 9845: can_build_shared=yes
 9846: 
 9847: # All known linkers require a `.a' archive for static linking (except MSVC,
 9848: # which needs '.lib').
 9849: libext=a
 9850: 
 9851: with_gnu_ld="$lt_cv_prog_gnu_ld"
 9852: 
 9853: old_CC="$CC"
 9854: old_CFLAGS="$CFLAGS"
 9855: 
 9856: # Set sane defaults for various variables
 9857: test -z "$CC" && CC=cc
 9858: test -z "$LTCC" && LTCC=$CC
 9859: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 9860: test -z "$LD" && LD=ld
 9861: test -z "$ac_objext" && ac_objext=o
 9862: 
 9863: for cc_temp in $compiler""; do
 9864:   case $cc_temp in
 9865:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 9866:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 9867:     \-*) ;;
 9868:     *) break;;
 9869:   esac
 9870: done
 9871: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 9872: 
 9873: 
 9874: # Only perform the check for file, if the check method requires it
 9875: test -z "$MAGIC_CMD" && MAGIC_CMD=file
 9876: case $deplibs_check_method in
 9877: file_magic*)
 9878:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 9879:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 9880: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 9881: if ${lt_cv_path_MAGIC_CMD+:} false; then :
 9882:   $as_echo_n "(cached) " >&6
 9883: else
 9884:   case $MAGIC_CMD in
 9885: [\\/*] |  ?:[\\/]*)
 9886:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 9887:   ;;
 9888: *)
 9889:   lt_save_MAGIC_CMD="$MAGIC_CMD"
 9890:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 9891:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 9892:   for ac_dir in $ac_dummy; do
 9893:     IFS="$lt_save_ifs"
 9894:     test -z "$ac_dir" && ac_dir=.
 9895:     if test -f $ac_dir/${ac_tool_prefix}file; then
 9896:       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 9897:       if test -n "$file_magic_test_file"; then
 9898: 	case $deplibs_check_method in
 9899: 	"file_magic "*)
 9900: 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 9901: 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 9902: 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 9903: 	    $EGREP "$file_magic_regex" > /dev/null; then
 9904: 	    :
 9905: 	  else
 9906: 	    cat <<_LT_EOF 1>&2
 9907: 
 9908: *** Warning: the command libtool uses to detect shared libraries,
 9909: *** $file_magic_cmd, produces output that libtool cannot recognize.
 9910: *** The result is that libtool may fail to recognize shared libraries
 9911: *** as such.  This will affect the creation of libtool libraries that
 9912: *** depend on shared libraries, but programs linked with such libtool
 9913: *** libraries will work regardless of this problem.  Nevertheless, you
 9914: *** may want to report the problem to your system manager and/or to
 9915: *** bug-libtool@gnu.org
 9916: 
 9917: _LT_EOF
 9918: 	  fi ;;
 9919: 	esac
 9920:       fi
 9921:       break
 9922:     fi
 9923:   done
 9924:   IFS="$lt_save_ifs"
 9925:   MAGIC_CMD="$lt_save_MAGIC_CMD"
 9926:   ;;
 9927: esac
 9928: fi
 9929: 
 9930: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 9931: if test -n "$MAGIC_CMD"; then
 9932:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 9933: $as_echo "$MAGIC_CMD" >&6; }
 9934: else
 9935:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9936: $as_echo "no" >&6; }
 9937: fi
 9938: 
 9939: 
 9940: 
 9941: 
 9942: 
 9943: if test -z "$lt_cv_path_MAGIC_CMD"; then
 9944:   if test -n "$ac_tool_prefix"; then
 9945:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 9946: $as_echo_n "checking for file... " >&6; }
 9947: if ${lt_cv_path_MAGIC_CMD+:} false; then :
 9948:   $as_echo_n "(cached) " >&6
 9949: else
 9950:   case $MAGIC_CMD in
 9951: [\\/*] |  ?:[\\/]*)
 9952:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 9953:   ;;
 9954: *)
 9955:   lt_save_MAGIC_CMD="$MAGIC_CMD"
 9956:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 9957:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 9958:   for ac_dir in $ac_dummy; do
 9959:     IFS="$lt_save_ifs"
 9960:     test -z "$ac_dir" && ac_dir=.
 9961:     if test -f $ac_dir/file; then
 9962:       lt_cv_path_MAGIC_CMD="$ac_dir/file"
 9963:       if test -n "$file_magic_test_file"; then
 9964: 	case $deplibs_check_method in
 9965: 	"file_magic "*)
 9966: 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 9967: 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 9968: 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 9969: 	    $EGREP "$file_magic_regex" > /dev/null; then
 9970: 	    :
 9971: 	  else
 9972: 	    cat <<_LT_EOF 1>&2
 9973: 
 9974: *** Warning: the command libtool uses to detect shared libraries,
 9975: *** $file_magic_cmd, produces output that libtool cannot recognize.
 9976: *** The result is that libtool may fail to recognize shared libraries
 9977: *** as such.  This will affect the creation of libtool libraries that
 9978: *** depend on shared libraries, but programs linked with such libtool
 9979: *** libraries will work regardless of this problem.  Nevertheless, you
 9980: *** may want to report the problem to your system manager and/or to
 9981: *** bug-libtool@gnu.org
 9982: 
 9983: _LT_EOF
 9984: 	  fi ;;
 9985: 	esac
 9986:       fi
 9987:       break
 9988:     fi
 9989:   done
 9990:   IFS="$lt_save_ifs"
 9991:   MAGIC_CMD="$lt_save_MAGIC_CMD"
 9992:   ;;
 9993: esac
 9994: fi
 9995: 
 9996: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 9997: if test -n "$MAGIC_CMD"; then
 9998:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 9999: $as_echo "$MAGIC_CMD" >&6; }
10000: else
10001:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002: $as_echo "no" >&6; }
10003: fi
10004: 
10005: 
10006:   else
10007:     MAGIC_CMD=:
10008:   fi
10009: fi
10010: 
10011:   fi
10012:   ;;
10013: esac
10014: 
10015: # Use C for the default configuration in the libtool script
10016: 
10017: lt_save_CC="$CC"
10018: ac_ext=c
10019: ac_cpp='$CPP $CPPFLAGS'
10020: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10021: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10022: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10023: 
10024: 
10025: # Source file extension for C test sources.
10026: ac_ext=c
10027: 
10028: # Object file extension for compiled C test sources.
10029: objext=o
10030: objext=$objext
10031: 
10032: # Code to be used in simple compile tests
10033: lt_simple_compile_test_code="int some_variable = 0;"
10034: 
10035: # Code to be used in simple link tests
10036: lt_simple_link_test_code='int main(){return(0);}'
10037: 
10038: 
10039: 
10040: 
10041: 
10042: 
10043: 
10044: # If no C compiler was specified, use CC.
10045: LTCC=${LTCC-"$CC"}
10046: 
10047: # If no C compiler flags were specified, use CFLAGS.
10048: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10049: 
10050: # Allow CC to be a program name with arguments.
10051: compiler=$CC
10052: 
10053: # Save the default compiler, since it gets overwritten when the other
10054: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10055: compiler_DEFAULT=$CC
10056: 
10057: # save warnings/boilerplate of simple test code
10058: ac_outfile=conftest.$ac_objext
10059: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10060: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10061: _lt_compiler_boilerplate=`cat conftest.err`
10062: $RM conftest*
10063: 
10064: ac_outfile=conftest.$ac_objext
10065: echo "$lt_simple_link_test_code" >conftest.$ac_ext
10066: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10067: _lt_linker_boilerplate=`cat conftest.err`
10068: $RM -r conftest*
10069: 
10070: 
10071: ## CAVEAT EMPTOR:
10072: ## There is no encapsulation within the following macros, do not change
10073: ## the running order or otherwise move them around unless you know exactly
10074: ## what you are doing...
10075: if test -n "$compiler"; then
10076: 
10077: lt_prog_compiler_no_builtin_flag=
10078: 
10079: if test "$GCC" = yes; then
10080:   case $cc_basename in
10081:   nvcc*)
10082:     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10083:   *)
10084:     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10085:   esac
10086: 
10087:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10088: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10089: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10090:   $as_echo_n "(cached) " >&6
10091: else
10092:   lt_cv_prog_compiler_rtti_exceptions=no
10093:    ac_outfile=conftest.$ac_objext
10094:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10095:    lt_compiler_flag="-fno-rtti -fno-exceptions"
10096:    # Insert the option either (1) after the last *FLAGS variable, or
10097:    # (2) before a word containing "conftest.", or (3) at the end.
10098:    # Note that $ac_compile itself does not contain backslashes and begins
10099:    # with a dollar sign (not a hyphen), so the echo should work correctly.
10100:    # The option is referenced via a variable to avoid confusing sed.
10101:    lt_compile=`echo "$ac_compile" | $SED \
10102:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10103:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10104:    -e 's:$: $lt_compiler_flag:'`
10105:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10106:    (eval "$lt_compile" 2>conftest.err)
10107:    ac_status=$?
10108:    cat conftest.err >&5
10109:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110:    if (exit $ac_status) && test -s "$ac_outfile"; then
10111:      # The compiler can only warn and ignore the option if not recognized
10112:      # So say no if there are warnings other than the usual output.
10113:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10114:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10115:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10116:        lt_cv_prog_compiler_rtti_exceptions=yes
10117:      fi
10118:    fi
10119:    $RM conftest*
10120: 
10121: fi
10122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10123: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10124: 
10125: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10126:     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10127: else
10128:     :
10129: fi
10130: 
10131: fi
10132: 
10133: 
10134: 
10135: 
10136: 
10137: 
10138:   lt_prog_compiler_wl=
10139: lt_prog_compiler_pic=
10140: lt_prog_compiler_static=
10141: 
10142: 
10143:   if test "$GCC" = yes; then
10144:     lt_prog_compiler_wl='-Wl,'
10145:     lt_prog_compiler_static='-static'
10146: 
10147:     case $host_os in
10148:       aix*)
10149:       # All AIX code is PIC.
10150:       if test "$host_cpu" = ia64; then
10151: 	# AIX 5 now supports IA64 processor
10152: 	lt_prog_compiler_static='-Bstatic'
10153:       fi
10154:       ;;
10155: 
10156:     amigaos*)
10157:       case $host_cpu in
10158:       powerpc)
10159:             # see comment about AmigaOS4 .so support
10160:             lt_prog_compiler_pic='-fPIC'
10161:         ;;
10162:       m68k)
10163:             # FIXME: we need at least 68020 code to build shared libraries, but
10164:             # adding the `-m68020' flag to GCC prevents building anything better,
10165:             # like `-m68040'.
10166:             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10167:         ;;
10168:       esac
10169:       ;;
10170: 
10171:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10172:       # PIC is the default for these OSes.
10173:       ;;
10174: 
10175:     mingw* | cygwin* | pw32* | os2* | cegcc*)
10176:       # This hack is so that the source file can tell whether it is being
10177:       # built for inclusion in a dll (and should export symbols for example).
10178:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10179:       # (--disable-auto-import) libraries
10180:       lt_prog_compiler_pic='-DDLL_EXPORT'
10181:       ;;
10182: 
10183:     darwin* | rhapsody*)
10184:       # PIC is the default on this platform
10185:       # Common symbols not allowed in MH_DYLIB files
10186:       lt_prog_compiler_pic='-fno-common'
10187:       ;;
10188: 
10189:     haiku*)
10190:       # PIC is the default for Haiku.
10191:       # The "-static" flag exists, but is broken.
10192:       lt_prog_compiler_static=
10193:       ;;
10194: 
10195:     hpux*)
10196:       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10197:       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10198:       # sets the default TLS model and affects inlining.
10199:       case $host_cpu in
10200:       hppa*64*)
10201: 	# +Z the default
10202: 	;;
10203:       *)
10204: 	lt_prog_compiler_pic='-fPIC'
10205: 	;;
10206:       esac
10207:       ;;
10208: 
10209:     interix[3-9]*)
10210:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10211:       # Instead, we relocate shared libraries at runtime.
10212:       ;;
10213: 
10214:     msdosdjgpp*)
10215:       # Just because we use GCC doesn't mean we suddenly get shared libraries
10216:       # on systems that don't support them.
10217:       lt_prog_compiler_can_build_shared=no
10218:       enable_shared=no
10219:       ;;
10220: 
10221:     *nto* | *qnx*)
10222:       # QNX uses GNU C++, but need to define -shared option too, otherwise
10223:       # it will coredump.
10224:       lt_prog_compiler_pic='-fPIC -shared'
10225:       ;;
10226: 
10227:     sysv4*MP*)
10228:       if test -d /usr/nec; then
10229: 	lt_prog_compiler_pic=-Kconform_pic
10230:       fi
10231:       ;;
10232: 
10233:     *)
10234:       lt_prog_compiler_pic='-fPIC'
10235:       ;;
10236:     esac
10237: 
10238:     case $cc_basename in
10239:     nvcc*) # Cuda Compiler Driver 2.2
10240:       lt_prog_compiler_wl='-Xlinker '
10241:       if test -n "$lt_prog_compiler_pic"; then
10242:         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10243:       fi
10244:       ;;
10245:     esac
10246:   else
10247:     # PORTME Check for flag to pass linker flags through the system compiler.
10248:     case $host_os in
10249:     aix*)
10250:       lt_prog_compiler_wl='-Wl,'
10251:       if test "$host_cpu" = ia64; then
10252: 	# AIX 5 now supports IA64 processor
10253: 	lt_prog_compiler_static='-Bstatic'
10254:       else
10255: 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10256:       fi
10257:       ;;
10258: 
10259:     mingw* | cygwin* | pw32* | os2* | cegcc*)
10260:       # This hack is so that the source file can tell whether it is being
10261:       # built for inclusion in a dll (and should export symbols for example).
10262:       lt_prog_compiler_pic='-DDLL_EXPORT'
10263:       ;;
10264: 
10265:     hpux9* | hpux10* | hpux11*)
10266:       lt_prog_compiler_wl='-Wl,'
10267:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10268:       # not for PA HP-UX.
10269:       case $host_cpu in
10270:       hppa*64*|ia64*)
10271: 	# +Z the default
10272: 	;;
10273:       *)
10274: 	lt_prog_compiler_pic='+Z'
10275: 	;;
10276:       esac
10277:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10278:       lt_prog_compiler_static='${wl}-a ${wl}archive'
10279:       ;;
10280: 
10281:     irix5* | irix6* | nonstopux*)
10282:       lt_prog_compiler_wl='-Wl,'
10283:       # PIC (with -KPIC) is the default.
10284:       lt_prog_compiler_static='-non_shared'
10285:       ;;
10286: 
10287:     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10288:       case $cc_basename in
10289:       # old Intel for x86_64 which still supported -KPIC.
10290:       ecc*)
10291: 	lt_prog_compiler_wl='-Wl,'
10292: 	lt_prog_compiler_pic='-KPIC'
10293: 	lt_prog_compiler_static='-static'
10294:         ;;
10295:       # icc used to be incompatible with GCC.
10296:       # ICC 10 doesn't accept -KPIC any more.
10297:       icc* | ifort*)
10298: 	lt_prog_compiler_wl='-Wl,'
10299: 	lt_prog_compiler_pic='-fPIC'
10300: 	lt_prog_compiler_static='-static'
10301:         ;;
10302:       # Lahey Fortran 8.1.
10303:       lf95*)
10304: 	lt_prog_compiler_wl='-Wl,'
10305: 	lt_prog_compiler_pic='--shared'
10306: 	lt_prog_compiler_static='--static'
10307: 	;;
10308:       nagfor*)
10309: 	# NAG Fortran compiler
10310: 	lt_prog_compiler_wl='-Wl,-Wl,,'
10311: 	lt_prog_compiler_pic='-PIC'
10312: 	lt_prog_compiler_static='-Bstatic'
10313: 	;;
10314:       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10315:         # Portland Group compilers (*not* the Pentium gcc compiler,
10316: 	# which looks to be a dead project)
10317: 	lt_prog_compiler_wl='-Wl,'
10318: 	lt_prog_compiler_pic='-fpic'
10319: 	lt_prog_compiler_static='-Bstatic'
10320:         ;;
10321:       ccc*)
10322:         lt_prog_compiler_wl='-Wl,'
10323:         # All Alpha code is PIC.
10324:         lt_prog_compiler_static='-non_shared'
10325:         ;;
10326:       xl* | bgxl* | bgf* | mpixl*)
10327: 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10328: 	lt_prog_compiler_wl='-Wl,'
10329: 	lt_prog_compiler_pic='-qpic'
10330: 	lt_prog_compiler_static='-qstaticlink'
10331: 	;;
10332:       *)
10333: 	case `$CC -V 2>&1 | sed 5q` in
10334: 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10335: 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10336: 	  lt_prog_compiler_pic='-KPIC'
10337: 	  lt_prog_compiler_static='-Bstatic'
10338: 	  lt_prog_compiler_wl=''
10339: 	  ;;
10340: 	*Sun\ F* | *Sun*Fortran*)
10341: 	  lt_prog_compiler_pic='-KPIC'
10342: 	  lt_prog_compiler_static='-Bstatic'
10343: 	  lt_prog_compiler_wl='-Qoption ld '
10344: 	  ;;
10345: 	*Sun\ C*)
10346: 	  # Sun C 5.9
10347: 	  lt_prog_compiler_pic='-KPIC'
10348: 	  lt_prog_compiler_static='-Bstatic'
10349: 	  lt_prog_compiler_wl='-Wl,'
10350: 	  ;;
10351:         *Intel*\ [CF]*Compiler*)
10352: 	  lt_prog_compiler_wl='-Wl,'
10353: 	  lt_prog_compiler_pic='-fPIC'
10354: 	  lt_prog_compiler_static='-static'
10355: 	  ;;
10356: 	*Portland\ Group*)
10357: 	  lt_prog_compiler_wl='-Wl,'
10358: 	  lt_prog_compiler_pic='-fpic'
10359: 	  lt_prog_compiler_static='-Bstatic'
10360: 	  ;;
10361: 	esac
10362: 	;;
10363:       esac
10364:       ;;
10365: 
10366:     newsos6)
10367:       lt_prog_compiler_pic='-KPIC'
10368:       lt_prog_compiler_static='-Bstatic'
10369:       ;;
10370: 
10371:     *nto* | *qnx*)
10372:       # QNX uses GNU C++, but need to define -shared option too, otherwise
10373:       # it will coredump.
10374:       lt_prog_compiler_pic='-fPIC -shared'
10375:       ;;
10376: 
10377:     osf3* | osf4* | osf5*)
10378:       lt_prog_compiler_wl='-Wl,'
10379:       # All OSF/1 code is PIC.
10380:       lt_prog_compiler_static='-non_shared'
10381:       ;;
10382: 
10383:     rdos*)
10384:       lt_prog_compiler_static='-non_shared'
10385:       ;;
10386: 
10387:     solaris*)
10388:       lt_prog_compiler_pic='-KPIC'
10389:       lt_prog_compiler_static='-Bstatic'
10390:       case $cc_basename in
10391:       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10392: 	lt_prog_compiler_wl='-Qoption ld ';;
10393:       *)
10394: 	lt_prog_compiler_wl='-Wl,';;
10395:       esac
10396:       ;;
10397: 
10398:     sunos4*)
10399:       lt_prog_compiler_wl='-Qoption ld '
10400:       lt_prog_compiler_pic='-PIC'
10401:       lt_prog_compiler_static='-Bstatic'
10402:       ;;
10403: 
10404:     sysv4 | sysv4.2uw2* | sysv4.3*)
10405:       lt_prog_compiler_wl='-Wl,'
10406:       lt_prog_compiler_pic='-KPIC'
10407:       lt_prog_compiler_static='-Bstatic'
10408:       ;;
10409: 
10410:     sysv4*MP*)
10411:       if test -d /usr/nec ;then
10412: 	lt_prog_compiler_pic='-Kconform_pic'
10413: 	lt_prog_compiler_static='-Bstatic'
10414:       fi
10415:       ;;
10416: 
10417:     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10418:       lt_prog_compiler_wl='-Wl,'
10419:       lt_prog_compiler_pic='-KPIC'
10420:       lt_prog_compiler_static='-Bstatic'
10421:       ;;
10422: 
10423:     unicos*)
10424:       lt_prog_compiler_wl='-Wl,'
10425:       lt_prog_compiler_can_build_shared=no
10426:       ;;
10427: 
10428:     uts4*)
10429:       lt_prog_compiler_pic='-pic'
10430:       lt_prog_compiler_static='-Bstatic'
10431:       ;;
10432: 
10433:     *)
10434:       lt_prog_compiler_can_build_shared=no
10435:       ;;
10436:     esac
10437:   fi
10438: 
10439: case $host_os in
10440:   # For platforms which do not support PIC, -DPIC is meaningless:
10441:   *djgpp*)
10442:     lt_prog_compiler_pic=
10443:     ;;
10444:   *)
10445:     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10446:     ;;
10447: esac
10448: 
10449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10450: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10451: if ${lt_cv_prog_compiler_pic+:} false; then :
10452:   $as_echo_n "(cached) " >&6
10453: else
10454:   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10455: fi
10456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10457: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10458: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10459: 
10460: #
10461: # Check to make sure the PIC flag actually works.
10462: #
10463: if test -n "$lt_prog_compiler_pic"; then
10464:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10465: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10466: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10467:   $as_echo_n "(cached) " >&6
10468: else
10469:   lt_cv_prog_compiler_pic_works=no
10470:    ac_outfile=conftest.$ac_objext
10471:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10472:    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10473:    # Insert the option either (1) after the last *FLAGS variable, or
10474:    # (2) before a word containing "conftest.", or (3) at the end.
10475:    # Note that $ac_compile itself does not contain backslashes and begins
10476:    # with a dollar sign (not a hyphen), so the echo should work correctly.
10477:    # The option is referenced via a variable to avoid confusing sed.
10478:    lt_compile=`echo "$ac_compile" | $SED \
10479:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10480:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10481:    -e 's:$: $lt_compiler_flag:'`
10482:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10483:    (eval "$lt_compile" 2>conftest.err)
10484:    ac_status=$?
10485:    cat conftest.err >&5
10486:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487:    if (exit $ac_status) && test -s "$ac_outfile"; then
10488:      # The compiler can only warn and ignore the option if not recognized
10489:      # So say no if there are warnings other than the usual output.
10490:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10491:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10492:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10493:        lt_cv_prog_compiler_pic_works=yes
10494:      fi
10495:    fi
10496:    $RM conftest*
10497: 
10498: fi
10499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10500: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10501: 
10502: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10503:     case $lt_prog_compiler_pic in
10504:      "" | " "*) ;;
10505:      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10506:      esac
10507: else
10508:     lt_prog_compiler_pic=
10509:      lt_prog_compiler_can_build_shared=no
10510: fi
10511: 
10512: fi
10513: 
10514: 
10515: 
10516: 
10517: 
10518: 
10519: 
10520: 
10521: 
10522: 
10523: 
10524: #
10525: # Check to make sure the static flag actually works.
10526: #
10527: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10529: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10530: if ${lt_cv_prog_compiler_static_works+:} false; then :
10531:   $as_echo_n "(cached) " >&6
10532: else
10533:   lt_cv_prog_compiler_static_works=no
10534:    save_LDFLAGS="$LDFLAGS"
10535:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10536:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10537:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10538:      # The linker can only warn and ignore the option if not recognized
10539:      # So say no if there are warnings
10540:      if test -s conftest.err; then
10541:        # Append any errors to the config.log.
10542:        cat conftest.err 1>&5
10543:        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10544:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10545:        if diff conftest.exp conftest.er2 >/dev/null; then
10546:          lt_cv_prog_compiler_static_works=yes
10547:        fi
10548:      else
10549:        lt_cv_prog_compiler_static_works=yes
10550:      fi
10551:    fi
10552:    $RM -r conftest*
10553:    LDFLAGS="$save_LDFLAGS"
10554: 
10555: fi
10556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10557: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10558: 
10559: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10560:     :
10561: else
10562:     lt_prog_compiler_static=
10563: fi
10564: 
10565: 
10566: 
10567: 
10568: 
10569: 
10570: 
10571:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10572: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10573: if ${lt_cv_prog_compiler_c_o+:} false; then :
10574:   $as_echo_n "(cached) " >&6
10575: else
10576:   lt_cv_prog_compiler_c_o=no
10577:    $RM -r conftest 2>/dev/null
10578:    mkdir conftest
10579:    cd conftest
10580:    mkdir out
10581:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10582: 
10583:    lt_compiler_flag="-o out/conftest2.$ac_objext"
10584:    # Insert the option either (1) after the last *FLAGS variable, or
10585:    # (2) before a word containing "conftest.", or (3) at the end.
10586:    # Note that $ac_compile itself does not contain backslashes and begins
10587:    # with a dollar sign (not a hyphen), so the echo should work correctly.
10588:    lt_compile=`echo "$ac_compile" | $SED \
10589:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10590:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10591:    -e 's:$: $lt_compiler_flag:'`
10592:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10593:    (eval "$lt_compile" 2>out/conftest.err)
10594:    ac_status=$?
10595:    cat out/conftest.err >&5
10596:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10598:    then
10599:      # The compiler can only warn and ignore the option if not recognized
10600:      # So say no if there are warnings
10601:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10602:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10603:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10604:        lt_cv_prog_compiler_c_o=yes
10605:      fi
10606:    fi
10607:    chmod u+w . 2>&5
10608:    $RM conftest*
10609:    # SGI C++ compiler will create directory out/ii_files/ for
10610:    # template instantiation
10611:    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10612:    $RM out/* && rmdir out
10613:    cd ..
10614:    $RM -r conftest
10615:    $RM conftest*
10616: 
10617: fi
10618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10619: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10620: 
10621: 
10622: 
10623: 
10624: 
10625: 
10626:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10627: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10628: if ${lt_cv_prog_compiler_c_o+:} false; then :
10629:   $as_echo_n "(cached) " >&6
10630: else
10631:   lt_cv_prog_compiler_c_o=no
10632:    $RM -r conftest 2>/dev/null
10633:    mkdir conftest
10634:    cd conftest
10635:    mkdir out
10636:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10637: 
10638:    lt_compiler_flag="-o out/conftest2.$ac_objext"
10639:    # Insert the option either (1) after the last *FLAGS variable, or
10640:    # (2) before a word containing "conftest.", or (3) at the end.
10641:    # Note that $ac_compile itself does not contain backslashes and begins
10642:    # with a dollar sign (not a hyphen), so the echo should work correctly.
10643:    lt_compile=`echo "$ac_compile" | $SED \
10644:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10645:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10646:    -e 's:$: $lt_compiler_flag:'`
10647:    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10648:    (eval "$lt_compile" 2>out/conftest.err)
10649:    ac_status=$?
10650:    cat out/conftest.err >&5
10651:    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10653:    then
10654:      # The compiler can only warn and ignore the option if not recognized
10655:      # So say no if there are warnings
10656:      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10657:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10658:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10659:        lt_cv_prog_compiler_c_o=yes
10660:      fi
10661:    fi
10662:    chmod u+w . 2>&5
10663:    $RM conftest*
10664:    # SGI C++ compiler will create directory out/ii_files/ for
10665:    # template instantiation
10666:    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10667:    $RM out/* && rmdir out
10668:    cd ..
10669:    $RM -r conftest
10670:    $RM conftest*
10671: 
10672: fi
10673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10674: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10675: 
10676: 
10677: 
10678: 
10679: hard_links="nottested"
10680: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10681:   # do not overwrite the value of need_locks provided by the user
10682:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10683: $as_echo_n "checking if we can lock with hard links... " >&6; }
10684:   hard_links=yes
10685:   $RM conftest*
10686:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10687:   touch conftest.a
10688:   ln conftest.a conftest.b 2>&5 || hard_links=no
10689:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10690:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10691: $as_echo "$hard_links" >&6; }
10692:   if test "$hard_links" = no; then
10693:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10694: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10695:     need_locks=warn
10696:   fi
10697: else
10698:   need_locks=no
10699: fi
10700: 
10701: 
10702: 
10703: 
10704: 
10705: 
10706:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10707: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10708: 
10709:   runpath_var=
10710:   allow_undefined_flag=
10711:   always_export_symbols=no
10712:   archive_cmds=
10713:   archive_expsym_cmds=
10714:   compiler_needs_object=no
10715:   enable_shared_with_static_runtimes=no
10716:   export_dynamic_flag_spec=
10717:   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10718:   hardcode_automatic=no
10719:   hardcode_direct=no
10720:   hardcode_direct_absolute=no
10721:   hardcode_libdir_flag_spec=
10722:   hardcode_libdir_separator=
10723:   hardcode_minus_L=no
10724:   hardcode_shlibpath_var=unsupported
10725:   inherit_rpath=no
10726:   link_all_deplibs=unknown
10727:   module_cmds=
10728:   module_expsym_cmds=
10729:   old_archive_from_new_cmds=
10730:   old_archive_from_expsyms_cmds=
10731:   thread_safe_flag_spec=
10732:   whole_archive_flag_spec=
10733:   # include_expsyms should be a list of space-separated symbols to be *always*
10734:   # included in the symbol list
10735:   include_expsyms=
10736:   # exclude_expsyms can be an extended regexp of symbols to exclude
10737:   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10738:   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10739:   # as well as any symbol that contains `d'.
10740:   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10741:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10742:   # platforms (ab)use it in PIC code, but their linkers get confused if
10743:   # the symbol is explicitly referenced.  Since portable code cannot
10744:   # rely on this symbol name, it's probably fine to never include it in
10745:   # preloaded symbol tables.
10746:   # Exclude shared library initialization/finalization symbols.
10747:   extract_expsyms_cmds=
10748: 
10749:   case $host_os in
10750:   cygwin* | mingw* | pw32* | cegcc*)
10751:     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10752:     # When not using gcc, we currently assume that we are using
10753:     # Microsoft Visual C++.
10754:     if test "$GCC" != yes; then
10755:       with_gnu_ld=no
10756:     fi
10757:     ;;
10758:   interix*)
10759:     # we just hope/assume this is gcc and not c89 (= MSVC++)
10760:     with_gnu_ld=yes
10761:     ;;
10762:   openbsd*)
10763:     with_gnu_ld=no
10764:     ;;
10765:   esac
10766: 
10767:   ld_shlibs=yes
10768: 
10769:   # On some targets, GNU ld is compatible enough with the native linker
10770:   # that we're better off using the native interface for both.
10771:   lt_use_gnu_ld_interface=no
10772:   if test "$with_gnu_ld" = yes; then
10773:     case $host_os in
10774:       aix*)
10775: 	# The AIX port of GNU ld has always aspired to compatibility
10776: 	# with the native linker.  However, as the warning in the GNU ld
10777: 	# block says, versions before 2.19.5* couldn't really create working
10778: 	# shared libraries, regardless of the interface used.
10779: 	case `$LD -v 2>&1` in
10780: 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10781: 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10782: 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10783: 	  *)
10784: 	    lt_use_gnu_ld_interface=yes
10785: 	    ;;
10786: 	esac
10787: 	;;
10788:       *)
10789: 	lt_use_gnu_ld_interface=yes
10790: 	;;
10791:     esac
10792:   fi
10793: 
10794:   if test "$lt_use_gnu_ld_interface" = yes; then
10795:     # If archive_cmds runs LD, not CC, wlarc should be empty
10796:     wlarc='${wl}'
10797: 
10798:     # Set some defaults for GNU ld with shared library support. These
10799:     # are reset later if shared libraries are not supported. Putting them
10800:     # here allows them to be overridden if necessary.
10801:     runpath_var=LD_RUN_PATH
10802:     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10803:     export_dynamic_flag_spec='${wl}--export-dynamic'
10804:     # ancient GNU ld didn't support --whole-archive et. al.
10805:     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10806:       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10807:     else
10808:       whole_archive_flag_spec=
10809:     fi
10810:     supports_anon_versioning=no
10811:     case `$LD -v 2>&1` in
10812:       *GNU\ gold*) supports_anon_versioning=yes ;;
10813:       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10814:       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10815:       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10816:       *\ 2.11.*) ;; # other 2.11 versions
10817:       *) supports_anon_versioning=yes ;;
10818:     esac
10819: 
10820:     # See if GNU ld supports shared libraries.
10821:     case $host_os in
10822:     aix[3-9]*)
10823:       # On AIX/PPC, the GNU linker is very broken
10824:       if test "$host_cpu" != ia64; then
10825: 	ld_shlibs=no
10826: 	cat <<_LT_EOF 1>&2
10827: 
10828: *** Warning: the GNU linker, at least up to release 2.19, is reported
10829: *** to be unable to reliably create shared libraries on AIX.
10830: *** Therefore, libtool is disabling shared libraries support.  If you
10831: *** really care for shared libraries, you may want to install binutils
10832: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10833: *** You will then need to restart the configuration process.
10834: 
10835: _LT_EOF
10836:       fi
10837:       ;;
10838: 
10839:     amigaos*)
10840:       case $host_cpu in
10841:       powerpc)
10842:             # see comment about AmigaOS4 .so support
10843:             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10844:             archive_expsym_cmds=''
10845:         ;;
10846:       m68k)
10847:             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)'
10848:             hardcode_libdir_flag_spec='-L$libdir'
10849:             hardcode_minus_L=yes
10850:         ;;
10851:       esac
10852:       ;;
10853: 
10854:     beos*)
10855:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10856: 	allow_undefined_flag=unsupported
10857: 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10858: 	# support --undefined.  This deserves some investigation.  FIXME
10859: 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10860:       else
10861: 	ld_shlibs=no
10862:       fi
10863:       ;;
10864: 
10865:     cygwin* | mingw* | pw32* | cegcc*)
10866:       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10867:       # as there is no search path for DLLs.
10868:       hardcode_libdir_flag_spec='-L$libdir'
10869:       export_dynamic_flag_spec='${wl}--export-all-symbols'
10870:       allow_undefined_flag=unsupported
10871:       always_export_symbols=no
10872:       enable_shared_with_static_runtimes=yes
10873:       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'
10874:       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10875: 
10876:       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10877:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10878: 	# If the export-symbols file already is a .def file (1st line
10879: 	# is EXPORTS), use it as is; otherwise, prepend...
10880: 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10881: 	  cp $export_symbols $output_objdir/$soname.def;
10882: 	else
10883: 	  echo EXPORTS > $output_objdir/$soname.def;
10884: 	  cat $export_symbols >> $output_objdir/$soname.def;
10885: 	fi~
10886: 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10887:       else
10888: 	ld_shlibs=no
10889:       fi
10890:       ;;
10891: 
10892:     haiku*)
10893:       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10894:       link_all_deplibs=yes
10895:       ;;
10896: 
10897:     interix[3-9]*)
10898:       hardcode_direct=no
10899:       hardcode_shlibpath_var=no
10900:       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10901:       export_dynamic_flag_spec='${wl}-E'
10902:       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10903:       # Instead, shared libraries are loaded at an image base (0x10000000 by
10904:       # default) and relocated if they conflict, which is a slow very memory
10905:       # consuming and fragmenting process.  To avoid this, we pick a random,
10906:       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10907:       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10908:       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10909:       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'
10910:       ;;
10911: 
10912:     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10913:       tmp_diet=no
10914:       if test "$host_os" = linux-dietlibc; then
10915: 	case $cc_basename in
10916: 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10917: 	esac
10918:       fi
10919:       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10920: 	 && test "$tmp_diet" = no
10921:       then
10922: 	tmp_addflag=' $pic_flag'
10923: 	tmp_sharedflag='-shared'
10924: 	case $cc_basename,$host_cpu in
10925:         pgcc*)				# Portland Group C compiler
10926: 	  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'
10927: 	  tmp_addflag=' $pic_flag'
10928: 	  ;;
10929: 	pgf77* | pgf90* | pgf95* | pgfortran*)
10930: 					# Portland Group f77 and f90 compilers
10931: 	  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'
10932: 	  tmp_addflag=' $pic_flag -Mnomain' ;;
10933: 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10934: 	  tmp_addflag=' -i_dynamic' ;;
10935: 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10936: 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10937: 	ifc* | ifort*)			# Intel Fortran compiler
10938: 	  tmp_addflag=' -nofor_main' ;;
10939: 	lf95*)				# Lahey Fortran 8.1
10940: 	  whole_archive_flag_spec=
10941: 	  tmp_sharedflag='--shared' ;;
10942: 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10943: 	  tmp_sharedflag='-qmkshrobj'
10944: 	  tmp_addflag= ;;
10945: 	nvcc*)	# Cuda Compiler Driver 2.2
10946: 	  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'
10947: 	  compiler_needs_object=yes
10948: 	  ;;
10949: 	esac
10950: 	case `$CC -V 2>&1 | sed 5q` in
10951: 	*Sun\ C*)			# Sun C 5.9
10952: 	  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'
10953: 	  compiler_needs_object=yes
10954: 	  tmp_sharedflag='-G' ;;
10955: 	*Sun\ F*)			# Sun Fortran 8.3
10956: 	  tmp_sharedflag='-G' ;;
10957: 	esac
10958: 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10959: 
10960:         if test "x$supports_anon_versioning" = xyes; then
10961:           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10962: 	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10963: 	    echo "local: *; };" >> $output_objdir/$libname.ver~
10964: 	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10965:         fi
10966: 
10967: 	case $cc_basename in
10968: 	xlf* | bgf* | bgxlf* | mpixlf*)
10969: 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10970: 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10971: 	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10972: 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10973: 	  if test "x$supports_anon_versioning" = xyes; then
10974: 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10975: 	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10976: 	      echo "local: *; };" >> $output_objdir/$libname.ver~
10977: 	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10978: 	  fi
10979: 	  ;;
10980: 	esac
10981:       else
10982:         ld_shlibs=no
10983:       fi
10984:       ;;
10985: 
10986:     netbsd*)
10987:       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10988: 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10989: 	wlarc=
10990:       else
10991: 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10992: 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10993:       fi
10994:       ;;
10995: 
10996:     solaris*)
10997:       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10998: 	ld_shlibs=no
10999: 	cat <<_LT_EOF 1>&2
11000: 
11001: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11002: *** create shared libraries on Solaris systems.  Therefore, libtool
11003: *** is disabling shared libraries support.  We urge you to upgrade GNU
11004: *** binutils to release 2.9.1 or newer.  Another option is to modify
11005: *** your PATH or compiler configuration so that the native linker is
11006: *** used, and then restart.
11007: 
11008: _LT_EOF
11009:       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11010: 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11011: 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11012:       else
11013: 	ld_shlibs=no
11014:       fi
11015:       ;;
11016: 
11017:     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11018:       case `$LD -v 2>&1` in
11019:         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11020: 	ld_shlibs=no
11021: 	cat <<_LT_EOF 1>&2
11022: 
11023: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11024: *** reliably create shared libraries on SCO systems.  Therefore, libtool
11025: *** is disabling shared libraries support.  We urge you to upgrade GNU
11026: *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11027: *** your PATH or compiler configuration so that the native linker is
11028: *** used, and then restart.
11029: 
11030: _LT_EOF
11031: 	;;
11032: 	*)
11033: 	  # For security reasons, it is highly recommended that you always
11034: 	  # use absolute paths for naming shared libraries, and exclude the
11035: 	  # DT_RUNPATH tag from executables and libraries.  But doing so
11036: 	  # requires that you compile everything twice, which is a pain.
11037: 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11038: 	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11039: 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11040: 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11041: 	  else
11042: 	    ld_shlibs=no
11043: 	  fi
11044: 	;;
11045:       esac
11046:       ;;
11047: 
11048:     sunos4*)
11049:       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11050:       wlarc=
11051:       hardcode_direct=yes
11052:       hardcode_shlibpath_var=no
11053:       ;;
11054: 
11055:     *)
11056:       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11057: 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11058: 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11059:       else
11060: 	ld_shlibs=no
11061:       fi
11062:       ;;
11063:     esac
11064: 
11065:     if test "$ld_shlibs" = no; then
11066:       runpath_var=
11067:       hardcode_libdir_flag_spec=
11068:       export_dynamic_flag_spec=
11069:       whole_archive_flag_spec=
11070:     fi
11071:   else
11072:     # PORTME fill in a description of your system's linker (not GNU ld)
11073:     case $host_os in
11074:     aix3*)
11075:       allow_undefined_flag=unsupported
11076:       always_export_symbols=yes
11077:       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'
11078:       # Note: this linker hardcodes the directories in LIBPATH if there
11079:       # are no directories specified by -L.
11080:       hardcode_minus_L=yes
11081:       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11082: 	# Neither direct hardcoding nor static linking is supported with a
11083: 	# broken collect2.
11084: 	hardcode_direct=unsupported
11085:       fi
11086:       ;;
11087: 
11088:     aix[4-9]*)
11089:       if test "$host_cpu" = ia64; then
11090: 	# On IA64, the linker does run time linking by default, so we don't
11091: 	# have to do anything special.
11092: 	aix_use_runtimelinking=no
11093: 	exp_sym_flag='-Bexport'
11094: 	no_entry_flag=""
11095:       else
11096: 	# If we're using GNU nm, then we don't want the "-C" option.
11097: 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11098: 	# Also, AIX nm treats weak defined symbols like other global
11099: 	# defined symbols, whereas GNU nm marks them as "W".
11100: 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11101: 	  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'
11102: 	else
11103: 	  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'
11104: 	fi
11105: 	aix_use_runtimelinking=no
11106: 
11107: 	# Test if we are trying to use run time linking or normal
11108: 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11109: 	# need to do runtime linking.
11110: 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11111: 	  for ld_flag in $LDFLAGS; do
11112: 	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11113: 	    aix_use_runtimelinking=yes
11114: 	    break
11115: 	  fi
11116: 	  done
11117: 	  ;;
11118: 	esac
11119: 
11120: 	exp_sym_flag='-bexport'
11121: 	no_entry_flag='-bnoentry'
11122:       fi
11123: 
11124:       # When large executables or shared objects are built, AIX ld can
11125:       # have problems creating the table of contents.  If linking a library
11126:       # or program results in "error TOC overflow" add -mminimal-toc to
11127:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11128:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11129: 
11130:       archive_cmds=''
11131:       hardcode_direct=yes
11132:       hardcode_direct_absolute=yes
11133:       hardcode_libdir_separator=':'
11134:       link_all_deplibs=yes
11135:       file_list_spec='${wl}-f,'
11136: 
11137:       if test "$GCC" = yes; then
11138: 	case $host_os in aix4.[012]|aix4.[012].*)
11139: 	# We only want to do this on AIX 4.2 and lower, the check
11140: 	# below for broken collect2 doesn't work under 4.3+
11141: 	  collect2name=`${CC} -print-prog-name=collect2`
11142: 	  if test -f "$collect2name" &&
11143: 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11144: 	  then
11145: 	  # We have reworked collect2
11146: 	  :
11147: 	  else
11148: 	  # We have old collect2
11149: 	  hardcode_direct=unsupported
11150: 	  # It fails to find uninstalled libraries when the uninstalled
11151: 	  # path is not listed in the libpath.  Setting hardcode_minus_L
11152: 	  # to unsupported forces relinking
11153: 	  hardcode_minus_L=yes
11154: 	  hardcode_libdir_flag_spec='-L$libdir'
11155: 	  hardcode_libdir_separator=
11156: 	  fi
11157: 	  ;;
11158: 	esac
11159: 	shared_flag='-shared'
11160: 	if test "$aix_use_runtimelinking" = yes; then
11161: 	  shared_flag="$shared_flag "'${wl}-G'
11162: 	fi
11163:       else
11164: 	# not using gcc
11165: 	if test "$host_cpu" = ia64; then
11166: 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11167: 	# chokes on -Wl,-G. The following line is correct:
11168: 	  shared_flag='-G'
11169: 	else
11170: 	  if test "$aix_use_runtimelinking" = yes; then
11171: 	    shared_flag='${wl}-G'
11172: 	  else
11173: 	    shared_flag='${wl}-bM:SRE'
11174: 	  fi
11175: 	fi
11176:       fi
11177: 
11178:       export_dynamic_flag_spec='${wl}-bexpall'
11179:       # It seems that -bexpall does not export symbols beginning with
11180:       # underscore (_), so it is better to generate a list of symbols to export.
11181:       always_export_symbols=yes
11182:       if test "$aix_use_runtimelinking" = yes; then
11183: 	# Warning - without using the other runtime loading flags (-brtl),
11184: 	# -berok will link without error, but may produce a broken library.
11185: 	allow_undefined_flag='-berok'
11186:         # Determine the default libpath from the value encoded in an
11187:         # empty executable.
11188:         if test "${lt_cv_aix_libpath+set}" = set; then
11189:   aix_libpath=$lt_cv_aix_libpath
11190: else
11191:   if ${lt_cv_aix_libpath_+:} false; then :
11192:   $as_echo_n "(cached) " >&6
11193: else
11194:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195: /* end confdefs.h.  */
11196: 
11197: int
11198: main ()
11199: {
11200: 
11201:   ;
11202:   return 0;
11203: }
11204: _ACEOF
11205: if ac_fn_c_try_link "$LINENO"; then :
11206: 
11207:   lt_aix_libpath_sed='
11208:       /Import File Strings/,/^$/ {
11209: 	  /^0/ {
11210: 	      s/^0  *\([^ ]*\) *$/\1/
11211: 	      p
11212: 	  }
11213:       }'
11214:   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11215:   # Check for a 64-bit object if we didn't find anything.
11216:   if test -z "$lt_cv_aix_libpath_"; then
11217:     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11218:   fi
11219: fi
11220: rm -f core conftest.err conftest.$ac_objext \
11221:     conftest$ac_exeext conftest.$ac_ext
11222:   if test -z "$lt_cv_aix_libpath_"; then
11223:     lt_cv_aix_libpath_="/usr/lib:/lib"
11224:   fi
11225: 
11226: fi
11227: 
11228:   aix_libpath=$lt_cv_aix_libpath_
11229: fi
11230: 
11231:         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11232:         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"
11233:       else
11234: 	if test "$host_cpu" = ia64; then
11235: 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11236: 	  allow_undefined_flag="-z nodefs"
11237: 	  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"
11238: 	else
11239: 	 # Determine the default libpath from the value encoded in an
11240: 	 # empty executable.
11241: 	 if test "${lt_cv_aix_libpath+set}" = set; then
11242:   aix_libpath=$lt_cv_aix_libpath
11243: else
11244:   if ${lt_cv_aix_libpath_+:} false; then :
11245:   $as_echo_n "(cached) " >&6
11246: else
11247:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248: /* end confdefs.h.  */
11249: 
11250: int
11251: main ()
11252: {
11253: 
11254:   ;
11255:   return 0;
11256: }
11257: _ACEOF
11258: if ac_fn_c_try_link "$LINENO"; then :
11259: 
11260:   lt_aix_libpath_sed='
11261:       /Import File Strings/,/^$/ {
11262: 	  /^0/ {
11263: 	      s/^0  *\([^ ]*\) *$/\1/
11264: 	      p
11265: 	  }
11266:       }'
11267:   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11268:   # Check for a 64-bit object if we didn't find anything.
11269:   if test -z "$lt_cv_aix_libpath_"; then
11270:     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11271:   fi
11272: fi
11273: rm -f core conftest.err conftest.$ac_objext \
11274:     conftest$ac_exeext conftest.$ac_ext
11275:   if test -z "$lt_cv_aix_libpath_"; then
11276:     lt_cv_aix_libpath_="/usr/lib:/lib"
11277:   fi
11278: 
11279: fi
11280: 
11281:   aix_libpath=$lt_cv_aix_libpath_
11282: fi
11283: 
11284: 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11285: 	  # Warning - without using the other run time loading flags,
11286: 	  # -berok will link without error, but may produce a broken library.
11287: 	  no_undefined_flag=' ${wl}-bernotok'
11288: 	  allow_undefined_flag=' ${wl}-berok'
11289: 	  if test "$with_gnu_ld" = yes; then
11290: 	    # We only use this code for GNU lds that support --whole-archive.
11291: 	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11292: 	  else
11293: 	    # Exported symbols can be pulled into shared objects from archives
11294: 	    whole_archive_flag_spec='$convenience'
11295: 	  fi
11296: 	  archive_cmds_need_lc=yes
11297: 	  # This is similar to how AIX traditionally builds its shared libraries.
11298: 	  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'
11299: 	fi
11300:       fi
11301:       ;;
11302: 
11303:     amigaos*)
11304:       case $host_cpu in
11305:       powerpc)
11306:             # see comment about AmigaOS4 .so support
11307:             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11308:             archive_expsym_cmds=''
11309:         ;;
11310:       m68k)
11311:             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)'
11312:             hardcode_libdir_flag_spec='-L$libdir'
11313:             hardcode_minus_L=yes
11314:         ;;
11315:       esac
11316:       ;;
11317: 
11318:     bsdi[45]*)
11319:       export_dynamic_flag_spec=-rdynamic
11320:       ;;
11321: 
11322:     cygwin* | mingw* | pw32* | cegcc*)
11323:       # When not using gcc, we currently assume that we are using
11324:       # Microsoft Visual C++.
11325:       # hardcode_libdir_flag_spec is actually meaningless, as there is
11326:       # no search path for DLLs.
11327:       case $cc_basename in
11328:       cl*)
11329: 	# Native MSVC
11330: 	hardcode_libdir_flag_spec=' '
11331: 	allow_undefined_flag=unsupported
11332: 	always_export_symbols=yes
11333: 	file_list_spec='@'
11334: 	# Tell ltmain to make .lib files, not .a files.
11335: 	libext=lib
11336: 	# Tell ltmain to make .dll files, not .so files.
11337: 	shrext_cmds=".dll"
11338: 	# FIXME: Setting linknames here is a bad hack.
11339: 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11340: 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11341: 	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11342: 	  else
11343: 	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11344: 	  fi~
11345: 	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11346: 	  linknames='
11347: 	# The linker will not automatically build a static lib if we build a DLL.
11348: 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11349: 	enable_shared_with_static_runtimes=yes
11350: 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11351: 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11352: 	# Don't use ranlib
11353: 	old_postinstall_cmds='chmod 644 $oldlib'
11354: 	postlink_cmds='lt_outputfile="@OUTPUT@"~
11355: 	  lt_tool_outputfile="@TOOL_OUTPUT@"~
11356: 	  case $lt_outputfile in
11357: 	    *.exe|*.EXE) ;;
11358: 	    *)
11359: 	      lt_outputfile="$lt_outputfile.exe"
11360: 	      lt_tool_outputfile="$lt_tool_outputfile.exe"
11361: 	      ;;
11362: 	  esac~
11363: 	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11364: 	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11365: 	    $RM "$lt_outputfile.manifest";
11366: 	  fi'
11367: 	;;
11368:       *)
11369: 	# Assume MSVC wrapper
11370: 	hardcode_libdir_flag_spec=' '
11371: 	allow_undefined_flag=unsupported
11372: 	# Tell ltmain to make .lib files, not .a files.
11373: 	libext=lib
11374: 	# Tell ltmain to make .dll files, not .so files.
11375: 	shrext_cmds=".dll"
11376: 	# FIXME: Setting linknames here is a bad hack.
11377: 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11378: 	# The linker will automatically build a .lib file if we build a DLL.
11379: 	old_archive_from_new_cmds='true'
11380: 	# FIXME: Should let the user specify the lib program.
11381: 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11382: 	enable_shared_with_static_runtimes=yes
11383: 	;;
11384:       esac
11385:       ;;
11386: 
11387:     darwin* | rhapsody*)
11388: 
11389: 
11390:   archive_cmds_need_lc=no
11391:   hardcode_direct=no
11392:   hardcode_automatic=yes
11393:   hardcode_shlibpath_var=unsupported
11394:   if test "$lt_cv_ld_force_load" = "yes"; then
11395:     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\"`'
11396: 
11397:   else
11398:     whole_archive_flag_spec=''
11399:   fi
11400:   link_all_deplibs=yes
11401:   allow_undefined_flag="$_lt_dar_allow_undefined"
11402:   case $cc_basename in
11403:      ifort*) _lt_dar_can_shared=yes ;;
11404:      *) _lt_dar_can_shared=$GCC ;;
11405:   esac
11406:   if test "$_lt_dar_can_shared" = "yes"; then
11407:     output_verbose_link_cmd=func_echo_all
11408:     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11409:     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11410:     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}"
11411:     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}"
11412: 
11413:   else
11414:   ld_shlibs=no
11415:   fi
11416: 
11417:       ;;
11418: 
11419:     dgux*)
11420:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11421:       hardcode_libdir_flag_spec='-L$libdir'
11422:       hardcode_shlibpath_var=no
11423:       ;;
11424: 
11425:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11426:     # support.  Future versions do this automatically, but an explicit c++rt0.o
11427:     # does not break anything, and helps significantly (at the cost of a little
11428:     # extra space).
11429:     freebsd2.2*)
11430:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11431:       hardcode_libdir_flag_spec='-R$libdir'
11432:       hardcode_direct=yes
11433:       hardcode_shlibpath_var=no
11434:       ;;
11435: 
11436:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11437:     freebsd2.*)
11438:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11439:       hardcode_direct=yes
11440:       hardcode_minus_L=yes
11441:       hardcode_shlibpath_var=no
11442:       ;;
11443: 
11444:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11445:     freebsd* | dragonfly*)
11446:       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11447:       hardcode_libdir_flag_spec='-R$libdir'
11448:       hardcode_direct=yes
11449:       hardcode_shlibpath_var=no
11450:       ;;
11451: 
11452:     hpux9*)
11453:       if test "$GCC" = yes; then
11454: 	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'
11455:       else
11456: 	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'
11457:       fi
11458:       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11459:       hardcode_libdir_separator=:
11460:       hardcode_direct=yes
11461: 
11462:       # hardcode_minus_L: Not really in the search PATH,
11463:       # but as the default location of the library.
11464:       hardcode_minus_L=yes
11465:       export_dynamic_flag_spec='${wl}-E'
11466:       ;;
11467: 
11468:     hpux10*)
11469:       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11470: 	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11471:       else
11472: 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11473:       fi
11474:       if test "$with_gnu_ld" = no; then
11475: 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11476: 	hardcode_libdir_separator=:
11477: 	hardcode_direct=yes
11478: 	hardcode_direct_absolute=yes
11479: 	export_dynamic_flag_spec='${wl}-E'
11480: 	# hardcode_minus_L: Not really in the search PATH,
11481: 	# but as the default location of the library.
11482: 	hardcode_minus_L=yes
11483:       fi
11484:       ;;
11485: 
11486:     hpux11*)
11487:       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11488: 	case $host_cpu in
11489: 	hppa*64*)
11490: 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11491: 	  ;;
11492: 	ia64*)
11493: 	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11494: 	  ;;
11495: 	*)
11496: 	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11497: 	  ;;
11498: 	esac
11499:       else
11500: 	case $host_cpu in
11501: 	hppa*64*)
11502: 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11503: 	  ;;
11504: 	ia64*)
11505: 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11506: 	  ;;
11507: 	*)
11508: 
11509: 	  # Older versions of the 11.00 compiler do not understand -b yet
11510: 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11511: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11512: $as_echo_n "checking if $CC understands -b... " >&6; }
11513: if ${lt_cv_prog_compiler__b+:} false; then :
11514:   $as_echo_n "(cached) " >&6
11515: else
11516:   lt_cv_prog_compiler__b=no
11517:    save_LDFLAGS="$LDFLAGS"
11518:    LDFLAGS="$LDFLAGS -b"
11519:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11520:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11521:      # The linker can only warn and ignore the option if not recognized
11522:      # So say no if there are warnings
11523:      if test -s conftest.err; then
11524:        # Append any errors to the config.log.
11525:        cat conftest.err 1>&5
11526:        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11527:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11528:        if diff conftest.exp conftest.er2 >/dev/null; then
11529:          lt_cv_prog_compiler__b=yes
11530:        fi
11531:      else
11532:        lt_cv_prog_compiler__b=yes
11533:      fi
11534:    fi
11535:    $RM -r conftest*
11536:    LDFLAGS="$save_LDFLAGS"
11537: 
11538: fi
11539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11540: $as_echo "$lt_cv_prog_compiler__b" >&6; }
11541: 
11542: if test x"$lt_cv_prog_compiler__b" = xyes; then
11543:     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11544: else
11545:     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11546: fi
11547: 
11548: 	  ;;
11549: 	esac
11550:       fi
11551:       if test "$with_gnu_ld" = no; then
11552: 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11553: 	hardcode_libdir_separator=:
11554: 
11555: 	case $host_cpu in
11556: 	hppa*64*|ia64*)
11557: 	  hardcode_direct=no
11558: 	  hardcode_shlibpath_var=no
11559: 	  ;;
11560: 	*)
11561: 	  hardcode_direct=yes
11562: 	  hardcode_direct_absolute=yes
11563: 	  export_dynamic_flag_spec='${wl}-E'
11564: 
11565: 	  # hardcode_minus_L: Not really in the search PATH,
11566: 	  # but as the default location of the library.
11567: 	  hardcode_minus_L=yes
11568: 	  ;;
11569: 	esac
11570:       fi
11571:       ;;
11572: 
11573:     irix5* | irix6* | nonstopux*)
11574:       if test "$GCC" = yes; then
11575: 	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'
11576: 	# Try to use the -exported_symbol ld option, if it does not
11577: 	# work, assume that -exports_file does not work either and
11578: 	# implicitly export all symbols.
11579: 	# This should be the same for all languages, so no per-tag cache variable.
11580: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11581: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11582: if ${lt_cv_irix_exported_symbol+:} false; then :
11583:   $as_echo_n "(cached) " >&6
11584: else
11585:   save_LDFLAGS="$LDFLAGS"
11586: 	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11587: 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588: /* end confdefs.h.  */
11589: int foo (void) { return 0; }
11590: _ACEOF
11591: if ac_fn_c_try_link "$LINENO"; then :
11592:   lt_cv_irix_exported_symbol=yes
11593: else
11594:   lt_cv_irix_exported_symbol=no
11595: fi
11596: rm -f core conftest.err conftest.$ac_objext \
11597:     conftest$ac_exeext conftest.$ac_ext
11598:            LDFLAGS="$save_LDFLAGS"
11599: fi
11600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11601: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11602: 	if test "$lt_cv_irix_exported_symbol" = yes; then
11603:           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'
11604: 	fi
11605:       else
11606: 	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'
11607: 	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'
11608:       fi
11609:       archive_cmds_need_lc='no'
11610:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11611:       hardcode_libdir_separator=:
11612:       inherit_rpath=yes
11613:       link_all_deplibs=yes
11614:       ;;
11615: 
11616:     netbsd*)
11617:       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11618: 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11619:       else
11620: 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11621:       fi
11622:       hardcode_libdir_flag_spec='-R$libdir'
11623:       hardcode_direct=yes
11624:       hardcode_shlibpath_var=no
11625:       ;;
11626: 
11627:     newsos6)
11628:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11629:       hardcode_direct=yes
11630:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11631:       hardcode_libdir_separator=:
11632:       hardcode_shlibpath_var=no
11633:       ;;
11634: 
11635:     *nto* | *qnx*)
11636:       ;;
11637: 
11638:     openbsd*)
11639:       if test -f /usr/libexec/ld.so; then
11640: 	hardcode_direct=yes
11641: 	hardcode_shlibpath_var=no
11642: 	hardcode_direct_absolute=yes
11643: 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11644: 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11645: 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11646: 	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11647: 	  export_dynamic_flag_spec='${wl}-E'
11648: 	else
11649: 	  case $host_os in
11650: 	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11651: 	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11652: 	     hardcode_libdir_flag_spec='-R$libdir'
11653: 	     ;;
11654: 	   *)
11655: 	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11656: 	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11657: 	     ;;
11658: 	  esac
11659: 	fi
11660:       else
11661: 	ld_shlibs=no
11662:       fi
11663:       ;;
11664: 
11665:     os2*)
11666:       hardcode_libdir_flag_spec='-L$libdir'
11667:       hardcode_minus_L=yes
11668:       allow_undefined_flag=unsupported
11669:       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'
11670:       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11671:       ;;
11672: 
11673:     osf3*)
11674:       if test "$GCC" = yes; then
11675: 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11676: 	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'
11677:       else
11678: 	allow_undefined_flag=' -expect_unresolved \*'
11679: 	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'
11680:       fi
11681:       archive_cmds_need_lc='no'
11682:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11683:       hardcode_libdir_separator=:
11684:       ;;
11685: 
11686:     osf4* | osf5*)	# as osf3* with the addition of -msym flag
11687:       if test "$GCC" = yes; then
11688: 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11689: 	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'
11690: 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11691:       else
11692: 	allow_undefined_flag=' -expect_unresolved \*'
11693: 	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'
11694: 	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~
11695: 	$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'
11696: 
11697: 	# Both c and cxx compiler support -rpath directly
11698: 	hardcode_libdir_flag_spec='-rpath $libdir'
11699:       fi
11700:       archive_cmds_need_lc='no'
11701:       hardcode_libdir_separator=:
11702:       ;;
11703: 
11704:     solaris*)
11705:       no_undefined_flag=' -z defs'
11706:       if test "$GCC" = yes; then
11707: 	wlarc='${wl}'
11708: 	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11709: 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11710: 	  $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'
11711:       else
11712: 	case `$CC -V 2>&1` in
11713: 	*"Compilers 5.0"*)
11714: 	  wlarc=''
11715: 	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11716: 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11717: 	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11718: 	  ;;
11719: 	*)
11720: 	  wlarc='${wl}'
11721: 	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11722: 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11723: 	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11724: 	  ;;
11725: 	esac
11726:       fi
11727:       hardcode_libdir_flag_spec='-R$libdir'
11728:       hardcode_shlibpath_var=no
11729:       case $host_os in
11730:       solaris2.[0-5] | solaris2.[0-5].*) ;;
11731:       *)
11732: 	# The compiler driver will combine and reorder linker options,
11733: 	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11734: 	# but is careful enough not to reorder.
11735: 	# Supported since Solaris 2.6 (maybe 2.5.1?)
11736: 	if test "$GCC" = yes; then
11737: 	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11738: 	else
11739: 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11740: 	fi
11741: 	;;
11742:       esac
11743:       link_all_deplibs=yes
11744:       ;;
11745: 
11746:     sunos4*)
11747:       if test "x$host_vendor" = xsequent; then
11748: 	# Use $CC to link under sequent, because it throws in some extra .o
11749: 	# files that make .init and .fini sections work.
11750: 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11751:       else
11752: 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11753:       fi
11754:       hardcode_libdir_flag_spec='-L$libdir'
11755:       hardcode_direct=yes
11756:       hardcode_minus_L=yes
11757:       hardcode_shlibpath_var=no
11758:       ;;
11759: 
11760:     sysv4)
11761:       case $host_vendor in
11762: 	sni)
11763: 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11764: 	  hardcode_direct=yes # is this really true???
11765: 	;;
11766: 	siemens)
11767: 	  ## LD is ld it makes a PLAMLIB
11768: 	  ## CC just makes a GrossModule.
11769: 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11770: 	  reload_cmds='$CC -r -o $output$reload_objs'
11771: 	  hardcode_direct=no
11772:         ;;
11773: 	motorola)
11774: 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11775: 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11776: 	;;
11777:       esac
11778:       runpath_var='LD_RUN_PATH'
11779:       hardcode_shlibpath_var=no
11780:       ;;
11781: 
11782:     sysv4.3*)
11783:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11784:       hardcode_shlibpath_var=no
11785:       export_dynamic_flag_spec='-Bexport'
11786:       ;;
11787: 
11788:     sysv4*MP*)
11789:       if test -d /usr/nec; then
11790: 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11791: 	hardcode_shlibpath_var=no
11792: 	runpath_var=LD_RUN_PATH
11793: 	hardcode_runpath_var=yes
11794: 	ld_shlibs=yes
11795:       fi
11796:       ;;
11797: 
11798:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11799:       no_undefined_flag='${wl}-z,text'
11800:       archive_cmds_need_lc=no
11801:       hardcode_shlibpath_var=no
11802:       runpath_var='LD_RUN_PATH'
11803: 
11804:       if test "$GCC" = yes; then
11805: 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11806: 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11807:       else
11808: 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11809: 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11810:       fi
11811:       ;;
11812: 
11813:     sysv5* | sco3.2v5* | sco5v6*)
11814:       # Note: We can NOT use -z defs as we might desire, because we do not
11815:       # link with -lc, and that would cause any symbols used from libc to
11816:       # always be unresolved, which means just about no library would
11817:       # ever link correctly.  If we're not using GNU ld we use -z text
11818:       # though, which does catch some bad symbols but isn't as heavy-handed
11819:       # as -z defs.
11820:       no_undefined_flag='${wl}-z,text'
11821:       allow_undefined_flag='${wl}-z,nodefs'
11822:       archive_cmds_need_lc=no
11823:       hardcode_shlibpath_var=no
11824:       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11825:       hardcode_libdir_separator=':'
11826:       link_all_deplibs=yes
11827:       export_dynamic_flag_spec='${wl}-Bexport'
11828:       runpath_var='LD_RUN_PATH'
11829: 
11830:       if test "$GCC" = yes; then
11831: 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11832: 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11833:       else
11834: 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11835: 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11836:       fi
11837:       ;;
11838: 
11839:     uts4*)
11840:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11841:       hardcode_libdir_flag_spec='-L$libdir'
11842:       hardcode_shlibpath_var=no
11843:       ;;
11844: 
11845:     *)
11846:       ld_shlibs=no
11847:       ;;
11848:     esac
11849: 
11850:     if test x$host_vendor = xsni; then
11851:       case $host in
11852:       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11853: 	export_dynamic_flag_spec='${wl}-Blargedynsym'
11854: 	;;
11855:       esac
11856:     fi
11857:   fi
11858: 
11859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11860: $as_echo "$ld_shlibs" >&6; }
11861: test "$ld_shlibs" = no && can_build_shared=no
11862: 
11863: with_gnu_ld=$with_gnu_ld
11864: 
11865: 
11866: 
11867: 
11868: 
11869: 
11870: 
11871: 
11872: 
11873: 
11874: 
11875: 
11876: 
11877: 
11878: 
11879: #
11880: # Do we need to explicitly link libc?
11881: #
11882: case "x$archive_cmds_need_lc" in
11883: x|xyes)
11884:   # Assume -lc should be added
11885:   archive_cmds_need_lc=yes
11886: 
11887:   if test "$enable_shared" = yes && test "$GCC" = yes; then
11888:     case $archive_cmds in
11889:     *'~'*)
11890:       # FIXME: we may have to deal with multi-command sequences.
11891:       ;;
11892:     '$CC '*)
11893:       # Test whether the compiler implicitly links with -lc since on some
11894:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11895:       # to ld, don't add -lc before -lgcc.
11896:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11897: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11898: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11899:   $as_echo_n "(cached) " >&6
11900: else
11901:   $RM conftest*
11902: 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11903: 
11904: 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11905:   (eval $ac_compile) 2>&5
11906:   ac_status=$?
11907:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11908:   test $ac_status = 0; } 2>conftest.err; then
11909: 	  soname=conftest
11910: 	  lib=conftest
11911: 	  libobjs=conftest.$ac_objext
11912: 	  deplibs=
11913: 	  wl=$lt_prog_compiler_wl
11914: 	  pic_flag=$lt_prog_compiler_pic
11915: 	  compiler_flags=-v
11916: 	  linker_flags=-v
11917: 	  verstring=
11918: 	  output_objdir=.
11919: 	  libname=conftest
11920: 	  lt_save_allow_undefined_flag=$allow_undefined_flag
11921: 	  allow_undefined_flag=
11922: 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11923:   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11924:   ac_status=$?
11925:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11926:   test $ac_status = 0; }
11927: 	  then
11928: 	    lt_cv_archive_cmds_need_lc=no
11929: 	  else
11930: 	    lt_cv_archive_cmds_need_lc=yes
11931: 	  fi
11932: 	  allow_undefined_flag=$lt_save_allow_undefined_flag
11933: 	else
11934: 	  cat conftest.err 1>&5
11935: 	fi
11936: 	$RM conftest*
11937: 
11938: fi
11939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11940: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11941:       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11942:       ;;
11943:     esac
11944:   fi
11945:   ;;
11946: esac
11947: 
11948: 
11949: 
11950: 
11951: 
11952: 
11953: 
11954: 
11955: 
11956: 
11957: 
11958: 
11959: 
11960: 
11961: 
11962: 
11963: 
11964: 
11965: 
11966: 
11967: 
11968: 
11969: 
11970: 
11971: 
11972: 
11973: 
11974: 
11975: 
11976: 
11977: 
11978: 
11979: 
11980: 
11981: 
11982: 
11983: 
11984: 
11985: 
11986: 
11987: 
11988: 
11989: 
11990: 
11991: 
11992: 
11993: 
11994: 
11995: 
11996: 
11997: 
11998: 
11999: 
12000: 
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:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12100: $as_echo_n "checking dynamic linker characteristics... " >&6; }
12101: 
12102: if test "$GCC" = yes; then
12103:   case $host_os in
12104:     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12105:     *) lt_awk_arg="/^libraries:/" ;;
12106:   esac
12107:   case $host_os in
12108:     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12109:     *) lt_sed_strip_eq="s,=/,/,g" ;;
12110:   esac
12111:   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12112:   case $lt_search_path_spec in
12113:   *\;*)
12114:     # if the path contains ";" then we assume it to be the separator
12115:     # otherwise default to the standard path separator (i.e. ":") - it is
12116:     # assumed that no part of a normal pathname contains ";" but that should
12117:     # okay in the real world where ";" in dirpaths is itself problematic.
12118:     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12119:     ;;
12120:   *)
12121:     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12122:     ;;
12123:   esac
12124:   # Ok, now we have the path, separated by spaces, we can step through it
12125:   # and add multilib dir if necessary.
12126:   lt_tmp_lt_search_path_spec=
12127:   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12128:   for lt_sys_path in $lt_search_path_spec; do
12129:     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12130:       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12131:     else
12132:       test -d "$lt_sys_path" && \
12133: 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12134:     fi
12135:   done
12136:   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12137: BEGIN {RS=" "; FS="/|\n";} {
12138:   lt_foo="";
12139:   lt_count=0;
12140:   for (lt_i = NF; lt_i > 0; lt_i--) {
12141:     if ($lt_i != "" && $lt_i != ".") {
12142:       if ($lt_i == "..") {
12143:         lt_count++;
12144:       } else {
12145:         if (lt_count == 0) {
12146:           lt_foo="/" $lt_i lt_foo;
12147:         } else {
12148:           lt_count--;
12149:         }
12150:       }
12151:     }
12152:   }
12153:   if (lt_foo != "") { lt_freq[lt_foo]++; }
12154:   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12155: }'`
12156:   # AWK program above erroneously prepends '/' to C:/dos/paths
12157:   # for these hosts.
12158:   case $host_os in
12159:     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12160:       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12161:   esac
12162:   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12163: else
12164:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12165: fi
12166: library_names_spec=
12167: libname_spec='lib$name'
12168: soname_spec=
12169: shrext_cmds=".so"
12170: postinstall_cmds=
12171: postuninstall_cmds=
12172: finish_cmds=
12173: finish_eval=
12174: shlibpath_var=
12175: shlibpath_overrides_runpath=unknown
12176: version_type=none
12177: dynamic_linker="$host_os ld.so"
12178: sys_lib_dlsearch_path_spec="/lib /usr/lib"
12179: need_lib_prefix=unknown
12180: hardcode_into_libs=no
12181: 
12182: # when you set need_version to no, make sure it does not cause -set_version
12183: # flags to be left without arguments
12184: need_version=unknown
12185: 
12186: case $host_os in
12187: aix3*)
12188:   version_type=linux # correct to gnu/linux during the next big refactor
12189:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12190:   shlibpath_var=LIBPATH
12191: 
12192:   # AIX 3 has no versioning support, so we append a major version to the name.
12193:   soname_spec='${libname}${release}${shared_ext}$major'
12194:   ;;
12195: 
12196: aix[4-9]*)
12197:   version_type=linux # correct to gnu/linux during the next big refactor
12198:   need_lib_prefix=no
12199:   need_version=no
12200:   hardcode_into_libs=yes
12201:   if test "$host_cpu" = ia64; then
12202:     # AIX 5 supports IA64
12203:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12204:     shlibpath_var=LD_LIBRARY_PATH
12205:   else
12206:     # With GCC up to 2.95.x, collect2 would create an import file
12207:     # for dependence libraries.  The import file would start with
12208:     # the line `#! .'.  This would cause the generated library to
12209:     # depend on `.', always an invalid library.  This was fixed in
12210:     # development snapshots of GCC prior to 3.0.
12211:     case $host_os in
12212:       aix4 | aix4.[01] | aix4.[01].*)
12213:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12214: 	   echo ' yes '
12215: 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12216: 	:
12217:       else
12218: 	can_build_shared=no
12219:       fi
12220:       ;;
12221:     esac
12222:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12223:     # soname into executable. Probably we can add versioning support to
12224:     # collect2, so additional links can be useful in future.
12225:     if test "$aix_use_runtimelinking" = yes; then
12226:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12227:       # instead of lib<name>.a to let people know that these are not
12228:       # typical AIX shared libraries.
12229:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12230:     else
12231:       # We preserve .a as extension for shared libraries through AIX4.2
12232:       # and later when we are not doing run time linking.
12233:       library_names_spec='${libname}${release}.a $libname.a'
12234:       soname_spec='${libname}${release}${shared_ext}$major'
12235:     fi
12236:     shlibpath_var=LIBPATH
12237:   fi
12238:   ;;
12239: 
12240: amigaos*)
12241:   case $host_cpu in
12242:   powerpc)
12243:     # Since July 2007 AmigaOS4 officially supports .so libraries.
12244:     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12245:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12246:     ;;
12247:   m68k)
12248:     library_names_spec='$libname.ixlibrary $libname.a'
12249:     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12250:     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'
12251:     ;;
12252:   esac
12253:   ;;
12254: 
12255: beos*)
12256:   library_names_spec='${libname}${shared_ext}'
12257:   dynamic_linker="$host_os ld.so"
12258:   shlibpath_var=LIBRARY_PATH
12259:   ;;
12260: 
12261: bsdi[45]*)
12262:   version_type=linux # correct to gnu/linux during the next big refactor
12263:   need_version=no
12264:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12265:   soname_spec='${libname}${release}${shared_ext}$major'
12266:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12267:   shlibpath_var=LD_LIBRARY_PATH
12268:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12269:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12270:   # the default ld.so.conf also contains /usr/contrib/lib and
12271:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12272:   # libtool to hard-code these into programs
12273:   ;;
12274: 
12275: cygwin* | mingw* | pw32* | cegcc*)
12276:   version_type=windows
12277:   shrext_cmds=".dll"
12278:   need_version=no
12279:   need_lib_prefix=no
12280: 
12281:   case $GCC,$cc_basename in
12282:   yes,*)
12283:     # gcc
12284:     library_names_spec='$libname.dll.a'
12285:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12286:     postinstall_cmds='base_file=`basename \${file}`~
12287:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12288:       dldir=$destdir/`dirname \$dlpath`~
12289:       test -d \$dldir || mkdir -p \$dldir~
12290:       $install_prog $dir/$dlname \$dldir/$dlname~
12291:       chmod a+x \$dldir/$dlname~
12292:       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12293:         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12294:       fi'
12295:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12296:       dlpath=$dir/\$dldll~
12297:        $RM \$dlpath'
12298:     shlibpath_overrides_runpath=yes
12299: 
12300:     case $host_os in
12301:     cygwin*)
12302:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12303:       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12304: 
12305:       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12306:       ;;
12307:     mingw* | cegcc*)
12308:       # MinGW DLLs use traditional 'lib' prefix
12309:       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12310:       ;;
12311:     pw32*)
12312:       # pw32 DLLs use 'pw' prefix rather than 'lib'
12313:       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12314:       ;;
12315:     esac
12316:     dynamic_linker='Win32 ld.exe'
12317:     ;;
12318: 
12319:   *,cl*)
12320:     # Native MSVC
12321:     libname_spec='$name'
12322:     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12323:     library_names_spec='${libname}.dll.lib'
12324: 
12325:     case $build_os in
12326:     mingw*)
12327:       sys_lib_search_path_spec=
12328:       lt_save_ifs=$IFS
12329:       IFS=';'
12330:       for lt_path in $LIB
12331:       do
12332:         IFS=$lt_save_ifs
12333:         # Let DOS variable expansion print the short 8.3 style file name.
12334:         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12335:         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12336:       done
12337:       IFS=$lt_save_ifs
12338:       # Convert to MSYS style.
12339:       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12340:       ;;
12341:     cygwin*)
12342:       # Convert to unix form, then to dos form, then back to unix form
12343:       # but this time dos style (no spaces!) so that the unix form looks
12344:       # like /cygdrive/c/PROGRA~1:/cygdr...
12345:       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12346:       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12347:       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12348:       ;;
12349:     *)
12350:       sys_lib_search_path_spec="$LIB"
12351:       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12352:         # It is most probably a Windows format PATH.
12353:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12354:       else
12355:         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12356:       fi
12357:       # FIXME: find the short name or the path components, as spaces are
12358:       # common. (e.g. "Program Files" -> "PROGRA~1")
12359:       ;;
12360:     esac
12361: 
12362:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12363:     postinstall_cmds='base_file=`basename \${file}`~
12364:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12365:       dldir=$destdir/`dirname \$dlpath`~
12366:       test -d \$dldir || mkdir -p \$dldir~
12367:       $install_prog $dir/$dlname \$dldir/$dlname'
12368:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12369:       dlpath=$dir/\$dldll~
12370:        $RM \$dlpath'
12371:     shlibpath_overrides_runpath=yes
12372:     dynamic_linker='Win32 link.exe'
12373:     ;;
12374: 
12375:   *)
12376:     # Assume MSVC wrapper
12377:     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12378:     dynamic_linker='Win32 ld.exe'
12379:     ;;
12380:   esac
12381:   # FIXME: first we should search . and the directory the executable is in
12382:   shlibpath_var=PATH
12383:   ;;
12384: 
12385: darwin* | rhapsody*)
12386:   dynamic_linker="$host_os dyld"
12387:   version_type=darwin
12388:   need_lib_prefix=no
12389:   need_version=no
12390:   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12391:   soname_spec='${libname}${release}${major}$shared_ext'
12392:   shlibpath_overrides_runpath=yes
12393:   shlibpath_var=DYLD_LIBRARY_PATH
12394:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12395: 
12396:   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12397:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12398:   ;;
12399: 
12400: dgux*)
12401:   version_type=linux # correct to gnu/linux during the next big refactor
12402:   need_lib_prefix=no
12403:   need_version=no
12404:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12405:   soname_spec='${libname}${release}${shared_ext}$major'
12406:   shlibpath_var=LD_LIBRARY_PATH
12407:   ;;
12408: 
12409: freebsd* | dragonfly*)
12410:   # DragonFly does not have aout.  When/if they implement a new
12411:   # versioning mechanism, adjust this.
12412:   if test -x /usr/bin/objformat; then
12413:     objformat=`/usr/bin/objformat`
12414:   else
12415:     case $host_os in
12416:     freebsd[23].*) objformat=aout ;;
12417:     *) objformat=elf ;;
12418:     esac
12419:   fi
12420:   version_type=freebsd-$objformat
12421:   case $version_type in
12422:     freebsd-elf*)
12423:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12424:       need_version=no
12425:       need_lib_prefix=no
12426:       ;;
12427:     freebsd-*)
12428:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12429:       need_version=yes
12430:       ;;
12431:   esac
12432:   shlibpath_var=LD_LIBRARY_PATH
12433:   case $host_os in
12434:   freebsd2.*)
12435:     shlibpath_overrides_runpath=yes
12436:     ;;
12437:   freebsd3.[01]* | freebsdelf3.[01]*)
12438:     shlibpath_overrides_runpath=yes
12439:     hardcode_into_libs=yes
12440:     ;;
12441:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12442:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12443:     shlibpath_overrides_runpath=no
12444:     hardcode_into_libs=yes
12445:     ;;
12446:   *) # from 4.6 on, and DragonFly
12447:     shlibpath_overrides_runpath=yes
12448:     hardcode_into_libs=yes
12449:     ;;
12450:   esac
12451:   ;;
12452: 
12453: gnu*)
12454:   version_type=linux # correct to gnu/linux during the next big refactor
12455:   need_lib_prefix=no
12456:   need_version=no
12457:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12458:   soname_spec='${libname}${release}${shared_ext}$major'
12459:   shlibpath_var=LD_LIBRARY_PATH
12460:   shlibpath_overrides_runpath=no
12461:   hardcode_into_libs=yes
12462:   ;;
12463: 
12464: haiku*)
12465:   version_type=linux # correct to gnu/linux during the next big refactor
12466:   need_lib_prefix=no
12467:   need_version=no
12468:   dynamic_linker="$host_os runtime_loader"
12469:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12470:   soname_spec='${libname}${release}${shared_ext}$major'
12471:   shlibpath_var=LIBRARY_PATH
12472:   shlibpath_overrides_runpath=yes
12473:   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12474:   hardcode_into_libs=yes
12475:   ;;
12476: 
12477: hpux9* | hpux10* | hpux11*)
12478:   # Give a soname corresponding to the major version so that dld.sl refuses to
12479:   # link against other versions.
12480:   version_type=sunos
12481:   need_lib_prefix=no
12482:   need_version=no
12483:   case $host_cpu in
12484:   ia64*)
12485:     shrext_cmds='.so'
12486:     hardcode_into_libs=yes
12487:     dynamic_linker="$host_os dld.so"
12488:     shlibpath_var=LD_LIBRARY_PATH
12489:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12490:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12491:     soname_spec='${libname}${release}${shared_ext}$major'
12492:     if test "X$HPUX_IA64_MODE" = X32; then
12493:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12494:     else
12495:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12496:     fi
12497:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12498:     ;;
12499:   hppa*64*)
12500:     shrext_cmds='.sl'
12501:     hardcode_into_libs=yes
12502:     dynamic_linker="$host_os dld.sl"
12503:     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12504:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12505:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12506:     soname_spec='${libname}${release}${shared_ext}$major'
12507:     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12508:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12509:     ;;
12510:   *)
12511:     shrext_cmds='.sl'
12512:     dynamic_linker="$host_os dld.sl"
12513:     shlibpath_var=SHLIB_PATH
12514:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12515:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12516:     soname_spec='${libname}${release}${shared_ext}$major'
12517:     ;;
12518:   esac
12519:   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12520:   postinstall_cmds='chmod 555 $lib'
12521:   # or fails outright, so override atomically:
12522:   install_override_mode=555
12523:   ;;
12524: 
12525: interix[3-9]*)
12526:   version_type=linux # correct to gnu/linux during the next big refactor
12527:   need_lib_prefix=no
12528:   need_version=no
12529:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12530:   soname_spec='${libname}${release}${shared_ext}$major'
12531:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12532:   shlibpath_var=LD_LIBRARY_PATH
12533:   shlibpath_overrides_runpath=no
12534:   hardcode_into_libs=yes
12535:   ;;
12536: 
12537: irix5* | irix6* | nonstopux*)
12538:   case $host_os in
12539:     nonstopux*) version_type=nonstopux ;;
12540:     *)
12541: 	if test "$lt_cv_prog_gnu_ld" = yes; then
12542: 		version_type=linux # correct to gnu/linux during the next big refactor
12543: 	else
12544: 		version_type=irix
12545: 	fi ;;
12546:   esac
12547:   need_lib_prefix=no
12548:   need_version=no
12549:   soname_spec='${libname}${release}${shared_ext}$major'
12550:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12551:   case $host_os in
12552:   irix5* | nonstopux*)
12553:     libsuff= shlibsuff=
12554:     ;;
12555:   *)
12556:     case $LD in # libtool.m4 will add one of these switches to LD
12557:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12558:       libsuff= shlibsuff= libmagic=32-bit;;
12559:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12560:       libsuff=32 shlibsuff=N32 libmagic=N32;;
12561:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12562:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12563:     *) libsuff= shlibsuff= libmagic=never-match;;
12564:     esac
12565:     ;;
12566:   esac
12567:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12568:   shlibpath_overrides_runpath=no
12569:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12570:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12571:   hardcode_into_libs=yes
12572:   ;;
12573: 
12574: # No shared lib support for Linux oldld, aout, or coff.
12575: linux*oldld* | linux*aout* | linux*coff*)
12576:   dynamic_linker=no
12577:   ;;
12578: 
12579: # This must be glibc/ELF.
12580: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12581:   version_type=linux # correct to gnu/linux during the next big refactor
12582:   need_lib_prefix=no
12583:   need_version=no
12584:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12585:   soname_spec='${libname}${release}${shared_ext}$major'
12586:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12587:   shlibpath_var=LD_LIBRARY_PATH
12588:   shlibpath_overrides_runpath=no
12589: 
12590:   # Some binutils ld are patched to set DT_RUNPATH
12591:   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12592:   $as_echo_n "(cached) " >&6
12593: else
12594:   lt_cv_shlibpath_overrides_runpath=no
12595:     save_LDFLAGS=$LDFLAGS
12596:     save_libdir=$libdir
12597:     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12598: 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12599:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600: /* end confdefs.h.  */
12601: 
12602: int
12603: main ()
12604: {
12605: 
12606:   ;
12607:   return 0;
12608: }
12609: _ACEOF
12610: if ac_fn_c_try_link "$LINENO"; then :
12611:   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12612:   lt_cv_shlibpath_overrides_runpath=yes
12613: fi
12614: fi
12615: rm -f core conftest.err conftest.$ac_objext \
12616:     conftest$ac_exeext conftest.$ac_ext
12617:     LDFLAGS=$save_LDFLAGS
12618:     libdir=$save_libdir
12619: 
12620: fi
12621: 
12622:   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12623: 
12624:   # This implies no fast_install, which is unacceptable.
12625:   # Some rework will be needed to allow for fast_install
12626:   # before this can be enabled.
12627:   hardcode_into_libs=yes
12628: 
12629:   # Append ld.so.conf contents to the search path
12630:   if test -f /etc/ld.so.conf; then
12631:     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' ' '`
12632:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12633:   fi
12634: 
12635:   # We used to test for /lib/ld.so.1 and disable shared libraries on
12636:   # powerpc, because MkLinux only supported shared libraries with the
12637:   # GNU dynamic linker.  Since this was broken with cross compilers,
12638:   # most powerpc-linux boxes support dynamic linking these days and
12639:   # people can always --disable-shared, the test was removed, and we
12640:   # assume the GNU/Linux dynamic linker is in use.
12641:   dynamic_linker='GNU/Linux ld.so'
12642:   ;;
12643: 
12644: netbsd*)
12645:   version_type=sunos
12646:   need_lib_prefix=no
12647:   need_version=no
12648:   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12649:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12650:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12651:     dynamic_linker='NetBSD (a.out) ld.so'
12652:   else
12653:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12654:     soname_spec='${libname}${release}${shared_ext}$major'
12655:     dynamic_linker='NetBSD ld.elf_so'
12656:   fi
12657:   shlibpath_var=LD_LIBRARY_PATH
12658:   shlibpath_overrides_runpath=yes
12659:   hardcode_into_libs=yes
12660:   ;;
12661: 
12662: newsos6)
12663:   version_type=linux # correct to gnu/linux during the next big refactor
12664:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12665:   shlibpath_var=LD_LIBRARY_PATH
12666:   shlibpath_overrides_runpath=yes
12667:   ;;
12668: 
12669: *nto* | *qnx*)
12670:   version_type=qnx
12671:   need_lib_prefix=no
12672:   need_version=no
12673:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12674:   soname_spec='${libname}${release}${shared_ext}$major'
12675:   shlibpath_var=LD_LIBRARY_PATH
12676:   shlibpath_overrides_runpath=no
12677:   hardcode_into_libs=yes
12678:   dynamic_linker='ldqnx.so'
12679:   ;;
12680: 
12681: openbsd*)
12682:   version_type=sunos
12683:   sys_lib_dlsearch_path_spec="/usr/lib"
12684:   need_lib_prefix=no
12685:   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12686:   case $host_os in
12687:     openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12688:     *)				need_version=no  ;;
12689:   esac
12690:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12691:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12692:   shlibpath_var=LD_LIBRARY_PATH
12693:   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12694:     case $host_os in
12695:       openbsd2.[89] | openbsd2.[89].*)
12696: 	shlibpath_overrides_runpath=no
12697: 	;;
12698:       *)
12699: 	shlibpath_overrides_runpath=yes
12700: 	;;
12701:       esac
12702:   else
12703:     shlibpath_overrides_runpath=yes
12704:   fi
12705:   ;;
12706: 
12707: os2*)
12708:   libname_spec='$name'
12709:   shrext_cmds=".dll"
12710:   need_lib_prefix=no
12711:   library_names_spec='$libname${shared_ext} $libname.a'
12712:   dynamic_linker='OS/2 ld.exe'
12713:   shlibpath_var=LIBPATH
12714:   ;;
12715: 
12716: osf3* | osf4* | osf5*)
12717:   version_type=osf
12718:   need_lib_prefix=no
12719:   need_version=no
12720:   soname_spec='${libname}${release}${shared_ext}$major'
12721:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12722:   shlibpath_var=LD_LIBRARY_PATH
12723:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12724:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12725:   ;;
12726: 
12727: rdos*)
12728:   dynamic_linker=no
12729:   ;;
12730: 
12731: solaris*)
12732:   version_type=linux # correct to gnu/linux during the next big refactor
12733:   need_lib_prefix=no
12734:   need_version=no
12735:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12736:   soname_spec='${libname}${release}${shared_ext}$major'
12737:   shlibpath_var=LD_LIBRARY_PATH
12738:   shlibpath_overrides_runpath=yes
12739:   hardcode_into_libs=yes
12740:   # ldd complains unless libraries are executable
12741:   postinstall_cmds='chmod +x $lib'
12742:   ;;
12743: 
12744: sunos4*)
12745:   version_type=sunos
12746:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12747:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12748:   shlibpath_var=LD_LIBRARY_PATH
12749:   shlibpath_overrides_runpath=yes
12750:   if test "$with_gnu_ld" = yes; then
12751:     need_lib_prefix=no
12752:   fi
12753:   need_version=yes
12754:   ;;
12755: 
12756: sysv4 | sysv4.3*)
12757:   version_type=linux # correct to gnu/linux during the next big refactor
12758:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12759:   soname_spec='${libname}${release}${shared_ext}$major'
12760:   shlibpath_var=LD_LIBRARY_PATH
12761:   case $host_vendor in
12762:     sni)
12763:       shlibpath_overrides_runpath=no
12764:       need_lib_prefix=no
12765:       runpath_var=LD_RUN_PATH
12766:       ;;
12767:     siemens)
12768:       need_lib_prefix=no
12769:       ;;
12770:     motorola)
12771:       need_lib_prefix=no
12772:       need_version=no
12773:       shlibpath_overrides_runpath=no
12774:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12775:       ;;
12776:   esac
12777:   ;;
12778: 
12779: sysv4*MP*)
12780:   if test -d /usr/nec ;then
12781:     version_type=linux # correct to gnu/linux during the next big refactor
12782:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12783:     soname_spec='$libname${shared_ext}.$major'
12784:     shlibpath_var=LD_LIBRARY_PATH
12785:   fi
12786:   ;;
12787: 
12788: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12789:   version_type=freebsd-elf
12790:   need_lib_prefix=no
12791:   need_version=no
12792:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12793:   soname_spec='${libname}${release}${shared_ext}$major'
12794:   shlibpath_var=LD_LIBRARY_PATH
12795:   shlibpath_overrides_runpath=yes
12796:   hardcode_into_libs=yes
12797:   if test "$with_gnu_ld" = yes; then
12798:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12799:   else
12800:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12801:     case $host_os in
12802:       sco3.2v5*)
12803:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12804: 	;;
12805:     esac
12806:   fi
12807:   sys_lib_dlsearch_path_spec='/usr/lib'
12808:   ;;
12809: 
12810: tpf*)
12811:   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12812:   version_type=linux # correct to gnu/linux during the next big refactor
12813:   need_lib_prefix=no
12814:   need_version=no
12815:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12816:   shlibpath_var=LD_LIBRARY_PATH
12817:   shlibpath_overrides_runpath=no
12818:   hardcode_into_libs=yes
12819:   ;;
12820: 
12821: uts4*)
12822:   version_type=linux # correct to gnu/linux during the next big refactor
12823:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12824:   soname_spec='${libname}${release}${shared_ext}$major'
12825:   shlibpath_var=LD_LIBRARY_PATH
12826:   ;;
12827: 
12828: *)
12829:   dynamic_linker=no
12830:   ;;
12831: esac
12832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12833: $as_echo "$dynamic_linker" >&6; }
12834: test "$dynamic_linker" = no && can_build_shared=no
12835: 
12836: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12837: if test "$GCC" = yes; then
12838:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12839: fi
12840: 
12841: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12842:   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12843: fi
12844: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12845:   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12846: fi
12847: 
12848: 
12849: 
12850: 
12851: 
12852: 
12853: 
12854: 
12855: 
12856: 
12857: 
12858: 
12859: 
12860: 
12861: 
12862: 
12863: 
12864: 
12865: 
12866: 
12867: 
12868: 
12869: 
12870: 
12871: 
12872: 
12873: 
12874: 
12875: 
12876: 
12877: 
12878: 
12879: 
12880: 
12881: 
12882: 
12883: 
12884: 
12885: 
12886: 
12887: 
12888: 
12889: 
12890: 
12891: 
12892: 
12893: 
12894: 
12895: 
12896: 
12897: 
12898: 
12899: 
12900: 
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:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12940: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12941: hardcode_action=
12942: if test -n "$hardcode_libdir_flag_spec" ||
12943:    test -n "$runpath_var" ||
12944:    test "X$hardcode_automatic" = "Xyes" ; then
12945: 
12946:   # We can hardcode non-existent directories.
12947:   if test "$hardcode_direct" != no &&
12948:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12949:      # have to relink, otherwise we might link with an installed library
12950:      # when we should be linking with a yet-to-be-installed one
12951:      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12952:      test "$hardcode_minus_L" != no; then
12953:     # Linking always hardcodes the temporary library directory.
12954:     hardcode_action=relink
12955:   else
12956:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12957:     hardcode_action=immediate
12958:   fi
12959: else
12960:   # We cannot hardcode anything, or else we can only hardcode existing
12961:   # directories.
12962:   hardcode_action=unsupported
12963: fi
12964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12965: $as_echo "$hardcode_action" >&6; }
12966: 
12967: if test "$hardcode_action" = relink ||
12968:    test "$inherit_rpath" = yes; then
12969:   # Fast installation is not supported
12970:   enable_fast_install=no
12971: elif test "$shlibpath_overrides_runpath" = yes ||
12972:      test "$enable_shared" = no; then
12973:   # Fast installation is not necessary
12974:   enable_fast_install=needless
12975: fi
12976: 
12977: 
12978: 
12979: 
12980: 
12981: 
12982:   if test "x$enable_dlopen" != xyes; then
12983:   enable_dlopen=unknown
12984:   enable_dlopen_self=unknown
12985:   enable_dlopen_self_static=unknown
12986: else
12987:   lt_cv_dlopen=no
12988:   lt_cv_dlopen_libs=
12989: 
12990:   case $host_os in
12991:   beos*)
12992:     lt_cv_dlopen="load_add_on"
12993:     lt_cv_dlopen_libs=
12994:     lt_cv_dlopen_self=yes
12995:     ;;
12996: 
12997:   mingw* | pw32* | cegcc*)
12998:     lt_cv_dlopen="LoadLibrary"
12999:     lt_cv_dlopen_libs=
13000:     ;;
13001: 
13002:   cygwin*)
13003:     lt_cv_dlopen="dlopen"
13004:     lt_cv_dlopen_libs=
13005:     ;;
13006: 
13007:   darwin*)
13008:   # if libdl is installed we need to link against it
13009:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13010: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13011: if ${ac_cv_lib_dl_dlopen+:} false; then :
13012:   $as_echo_n "(cached) " >&6
13013: else
13014:   ac_check_lib_save_LIBS=$LIBS
13015: LIBS="-ldl  $LIBS"
13016: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017: /* end confdefs.h.  */
13018: 
13019: /* Override any GCC internal prototype to avoid an error.
13020:    Use char because int might match the return type of a GCC
13021:    builtin and then its argument prototype would still apply.  */
13022: #ifdef __cplusplus
13023: extern "C"
13024: #endif
13025: char dlopen ();
13026: int
13027: main ()
13028: {
13029: return dlopen ();
13030:   ;
13031:   return 0;
13032: }
13033: _ACEOF
13034: if ac_fn_c_try_link "$LINENO"; then :
13035:   ac_cv_lib_dl_dlopen=yes
13036: else
13037:   ac_cv_lib_dl_dlopen=no
13038: fi
13039: rm -f core conftest.err conftest.$ac_objext \
13040:     conftest$ac_exeext conftest.$ac_ext
13041: LIBS=$ac_check_lib_save_LIBS
13042: fi
13043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13044: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13045: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13046:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13047: else
13048: 
13049:     lt_cv_dlopen="dyld"
13050:     lt_cv_dlopen_libs=
13051:     lt_cv_dlopen_self=yes
13052: 
13053: fi
13054: 
13055:     ;;
13056: 
13057:   *)
13058:     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13059: if test "x$ac_cv_func_shl_load" = xyes; then :
13060:   lt_cv_dlopen="shl_load"
13061: else
13062:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13063: $as_echo_n "checking for shl_load in -ldld... " >&6; }
13064: if ${ac_cv_lib_dld_shl_load+:} false; then :
13065:   $as_echo_n "(cached) " >&6
13066: else
13067:   ac_check_lib_save_LIBS=$LIBS
13068: LIBS="-ldld  $LIBS"
13069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070: /* end confdefs.h.  */
13071: 
13072: /* Override any GCC internal prototype to avoid an error.
13073:    Use char because int might match the return type of a GCC
13074:    builtin and then its argument prototype would still apply.  */
13075: #ifdef __cplusplus
13076: extern "C"
13077: #endif
13078: char shl_load ();
13079: int
13080: main ()
13081: {
13082: return shl_load ();
13083:   ;
13084:   return 0;
13085: }
13086: _ACEOF
13087: if ac_fn_c_try_link "$LINENO"; then :
13088:   ac_cv_lib_dld_shl_load=yes
13089: else
13090:   ac_cv_lib_dld_shl_load=no
13091: fi
13092: rm -f core conftest.err conftest.$ac_objext \
13093:     conftest$ac_exeext conftest.$ac_ext
13094: LIBS=$ac_check_lib_save_LIBS
13095: fi
13096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13097: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13098: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13099:   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13100: else
13101:   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13102: if test "x$ac_cv_func_dlopen" = xyes; then :
13103:   lt_cv_dlopen="dlopen"
13104: else
13105:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13106: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13107: if ${ac_cv_lib_dl_dlopen+:} false; then :
13108:   $as_echo_n "(cached) " >&6
13109: else
13110:   ac_check_lib_save_LIBS=$LIBS
13111: LIBS="-ldl  $LIBS"
13112: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113: /* end confdefs.h.  */
13114: 
13115: /* Override any GCC internal prototype to avoid an error.
13116:    Use char because int might match the return type of a GCC
13117:    builtin and then its argument prototype would still apply.  */
13118: #ifdef __cplusplus
13119: extern "C"
13120: #endif
13121: char dlopen ();
13122: int
13123: main ()
13124: {
13125: return dlopen ();
13126:   ;
13127:   return 0;
13128: }
13129: _ACEOF
13130: if ac_fn_c_try_link "$LINENO"; then :
13131:   ac_cv_lib_dl_dlopen=yes
13132: else
13133:   ac_cv_lib_dl_dlopen=no
13134: fi
13135: rm -f core conftest.err conftest.$ac_objext \
13136:     conftest$ac_exeext conftest.$ac_ext
13137: LIBS=$ac_check_lib_save_LIBS
13138: fi
13139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13140: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13141: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13142:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13143: else
13144:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13145: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13146: if ${ac_cv_lib_svld_dlopen+:} false; then :
13147:   $as_echo_n "(cached) " >&6
13148: else
13149:   ac_check_lib_save_LIBS=$LIBS
13150: LIBS="-lsvld  $LIBS"
13151: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152: /* end confdefs.h.  */
13153: 
13154: /* Override any GCC internal prototype to avoid an error.
13155:    Use char because int might match the return type of a GCC
13156:    builtin and then its argument prototype would still apply.  */
13157: #ifdef __cplusplus
13158: extern "C"
13159: #endif
13160: char dlopen ();
13161: int
13162: main ()
13163: {
13164: return dlopen ();
13165:   ;
13166:   return 0;
13167: }
13168: _ACEOF
13169: if ac_fn_c_try_link "$LINENO"; then :
13170:   ac_cv_lib_svld_dlopen=yes
13171: else
13172:   ac_cv_lib_svld_dlopen=no
13173: fi
13174: rm -f core conftest.err conftest.$ac_objext \
13175:     conftest$ac_exeext conftest.$ac_ext
13176: LIBS=$ac_check_lib_save_LIBS
13177: fi
13178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13179: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13180: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13181:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13182: else
13183:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13184: $as_echo_n "checking for dld_link in -ldld... " >&6; }
13185: if ${ac_cv_lib_dld_dld_link+:} false; then :
13186:   $as_echo_n "(cached) " >&6
13187: else
13188:   ac_check_lib_save_LIBS=$LIBS
13189: LIBS="-ldld  $LIBS"
13190: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191: /* end confdefs.h.  */
13192: 
13193: /* Override any GCC internal prototype to avoid an error.
13194:    Use char because int might match the return type of a GCC
13195:    builtin and then its argument prototype would still apply.  */
13196: #ifdef __cplusplus
13197: extern "C"
13198: #endif
13199: char dld_link ();
13200: int
13201: main ()
13202: {
13203: return dld_link ();
13204:   ;
13205:   return 0;
13206: }
13207: _ACEOF
13208: if ac_fn_c_try_link "$LINENO"; then :
13209:   ac_cv_lib_dld_dld_link=yes
13210: else
13211:   ac_cv_lib_dld_dld_link=no
13212: fi
13213: rm -f core conftest.err conftest.$ac_objext \
13214:     conftest$ac_exeext conftest.$ac_ext
13215: LIBS=$ac_check_lib_save_LIBS
13216: fi
13217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13218: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13219: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13220:   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13221: fi
13222: 
13223: 
13224: fi
13225: 
13226: 
13227: fi
13228: 
13229: 
13230: fi
13231: 
13232: 
13233: fi
13234: 
13235: 
13236: fi
13237: 
13238:     ;;
13239:   esac
13240: 
13241:   if test "x$lt_cv_dlopen" != xno; then
13242:     enable_dlopen=yes
13243:   else
13244:     enable_dlopen=no
13245:   fi
13246: 
13247:   case $lt_cv_dlopen in
13248:   dlopen)
13249:     save_CPPFLAGS="$CPPFLAGS"
13250:     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13251: 
13252:     save_LDFLAGS="$LDFLAGS"
13253:     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13254: 
13255:     save_LIBS="$LIBS"
13256:     LIBS="$lt_cv_dlopen_libs $LIBS"
13257: 
13258:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13259: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13260: if ${lt_cv_dlopen_self+:} false; then :
13261:   $as_echo_n "(cached) " >&6
13262: else
13263:   	  if test "$cross_compiling" = yes; then :
13264:   lt_cv_dlopen_self=cross
13265: else
13266:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13267:   lt_status=$lt_dlunknown
13268:   cat > conftest.$ac_ext <<_LT_EOF
13269: #line $LINENO "configure"
13270: #include "confdefs.h"
13271: 
13272: #if HAVE_DLFCN_H
13273: #include <dlfcn.h>
13274: #endif
13275: 
13276: #include <stdio.h>
13277: 
13278: #ifdef RTLD_GLOBAL
13279: #  define LT_DLGLOBAL		RTLD_GLOBAL
13280: #else
13281: #  ifdef DL_GLOBAL
13282: #    define LT_DLGLOBAL		DL_GLOBAL
13283: #  else
13284: #    define LT_DLGLOBAL		0
13285: #  endif
13286: #endif
13287: 
13288: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13289:    find out it does not work in some platform. */
13290: #ifndef LT_DLLAZY_OR_NOW
13291: #  ifdef RTLD_LAZY
13292: #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13293: #  else
13294: #    ifdef DL_LAZY
13295: #      define LT_DLLAZY_OR_NOW		DL_LAZY
13296: #    else
13297: #      ifdef RTLD_NOW
13298: #        define LT_DLLAZY_OR_NOW	RTLD_NOW
13299: #      else
13300: #        ifdef DL_NOW
13301: #          define LT_DLLAZY_OR_NOW	DL_NOW
13302: #        else
13303: #          define LT_DLLAZY_OR_NOW	0
13304: #        endif
13305: #      endif
13306: #    endif
13307: #  endif
13308: #endif
13309: 
13310: /* When -fvisbility=hidden is used, assume the code has been annotated
13311:    correspondingly for the symbols needed.  */
13312: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13313: int fnord () __attribute__((visibility("default")));
13314: #endif
13315: 
13316: int fnord () { return 42; }
13317: int main ()
13318: {
13319:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13320:   int status = $lt_dlunknown;
13321: 
13322:   if (self)
13323:     {
13324:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13325:       else
13326:         {
13327: 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13328:           else puts (dlerror ());
13329: 	}
13330:       /* dlclose (self); */
13331:     }
13332:   else
13333:     puts (dlerror ());
13334: 
13335:   return status;
13336: }
13337: _LT_EOF
13338:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13339:   (eval $ac_link) 2>&5
13340:   ac_status=$?
13341:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13342:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13343:     (./conftest; exit; ) >&5 2>/dev/null
13344:     lt_status=$?
13345:     case x$lt_status in
13346:       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13347:       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13348:       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13349:     esac
13350:   else :
13351:     # compilation failed
13352:     lt_cv_dlopen_self=no
13353:   fi
13354: fi
13355: rm -fr conftest*
13356: 
13357: 
13358: fi
13359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13360: $as_echo "$lt_cv_dlopen_self" >&6; }
13361: 
13362:     if test "x$lt_cv_dlopen_self" = xyes; then
13363:       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13364:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13365: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13366: if ${lt_cv_dlopen_self_static+:} false; then :
13367:   $as_echo_n "(cached) " >&6
13368: else
13369:   	  if test "$cross_compiling" = yes; then :
13370:   lt_cv_dlopen_self_static=cross
13371: else
13372:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13373:   lt_status=$lt_dlunknown
13374:   cat > conftest.$ac_ext <<_LT_EOF
13375: #line $LINENO "configure"
13376: #include "confdefs.h"
13377: 
13378: #if HAVE_DLFCN_H
13379: #include <dlfcn.h>
13380: #endif
13381: 
13382: #include <stdio.h>
13383: 
13384: #ifdef RTLD_GLOBAL
13385: #  define LT_DLGLOBAL		RTLD_GLOBAL
13386: #else
13387: #  ifdef DL_GLOBAL
13388: #    define LT_DLGLOBAL		DL_GLOBAL
13389: #  else
13390: #    define LT_DLGLOBAL		0
13391: #  endif
13392: #endif
13393: 
13394: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13395:    find out it does not work in some platform. */
13396: #ifndef LT_DLLAZY_OR_NOW
13397: #  ifdef RTLD_LAZY
13398: #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13399: #  else
13400: #    ifdef DL_LAZY
13401: #      define LT_DLLAZY_OR_NOW		DL_LAZY
13402: #    else
13403: #      ifdef RTLD_NOW
13404: #        define LT_DLLAZY_OR_NOW	RTLD_NOW
13405: #      else
13406: #        ifdef DL_NOW
13407: #          define LT_DLLAZY_OR_NOW	DL_NOW
13408: #        else
13409: #          define LT_DLLAZY_OR_NOW	0
13410: #        endif
13411: #      endif
13412: #    endif
13413: #  endif
13414: #endif
13415: 
13416: /* When -fvisbility=hidden is used, assume the code has been annotated
13417:    correspondingly for the symbols needed.  */
13418: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13419: int fnord () __attribute__((visibility("default")));
13420: #endif
13421: 
13422: int fnord () { return 42; }
13423: int main ()
13424: {
13425:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13426:   int status = $lt_dlunknown;
13427: 
13428:   if (self)
13429:     {
13430:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13431:       else
13432:         {
13433: 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13434:           else puts (dlerror ());
13435: 	}
13436:       /* dlclose (self); */
13437:     }
13438:   else
13439:     puts (dlerror ());
13440: 
13441:   return status;
13442: }
13443: _LT_EOF
13444:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13445:   (eval $ac_link) 2>&5
13446:   ac_status=$?
13447:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13448:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13449:     (./conftest; exit; ) >&5 2>/dev/null
13450:     lt_status=$?
13451:     case x$lt_status in
13452:       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13453:       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13454:       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13455:     esac
13456:   else :
13457:     # compilation failed
13458:     lt_cv_dlopen_self_static=no
13459:   fi
13460: fi
13461: rm -fr conftest*
13462: 
13463: 
13464: fi
13465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13466: $as_echo "$lt_cv_dlopen_self_static" >&6; }
13467:     fi
13468: 
13469:     CPPFLAGS="$save_CPPFLAGS"
13470:     LDFLAGS="$save_LDFLAGS"
13471:     LIBS="$save_LIBS"
13472:     ;;
13473:   esac
13474: 
13475:   case $lt_cv_dlopen_self in
13476:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13477:   *) enable_dlopen_self=unknown ;;
13478:   esac
13479: 
13480:   case $lt_cv_dlopen_self_static in
13481:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13482:   *) enable_dlopen_self_static=unknown ;;
13483:   esac
13484: fi
13485: 
13486: 
13487: 
13488: 
13489: 
13490: 
13491: 
13492: 
13493: 
13494: 
13495: 
13496: 
13497: 
13498: 
13499: 
13500: 
13501: 
13502: striplib=
13503: old_striplib=
13504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13505: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13506: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13507:   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13508:   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13509:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13510: $as_echo "yes" >&6; }
13511: else
13512: # FIXME - insert some real tests, host_os isn't really good enough
13513:   case $host_os in
13514:   darwin*)
13515:     if test -n "$STRIP" ; then
13516:       striplib="$STRIP -x"
13517:       old_striplib="$STRIP -S"
13518:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13519: $as_echo "yes" >&6; }
13520:     else
13521:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522: $as_echo "no" >&6; }
13523:     fi
13524:     ;;
13525:   *)
13526:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527: $as_echo "no" >&6; }
13528:     ;;
13529:   esac
13530: fi
13531: 
13532: 
13533: 
13534: 
13535: 
13536: 
13537: 
13538: 
13539: 
13540: 
13541: 
13542: 
13543:   # Report which library types will actually be built
13544:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13545: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13546:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13547: $as_echo "$can_build_shared" >&6; }
13548: 
13549:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13550: $as_echo_n "checking whether to build shared libraries... " >&6; }
13551:   test "$can_build_shared" = "no" && enable_shared=no
13552: 
13553:   # On AIX, shared libraries and static libraries use the same namespace, and
13554:   # are all built from PIC.
13555:   case $host_os in
13556:   aix3*)
13557:     test "$enable_shared" = yes && enable_static=no
13558:     if test -n "$RANLIB"; then
13559:       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13560:       postinstall_cmds='$RANLIB $lib'
13561:     fi
13562:     ;;
13563: 
13564:   aix[4-9]*)
13565:     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13566:       test "$enable_shared" = yes && enable_static=no
13567:     fi
13568:     ;;
13569:   esac
13570:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13571: $as_echo "$enable_shared" >&6; }
13572: 
13573:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13574: $as_echo_n "checking whether to build static libraries... " >&6; }
13575:   # Make sure either enable_shared or enable_static is yes.
13576:   test "$enable_shared" = yes || enable_static=yes
13577:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13578: $as_echo "$enable_static" >&6; }
13579: 
13580: 
13581: 
13582: 
13583: fi
13584: ac_ext=c
13585: ac_cpp='$CPP $CPPFLAGS'
13586: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13589: 
13590: CC="$lt_save_CC"
13591: 
13592: 
13593: 
13594: 
13595: 
13596: 
13597: 
13598: 
13599: 
13600: 
13601: 
13602: 
13603: 
13604: 
13605: 
13606:         ac_config_commands="$ac_config_commands libtool"
13607: 
13608: 
13609: 
13610: 
13611: # Only expand once:
13612: 
13613: 
13614: 
13615: if test "$enable_shared" = "no"; then
13616:     with_noexec=no
13617:     enable_dlopen=no
13618:     lt_cv_dlopen=none
13619:     lt_cv_dlopen_libs=
13620:     ac_cv_func_dlopen=no
13621: else
13622:     eval _shrext="$shrext_cmds"
13623:     # Darwin uses .dylib for libraries but .so for modules
13624:     if test X"$_shrext" = X".dylib"; then
13625: 	SOEXT=".so"
13626:     else
13627: 	SOEXT="$_shrext"
13628:     fi
13629: fi
13630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13631: $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13632: 
13633: # Check whether --with-noexec was given.
13634: if test "${with_noexec+set}" = set; then :
13635:   withval=$with_noexec; case $with_noexec in
13636:     yes)	with_noexec="$libexecdir/sudo_noexec$_shrext"
13637: 		;;
13638:     no)		;;
13639:     *)		;;
13640: esac
13641: else
13642:   with_noexec="$libexecdir/sudo_noexec$_shrext"
13643: fi
13644: 
13645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13646: $as_echo "$with_noexec" >&6; }
13647: NOEXECFILE="sudo_noexec$_shrext"
13648: NOEXECDIR="`echo $with_noexec|sed -e 's:^${\([^}]*\)}:$(\1):' -e 's:^\(.*\)/[^/]*:\1:'`"
13649: 
13650: # Extract the first word of "uname", so it can be a program name with args.
13651: set dummy uname; ac_word=$2
13652: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13653: $as_echo_n "checking for $ac_word... " >&6; }
13654: if ${ac_cv_path_UNAMEPROG+:} false; then :
13655:   $as_echo_n "(cached) " >&6
13656: else
13657:   case $UNAMEPROG in
13658:   [\\/]* | ?:[\\/]*)
13659:   ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
13660:   ;;
13661:   *)
13662:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13663: for as_dir in $PATH
13664: do
13665:   IFS=$as_save_IFS
13666:   test -z "$as_dir" && as_dir=.
13667:     for ac_exec_ext in '' $ac_executable_extensions; do
13668:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13669:     ac_cv_path_UNAMEPROG="$as_dir/$ac_word$ac_exec_ext"
13670:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13671:     break 2
13672:   fi
13673: done
13674:   done
13675: IFS=$as_save_IFS
13676: 
13677:   test -z "$ac_cv_path_UNAMEPROG" && ac_cv_path_UNAMEPROG="uname"
13678:   ;;
13679: esac
13680: fi
13681: UNAMEPROG=$ac_cv_path_UNAMEPROG
13682: if test -n "$UNAMEPROG"; then
13683:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13684: $as_echo "$UNAMEPROG" >&6; }
13685: else
13686:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687: $as_echo "no" >&6; }
13688: fi
13689: 
13690: 
13691: # Extract the first word of "tr", so it can be a program name with args.
13692: set dummy tr; ac_word=$2
13693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13694: $as_echo_n "checking for $ac_word... " >&6; }
13695: if ${ac_cv_path_TRPROG+:} false; then :
13696:   $as_echo_n "(cached) " >&6
13697: else
13698:   case $TRPROG in
13699:   [\\/]* | ?:[\\/]*)
13700:   ac_cv_path_TRPROG="$TRPROG" # Let the user override the test with a path.
13701:   ;;
13702:   *)
13703:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13704: for as_dir in $PATH
13705: do
13706:   IFS=$as_save_IFS
13707:   test -z "$as_dir" && as_dir=.
13708:     for ac_exec_ext in '' $ac_executable_extensions; do
13709:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13710:     ac_cv_path_TRPROG="$as_dir/$ac_word$ac_exec_ext"
13711:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13712:     break 2
13713:   fi
13714: done
13715:   done
13716: IFS=$as_save_IFS
13717: 
13718:   test -z "$ac_cv_path_TRPROG" && ac_cv_path_TRPROG="tr"
13719:   ;;
13720: esac
13721: fi
13722: TRPROG=$ac_cv_path_TRPROG
13723: if test -n "$TRPROG"; then
13724:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13725: $as_echo "$TRPROG" >&6; }
13726: else
13727:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728: $as_echo "no" >&6; }
13729: fi
13730: 
13731: 
13732: # Extract the first word of "mandoc", so it can be a program name with args.
13733: set dummy mandoc; ac_word=$2
13734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735: $as_echo_n "checking for $ac_word... " >&6; }
13736: if ${ac_cv_path_MANDOCPROG+:} false; then :
13737:   $as_echo_n "(cached) " >&6
13738: else
13739:   case $MANDOCPROG in
13740:   [\\/]* | ?:[\\/]*)
13741:   ac_cv_path_MANDOCPROG="$MANDOCPROG" # Let the user override the test with a path.
13742:   ;;
13743:   *)
13744:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745: for as_dir in $PATH
13746: do
13747:   IFS=$as_save_IFS
13748:   test -z "$as_dir" && as_dir=.
13749:     for ac_exec_ext in '' $ac_executable_extensions; do
13750:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13751:     ac_cv_path_MANDOCPROG="$as_dir/$ac_word$ac_exec_ext"
13752:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753:     break 2
13754:   fi
13755: done
13756:   done
13757: IFS=$as_save_IFS
13758: 
13759:   test -z "$ac_cv_path_MANDOCPROG" && ac_cv_path_MANDOCPROG="mandoc"
13760:   ;;
13761: esac
13762: fi
13763: MANDOCPROG=$ac_cv_path_MANDOCPROG
13764: if test -n "$MANDOCPROG"; then
13765:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOCPROG" >&5
13766: $as_echo "$MANDOCPROG" >&6; }
13767: else
13768:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769: $as_echo "no" >&6; }
13770: fi
13771: 
13772: 
13773: if test "$MANDOCPROG" != "mandoc"; then
13774:     : ${MANTYPE='mdoc'}
13775: else
13776:     # Extract the first word of "nroff", so it can be a program name with args.
13777: set dummy nroff; ac_word=$2
13778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779: $as_echo_n "checking for $ac_word... " >&6; }
13780: if ${ac_cv_path_NROFFPROG+:} false; then :
13781:   $as_echo_n "(cached) " >&6
13782: else
13783:   case $NROFFPROG in
13784:   [\\/]* | ?:[\\/]*)
13785:   ac_cv_path_NROFFPROG="$NROFFPROG" # Let the user override the test with a path.
13786:   ;;
13787:   *)
13788:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789: for as_dir in $PATH
13790: do
13791:   IFS=$as_save_IFS
13792:   test -z "$as_dir" && as_dir=.
13793:     for ac_exec_ext in '' $ac_executable_extensions; do
13794:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13795:     ac_cv_path_NROFFPROG="$as_dir/$ac_word$ac_exec_ext"
13796:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797:     break 2
13798:   fi
13799: done
13800:   done
13801: IFS=$as_save_IFS
13802: 
13803:   ;;
13804: esac
13805: fi
13806: NROFFPROG=$ac_cv_path_NROFFPROG
13807: if test -n "$NROFFPROG"; then
13808:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13809: $as_echo "$NROFFPROG" >&6; }
13810: else
13811:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812: $as_echo "no" >&6; }
13813: fi
13814: 
13815: 
13816:     if test -n "$NROFFPROG"; then
13817: 	test -n "$MANTYPE" && sudo_cv_var_mantype="$MANTYPE"
13818: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which macro set to use for manual pages" >&5
13819: $as_echo_n "checking which macro set to use for manual pages... " >&6; }
13820: if ${sudo_cv_var_mantype+:} false; then :
13821:   $as_echo_n "(cached) " >&6
13822: else
13823: 
13824: 		sudo_cv_var_mantype="man"
13825: 		echo ".Sh NAME" > conftest
13826: 		echo ".Nm sudo" >> conftest
13827: 		echo ".Nd sudo" >> conftest
13828: 		echo ".Sh DESCRIPTION" >> conftest
13829: 		echo "sudo" >> conftest
13830: 		if $NROFFPROG -mdoc conftest >/dev/null 2>&1; then
13831: 		    sudo_cv_var_mantype="mdoc"
13832: 		fi
13833: 		rm -f conftest
13834: 
13835: 
13836: fi
13837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_mantype" >&5
13838: $as_echo "$sudo_cv_var_mantype" >&6; }
13839: 	MANTYPE="$sudo_cv_var_mantype"
13840:     else
13841: 	MANTYPE=cat
13842: 	MANDIRTYPE=cat
13843: 	mansrcdir='$(srcdir)'
13844:     fi
13845: fi
13846: 
13847: if test -n "$sudo_cv_prev_host"; then
13848:     if test "$sudo_cv_prev_host" != "$host"; then
13849: 	as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13850:     else
13851: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13852: $as_echo_n "checking previous host type... " >&6; }
13853: 	if ${sudo_cv_prev_host+:} false; then :
13854:   $as_echo_n "(cached) " >&6
13855: else
13856:   sudo_cv_prev_host="$host"
13857: fi
13858: 
13859: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13860: $as_echo "$sudo_cv_prev_host" >&6; }
13861:     fi
13862: else
13863:     # this will produce no output since there is no cached value
13864:     if ${sudo_cv_prev_host+:} false; then :
13865:   $as_echo_n "(cached) " >&6
13866: else
13867:   sudo_cv_prev_host="$host"
13868: fi
13869: 
13870: fi
13871: 
13872: if test -n "$host_os"; then
13873:     OS=`echo $host_os | sed 's/[0-9].*//'`
13874:     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13875:     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13876: else
13877:     OS="unknown"
13878:     OSREV=0
13879:     OSMAJOR=0
13880: fi
13881: 
13882: case "$host" in
13883:     *-*-sunos4*)
13884: 		# LD_PRELOAD is space-delimited
13885: 		RTLD_PRELOAD_DELIM=" "
13886: 
13887: 		# getcwd(3) opens a pipe to getpwd(1)!?!
13888: 		BROKEN_GETCWD=1
13889: 
13890: 		# system headers lack prototypes but gcc helps...
13891: 		if test -n "$GCC"; then
13892: 		    OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13893: 		fi
13894: 
13895: 		shadow_funcs="getpwanam issecure"
13896: 		;;
13897:     *-*-solaris2*)
13898: 		# LD_PRELOAD is space-delimited
13899: 		RTLD_PRELOAD_DELIM=" "
13900: 
13901: 		# To get the crypt(3) prototype (so we pass -Wall)
13902: 		OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13903: 		# AFS support needs -lucb
13904: 		if test "$with_AFS" = "yes"; then
13905: 		    AFS_LIBS="-lc -lucb"
13906: 		fi
13907: 		: ${mansectsu='1m'}
13908: 		: ${mansectform='4'}
13909: 		: ${with_rpath='yes'}
13910: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13911: 		for ac_func in priv_set
13912: do :
13913:   ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13914: if test "x$ac_cv_func_priv_set" = xyes; then :
13915:   cat >>confdefs.h <<_ACEOF
13916: #define HAVE_PRIV_SET 1
13917: _ACEOF
13918:  PSMAN=1
13919: fi
13920: done
13921: 
13922: 		;;
13923:     *-*-aix*)
13924: 		# To get all prototypes (so we pass -Wall)
13925: 		OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
13926: 		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
13927: 		if test X"$with_blibpath" != X"no"; then
13928: 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5
13929: $as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; }
13930: 		    O_LDFLAGS="$LDFLAGS"
13931: 		    LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
13932: 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933: /* end confdefs.h.  */
13934: 
13935: int
13936: main ()
13937: {
13938: 
13939:   ;
13940:   return 0;
13941: }
13942: _ACEOF
13943: if ac_fn_c_try_link "$LINENO"; then :
13944: 
13945: 			if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
13946: 			    blibpath="$with_blibpath"
13947: 			elif test -n "$GCC"; then
13948: 			    blibpath="/usr/lib:/lib:/usr/local/lib"
13949: 			else
13950: 			    blibpath="/usr/lib:/lib"
13951: 			fi
13952: 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13953: $as_echo "yes" >&6; }
13954: 
13955: else
13956:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13957: $as_echo "no" >&6; }
13958: fi
13959: rm -f core conftest.err conftest.$ac_objext \
13960:     conftest$ac_exeext conftest.$ac_ext
13961: 		fi
13962: 		LDFLAGS="$O_LDFLAGS"
13963: 
13964: 		# On AIX 6 and higher default to PAM, else default to LAM
13965: 		if test $OSMAJOR -ge 6; then
13966: 		    if test X"$with_pam" = X""; then
13967: 			AUTH_EXCL_DEF="PAM"
13968: 		    fi
13969: 		else
13970: 		    if test X"$with_aixauth" = X""; then
13971: 			for ac_func in authenticate
13972: do :
13973:   ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
13974: if test "x$ac_cv_func_authenticate" = xyes; then :
13975:   cat >>confdefs.h <<_ACEOF
13976: #define HAVE_AUTHENTICATE 1
13977: _ACEOF
13978:  AUTH_EXCL_DEF="AIX_AUTH"
13979: fi
13980: done
13981: 
13982: 		    fi
13983: 		fi
13984: 
13985: 		# AIX analog of nsswitch.conf, enabled by default
13986: 
13987: # Check whether --with-netsvc was given.
13988: if test "${with_netsvc+set}" = set; then :
13989:   withval=$with_netsvc; case $with_netsvc in
13990: 		    no)		;;
13991: 		    yes)	with_netsvc="/etc/netsvc.conf"
13992: 				;;
13993: 		    *)		;;
13994: 		esac
13995: fi
13996: 
13997: 		if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
13998: 		    with_netsvc="/etc/netsvc.conf"
13999: 		fi
14000: 
14001: 		# For implementing getgrouplist()
14002: 		for ac_func in getgrset
14003: do :
14004:   ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
14005: if test "x$ac_cv_func_getgrset" = xyes; then :
14006:   cat >>confdefs.h <<_ACEOF
14007: #define HAVE_GETGRSET 1
14008: _ACEOF
14009: 
14010: fi
14011: done
14012: 
14013: 
14014: 		# LDR_PRELOAD is only supported in AIX 5.3 and later
14015: 		if test $OSMAJOR -lt 5; then
14016: 		    with_noexec=no
14017: 		else
14018: 		    RTLD_PRELOAD_VAR="LDR_PRELOAD"
14019: 		fi
14020: 
14021: 		# AIX-specific functions
14022: 		for ac_func in getuserattr setauthdb
14023: do :
14024:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14025: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14026: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14027:   cat >>confdefs.h <<_ACEOF
14028: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14029: _ACEOF
14030: 
14031: fi
14032: done
14033: 
14034: 		COMMON_OBJS="$COMMON_OBJS aix.lo"
14035: 		;;
14036:     *-*-hiuxmpp*)
14037: 		: ${mansectsu='1m'}
14038: 		: ${mansectform='4'}
14039: 
14040: 		# HP-UX shared libs must be executable
14041: 		SHLIB_MODE=0755
14042: 		;;
14043:     *-*-hpux*)
14044: 		# AFS support needs -lBSD
14045: 		if test "$with_AFS" = "yes"; then
14046: 		    AFS_LIBS="-lc -lBSD"
14047: 		fi
14048: 		: ${mansectsu='1m'}
14049: 		: ${mansectform='4'}
14050: 
14051: 		# HP-UX shared libs must be executable
14052: 		SHLIB_MODE=0755
14053: 
14054: 		# The HP bundled compiler cannot generate shared libs
14055: 		if test -z "$GCC"; then
14056: 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
14057: $as_echo_n "checking for HP bundled C compiler... " >&6; }
14058: if ${sudo_cv_var_hpccbundled+:} false; then :
14059:   $as_echo_n "(cached) " >&6
14060: else
14061:   if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
14062: 			    sudo_cv_var_hpccbundled=yes
14063: 			else
14064: 			    sudo_cv_var_hpccbundled=no
14065: 			fi
14066: 
14067: fi
14068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
14069: $as_echo "$sudo_cv_var_hpccbundled" >&6; }
14070: 		    if test "$sudo_cv_var_hpccbundled" = "yes"; then
14071: 			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
14072: 		    fi
14073: 		fi
14074: 
14075: 		# Build PA-RISC1.1 objects for better portability
14076: 		case "$host_cpu" in
14077: 		    hppa[2-9]*)
14078: 			_CFLAGS="$CFLAGS"
14079: 			if test -n "$GCC"; then
14080: 			    portable_flag="-march=1.1"
14081: 			else
14082: 			    portable_flag="+DAportable"
14083: 			fi
14084: 			CFLAGS="$CFLAGS $portable_flag"
14085: 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
14086: $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
14087: if ${sudo_cv_var_daportable+:} false; then :
14088:   $as_echo_n "(cached) " >&6
14089: else
14090:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091: /* end confdefs.h.  */
14092: 
14093: int
14094: main ()
14095: {
14096: 
14097:   ;
14098:   return 0;
14099: }
14100: _ACEOF
14101: if ac_fn_c_try_link "$LINENO"; then :
14102:   sudo_cv_var_daportable=yes
14103: else
14104:   sudo_cv_var_daportable=no
14105: 
14106: fi
14107: rm -f core conftest.err conftest.$ac_objext \
14108:     conftest$ac_exeext conftest.$ac_ext
14109: 
14110: 
14111: fi
14112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
14113: $as_echo "$sudo_cv_var_daportable" >&6; }
14114: 			if test X"$sudo_cv_var_daportable" != X"yes"; then
14115: 			    CFLAGS="$_CFLAGS"
14116: 			fi
14117: 			;;
14118: 		esac
14119: 
14120: 		case "$host" in
14121: 			*-*-hpux[1-8].*)
14122: 			    $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14123: 
14124: 			;;
14125: 			*-*-hpux9.*)
14126: 			    $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14127: 
14128: 
14129: 			    shadow_funcs="getspwuid"
14130: 
14131: 			    # DCE support (requires ANSI C compiler)
14132: 			    if test "$with_DCE" = "yes"; then
14133: 				# order of libs in 9.X is important. -lc_r must be last
14134: 				SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
14135: 				LIBS="${LIBS} -ldce -lM -lc_r"
14136: 				CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
14137: 			    fi
14138: 			;;
14139: 			*-*-hpux10.*)
14140: 			    shadow_funcs="getprpwnam iscomsec"
14141: 			    shadow_libs="-lsec"
14142: 			    # HP-UX 10.20 libc has an incompatible getline
14143: 			    ac_cv_func_getline="no"
14144: 			;;
14145: 			*)
14146: 			    shadow_funcs="getspnam iscomsec"
14147: 			    shadow_libs="-lsec"
14148: 			    test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14149: 			;;
14150: 		esac
14151: 		;;
14152:     *-dec-osf*)
14153: 		# ignore envariables wrt dynamic lib path
14154: 		# XXX - sudo LDFLAGS instead?
14155: 		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
14156: 
14157: 		: ${CHECKSIA='true'}
14158: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
14159: $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
14160: 		# Check whether --enable-sia was given.
14161: if test "${enable_sia+set}" = set; then :
14162:   enableval=$enable_sia;  case "$enableval" in
14163: 		    yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14164: $as_echo "no" >&6; }
14165: 				CHECKSIA=true
14166: 				;;
14167: 		    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14168: $as_echo "yes" >&6; }
14169: 				CHECKSIA=false
14170: 				;;
14171: 		    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172: $as_echo "no" >&6; }
14173: 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
14174: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
14175: 				;;
14176: 		  esac
14177: 
14178: else
14179:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180: $as_echo "no" >&6; }
14181: fi
14182: 
14183: 
14184: 		shadow_funcs="getprpwnam dispcrypt"
14185: 		# OSF/1 4.x and higher need -ldb too
14186: 		if test $OSMAJOR -lt 4; then
14187: 		    shadow_libs="-lsecurity -laud -lm"
14188: 		else
14189: 		    shadow_libs="-lsecurity -ldb -laud -lm"
14190: 		fi
14191: 
14192: 		# use SIA by default, if we have it
14193: 		test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
14194: 
14195: 		#
14196: 		# Some versions of Digital Unix ship with a broken
14197: 		# copy of prot.h, which we need for shadow passwords.
14198: 		# XXX - make should remove this as part of distclean
14199: 		#
14200: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
14201: $as_echo_n "checking for broken prot.h... " >&6; }
14202: 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203: /* end confdefs.h.  */
14204: 
14205: #include <sys/types.h>
14206: #include <sys/security.h>
14207: #include <prot.h>
14208: 
14209: int
14210: main ()
14211: {
14212: exit(0);
14213:   ;
14214:   return 0;
14215: }
14216: _ACEOF
14217: if ac_fn_c_try_compile "$LINENO"; then :
14218:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14219: $as_echo "no" >&6; }
14220: else
14221:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
14222: $as_echo "yes, fixing locally" >&6; }
14223: 		sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
14224: 
14225: fi
14226: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227: 		# ":DEFAULT" must be appended to _RLD_LIST
14228: 		RTLD_PRELOAD_VAR="_RLD_LIST"
14229: 		RTLD_PRELOAD_DEFAULT="DEFAULT"
14230: 		: ${mansectsu='8'}
14231: 		: ${mansectform='4'}
14232: 		;;
14233:     *-*-irix*)
14234: 		OSDEFS="${OSDEFS} -D_BSD_TYPES"
14235: 		if test -z "$NROFFPROG"; then
14236: 		    if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14237: 			if test -d /usr/share/catman/local; then
14238: 			    mandir="/usr/share/catman/local"
14239: 			else
14240: 			    mandir="/usr/catman/local"
14241: 			fi
14242: 		    fi
14243: 		    # Compress cat pages with pack
14244: 		    MANCOMPRESS='pack'
14245: 		    MANCOMPRESSEXT='.z'
14246: 		else
14247: 		    if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14248: 			if test -d "/usr/share/man/local"; then
14249: 			    mandir="/usr/share/man/local"
14250: 			else
14251: 			    mandir="/usr/man/local"
14252: 			fi
14253: 		    fi
14254: 		fi
14255: 		# IRIX <= 4 needs -lsun
14256: 		if test "$OSMAJOR" -le 4; then
14257: 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14258: $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14259: if ${ac_cv_lib_sun_getpwnam+:} false; then :
14260:   $as_echo_n "(cached) " >&6
14261: else
14262:   ac_check_lib_save_LIBS=$LIBS
14263: LIBS="-lsun  $LIBS"
14264: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265: /* end confdefs.h.  */
14266: 
14267: /* Override any GCC internal prototype to avoid an error.
14268:    Use char because int might match the return type of a GCC
14269:    builtin and then its argument prototype would still apply.  */
14270: #ifdef __cplusplus
14271: extern "C"
14272: #endif
14273: char getpwnam ();
14274: int
14275: main ()
14276: {
14277: return getpwnam ();
14278:   ;
14279:   return 0;
14280: }
14281: _ACEOF
14282: if ac_fn_c_try_link "$LINENO"; then :
14283:   ac_cv_lib_sun_getpwnam=yes
14284: else
14285:   ac_cv_lib_sun_getpwnam=no
14286: fi
14287: rm -f core conftest.err conftest.$ac_objext \
14288:     conftest$ac_exeext conftest.$ac_ext
14289: LIBS=$ac_check_lib_save_LIBS
14290: fi
14291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14292: $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14293: if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14294:   LIBS="${LIBS} -lsun"
14295: fi
14296: 
14297: 		fi
14298: 		# ":DEFAULT" must be appended to _RLD_LIST
14299: 		RTLD_PRELOAD_VAR="_RLD_LIST"
14300: 		RTLD_PRELOAD_DEFAULT="DEFAULT"
14301: 		: ${mansectsu='1m'}
14302: 		: ${mansectform='4'}
14303: 		;;
14304:     *-*-linux*|*-*-k*bsd*-gnu)
14305: 		OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14306: 		# Some Linux versions need to link with -lshadow
14307: 		shadow_funcs="getspnam"
14308: 		shadow_libs_optional="-lshadow"
14309: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14310: 		;;
14311:     *-convex-bsd*)
14312: 		OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14313: 		if test -z "$GCC"; then
14314: 		    CFLAGS="${CFLAGS} -D__STDC__"
14315: 		fi
14316: 
14317: 		shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14318: 		shadow_funcs="getprpwnam"
14319: 		shadow_libs="-lprot"
14320: 		;;
14321:     *-*-ultrix*)
14322: 		OS="ultrix"
14323: 		shadow_funcs="getauthuid"
14324: 		shadow_libs="-lauth"
14325: 		;;
14326:     *-*-riscos*)
14327: 		LIBS="${LIBS} -lsun -lbsd"
14328: 		CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
14329: 		OSDEFS="${OSDEFS} -D_MIPS"
14330: 		: ${mansectsu='1m'}
14331: 		: ${mansectform='4'}
14332: 		;;
14333:     *-*-isc*)
14334: 		OSDEFS="${OSDEFS} -D_ISC"
14335: 		LIB_CRYPT=1
14336: 		SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14337: 
14338: 		shadow_funcs="getspnam"
14339: 		shadow_libs="-lsec"
14340: 
14341: 		: ${mansectsu='1m'}
14342: 		: ${mansectform='4'}
14343: 		;;
14344:     *-*-sco*|*-sco-*)
14345: 		shadow_funcs="getprpwnam"
14346: 		shadow_libs="-lprot -lx"
14347: 		: ${mansectsu='1m'}
14348: 		: ${mansectform='4'}
14349: 		;;
14350:     m88k-motorola-sysv*)
14351: 		# motorolla's cc (a variant of gcc) does -O but not -O2
14352: 		CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14353: 		: ${mansectsu='1m'}
14354: 		: ${mansectform='4'}
14355: 		;;
14356:     *-sequent-sysv*)
14357: 		shadow_funcs="getspnam"
14358: 		shadow_libs="-lsec"
14359: 		: ${mansectsu='1m'}
14360: 		: ${mansectform='4'}
14361: 		: ${with_rpath='yes'}
14362: 		;;
14363:     *-ncr-sysv4*|*-ncr-sysvr4*)
14364: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14365: $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14366: if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14367:   $as_echo_n "(cached) " >&6
14368: else
14369:   ac_check_lib_save_LIBS=$LIBS
14370: LIBS="-lc89  $LIBS"
14371: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372: /* end confdefs.h.  */
14373: 
14374: /* Override any GCC internal prototype to avoid an error.
14375:    Use char because int might match the return type of a GCC
14376:    builtin and then its argument prototype would still apply.  */
14377: #ifdef __cplusplus
14378: extern "C"
14379: #endif
14380: char strcasecmp ();
14381: int
14382: main ()
14383: {
14384: return strcasecmp ();
14385:   ;
14386:   return 0;
14387: }
14388: _ACEOF
14389: if ac_fn_c_try_link "$LINENO"; then :
14390:   ac_cv_lib_c89_strcasecmp=yes
14391: else
14392:   ac_cv_lib_c89_strcasecmp=no
14393: fi
14394: rm -f core conftest.err conftest.$ac_objext \
14395:     conftest$ac_exeext conftest.$ac_ext
14396: LIBS=$ac_check_lib_save_LIBS
14397: fi
14398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14399: $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14400: if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14401:   LIBS="${LIBS} -lc89"
14402: fi
14403: 
14404: 		: ${mansectsu='1m'}
14405: 		: ${mansectform='4'}
14406: 		: ${with_rpath='yes'}
14407: 		;;
14408:     *-ccur-sysv4*|*-ccur-sysvr4*)
14409: 		LIBS="${LIBS} -lgen"
14410: 		: ${mansectsu='1m'}
14411: 		: ${mansectform='4'}
14412: 		: ${with_rpath='yes'}
14413: 		;;
14414:     *-*-bsdi*)
14415: 		SKIP_SETREUID=yes
14416: 		# Check for newer BSD auth API
14417: 		if test -z "$with_bsdauth"; then
14418: 		    for ac_func in auth_challenge
14419: do :
14420:   ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14421: if test "x$ac_cv_func_auth_challenge" = xyes; then :
14422:   cat >>confdefs.h <<_ACEOF
14423: #define HAVE_AUTH_CHALLENGE 1
14424: _ACEOF
14425:  AUTH_EXCL_DEF="BSD_AUTH"
14426: fi
14427: done
14428: 
14429: 		fi
14430: 		;;
14431:     *-*-freebsd*)
14432: 		# FreeBSD has a real setreuid(2) starting with 2.1 and
14433: 		# backported to 2.0.5.  We just take 2.1 and above...
14434: 		case "$OSREV" in
14435: 		0.*|1.*|2.0*)
14436: 		    SKIP_SETREUID=yes
14437: 		    ;;
14438: 		esac
14439: 		OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14440: 		if test "${with_skey-'no'}" = "yes"; then
14441: 		     SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14442: 		fi
14443: 		CHECKSHADOW="false"
14444: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14445: 		: ${with_logincap='maybe'}
14446: 		;;
14447:     *-*-*openbsd*)
14448: 		# OpenBSD has a real setreuid(2) starting with 3.3 but
14449: 		# we will use setresuid(2) instead.
14450: 		SKIP_SETREUID=yes
14451: 		OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14452: 		CHECKSHADOW="false"
14453: 		# OpenBSD >= 3.0 supports BSD auth
14454: 		if test -z "$with_bsdauth"; then
14455: 		    if test "$OSMAJOR" -ge 3; then
14456: 			AUTH_EXCL_DEF="BSD_AUTH"
14457: 		    fi
14458: 		fi
14459: 		: ${with_logincap='maybe'}
14460: 		;;
14461:     *-*-*netbsd*)
14462: 		# NetBSD has a real setreuid(2) starting with 1.3.2
14463: 		case "$OSREV" in
14464: 		0.9*|1.[012]*|1.3|1.3.1)
14465: 		    SKIP_SETREUID=yes
14466: 		    ;;
14467: 		esac
14468: 		CHECKSHADOW="false"
14469: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14470: 		: ${with_logincap='maybe'}
14471: 		;;
14472:     *-*-dragonfly*)
14473: 		OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14474: 		if test "${with_skey-'no'}" = "yes"; then
14475: 		     SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14476: 		fi
14477: 		CHECKSHADOW="false"
14478: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14479: 		: ${with_logincap='yes'}
14480: 		;;
14481:     *-*-*bsd*)
14482: 		CHECKSHADOW="false"
14483: 		;;
14484:     *-*-darwin*)
14485: 		# Darwin has a real setreuid(2) starting with 9.0
14486: 		if test $OSMAJOR -lt 9; then
14487: 		    SKIP_SETREUID=yes
14488: 		fi
14489: 		CHECKSHADOW="false"
14490: 		test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14491: 		: ${with_logincap='yes'}
14492: 		RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14493: 		RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14494: 		;;
14495:     *-*-nextstep*)
14496: 		# lockf() on is broken on the NeXT -- use flock instead
14497: 		ac_cv_func_lockf=no
14498: 		ac_cv_func_flock=yes
14499: 		RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14500: 		RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
14501: 		;;
14502:     *-*-*sysv4*)
14503: 		: ${mansectsu='1m'}
14504: 		: ${mansectform='4'}
14505: 		: ${with_rpath='yes'}
14506: 		;;
14507:     *-*-sysv*)
14508: 		: ${mansectsu='1m'}
14509: 		: ${mansectform='4'}
14510: 		;;
14511:     *-gnu*)
14512: 		OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14513: 		;;
14514: esac
14515: 
14516: if test -n "$with_noexec"; then
14517:     cat >>confdefs.h <<EOF
14518: #define RTLD_PRELOAD_VAR "$RTLD_PRELOAD_VAR"
14519: EOF
14520: 
14521:     cat >>confdefs.h <<EOF
14522: #define RTLD_PRELOAD_DELIM "$RTLD_PRELOAD_DELIM"
14523: EOF
14524: 
14525:     if test -n "$RTLD_PRELOAD_DEFAULT"; then
14526: 	cat >>confdefs.h <<EOF
14527: #define RTLD_PRELOAD_DEFAULT "$RTLD_PRELOAD_DEFAULT"
14528: EOF
14529: 
14530:     fi
14531:     if test -n "$RTLD_PRELOAD_ENABLE_VAR"; then
14532: 	cat >>confdefs.h <<EOF
14533: #define RTLD_PRELOAD_ENABLE_VAR "$RTLD_PRELOAD_ENABLE_VAR"
14534: EOF
14535: 
14536:     fi
14537: fi
14538: 
14539: AUTH_REG=${AUTH_REG# }
14540: AUTH_EXCL=${AUTH_EXCL# }
14541: if test -n "$AUTH_EXCL"; then
14542:     set -- $AUTH_EXCL
14543:     if test $# != 1; then
14544: 	as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14545:     fi
14546:     if test -n "$AUTH_REG"; then
14547: 	as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14548:     fi
14549: fi
14550: if test X"${with_skey}${with_opie}" = X"yesyes"; then
14551:     as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14552: fi
14553: 
14554: : ${mansectsu='8'}
14555: : ${mansectform='5'}
14556: 
14557: if test -n "$with_libpath"; then
14558:     for i in ${with_libpath}; do
14559: 
14560:     if test X"$with_rpath" = X"yes"; then
14561: 	case "$host" in
14562: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i"
14563: 			;;
14564: 	    *)		LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i"
14565: 			;;
14566: 	esac
14567:     else
14568: 	LDFLAGS="${LDFLAGS} -L$i"
14569:     fi
14570:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14571: 	blibpath_add="${blibpath_add}:$i"
14572:     fi
14573: 
14574:     done
14575: fi
14576: if test -n "$with_libraries"; then
14577:     for i in ${with_libraries}; do
14578: 	case $i in
14579: 	    -l*)	;;
14580: 	    *.a)	;;
14581: 	    *.o)	;;
14582: 	    *)	i="-l${i}";;
14583: 	esac
14584: 	LIBS="${LIBS} ${i}"
14585:     done
14586: fi
14587: 
14588: if test $ac_cv_c_compiler_gnu = yes; then
14589:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14590: $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14591: if ${ac_cv_prog_gcc_traditional+:} false; then :
14592:   $as_echo_n "(cached) " >&6
14593: else
14594:     ac_pattern="Autoconf.*'x'"
14595:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596: /* end confdefs.h.  */
14597: #include <sgtty.h>
14598: Autoconf TIOCGETP
14599: _ACEOF
14600: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14601:   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14602:   ac_cv_prog_gcc_traditional=yes
14603: else
14604:   ac_cv_prog_gcc_traditional=no
14605: fi
14606: rm -f conftest*
14607: 
14608: 
14609:   if test $ac_cv_prog_gcc_traditional = no; then
14610:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611: /* end confdefs.h.  */
14612: #include <termio.h>
14613: Autoconf TCGETA
14614: _ACEOF
14615: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14616:   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14617:   ac_cv_prog_gcc_traditional=yes
14618: fi
14619: rm -f conftest*
14620: 
14621:   fi
14622: fi
14623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14624: $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14625:   if test $ac_cv_prog_gcc_traditional = yes; then
14626:     CC="$CC -traditional"
14627:   fi
14628: fi
14629: 
14630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14631: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14632: if ${ac_cv_c_const+:} false; then :
14633:   $as_echo_n "(cached) " >&6
14634: else
14635:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636: /* end confdefs.h.  */
14637: 
14638: int
14639: main ()
14640: {
14641: /* FIXME: Include the comments suggested by Paul. */
14642: #ifndef __cplusplus
14643:   /* Ultrix mips cc rejects this.  */
14644:   typedef int charset[2];
14645:   const charset cs;
14646:   /* SunOS 4.1.1 cc rejects this.  */
14647:   char const *const *pcpcc;
14648:   char **ppc;
14649:   /* NEC SVR4.0.2 mips cc rejects this.  */
14650:   struct point {int x, y;};
14651:   static struct point const zero = {0,0};
14652:   /* AIX XL C 1.02.0.0 rejects this.
14653:      It does not let you subtract one const X* pointer from another in
14654:      an arm of an if-expression whose if-part is not a constant
14655:      expression */
14656:   const char *g = "string";
14657:   pcpcc = &g + (g ? g-g : 0);
14658:   /* HPUX 7.0 cc rejects these. */
14659:   ++pcpcc;
14660:   ppc = (char**) pcpcc;
14661:   pcpcc = (char const *const *) ppc;
14662:   { /* SCO 3.2v4 cc rejects this.  */
14663:     char *t;
14664:     char const *s = 0 ? (char *) 0 : (char const *) 0;
14665: 
14666:     *t++ = 0;
14667:     if (s) return 0;
14668:   }
14669:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14670:     int x[] = {25, 17};
14671:     const int *foo = &x[0];
14672:     ++foo;
14673:   }
14674:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14675:     typedef const int *iptr;
14676:     iptr p = 0;
14677:     ++p;
14678:   }
14679:   { /* AIX XL C 1.02.0.0 rejects this saying
14680:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14681:     struct s { int j; const int *ap[3]; };
14682:     struct s *b; b->j = 5;
14683:   }
14684:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14685:     const int foo = 10;
14686:     if (!foo) return 0;
14687:   }
14688:   return !cs[0] && !zero.x;
14689: #endif
14690: 
14691:   ;
14692:   return 0;
14693: }
14694: _ACEOF
14695: if ac_fn_c_try_compile "$LINENO"; then :
14696:   ac_cv_c_const=yes
14697: else
14698:   ac_cv_c_const=no
14699: fi
14700: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701: fi
14702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14703: $as_echo "$ac_cv_c_const" >&6; }
14704: if test $ac_cv_c_const = no; then
14705: 
14706: $as_echo "#define const /**/" >>confdefs.h
14707: 
14708: fi
14709: 
14710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14711: $as_echo_n "checking for working volatile... " >&6; }
14712: if ${ac_cv_c_volatile+:} false; then :
14713:   $as_echo_n "(cached) " >&6
14714: else
14715:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716: /* end confdefs.h.  */
14717: 
14718: int
14719: main ()
14720: {
14721: 
14722: volatile int x;
14723: int * volatile y = (int *) 0;
14724: return !x && !y;
14725:   ;
14726:   return 0;
14727: }
14728: _ACEOF
14729: if ac_fn_c_try_compile "$LINENO"; then :
14730:   ac_cv_c_volatile=yes
14731: else
14732:   ac_cv_c_volatile=no
14733: fi
14734: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735: fi
14736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14737: $as_echo "$ac_cv_c_volatile" >&6; }
14738: if test $ac_cv_c_volatile = no; then
14739: 
14740: $as_echo "#define volatile /**/" >>confdefs.h
14741: 
14742: fi
14743: 
14744: # Check for variadic macro support in cpp
14745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746: /* end confdefs.h.  */
14747: 
14748: $ac_includes_default
14749: #if defined(__GNUC__) && __GNUC__ == 2
14750: # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
14751: #else
14752: # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
14753: #endif
14754: 
14755: int
14756: main ()
14757: {
14758: sudo_fprintf(stderr, "a %s", "test");
14759:   ;
14760:   return 0;
14761: }
14762: _ACEOF
14763: if ac_fn_c_try_compile "$LINENO"; then :
14764: 
14765: else
14766:   as_fn_error $? "Your C compiler doesn't support variadic macros, try building with gcc instead" "$LINENO" 5
14767: fi
14768: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14769: 
14770: for ac_prog in 'bison -y' byacc
14771: do
14772:   # Extract the first word of "$ac_prog", so it can be a program name with args.
14773: set dummy $ac_prog; ac_word=$2
14774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14775: $as_echo_n "checking for $ac_word... " >&6; }
14776: if ${ac_cv_prog_YACC+:} false; then :
14777:   $as_echo_n "(cached) " >&6
14778: else
14779:   if test -n "$YACC"; then
14780:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
14781: else
14782: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14783: for as_dir in $PATH
14784: do
14785:   IFS=$as_save_IFS
14786:   test -z "$as_dir" && as_dir=.
14787:     for ac_exec_ext in '' $ac_executable_extensions; do
14788:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14789:     ac_cv_prog_YACC="$ac_prog"
14790:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14791:     break 2
14792:   fi
14793: done
14794:   done
14795: IFS=$as_save_IFS
14796: 
14797: fi
14798: fi
14799: YACC=$ac_cv_prog_YACC
14800: if test -n "$YACC"; then
14801:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14802: $as_echo "$YACC" >&6; }
14803: else
14804:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805: $as_echo "no" >&6; }
14806: fi
14807: 
14808: 
14809:   test -n "$YACC" && break
14810: done
14811: test -n "$YACC" || YACC="yacc"
14812: 
14813: # Extract the first word of "flex", so it can be a program name with args.
14814: set dummy flex; ac_word=$2
14815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14816: $as_echo_n "checking for $ac_word... " >&6; }
14817: if ${ac_cv_path_FLEX+:} false; then :
14818:   $as_echo_n "(cached) " >&6
14819: else
14820:   case $FLEX in
14821:   [\\/]* | ?:[\\/]*)
14822:   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14823:   ;;
14824:   *)
14825:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14826: for as_dir in $PATH
14827: do
14828:   IFS=$as_save_IFS
14829:   test -z "$as_dir" && as_dir=.
14830:     for ac_exec_ext in '' $ac_executable_extensions; do
14831:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14832:     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14833:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14834:     break 2
14835:   fi
14836: done
14837:   done
14838: IFS=$as_save_IFS
14839: 
14840:   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14841:   ;;
14842: esac
14843: fi
14844: FLEX=$ac_cv_path_FLEX
14845: if test -n "$FLEX"; then
14846:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14847: $as_echo "$FLEX" >&6; }
14848: else
14849:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14850: $as_echo "no" >&6; }
14851: fi
14852: 
14853: 
14854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14855: $as_echo_n "checking for mv... " >&6; }
14856: found=no
14857: for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14858:     if test -f "$p"; then
14859: 	found=yes
14860: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14861: $as_echo "$p" >&6; }
14862: 	cat >>confdefs.h <<EOF
14863: #define _PATH_MV "$p"
14864: EOF
14865: 
14866: 	break
14867:     fi
14868: done
14869: if test X"$found" != X"yes"; then
14870:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14871: $as_echo "not found" >&6; }
14872: fi
14873: 
14874: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14875: $as_echo_n "checking for bourne shell... " >&6; }
14876: found=no
14877: for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14878:     if test -f "$p"; then
14879: 	found=yes
14880: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14881: $as_echo "$p" >&6; }
14882: 	cat >>confdefs.h <<EOF
14883: #define _PATH_BSHELL "$p"
14884: EOF
14885: 
14886: 	break
14887:     fi
14888: done
14889: if test X"$found" != X"yes"; then
14890:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14891: $as_echo "not found" >&6; }
14892: fi
14893: 
14894: if test -z "$with_sendmail"; then
14895:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14896: $as_echo_n "checking for sendmail... " >&6; }
14897: found=no
14898: for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14899:     if test -f "$p"; then
14900: 	found=yes
14901: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14902: $as_echo "$p" >&6; }
14903: 	cat >>confdefs.h <<EOF
14904: #define _PATH_SUDO_SENDMAIL "$p"
14905: EOF
14906: 
14907: 	break
14908:     fi
14909: done
14910: if test X"$found" != X"yes"; then
14911:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14912: $as_echo "not found" >&6; }
14913: fi
14914: 
14915: fi
14916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
14917: $as_echo_n "checking for vi... " >&6; }
14918: found=no
14919: for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
14920:     if test -f "$editor"; then
14921: 	found=yes
14922: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
14923: $as_echo "$editor" >&6; }
14924: 	cat >>confdefs.h <<EOF
14925: #define _PATH_VI "$editor"
14926: EOF
14927: 
14928: 	break
14929:     fi
14930: done
14931: if test X"$found" != X"yes"; then
14932:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14933: $as_echo "not found" >&6; }
14934: fi
14935: 
14936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
14937: $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
14938: if test X"$with_logfac" = X""; then
14939:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940: /* end confdefs.h.  */
14941: #include <syslog.h>
14942: int
14943: main ()
14944: {
14945: int i = LOG_AUTHPRIV; (void)i;
14946:   ;
14947:   return 0;
14948: }
14949: _ACEOF
14950: if ac_fn_c_try_compile "$LINENO"; then :
14951:   logfac=authpriv
14952: fi
14953: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14954: fi
14955: 
14956: cat >>confdefs.h <<_ACEOF
14957: #define LOGFAC "$logfac"
14958: _ACEOF
14959: 
14960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
14961: $as_echo "$logfac" >&6; }
14962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14963: $as_echo_n "checking for ANSI C header files... " >&6; }
14964: if ${ac_cv_header_stdc+:} false; then :
14965:   $as_echo_n "(cached) " >&6
14966: else
14967:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968: /* end confdefs.h.  */
14969: #include <stdlib.h>
14970: #include <stdarg.h>
14971: #include <string.h>
14972: #include <float.h>
14973: 
14974: int
14975: main ()
14976: {
14977: 
14978:   ;
14979:   return 0;
14980: }
14981: _ACEOF
14982: if ac_fn_c_try_compile "$LINENO"; then :
14983:   ac_cv_header_stdc=yes
14984: else
14985:   ac_cv_header_stdc=no
14986: fi
14987: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988: 
14989: if test $ac_cv_header_stdc = yes; then
14990:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14991:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992: /* end confdefs.h.  */
14993: #include <string.h>
14994: 
14995: _ACEOF
14996: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14997:   $EGREP "memchr" >/dev/null 2>&1; then :
14998: 
14999: else
15000:   ac_cv_header_stdc=no
15001: fi
15002: rm -f conftest*
15003: 
15004: fi
15005: 
15006: if test $ac_cv_header_stdc = yes; then
15007:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15008:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009: /* end confdefs.h.  */
15010: #include <stdlib.h>
15011: 
15012: _ACEOF
15013: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15014:   $EGREP "free" >/dev/null 2>&1; then :
15015: 
15016: else
15017:   ac_cv_header_stdc=no
15018: fi
15019: rm -f conftest*
15020: 
15021: fi
15022: 
15023: if test $ac_cv_header_stdc = yes; then
15024:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15025:   if test "$cross_compiling" = yes; then :
15026:   :
15027: else
15028:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029: /* end confdefs.h.  */
15030: #include <ctype.h>
15031: #include <stdlib.h>
15032: #if ((' ' & 0x0FF) == 0x020)
15033: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15034: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15035: #else
15036: # define ISLOWER(c) \
15037: 		   (('a' <= (c) && (c) <= 'i') \
15038: 		     || ('j' <= (c) && (c) <= 'r') \
15039: 		     || ('s' <= (c) && (c) <= 'z'))
15040: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15041: #endif
15042: 
15043: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15044: int
15045: main ()
15046: {
15047:   int i;
15048:   for (i = 0; i < 256; i++)
15049:     if (XOR (islower (i), ISLOWER (i))
15050: 	|| toupper (i) != TOUPPER (i))
15051:       return 2;
15052:   return 0;
15053: }
15054: _ACEOF
15055: if ac_fn_c_try_run "$LINENO"; then :
15056: 
15057: else
15058:   ac_cv_header_stdc=no
15059: fi
15060: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15061:   conftest.$ac_objext conftest.beam conftest.$ac_ext
15062: fi
15063: 
15064: fi
15065: fi
15066: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15067: $as_echo "$ac_cv_header_stdc" >&6; }
15068: if test $ac_cv_header_stdc = yes; then
15069: 
15070: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15071: 
15072: fi
15073: 
15074: ac_header_dirent=no
15075: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15076:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15078: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15079: if eval \${$as_ac_Header+:} false; then :
15080:   $as_echo_n "(cached) " >&6
15081: else
15082:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083: /* end confdefs.h.  */
15084: #include <sys/types.h>
15085: #include <$ac_hdr>
15086: 
15087: int
15088: main ()
15089: {
15090: if ((DIR *) 0)
15091: return 0;
15092:   ;
15093:   return 0;
15094: }
15095: _ACEOF
15096: if ac_fn_c_try_compile "$LINENO"; then :
15097:   eval "$as_ac_Header=yes"
15098: else
15099:   eval "$as_ac_Header=no"
15100: fi
15101: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102: fi
15103: eval ac_res=\$$as_ac_Header
15104: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15105: $as_echo "$ac_res" >&6; }
15106: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15107:   cat >>confdefs.h <<_ACEOF
15108: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15109: _ACEOF
15110: 
15111: ac_header_dirent=$ac_hdr; break
15112: fi
15113: 
15114: done
15115: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15116: if test $ac_header_dirent = dirent.h; then
15117:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15118: $as_echo_n "checking for library containing opendir... " >&6; }
15119: if ${ac_cv_search_opendir+:} false; then :
15120:   $as_echo_n "(cached) " >&6
15121: else
15122:   ac_func_search_save_LIBS=$LIBS
15123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124: /* end confdefs.h.  */
15125: 
15126: /* Override any GCC internal prototype to avoid an error.
15127:    Use char because int might match the return type of a GCC
15128:    builtin and then its argument prototype would still apply.  */
15129: #ifdef __cplusplus
15130: extern "C"
15131: #endif
15132: char opendir ();
15133: int
15134: main ()
15135: {
15136: return opendir ();
15137:   ;
15138:   return 0;
15139: }
15140: _ACEOF
15141: for ac_lib in '' dir; do
15142:   if test -z "$ac_lib"; then
15143:     ac_res="none required"
15144:   else
15145:     ac_res=-l$ac_lib
15146:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15147:   fi
15148:   if ac_fn_c_try_link "$LINENO"; then :
15149:   ac_cv_search_opendir=$ac_res
15150: fi
15151: rm -f core conftest.err conftest.$ac_objext \
15152:     conftest$ac_exeext
15153:   if ${ac_cv_search_opendir+:} false; then :
15154:   break
15155: fi
15156: done
15157: if ${ac_cv_search_opendir+:} false; then :
15158: 
15159: else
15160:   ac_cv_search_opendir=no
15161: fi
15162: rm conftest.$ac_ext
15163: LIBS=$ac_func_search_save_LIBS
15164: fi
15165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15166: $as_echo "$ac_cv_search_opendir" >&6; }
15167: ac_res=$ac_cv_search_opendir
15168: if test "$ac_res" != no; then :
15169:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15170: 
15171: fi
15172: 
15173: else
15174:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15175: $as_echo_n "checking for library containing opendir... " >&6; }
15176: if ${ac_cv_search_opendir+:} false; then :
15177:   $as_echo_n "(cached) " >&6
15178: else
15179:   ac_func_search_save_LIBS=$LIBS
15180: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181: /* end confdefs.h.  */
15182: 
15183: /* Override any GCC internal prototype to avoid an error.
15184:    Use char because int might match the return type of a GCC
15185:    builtin and then its argument prototype would still apply.  */
15186: #ifdef __cplusplus
15187: extern "C"
15188: #endif
15189: char opendir ();
15190: int
15191: main ()
15192: {
15193: return opendir ();
15194:   ;
15195:   return 0;
15196: }
15197: _ACEOF
15198: for ac_lib in '' x; do
15199:   if test -z "$ac_lib"; then
15200:     ac_res="none required"
15201:   else
15202:     ac_res=-l$ac_lib
15203:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15204:   fi
15205:   if ac_fn_c_try_link "$LINENO"; then :
15206:   ac_cv_search_opendir=$ac_res
15207: fi
15208: rm -f core conftest.err conftest.$ac_objext \
15209:     conftest$ac_exeext
15210:   if ${ac_cv_search_opendir+:} false; then :
15211:   break
15212: fi
15213: done
15214: if ${ac_cv_search_opendir+:} false; then :
15215: 
15216: else
15217:   ac_cv_search_opendir=no
15218: fi
15219: rm conftest.$ac_ext
15220: LIBS=$ac_func_search_save_LIBS
15221: fi
15222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15223: $as_echo "$ac_cv_search_opendir" >&6; }
15224: ac_res=$ac_cv_search_opendir
15225: if test "$ac_res" != no; then :
15226:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15227: 
15228: fi
15229: 
15230: fi
15231: 
15232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15233: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15234: if ${ac_cv_header_time+:} false; then :
15235:   $as_echo_n "(cached) " >&6
15236: else
15237:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238: /* end confdefs.h.  */
15239: #include <sys/types.h>
15240: #include <sys/time.h>
15241: #include <time.h>
15242: 
15243: int
15244: main ()
15245: {
15246: if ((struct tm *) 0)
15247: return 0;
15248:   ;
15249:   return 0;
15250: }
15251: _ACEOF
15252: if ac_fn_c_try_compile "$LINENO"; then :
15253:   ac_cv_header_time=yes
15254: else
15255:   ac_cv_header_time=no
15256: fi
15257: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258: fi
15259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15260: $as_echo "$ac_cv_header_time" >&6; }
15261: if test $ac_cv_header_time = yes; then
15262: 
15263: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15264: 
15265: fi
15266: 
15267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15268: $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15269: if ${ac_cv_header_stdbool_h+:} false; then :
15270:   $as_echo_n "(cached) " >&6
15271: else
15272:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273: /* end confdefs.h.  */
15274: 
15275: #include <stdbool.h>
15276: #ifndef bool
15277:  "error: bool is not defined"
15278: #endif
15279: #ifndef false
15280:  "error: false is not defined"
15281: #endif
15282: #if false
15283:  "error: false is not 0"
15284: #endif
15285: #ifndef true
15286:  "error: true is not defined"
15287: #endif
15288: #if true != 1
15289:  "error: true is not 1"
15290: #endif
15291: #ifndef __bool_true_false_are_defined
15292:  "error: __bool_true_false_are_defined is not defined"
15293: #endif
15294: 
15295: 	struct s { _Bool s: 1; _Bool t; } s;
15296: 
15297: 	char a[true == 1 ? 1 : -1];
15298: 	char b[false == 0 ? 1 : -1];
15299: 	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15300: 	char d[(bool) 0.5 == true ? 1 : -1];
15301: 	/* See body of main program for 'e'.  */
15302: 	char f[(_Bool) 0.0 == false ? 1 : -1];
15303: 	char g[true];
15304: 	char h[sizeof (_Bool)];
15305: 	char i[sizeof s.t];
15306: 	enum { j = false, k = true, l = false * true, m = true * 256 };
15307: 	/* The following fails for
15308: 	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15309: 	_Bool n[m];
15310: 	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15311: 	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15312: 	/* Catch a bug in an HP-UX C compiler.  See
15313: 	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15314: 	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15315: 	 */
15316: 	_Bool q = true;
15317: 	_Bool *pq = &q;
15318: 
15319: int
15320: main ()
15321: {
15322: 
15323: 	bool e = &s;
15324: 	*pq |= q;
15325: 	*pq |= ! q;
15326: 	/* Refer to every declared value, to avoid compiler optimizations.  */
15327: 	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15328: 		+ !m + !n + !o + !p + !q + !pq);
15329: 
15330:   ;
15331:   return 0;
15332: }
15333: _ACEOF
15334: if ac_fn_c_try_compile "$LINENO"; then :
15335:   ac_cv_header_stdbool_h=yes
15336: else
15337:   ac_cv_header_stdbool_h=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_stdbool_h" >&5
15342: $as_echo "$ac_cv_header_stdbool_h" >&6; }
15343: ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15344: if test "x$ac_cv_type__Bool" = xyes; then :
15345: 
15346: cat >>confdefs.h <<_ACEOF
15347: #define HAVE__BOOL 1
15348: _ACEOF
15349: 
15350: 
15351: fi
15352: 
15353: if test $ac_cv_header_stdbool_h = yes; then
15354: 
15355: $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15356: 
15357: fi
15358: 
15359: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
15360: $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
15361: if ${ac_cv_header_sys_types_h_makedev+:} false; then :
15362:   $as_echo_n "(cached) " >&6
15363: else
15364:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365: /* end confdefs.h.  */
15366: #include <sys/types.h>
15367: int
15368: main ()
15369: {
15370: return makedev(0, 0);
15371:   ;
15372:   return 0;
15373: }
15374: _ACEOF
15375: if ac_fn_c_try_link "$LINENO"; then :
15376:   ac_cv_header_sys_types_h_makedev=yes
15377: else
15378:   ac_cv_header_sys_types_h_makedev=no
15379: fi
15380: rm -f core conftest.err conftest.$ac_objext \
15381:     conftest$ac_exeext conftest.$ac_ext
15382: 
15383: fi
15384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
15385: $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
15386: 
15387: if test $ac_cv_header_sys_types_h_makedev = no; then
15388: ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
15389: if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
15390: 
15391: $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
15392: 
15393: fi
15394: 
15395: 
15396: 
15397:   if test $ac_cv_header_sys_mkdev_h = no; then
15398:     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
15399: if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
15400: 
15401: $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
15402: 
15403: fi
15404: 
15405: 
15406:   fi
15407: fi
15408: 
15409: 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
15410: do :
15411:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15412: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15413: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15414:   cat >>confdefs.h <<_ACEOF
15415: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15416: _ACEOF
15417: 
15418: fi
15419: 
15420: done
15421: 
15422: for ac_header in procfs.h sys/procfs.h
15423: do :
15424:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15425: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15426: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15427:   cat >>confdefs.h <<_ACEOF
15428: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15429: _ACEOF
15430:  ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default
15431: #ifdef HAVE_PROCFS_H
15432: #include <procfs.h>
15433: #endif
15434: #ifdef HAVE_SYS_PROCFS_H
15435: #include <sys/procfs.h>
15436: #endif
15437: 
15438: "
15439: if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes; then :
15440: 
15441: cat >>confdefs.h <<_ACEOF
15442: #define HAVE_STRUCT_PSINFO_PR_TTYDEV 1
15443: _ACEOF
15444: 
15445: for ac_func in _ttyname_dev
15446: do :
15447:   ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev"
15448: if test "x$ac_cv_func__ttyname_dev" = xyes; then :
15449:   cat >>confdefs.h <<_ACEOF
15450: #define HAVE__TTYNAME_DEV 1
15451: _ACEOF
15452: 
15453: fi
15454: done
15455: 
15456: fi
15457: 
15458: break
15459: fi
15460: 
15461: done
15462: 
15463: # Check whether --enable-largefile was given.
15464: if test "${enable_largefile+set}" = set; then :
15465:   enableval=$enable_largefile;
15466: fi
15467: 
15468: if test "$enable_largefile" != no; then
15469: 
15470:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15471: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15472: if ${ac_cv_sys_largefile_CC+:} false; then :
15473:   $as_echo_n "(cached) " >&6
15474: else
15475:   ac_cv_sys_largefile_CC=no
15476:      if test "$GCC" != yes; then
15477:        ac_save_CC=$CC
15478:        while :; do
15479: 	 # IRIX 6.2 and later do not support large files by default,
15480: 	 # so use the C compiler's -n32 option if that helps.
15481: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482: /* end confdefs.h.  */
15483: #include <sys/types.h>
15484:  /* Check that off_t can represent 2**63 - 1 correctly.
15485:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15486:     since some C++ compilers masquerading as C compilers
15487:     incorrectly reject 9223372036854775807.  */
15488: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15489:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15490: 		       && LARGE_OFF_T % 2147483647 == 1)
15491: 		      ? 1 : -1];
15492: int
15493: main ()
15494: {
15495: 
15496:   ;
15497:   return 0;
15498: }
15499: _ACEOF
15500: 	 if ac_fn_c_try_compile "$LINENO"; then :
15501:   break
15502: fi
15503: rm -f core conftest.err conftest.$ac_objext
15504: 	 CC="$CC -n32"
15505: 	 if ac_fn_c_try_compile "$LINENO"; then :
15506:   ac_cv_sys_largefile_CC=' -n32'; break
15507: fi
15508: rm -f core conftest.err conftest.$ac_objext
15509: 	 break
15510:        done
15511:        CC=$ac_save_CC
15512:        rm -f conftest.$ac_ext
15513:     fi
15514: fi
15515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15516: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15517:   if test "$ac_cv_sys_largefile_CC" != no; then
15518:     CC=$CC$ac_cv_sys_largefile_CC
15519:   fi
15520: 
15521:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15522: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15523: if ${ac_cv_sys_file_offset_bits+:} false; then :
15524:   $as_echo_n "(cached) " >&6
15525: else
15526:   while :; do
15527:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528: /* end confdefs.h.  */
15529: #include <sys/types.h>
15530:  /* Check that off_t can represent 2**63 - 1 correctly.
15531:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15532:     since some C++ compilers masquerading as C compilers
15533:     incorrectly reject 9223372036854775807.  */
15534: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15535:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15536: 		       && LARGE_OFF_T % 2147483647 == 1)
15537: 		      ? 1 : -1];
15538: int
15539: main ()
15540: {
15541: 
15542:   ;
15543:   return 0;
15544: }
15545: _ACEOF
15546: if ac_fn_c_try_compile "$LINENO"; then :
15547:   ac_cv_sys_file_offset_bits=no; break
15548: fi
15549: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551: /* end confdefs.h.  */
15552: #define _FILE_OFFSET_BITS 64
15553: #include <sys/types.h>
15554:  /* Check that off_t can represent 2**63 - 1 correctly.
15555:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15556:     since some C++ compilers masquerading as C compilers
15557:     incorrectly reject 9223372036854775807.  */
15558: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15559:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15560: 		       && LARGE_OFF_T % 2147483647 == 1)
15561: 		      ? 1 : -1];
15562: int
15563: main ()
15564: {
15565: 
15566:   ;
15567:   return 0;
15568: }
15569: _ACEOF
15570: if ac_fn_c_try_compile "$LINENO"; then :
15571:   ac_cv_sys_file_offset_bits=64; break
15572: fi
15573: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15574:   ac_cv_sys_file_offset_bits=unknown
15575:   break
15576: done
15577: fi
15578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15579: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15580: case $ac_cv_sys_file_offset_bits in #(
15581:   no | unknown) ;;
15582:   *)
15583: cat >>confdefs.h <<_ACEOF
15584: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15585: _ACEOF
15586: ;;
15587: esac
15588: rm -rf conftest*
15589:   if test $ac_cv_sys_file_offset_bits = unknown; then
15590:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15591: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15592: if ${ac_cv_sys_large_files+:} false; then :
15593:   $as_echo_n "(cached) " >&6
15594: else
15595:   while :; do
15596:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597: /* end confdefs.h.  */
15598: #include <sys/types.h>
15599:  /* Check that off_t can represent 2**63 - 1 correctly.
15600:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15601:     since some C++ compilers masquerading as C compilers
15602:     incorrectly reject 9223372036854775807.  */
15603: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15604:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15605: 		       && LARGE_OFF_T % 2147483647 == 1)
15606: 		      ? 1 : -1];
15607: int
15608: main ()
15609: {
15610: 
15611:   ;
15612:   return 0;
15613: }
15614: _ACEOF
15615: if ac_fn_c_try_compile "$LINENO"; then :
15616:   ac_cv_sys_large_files=no; break
15617: fi
15618: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15619:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15620: /* end confdefs.h.  */
15621: #define _LARGE_FILES 1
15622: #include <sys/types.h>
15623:  /* Check that off_t can represent 2**63 - 1 correctly.
15624:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15625:     since some C++ compilers masquerading as C compilers
15626:     incorrectly reject 9223372036854775807.  */
15627: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15628:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15629: 		       && LARGE_OFF_T % 2147483647 == 1)
15630: 		      ? 1 : -1];
15631: int
15632: main ()
15633: {
15634: 
15635:   ;
15636:   return 0;
15637: }
15638: _ACEOF
15639: if ac_fn_c_try_compile "$LINENO"; then :
15640:   ac_cv_sys_large_files=1; break
15641: fi
15642: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15643:   ac_cv_sys_large_files=unknown
15644:   break
15645: done
15646: fi
15647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15648: $as_echo "$ac_cv_sys_large_files" >&6; }
15649: case $ac_cv_sys_large_files in #(
15650:   no | unknown) ;;
15651:   *)
15652: cat >>confdefs.h <<_ACEOF
15653: #define _LARGE_FILES $ac_cv_sys_large_files
15654: _ACEOF
15655: ;;
15656: esac
15657: rm -rf conftest*
15658:   fi
15659: fi
15660: 
15661: case "$host" in
15662:     *-*-hpux11.*)
15663: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15664: $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15665: if ${sudo_cv_xopen_source_extended+:} false; then :
15666:   $as_echo_n "(cached) " >&6
15667: else
15668:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669: /* end confdefs.h.  */
15670: $ac_includes_default
15671: 	#include <sys/socket.h>
15672: int
15673: main ()
15674: {
15675: 
15676:   ;
15677:   return 0;
15678: }
15679: _ACEOF
15680: if ac_fn_c_try_compile "$LINENO"; then :
15681:   sudo_cv_xopen_source_extended=no
15682: else
15683: 
15684: 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685: /* end confdefs.h.  */
15686: #define _XOPEN_SOURCE_EXTENDED
15687: 	    $ac_includes_default
15688: 	    #include <sys/socket.h>
15689: int
15690: main ()
15691: {
15692: 
15693:   ;
15694:   return 0;
15695: }
15696: _ACEOF
15697: if ac_fn_c_try_compile "$LINENO"; then :
15698:   sudo_cv_xopen_source_extended=yes
15699: else
15700:   sudo_cv_xopen_source_extended=error
15701: fi
15702: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15703: 
15704: fi
15705: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706: fi
15707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15708: $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15709: 	if test "$sudo_cv_xopen_source_extended" = "yes"; then
15710: 	    OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15711: 	    cat >>confdefs.h <<\EOF
15712: #define _XOPEN_SOURCE_EXTENDED 1
15713: EOF
15714: 
15715: 	fi
15716: 	;;
15717: esac
15718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15719: $as_echo_n "checking POSIX termios... " >&6; }
15720: if ${ac_cv_sys_posix_termios+:} false; then :
15721:   $as_echo_n "(cached) " >&6
15722: else
15723:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724: /* end confdefs.h.  */
15725: #include <sys/types.h>
15726: #include <unistd.h>
15727: #include <termios.h>
15728: 
15729: int
15730: main ()
15731: {
15732: /* SunOS 4.0.3 has termios.h but not the library calls.  */
15733:    tcgetattr(0, 0);
15734:   ;
15735:   return 0;
15736: }
15737: _ACEOF
15738: if ac_fn_c_try_link "$LINENO"; then :
15739:   ac_cv_sys_posix_termios=yes
15740: else
15741:   ac_cv_sys_posix_termios=no
15742: fi
15743: rm -f core conftest.err conftest.$ac_objext \
15744:     conftest$ac_exeext conftest.$ac_ext
15745: fi
15746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15747: $as_echo "$ac_cv_sys_posix_termios" >&6; }
15748: 
15749: if test "$ac_cv_sys_posix_termios" != "yes"; then
15750:     as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15751: fi
15752: 
15753: maildir=no
15754: if test X"$ac_cv_header_paths_h" = X"yes"; then
15755: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756: /* end confdefs.h.  */
15757: $ac_includes_default
15758: #include <paths.h>
15759: int
15760: main ()
15761: {
15762: char *p = _PATH_MAILDIR;
15763:   ;
15764:   return 0;
15765: }
15766: _ACEOF
15767: if ac_fn_c_try_compile "$LINENO"; then :
15768:   maildir=yes
15769: fi
15770: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15771: fi
15772: if test $maildir = no; then
15773:     # Solaris has maillock.h which defines MAILDIR
15774:     for ac_header in maillock.h
15775: do :
15776:   ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15777: if test "x$ac_cv_header_maillock_h" = xyes; then :
15778:   cat >>confdefs.h <<_ACEOF
15779: #define HAVE_MAILLOCK_H 1
15780: _ACEOF
15781: 
15782: 	cat >>confdefs.h <<\EOF
15783: #define _PATH_MAILDIR MAILDIR
15784: EOF
15785: 
15786: 	maildir=yes
15787: 
15788: fi
15789: 
15790: done
15791: 
15792:     if test $maildir = no; then
15793: 	for d in /var/mail /var/spool/mail /usr/spool/mail; do
15794: 	    if test -d "$d"; then
15795: 		maildir=yes
15796: 		cat >>confdefs.h <<EOF
15797: #define _PATH_MAILDIR "$d"
15798: EOF
15799: 
15800: 		break
15801: 	    fi
15802: 	done
15803: 	if test $maildir = no; then
15804: 	    # unable to find mail dir, hope for the best
15805: 	    cat >>confdefs.h <<EOF
15806: #define _PATH_MAILDIR "/var/mail"
15807: EOF
15808: 
15809: 	fi
15810:     fi
15811: fi
15812: 
15813: if test ${with_logincap-'no'} != "no"; then
15814:     for ac_header in login_cap.h
15815: do :
15816:   ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15817: if test "x$ac_cv_header_login_cap_h" = xyes; then :
15818:   cat >>confdefs.h <<_ACEOF
15819: #define HAVE_LOGIN_CAP_H 1
15820: _ACEOF
15821:  LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
15822: 	case "$OS" in
15823: 	    freebsd|netbsd)
15824: 		SUDO_LIBS="${SUDO_LIBS} -lutil"
15825: 		SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15826: 		;;
15827: 	esac
15828: 
15829: fi
15830: 
15831: done
15832: 
15833: fi
15834: if test ${with_project-'no'} != "no"; then
15835:     ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15836: if test "x$ac_cv_header_project_h" = xyes; then :
15837: 
15838: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15839: $as_echo_n "checking for setproject in -lproject... " >&6; }
15840: if ${ac_cv_lib_project_setproject+:} false; then :
15841:   $as_echo_n "(cached) " >&6
15842: else
15843:   ac_check_lib_save_LIBS=$LIBS
15844: LIBS="-lproject  $LIBS"
15845: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846: /* end confdefs.h.  */
15847: 
15848: /* Override any GCC internal prototype to avoid an error.
15849:    Use char because int might match the return type of a GCC
15850:    builtin and then its argument prototype would still apply.  */
15851: #ifdef __cplusplus
15852: extern "C"
15853: #endif
15854: char setproject ();
15855: int
15856: main ()
15857: {
15858: return setproject ();
15859:   ;
15860:   return 0;
15861: }
15862: _ACEOF
15863: if ac_fn_c_try_link "$LINENO"; then :
15864:   ac_cv_lib_project_setproject=yes
15865: else
15866:   ac_cv_lib_project_setproject=no
15867: fi
15868: rm -f core conftest.err conftest.$ac_objext \
15869:     conftest$ac_exeext conftest.$ac_ext
15870: LIBS=$ac_check_lib_save_LIBS
15871: fi
15872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15873: $as_echo "$ac_cv_lib_project_setproject" >&6; }
15874: if test "x$ac_cv_lib_project_setproject" = xyes; then :
15875: 
15876: 	    $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15877: 
15878: 	    SUDO_LIBS="${SUDO_LIBS} -lproject"
15879: 
15880: fi
15881: 
15882: 
15883: fi
15884: 
15885: 
15886: fi
15887: ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15888: if test "x$ac_cv_type_mode_t" = xyes; then :
15889: 
15890: else
15891: 
15892: cat >>confdefs.h <<_ACEOF
15893: #define mode_t int
15894: _ACEOF
15895: 
15896: fi
15897: 
15898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15899: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15900: if ${ac_cv_type_uid_t+:} false; then :
15901:   $as_echo_n "(cached) " >&6
15902: else
15903:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904: /* end confdefs.h.  */
15905: #include <sys/types.h>
15906: 
15907: _ACEOF
15908: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15909:   $EGREP "uid_t" >/dev/null 2>&1; then :
15910:   ac_cv_type_uid_t=yes
15911: else
15912:   ac_cv_type_uid_t=no
15913: fi
15914: rm -f conftest*
15915: 
15916: fi
15917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15918: $as_echo "$ac_cv_type_uid_t" >&6; }
15919: if test $ac_cv_type_uid_t = no; then
15920: 
15921: $as_echo "#define uid_t int" >>confdefs.h
15922: 
15923: 
15924: $as_echo "#define gid_t int" >>confdefs.h
15925: 
15926: fi
15927: 
15928: ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
15929: if test "x$ac_cv_type___signed_char" = xyes; then :
15930: 
15931: else
15932:   ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
15933: if test "x$ac_cv_type_signed_char" = xyes; then :
15934:   $as_echo "#define __signed signed" >>confdefs.h
15935: 
15936: else
15937:   $as_echo "#define __signed /**/" >>confdefs.h
15938: 
15939: fi
15940: 
15941: fi
15942: 
15943: ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
15944: #include <signal.h>
15945: "
15946: if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
15947: 
15948: else
15949:   $as_echo "#define sig_atomic_t int" >>confdefs.h
15950: 
15951: fi
15952: 
15953: ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
15954: #include <signal.h>
15955: "
15956: if test "x$ac_cv_type_sigaction_t" = xyes; then :
15957: 
15958: cat >>confdefs.h <<_ACEOF
15959: #define HAVE_SIGACTION_T 1
15960: _ACEOF
15961: 
15962: 
15963: fi
15964: 
15965: ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
15966: #if TIME_WITH_SYS_TIME
15967: # include <sys/time.h>
15968: #endif
15969: #include <time.h>
15970: "
15971: if test "x$ac_cv_type_struct_timespec" = xyes; then :
15972: 
15973: cat >>confdefs.h <<_ACEOF
15974: #define HAVE_STRUCT_TIMESPEC 1
15975: _ACEOF
15976: 
15977: 
15978: fi
15979: 
15980: ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
15981: #include <netinet/in.h>
15982: "
15983: if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15984: 
15985: cat >>confdefs.h <<_ACEOF
15986: #define HAVE_STRUCT_IN6_ADDR 1
15987: _ACEOF
15988: 
15989: 
15990: fi
15991: 
15992: 
15993:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15994: $as_echo_n "checking for long long int... " >&6; }
15995: if ${ac_cv_type_long_long_int+:} false; then :
15996:   $as_echo_n "(cached) " >&6
15997: else
15998:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999: /* end confdefs.h.  */
16000: 
16001:   /* For now, do not test the preprocessor; as of 2007 there are too many
16002: 	 implementations with broken preprocessors.  Perhaps this can
16003: 	 be revisited in 2012.  In the meantime, code should not expect
16004: 	 #if to work with literals wider than 32 bits.  */
16005:       /* Test literals.  */
16006:       long long int ll = 9223372036854775807ll;
16007:       long long int nll = -9223372036854775807LL;
16008:       unsigned long long int ull = 18446744073709551615ULL;
16009:       /* Test constant expressions.   */
16010:       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16011: 		     ? 1 : -1)];
16012:       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16013: 		     ? 1 : -1)];
16014:       int i = 63;
16015: int
16016: main ()
16017: {
16018: /* Test availability of runtime routines for shift and division.  */
16019:       long long int llmax = 9223372036854775807ll;
16020:       unsigned long long int ullmax = 18446744073709551615ull;
16021:       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16022: 	      | (llmax / ll) | (llmax % ll)
16023: 	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16024: 	      | (ullmax / ull) | (ullmax % ull));
16025:   ;
16026:   return 0;
16027: }
16028: 
16029: _ACEOF
16030: if ac_fn_c_try_link "$LINENO"; then :
16031:   			if test "$cross_compiling" = yes; then :
16032:   ac_cv_type_long_long_int=yes
16033: else
16034:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035: /* end confdefs.h.  */
16036: #include <limits.h>
16037: 	       #ifndef LLONG_MAX
16038: 	       # define HALF \
16039: 			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
16040: 	       # define LLONG_MAX (HALF - 1 + HALF)
16041: 	       #endif
16042: int
16043: main ()
16044: {
16045: long long int n = 1;
16046: 	       int i;
16047: 	       for (i = 0; ; i++)
16048: 		 {
16049: 		   long long int m = n << i;
16050: 		   if (m >> i != n)
16051: 		     return 1;
16052: 		   if (LLONG_MAX / 2 < m)
16053: 		     break;
16054: 		 }
16055: 	       return 0;
16056:   ;
16057:   return 0;
16058: }
16059: _ACEOF
16060: if ac_fn_c_try_run "$LINENO"; then :
16061:   ac_cv_type_long_long_int=yes
16062: else
16063:   ac_cv_type_long_long_int=no
16064: fi
16065: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16066:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16067: fi
16068: 
16069: else
16070:   ac_cv_type_long_long_int=no
16071: fi
16072: rm -f core conftest.err conftest.$ac_objext \
16073:     conftest$ac_exeext conftest.$ac_ext
16074: fi
16075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16076: $as_echo "$ac_cv_type_long_long_int" >&6; }
16077:   if test $ac_cv_type_long_long_int = yes; then
16078: 
16079: $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16080: 
16081:   fi
16082: 
16083: # The cast to long int works around a bug in the HP C Compiler
16084: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16085: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16086: # This bug is HP SR number 8606223364.
16087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
16088: $as_echo_n "checking size of long int... " >&6; }
16089: if ${ac_cv_sizeof_long_int+:} false; then :
16090:   $as_echo_n "(cached) " >&6
16091: else
16092:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
16093: 
16094: else
16095:   if test "$ac_cv_type_long_int" = yes; then
16096:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16097: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16098: as_fn_error 77 "cannot compute sizeof (long int)
16099: See \`config.log' for more details" "$LINENO" 5; }
16100:    else
16101:      ac_cv_sizeof_long_int=0
16102:    fi
16103: fi
16104: 
16105: fi
16106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
16107: $as_echo "$ac_cv_sizeof_long_int" >&6; }
16108: 
16109: 
16110: 
16111: cat >>confdefs.h <<_ACEOF
16112: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16113: _ACEOF
16114: 
16115: 
16116: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16117: if test "x$ac_cv_type_size_t" = xyes; then :
16118: 
16119: else
16120: 
16121: cat >>confdefs.h <<_ACEOF
16122: #define size_t unsigned int
16123: _ACEOF
16124: 
16125: fi
16126: 
16127: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16128: if test "x$ac_cv_type_ssize_t" = xyes; then :
16129: 
16130: else
16131: 
16132: cat >>confdefs.h <<_ACEOF
16133: #define ssize_t int
16134: _ACEOF
16135: 
16136: fi
16137: 
16138: ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
16139: if test "x$ac_cv_type_dev_t" = xyes; then :
16140: 
16141: else
16142: 
16143: cat >>confdefs.h <<_ACEOF
16144: #define dev_t int
16145: _ACEOF
16146: 
16147: fi
16148: 
16149: ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
16150: if test "x$ac_cv_type_ino_t" = xyes; then :
16151: 
16152: else
16153: 
16154: cat >>confdefs.h <<_ACEOF
16155: #define ino_t unsigned int
16156: _ACEOF
16157: 
16158: fi
16159: 
16160: ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16161: $ac_includes_default
16162: #include <sys/socket.h>
16163: "
16164: if test "x$ac_cv_type_socklen_t" = xyes; then :
16165: 
16166: else
16167:   $as_echo "#define socklen_t unsigned int" >>confdefs.h
16168: 
16169: fi
16170: 
16171: 
16172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
16173: $as_echo_n "checking max length of uid_t... " >&6; }
16174: if ${sudo_cv_uid_t_len+:} false; then :
16175:   $as_echo_n "(cached) " >&6
16176: else
16177:   rm -f conftestdata
16178: if test "$cross_compiling" = yes; then :
16179:   sudo_cv_uid_t_len=10
16180: else
16181:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182: /* end confdefs.h.  */
16183: #include <stdio.h>
16184: #include <pwd.h>
16185: #include <limits.h>
16186: #include <sys/types.h>
16187: #include <sys/param.h>
16188: main() {
16189:   FILE *f;
16190:   char b[1024];
16191:   uid_t u = (uid_t) -1;
16192: 
16193:   if ((f = fopen("conftestdata", "w")) == NULL)
16194:     exit(1);
16195: 
16196:   (void) sprintf(b, "%lu", (unsigned long) u);
16197:   (void) fprintf(f, "%d\n", strlen(b));
16198:   (void) fclose(f);
16199:   exit(0);
16200: }
16201: _ACEOF
16202: if ac_fn_c_try_run "$LINENO"; then :
16203:   sudo_cv_uid_t_len=`cat conftestdata`
16204: else
16205:   sudo_cv_uid_t_len=10
16206: fi
16207: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16208:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16209: fi
16210: 
16211: 
16212: fi
16213: 
16214: rm -f conftestdata
16215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
16216: $as_echo "$sudo_cv_uid_t_len" >&6; }
16217: 
16218: cat >>confdefs.h <<_ACEOF
16219: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
16220: _ACEOF
16221: 
16222: 
16223: 
16224:     ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
16225: 	  #include <sys/socket.h>
16226: 
16227: "
16228: if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
16229: 
16230: $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
16231: 
16232: fi
16233: 
16234: 
16235: _CFLAGS="$CFLAGS"
16236: CFLAGS="$CFLAGS $OSDEFS"
16237: if test $ac_cv_header_utmpx_h = "yes"; then
16238:     ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
16239: 	#include <sys/types.h>
16240: 	#include <utmpx.h>
16241: 
16242: "
16243: if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
16244: 
16245: cat >>confdefs.h <<_ACEOF
16246: #define HAVE_STRUCT_UTMPX_UT_ID 1
16247: _ACEOF
16248: 
16249: 
16250: fi
16251: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
16252: 	#include <sys/types.h>
16253: 	#include <utmpx.h>
16254: 
16255: "
16256: if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
16257: 
16258: cat >>confdefs.h <<_ACEOF
16259: #define HAVE_STRUCT_UTMPX_UT_PID 1
16260: _ACEOF
16261: 
16262: 
16263: fi
16264: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
16265: 	#include <sys/types.h>
16266: 	#include <utmpx.h>
16267: 
16268: "
16269: if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
16270: 
16271: cat >>confdefs.h <<_ACEOF
16272: #define HAVE_STRUCT_UTMPX_UT_TV 1
16273: _ACEOF
16274: 
16275: 
16276: fi
16277: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
16278: 	#include <sys/types.h>
16279: 	#include <utmpx.h>
16280: 
16281: "
16282: if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
16283: 
16284: cat >>confdefs.h <<_ACEOF
16285: #define HAVE_STRUCT_UTMPX_UT_TYPE 1
16286: _ACEOF
16287: 
16288: 
16289: fi
16290: 
16291:                 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
16292: 	#include <sys/types.h>
16293: 	#include <utmpx.h>
16294: 
16295: "
16296: if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
16297: 
16298: cat >>confdefs.h <<_ACEOF
16299: #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
16300: _ACEOF
16301: 
16302: $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16303: 
16304: else
16305: 
16306: 	ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
16307: 	    #include <sys/types.h>
16308: 	    #include <utmpx.h>
16309: 
16310: "
16311: if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
16312: 
16313: cat >>confdefs.h <<_ACEOF
16314: #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16315: _ACEOF
16316: 
16317: $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16318: 
16319: fi
16320: 
16321: 
16322: fi
16323: 
16324: else
16325:     ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
16326: 	#include <sys/types.h>
16327: 	#include <utmp.h>
16328: 
16329: "
16330: if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
16331: 
16332: cat >>confdefs.h <<_ACEOF
16333: #define HAVE_STRUCT_UTMP_UT_ID 1
16334: _ACEOF
16335: 
16336: 
16337: fi
16338: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
16339: 	#include <sys/types.h>
16340: 	#include <utmp.h>
16341: 
16342: "
16343: if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
16344: 
16345: cat >>confdefs.h <<_ACEOF
16346: #define HAVE_STRUCT_UTMP_UT_PID 1
16347: _ACEOF
16348: 
16349: 
16350: fi
16351: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16352: 	#include <sys/types.h>
16353: 	#include <utmp.h>
16354: 
16355: "
16356: if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16357: 
16358: cat >>confdefs.h <<_ACEOF
16359: #define HAVE_STRUCT_UTMP_UT_TV 1
16360: _ACEOF
16361: 
16362: 
16363: fi
16364: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16365: 	#include <sys/types.h>
16366: 	#include <utmp.h>
16367: 
16368: "
16369: if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16370: 
16371: cat >>confdefs.h <<_ACEOF
16372: #define HAVE_STRUCT_UTMP_UT_TYPE 1
16373: _ACEOF
16374: 
16375: 
16376: fi
16377: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16378: 	#include <sys/types.h>
16379: 	#include <utmp.h>
16380: 
16381: "
16382: if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16383: 
16384: cat >>confdefs.h <<_ACEOF
16385: #define HAVE_STRUCT_UTMP_UT_USER 1
16386: _ACEOF
16387: 
16388: 
16389: fi
16390: 
16391:                 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16392: 	#include <sys/types.h>
16393: 	#include <utmp.h>
16394: 
16395: "
16396: if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16397: 
16398: cat >>confdefs.h <<_ACEOF
16399: #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16400: _ACEOF
16401: 
16402: $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16403: 
16404: else
16405: 
16406: 	ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16407: 	    #include <sys/types.h>
16408: 	    #include <utmp.h>
16409: 
16410: "
16411: if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16412: 
16413: cat >>confdefs.h <<_ACEOF
16414: #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16415: _ACEOF
16416: 
16417: $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16418: 
16419: fi
16420: 
16421: 
16422: fi
16423: 
16424: fi
16425: CFLAGS="$_CFLAGS"
16426: 
16427: { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16428: $as_echo_n "checking type of array argument to getgroups... " >&6; }
16429: if ${ac_cv_type_getgroups+:} false; then :
16430:   $as_echo_n "(cached) " >&6
16431: else
16432:   if test "$cross_compiling" = yes; then :
16433:   ac_cv_type_getgroups=cross
16434: else
16435:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436: /* end confdefs.h.  */
16437: /* Thanks to Mike Rendell for this test.  */
16438: $ac_includes_default
16439: #define NGID 256
16440: #undef MAX
16441: #define MAX(x, y) ((x) > (y) ? (x) : (y))
16442: 
16443: int
16444: main ()
16445: {
16446:   gid_t gidset[NGID];
16447:   int i, n;
16448:   union { gid_t gval; long int lval; }  val;
16449: 
16450:   val.lval = -1;
16451:   for (i = 0; i < NGID; i++)
16452:     gidset[i] = val.gval;
16453:   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16454: 		 gidset);
16455:   /* Exit non-zero if getgroups seems to require an array of ints.  This
16456:      happens when gid_t is short int but getgroups modifies an array
16457:      of ints.  */
16458:   return n > 0 && gidset[n] != val.gval;
16459: }
16460: _ACEOF
16461: if ac_fn_c_try_run "$LINENO"; then :
16462:   ac_cv_type_getgroups=gid_t
16463: else
16464:   ac_cv_type_getgroups=int
16465: fi
16466: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16467:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16468: fi
16469: 
16470: if test $ac_cv_type_getgroups = cross; then
16471:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472: /* end confdefs.h.  */
16473: #include <unistd.h>
16474: 
16475: _ACEOF
16476: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16477:   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16478:   ac_cv_type_getgroups=gid_t
16479: else
16480:   ac_cv_type_getgroups=int
16481: fi
16482: rm -f conftest*
16483: 
16484: fi
16485: fi
16486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16487: $as_echo "$ac_cv_type_getgroups" >&6; }
16488: 
16489: cat >>confdefs.h <<_ACEOF
16490: #define GETGROUPS_T $ac_cv_type_getgroups
16491: _ACEOF
16492: 
16493: 
16494: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16495: if test "x$ac_cv_type_size_t" = xyes; then :
16496: 
16497: else
16498: 
16499: cat >>confdefs.h <<_ACEOF
16500: #define size_t unsigned int
16501: _ACEOF
16502: 
16503: fi
16504: 
16505: ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16506: if test "x$ac_cv_func_getgroups" = xyes; then :
16507: 
16508: fi
16509: 
16510: 
16511: # If we don't yet have getgroups, see if it's in -lbsd.
16512: # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16513: ac_save_LIBS=$LIBS
16514: if test $ac_cv_func_getgroups = no; then
16515:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16516: $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16517: if ${ac_cv_lib_bsd_getgroups+:} false; then :
16518:   $as_echo_n "(cached) " >&6
16519: else
16520:   ac_check_lib_save_LIBS=$LIBS
16521: LIBS="-lbsd  $LIBS"
16522: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523: /* end confdefs.h.  */
16524: 
16525: /* Override any GCC internal prototype to avoid an error.
16526:    Use char because int might match the return type of a GCC
16527:    builtin and then its argument prototype would still apply.  */
16528: #ifdef __cplusplus
16529: extern "C"
16530: #endif
16531: char getgroups ();
16532: int
16533: main ()
16534: {
16535: return getgroups ();
16536:   ;
16537:   return 0;
16538: }
16539: _ACEOF
16540: if ac_fn_c_try_link "$LINENO"; then :
16541:   ac_cv_lib_bsd_getgroups=yes
16542: else
16543:   ac_cv_lib_bsd_getgroups=no
16544: fi
16545: rm -f core conftest.err conftest.$ac_objext \
16546:     conftest$ac_exeext conftest.$ac_ext
16547: LIBS=$ac_check_lib_save_LIBS
16548: fi
16549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16550: $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16551: if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16552:   GETGROUPS_LIB=-lbsd
16553: fi
16554: 
16555: fi
16556: 
16557: # Run the program to test the functionality of the system-supplied
16558: # getgroups function only if there is such a function.
16559: if test $ac_cv_func_getgroups = yes; then
16560:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16561: $as_echo_n "checking for working getgroups... " >&6; }
16562: if ${ac_cv_func_getgroups_works+:} false; then :
16563:   $as_echo_n "(cached) " >&6
16564: else
16565:   if test "$cross_compiling" = yes; then :
16566:   ac_cv_func_getgroups_works=no
16567: else
16568:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569: /* end confdefs.h.  */
16570: $ac_includes_default
16571: int
16572: main ()
16573: {
16574: /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
16575:        return getgroups (0, 0) == -1;
16576:   ;
16577:   return 0;
16578: }
16579: _ACEOF
16580: if ac_fn_c_try_run "$LINENO"; then :
16581:   ac_cv_func_getgroups_works=yes
16582: else
16583:   ac_cv_func_getgroups_works=no
16584: fi
16585: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16586:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16587: fi
16588: 
16589: 
16590: fi
16591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16592: $as_echo "$ac_cv_func_getgroups_works" >&6; }
16593: else
16594:   ac_cv_func_getgroups_works=no
16595: fi
16596: if test $ac_cv_func_getgroups_works = yes; then
16597: 
16598: $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16599: 
16600: fi
16601: LIBS=$ac_save_LIBS
16602: 
16603: for ac_func in glob strrchr sysconf tzset strftime setenv \
16604: 	       regcomp setlocale nl_langinfo mbr_check_membership \
16605: 	       setrlimit64
16606: do :
16607:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16608: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16609: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16610:   cat >>confdefs.h <<_ACEOF
16611: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16612: _ACEOF
16613: 
16614: fi
16615: done
16616: 
16617: ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
16618: if test "x$ac_cv_func_getgrouplist" = xyes; then :
16619:   $as_echo "#define HAVE_GETGROUPLIST 1" >>confdefs.h
16620: 
16621: else
16622:   case " $LIBOBJS " in
16623:   *" getgrouplist.$ac_objext "* ) ;;
16624:   *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16625:  ;;
16626: esac
16627: 
16628: fi
16629: 
16630: 
16631: for ac_func in getline
16632: do :
16633:   ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16634: if test "x$ac_cv_func_getline" = xyes; then :
16635:   cat >>confdefs.h <<_ACEOF
16636: #define HAVE_GETLINE 1
16637: _ACEOF
16638: 
16639: else
16640: 
16641:     case " $LIBOBJS " in
16642:   *" getline.$ac_objext "* ) ;;
16643:   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16644:  ;;
16645: esac
16646: 
16647:     for ac_func in fgetln
16648: do :
16649:   ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16650: if test "x$ac_cv_func_fgetln" = xyes; then :
16651:   cat >>confdefs.h <<_ACEOF
16652: #define HAVE_FGETLN 1
16653: _ACEOF
16654: 
16655: fi
16656: done
16657: 
16658: 
16659: fi
16660: done
16661: 
16662: if test "$enable_hardening" != "no"; then
16663:     O_CPPFLAGS="$CPPFLAGS"
16664:     CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
16665:     ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
16666: if test "x$ac_cv_func___sprintf_chk" = xyes; then :
16667: 
16668: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669: /* end confdefs.h.  */
16670: 
16671: int
16672: main ()
16673: {
16674: char buf[4]; (void)sprintf(buf, "%s", "foo");
16675:   ;
16676:   return 0;
16677: }
16678: _ACEOF
16679: if ac_fn_c_try_link "$LINENO"; then :
16680:   OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
16681: fi
16682: rm -f core conftest.err conftest.$ac_objext \
16683:     conftest$ac_exeext conftest.$ac_ext
16684: 
16685: fi
16686: 
16687:     CPPFLAGS="$O_CPPFLAGS"
16688: fi
16689: 
16690: utmp_style=LEGACY
16691: for ac_func in getutxid getutid
16692: do :
16693:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16694: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16695: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16696:   cat >>confdefs.h <<_ACEOF
16697: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16698: _ACEOF
16699:  utmp_style=POSIX; break
16700: fi
16701: done
16702: 
16703: if test "$utmp_style" = "LEGACY"; then
16704:     for ac_func in getttyent ttyslot
16705: do :
16706:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16707: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16708: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16709:   cat >>confdefs.h <<_ACEOF
16710: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16711: _ACEOF
16712:  break
16713: fi
16714: done
16715: 
16716:     for ac_func in fseeko
16717: do :
16718:   ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
16719: if test "x$ac_cv_func_fseeko" = xyes; then :
16720:   cat >>confdefs.h <<_ACEOF
16721: #define HAVE_FSEEKO 1
16722: _ACEOF
16723: 
16724: fi
16725: done
16726: 
16727: fi
16728: 
16729: for ac_func in sysctl
16730: do :
16731:   ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
16732: if test "x$ac_cv_func_sysctl" = xyes; then :
16733:   cat >>confdefs.h <<_ACEOF
16734: #define HAVE_SYSCTL 1
16735: _ACEOF
16736:  ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
16737: 	#include <sys/param.h>
16738: 	#include <sys/sysctl.h>
16739: 	#include <sys/user.h>
16740: 
16741: "
16742: if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
16743: 
16744: cat >>confdefs.h <<_ACEOF
16745: #define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
16746: _ACEOF
16747: 
16748: 
16749: else
16750: 
16751: 	ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
16752: 	    #include <sys/param.h>
16753: 	    #include <sys/sysctl.h>
16754: 
16755: "
16756: if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
16757: 
16758: cat >>confdefs.h <<_ACEOF
16759: #define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
16760: _ACEOF
16761: 
16762: 
16763: else
16764: 
16765: 	    ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
16766: 		#include <sys/param.h>
16767: 		#include <sys/sysctl.h>
16768: 
16769: "
16770: if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
16771: 
16772: cat >>confdefs.h <<_ACEOF
16773: #define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
16774: _ACEOF
16775: 
16776: 
16777: else
16778: 
16779: 		ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
16780: 		    #include <sys/param.h>
16781: 		    #include <sys/sysctl.h>
16782: 
16783: "
16784: if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
16785: 
16786: cat >>confdefs.h <<_ACEOF
16787: #define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
16788: _ACEOF
16789: 
16790: 
16791: fi
16792: 
16793: 
16794: fi
16795: 
16796: 
16797: fi
16798: 
16799: 
16800: fi
16801: 
16802: 
16803: fi
16804: done
16805: 
16806: 
16807: for ac_func in openpty
16808: do :
16809:   ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
16810: if test "x$ac_cv_func_openpty" = xyes; then :
16811:   cat >>confdefs.h <<_ACEOF
16812: #define HAVE_OPENPTY 1
16813: _ACEOF
16814:  for ac_header in libutil.h util.h pty.h
16815: do :
16816:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16817: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16818: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16819:   cat >>confdefs.h <<_ACEOF
16820: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16821: _ACEOF
16822:  break
16823: fi
16824: 
16825: done
16826: 
16827: else
16828: 
16829:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
16830: $as_echo_n "checking for openpty in -lutil... " >&6; }
16831: if ${ac_cv_lib_util_openpty+:} false; then :
16832:   $as_echo_n "(cached) " >&6
16833: else
16834:   ac_check_lib_save_LIBS=$LIBS
16835: LIBS="-lutil  $LIBS"
16836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837: /* end confdefs.h.  */
16838: 
16839: /* Override any GCC internal prototype to avoid an error.
16840:    Use char because int might match the return type of a GCC
16841:    builtin and then its argument prototype would still apply.  */
16842: #ifdef __cplusplus
16843: extern "C"
16844: #endif
16845: char openpty ();
16846: int
16847: main ()
16848: {
16849: return openpty ();
16850:   ;
16851:   return 0;
16852: }
16853: _ACEOF
16854: if ac_fn_c_try_link "$LINENO"; then :
16855:   ac_cv_lib_util_openpty=yes
16856: else
16857:   ac_cv_lib_util_openpty=no
16858: fi
16859: rm -f core conftest.err conftest.$ac_objext \
16860:     conftest$ac_exeext conftest.$ac_ext
16861: LIBS=$ac_check_lib_save_LIBS
16862: fi
16863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
16864: $as_echo "$ac_cv_lib_util_openpty" >&6; }
16865: if test "x$ac_cv_lib_util_openpty" = xyes; then :
16866: 
16867: 	for ac_header in libutil.h util.h pty.h
16868: do :
16869:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16870: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16871: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16872:   cat >>confdefs.h <<_ACEOF
16873: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16874: _ACEOF
16875:  break
16876: fi
16877: 
16878: done
16879: 
16880: 	case "$SUDO_LIBS" in
16881: 	    *-lutil*) ;;
16882: 	    *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
16883: 	esac
16884: 	$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
16885: 
16886: 
16887: else
16888: 
16889: 	for ac_func in _getpty
16890: do :
16891:   ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
16892: if test "x$ac_cv_func__getpty" = xyes; then :
16893:   cat >>confdefs.h <<_ACEOF
16894: #define HAVE__GETPTY 1
16895: _ACEOF
16896: 
16897: else
16898: 
16899: 	    for ac_func in grantpt
16900: do :
16901:   ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16902: if test "x$ac_cv_func_grantpt" = xyes; then :
16903:   cat >>confdefs.h <<_ACEOF
16904: #define HAVE_GRANTPT 1
16905: _ACEOF
16906: 
16907: 		for ac_func in posix_openpt
16908: do :
16909:   ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
16910: if test "x$ac_cv_func_posix_openpt" = xyes; then :
16911:   cat >>confdefs.h <<_ACEOF
16912: #define HAVE_POSIX_OPENPT 1
16913: _ACEOF
16914: 
16915: fi
16916: done
16917: 
16918: 
16919: else
16920: 
16921: 		for ac_func in revoke
16922: do :
16923:   ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
16924: if test "x$ac_cv_func_revoke" = xyes; then :
16925:   cat >>confdefs.h <<_ACEOF
16926: #define HAVE_REVOKE 1
16927: _ACEOF
16928: 
16929: fi
16930: done
16931: 
16932: 
16933: fi
16934: done
16935: 
16936: 
16937: fi
16938: done
16939: 
16940: 
16941: fi
16942: 
16943: 
16944: fi
16945: done
16946: 
16947: for ac_func in unsetenv
16948: do :
16949:   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16950: if test "x$ac_cv_func_unsetenv" = xyes; then :
16951:   cat >>confdefs.h <<_ACEOF
16952: #define HAVE_UNSETENV 1
16953: _ACEOF
16954:  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
16955: $as_echo_n "checking whether unsetenv returns void... " >&6; }
16956: if ${sudo_cv_func_unsetenv_void+:} false; then :
16957:   $as_echo_n "(cached) " >&6
16958: else
16959:   if test "$cross_compiling" = yes; then :
16960:   sudo_cv_func_unsetenv_void=no
16961: else
16962:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963: /* end confdefs.h.  */
16964: $ac_includes_default
16965:         int unsetenv();
16966: 
16967: int
16968: main ()
16969: {
16970: 
16971:         return unsetenv("FOO") != 0;
16972: 
16973:   ;
16974:   return 0;
16975: }
16976: 
16977: _ACEOF
16978: if ac_fn_c_try_run "$LINENO"; then :
16979:   sudo_cv_func_unsetenv_void=no
16980: else
16981:   sudo_cv_func_unsetenv_void=yes
16982: fi
16983: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16984:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16985: fi
16986: 
16987: fi
16988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
16989: $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
16990:     if test $sudo_cv_func_unsetenv_void = yes; then
16991: 
16992: $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
16993: 
16994:     fi
16995: 
16996: fi
16997: done
16998: 
16999: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv takes a const argument" >&5
17000: $as_echo_n "checking whether putenv takes a const argument... " >&6; }
17001: if ${sudo_cv_func_putenv_const+:} false; then :
17002:   $as_echo_n "(cached) " >&6
17003: else
17004:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005: /* end confdefs.h.  */
17006: $ac_includes_default
17007: int putenv(const char *string) {return 0;}
17008: int
17009: main ()
17010: {
17011: 
17012:   ;
17013:   return 0;
17014: }
17015: _ACEOF
17016: if ac_fn_c_try_compile "$LINENO"; then :
17017:   sudo_cv_func_putenv_const=yes
17018: else
17019:   sudo_cv_func_putenv_const=no
17020: fi
17021: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022: 
17023: fi
17024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
17025: $as_echo "$sudo_cv_func_putenv_const" >&6; }
17026:   if test $sudo_cv_func_putenv_const = yes; then
17027: 
17028: $as_echo "#define PUTENV_CONST const" >>confdefs.h
17029: 
17030:   else
17031:     $as_echo "#define PUTENV_CONST /**/" >>confdefs.h
17032: 
17033:   fi
17034: 
17035: if test -z "$SKIP_SETRESUID"; then
17036:     for ac_func in setresuid
17037: do :
17038:   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17039: if test "x$ac_cv_func_setresuid" = xyes; then :
17040:   cat >>confdefs.h <<_ACEOF
17041: #define HAVE_SETRESUID 1
17042: _ACEOF
17043: 
17044: 	SKIP_SETREUID=yes
17045: 	for ac_func in getresuid
17046: do :
17047:   ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
17048: if test "x$ac_cv_func_getresuid" = xyes; then :
17049:   cat >>confdefs.h <<_ACEOF
17050: #define HAVE_GETRESUID 1
17051: _ACEOF
17052: 
17053: fi
17054: done
17055: 
17056: 
17057: fi
17058: done
17059: 
17060: fi
17061: if test -z "$SKIP_SETREUID"; then
17062:     for ac_func in setreuid
17063: do :
17064:   ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17065: if test "x$ac_cv_func_setreuid" = xyes; then :
17066:   cat >>confdefs.h <<_ACEOF
17067: #define HAVE_SETREUID 1
17068: _ACEOF
17069:  SKIP_SETEUID=yes
17070: fi
17071: done
17072: 
17073: fi
17074: if test -z "$SKIP_SETEUID"; then
17075:     for ac_func in seteuid
17076: do :
17077:   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
17078: if test "x$ac_cv_func_seteuid" = xyes; then :
17079:   cat >>confdefs.h <<_ACEOF
17080: #define HAVE_SETEUID 1
17081: _ACEOF
17082: 
17083: fi
17084: done
17085: 
17086: fi
17087: if test X"$with_interfaces" != X"no"; then
17088:     for ac_func in getifaddrs
17089: do :
17090:   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
17091: if test "x$ac_cv_func_getifaddrs" = xyes; then :
17092:   cat >>confdefs.h <<_ACEOF
17093: #define HAVE_GETIFADDRS 1
17094: _ACEOF
17095:  for ac_func in freeifaddrs
17096: do :
17097:   ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
17098: if test "x$ac_cv_func_freeifaddrs" = xyes; then :
17099:   cat >>confdefs.h <<_ACEOF
17100: #define HAVE_FREEIFADDRS 1
17101: _ACEOF
17102: 
17103: fi
17104: done
17105: 
17106: fi
17107: done
17108: 
17109: fi
17110: if test -z "$BROKEN_GETCWD"; then
17111:     ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
17112: if test "x$ac_cv_func_getcwd" = xyes; then :
17113:   $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
17114: 
17115: else
17116:   case " $LIBOBJS " in
17117:   *" getcwd.$ac_objext "* ) ;;
17118:   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
17119:  ;;
17120: esac
17121: 
17122: fi
17123: 
17124: 
17125: fi
17126: for ac_func in lockf flock
17127: do :
17128:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17129: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17130: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17131:   cat >>confdefs.h <<_ACEOF
17132: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17133: _ACEOF
17134:  break
17135: fi
17136: done
17137: 
17138: for ac_func in innetgr _innetgr
17139: do :
17140:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17141: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17142: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17143:   cat >>confdefs.h <<_ACEOF
17144: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17145: _ACEOF
17146:  for ac_func in getdomainname
17147: do :
17148:   ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
17149: if test "x$ac_cv_func_getdomainname" = xyes; then :
17150:   cat >>confdefs.h <<_ACEOF
17151: #define HAVE_GETDOMAINNAME 1
17152: _ACEOF
17153: 
17154: fi
17155: done
17156:  break
17157: fi
17158: done
17159: 
17160: for ac_func in utimes
17161: do :
17162:   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
17163: if test "x$ac_cv_func_utimes" = xyes; then :
17164:   cat >>confdefs.h <<_ACEOF
17165: #define HAVE_UTIMES 1
17166: _ACEOF
17167:  for ac_func in futimes futimesat
17168: do :
17169:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17170: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17171: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17172:   cat >>confdefs.h <<_ACEOF
17173: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17174: _ACEOF
17175:  break
17176: fi
17177: done
17178: 
17179: else
17180:   for ac_func in futime
17181: do :
17182:   ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
17183: if test "x$ac_cv_func_futime" = xyes; then :
17184:   cat >>confdefs.h <<_ACEOF
17185: #define HAVE_FUTIME 1
17186: _ACEOF
17187: 
17188: fi
17189: done
17190:  case " $LIBOBJS " in
17191:   *" utimes.$ac_objext "* ) ;;
17192:   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17193:  ;;
17194: esac
17195: 
17196: fi
17197: done
17198: 
17199: for ac_func in killpg
17200: do :
17201:   ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
17202: if test "x$ac_cv_func_killpg" = xyes; then :
17203:   cat >>confdefs.h <<_ACEOF
17204: #define HAVE_KILLPG 1
17205: _ACEOF
17206: 
17207: else
17208:   case " $LIBOBJS " in
17209:   *" killpg.$ac_objext "* ) ;;
17210:   *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
17211:  ;;
17212: esac
17213: 
17214: fi
17215: done
17216: 
17217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
17218: $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
17219: if ${sudo_cv_func_fnmatch+:} false; then :
17220:   $as_echo_n "(cached) " >&6
17221: else
17222:   rm -f conftestdata; > conftestdata
17223: if test "$cross_compiling" = yes; then :
17224:   sudo_cv_func_fnmatch=no
17225: else
17226:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227: /* end confdefs.h.  */
17228: #include <fnmatch.h>
17229: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17230: _ACEOF
17231: if ac_fn_c_try_run "$LINENO"; then :
17232:   sudo_cv_func_fnmatch=yes
17233: else
17234:   sudo_cv_func_fnmatch=no
17235: fi
17236: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17237:   conftest.$ac_objext conftest.beam conftest.$ac_ext
17238: fi
17239: 
17240: rm -f core core.* *.core
17241: fi
17242: 
17243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
17244: $as_echo "$sudo_cv_func_fnmatch" >&6; }
17245: if test $sudo_cv_func_fnmatch = yes; then :
17246:   $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
17247: 
17248: else
17249:   case " $LIBOBJS " in
17250:   *" fnmatch.$ac_objext "* ) ;;
17251:   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17252:  ;;
17253: esac
17254: 
17255:     COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
17256: 
17257: fi
17258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
17259: $as_echo_n "checking for isblank... " >&6; }
17260: if ${sudo_cv_func_isblank+:} false; then :
17261:   $as_echo_n "(cached) " >&6
17262: else
17263:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17264: /* end confdefs.h.  */
17265: #include <ctype.h>
17266: int
17267: main ()
17268: {
17269: return (isblank('a'));
17270:   ;
17271:   return 0;
17272: }
17273: _ACEOF
17274: if ac_fn_c_try_link "$LINENO"; then :
17275:   sudo_cv_func_isblank=yes
17276: else
17277:   sudo_cv_func_isblank=no
17278: fi
17279: rm -f core conftest.err conftest.$ac_objext \
17280:     conftest$ac_exeext conftest.$ac_ext
17281: fi
17282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
17283: $as_echo "$sudo_cv_func_isblank" >&6; }
17284: 
17285:   if test "$sudo_cv_func_isblank" = "yes"; then
17286: 
17287: $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17288: 
17289:   else
17290:     case " $LIBOBJS " in
17291:   *" isblank.$ac_objext "* ) ;;
17292:   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17293:  ;;
17294: esac
17295: 
17296:   fi
17297: 
17298: ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17299: if test "x$ac_cv_func_memrchr" = xyes; then :
17300:   $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17301: 
17302: else
17303:   case " $LIBOBJS " in
17304:   *" memrchr.$ac_objext "* ) ;;
17305:   *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17306:  ;;
17307: esac
17308: 
17309: fi
17310: 
17311: ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
17312: if test "x$ac_cv_func_pw_dup" = xyes; then :
17313:   $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
17314: 
17315: else
17316:   case " $LIBOBJS " in
17317:   *" pw_dup.$ac_objext "* ) ;;
17318:   *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
17319:  ;;
17320: esac
17321: 
17322: fi
17323: 
17324: ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17325: if test "x$ac_cv_func_strlcpy" = xyes; then :
17326:   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17327: 
17328: else
17329:   case " $LIBOBJS " in
17330:   *" strlcpy.$ac_objext "* ) ;;
17331:   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17332:  ;;
17333: esac
17334: 
17335: fi
17336: 
17337: ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17338: if test "x$ac_cv_func_strlcat" = xyes; then :
17339:   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17340: 
17341: else
17342:   case " $LIBOBJS " in
17343:   *" strlcat.$ac_objext "* ) ;;
17344:   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17345:  ;;
17346: esac
17347: 
17348: fi
17349: 
17350: 
17351: for ac_func in nanosleep
17352: do :
17353:   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17354: if test "x$ac_cv_func_nanosleep" = xyes; then :
17355:   cat >>confdefs.h <<_ACEOF
17356: #define HAVE_NANOSLEEP 1
17357: _ACEOF
17358: 
17359: else
17360: 
17361:     # On Solaris, nanosleep is in librt
17362:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
17363: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
17364: if ${ac_cv_lib_rt_nanosleep+:} false; then :
17365:   $as_echo_n "(cached) " >&6
17366: else
17367:   ac_check_lib_save_LIBS=$LIBS
17368: LIBS="-lrt  $LIBS"
17369: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17370: /* end confdefs.h.  */
17371: 
17372: /* Override any GCC internal prototype to avoid an error.
17373:    Use char because int might match the return type of a GCC
17374:    builtin and then its argument prototype would still apply.  */
17375: #ifdef __cplusplus
17376: extern "C"
17377: #endif
17378: char nanosleep ();
17379: int
17380: main ()
17381: {
17382: return nanosleep ();
17383:   ;
17384:   return 0;
17385: }
17386: _ACEOF
17387: if ac_fn_c_try_link "$LINENO"; then :
17388:   ac_cv_lib_rt_nanosleep=yes
17389: else
17390:   ac_cv_lib_rt_nanosleep=no
17391: fi
17392: rm -f core conftest.err conftest.$ac_objext \
17393:     conftest$ac_exeext conftest.$ac_ext
17394: LIBS=$ac_check_lib_save_LIBS
17395: fi
17396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
17397: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
17398: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
17399:   REPLAY_LIBS="${REPLAY_LIBS} -lrt"
17400: else
17401:   case " $LIBOBJS " in
17402:   *" nanosleep.$ac_objext "* ) ;;
17403:   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17404:  ;;
17405: esac
17406: 
17407: fi
17408: 
17409: 
17410: fi
17411: done
17412: 
17413: for ac_func in closefrom
17414: do :
17415:   ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
17416: if test "x$ac_cv_func_closefrom" = xyes; then :
17417:   cat >>confdefs.h <<_ACEOF
17418: #define HAVE_CLOSEFROM 1
17419: _ACEOF
17420: 
17421: else
17422:   case " $LIBOBJS " in
17423:   *" closefrom.$ac_objext "* ) ;;
17424:   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17425:  ;;
17426: esac
17427: 
17428:     ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
17429: 	  #include <fcntl.h>
17430: "
17431: if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
17432:   $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
17433: 
17434: fi
17435: 
17436: 
17437: fi
17438: done
17439: 
17440: for ac_func in mkstemps mkdtemp
17441: do :
17442:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17443: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17444: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17445:   cat >>confdefs.h <<_ACEOF
17446: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17447: _ACEOF
17448: 
17449: else
17450: 
17451:     for ac_func in random lrand48
17452: do :
17453:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17454: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17455: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17456:   cat >>confdefs.h <<_ACEOF
17457: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17458: _ACEOF
17459:  break
17460: fi
17461: done
17462: 
17463:     case " $LIBOBJS " in
17464:   *" mktemp.$ac_objext "* ) ;;
17465:   *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17466:  ;;
17467: esac
17468: 
17469: 
17470: fi
17471: done
17472: 
17473: for ac_func in snprintf vsnprintf asprintf vasprintf
17474: do :
17475:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17476: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17477: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17478:   cat >>confdefs.h <<_ACEOF
17479: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17480: _ACEOF
17481: 
17482: else
17483:   NEED_SNPRINTF=1
17484: fi
17485: done
17486: 
17487: if test X"$ac_cv_type_struct_timespec" != X"no"; then
17488:     ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17489: if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17490:   $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17491: 
17492: 	ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17493: if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17494:   $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17495: 
17496: fi
17497: 
17498: else
17499:   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17500: if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17501:   $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17502: 
17503: fi
17504: 
17505: fi
17506: 
17507: fi
17508: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509: /* end confdefs.h.  */
17510: #include <sys/types.h>
17511: #include <$ac_header_dirent>
17512: int
17513: main ()
17514: {
17515: DIR *d; (void)dirfd(d);
17516:   ;
17517:   return 0;
17518: }
17519: _ACEOF
17520: if ac_fn_c_try_link "$LINENO"; then :
17521:   $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
17522: 
17523: else
17524:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525: /* end confdefs.h.  */
17526: #include <sys/types.h>
17527: #include <$ac_header_dirent>
17528: int
17529: main ()
17530: {
17531: DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
17532:   ;
17533:   return 0;
17534: }
17535: _ACEOF
17536: if ac_fn_c_try_link "$LINENO"; then :
17537:   $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
17538: 
17539: fi
17540: rm -f core conftest.err conftest.$ac_objext \
17541:     conftest$ac_exeext conftest.$ac_ext
17542: fi
17543: rm -f core conftest.err conftest.$ac_objext \
17544:     conftest$ac_exeext conftest.$ac_ext
17545: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
17546: $ac_includes_default
17547: #include <$ac_header_dirent>
17548: 
17549: "
17550: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
17551: 
17552: cat >>confdefs.h <<_ACEOF
17553: #define HAVE_STRUCT_DIRENT_D_TYPE 1
17554: _ACEOF
17555: 
17556: 
17557: fi
17558: 
17559: if test -n "$NEED_SNPRINTF"; then
17560:     case " $LIBOBJS " in
17561:   *" snprintf.$ac_objext "* ) ;;
17562:   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17563:  ;;
17564: esac
17565: 
17566: fi
17567: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17568: if test "x$ac_cv_func_socket" = xyes; then :
17569: 
17570: else
17571: 
17572:     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17573: 	_libs=
17574: 	for lib in $libs; do
17575: 	    case "$NET_LIBS" in
17576: 		*"$lib"*)   ;;
17577: 		*)	    _libs="$_libs $lib";;
17578: 	    esac
17579: 	done
17580: 	libs="${_libs# }"
17581: 	test -z "$libs" && continue
17582: 	lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17583: 	extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17584: 
17585:     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ 	*//g' -e 's/-l/_/g'`
17586:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
17587: $as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
17588:     if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17589:   $as_echo_n "(cached) " >&6
17590: else
17591: 
17592: 	SUDO_CHECK_LIB_OLIBS="$LIBS"
17593: 	LIBS="$LIBS -l$lib${5+ }$extralibs"
17594: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595: /* end confdefs.h.  */
17596: 
17597: /* Override any GCC internal prototype to avoid an error.
17598:    Use char because int might match the return type of a GCC
17599:    builtin and then its argument prototype would still apply.  */
17600: #ifdef __cplusplus
17601: extern "C"
17602: #endif
17603: char socket ();
17604: int
17605: main ()
17606: {
17607: return socket ();
17608:   ;
17609:   return 0;
17610: }
17611: _ACEOF
17612: if ac_fn_c_try_link "$LINENO"; then :
17613:   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
17614: else
17615:   eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
17616: 
17617: fi
17618: rm -f core conftest.err conftest.$ac_objext \
17619:     conftest$ac_exeext conftest.$ac_ext
17620: 	LIBS="$SUDO_CHECK_LIB_OLIBS"
17621: 
17622: fi
17623: 
17624:     if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
17625: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17626: $as_echo "yes" >&6; }
17627: 	NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17628:     else
17629: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17630: $as_echo "no" >&6; }
17631: 
17632:     fi
17633: 
17634:     done
17635: 
17636: fi
17637: 
17638: ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
17639: if test "x$ac_cv_func_inet_addr" = xyes; then :
17640: 
17641: else
17642: 
17643:     ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
17644: if test "x$ac_cv_func___inet_addr" = xyes; then :
17645: 
17646: else
17647: 
17648: 	for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17649: 	    _libs=
17650: 	    for lib in $libs; do
17651: 		case "$NET_LIBS" in
17652: 		    *"$lib"*)   ;;
17653: 		    *)		_libs="$_libs $lib";;
17654: 		esac
17655: 	    done
17656: 	    libs="${_libs# }"
17657: 	    test -z "$libs" && continue
17658: 	    lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17659: 	    extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17660: 
17661:     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ 	*//g' -e 's/-l/_/g'`
17662:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5
17663: $as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; }
17664:     if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17665:   $as_echo_n "(cached) " >&6
17666: else
17667: 
17668: 	SUDO_CHECK_LIB_OLIBS="$LIBS"
17669: 	LIBS="$LIBS -l$lib${5+ }$extralibs"
17670: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671: /* end confdefs.h.  */
17672: 
17673: /* Override any GCC internal prototype to avoid an error.
17674:    Use char because int might match the return type of a GCC
17675:    builtin and then its argument prototype would still apply.  */
17676: #ifdef __cplusplus
17677: extern "C"
17678: #endif
17679: char inet_addr ();
17680: int
17681: main ()
17682: {
17683: return inet_addr ();
17684:   ;
17685:   return 0;
17686: }
17687: _ACEOF
17688: if ac_fn_c_try_link "$LINENO"; then :
17689:   eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes
17690: else
17691:   eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no
17692: 
17693: fi
17694: rm -f core conftest.err conftest.$ac_objext \
17695:     conftest$ac_exeext conftest.$ac_ext
17696: 	LIBS="$SUDO_CHECK_LIB_OLIBS"
17697: 
17698: fi
17699: 
17700:     if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then
17701: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17702: $as_echo "yes" >&6; }
17703: 	NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17704:     else
17705: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17706: $as_echo "no" >&6; }
17707: 
17708:     fi
17709: 
17710: 	done
17711: 
17712: fi
17713: 
17714: 
17715: fi
17716: 
17717: ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17718: if test "x$ac_cv_func_syslog" = xyes; then :
17719: 
17720: else
17721: 
17722:     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17723: 	_libs=
17724: 	for lib in $libs; do
17725: 	    case "$NET_LIBS" in
17726: 		*"$lib"*)   ;;
17727: 		*)	    _libs="$_libs $lib";;
17728: 	    esac
17729: 	done
17730: 	libs="${_libs# }"
17731: 	test -z "$libs" && continue
17732: 	lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17733: 	extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17734: 
17735:     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ 	*//g' -e 's/-l/_/g'`
17736:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
17737: $as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
17738:     if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17739:   $as_echo_n "(cached) " >&6
17740: else
17741: 
17742: 	SUDO_CHECK_LIB_OLIBS="$LIBS"
17743: 	LIBS="$LIBS -l$lib${5+ }$extralibs"
17744: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745: /* end confdefs.h.  */
17746: 
17747: /* Override any GCC internal prototype to avoid an error.
17748:    Use char because int might match the return type of a GCC
17749:    builtin and then its argument prototype would still apply.  */
17750: #ifdef __cplusplus
17751: extern "C"
17752: #endif
17753: char syslog ();
17754: int
17755: main ()
17756: {
17757: return syslog ();
17758:   ;
17759:   return 0;
17760: }
17761: _ACEOF
17762: if ac_fn_c_try_link "$LINENO"; then :
17763:   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
17764: else
17765:   eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
17766: 
17767: fi
17768: rm -f core conftest.err conftest.$ac_objext \
17769:     conftest$ac_exeext conftest.$ac_ext
17770: 	LIBS="$SUDO_CHECK_LIB_OLIBS"
17771: 
17772: fi
17773: 
17774:     if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
17775: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17776: $as_echo "yes" >&6; }
17777: 	NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
17778:     else
17779: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17780: $as_echo "no" >&6; }
17781: 
17782:     fi
17783: 
17784:     done
17785: 
17786: fi
17787: 
17788: for ac_func in getaddrinfo
17789: do :
17790:   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17791: if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17792:   cat >>confdefs.h <<_ACEOF
17793: #define HAVE_GETADDRINFO 1
17794: _ACEOF
17795: 
17796: else
17797: 
17798:     found=no
17799:     for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
17800: 	_libs=
17801: 	for lib in $libs; do
17802: 	    case "$NET_LIBS" in
17803: 		*"$lib"*)   ;;
17804: 		*)	    _libs="$_libs $lib";;
17805: 	    esac
17806: 	done
17807: 	libs="${_libs# }"
17808: 	test -z "$libs" && continue
17809: 	lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
17810: 	extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
17811: 
17812:     _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ 	*//g' -e 's/-l/_/g'`
17813:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib${5+ }$extralibs" >&5
17814: $as_echo_n "checking for getaddrinfo in -l$lib${5+ }$extralibs... " >&6; }
17815:     if { as_var=sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
17816:   $as_echo_n "(cached) " >&6
17817: else
17818: 
17819: 	SUDO_CHECK_LIB_OLIBS="$LIBS"
17820: 	LIBS="$LIBS -l$lib${5+ }$extralibs"
17821: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822: /* end confdefs.h.  */
17823: 
17824: /* Override any GCC internal prototype to avoid an error.
17825:    Use char because int might match the return type of a GCC
17826:    builtin and then its argument prototype would still apply.  */
17827: #ifdef __cplusplus
17828: extern "C"
17829: #endif
17830: char getaddrinfo ();
17831: int
17832: main ()
17833: {
17834: return getaddrinfo ();
17835:   ;
17836:   return 0;
17837: }
17838: _ACEOF
17839: if ac_fn_c_try_link "$LINENO"; then :
17840:   eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=yes
17841: else
17842:   eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=no
17843: 
17844: fi
17845: rm -f core conftest.err conftest.$ac_objext \
17846:     conftest$ac_exeext conftest.$ac_ext
17847: 	LIBS="$SUDO_CHECK_LIB_OLIBS"
17848: 
17849: fi
17850: 
17851:     if eval test \$sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras = "yes"; then
17852: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17853: $as_echo "yes" >&6; }
17854: 	NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; found=yes; break
17855:     else
17856: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17857: $as_echo "no" >&6; }
17858: 
17859:     fi
17860: 
17861:     done
17862:     if test X"$found" != X"no"; then
17863: 	$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17864: 
17865:     fi
17866: 
17867: fi
17868: done
17869: 
17870: for ac_func in getprogname
17871: do :
17872:   ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17873: if test "x$ac_cv_func_getprogname" = xyes; then :
17874:   cat >>confdefs.h <<_ACEOF
17875: #define HAVE_GETPROGNAME 1
17876: _ACEOF
17877: 
17878: else
17879: 
17880:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
17881: $as_echo_n "checking for __progname... " >&6; }
17882:     if ${sudo_cv___progname+:} false; then :
17883:   $as_echo_n "(cached) " >&6
17884: else
17885: 
17886:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887: /* end confdefs.h.  */
17888: 
17889: int
17890: main ()
17891: {
17892: extern char *__progname; (void)puts(__progname);
17893:   ;
17894:   return 0;
17895: }
17896: _ACEOF
17897: if ac_fn_c_try_link "$LINENO"; then :
17898:   sudo_cv___progname=yes
17899: else
17900:   sudo_cv___progname=no
17901: fi
17902: rm -f core conftest.err conftest.$ac_objext \
17903:     conftest$ac_exeext conftest.$ac_ext
17904: fi
17905: 
17906:     if test "$sudo_cv___progname" = "yes"; then
17907: 	$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17908: 
17909:     else
17910: 	case " $LIBOBJS " in
17911:   *" getprogname.$ac_objext "* ) ;;
17912:   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
17913:  ;;
17914: esac
17915: 
17916:     fi
17917:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
17918: $as_echo "$sudo_cv___progname" >&6; }
17919: 
17920: fi
17921: done
17922: 
17923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
17924: $as_echo_n "checking for __func__... " >&6; }
17925: if ${sudo_cv___func__+:} false; then :
17926:   $as_echo_n "(cached) " >&6
17927: else
17928: 
17929: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930: /* end confdefs.h.  */
17931: 
17932: int
17933: main ()
17934: {
17935: (void)puts(__func__);
17936:   ;
17937:   return 0;
17938: }
17939: _ACEOF
17940: if ac_fn_c_try_link "$LINENO"; then :
17941:   sudo_cv___func__=yes
17942: else
17943:   sudo_cv___func__=no
17944: fi
17945: rm -f core conftest.err conftest.$ac_objext \
17946:     conftest$ac_exeext conftest.$ac_ext
17947: fi
17948: 
17949: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
17950: $as_echo "$sudo_cv___func__" >&6; }
17951: if test "$sudo_cv___func__" = "yes"; then
17952:     $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17953: 
17954: elif test -n "$GCC"; then
17955:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
17956: $as_echo_n "checking for __FUNCTION__... " >&6; }
17957:     if ${sudo_cv___FUNCTION__+:} false; then :
17958:   $as_echo_n "(cached) " >&6
17959: else
17960: 
17961:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17962: /* end confdefs.h.  */
17963: 
17964: int
17965: main ()
17966: {
17967: (void)puts(__FUNCTION__);
17968:   ;
17969:   return 0;
17970: }
17971: _ACEOF
17972: if ac_fn_c_try_link "$LINENO"; then :
17973:   sudo_cv___FUNCTION__=yes
17974: else
17975:   sudo_cv___FUNCTION__=no
17976: fi
17977: rm -f core conftest.err conftest.$ac_objext \
17978:     conftest$ac_exeext conftest.$ac_ext
17979: fi
17980: 
17981:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
17982: $as_echo "$sudo_cv___FUNCTION__" >&6; }
17983:     if test "$sudo_cv___FUNCTION__" = "yes"; then
17984: 	$as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
17985: 
17986: 
17987: $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
17988: 
17989:     fi
17990: fi
17991: 
17992: # gettext() and friends may be located in libc (Linux and Solaris)
17993: # or in libintl.  However, it is possible to have libintl installed
17994: # even when gettext() is present in libc.  In the case of GNU libintl,
17995: # gettext() will be defined to gettext_libintl in libintl.h.
17996: # Since gcc prefers /usr/local/include to /usr/include, we need to
17997: # make sure we use the gettext() that matches the include file.
17998: if test "$enable_nls" != "no"; then
17999:     if test "$enable_nls" != "yes"; then
18000: 	CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
18001: 
18002:     if test X"$with_rpath" = X"yes"; then
18003: 	case "$host" in
18004: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,+b,$enable_nls/lib"
18005: 			;;
18006: 	    *)		LDFLAGS="${LDFLAGS} -L$enable_nls/lib -Wl,-R$enable_nls/lib"
18007: 			;;
18008: 	esac
18009:     else
18010: 	LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
18011:     fi
18012:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18013: 	blibpath_add="${blibpath_add}:$enable_nls/lib"
18014:     fi
18015: 
18016:     fi
18017:     OLIBS="$LIBS"
18018:     for l in "libc" "-lintl" "-lintl -liconv"; do
18019: 	if test "$l" = "libc"; then
18020: 	    # If user specified a dir for libintl ignore libc
18021: 	    if test "$enable_nls" != "yes"; then
18022: 		continue
18023: 	    fi
18024: 	    gettext_name=sudo_cv_gettext
18025: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
18026: $as_echo_n "checking for gettext... " >&6; }
18027: 	else
18028: 	    LIBS="$OLIBS $l"
18029: 	    gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
18030: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
18031: $as_echo_n "checking for gettext in $l... " >&6; }
18032: 	fi
18033: 	if eval \${$gettext_name+:} false; then :
18034:   $as_echo_n "(cached) " >&6
18035: else
18036: 
18037: 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18038: /* end confdefs.h.  */
18039: 
18040: 			#include <libintl.h>
18041: int
18042: main ()
18043: {
18044: (void)gettext((char *)0);
18045:   ;
18046:   return 0;
18047: }
18048: 
18049: _ACEOF
18050: if ac_fn_c_try_link "$LINENO"; then :
18051:   eval $gettext_name=yes
18052: else
18053:   eval $gettext_name=no
18054: 
18055: fi
18056: rm -f core conftest.err conftest.$ac_objext \
18057:     conftest$ac_exeext conftest.$ac_ext
18058: 
18059: fi
18060: 
18061: 	eval gettext_result="\$$gettext_name"
18062: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
18063: $as_echo "$gettext_result" >&6; }
18064: 	if test "$gettext_result" = "yes"; then
18065: 	    for ac_func in ngettext
18066: do :
18067:   ac_fn_c_check_func "$LINENO" "ngettext" "ac_cv_func_ngettext"
18068: if test "x$ac_cv_func_ngettext" = xyes; then :
18069:   cat >>confdefs.h <<_ACEOF
18070: #define HAVE_NGETTEXT 1
18071: _ACEOF
18072: 
18073: fi
18074: done
18075: 
18076: 	    break
18077: 	fi
18078:     done
18079:     LIBS="$OLIBS"
18080: 
18081:     if test "$sudo_cv_gettext" = "yes"; then
18082: 	$as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18083: 
18084: 	SUDO_NLS=enabled
18085:     elif test "$sudo_cv_gettext_lintl" = "yes"; then
18086: 	$as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18087: 
18088: 	SUDO_NLS=enabled
18089: 	LIBINTL="-lintl"
18090:     elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
18091: 	$as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18092: 
18093: 	SUDO_NLS=enabled
18094: 	LIBINTL="-lintl -liconv"
18095:     fi
18096: fi
18097: 
18098: case "$enable_zlib" in
18099:     yes)
18100: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18101: $as_echo_n "checking for gzdopen in -lz... " >&6; }
18102: if ${ac_cv_lib_z_gzdopen+:} false; then :
18103:   $as_echo_n "(cached) " >&6
18104: else
18105:   ac_check_lib_save_LIBS=$LIBS
18106: LIBS="-lz  $LIBS"
18107: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108: /* end confdefs.h.  */
18109: 
18110: /* Override any GCC internal prototype to avoid an error.
18111:    Use char because int might match the return type of a GCC
18112:    builtin and then its argument prototype would still apply.  */
18113: #ifdef __cplusplus
18114: extern "C"
18115: #endif
18116: char gzdopen ();
18117: int
18118: main ()
18119: {
18120: return gzdopen ();
18121:   ;
18122:   return 0;
18123: }
18124: _ACEOF
18125: if ac_fn_c_try_link "$LINENO"; then :
18126:   ac_cv_lib_z_gzdopen=yes
18127: else
18128:   ac_cv_lib_z_gzdopen=no
18129: fi
18130: rm -f core conftest.err conftest.$ac_objext \
18131:     conftest$ac_exeext conftest.$ac_ext
18132: LIBS=$ac_check_lib_save_LIBS
18133: fi
18134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18135: $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18136: if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
18137: 
18138: 	    for ac_header in zlib.h
18139: do :
18140:   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18141: if test "x$ac_cv_header_zlib_h" = xyes; then :
18142:   cat >>confdefs.h <<_ACEOF
18143: #define HAVE_ZLIB_H 1
18144: _ACEOF
18145:  ZLIB="-lz"
18146: else
18147:   enable_zlib=builtin
18148: fi
18149: 
18150: done
18151: 
18152: 
18153: fi
18154: 
18155: 	;;
18156:     no)
18157: 	;;
18158:     system)
18159: 	$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18160: 
18161: 	ZLIB="-lz"
18162: 	;;
18163:     builtin)
18164: 	# handled below
18165: 	;;
18166:     *)
18167: 	$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18168: 
18169: 	CPPFLAGS="-I${enable_zlib}/include ${CPPFLAGS}"
18170: 
18171:     if test X"$with_rpath" = X"yes"; then
18172: 	case "$host" in
18173: 	    *-*-hpux*)	ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib"
18174: 			;;
18175: 	    *)		ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib"
18176: 			;;
18177: 	esac
18178:     else
18179: 	ZLIB="${ZLIB} -L$enable_zlib/lib"
18180:     fi
18181:     if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then
18182: 	blibpath_add="${blibpath_add}:$enable_zlib/lib"
18183:     fi
18184: 
18185: 	ZLIB="${ZLIB} -lz"
18186: 	;;
18187: esac
18188: if test X"$enable_zlib" = X"builtin"; then
18189:     $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18190: 
18191:     CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
18192:     ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
18193:     ZLIB_SRC=zlib
18194:     ac_config_headers="$ac_config_headers zlib/zconf.h"
18195: 
18196:     ac_config_files="$ac_config_files zlib/Makefile"
18197: 
18198: fi
18199: 
18200: ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
18201: $ac_includes_default
18202: #include <errno.h>
18203: 
18204: "
18205: if test "x$ac_cv_have_decl_errno" = xyes; then :
18206:   ac_have_decl=1
18207: else
18208:   ac_have_decl=0
18209: fi
18210: 
18211: cat >>confdefs.h <<_ACEOF
18212: #define HAVE_DECL_ERRNO $ac_have_decl
18213: _ACEOF
18214: 
18215: 
18216: ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
18217: $ac_includes_default
18218: #include <netdb.h>
18219: 
18220: "
18221: if test "x$ac_cv_have_decl_h_errno" = xyes; then :
18222:   ac_have_decl=1
18223: else
18224:   ac_have_decl=0
18225: fi
18226: 
18227: cat >>confdefs.h <<_ACEOF
18228: #define HAVE_DECL_H_ERRNO $ac_have_decl
18229: _ACEOF
18230: 
18231: 
18232: for ac_func in strsignal
18233: do :
18234:   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
18235: if test "x$ac_cv_func_strsignal" = xyes; then :
18236:   cat >>confdefs.h <<_ACEOF
18237: #define HAVE_STRSIGNAL 1
18238: _ACEOF
18239: 
18240: else
18241: 
18242:     case " $LIBOBJS " in
18243:   *" strsignal.$ac_objext "* ) ;;
18244:   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
18245:  ;;
18246: esac
18247: 
18248:     HAVE_SIGLIST="false"
18249:     ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
18250: $ac_includes_default
18251: #include <signal.h>
18252: 
18253: "
18254: if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
18255:   ac_have_decl=1
18256: else
18257:   ac_have_decl=0
18258: fi
18259: 
18260: cat >>confdefs.h <<_ACEOF
18261: #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
18262: _ACEOF
18263: if test $ac_have_decl = 1; then :
18264: 
18265: 	HAVE_SIGLIST="true"
18266: 	break
18267: 
18268: fi
18269: ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
18270: $ac_includes_default
18271: #include <signal.h>
18272: 
18273: "
18274: if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
18275:   ac_have_decl=1
18276: else
18277:   ac_have_decl=0
18278: fi
18279: 
18280: cat >>confdefs.h <<_ACEOF
18281: #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
18282: _ACEOF
18283: if test $ac_have_decl = 1; then :
18284: 
18285: 	HAVE_SIGLIST="true"
18286: 	break
18287: 
18288: fi
18289: ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
18290: $ac_includes_default
18291: #include <signal.h>
18292: 
18293: "
18294: if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
18295:   ac_have_decl=1
18296: else
18297:   ac_have_decl=0
18298: fi
18299: 
18300: cat >>confdefs.h <<_ACEOF
18301: #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
18302: _ACEOF
18303: if test $ac_have_decl = 1; then :
18304: 
18305: 	HAVE_SIGLIST="true"
18306: 	break
18307: 
18308: fi
18309: 
18310:     if test "$HAVE_SIGLIST" != "true"; then
18311: 	case " $LIBOBJS " in
18312:   *" siglist.$ac_objext "* ) ;;
18313:   *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
18314:  ;;
18315: esac
18316: 
18317:     fi
18318: 
18319: fi
18320: done
18321: 
18322: 
18323: for ac_func in sig2str
18324: do :
18325:   ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
18326: if test "x$ac_cv_func_sig2str" = xyes; then :
18327:   cat >>confdefs.h <<_ACEOF
18328: #define HAVE_SIG2STR 1
18329: _ACEOF
18330: 
18331: else
18332: 
18333:     case " $LIBOBJS " in
18334:   *" sig2str.$ac_objext "* ) ;;
18335:   *) LIBOBJS="$LIBOBJS sig2str.$ac_objext"
18336:  ;;
18337: esac
18338: 
18339:     HAVE_SIGNAME="false"
18340:     ac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "
18341: $ac_includes_default
18342: #include <signal.h>
18343: 
18344: "
18345: if test "x$ac_cv_have_decl_sys_signame" = xyes; then :
18346:   ac_have_decl=1
18347: else
18348:   ac_have_decl=0
18349: fi
18350: 
18351: cat >>confdefs.h <<_ACEOF
18352: #define HAVE_DECL_SYS_SIGNAME $ac_have_decl
18353: _ACEOF
18354: if test $ac_have_decl = 1; then :
18355: 
18356: 	HAVE_SIGNAME="true"
18357: 	break
18358: 
18359: fi
18360: ac_fn_c_check_decl "$LINENO" "_sys_signame" "ac_cv_have_decl__sys_signame" "
18361: $ac_includes_default
18362: #include <signal.h>
18363: 
18364: "
18365: if test "x$ac_cv_have_decl__sys_signame" = xyes; then :
18366:   ac_have_decl=1
18367: else
18368:   ac_have_decl=0
18369: fi
18370: 
18371: cat >>confdefs.h <<_ACEOF
18372: #define HAVE_DECL__SYS_SIGNAME $ac_have_decl
18373: _ACEOF
18374: if test $ac_have_decl = 1; then :
18375: 
18376: 	HAVE_SIGNAME="true"
18377: 	break
18378: 
18379: fi
18380: ac_fn_c_check_decl "$LINENO" "__sys_signame" "ac_cv_have_decl___sys_signame" "
18381: $ac_includes_default
18382: #include <signal.h>
18383: 
18384: "
18385: if test "x$ac_cv_have_decl___sys_signame" = xyes; then :
18386:   ac_have_decl=1
18387: else
18388:   ac_have_decl=0
18389: fi
18390: 
18391: cat >>confdefs.h <<_ACEOF
18392: #define HAVE_DECL___SYS_SIGNAME $ac_have_decl
18393: _ACEOF
18394: if test $ac_have_decl = 1; then :
18395: 
18396: 	HAVE_SIGNAME="true"
18397: 	break
18398: 
18399: fi
18400: ac_fn_c_check_decl "$LINENO" "sys_sigabbrev" "ac_cv_have_decl_sys_sigabbrev" "
18401: $ac_includes_default
18402: #include <signal.h>
18403: 
18404: "
18405: if test "x$ac_cv_have_decl_sys_sigabbrev" = xyes; then :
18406:   ac_have_decl=1
18407: else
18408:   ac_have_decl=0
18409: fi
18410: 
18411: cat >>confdefs.h <<_ACEOF
18412: #define HAVE_DECL_SYS_SIGABBREV $ac_have_decl
18413: _ACEOF
18414: if test $ac_have_decl = 1; then :
18415: 
18416: 	HAVE_SIGNAME="true"
18417: 	break
18418: 
18419: fi
18420: 
18421:     if test "$HAVE_SIGNAME" != "true"; then
18422: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for undeclared sys_sigabbrev" >&5
18423: $as_echo_n "checking for undeclared sys_sigabbrev... " >&6; }
18424: if ${sudo_cv_var_sys_sigabbrev+:} false; then :
18425:   $as_echo_n "(cached) " >&6
18426: else
18427:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18428: /* end confdefs.h.  */
18429: extern char **sys_sigabbrev;
18430: int
18431: main ()
18432: {
18433: return sys_sigabbrev[1];
18434:   ;
18435:   return 0;
18436: }
18437: _ACEOF
18438: if ac_fn_c_try_link "$LINENO"; then :
18439:   sudo_cv_var_sys_sigabbrev=yes
18440: else
18441:   sudo_cv_var_sys_sigabbrev=no
18442: 
18443: fi
18444: rm -f core conftest.err conftest.$ac_objext \
18445:     conftest$ac_exeext conftest.$ac_ext
18446: 
18447: 
18448: fi
18449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_sys_sigabbrev" >&5
18450: $as_echo "$sudo_cv_var_sys_sigabbrev" >&6; }
18451: 	if test "$sudo_cv_var_sys_sigabbrev" = yes; then
18452: 	    $as_echo "#define HAVE_SYS_SIGABBREV 1" >>confdefs.h
18453: 
18454: 	else
18455: 	    case " $LIBOBJS " in
18456:   *" signame.$ac_objext "* ) ;;
18457:   *) LIBOBJS="$LIBOBJS signame.$ac_objext"
18458:  ;;
18459: esac
18460: 
18461: 	fi
18462:     fi
18463: 
18464: fi
18465: done
18466: 
18467: 
18468: if test ${with_netsvc-"no"} != "no"; then
18469:     cat >>confdefs.h <<EOF
18470: #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
18471: EOF
18472: 
18473:     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
18474: elif test ${with_nsswitch-"yes"} != "no"; then
18475:     cat >>confdefs.h <<EOF
18476: #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
18477: EOF
18478: 
18479:     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
18480: fi
18481: 
18482: 
18483: if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
18484:     for auth in $AUTH_EXCL_DEF; do
18485: 	case $auth in
18486: 	    AIX_AUTH)	with_aixauth=maybe;;
18487: 	    BSD_AUTH)	with_bsdauth=maybe;;
18488: 	    PAM)	with_pam=maybe;;
18489: 	    SIA)	CHECKSIA=true;;
18490: 	esac
18491:     done
18492: fi
18493: 
18494: if test ${with_pam-"no"} != "no"; then
18495:     #
18496:     # Check for pam_start() in libpam first, then for pam_appl.h.
18497:     #
18498:     found_pam_lib=no
18499:     as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
18500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18501: $as_echo_n "checking for pam_start in -lpam... " >&6; }
18502: if eval \${$as_ac_Lib+:} false; then :
18503:   $as_echo_n "(cached) " >&6
18504: else
18505:   ac_check_lib_save_LIBS=$LIBS
18506: LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
18507: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18508: /* end confdefs.h.  */
18509: 
18510: /* Override any GCC internal prototype to avoid an error.
18511:    Use char because int might match the return type of a GCC
18512:    builtin and then its argument prototype would still apply.  */
18513: #ifdef __cplusplus
18514: extern "C"
18515: #endif
18516: char pam_start ();
18517: int
18518: main ()
18519: {
18520: return pam_start ();
18521:   ;
18522:   return 0;
18523: }
18524: _ACEOF
18525: if ac_fn_c_try_link "$LINENO"; then :
18526:   eval "$as_ac_Lib=yes"
18527: else
18528:   eval "$as_ac_Lib=no"
18529: fi
18530: rm -f core conftest.err conftest.$ac_objext \
18531:     conftest$ac_exeext conftest.$ac_ext
18532: LIBS=$ac_check_lib_save_LIBS
18533: fi
18534: eval ac_res=\$$as_ac_Lib
18535: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18536: $as_echo "$ac_res" >&6; }
18537: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18538:   found_pam_lib=yes
18539: fi
18540: 
18541:     #
18542:     # Some PAM implementations (MacOS X for example) put the PAM headers
18543:     # in /usr/include/pam instead of /usr/include/security...
18544:     #
18545:     found_pam_hdrs=no
18546:     for ac_header in security/pam_appl.h pam/pam_appl.h
18547: do :
18548:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18549: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18550: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18551:   cat >>confdefs.h <<_ACEOF
18552: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18553: _ACEOF
18554:  found_pam_hdrs=yes; break
18555: fi
18556: 
18557: done
18558: 
18559:     if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
18560: 	# Found both PAM libs and headers
18561: 	with_pam=yes
18562:     elif test "$with_pam" = "yes"; then
18563: 	if test "$found_pam_lib" = "no"; then
18564: 	    as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
18565: 	fi
18566: 	if test "$found_pam_hdrs" = "no"; then
18567: 	    as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
18568: 	fi
18569:     elif test "$found_pam_lib" != "$found_pam_hdrs"; then
18570: 	if test "$found_pam_lib" = "no"; then
18571: 	    as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
18572: 	fi
18573: 	if test "$found_pam_hdrs" = "no"; then
18574: 	    as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
18575: 	fi
18576:     fi
18577: 
18578:     if test "$with_pam" = "yes"; then
18579: 	# Older PAM implementations lack pam_getenvlist
18580: 	OLIBS="$LIBS"
18581: 	LIBS="$LIBS -lpam $lt_cv_dlopen_libs"
18582: 	for ac_func in pam_getenvlist
18583: do :
18584:   ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
18585: if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
18586:   cat >>confdefs.h <<_ACEOF
18587: #define HAVE_PAM_GETENVLIST 1
18588: _ACEOF
18589: 
18590: fi
18591: done
18592: 
18593: 	LIBS="$OLIBS"
18594: 
18595: 	# We already link with -ldl if needed (see LIBDL below)
18596: 	SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
18597: 	$as_echo "#define HAVE_PAM 1" >>confdefs.h
18598: 
18599: 	AUTH_OBJS="$AUTH_OBJS pam.lo";
18600: 	AUTH_EXCL=PAM
18601: 
18602: 
18603: # Check whether --with-pam-login was given.
18604: if test "${with_pam_login+set}" = set; then :
18605:   withval=$with_pam_login; case $with_pam_login in
18606: 	    yes)	$as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
18607: 
18608: 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
18609: $as_echo_n "checking whether to use PAM login... " >&6; }
18610: 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18611: $as_echo "yes" >&6; }
18612: 			;;
18613: 	    no)		;;
18614: 	    *)		as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
18615: 			;;
18616: 	esac
18617: fi
18618: 
18619: 
18620: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
18621: $as_echo_n "checking whether to use PAM session support... " >&6; }
18622: 	# Check whether --enable-pam_session was given.
18623: if test "${enable_pam_session+set}" = set; then :
18624:   enableval=$enable_pam_session;  case "$enableval" in
18625: 		yes)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18626: $as_echo "yes" >&6; }
18627: 			;;
18628: 		no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18629: $as_echo "no" >&6; }
18630: 			    $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
18631: 
18632: 			    ;;
18633: 		*)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18634: $as_echo "no" >&6; }
18635: 			    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
18636: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
18637: 			    ;;
18638: 	    esac
18639: else
18640:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18641: $as_echo "yes" >&6; }
18642: fi
18643: 
18644:     fi
18645: fi
18646: 
18647: if test ${with_aixauth-'no'} != "no"; then
18648:     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
18649: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
18650: $as_echo "$as_me: using AIX general authentication" >&6;}
18651: 	$as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
18652: 
18653: 	AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
18654: 	SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
18655: 	AUTH_EXCL=AIX_AUTH
18656:     fi
18657: fi
18658: 
18659: if test ${with_bsdauth-'no'} != "no"; then
18660:     ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
18661: if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
18662:   $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
18663: 
18664: 	AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
18665: 	BSDAUTH_USAGE='[-a auth_type] '
18666: 	AUTH_EXCL=BSD_AUTH; BAMAN=1
18667: else
18668:   as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
18669: fi
18670: 
18671: 
18672: fi
18673: 
18674: if test ${CHECKSIA-'false'} = "true"; then
18675:     for ac_func in sia_ses_init
18676: do :
18677:   ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
18678: if test "x$ac_cv_func_sia_ses_init" = xyes; then :
18679:   cat >>confdefs.h <<_ACEOF
18680: #define HAVE_SIA_SES_INIT 1
18681: _ACEOF
18682:  found=true
18683: else
18684:   found=false
18685: fi
18686: done
18687: 
18688:     if test "$found" = "true"; then
18689: 	AUTH_EXCL=SIA
18690: 	AUTH_OBJS="$AUTH_OBJS sia.lo"
18691:     fi
18692: fi
18693: 
18694: if test ${with_fwtk-'no'} != "no"; then
18695:     if test "$with_fwtk" != "yes"; then
18696: 
18697:     if test X"$with_rpath" = X"yes"; then
18698: 	case "$host" in
18699: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}"
18700: 			;;
18701: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}"
18702: 			;;
18703: 	esac
18704:     else
18705: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
18706:     fi
18707:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18708: 	blibpath_add="${blibpath_add}:${with_fwtk}"
18709:     fi
18710: 
18711: 	CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
18712: 	with_fwtk=yes
18713:     fi
18714:     SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
18715:     AUTH_OBJS="$AUTH_OBJS fwtk.lo"
18716: fi
18717: 
18718: if test ${with_SecurID-'no'} != "no"; then
18719:     if test "$with_SecurID" != "yes"; then
18720: 	:
18721:     elif test -d /usr/ace/examples; then
18722: 	with_SecurID=/usr/ace/examples
18723:     else
18724: 	with_SecurID=/usr/ace
18725:     fi
18726:     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
18727: 
18728:     if test X"$with_rpath" = X"yes"; then
18729: 	case "$host" in
18730: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}"
18731: 			;;
18732: 	    *)		LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}"
18733: 			;;
18734: 	esac
18735:     else
18736: 	LDFLAGS="${LDFLAGS} -L${with_SecurID}"
18737:     fi
18738:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
18739: 	blibpath_add="${blibpath_add}:${with_SecurID}"
18740:     fi
18741: 
18742:     SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
18743:     AUTH_OBJS="$AUTH_OBJS securid5.lo";
18744: fi
18745: 
18746: 
18747: if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
18748:     for auth in $AUTH_DEF; do
18749: 	case $auth in
18750: 	    passwd)	: ${with_passwd='maybe'};;
18751: 	esac
18752:     done
18753: fi
18754: 
18755: if test ${with_kerb5-'no'} != "no"; then
18756:     # Extract the first word of "krb5-config", so it can be a program name with args.
18757: set dummy krb5-config; ac_word=$2
18758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18759: $as_echo_n "checking for $ac_word... " >&6; }
18760: if ${ac_cv_prog_KRB5CONFIG+:} false; then :
18761:   $as_echo_n "(cached) " >&6
18762: else
18763:   if test -n "$KRB5CONFIG"; then
18764:   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
18765: else
18766: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18767: for as_dir in $PATH
18768: do
18769:   IFS=$as_save_IFS
18770:   test -z "$as_dir" && as_dir=.
18771:     for ac_exec_ext in '' $ac_executable_extensions; do
18772:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18773:     ac_cv_prog_KRB5CONFIG="yes"
18774:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18775:     break 2
18776:   fi
18777: done
18778:   done
18779: IFS=$as_save_IFS
18780: 
18781:   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
18782: fi
18783: fi
18784: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
18785: if test -n "$KRB5CONFIG"; then
18786:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
18787: $as_echo "$KRB5CONFIG" >&6; }
18788: else
18789:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18790: $as_echo "no" >&6; }
18791: fi
18792: 
18793: 
18794:     if test -n "$KRB5CONFIG"; then
18795: 	$as_echo "#define HAVE_KERB5 1" >>confdefs.h
18796: 
18797: 	AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18798: 	CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
18799: 	SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
18800: 				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18801: $as_echo_n "checking whether we are using Heimdal... " >&6; }
18802: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803: /* end confdefs.h.  */
18804: #include <krb5.h>
18805: int
18806: main ()
18807: {
18808: const char *tmp = heimdal_version;
18809:   ;
18810:   return 0;
18811: }
18812: _ACEOF
18813: if ac_fn_c_try_compile "$LINENO"; then :
18814: 
18815: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18816: $as_echo "yes" >&6; }
18817: 		$as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18818: 
18819: 
18820: else
18821: 
18822: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18823: $as_echo "no" >&6; }
18824: 
18825: 
18826: fi
18827: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828:     else
18829: 	$as_echo "#define HAVE_KERB5 1" >>confdefs.h
18830: 
18831: 				if test "$with_kerb5" = "yes"; then
18832: 	    found=no
18833: 	    O_CPPFLAGS="$CPPFLAGS"
18834: 	    for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
18835: 		CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
18836: 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18837: /* end confdefs.h.  */
18838: #include <krb5.h>
18839: int
18840: main ()
18841: {
18842: 
18843:   ;
18844:   return 0;
18845: }
18846: _ACEOF
18847: if ac_fn_c_try_cpp "$LINENO"; then :
18848:   found=yes; break
18849: fi
18850: rm -f conftest.err conftest.i conftest.$ac_ext
18851: 	    done
18852: 	    if test X"$found" = X"no"; then
18853: 		CPPFLAGS="$O_CPPFLAGS"
18854: 		{ $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
18855: $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;}
18856: 	    fi
18857: 	else
18858: 
18859:     if test X"$with_rpath" = X"yes"; then
18860: 	case "$host" in
18861: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib"
18862: 			;;
18863: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib"
18864: 			;;
18865: 	esac
18866:     else
18867: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
18868:     fi
18869:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
18870: 	blibpath_add="${blibpath_add}:${with_kerb5}/lib"
18871:     fi
18872: 
18873: 	    CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
18874: 	fi
18875: 
18876: 				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
18877: $as_echo_n "checking whether we are using Heimdal... " >&6; }
18878: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879: /* end confdefs.h.  */
18880: #include <krb5.h>
18881: int
18882: main ()
18883: {
18884: const char *tmp = heimdal_version;
18885:   ;
18886:   return 0;
18887: }
18888: _ACEOF
18889: if ac_fn_c_try_compile "$LINENO"; then :
18890: 
18891: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18892: $as_echo "yes" >&6; }
18893: 		$as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18894: 
18895: 		# XXX - need to check whether -lcrypo is needed!
18896: 		SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
18897: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
18898: $as_echo_n "checking for main in -lroken... " >&6; }
18899: if ${ac_cv_lib_roken_main+:} false; then :
18900:   $as_echo_n "(cached) " >&6
18901: else
18902:   ac_check_lib_save_LIBS=$LIBS
18903: LIBS="-lroken  $LIBS"
18904: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905: /* end confdefs.h.  */
18906: 
18907: 
18908: int
18909: main ()
18910: {
18911: return main ();
18912:   ;
18913:   return 0;
18914: }
18915: _ACEOF
18916: if ac_fn_c_try_link "$LINENO"; then :
18917:   ac_cv_lib_roken_main=yes
18918: else
18919:   ac_cv_lib_roken_main=no
18920: fi
18921: rm -f core conftest.err conftest.$ac_objext \
18922:     conftest$ac_exeext conftest.$ac_ext
18923: LIBS=$ac_check_lib_save_LIBS
18924: fi
18925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
18926: $as_echo "$ac_cv_lib_roken_main" >&6; }
18927: if test "x$ac_cv_lib_roken_main" = xyes; then :
18928:   SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
18929: fi
18930: 
18931: 
18932: else
18933: 
18934: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18935: $as_echo "no" >&6; }
18936: 		SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
18937: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
18938: $as_echo_n "checking for main in -lkrb5support... " >&6; }
18939: if ${ac_cv_lib_krb5support_main+:} false; then :
18940:   $as_echo_n "(cached) " >&6
18941: else
18942:   ac_check_lib_save_LIBS=$LIBS
18943: LIBS="-lkrb5support  $LIBS"
18944: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18945: /* end confdefs.h.  */
18946: 
18947: 
18948: int
18949: main ()
18950: {
18951: return main ();
18952:   ;
18953:   return 0;
18954: }
18955: _ACEOF
18956: if ac_fn_c_try_link "$LINENO"; then :
18957:   ac_cv_lib_krb5support_main=yes
18958: else
18959:   ac_cv_lib_krb5support_main=no
18960: fi
18961: rm -f core conftest.err conftest.$ac_objext \
18962:     conftest$ac_exeext conftest.$ac_ext
18963: LIBS=$ac_check_lib_save_LIBS
18964: fi
18965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
18966: $as_echo "$ac_cv_lib_krb5support_main" >&6; }
18967: if test "x$ac_cv_lib_krb5support_main" = xyes; then :
18968:   SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
18969: fi
18970: 
18971: 
18972: fi
18973: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18974: 	AUTH_OBJS="$AUTH_OBJS kerb5.lo"
18975:     fi
18976:     _LIBS="$LIBS"
18977:     LIBS="${LIBS} ${SUDOERS_LIBS}"
18978:     for ac_func in krb5_verify_user krb5_init_secure_context
18979: do :
18980:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18981: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18982: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18983:   cat >>confdefs.h <<_ACEOF
18984: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18985: _ACEOF
18986: 
18987: fi
18988: done
18989: 
18990:     for ac_func in krb5_get_init_creds_opt_alloc
18991: do :
18992:   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
18993: if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
18994:   cat >>confdefs.h <<_ACEOF
18995: #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
18996: _ACEOF
18997: 
18998: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
18999: $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
19000: if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
19001:   $as_echo_n "(cached) " >&6
19002: else
19003: 
19004: 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19005: /* end confdefs.h.  */
19006: #include <krb5.h>
19007: int
19008: main ()
19009: {
19010: krb5_get_init_creds_opt_free(NULL, NULL);
19011: 
19012:   ;
19013:   return 0;
19014: }
19015: _ACEOF
19016: if ac_fn_c_try_compile "$LINENO"; then :
19017:   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
19018: else
19019:   sudo_cv_krb5_get_init_creds_opt_free_two_args=no
19020: 
19021: fi
19022: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023: 
19024: 
19025: fi
19026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
19027: $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
19028: 
19029: fi
19030: done
19031: 
19032:     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
19033:   	$as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
19034: 
19035:     fi
19036:     LIBS="$_LIBS"
19037:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
19038: $as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
19039:     # Check whether --enable-kerb5-instance was given.
19040: if test "${enable_kerb5_instance+set}" = set; then :
19041:   enableval=$enable_kerb5_instance;  case "$enableval" in
19042: 	    yes)	as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
19043: 			;;
19044: 	    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19045: $as_echo "no" >&6; }
19046: 			;;
19047: 	    *)		cat >>confdefs.h <<EOF
19048: #define SUDO_KRB5_INSTANCE "$enableval"
19049: EOF
19050: 
19051: 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
19052: $as_echo "$enableval" >&6; }
19053: 			;;
19054: 	esac
19055: else
19056:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19057: $as_echo "no" >&6; }
19058: fi
19059: 
19060: fi
19061: 
19062: if test ${with_AFS-'no'} = "yes"; then
19063: 
19064:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
19065:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
19066:     for i in $AFSLIBDIRS; do
19067: 	if test -d ${i}; then
19068: 
19069:     if test X"$with_rpath" = X"yes"; then
19070: 	case "$host" in
19071: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,+b,$i"
19072: 			;;
19073: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i -Wl,-R$i"
19074: 			;;
19075: 	esac
19076:     else
19077: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
19078:     fi
19079:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19080: 	blibpath_add="${blibpath_add}:$i"
19081:     fi
19082: 
19083: 	    FOUND_AFSLIBDIR=true
19084: 	fi
19085:     done
19086:     if test -z "$FOUND_AFSLIBDIR"; then
19087: 	{ $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
19088: $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;}
19089:     fi
19090: 
19091:     # Order is important here.  Note that we build AFS_LIBS from right to left
19092:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
19093:     AFS_LIBS="-laudit ${AFS_LIBS}"
19094:     for i in $AFSLIBDIRS; do
19095: 	if test -f ${i}/util.a; then
19096: 	    AFS_LIBS="${i}/util.a ${AFS_LIBS}"
19097: 	    FOUND_UTIL_A=true
19098: 	    break;
19099: 	fi
19100:     done
19101:     if test -z "$FOUND_UTIL_A"; then
19102: 	AFS_LIBS="-lutil ${AFS_LIBS}"
19103:     fi
19104:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
19105: 
19106:     # AFS includes may live in /usr/include on some machines...
19107:     for i in /usr/afsws/include; do
19108: 	if test -d ${i}; then
19109: 	    CPPFLAGS="${CPPFLAGS} -I${i}"
19110: 	    FOUND_AFSINCDIR=true
19111: 	fi
19112:     done
19113: 
19114:     if test -z "$FOUND_AFSLIBDIR"; then
19115: 	{ $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
19116: $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;}
19117:     fi
19118: 
19119:     AUTH_OBJS="$AUTH_OBJS afs.lo"
19120: fi
19121: 
19122: if test ${with_DCE-'no'} = "yes"; then
19123:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
19124:     SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
19125:     AUTH_OBJS="$AUTH_OBJS dce.lo"
19126: fi
19127: 
19128: if test "${with_skey-'no'}" = "yes"; then
19129:     O_LDFLAGS="$LDFLAGS"
19130:     if test "$with_skey" != "yes"; then
19131: 	CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
19132: 
19133:     if test X"$with_rpath" = X"yes"; then
19134: 	case "$host" in
19135: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
19136: 			;;
19137: 	    *)		LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
19138: 			;;
19139: 	esac
19140:     else
19141: 	LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
19142:     fi
19143:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19144: 	blibpath_add="${blibpath_add}:${with_skey}/lib"
19145:     fi
19146: 
19147: 
19148:     if test X"$with_rpath" = X"yes"; then
19149: 	case "$host" in
19150: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib"
19151: 			;;
19152: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib"
19153: 			;;
19154: 	esac
19155:     else
19156: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
19157:     fi
19158:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19159: 	blibpath_add="${blibpath_add}:${with_skey}/lib"
19160:     fi
19161: 
19162: 	ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19163: "
19164: if test "x$ac_cv_header_skey_h" = xyes; then :
19165:   found=yes
19166: else
19167:   found=no
19168: fi
19169: 
19170: 
19171:     else
19172: 	found=no
19173: 	O_CPPFLAGS="$CPPFLAGS"
19174: 	for dir in "" "/usr/local" "/usr/contrib"; do
19175: 	    test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19176: 	    ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19177: "
19178: if test "x$ac_cv_header_skey_h" = xyes; then :
19179:   found=yes; break
19180: fi
19181: 
19182: 
19183: 	done
19184: 	if test "$found" = "no" -o -z "$dir"; then
19185: 	    CPPFLAGS="$O_CPPFLAGS"
19186: 	else
19187: 
19188:     if test X"$with_rpath" = X"yes"; then
19189: 	case "$host" in
19190: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19191: 			;;
19192: 	    *)		LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19193: 			;;
19194: 	esac
19195:     else
19196: 	LDFLAGS="${LDFLAGS} -L${dir}/lib"
19197:     fi
19198:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19199: 	blibpath_add="${blibpath_add}:${dir}/lib"
19200:     fi
19201: 
19202: 
19203:     if test X"$with_rpath" = X"yes"; then
19204: 	case "$host" in
19205: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19206: 			;;
19207: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19208: 			;;
19209: 	esac
19210:     else
19211: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19212:     fi
19213:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19214: 	blibpath_add="${blibpath_add}:${dir}/lib"
19215:     fi
19216: 
19217: 	fi
19218: 	if test "$found" = "no"; then
19219: 	    { $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
19220: $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;}
19221: 	fi
19222:     fi
19223:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
19224: $as_echo_n "checking for main in -lskey... " >&6; }
19225: if ${ac_cv_lib_skey_main+:} false; then :
19226:   $as_echo_n "(cached) " >&6
19227: else
19228:   ac_check_lib_save_LIBS=$LIBS
19229: LIBS="-lskey  $LIBS"
19230: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231: /* end confdefs.h.  */
19232: 
19233: 
19234: int
19235: main ()
19236: {
19237: return main ();
19238:   ;
19239:   return 0;
19240: }
19241: _ACEOF
19242: if ac_fn_c_try_link "$LINENO"; then :
19243:   ac_cv_lib_skey_main=yes
19244: else
19245:   ac_cv_lib_skey_main=no
19246: fi
19247: rm -f core conftest.err conftest.$ac_objext \
19248:     conftest$ac_exeext conftest.$ac_ext
19249: LIBS=$ac_check_lib_save_LIBS
19250: fi
19251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
19252: $as_echo "$ac_cv_lib_skey_main" >&6; }
19253: if test "x$ac_cv_lib_skey_main" = xyes; then :
19254:   found=yes
19255: else
19256:   { $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
19257: $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;}
19258: fi
19259: 
19260:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
19261: $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
19262: if ${ac_cv_lib_skey_skeyaccess+:} false; then :
19263:   $as_echo_n "(cached) " >&6
19264: else
19265:   ac_check_lib_save_LIBS=$LIBS
19266: LIBS="-lskey  $LIBS"
19267: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268: /* end confdefs.h.  */
19269: 
19270: /* Override any GCC internal prototype to avoid an error.
19271:    Use char because int might match the return type of a GCC
19272:    builtin and then its argument prototype would still apply.  */
19273: #ifdef __cplusplus
19274: extern "C"
19275: #endif
19276: char skeyaccess ();
19277: int
19278: main ()
19279: {
19280: return skeyaccess ();
19281:   ;
19282:   return 0;
19283: }
19284: _ACEOF
19285: if ac_fn_c_try_link "$LINENO"; then :
19286:   ac_cv_lib_skey_skeyaccess=yes
19287: else
19288:   ac_cv_lib_skey_skeyaccess=no
19289: fi
19290: rm -f core conftest.err conftest.$ac_objext \
19291:     conftest$ac_exeext conftest.$ac_ext
19292: LIBS=$ac_check_lib_save_LIBS
19293: fi
19294: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
19295: $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
19296: if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
19297:   $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
19298: 
19299: fi
19300: 
19301: 
19302:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
19303: $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
19304:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305: /* end confdefs.h.  */
19306: #include <stdio.h>
19307: 	    #include <skey.h>
19308: int
19309: main ()
19310: {
19311: skeychallenge(NULL, NULL, NULL, 0);
19312: 
19313:   ;
19314:   return 0;
19315: }
19316: _ACEOF
19317: if ac_fn_c_try_compile "$LINENO"; then :
19318: 
19319: 	    $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
19320: 
19321: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19322: $as_echo "yes" >&6; }
19323: 
19324: else
19325: 
19326: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19327: $as_echo "no" >&6; }
19328: 
19329: 
19330: fi
19331: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19332: 
19333:     LDFLAGS="$O_LDFLAGS"
19334:     SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
19335:     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19336: fi
19337: 
19338: if test "${with_opie-'no'}" = "yes"; then
19339:     O_LDFLAGS="$LDFLAGS"
19340:     if test "$with_opie" != "yes"; then
19341: 	CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
19342: 
19343:     if test X"$with_rpath" = X"yes"; then
19344: 	case "$host" in
19345: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19346: 			;;
19347: 	    *)		LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19348: 			;;
19349: 	esac
19350:     else
19351: 	LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
19352:     fi
19353:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19354: 	blibpath_add="${blibpath_add}:${with_opie}/lib"
19355:     fi
19356: 
19357: 
19358:     if test X"$with_rpath" = X"yes"; then
19359: 	case "$host" in
19360: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib"
19361: 			;;
19362: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib"
19363: 			;;
19364: 	esac
19365:     else
19366: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
19367:     fi
19368:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19369: 	blibpath_add="${blibpath_add}:${with_opie}/lib"
19370:     fi
19371: 
19372: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19373: /* end confdefs.h.  */
19374: #include <opie.h>
19375: int
19376: main ()
19377: {
19378: 
19379:   ;
19380:   return 0;
19381: }
19382: _ACEOF
19383: if ac_fn_c_try_cpp "$LINENO"; then :
19384:   found=yes
19385: else
19386:   found=no
19387: fi
19388: rm -f conftest.err conftest.i conftest.$ac_ext
19389:     else
19390: 	found=no
19391: 	O_CPPFLAGS="$CPPFLAGS"
19392: 	for dir in "" "/usr/local" "/usr/contrib"; do
19393: 	    test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19394: 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19395: /* end confdefs.h.  */
19396: #include <opie.h>
19397: int
19398: main ()
19399: {
19400: 
19401:   ;
19402:   return 0;
19403: }
19404: _ACEOF
19405: if ac_fn_c_try_cpp "$LINENO"; then :
19406:   found=yes; break
19407: fi
19408: rm -f conftest.err conftest.i conftest.$ac_ext
19409: 	done
19410: 	if test "$found" = "no" -o -z "$dir"; then
19411: 	    CPPFLAGS="$O_CPPFLAGS"
19412: 	else
19413: 
19414:     if test X"$with_rpath" = X"yes"; then
19415: 	case "$host" in
19416: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19417: 			;;
19418: 	    *)		LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19419: 			;;
19420: 	esac
19421:     else
19422: 	LDFLAGS="${LDFLAGS} -L${dir}/lib"
19423:     fi
19424:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19425: 	blibpath_add="${blibpath_add}:${dir}/lib"
19426:     fi
19427: 
19428: 
19429:     if test X"$with_rpath" = X"yes"; then
19430: 	case "$host" in
19431: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib"
19432: 			;;
19433: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib"
19434: 			;;
19435: 	esac
19436:     else
19437: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19438:     fi
19439:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19440: 	blibpath_add="${blibpath_add}:${dir}/lib"
19441:     fi
19442: 
19443: 	fi
19444: 	if test "$found" = "no"; then
19445: 	    { $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
19446: $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;}
19447: 	fi
19448:     fi
19449:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
19450: $as_echo_n "checking for main in -lopie... " >&6; }
19451: if ${ac_cv_lib_opie_main+:} false; then :
19452:   $as_echo_n "(cached) " >&6
19453: else
19454:   ac_check_lib_save_LIBS=$LIBS
19455: LIBS="-lopie  $LIBS"
19456: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457: /* end confdefs.h.  */
19458: 
19459: 
19460: int
19461: main ()
19462: {
19463: return main ();
19464:   ;
19465:   return 0;
19466: }
19467: _ACEOF
19468: if ac_fn_c_try_link "$LINENO"; then :
19469:   ac_cv_lib_opie_main=yes
19470: else
19471:   ac_cv_lib_opie_main=no
19472: fi
19473: rm -f core conftest.err conftest.$ac_objext \
19474:     conftest$ac_exeext conftest.$ac_ext
19475: LIBS=$ac_check_lib_save_LIBS
19476: fi
19477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
19478: $as_echo "$ac_cv_lib_opie_main" >&6; }
19479: if test "x$ac_cv_lib_opie_main" = xyes; then :
19480:   found=yes
19481: else
19482:   { $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
19483: $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;}
19484: fi
19485: 
19486:     LDFLAGS="$O_LDFLAGS"
19487:     SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
19488:     AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19489: fi
19490: 
19491: if test ${with_passwd-'no'} != "no"; then
19492:                 if test -z "$LIB_CRYPT"; then
19493: 	_LIBS="$LIBS"
19494: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19495: $as_echo_n "checking for library containing crypt... " >&6; }
19496: if ${ac_cv_search_crypt+:} false; then :
19497:   $as_echo_n "(cached) " >&6
19498: else
19499:   ac_func_search_save_LIBS=$LIBS
19500: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501: /* end confdefs.h.  */
19502: 
19503: /* Override any GCC internal prototype to avoid an error.
19504:    Use char because int might match the return type of a GCC
19505:    builtin and then its argument prototype would still apply.  */
19506: #ifdef __cplusplus
19507: extern "C"
19508: #endif
19509: char crypt ();
19510: int
19511: main ()
19512: {
19513: return crypt ();
19514:   ;
19515:   return 0;
19516: }
19517: _ACEOF
19518: for ac_lib in '' crypt crypt_d ufc; do
19519:   if test -z "$ac_lib"; then
19520:     ac_res="none required"
19521:   else
19522:     ac_res=-l$ac_lib
19523:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19524:   fi
19525:   if ac_fn_c_try_link "$LINENO"; then :
19526:   ac_cv_search_crypt=$ac_res
19527: fi
19528: rm -f core conftest.err conftest.$ac_objext \
19529:     conftest$ac_exeext
19530:   if ${ac_cv_search_crypt+:} false; then :
19531:   break
19532: fi
19533: done
19534: if ${ac_cv_search_crypt+:} false; then :
19535: 
19536: else
19537:   ac_cv_search_crypt=no
19538: fi
19539: rm conftest.$ac_ext
19540: LIBS=$ac_func_search_save_LIBS
19541: fi
19542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19543: $as_echo "$ac_cv_search_crypt" >&6; }
19544: ac_res=$ac_cv_search_crypt
19545: if test "$ac_res" != no; then :
19546:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19547:   test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19548: fi
19549: 
19550: 	LIBS="$_LIBS"
19551:     fi
19552: 
19553:     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
19554: 	_LIBS="$LIBS"
19555: 	LIBS="$LIBS $shadow_libs"
19556: 	found=no
19557: 	for ac_func in $shadow_funcs
19558: do :
19559:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19560: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19561: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19562:   cat >>confdefs.h <<_ACEOF
19563: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19564: _ACEOF
19565:  found=yes
19566: fi
19567: done
19568: 
19569: 	if test "$found" = "yes"; then
19570: 	    SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
19571: 	elif test -n "$shadow_libs_optional"; then
19572: 	    LIBS="$LIBS $shadow_libs_optional"
19573: 	    for ac_func in $shadow_funcs
19574: do :
19575:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19576: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19577: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19578:   cat >>confdefs.h <<_ACEOF
19579: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19580: _ACEOF
19581:  found=yes
19582: fi
19583: done
19584: 
19585: 	    if test "$found" = "yes"; then
19586: 		SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
19587: 	    fi
19588: 	fi
19589: 	if test "$found" = "yes"; then
19590: 	    case "$shadow_funcs" in
19591: 		*getprpwnam*) SECUREWARE=1;;
19592: 	    esac
19593: 	    test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
19594: 	else
19595: 	    LIBS="$_LIBS"
19596: 	fi
19597: 	CHECKSHADOW=false
19598:     fi
19599:     if test "$CHECKSHADOW" = "true"; then
19600: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19601: $as_echo_n "checking for library containing getspnam... " >&6; }
19602: if ${ac_cv_search_getspnam+:} false; then :
19603:   $as_echo_n "(cached) " >&6
19604: else
19605:   ac_func_search_save_LIBS=$LIBS
19606: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607: /* end confdefs.h.  */
19608: 
19609: /* Override any GCC internal prototype to avoid an error.
19610:    Use char because int might match the return type of a GCC
19611:    builtin and then its argument prototype would still apply.  */
19612: #ifdef __cplusplus
19613: extern "C"
19614: #endif
19615: char getspnam ();
19616: int
19617: main ()
19618: {
19619: return getspnam ();
19620:   ;
19621:   return 0;
19622: }
19623: _ACEOF
19624: for ac_lib in '' gen; do
19625:   if test -z "$ac_lib"; then
19626:     ac_res="none required"
19627:   else
19628:     ac_res=-l$ac_lib
19629:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19630:   fi
19631:   if ac_fn_c_try_link "$LINENO"; then :
19632:   ac_cv_search_getspnam=$ac_res
19633: fi
19634: rm -f core conftest.err conftest.$ac_objext \
19635:     conftest$ac_exeext
19636:   if ${ac_cv_search_getspnam+:} false; then :
19637:   break
19638: fi
19639: done
19640: if ${ac_cv_search_getspnam+:} false; then :
19641: 
19642: else
19643:   ac_cv_search_getspnam=no
19644: fi
19645: rm conftest.$ac_ext
19646: LIBS=$ac_func_search_save_LIBS
19647: fi
19648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19649: $as_echo "$ac_cv_search_getspnam" >&6; }
19650: ac_res=$ac_cv_search_getspnam
19651: if test "$ac_res" != no; then :
19652:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19653:   $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
19654:  CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19655: fi
19656: 
19657:     fi
19658:     if test "$CHECKSHADOW" = "true"; then
19659: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
19660: $as_echo_n "checking for library containing getprpwnam... " >&6; }
19661: if ${ac_cv_search_getprpwnam+:} false; then :
19662:   $as_echo_n "(cached) " >&6
19663: else
19664:   ac_func_search_save_LIBS=$LIBS
19665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666: /* end confdefs.h.  */
19667: 
19668: /* Override any GCC internal prototype to avoid an error.
19669:    Use char because int might match the return type of a GCC
19670:    builtin and then its argument prototype would still apply.  */
19671: #ifdef __cplusplus
19672: extern "C"
19673: #endif
19674: char getprpwnam ();
19675: int
19676: main ()
19677: {
19678: return getprpwnam ();
19679:   ;
19680:   return 0;
19681: }
19682: _ACEOF
19683: for ac_lib in '' sec security prot; do
19684:   if test -z "$ac_lib"; then
19685:     ac_res="none required"
19686:   else
19687:     ac_res=-l$ac_lib
19688:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19689:   fi
19690:   if ac_fn_c_try_link "$LINENO"; then :
19691:   ac_cv_search_getprpwnam=$ac_res
19692: fi
19693: rm -f core conftest.err conftest.$ac_objext \
19694:     conftest$ac_exeext
19695:   if ${ac_cv_search_getprpwnam+:} false; then :
19696:   break
19697: fi
19698: done
19699: if ${ac_cv_search_getprpwnam+:} false; then :
19700: 
19701: else
19702:   ac_cv_search_getprpwnam=no
19703: fi
19704: rm conftest.$ac_ext
19705: LIBS=$ac_func_search_save_LIBS
19706: fi
19707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
19708: $as_echo "$ac_cv_search_getprpwnam" >&6; }
19709: ac_res=$ac_cv_search_getprpwnam
19710: if test "$ac_res" != no; then :
19711:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19712:   $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
19713:  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
19714: fi
19715: 
19716:     fi
19717:     if test -n "$SECUREWARE"; then
19718: 	for ac_func in bigcrypt set_auth_parameters initprivs
19719: do :
19720:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19721: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19722: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19723:   cat >>confdefs.h <<_ACEOF
19724: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19725: _ACEOF
19726: 
19727: fi
19728: done
19729: 
19730: 	AUTH_OBJS="$AUTH_OBJS secureware.lo"
19731:     fi
19732: fi
19733: 
19734: if test ${with_ldap-'no'} != "no"; then
19735:     _LDFLAGS="$LDFLAGS"
19736:     if test "$with_ldap" != "yes"; then
19737: 
19738:     if test X"$with_rpath" = X"yes"; then
19739: 	case "$host" in
19740: 	    *-*-hpux*)	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19741: 			;;
19742: 	    *)		SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19743: 			;;
19744: 	esac
19745:     else
19746: 	SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
19747:     fi
19748:     if test X"$blibpath" != X"" -a "SUDOERS_LDFLAGS" = "SUDO_LDFLAGS"; then
19749: 	blibpath_add="${blibpath_add}:${with_ldap}/lib"
19750:     fi
19751: 
19752: 
19753:     if test X"$with_rpath" = X"yes"; then
19754: 	case "$host" in
19755: 	    *-*-hpux*)	LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib"
19756: 			;;
19757: 	    *)		LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib"
19758: 			;;
19759: 	esac
19760:     else
19761: 	LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
19762:     fi
19763:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
19764: 	blibpath_add="${blibpath_add}:${with_ldap}/lib"
19765:     fi
19766: 
19767: 	CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19768: 	with_ldap=yes
19769:     fi
19770:     SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
19771:     LDAP=""
19772: 
19773:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
19774: $as_echo_n "checking for LDAP libraries... " >&6; }
19775:     LDAP_LIBS=""
19776:     _LIBS="$LIBS"
19777:     found=no
19778:     for l in -lldap -llber '-lssl -lcrypto'; do
19779: 	LIBS="${LIBS} $l"
19780: 	LDAP_LIBS="${LDAP_LIBS} $l"
19781: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19782: /* end confdefs.h.  */
19783: #include <sys/types.h>
19784: 	#include <lber.h>
19785: 	#include <ldap.h>
19786: int
19787: main ()
19788: {
19789: (void)ldap_init(0, 0)
19790:   ;
19791:   return 0;
19792: }
19793: _ACEOF
19794: if ac_fn_c_try_link "$LINENO"; then :
19795:   found=yes; break
19796: fi
19797: rm -f core conftest.err conftest.$ac_objext \
19798:     conftest$ac_exeext conftest.$ac_ext
19799:     done
19800:     if test "$found" = "no"; then
19801: 	LDAP_LIBS=""
19802: 	LIBS="$_LIBS"
19803: 	for l in -libmldap -lidsldif; do
19804: 	    LIBS="${LIBS} $l"
19805: 	    LDAP_LIBS="${LDAP_LIBS} $l"
19806: 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807: /* end confdefs.h.  */
19808: #include <sys/types.h>
19809: 	    #include <lber.h>
19810: 	    #include <ldap.h>
19811: int
19812: main ()
19813: {
19814: (void)ldap_init(0, 0)
19815:   ;
19816:   return 0;
19817: }
19818: _ACEOF
19819: if ac_fn_c_try_link "$LINENO"; then :
19820:   found=yes; break
19821: fi
19822: rm -f core conftest.err conftest.$ac_objext \
19823:     conftest$ac_exeext conftest.$ac_ext
19824: 	done
19825:     fi
19826:         if test "$found" = "no"; then
19827: 	LIBS="${_LIBS} -lldap"
19828: 	LDAP_LIBS="-lldap"
19829: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5
19830: $as_echo "not found, using -lldap" >&6; }
19831:     else
19832: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5
19833: $as_echo "$LDAP_LIBS" >&6; }
19834:     fi
19835:         OLIBS="$LIBS"
19836:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
19837: $as_echo_n "checking for library containing ber_set_option... " >&6; }
19838: if ${ac_cv_search_ber_set_option+:} false; then :
19839:   $as_echo_n "(cached) " >&6
19840: else
19841:   ac_func_search_save_LIBS=$LIBS
19842: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843: /* end confdefs.h.  */
19844: 
19845: /* Override any GCC internal prototype to avoid an error.
19846:    Use char because int might match the return type of a GCC
19847:    builtin and then its argument prototype would still apply.  */
19848: #ifdef __cplusplus
19849: extern "C"
19850: #endif
19851: char ber_set_option ();
19852: int
19853: main ()
19854: {
19855: return ber_set_option ();
19856:   ;
19857:   return 0;
19858: }
19859: _ACEOF
19860: for ac_lib in '' lber; do
19861:   if test -z "$ac_lib"; then
19862:     ac_res="none required"
19863:   else
19864:     ac_res=-l$ac_lib
19865:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19866:   fi
19867:   if ac_fn_c_try_link "$LINENO"; then :
19868:   ac_cv_search_ber_set_option=$ac_res
19869: fi
19870: rm -f core conftest.err conftest.$ac_objext \
19871:     conftest$ac_exeext
19872:   if ${ac_cv_search_ber_set_option+:} false; then :
19873:   break
19874: fi
19875: done
19876: if ${ac_cv_search_ber_set_option+:} false; then :
19877: 
19878: else
19879:   ac_cv_search_ber_set_option=no
19880: fi
19881: rm conftest.$ac_ext
19882: LIBS=$ac_func_search_save_LIBS
19883: fi
19884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
19885: $as_echo "$ac_cv_search_ber_set_option" >&6; }
19886: ac_res=$ac_cv_search_ber_set_option
19887: if test "$ac_res" != no; then :
19888:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19889:   found=yes
19890: else
19891:   found=no
19892: fi
19893: 
19894:     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
19895: 	LDAP_LIBS="$LDAP_LIBS -llber"
19896:     fi
19897:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
19898: $as_echo_n "checking whether lber.h is needed... " >&6; }
19899:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19900: /* end confdefs.h.  */
19901: #include <sys/types.h>
19902:     #include <ldap.h>
19903: int
19904: main ()
19905: {
19906: (void)ldap_init(0, 0)
19907:   ;
19908:   return 0;
19909: }
19910: _ACEOF
19911: if ac_fn_c_try_link "$LINENO"; then :
19912:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19913: $as_echo "no" >&6; }
19914: else
19915: 
19916:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19917: $as_echo "yes" >&6; }
19918:     $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
19919: 
19920: fi
19921: rm -f core conftest.err conftest.$ac_objext \
19922:     conftest$ac_exeext conftest.$ac_ext
19923: 
19924:     for ac_header in sasl/sasl.h sasl.h
19925: do :
19926:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19927: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19928: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19929:   cat >>confdefs.h <<_ACEOF
19930: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19931: _ACEOF
19932:  for ac_func in ldap_sasl_interactive_bind_s
19933: do :
19934:   ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
19935: if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
19936:   cat >>confdefs.h <<_ACEOF
19937: #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
19938: _ACEOF
19939: 
19940: fi
19941: done
19942: 
19943: else
19944:   break
19945: fi
19946: 
19947: done
19948: 
19949:     for ac_header in ldap_ssl.h mps/ldap_ssl.h
19950: do :
19951:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19952: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
19953: "
19954: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19955:   cat >>confdefs.h <<_ACEOF
19956: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19957: _ACEOF
19958:  break
19959: fi
19960: 
19961: done
19962: 
19963:     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
19964: do :
19965:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19966: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19967: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19968:   cat >>confdefs.h <<_ACEOF
19969: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19970: _ACEOF
19971: 
19972: fi
19973: done
19974: 
19975:     for ac_func in ldap_search_ext_s ldap_search_st
19976: do :
19977:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19978: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19979: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19980:   cat >>confdefs.h <<_ACEOF
19981: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19982: _ACEOF
19983:  break
19984: fi
19985: done
19986: 
19987: 
19988:     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
19989: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
19990: $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
19991: if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
19992:   $as_echo_n "(cached) " >&6
19993: else
19994:   ac_check_lib_save_LIBS=$LIBS
19995: LIBS="-lgssapi  $LIBS"
19996: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997: /* end confdefs.h.  */
19998: 
19999: /* Override any GCC internal prototype to avoid an error.
20000:    Use char because int might match the return type of a GCC
20001:    builtin and then its argument prototype would still apply.  */
20002: #ifdef __cplusplus
20003: extern "C"
20004: #endif
20005: char gss_krb5_ccache_name ();
20006: int
20007: main ()
20008: {
20009: return gss_krb5_ccache_name ();
20010:   ;
20011:   return 0;
20012: }
20013: _ACEOF
20014: if ac_fn_c_try_link "$LINENO"; then :
20015:   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
20016: else
20017:   ac_cv_lib_gssapi_gss_krb5_ccache_name=no
20018: fi
20019: rm -f core conftest.err conftest.$ac_objext \
20020:     conftest$ac_exeext conftest.$ac_ext
20021: LIBS=$ac_check_lib_save_LIBS
20022: fi
20023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
20024: $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
20025: if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
20026:   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20027: 
20028: 	    LDAP_LIBS="${LDAP_LIBS} -lgssapi"
20029: else
20030:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
20031: $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
20032: if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
20033:   $as_echo_n "(cached) " >&6
20034: else
20035:   ac_check_lib_save_LIBS=$LIBS
20036: LIBS="-lgssapi_krb5  $LIBS"
20037: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038: /* end confdefs.h.  */
20039: 
20040: /* Override any GCC internal prototype to avoid an error.
20041:    Use char because int might match the return type of a GCC
20042:    builtin and then its argument prototype would still apply.  */
20043: #ifdef __cplusplus
20044: extern "C"
20045: #endif
20046: char gss_krb5_ccache_name ();
20047: int
20048: main ()
20049: {
20050: return gss_krb5_ccache_name ();
20051:   ;
20052:   return 0;
20053: }
20054: _ACEOF
20055: if ac_fn_c_try_link "$LINENO"; then :
20056:   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
20057: else
20058:   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
20059: fi
20060: rm -f core conftest.err conftest.$ac_objext \
20061:     conftest$ac_exeext conftest.$ac_ext
20062: LIBS=$ac_check_lib_save_LIBS
20063: fi
20064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
20065: $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
20066: if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
20067:   $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20068: 
20069: 		LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
20070: fi
20071: 
20072: 
20073: fi
20074: 
20075: 
20076: 	# gssapi headers may be separate or part of Kerberos V
20077: 	found=no
20078: 	O_CPPFLAGS="$CPPFLAGS"
20079: 	for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
20080: 	    test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20081: 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082: /* end confdefs.h.  */
20083: #include <gssapi/gssapi.h>
20084: int
20085: main ()
20086: {
20087: 
20088:   ;
20089:   return 0;
20090: }
20091: _ACEOF
20092: if ac_fn_c_try_cpp "$LINENO"; then :
20093:   found="gssapi/gssapi.h"; break
20094: else
20095:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096: /* end confdefs.h.  */
20097: #include <gssapi.h>
20098: int
20099: main ()
20100: {
20101: 
20102:   ;
20103:   return 0;
20104: }
20105: _ACEOF
20106: if ac_fn_c_try_cpp "$LINENO"; then :
20107:   found="gssapi.h"; break
20108: fi
20109: rm -f conftest.err conftest.i conftest.$ac_ext
20110: fi
20111: rm -f conftest.err conftest.i conftest.$ac_ext
20112: 	done
20113: 	if test X"$found" != X"no"; then
20114: 	    for ac_header in $found
20115: do :
20116:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20117: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20118: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20119:   cat >>confdefs.h <<_ACEOF
20120: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20121: _ACEOF
20122: 
20123: fi
20124: 
20125: done
20126: 
20127: 	    if test X"$found" = X"gssapi/gssapi.h"; then
20128: 		for ac_header in gssapi/gssapi_krb5.h
20129: do :
20130:   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
20131: if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
20132:   cat >>confdefs.h <<_ACEOF
20133: #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
20134: _ACEOF
20135: 
20136: fi
20137: 
20138: done
20139: 
20140: 	    fi
20141: 	else
20142: 	    CPPFLAGS="$O_CPPFLAGS"
20143: 	    { $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
20144: $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;}
20145: 	fi
20146:     fi
20147: 
20148:     SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
20149:     LIBS="$_LIBS"
20150:     LDFLAGS="$_LDFLAGS"
20151: fi
20152: 
20153: #
20154: # How to do dynamic object loading.
20155: # We support dlopen() and sh_load(), else fall back to static loading.
20156: #
20157: case "$lt_cv_dlopen" in
20158:     dlopen)
20159: 	$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
20160: 
20161: 	SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
20162: 	LT_STATIC="--tag=disable-static"
20163: 	;;
20164:     shl_load)
20165: 	$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20166: 
20167: 	SUDOERS_OBJS="$SUDOERS_OBJS plugin_error.lo"
20168: 	LT_STATIC="--tag=disable-static"
20169: 	case " $LIBOBJS " in
20170:   *" dlopen.$ac_objext "* ) ;;
20171:   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20172:  ;;
20173: esac
20174: 
20175: 	;;
20176:     *)
20177: 	if test X"${ac_cv_func_dlopen}" = X"yes"; then
20178: 	    as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
20179: 	fi
20180: 	# Preload sudoers module symbols
20181: 	SUDO_OBJS="${SUDO_OBJS} preload.o"
20182: 	SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
20183: 	LT_STATIC=""
20184: 	case " $LIBOBJS " in
20185:   *" dlopen.$ac_objext "* ) ;;
20186:   *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20187:  ;;
20188: esac
20189: 
20190: 	;;
20191: esac
20192: 
20193: #
20194: # Add library needed for dynamic loading, if any.
20195: #
20196: LIBDL="$lt_cv_dlopen_libs"
20197: if test X"$LIBDL" != X""; then
20198:     SUDO_LIBS="${SUDO_LIBS} $LIBDL"
20199:     SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
20200: fi
20201: 
20202: # On HP-UX, you cannot dlopen() a shared object that uses pthreads unless
20203: # the main program is linked against -lpthread.  We have no knowledge of
20204: # what libraries a plugin may depend on (e.g. HP-UX LDAP which uses pthreads)
20205: # so always link against -lpthread on HP-UX if it is available.
20206: # This check should go after all other libraries tests.
20207: case "$host" in
20208:     *-*-hpux*)
20209: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
20210: $as_echo_n "checking for main in -lpthread... " >&6; }
20211: if ${ac_cv_lib_pthread_main+:} false; then :
20212:   $as_echo_n "(cached) " >&6
20213: else
20214:   ac_check_lib_save_LIBS=$LIBS
20215: LIBS="-lpthread  $LIBS"
20216: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217: /* end confdefs.h.  */
20218: 
20219: 
20220: int
20221: main ()
20222: {
20223: return main ();
20224:   ;
20225:   return 0;
20226: }
20227: _ACEOF
20228: if ac_fn_c_try_link "$LINENO"; then :
20229:   ac_cv_lib_pthread_main=yes
20230: else
20231:   ac_cv_lib_pthread_main=no
20232: fi
20233: rm -f core conftest.err conftest.$ac_objext \
20234:     conftest$ac_exeext conftest.$ac_ext
20235: LIBS=$ac_check_lib_save_LIBS
20236: fi
20237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
20238: $as_echo "$ac_cv_lib_pthread_main" >&6; }
20239: if test "x$ac_cv_lib_pthread_main" = xyes; then :
20240:   SUDO_LIBS="${SUDO_LIBS} -lpthread"
20241: fi
20242: 
20243: 	;;
20244: esac
20245: 
20246: if test -n "$blibpath"; then
20247:     if test -n "$blibpath_add"; then
20248:     	SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
20249:     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
20250:     	SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS -Wl,-blibpath:${blibpath}"
20251:     fi
20252: fi
20253: 
20254: if test "$utmp_style" = "LEGACY"; then
20255:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
20256: $as_echo_n "checking for utmp file path... " >&6; }
20257: found=no
20258: for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
20259:     if test -r "$p"; then
20260: 	found=yes
20261: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
20262: $as_echo "$p" >&6; }
20263: 	cat >>confdefs.h <<EOF
20264: #define _PATH_UTMP "$p"
20265: EOF
20266: 
20267: 	break
20268:     fi
20269: done
20270: if test X"$found" != X"yes"; then
20271:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20272: $as_echo "not found" >&6; }
20273: fi
20274: 
20275: fi
20276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
20277: $as_echo_n "checking for log file location... " >&6; }
20278: if test -n "$with_logpath"; then
20279:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
20280: $as_echo "$with_logpath" >&6; }
20281:     cat >>confdefs.h <<EOF
20282: #define _PATH_SUDO_LOGFILE "$with_logpath"
20283: EOF
20284: 
20285: elif test -d "/var/log"; then
20286:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
20287: $as_echo "/var/log/sudo.log" >&6; }
20288:     cat >>confdefs.h <<\EOF
20289: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
20290: EOF
20291: 
20292: elif test -d "/var/adm"; then
20293:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
20294: $as_echo "/var/adm/sudo.log" >&6; }
20295:     cat >>confdefs.h <<\EOF
20296: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
20297: EOF
20298: 
20299: elif test -d "/usr/adm"; then
20300:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
20301: $as_echo "/usr/adm/sudo.log" >&6; }
20302:     cat >>confdefs.h <<\EOF
20303: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
20304: EOF
20305: 
20306: else
20307:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
20308: $as_echo "unknown" >&6; }
20309: fi
20310: 
20311: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
20312: $as_echo_n "checking for timestamp file location... " >&6; }
20313: timedir="$with_timedir"
20314: if test -z "$timedir"; then
20315:     for d in /var/db /var/lib /var/adm /usr/adm; do
20316: 	if test -d "$d"; then
20317: 	    timedir="$d/sudo"
20318: 	    break
20319: 	fi
20320:     done
20321: fi
20322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
20323: $as_echo "$timedir" >&6; }
20324: cat >>confdefs.h <<EOF
20325: #define _PATH_SUDO_TIMEDIR "$timedir"
20326: EOF
20327: 
20328: 
20329: 
20330:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
20331: $as_echo_n "checking for I/O log dir location... " >&6; }
20332:     if test "${with_iologdir-yes}" != "yes"; then
20333: 	iolog_dir="$with_iologdir"
20334:     elif test -d "/var/log"; then
20335: 	iolog_dir="/var/log/sudo-io"
20336:     elif test -d "/var/adm"; then
20337: 	iolog_dir="/var/adm/sudo-io"
20338:     else
20339: 	iolog_dir="/usr/adm/sudo-io"
20340:     fi
20341:     if test "${with_iologdir}" != "no"; then
20342: 	cat >>confdefs.h <<EOF
20343: #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
20344: EOF
20345: 
20346:     fi
20347:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
20348: $as_echo "$iolog_dir" >&6; }
20349: 
20350: 
20351: 
20352: ac_c_werror_flag=yes
20353: 
20354: if test -n "$GCC" -a "$lt_cv_prog_gnu_ld" != "yes" -a -n "$GCC"; then
20355:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -static-libgcc" >&5
20356: $as_echo_n "checking whether C compiler accepts -static-libgcc... " >&6; }
20357: if ${ax_cv_check_cflags___static_libgcc+:} false; then :
20358:   $as_echo_n "(cached) " >&6
20359: else
20360: 
20361:   ax_check_save_flags=$CFLAGS
20362:   CFLAGS="$CFLAGS  -static-libgcc"
20363:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364: /* end confdefs.h.  */
20365: 
20366: int
20367: main ()
20368: {
20369: 
20370:   ;
20371:   return 0;
20372: }
20373: _ACEOF
20374: if ac_fn_c_try_compile "$LINENO"; then :
20375:   ax_cv_check_cflags___static_libgcc=yes
20376: else
20377:   ax_cv_check_cflags___static_libgcc=no
20378: fi
20379: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380:   CFLAGS=$ax_check_save_flags
20381: fi
20382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___static_libgcc" >&5
20383: $as_echo "$ax_cv_check_cflags___static_libgcc" >&6; }
20384: if test x"$ax_cv_check_cflags___static_libgcc" = xyes; then :
20385:   LT_LDFLAGS="$LT_LDFLAGS -Wc,-static-libgcc"
20386: else
20387:   :
20388: fi
20389: 
20390: fi
20391: 
20392: as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-fvisibility=hidden" | $as_tr_sh`
20393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
20394: $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
20395: if eval \${$as_CACHEVAR+:} false; then :
20396:   $as_echo_n "(cached) " >&6
20397: else
20398: 
20399:   ax_check_save_flags=$CFLAGS
20400:   CFLAGS="$CFLAGS  -fvisibility=hidden"
20401:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20402: /* end confdefs.h.  */
20403: 
20404: int
20405: main ()
20406: {
20407: 
20408:   ;
20409:   return 0;
20410: }
20411: _ACEOF
20412: if ac_fn_c_try_compile "$LINENO"; then :
20413:   eval "$as_CACHEVAR=yes"
20414: else
20415:   eval "$as_CACHEVAR=no"
20416: fi
20417: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20418:   CFLAGS=$ax_check_save_flags
20419: fi
20420: eval ac_res=\$$as_CACHEVAR
20421: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20422: $as_echo "$ac_res" >&6; }
20423: if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
20424: 
20425:     $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20426: 
20427:     CFLAGS="${CFLAGS} -fvisibility=hidden"
20428:     LT_LDEXPORTS=
20429:     LT_LDDEP=
20430: 
20431: else
20432: 
20433:     NO_VIZ="-DNO_VIZ"
20434:     if test -z "$GCC"; then
20435: 	case "$host" in
20436: 	    *-*-hpux*)
20437: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Bhidden_def" >&5
20438: $as_echo_n "checking whether C compiler accepts -Bhidden_def... " >&6; }
20439: if ${ax_cv_check_cflags___Bhidden_def+:} false; then :
20440:   $as_echo_n "(cached) " >&6
20441: else
20442: 
20443:   ax_check_save_flags=$CFLAGS
20444:   CFLAGS="$CFLAGS  -Bhidden_def"
20445:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20446: /* end confdefs.h.  */
20447: 
20448: int
20449: main ()
20450: {
20451: 
20452:   ;
20453:   return 0;
20454: }
20455: _ACEOF
20456: if ac_fn_c_try_compile "$LINENO"; then :
20457:   ax_cv_check_cflags___Bhidden_def=yes
20458: else
20459:   ax_cv_check_cflags___Bhidden_def=no
20460: fi
20461: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462:   CFLAGS=$ax_check_save_flags
20463: fi
20464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Bhidden_def" >&5
20465: $as_echo "$ax_cv_check_cflags___Bhidden_def" >&6; }
20466: if test x"$ax_cv_check_cflags___Bhidden_def" = xyes; then :
20467: 
20468: 		    $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20469: 
20470: 		    CFLAGS="${CFLAGS} -Bhidden_def"
20471: 		    LT_LDEXPORTS=
20472: 		    LT_LDDEP=
20473: 
20474: else
20475:   :
20476: fi
20477: 
20478: 		;;
20479: 	    *-*-solaris2*)
20480: 		as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-xldscope=hidden" | $as_tr_sh`
20481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -xldscope=hidden" >&5
20482: $as_echo_n "checking whether C compiler accepts -xldscope=hidden... " >&6; }
20483: if eval \${$as_CACHEVAR+:} false; then :
20484:   $as_echo_n "(cached) " >&6
20485: else
20486: 
20487:   ax_check_save_flags=$CFLAGS
20488:   CFLAGS="$CFLAGS  -xldscope=hidden"
20489:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20490: /* end confdefs.h.  */
20491: 
20492: int
20493: main ()
20494: {
20495: 
20496:   ;
20497:   return 0;
20498: }
20499: _ACEOF
20500: if ac_fn_c_try_compile "$LINENO"; then :
20501:   eval "$as_CACHEVAR=yes"
20502: else
20503:   eval "$as_CACHEVAR=no"
20504: fi
20505: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20506:   CFLAGS=$ax_check_save_flags
20507: fi
20508: eval ac_res=\$$as_CACHEVAR
20509: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20510: $as_echo "$ac_res" >&6; }
20511: if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
20512: 
20513: 		    $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
20514: 
20515: 		    CFLAGS="${CFLAGS} -xldscope=hidden"
20516: 		    LT_LDEXPORTS=
20517: 		    LT_LDDEP=
20518: 
20519: else
20520:   :
20521: fi
20522: 
20523: 		;;
20524: 	esac
20525:     fi
20526: 
20527: fi
20528: 
20529: 
20530: if test -n "$LT_LDEXPORTS"; then
20531:     if test "$lt_cv_prog_gnu_ld" = "yes"; then
20532: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
20533: $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
20534: if ${sudo_cv_var_gnu_ld_anon_map+:} false; then :
20535:   $as_echo_n "(cached) " >&6
20536: else
20537: 
20538: 		cat > conftest.map <<-EOF
20539: 		{
20540: 		    global: foo;
20541: 		    local:  *;
20542: 		};
20543: EOF
20544: 		_CFLAGS="$CFLAGS"
20545: 		CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20546: 		_LDFLAGS="$LDFLAGS"
20547: 		LDFLAGS="$LDFLAGS -fpic -shared -Wl,--version-script,./conftest.map"
20548: 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20549: /* end confdefs.h.  */
20550: int foo;
20551: int
20552: main ()
20553: {
20554: 
20555:   ;
20556:   return 0;
20557: }
20558: _ACEOF
20559: if ac_fn_c_try_link "$LINENO"; then :
20560: 
20561: 		    sudo_cv_var_gnu_ld_anon_map=yes
20562: 
20563: fi
20564: rm -f core conftest.err conftest.$ac_objext \
20565:     conftest$ac_exeext conftest.$ac_ext
20566: 		CFLAGS="$_CFLAGS"
20567: 		LDFLAGS="$_LDFLAGS"
20568: 
20569: 
20570: fi
20571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gnu_ld_anon_map" >&5
20572: $as_echo "$sudo_cv_var_gnu_ld_anon_map" >&6; }
20573: 	if test "$sudo_cv_var_gnu_ld_anon_map" = "yes"; then
20574: 	    LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,--version-script,\$(shlib_map)"
20575: 	fi
20576:     else
20577: 	case "$host" in
20578: 	    *-*-solaris2*)
20579: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
20580: $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
20581: if ${sudo_cv_var_solaris_ld_anon_map+:} false; then :
20582:   $as_echo_n "(cached) " >&6
20583: else
20584: 
20585: 			cat > conftest.map <<-EOF
20586: 			{
20587: 			    global: foo;
20588: 			    local:  *;
20589: 			};
20590: EOF
20591: 			_CFLAGS="$CFLAGS"
20592: 			CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20593: 			_LDFLAGS="$LDFLAGS"
20594: 			LDFLAGS="$LDFLAGS -shared -Wl,-M,./conftest.map"
20595: 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596: /* end confdefs.h.  */
20597: int foo;
20598: int
20599: main ()
20600: {
20601: 
20602:   ;
20603:   return 0;
20604: }
20605: _ACEOF
20606: if ac_fn_c_try_link "$LINENO"; then :
20607: 
20608: 			    sudo_cv_var_solaris_ld_anon_map=yes
20609: 
20610: fi
20611: rm -f core conftest.err conftest.$ac_objext \
20612:     conftest$ac_exeext conftest.$ac_ext
20613: 			CFLAGS="$_CFLAGS"
20614: 			LDFLAGS="$_LDFLAGS"
20615: 
20616: 
20617: fi
20618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_solaris_ld_anon_map" >&5
20619: $as_echo "$sudo_cv_var_solaris_ld_anon_map" >&6; }
20620: 		if test "$sudo_cv_var_solaris_ld_anon_map" = "yes"; then
20621: 		    LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,-M,\$(shlib_map)"
20622: 		fi
20623: 		;;
20624: 	    *-*-hpux*)
20625: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports controlling exported symbols" >&5
20626: $as_echo_n "checking whether ld supports controlling exported symbols... " >&6; }
20627: if ${sudo_cv_var_hpux_ld_symbol_export+:} false; then :
20628:   $as_echo_n "(cached) " >&6
20629: else
20630: 
20631: 			echo "+e foo" > conftest.opt
20632: 			_CFLAGS="$CFLAGS"
20633: 			CFLAGS="$CFLAGS $lt_prog_compiler_pic"
20634: 			_LDFLAGS="$LDFLAGS"
20635: 			if test -n "$GCC"; then
20636: 			    LDFLAGS="$LDFLAGS -shared -Wl,-c,./conftest.opt"
20637: 			else
20638: 			    LDFLAGS="$LDFLAGS -Wl,-b -Wl,-c,./conftest.opt"
20639: 			fi
20640: 			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641: /* end confdefs.h.  */
20642: int foo;
20643: int
20644: main ()
20645: {
20646: 
20647:   ;
20648:   return 0;
20649: }
20650: _ACEOF
20651: if ac_fn_c_try_link "$LINENO"; then :
20652: 
20653: 			    sudo_cv_var_hpux_ld_symbol_export=yes
20654: 
20655: fi
20656: rm -f core conftest.err conftest.$ac_objext \
20657:     conftest$ac_exeext conftest.$ac_ext
20658: 			CFLAGS="$_CFLAGS"
20659: 			LDFLAGS="$_LDFLAGS"
20660: 
20661: 
20662: fi
20663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpux_ld_symbol_export" >&5
20664: $as_echo "$sudo_cv_var_hpux_ld_symbol_export" >&6; }
20665: 		if test "$sudo_cv_var_hpux_ld_symbol_export" = "yes"; then
20666: 		    LT_LDEXPORTS=; LT_LDDEP="\$(shlib_opt)"; LT_LDOPT="-Wl,-c,\$(shlib_opt)"
20667: 		fi
20668: 		;;
20669: 	esac
20670:     fi
20671: fi
20672: 
20673: if test "$enable_pie" != "no" -a -n "$GCC"; then
20674:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
20675: $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
20676: if ${ax_cv_check_cflags___fPIE+:} false; then :
20677:   $as_echo_n "(cached) " >&6
20678: else
20679: 
20680:   ax_check_save_flags=$CFLAGS
20681:   CFLAGS="$CFLAGS  -fPIE"
20682:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20683: /* end confdefs.h.  */
20684: 
20685: int
20686: main ()
20687: {
20688: 
20689:   ;
20690:   return 0;
20691: }
20692: _ACEOF
20693: if ac_fn_c_try_compile "$LINENO"; then :
20694:   ax_cv_check_cflags___fPIE=yes
20695: else
20696:   ax_cv_check_cflags___fPIE=no
20697: fi
20698: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20699:   CFLAGS=$ax_check_save_flags
20700: fi
20701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
20702: $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
20703: if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
20704: 
20705: 	_CFLAGS="$CFLAGS"
20706: 	CFLAGS="$CFLAGS -fPIE"
20707: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
20708: $as_echo_n "checking whether the linker accepts -pie... " >&6; }
20709: if ${ax_cv_check_ldflags___pie+:} false; then :
20710:   $as_echo_n "(cached) " >&6
20711: else
20712: 
20713:   ax_check_save_flags=$LDFLAGS
20714:   LDFLAGS="$LDFLAGS  -pie"
20715:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20716: /* end confdefs.h.  */
20717: 
20718: int
20719: main ()
20720: {
20721: 
20722:   ;
20723:   return 0;
20724: }
20725: _ACEOF
20726: if ac_fn_c_try_link "$LINENO"; then :
20727:   ax_cv_check_ldflags___pie=yes
20728: else
20729:   ax_cv_check_ldflags___pie=no
20730: fi
20731: rm -f core conftest.err conftest.$ac_objext \
20732:     conftest$ac_exeext conftest.$ac_ext
20733:   LDFLAGS=$ax_check_save_flags
20734: fi
20735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
20736: $as_echo "$ax_cv_check_ldflags___pie" >&6; }
20737: if test x"$ax_cv_check_ldflags___pie" = xyes; then :
20738: 
20739: 	    PIE_CFLAGS="-fPIE"
20740: 	    PIE_LDFLAGS="-pie"
20741: 
20742: else
20743:   :
20744: fi
20745: 
20746: 	CFLAGS="$_CFLAGS"
20747: 
20748: else
20749:   :
20750: fi
20751: 
20752: fi
20753: 
20754: if test "$enable_hardening" != "no"; then
20755:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
20756: $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
20757: if ${ax_cv_check_cflags___fstack_protector+:} false; then :
20758:   $as_echo_n "(cached) " >&6
20759: else
20760: 
20761:   ax_check_save_flags=$CFLAGS
20762:   CFLAGS="$CFLAGS  -fstack-protector"
20763:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20764: /* end confdefs.h.  */
20765: 
20766: int
20767: main ()
20768: {
20769: 
20770:   ;
20771:   return 0;
20772: }
20773: _ACEOF
20774: if ac_fn_c_try_compile "$LINENO"; then :
20775:   ax_cv_check_cflags___fstack_protector=yes
20776: else
20777:   ax_cv_check_cflags___fstack_protector=no
20778: fi
20779: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20780:   CFLAGS=$ax_check_save_flags
20781: fi
20782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
20783: $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
20784: if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
20785: 
20786: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
20787: $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
20788: if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
20789:   $as_echo_n "(cached) " >&6
20790: else
20791: 
20792:   ax_check_save_flags=$LDFLAGS
20793:   LDFLAGS="$LDFLAGS  -fstack-protector"
20794:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20795: /* end confdefs.h.  */
20796: 
20797: int
20798: main ()
20799: {
20800: 
20801:   ;
20802:   return 0;
20803: }
20804: _ACEOF
20805: if ac_fn_c_try_link "$LINENO"; then :
20806:   ax_cv_check_ldflags___fstack_protector=yes
20807: else
20808:   ax_cv_check_ldflags___fstack_protector=no
20809: fi
20810: rm -f core conftest.err conftest.$ac_objext \
20811:     conftest$ac_exeext conftest.$ac_ext
20812:   LDFLAGS=$ax_check_save_flags
20813: fi
20814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
20815: $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
20816: if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
20817: 
20818: 	    CFLAGS="${CFLAGS} -fstack-protector"
20819: 	    LT_LDFLAGS="${LT_LDFLAGS} -Wc,-fstack-protector"
20820: 
20821: else
20822:   :
20823: fi
20824: 
20825: 
20826: else
20827:   :
20828: fi
20829: 
20830:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
20831: $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
20832: if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
20833:   $as_echo_n "(cached) " >&6
20834: else
20835: 
20836:   ax_check_save_flags=$LDFLAGS
20837:   LDFLAGS="$LDFLAGS  -Wl,-z,relro"
20838:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839: /* end confdefs.h.  */
20840: 
20841: int
20842: main ()
20843: {
20844: 
20845:   ;
20846:   return 0;
20847: }
20848: _ACEOF
20849: if ac_fn_c_try_link "$LINENO"; then :
20850:   ax_cv_check_ldflags___Wl__z_relro=yes
20851: else
20852:   ax_cv_check_ldflags___Wl__z_relro=no
20853: fi
20854: rm -f core conftest.err conftest.$ac_objext \
20855:     conftest$ac_exeext conftest.$ac_ext
20856:   LDFLAGS=$ax_check_save_flags
20857: fi
20858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
20859: $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
20860: if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
20861:   LDFLAGS="${LDFLAGS} -Wl,-z,relro"
20862: else
20863:   :
20864: fi
20865: 
20866: fi
20867: 
20868: case "$with_passwd" in
20869: yes|maybe)
20870:     AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
20871:     ;;
20872: *)
20873:     $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
20874: 
20875:     if test -z "$AUTH_OBJS"; then
20876: 	as_fn_error $? "no authentication methods defined." "$LINENO" 5
20877:     fi
20878:     ;;
20879: esac
20880: AUTH_OBJS=${AUTH_OBJS# }
20881: _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
20882: { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
20883: $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
20884: 
20885: if test -n "$LIBS"; then
20886:     L="$LIBS"
20887:     LIBS=
20888:     for l in ${L}; do
20889: 	dupe=0
20890: 	for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
20891: 	    test $l = $sl && dupe=1
20892: 	done
20893: 	test $dupe = 0 && LIBS="${LIBS} $l"
20894:     done
20895: fi
20896: 
20897: if test -n "$GCC"; then
20898:     if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
20899: 	CFLAGS="${CFLAGS} -Wall"
20900:     fi
20901:     if test X"$enable_werror" = X"yes"; then
20902: 	CFLAGS="${CFLAGS} -Werror"
20903:     fi
20904: fi
20905: 
20906: CROSS_COMPILING="$cross_compiling"
20907: 
20908: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
20909: 
20910: if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
20911:     oexec_prefix="$exec_prefix"
20912:     if test "$exec_prefix" = '$(prefix)'; then
20913: 	if test "$prefix" = "NONE"; then
20914: 	    exec_prefix="$ac_default_prefix"
20915: 	else
20916: 	    exec_prefix="$prefix"
20917: 	fi
20918:     fi
20919:     if test X"$with_noexec" != X"no"; then
20920: 	PROGS="${PROGS} libsudo_noexec.la"
20921: 	INSTALL_NOEXEC="install-noexec"
20922: 
20923: 	noexec_file="$with_noexec"
20924: 	_noexec_file=
20925: 	while test X"$noexec_file" != X"$_noexec_file"; do
20926: 	    _noexec_file="$noexec_file"
20927: 	    eval noexec_file="$_noexec_file"
20928: 	done
20929: 	cat >>confdefs.h <<EOF
20930: #define _PATH_SUDO_NOEXEC "$noexec_file"
20931: EOF
20932: 
20933:     fi
20934:     if test X"$with_selinux" != X"no"; then
20935: 	sesh_file="$libexecdir/sesh"
20936: 	_sesh_file=
20937: 	while test X"$sesh_file" != X"$_sesh_file"; do
20938: 	    _sesh_file="$sesh_file"
20939: 	    eval sesh_file="$_sesh_file"
20940: 	done
20941: 	cat >>confdefs.h <<EOF
20942: #define _PATH_SUDO_SESH "$sesh_file"
20943: EOF
20944: 
20945:     fi
20946:     PLUGINDIR="$with_plugindir"
20947:     _PLUGINDIR=
20948:     while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
20949: 	_PLUGINDIR="$PLUGINDIR"
20950: 	eval PLUGINDIR="$_PLUGINDIR"
20951:     done
20952:     cat >>confdefs.h <<EOF
20953: #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
20954: EOF
20955: 
20956:     cat >>confdefs.h <<EOF
20957: #define SUDOERS_PLUGIN "sudoers${SOEXT}"
20958: EOF
20959: 
20960:     exec_prefix="$oexec_prefix"
20961: fi
20962: 
20963: if test X"$prefix" = X"NONE"; then
20964:     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
20965: else
20966:     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
20967: fi
20968: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
20969: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
20970: test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
20971: test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
20972: test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
20973: test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
20974: test "$localedir" = '${datarootdir}/locale' && localedir='$(datarootdir)/locale'
20975: test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var'
20976: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
20977: 
20978: ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/sample_group/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
20979: 
20980: cat >confcache <<\_ACEOF
20981: # This file is a shell script that caches the results of configure
20982: # tests run on this system so they can be shared between configure
20983: # scripts and configure runs, see configure's option --config-cache.
20984: # It is not useful on other systems.  If it contains results you don't
20985: # want to keep, you may remove or edit it.
20986: #
20987: # config.status only pays attention to the cache file if you give it
20988: # the --recheck option to rerun configure.
20989: #
20990: # `ac_cv_env_foo' variables (set or unset) will be overridden when
20991: # loading this file, other *unset* `ac_cv_foo' will be assigned the
20992: # following values.
20993: 
20994: _ACEOF
20995: 
20996: # The following way of writing the cache mishandles newlines in values,
20997: # but we know of no workaround that is simple, portable, and efficient.
20998: # So, we kill variables containing newlines.
20999: # Ultrix sh set writes to stderr and can't be redirected directly,
21000: # and sets the high bit in the cache file unless we assign to the vars.
21001: (
21002:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21003:     eval ac_val=\$$ac_var
21004:     case $ac_val in #(
21005:     *${as_nl}*)
21006:       case $ac_var in #(
21007:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21008: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21009:       esac
21010:       case $ac_var in #(
21011:       _ | IFS | as_nl) ;; #(
21012:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21013:       *) { eval $ac_var=; unset $ac_var;} ;;
21014:       esac ;;
21015:     esac
21016:   done
21017: 
21018:   (set) 2>&1 |
21019:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21020:     *${as_nl}ac_space=\ *)
21021:       # `set' does not quote correctly, so add quotes: double-quote
21022:       # substitution turns \\\\ into \\, and sed turns \\ into \.
21023:       sed -n \
21024: 	"s/'/'\\\\''/g;
21025: 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21026:       ;; #(
21027:     *)
21028:       # `set' quotes correctly as required by POSIX, so do not add quotes.
21029:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21030:       ;;
21031:     esac |
21032:     sort
21033: ) |
21034:   sed '
21035:      /^ac_cv_env_/b end
21036:      t clear
21037:      :clear
21038:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21039:      t end
21040:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21041:      :end' >>confcache
21042: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21043:   if test -w "$cache_file"; then
21044:     if test "x$cache_file" != "x/dev/null"; then
21045:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21046: $as_echo "$as_me: updating cache $cache_file" >&6;}
21047:       if test ! -f "$cache_file" || test -h "$cache_file"; then
21048: 	cat confcache >"$cache_file"
21049:       else
21050:         case $cache_file in #(
21051:         */* | ?:*)
21052: 	  mv -f confcache "$cache_file"$$ &&
21053: 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21054:         *)
21055: 	  mv -f confcache "$cache_file" ;;
21056: 	esac
21057:       fi
21058:     fi
21059:   else
21060:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21061: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21062:   fi
21063: fi
21064: rm -f confcache
21065: 
21066: test "x$prefix" = xNONE && prefix=$ac_default_prefix
21067: # Let make expand exec_prefix.
21068: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21069: 
21070: DEFS=-DHAVE_CONFIG_H
21071: 
21072: ac_libobjs=
21073: ac_ltlibobjs=
21074: U=
21075: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21076:   # 1. Remove the extension, and $U if already installed.
21077:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21078:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21079:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21080:   #    will be set to the directory where LIBOBJS objects are built.
21081:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21082:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21083: done
21084: LIBOBJS=$ac_libobjs
21085: 
21086: LTLIBOBJS=$ac_ltlibobjs
21087: 
21088: 
21089: 
21090: : "${CONFIG_STATUS=./config.status}"
21091: ac_write_fail=0
21092: ac_clean_files_save=$ac_clean_files
21093: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21094: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21095: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21096: as_write_fail=0
21097: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21098: #! $SHELL
21099: # Generated by $as_me.
21100: # Run this file to recreate the current configuration.
21101: # Compiler output produced by configure, useful for debugging
21102: # configure, is in config.log if it exists.
21103: 
21104: debug=false
21105: ac_cs_recheck=false
21106: ac_cs_silent=false
21107: 
21108: SHELL=\${CONFIG_SHELL-$SHELL}
21109: export SHELL
21110: _ASEOF
21111: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21112: ## -------------------- ##
21113: ## M4sh Initialization. ##
21114: ## -------------------- ##
21115: 
21116: # Be more Bourne compatible
21117: DUALCASE=1; export DUALCASE # for MKS sh
21118: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21119:   emulate sh
21120:   NULLCMD=:
21121:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21122:   # is contrary to our usage.  Disable this feature.
21123:   alias -g '${1+"$@"}'='"$@"'
21124:   setopt NO_GLOB_SUBST
21125: else
21126:   case `(set -o) 2>/dev/null` in #(
21127:   *posix*) :
21128:     set -o posix ;; #(
21129:   *) :
21130:      ;;
21131: esac
21132: fi
21133: 
21134: 
21135: as_nl='
21136: '
21137: export as_nl
21138: # Printing a long string crashes Solaris 7 /usr/bin/printf.
21139: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21140: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21141: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21142: # Prefer a ksh shell builtin over an external printf program on Solaris,
21143: # but without wasting forks for bash or zsh.
21144: if test -z "$BASH_VERSION$ZSH_VERSION" \
21145:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21146:   as_echo='print -r --'
21147:   as_echo_n='print -rn --'
21148: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21149:   as_echo='printf %s\n'
21150:   as_echo_n='printf %s'
21151: else
21152:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21153:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21154:     as_echo_n='/usr/ucb/echo -n'
21155:   else
21156:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21157:     as_echo_n_body='eval
21158:       arg=$1;
21159:       case $arg in #(
21160:       *"$as_nl"*)
21161: 	expr "X$arg" : "X\\(.*\\)$as_nl";
21162: 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21163:       esac;
21164:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21165:     '
21166:     export as_echo_n_body
21167:     as_echo_n='sh -c $as_echo_n_body as_echo'
21168:   fi
21169:   export as_echo_body
21170:   as_echo='sh -c $as_echo_body as_echo'
21171: fi
21172: 
21173: # The user is always right.
21174: if test "${PATH_SEPARATOR+set}" != set; then
21175:   PATH_SEPARATOR=:
21176:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21177:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21178:       PATH_SEPARATOR=';'
21179:   }
21180: fi
21181: 
21182: 
21183: # IFS
21184: # We need space, tab and new line, in precisely that order.  Quoting is
21185: # there to prevent editors from complaining about space-tab.
21186: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21187: # splitting by setting IFS to empty value.)
21188: IFS=" ""	$as_nl"
21189: 
21190: # Find who we are.  Look in the path if we contain no directory separator.
21191: as_myself=
21192: case $0 in #((
21193:   *[\\/]* ) as_myself=$0 ;;
21194:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21195: for as_dir in $PATH
21196: do
21197:   IFS=$as_save_IFS
21198:   test -z "$as_dir" && as_dir=.
21199:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21200:   done
21201: IFS=$as_save_IFS
21202: 
21203:      ;;
21204: esac
21205: # We did not find ourselves, most probably we were run as `sh COMMAND'
21206: # in which case we are not to be found in the path.
21207: if test "x$as_myself" = x; then
21208:   as_myself=$0
21209: fi
21210: if test ! -f "$as_myself"; then
21211:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21212:   exit 1
21213: fi
21214: 
21215: # Unset variables that we do not need and which cause bugs (e.g. in
21216: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21217: # suppresses any "Segmentation fault" message there.  '((' could
21218: # trigger a bug in pdksh 5.2.14.
21219: for as_var in BASH_ENV ENV MAIL MAILPATH
21220: do eval test x\${$as_var+set} = xset \
21221:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21222: done
21223: PS1='$ '
21224: PS2='> '
21225: PS4='+ '
21226: 
21227: # NLS nuisances.
21228: LC_ALL=C
21229: export LC_ALL
21230: LANGUAGE=C
21231: export LANGUAGE
21232: 
21233: # CDPATH.
21234: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21235: 
21236: 
21237: # as_fn_error STATUS ERROR [LINENO LOG_FD]
21238: # ----------------------------------------
21239: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21240: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21241: # script with STATUS, using 1 if that was 0.
21242: as_fn_error ()
21243: {
21244:   as_status=$1; test $as_status -eq 0 && as_status=1
21245:   if test "$4"; then
21246:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21247:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21248:   fi
21249:   $as_echo "$as_me: error: $2" >&2
21250:   as_fn_exit $as_status
21251: } # as_fn_error
21252: 
21253: 
21254: # as_fn_set_status STATUS
21255: # -----------------------
21256: # Set $? to STATUS, without forking.
21257: as_fn_set_status ()
21258: {
21259:   return $1
21260: } # as_fn_set_status
21261: 
21262: # as_fn_exit STATUS
21263: # -----------------
21264: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21265: as_fn_exit ()
21266: {
21267:   set +e
21268:   as_fn_set_status $1
21269:   exit $1
21270: } # as_fn_exit
21271: 
21272: # as_fn_unset VAR
21273: # ---------------
21274: # Portably unset VAR.
21275: as_fn_unset ()
21276: {
21277:   { eval $1=; unset $1;}
21278: }
21279: as_unset=as_fn_unset
21280: # as_fn_append VAR VALUE
21281: # ----------------------
21282: # Append the text in VALUE to the end of the definition contained in VAR. Take
21283: # advantage of any shell optimizations that allow amortized linear growth over
21284: # repeated appends, instead of the typical quadratic growth present in naive
21285: # implementations.
21286: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21287:   eval 'as_fn_append ()
21288:   {
21289:     eval $1+=\$2
21290:   }'
21291: else
21292:   as_fn_append ()
21293:   {
21294:     eval $1=\$$1\$2
21295:   }
21296: fi # as_fn_append
21297: 
21298: # as_fn_arith ARG...
21299: # ------------------
21300: # Perform arithmetic evaluation on the ARGs, and store the result in the
21301: # global $as_val. Take advantage of shells that can avoid forks. The arguments
21302: # must be portable across $(()) and expr.
21303: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21304:   eval 'as_fn_arith ()
21305:   {
21306:     as_val=$(( $* ))
21307:   }'
21308: else
21309:   as_fn_arith ()
21310:   {
21311:     as_val=`expr "$@" || test $? -eq 1`
21312:   }
21313: fi # as_fn_arith
21314: 
21315: 
21316: if expr a : '\(a\)' >/dev/null 2>&1 &&
21317:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21318:   as_expr=expr
21319: else
21320:   as_expr=false
21321: fi
21322: 
21323: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21324:   as_basename=basename
21325: else
21326:   as_basename=false
21327: fi
21328: 
21329: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21330:   as_dirname=dirname
21331: else
21332:   as_dirname=false
21333: fi
21334: 
21335: as_me=`$as_basename -- "$0" ||
21336: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21337: 	 X"$0" : 'X\(//\)$' \| \
21338: 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21339: $as_echo X/"$0" |
21340:     sed '/^.*\/\([^/][^/]*\)\/*$/{
21341: 	    s//\1/
21342: 	    q
21343: 	  }
21344: 	  /^X\/\(\/\/\)$/{
21345: 	    s//\1/
21346: 	    q
21347: 	  }
21348: 	  /^X\/\(\/\).*/{
21349: 	    s//\1/
21350: 	    q
21351: 	  }
21352: 	  s/.*/./; q'`
21353: 
21354: # Avoid depending upon Character Ranges.
21355: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21356: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21357: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21358: as_cr_digits='0123456789'
21359: as_cr_alnum=$as_cr_Letters$as_cr_digits
21360: 
21361: ECHO_C= ECHO_N= ECHO_T=
21362: case `echo -n x` in #(((((
21363: -n*)
21364:   case `echo 'xy\c'` in
21365:   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21366:   xy)  ECHO_C='\c';;
21367:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21368:        ECHO_T='	';;
21369:   esac;;
21370: *)
21371:   ECHO_N='-n';;
21372: esac
21373: 
21374: rm -f conf$$ conf$$.exe conf$$.file
21375: if test -d conf$$.dir; then
21376:   rm -f conf$$.dir/conf$$.file
21377: else
21378:   rm -f conf$$.dir
21379:   mkdir conf$$.dir 2>/dev/null
21380: fi
21381: if (echo >conf$$.file) 2>/dev/null; then
21382:   if ln -s conf$$.file conf$$ 2>/dev/null; then
21383:     as_ln_s='ln -s'
21384:     # ... but there are two gotchas:
21385:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21386:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21387:     # In both cases, we have to default to `cp -p'.
21388:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21389:       as_ln_s='cp -p'
21390:   elif ln conf$$.file conf$$ 2>/dev/null; then
21391:     as_ln_s=ln
21392:   else
21393:     as_ln_s='cp -p'
21394:   fi
21395: else
21396:   as_ln_s='cp -p'
21397: fi
21398: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21399: rmdir conf$$.dir 2>/dev/null
21400: 
21401: 
21402: # as_fn_mkdir_p
21403: # -------------
21404: # Create "$as_dir" as a directory, including parents if necessary.
21405: as_fn_mkdir_p ()
21406: {
21407: 
21408:   case $as_dir in #(
21409:   -*) as_dir=./$as_dir;;
21410:   esac
21411:   test -d "$as_dir" || eval $as_mkdir_p || {
21412:     as_dirs=
21413:     while :; do
21414:       case $as_dir in #(
21415:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21416:       *) as_qdir=$as_dir;;
21417:       esac
21418:       as_dirs="'$as_qdir' $as_dirs"
21419:       as_dir=`$as_dirname -- "$as_dir" ||
21420: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21421: 	 X"$as_dir" : 'X\(//\)[^/]' \| \
21422: 	 X"$as_dir" : 'X\(//\)$' \| \
21423: 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21424: $as_echo X"$as_dir" |
21425:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21426: 	    s//\1/
21427: 	    q
21428: 	  }
21429: 	  /^X\(\/\/\)[^/].*/{
21430: 	    s//\1/
21431: 	    q
21432: 	  }
21433: 	  /^X\(\/\/\)$/{
21434: 	    s//\1/
21435: 	    q
21436: 	  }
21437: 	  /^X\(\/\).*/{
21438: 	    s//\1/
21439: 	    q
21440: 	  }
21441: 	  s/.*/./; q'`
21442:       test -d "$as_dir" && break
21443:     done
21444:     test -z "$as_dirs" || eval "mkdir $as_dirs"
21445:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21446: 
21447: 
21448: } # as_fn_mkdir_p
21449: if mkdir -p . 2>/dev/null; then
21450:   as_mkdir_p='mkdir -p "$as_dir"'
21451: else
21452:   test -d ./-p && rmdir ./-p
21453:   as_mkdir_p=false
21454: fi
21455: 
21456: if test -x / >/dev/null 2>&1; then
21457:   as_test_x='test -x'
21458: else
21459:   if ls -dL / >/dev/null 2>&1; then
21460:     as_ls_L_option=L
21461:   else
21462:     as_ls_L_option=
21463:   fi
21464:   as_test_x='
21465:     eval sh -c '\''
21466:       if test -d "$1"; then
21467: 	test -d "$1/.";
21468:       else
21469: 	case $1 in #(
21470: 	-*)set "./$1";;
21471: 	esac;
21472: 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21473: 	???[sx]*):;;*)false;;esac;fi
21474:     '\'' sh
21475:   '
21476: fi
21477: as_executable_p=$as_test_x
21478: 
21479: # Sed expression to map a string onto a valid CPP name.
21480: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21481: 
21482: # Sed expression to map a string onto a valid variable name.
21483: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21484: 
21485: 
21486: exec 6>&1
21487: ## ----------------------------------- ##
21488: ## Main body of $CONFIG_STATUS script. ##
21489: ## ----------------------------------- ##
21490: _ASEOF
21491: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21492: 
21493: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21494: # Save the log message, to keep $0 and so on meaningful, and to
21495: # report actual input values of CONFIG_FILES etc. instead of their
21496: # values after options handling.
21497: ac_log="
21498: This file was extended by sudo $as_me 1.8.6p3, which was
21499: generated by GNU Autoconf 2.68.  Invocation command line was
21500: 
21501:   CONFIG_FILES    = $CONFIG_FILES
21502:   CONFIG_HEADERS  = $CONFIG_HEADERS
21503:   CONFIG_LINKS    = $CONFIG_LINKS
21504:   CONFIG_COMMANDS = $CONFIG_COMMANDS
21505:   $ $0 $@
21506: 
21507: on `(hostname || uname -n) 2>/dev/null | sed 1q`
21508: "
21509: 
21510: _ACEOF
21511: 
21512: case $ac_config_files in *"
21513: "*) set x $ac_config_files; shift; ac_config_files=$*;;
21514: esac
21515: 
21516: case $ac_config_headers in *"
21517: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21518: esac
21519: 
21520: 
21521: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21522: # Files that config.status was made for.
21523: config_files="$ac_config_files"
21524: config_headers="$ac_config_headers"
21525: config_commands="$ac_config_commands"
21526: 
21527: _ACEOF
21528: 
21529: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21530: ac_cs_usage="\
21531: \`$as_me' instantiates files and other configuration actions
21532: from templates according to the current configuration.  Unless the files
21533: and actions are specified as TAGs, all are instantiated by default.
21534: 
21535: Usage: $0 [OPTION]... [TAG]...
21536: 
21537:   -h, --help       print this help, then exit
21538:   -V, --version    print version number and configuration settings, then exit
21539:       --config     print configuration, then exit
21540:   -q, --quiet, --silent
21541:                    do not print progress messages
21542:   -d, --debug      don't remove temporary files
21543:       --recheck    update $as_me by reconfiguring in the same conditions
21544:       --file=FILE[:TEMPLATE]
21545:                    instantiate the configuration file FILE
21546:       --header=FILE[:TEMPLATE]
21547:                    instantiate the configuration header FILE
21548: 
21549: Configuration files:
21550: $config_files
21551: 
21552: Configuration headers:
21553: $config_headers
21554: 
21555: Configuration commands:
21556: $config_commands
21557: 
21558: Report bugs to <http://www.sudo.ws/bugs/>."
21559: 
21560: _ACEOF
21561: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21562: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21563: ac_cs_version="\\
21564: sudo config.status 1.8.6p3
21565: configured by $0, generated by GNU Autoconf 2.68,
21566:   with options \\"\$ac_cs_config\\"
21567: 
21568: Copyright (C) 2010 Free Software Foundation, Inc.
21569: This config.status script is free software; the Free Software Foundation
21570: gives unlimited permission to copy, distribute and modify it."
21571: 
21572: ac_pwd='$ac_pwd'
21573: srcdir='$srcdir'
21574: AWK='$AWK'
21575: test -n "\$AWK" || AWK=awk
21576: _ACEOF
21577: 
21578: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21579: # The default lists apply if the user does not specify any file.
21580: ac_need_defaults=:
21581: while test $# != 0
21582: do
21583:   case $1 in
21584:   --*=?*)
21585:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21586:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21587:     ac_shift=:
21588:     ;;
21589:   --*=)
21590:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21591:     ac_optarg=
21592:     ac_shift=:
21593:     ;;
21594:   *)
21595:     ac_option=$1
21596:     ac_optarg=$2
21597:     ac_shift=shift
21598:     ;;
21599:   esac
21600: 
21601:   case $ac_option in
21602:   # Handling of the options.
21603:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21604:     ac_cs_recheck=: ;;
21605:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21606:     $as_echo "$ac_cs_version"; exit ;;
21607:   --config | --confi | --conf | --con | --co | --c )
21608:     $as_echo "$ac_cs_config"; exit ;;
21609:   --debug | --debu | --deb | --de | --d | -d )
21610:     debug=: ;;
21611:   --file | --fil | --fi | --f )
21612:     $ac_shift
21613:     case $ac_optarg in
21614:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21615:     '') as_fn_error $? "missing file argument" ;;
21616:     esac
21617:     as_fn_append CONFIG_FILES " '$ac_optarg'"
21618:     ac_need_defaults=false;;
21619:   --header | --heade | --head | --hea )
21620:     $ac_shift
21621:     case $ac_optarg in
21622:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21623:     esac
21624:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21625:     ac_need_defaults=false;;
21626:   --he | --h)
21627:     # Conflict between --help and --header
21628:     as_fn_error $? "ambiguous option: \`$1'
21629: Try \`$0 --help' for more information.";;
21630:   --help | --hel | -h )
21631:     $as_echo "$ac_cs_usage"; exit ;;
21632:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21633:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21634:     ac_cs_silent=: ;;
21635: 
21636:   # This is an error.
21637:   -*) as_fn_error $? "unrecognized option: \`$1'
21638: Try \`$0 --help' for more information." ;;
21639: 
21640:   *) as_fn_append ac_config_targets " $1"
21641:      ac_need_defaults=false ;;
21642: 
21643:   esac
21644:   shift
21645: done
21646: 
21647: ac_configure_extra_args=
21648: 
21649: if $ac_cs_silent; then
21650:   exec 6>/dev/null
21651:   ac_configure_extra_args="$ac_configure_extra_args --silent"
21652: fi
21653: 
21654: _ACEOF
21655: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21656: if \$ac_cs_recheck; then
21657:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21658:   shift
21659:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21660:   CONFIG_SHELL='$SHELL'
21661:   export CONFIG_SHELL
21662:   exec "\$@"
21663: fi
21664: 
21665: _ACEOF
21666: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21667: exec 5>>config.log
21668: {
21669:   echo
21670:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21671: ## Running $as_me. ##
21672: _ASBOX
21673:   $as_echo "$ac_log"
21674: } >&5
21675: 
21676: _ACEOF
21677: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21678: #
21679: # INIT-COMMANDS
21680: #
21681: 
21682: 
21683: # The HP-UX ksh and POSIX shell print the target directory to stdout
21684: # if CDPATH is set.
21685: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21686: 
21687: sed_quote_subst='$sed_quote_subst'
21688: double_quote_subst='$double_quote_subst'
21689: delay_variable_subst='$delay_variable_subst'
21690: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21691: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21692: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21693: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21694: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21695: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21696: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21697: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21698: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21699: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21700: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21701: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21702: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21703: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21704: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21705: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21706: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21707: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21708: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21709: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21710: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21711: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21712: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21713: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21714: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21715: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21716: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21717: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21718: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21719: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21720: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21721: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21722: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21723: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21724: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21725: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21726: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21727: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21728: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21729: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21730: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21731: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21732: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21733: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21734: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21735: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21736: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21737: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21738: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21739: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21740: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21741: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21742: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21743: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21744: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21745: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21746: 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"`'
21747: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21748: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21749: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21750: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21751: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21752: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21753: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21754: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21755: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21756: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21757: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21758: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21759: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21760: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21761: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21762: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21763: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21764: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21765: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21766: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21767: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21768: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21769: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21770: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21771: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21772: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21773: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21774: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21775: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21776: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21777: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21778: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21779: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21780: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21781: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21782: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21783: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21784: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21785: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21786: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21787: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21788: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21789: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21790: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21791: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21792: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21793: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21794: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21795: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21796: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21797: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21798: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21799: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21800: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21801: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21802: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21803: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21804: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21805: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21806: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21807: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21808: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21809: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21810: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21811: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21812: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21813: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21814: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21815: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21816: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21817: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21818: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21819: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21820: 
21821: LTCC='$LTCC'
21822: LTCFLAGS='$LTCFLAGS'
21823: compiler='$compiler_DEFAULT'
21824: 
21825: # A function that is used when there is no print builtin or printf.
21826: func_fallback_echo ()
21827: {
21828:   eval 'cat <<_LTECHO_EOF
21829: \$1
21830: _LTECHO_EOF'
21831: }
21832: 
21833: # Quote evaled strings.
21834: for var in SHELL \
21835: ECHO \
21836: PATH_SEPARATOR \
21837: SED \
21838: GREP \
21839: EGREP \
21840: FGREP \
21841: LD \
21842: NM \
21843: LN_S \
21844: lt_SP2NL \
21845: lt_NL2SP \
21846: reload_flag \
21847: OBJDUMP \
21848: deplibs_check_method \
21849: file_magic_cmd \
21850: file_magic_glob \
21851: want_nocaseglob \
21852: DLLTOOL \
21853: sharedlib_from_linklib_cmd \
21854: AR \
21855: AR_FLAGS \
21856: archiver_list_spec \
21857: STRIP \
21858: RANLIB \
21859: CC \
21860: CFLAGS \
21861: compiler \
21862: lt_cv_sys_global_symbol_pipe \
21863: lt_cv_sys_global_symbol_to_cdecl \
21864: lt_cv_sys_global_symbol_to_c_name_address \
21865: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21866: nm_file_list_spec \
21867: lt_prog_compiler_no_builtin_flag \
21868: lt_prog_compiler_pic \
21869: lt_prog_compiler_wl \
21870: lt_prog_compiler_static \
21871: lt_cv_prog_compiler_c_o \
21872: need_locks \
21873: MANIFEST_TOOL \
21874: DSYMUTIL \
21875: NMEDIT \
21876: LIPO \
21877: OTOOL \
21878: OTOOL64 \
21879: shrext_cmds \
21880: export_dynamic_flag_spec \
21881: whole_archive_flag_spec \
21882: compiler_needs_object \
21883: with_gnu_ld \
21884: allow_undefined_flag \
21885: no_undefined_flag \
21886: hardcode_libdir_flag_spec \
21887: hardcode_libdir_separator \
21888: exclude_expsyms \
21889: include_expsyms \
21890: file_list_spec \
21891: variables_saved_for_relink \
21892: libname_spec \
21893: library_names_spec \
21894: soname_spec \
21895: install_override_mode \
21896: finish_eval \
21897: old_striplib \
21898: striplib; do
21899:     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21900:     *[\\\\\\\`\\"\\\$]*)
21901:       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21902:       ;;
21903:     *)
21904:       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21905:       ;;
21906:     esac
21907: done
21908: 
21909: # Double-quote double-evaled strings.
21910: for var in reload_cmds \
21911: old_postinstall_cmds \
21912: old_postuninstall_cmds \
21913: old_archive_cmds \
21914: extract_expsyms_cmds \
21915: old_archive_from_new_cmds \
21916: old_archive_from_expsyms_cmds \
21917: archive_cmds \
21918: archive_expsym_cmds \
21919: module_cmds \
21920: module_expsym_cmds \
21921: export_symbols_cmds \
21922: prelink_cmds \
21923: postlink_cmds \
21924: postinstall_cmds \
21925: postuninstall_cmds \
21926: finish_cmds \
21927: sys_lib_search_path_spec \
21928: sys_lib_dlsearch_path_spec; do
21929:     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21930:     *[\\\\\\\`\\"\\\$]*)
21931:       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21932:       ;;
21933:     *)
21934:       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21935:       ;;
21936:     esac
21937: done
21938: 
21939: ac_aux_dir='$ac_aux_dir'
21940: xsi_shell='$xsi_shell'
21941: lt_shell_append='$lt_shell_append'
21942: 
21943: # See if we are running on zsh, and set the options which allow our
21944: # commands through without removal of \ escapes INIT.
21945: if test -n "\${ZSH_VERSION+set}" ; then
21946:    setopt NO_GLOB_SUBST
21947: fi
21948: 
21949: 
21950:     PACKAGE='$PACKAGE'
21951:     VERSION='$VERSION'
21952:     TIMESTAMP='$TIMESTAMP'
21953:     RM='$RM'
21954:     ofile='$ofile'
21955: 
21956: 
21957: 
21958: 
21959: _ACEOF
21960: 
21961: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21962: 
21963: # Handling of arguments.
21964: for ac_config_target in $ac_config_targets
21965: do
21966:   case $ac_config_target in
21967:     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21968:     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
21969:     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21970:     "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
21971:     "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
21972:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21973:     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
21974:     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
21975:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21976:     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21977:     "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
21978:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21979:     "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
21980:     "plugins/sample_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample_group/Makefile" ;;
21981:     "plugins/system_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/system_group/Makefile" ;;
21982:     "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
21983:     "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
21984: 
21985:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21986:   esac
21987: done
21988: 
21989: 
21990: # If the user did not use the arguments to specify the items to instantiate,
21991: # then the envvar interface is used.  Set only those that are not.
21992: # We use the long form for the default assignment because of an extremely
21993: # bizarre bug on SunOS 4.1.3.
21994: if $ac_need_defaults; then
21995:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21996:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21997:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21998: fi
21999: 
22000: # Have a temporary directory for convenience.  Make it in the build tree
22001: # simply because there is no reason against having it here, and in addition,
22002: # creating and moving files from /tmp can sometimes cause problems.
22003: # Hook for its removal unless debugging.
22004: # Note that there is a small window in which the directory will not be cleaned:
22005: # after its creation but before its name has been assigned to `$tmp'.
22006: $debug ||
22007: {
22008:   tmp= ac_tmp=
22009:   trap 'exit_status=$?
22010:   : "${ac_tmp:=$tmp}"
22011:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22012: ' 0
22013:   trap 'as_fn_exit 1' 1 2 13 15
22014: }
22015: # Create a (secure) tmp directory for tmp files.
22016: 
22017: {
22018:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22019:   test -d "$tmp"
22020: }  ||
22021: {
22022:   tmp=./conf$$-$RANDOM
22023:   (umask 077 && mkdir "$tmp")
22024: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22025: ac_tmp=$tmp
22026: 
22027: # Set up the scripts for CONFIG_FILES section.
22028: # No need to generate them if there are no CONFIG_FILES.
22029: # This happens for instance with `./config.status config.h'.
22030: if test -n "$CONFIG_FILES"; then
22031: 
22032: 
22033: ac_cr=`echo X | tr X '\015'`
22034: # On cygwin, bash can eat \r inside `` if the user requested igncr.
22035: # But we know of no other shell where ac_cr would be empty at this
22036: # point, so we can use a bashism as a fallback.
22037: if test "x$ac_cr" = x; then
22038:   eval ac_cr=\$\'\\r\'
22039: fi
22040: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22041: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22042:   ac_cs_awk_cr='\\r'
22043: else
22044:   ac_cs_awk_cr=$ac_cr
22045: fi
22046: 
22047: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22048: _ACEOF
22049: 
22050: 
22051: {
22052:   echo "cat >conf$$subs.awk <<_ACEOF" &&
22053:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22054:   echo "_ACEOF"
22055: } >conf$$subs.sh ||
22056:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22057: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22058: ac_delim='%!_!# '
22059: for ac_last_try in false false false false false :; do
22060:   . ./conf$$subs.sh ||
22061:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22062: 
22063:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22064:   if test $ac_delim_n = $ac_delim_num; then
22065:     break
22066:   elif $ac_last_try; then
22067:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22068:   else
22069:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22070:   fi
22071: done
22072: rm -f conf$$subs.sh
22073: 
22074: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22075: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22076: _ACEOF
22077: sed -n '
22078: h
22079: s/^/S["/; s/!.*/"]=/
22080: p
22081: g
22082: s/^[^!]*!//
22083: :repl
22084: t repl
22085: s/'"$ac_delim"'$//
22086: t delim
22087: :nl
22088: h
22089: s/\(.\{148\}\)..*/\1/
22090: t more1
22091: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22092: p
22093: n
22094: b repl
22095: :more1
22096: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22097: p
22098: g
22099: s/.\{148\}//
22100: t nl
22101: :delim
22102: h
22103: s/\(.\{148\}\)..*/\1/
22104: t more2
22105: s/["\\]/\\&/g; s/^/"/; s/$/"/
22106: p
22107: b
22108: :more2
22109: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22110: p
22111: g
22112: s/.\{148\}//
22113: t delim
22114: ' <conf$$subs.awk | sed '
22115: /^[^""]/{
22116:   N
22117:   s/\n//
22118: }
22119: ' >>$CONFIG_STATUS || ac_write_fail=1
22120: rm -f conf$$subs.awk
22121: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22122: _ACAWK
22123: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22124:   for (key in S) S_is_set[key] = 1
22125:   FS = ""
22126: 
22127: }
22128: {
22129:   line = $ 0
22130:   nfields = split(line, field, "@")
22131:   substed = 0
22132:   len = length(field[1])
22133:   for (i = 2; i < nfields; i++) {
22134:     key = field[i]
22135:     keylen = length(key)
22136:     if (S_is_set[key]) {
22137:       value = S[key]
22138:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22139:       len += length(value) + length(field[++i])
22140:       substed = 1
22141:     } else
22142:       len += 1 + keylen
22143:   }
22144: 
22145:   print line
22146: }
22147: 
22148: _ACAWK
22149: _ACEOF
22150: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22151: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22152:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22153: else
22154:   cat
22155: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22156:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22157: _ACEOF
22158: 
22159: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22160: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22161: # trailing colons and then remove the whole line if VPATH becomes empty
22162: # (actually we leave an empty line to preserve line numbers).
22163: if test "x$srcdir" = x.; then
22164:   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22165: h
22166: s///
22167: s/^/:/
22168: s/[	 ]*$/:/
22169: s/:\$(srcdir):/:/g
22170: s/:\${srcdir}:/:/g
22171: s/:@srcdir@:/:/g
22172: s/^:*//
22173: s/:*$//
22174: x
22175: s/\(=[	 ]*\).*/\1/
22176: G
22177: s/\n//
22178: s/^[^=]*=[	 ]*$//
22179: }'
22180: fi
22181: 
22182: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22183: fi # test -n "$CONFIG_FILES"
22184: 
22185: # Set up the scripts for CONFIG_HEADERS section.
22186: # No need to generate them if there are no CONFIG_HEADERS.
22187: # This happens for instance with `./config.status Makefile'.
22188: if test -n "$CONFIG_HEADERS"; then
22189: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22190: BEGIN {
22191: _ACEOF
22192: 
22193: # Transform confdefs.h into an awk script `defines.awk', embedded as
22194: # here-document in config.status, that substitutes the proper values into
22195: # config.h.in to produce config.h.
22196: 
22197: # Create a delimiter string that does not exist in confdefs.h, to ease
22198: # handling of long lines.
22199: ac_delim='%!_!# '
22200: for ac_last_try in false false :; do
22201:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22202:   if test -z "$ac_tt"; then
22203:     break
22204:   elif $ac_last_try; then
22205:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22206:   else
22207:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22208:   fi
22209: done
22210: 
22211: # For the awk script, D is an array of macro values keyed by name,
22212: # likewise P contains macro parameters if any.  Preserve backslash
22213: # newline sequences.
22214: 
22215: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22216: sed -n '
22217: s/.\{148\}/&'"$ac_delim"'/g
22218: t rset
22219: :rset
22220: s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22221: t def
22222: d
22223: :def
22224: s/\\$//
22225: t bsnl
22226: s/["\\]/\\&/g
22227: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22228: D["\1"]=" \3"/p
22229: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22230: d
22231: :bsnl
22232: s/["\\]/\\&/g
22233: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22234: D["\1"]=" \3\\\\\\n"\\/p
22235: t cont
22236: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22237: t cont
22238: d
22239: :cont
22240: n
22241: s/.\{148\}/&'"$ac_delim"'/g
22242: t clear
22243: :clear
22244: s/\\$//
22245: t bsnlc
22246: s/["\\]/\\&/g; s/^/"/; s/$/"/p
22247: d
22248: :bsnlc
22249: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22250: b cont
22251: ' <confdefs.h | sed '
22252: s/'"$ac_delim"'/"\\\
22253: "/g' >>$CONFIG_STATUS || ac_write_fail=1
22254: 
22255: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22256:   for (key in D) D_is_set[key] = 1
22257:   FS = ""
22258: }
22259: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22260:   line = \$ 0
22261:   split(line, arg, " ")
22262:   if (arg[1] == "#") {
22263:     defundef = arg[2]
22264:     mac1 = arg[3]
22265:   } else {
22266:     defundef = substr(arg[1], 2)
22267:     mac1 = arg[2]
22268:   }
22269:   split(mac1, mac2, "(") #)
22270:   macro = mac2[1]
22271:   prefix = substr(line, 1, index(line, defundef) - 1)
22272:   if (D_is_set[macro]) {
22273:     # Preserve the white space surrounding the "#".
22274:     print prefix "define", macro P[macro] D[macro]
22275:     next
22276:   } else {
22277:     # Replace #undef with comments.  This is necessary, for example,
22278:     # in the case of _POSIX_SOURCE, which is predefined and required
22279:     # on some systems where configure will not decide to define it.
22280:     if (defundef == "undef") {
22281:       print "/*", prefix defundef, macro, "*/"
22282:       next
22283:     }
22284:   }
22285: }
22286: { print }
22287: _ACAWK
22288: _ACEOF
22289: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22290:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22291: fi # test -n "$CONFIG_HEADERS"
22292: 
22293: 
22294: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22295: shift
22296: for ac_tag
22297: do
22298:   case $ac_tag in
22299:   :[FHLC]) ac_mode=$ac_tag; continue;;
22300:   esac
22301:   case $ac_mode$ac_tag in
22302:   :[FHL]*:*);;
22303:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22304:   :[FH]-) ac_tag=-:-;;
22305:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22306:   esac
22307:   ac_save_IFS=$IFS
22308:   IFS=:
22309:   set x $ac_tag
22310:   IFS=$ac_save_IFS
22311:   shift
22312:   ac_file=$1
22313:   shift
22314: 
22315:   case $ac_mode in
22316:   :L) ac_source=$1;;
22317:   :[FH])
22318:     ac_file_inputs=
22319:     for ac_f
22320:     do
22321:       case $ac_f in
22322:       -) ac_f="$ac_tmp/stdin";;
22323:       *) # Look for the file first in the build tree, then in the source tree
22324: 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22325: 	 # because $ac_f cannot contain `:'.
22326: 	 test -f "$ac_f" ||
22327: 	   case $ac_f in
22328: 	   [\\/$]*) false;;
22329: 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22330: 	   esac ||
22331: 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22332:       esac
22333:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22334:       as_fn_append ac_file_inputs " '$ac_f'"
22335:     done
22336: 
22337:     # Let's still pretend it is `configure' which instantiates (i.e., don't
22338:     # use $as_me), people would be surprised to read:
22339:     #    /* config.h.  Generated by config.status.  */
22340:     configure_input='Generated from '`
22341: 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22342: 	`' by configure.'
22343:     if test x"$ac_file" != x-; then
22344:       configure_input="$ac_file.  $configure_input"
22345:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22346: $as_echo "$as_me: creating $ac_file" >&6;}
22347:     fi
22348:     # Neutralize special characters interpreted by sed in replacement strings.
22349:     case $configure_input in #(
22350:     *\&* | *\|* | *\\* )
22351:        ac_sed_conf_input=`$as_echo "$configure_input" |
22352:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22353:     *) ac_sed_conf_input=$configure_input;;
22354:     esac
22355: 
22356:     case $ac_tag in
22357:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22358:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22359:     esac
22360:     ;;
22361:   esac
22362: 
22363:   ac_dir=`$as_dirname -- "$ac_file" ||
22364: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22365: 	 X"$ac_file" : 'X\(//\)[^/]' \| \
22366: 	 X"$ac_file" : 'X\(//\)$' \| \
22367: 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22368: $as_echo X"$ac_file" |
22369:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22370: 	    s//\1/
22371: 	    q
22372: 	  }
22373: 	  /^X\(\/\/\)[^/].*/{
22374: 	    s//\1/
22375: 	    q
22376: 	  }
22377: 	  /^X\(\/\/\)$/{
22378: 	    s//\1/
22379: 	    q
22380: 	  }
22381: 	  /^X\(\/\).*/{
22382: 	    s//\1/
22383: 	    q
22384: 	  }
22385: 	  s/.*/./; q'`
22386:   as_dir="$ac_dir"; as_fn_mkdir_p
22387:   ac_builddir=.
22388: 
22389: case "$ac_dir" in
22390: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22391: *)
22392:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22393:   # A ".." for each directory in $ac_dir_suffix.
22394:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22395:   case $ac_top_builddir_sub in
22396:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22397:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22398:   esac ;;
22399: esac
22400: ac_abs_top_builddir=$ac_pwd
22401: ac_abs_builddir=$ac_pwd$ac_dir_suffix
22402: # for backward compatibility:
22403: ac_top_builddir=$ac_top_build_prefix
22404: 
22405: case $srcdir in
22406:   .)  # We are building in place.
22407:     ac_srcdir=.
22408:     ac_top_srcdir=$ac_top_builddir_sub
22409:     ac_abs_top_srcdir=$ac_pwd ;;
22410:   [\\/]* | ?:[\\/]* )  # Absolute name.
22411:     ac_srcdir=$srcdir$ac_dir_suffix;
22412:     ac_top_srcdir=$srcdir
22413:     ac_abs_top_srcdir=$srcdir ;;
22414:   *) # Relative name.
22415:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22416:     ac_top_srcdir=$ac_top_build_prefix$srcdir
22417:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22418: esac
22419: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22420: 
22421: 
22422:   case $ac_mode in
22423:   :F)
22424:   #
22425:   # CONFIG_FILE
22426:   #
22427: 
22428: _ACEOF
22429: 
22430: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22431: # If the template does not know about datarootdir, expand it.
22432: # FIXME: This hack should be removed a few years after 2.60.
22433: ac_datarootdir_hack=; ac_datarootdir_seen=
22434: ac_sed_dataroot='
22435: /datarootdir/ {
22436:   p
22437:   q
22438: }
22439: /@datadir@/p
22440: /@docdir@/p
22441: /@infodir@/p
22442: /@localedir@/p
22443: /@mandir@/p'
22444: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22445: *datarootdir*) ac_datarootdir_seen=yes;;
22446: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22447:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22448: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22449: _ACEOF
22450: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22451:   ac_datarootdir_hack='
22452:   s&@datadir@&$datadir&g
22453:   s&@docdir@&$docdir&g
22454:   s&@infodir@&$infodir&g
22455:   s&@localedir@&$localedir&g
22456:   s&@mandir@&$mandir&g
22457:   s&\\\${datarootdir}&$datarootdir&g' ;;
22458: esac
22459: _ACEOF
22460: 
22461: # Neutralize VPATH when `$srcdir' = `.'.
22462: # Shell code in configure.ac might set extrasub.
22463: # FIXME: do we really want to maintain this feature?
22464: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22465: ac_sed_extra="$ac_vpsub
22466: $extrasub
22467: _ACEOF
22468: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22469: :t
22470: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22471: s|@configure_input@|$ac_sed_conf_input|;t t
22472: s&@top_builddir@&$ac_top_builddir_sub&;t t
22473: s&@top_build_prefix@&$ac_top_build_prefix&;t t
22474: s&@srcdir@&$ac_srcdir&;t t
22475: s&@abs_srcdir@&$ac_abs_srcdir&;t t
22476: s&@top_srcdir@&$ac_top_srcdir&;t t
22477: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22478: s&@builddir@&$ac_builddir&;t t
22479: s&@abs_builddir@&$ac_abs_builddir&;t t
22480: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22481: $ac_datarootdir_hack
22482: "
22483: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22484:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22485: 
22486: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22487:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22488:   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22489:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22490:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22491: which seems to be undefined.  Please make sure it is defined" >&5
22492: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22493: which seems to be undefined.  Please make sure it is defined" >&2;}
22494: 
22495:   rm -f "$ac_tmp/stdin"
22496:   case $ac_file in
22497:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22498:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22499:   esac \
22500:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22501:  ;;
22502:   :H)
22503:   #
22504:   # CONFIG_HEADER
22505:   #
22506:   if test x"$ac_file" != x-; then
22507:     {
22508:       $as_echo "/* $configure_input  */" \
22509:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22510:     } >"$ac_tmp/config.h" \
22511:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22512:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22513:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22514: $as_echo "$as_me: $ac_file is unchanged" >&6;}
22515:     else
22516:       rm -f "$ac_file"
22517:       mv "$ac_tmp/config.h" "$ac_file" \
22518: 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22519:     fi
22520:   else
22521:     $as_echo "/* $configure_input  */" \
22522:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22523:       || as_fn_error $? "could not create -" "$LINENO" 5
22524:   fi
22525:  ;;
22526: 
22527:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22528: $as_echo "$as_me: executing $ac_file commands" >&6;}
22529:  ;;
22530:   esac
22531: 
22532: 
22533:   case $ac_file$ac_mode in
22534:     "libtool":C)
22535: 
22536:     # See if we are running on zsh, and set the options which allow our
22537:     # commands through without removal of \ escapes.
22538:     if test -n "${ZSH_VERSION+set}" ; then
22539:       setopt NO_GLOB_SUBST
22540:     fi
22541: 
22542:     cfgfile="${ofile}T"
22543:     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22544:     $RM "$cfgfile"
22545: 
22546:     cat <<_LT_EOF >> "$cfgfile"
22547: #! $SHELL
22548: 
22549: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22550: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22551: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22552: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22553: #
22554: #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22555: #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22556: #                 Foundation, Inc.
22557: #   Written by Gordon Matzigkeit, 1996
22558: #
22559: #   This file is part of GNU Libtool.
22560: #
22561: # GNU Libtool is free software; you can redistribute it and/or
22562: # modify it under the terms of the GNU General Public License as
22563: # published by the Free Software Foundation; either version 2 of
22564: # the License, or (at your option) any later version.
22565: #
22566: # As a special exception to the GNU General Public License,
22567: # if you distribute this file as part of a program or library that
22568: # is built using GNU Libtool, you may include this file under the
22569: # same distribution terms that you use for the rest of that program.
22570: #
22571: # GNU Libtool is distributed in the hope that it will be useful,
22572: # but WITHOUT ANY WARRANTY; without even the implied warranty of
22573: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22574: # GNU General Public License for more details.
22575: #
22576: # You should have received a copy of the GNU General Public License
22577: # along with GNU Libtool; see the file COPYING.  If not, a copy
22578: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22579: # obtained by writing to the Free Software Foundation, Inc.,
22580: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22581: 
22582: 
22583: # The names of the tagged configurations supported by this script.
22584: available_tags=""
22585: 
22586: # ### BEGIN LIBTOOL CONFIG
22587: 
22588: # Which release of libtool.m4 was used?
22589: macro_version=$macro_version
22590: macro_revision=$macro_revision
22591: 
22592: # Whether or not to build shared libraries.
22593: build_libtool_libs=$enable_shared
22594: 
22595: # Whether or not to build static libraries.
22596: build_old_libs=$enable_static
22597: 
22598: # What type of objects to build.
22599: pic_mode=$pic_mode
22600: 
22601: # Whether or not to optimize for fast installation.
22602: fast_install=$enable_fast_install
22603: 
22604: # Shell to use when invoking shell scripts.
22605: SHELL=$lt_SHELL
22606: 
22607: # An echo program that protects backslashes.
22608: ECHO=$lt_ECHO
22609: 
22610: # The PATH separator for the build system.
22611: PATH_SEPARATOR=$lt_PATH_SEPARATOR
22612: 
22613: # The host system.
22614: host_alias=$host_alias
22615: host=$host
22616: host_os=$host_os
22617: 
22618: # The build system.
22619: build_alias=$build_alias
22620: build=$build
22621: build_os=$build_os
22622: 
22623: # A sed program that does not truncate output.
22624: SED=$lt_SED
22625: 
22626: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22627: Xsed="\$SED -e 1s/^X//"
22628: 
22629: # A grep program that handles long lines.
22630: GREP=$lt_GREP
22631: 
22632: # An ERE matcher.
22633: EGREP=$lt_EGREP
22634: 
22635: # A literal string matcher.
22636: FGREP=$lt_FGREP
22637: 
22638: # A BSD- or MS-compatible name lister.
22639: NM=$lt_NM
22640: 
22641: # Whether we need soft or hard links.
22642: LN_S=$lt_LN_S
22643: 
22644: # What is the maximum length of a command?
22645: max_cmd_len=$max_cmd_len
22646: 
22647: # Object file suffix (normally "o").
22648: objext=$ac_objext
22649: 
22650: # Executable file suffix (normally "").
22651: exeext=$exeext
22652: 
22653: # whether the shell understands "unset".
22654: lt_unset=$lt_unset
22655: 
22656: # turn spaces into newlines.
22657: SP2NL=$lt_lt_SP2NL
22658: 
22659: # turn newlines into spaces.
22660: NL2SP=$lt_lt_NL2SP
22661: 
22662: # convert \$build file names to \$host format.
22663: to_host_file_cmd=$lt_cv_to_host_file_cmd
22664: 
22665: # convert \$build files to toolchain format.
22666: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22667: 
22668: # An object symbol dumper.
22669: OBJDUMP=$lt_OBJDUMP
22670: 
22671: # Method to check whether dependent libraries are shared objects.
22672: deplibs_check_method=$lt_deplibs_check_method
22673: 
22674: # Command to use when deplibs_check_method = "file_magic".
22675: file_magic_cmd=$lt_file_magic_cmd
22676: 
22677: # How to find potential files when deplibs_check_method = "file_magic".
22678: file_magic_glob=$lt_file_magic_glob
22679: 
22680: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22681: want_nocaseglob=$lt_want_nocaseglob
22682: 
22683: # DLL creation program.
22684: DLLTOOL=$lt_DLLTOOL
22685: 
22686: # Command to associate shared and link libraries.
22687: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22688: 
22689: # The archiver.
22690: AR=$lt_AR
22691: 
22692: # Flags to create an archive.
22693: AR_FLAGS=$lt_AR_FLAGS
22694: 
22695: # How to feed a file listing to the archiver.
22696: archiver_list_spec=$lt_archiver_list_spec
22697: 
22698: # A symbol stripping program.
22699: STRIP=$lt_STRIP
22700: 
22701: # Commands used to install an old-style archive.
22702: RANLIB=$lt_RANLIB
22703: old_postinstall_cmds=$lt_old_postinstall_cmds
22704: old_postuninstall_cmds=$lt_old_postuninstall_cmds
22705: 
22706: # Whether to use a lock for old archive extraction.
22707: lock_old_archive_extraction=$lock_old_archive_extraction
22708: 
22709: # A C compiler.
22710: LTCC=$lt_CC
22711: 
22712: # LTCC compiler flags.
22713: LTCFLAGS=$lt_CFLAGS
22714: 
22715: # Take the output of nm and produce a listing of raw symbols and C names.
22716: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22717: 
22718: # Transform the output of nm in a proper C declaration.
22719: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22720: 
22721: # Transform the output of nm in a C name address pair.
22722: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22723: 
22724: # Transform the output of nm in a C name address pair when lib prefix is needed.
22725: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22726: 
22727: # Specify filename containing input files for \$NM.
22728: nm_file_list_spec=$lt_nm_file_list_spec
22729: 
22730: # The root where to search for dependent libraries,and in which our libraries should be installed.
22731: lt_sysroot=$lt_sysroot
22732: 
22733: # The name of the directory that contains temporary libtool files.
22734: objdir=$objdir
22735: 
22736: # Used to examine libraries when file_magic_cmd begins with "file".
22737: MAGIC_CMD=$MAGIC_CMD
22738: 
22739: # Must we lock files when doing compilation?
22740: need_locks=$lt_need_locks
22741: 
22742: # Manifest tool.
22743: MANIFEST_TOOL=$lt_MANIFEST_TOOL
22744: 
22745: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22746: DSYMUTIL=$lt_DSYMUTIL
22747: 
22748: # Tool to change global to local symbols on Mac OS X.
22749: NMEDIT=$lt_NMEDIT
22750: 
22751: # Tool to manipulate fat objects and archives on Mac OS X.
22752: LIPO=$lt_LIPO
22753: 
22754: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22755: OTOOL=$lt_OTOOL
22756: 
22757: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22758: OTOOL64=$lt_OTOOL64
22759: 
22760: # Old archive suffix (normally "a").
22761: libext=$libext
22762: 
22763: # Shared library suffix (normally ".so").
22764: shrext_cmds=$lt_shrext_cmds
22765: 
22766: # The commands to extract the exported symbol list from a shared archive.
22767: extract_expsyms_cmds=$lt_extract_expsyms_cmds
22768: 
22769: # Variables whose values should be saved in libtool wrapper scripts and
22770: # restored at link time.
22771: variables_saved_for_relink=$lt_variables_saved_for_relink
22772: 
22773: # Do we need the "lib" prefix for modules?
22774: need_lib_prefix=$need_lib_prefix
22775: 
22776: # Do we need a version for libraries?
22777: need_version=$need_version
22778: 
22779: # Library versioning type.
22780: version_type=$version_type
22781: 
22782: # Shared library runtime path variable.
22783: runpath_var=$runpath_var
22784: 
22785: # Shared library path variable.
22786: shlibpath_var=$shlibpath_var
22787: 
22788: # Is shlibpath searched before the hard-coded library search path?
22789: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22790: 
22791: # Format of library name prefix.
22792: libname_spec=$lt_libname_spec
22793: 
22794: # List of archive names.  First name is the real one, the rest are links.
22795: # The last name is the one that the linker finds with -lNAME
22796: library_names_spec=$lt_library_names_spec
22797: 
22798: # The coded name of the library, if different from the real name.
22799: soname_spec=$lt_soname_spec
22800: 
22801: # Permission mode override for installation of shared libraries.
22802: install_override_mode=$lt_install_override_mode
22803: 
22804: # Command to use after installation of a shared archive.
22805: postinstall_cmds=$lt_postinstall_cmds
22806: 
22807: # Command to use after uninstallation of a shared archive.
22808: postuninstall_cmds=$lt_postuninstall_cmds
22809: 
22810: # Commands used to finish a libtool library installation in a directory.
22811: finish_cmds=$lt_finish_cmds
22812: 
22813: # As "finish_cmds", except a single script fragment to be evaled but
22814: # not shown.
22815: finish_eval=$lt_finish_eval
22816: 
22817: # Whether we should hardcode library paths into libraries.
22818: hardcode_into_libs=$hardcode_into_libs
22819: 
22820: # Compile-time system search path for libraries.
22821: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22822: 
22823: # Run-time system search path for libraries.
22824: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22825: 
22826: # Whether dlopen is supported.
22827: dlopen_support=$enable_dlopen
22828: 
22829: # Whether dlopen of programs is supported.
22830: dlopen_self=$enable_dlopen_self
22831: 
22832: # Whether dlopen of statically linked programs is supported.
22833: dlopen_self_static=$enable_dlopen_self_static
22834: 
22835: # Commands to strip libraries.
22836: old_striplib=$lt_old_striplib
22837: striplib=$lt_striplib
22838: 
22839: 
22840: # The linker used to build libraries.
22841: LD=$lt_LD
22842: 
22843: # How to create reloadable object files.
22844: reload_flag=$lt_reload_flag
22845: reload_cmds=$lt_reload_cmds
22846: 
22847: # Commands used to build an old-style archive.
22848: old_archive_cmds=$lt_old_archive_cmds
22849: 
22850: # A language specific compiler.
22851: CC=$lt_compiler
22852: 
22853: # Is the compiler the GNU compiler?
22854: with_gcc=$GCC
22855: 
22856: # Compiler flag to turn off builtin functions.
22857: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22858: 
22859: # Additional compiler flags for building library objects.
22860: pic_flag=$lt_lt_prog_compiler_pic
22861: 
22862: # How to pass a linker flag through the compiler.
22863: wl=$lt_lt_prog_compiler_wl
22864: 
22865: # Compiler flag to prevent dynamic linking.
22866: link_static_flag=$lt_lt_prog_compiler_static
22867: 
22868: # Does compiler simultaneously support -c and -o options?
22869: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22870: 
22871: # Whether or not to add -lc for building shared libraries.
22872: build_libtool_need_lc=$archive_cmds_need_lc
22873: 
22874: # Whether or not to disallow shared libs when runtime libs are static.
22875: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22876: 
22877: # Compiler flag to allow reflexive dlopens.
22878: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22879: 
22880: # Compiler flag to generate shared objects directly from archives.
22881: whole_archive_flag_spec=$lt_whole_archive_flag_spec
22882: 
22883: # Whether the compiler copes with passing no objects directly.
22884: compiler_needs_object=$lt_compiler_needs_object
22885: 
22886: # Create an old-style archive from a shared archive.
22887: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22888: 
22889: # Create a temporary old-style archive to link instead of a shared archive.
22890: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22891: 
22892: # Commands used to build a shared archive.
22893: archive_cmds=$lt_archive_cmds
22894: archive_expsym_cmds=$lt_archive_expsym_cmds
22895: 
22896: # Commands used to build a loadable module if different from building
22897: # a shared archive.
22898: module_cmds=$lt_module_cmds
22899: module_expsym_cmds=$lt_module_expsym_cmds
22900: 
22901: # Whether we are building with GNU ld or not.
22902: with_gnu_ld=$lt_with_gnu_ld
22903: 
22904: # Flag that allows shared libraries with undefined symbols to be built.
22905: allow_undefined_flag=$lt_allow_undefined_flag
22906: 
22907: # Flag that enforces no undefined symbols.
22908: no_undefined_flag=$lt_no_undefined_flag
22909: 
22910: # Flag to hardcode \$libdir into a binary during linking.
22911: # This must work even if \$libdir does not exist
22912: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22913: 
22914: # Whether we need a single "-rpath" flag with a separated argument.
22915: hardcode_libdir_separator=$lt_hardcode_libdir_separator
22916: 
22917: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22918: # DIR into the resulting binary.
22919: hardcode_direct=$hardcode_direct
22920: 
22921: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22922: # DIR into the resulting binary and the resulting library dependency is
22923: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22924: # library is relocated.
22925: hardcode_direct_absolute=$hardcode_direct_absolute
22926: 
22927: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22928: # into the resulting binary.
22929: hardcode_minus_L=$hardcode_minus_L
22930: 
22931: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22932: # into the resulting binary.
22933: hardcode_shlibpath_var=$hardcode_shlibpath_var
22934: 
22935: # Set to "yes" if building a shared library automatically hardcodes DIR
22936: # into the library and all subsequent libraries and executables linked
22937: # against it.
22938: hardcode_automatic=$hardcode_automatic
22939: 
22940: # Set to yes if linker adds runtime paths of dependent libraries
22941: # to runtime path list.
22942: inherit_rpath=$inherit_rpath
22943: 
22944: # Whether libtool must link a program against all its dependency libraries.
22945: link_all_deplibs=$link_all_deplibs
22946: 
22947: # Set to "yes" if exported symbols are required.
22948: always_export_symbols=$always_export_symbols
22949: 
22950: # The commands to list exported symbols.
22951: export_symbols_cmds=$lt_export_symbols_cmds
22952: 
22953: # Symbols that should not be listed in the preloaded symbols.
22954: exclude_expsyms=$lt_exclude_expsyms
22955: 
22956: # Symbols that must always be exported.
22957: include_expsyms=$lt_include_expsyms
22958: 
22959: # Commands necessary for linking programs (against libraries) with templates.
22960: prelink_cmds=$lt_prelink_cmds
22961: 
22962: # Commands necessary for finishing linking programs.
22963: postlink_cmds=$lt_postlink_cmds
22964: 
22965: # Specify filename containing input files.
22966: file_list_spec=$lt_file_list_spec
22967: 
22968: # How to hardcode a shared library path into an executable.
22969: hardcode_action=$hardcode_action
22970: 
22971: # ### END LIBTOOL CONFIG
22972: 
22973: _LT_EOF
22974: 
22975:   case $host_os in
22976:   aix3*)
22977:     cat <<\_LT_EOF >> "$cfgfile"
22978: # AIX sometimes has problems with the GCC collect2 program.  For some
22979: # reason, if we set the COLLECT_NAMES environment variable, the problems
22980: # vanish in a puff of smoke.
22981: if test "X${COLLECT_NAMES+set}" != Xset; then
22982:   COLLECT_NAMES=
22983:   export COLLECT_NAMES
22984: fi
22985: _LT_EOF
22986:     ;;
22987:   esac
22988: 
22989: 
22990: ltmain="$ac_aux_dir/ltmain.sh"
22991: 
22992: 
22993:   # We use sed instead of cat because bash on DJGPP gets confused if
22994:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22995:   # text mode, it properly converts lines to CR/LF.  This bash problem
22996:   # is reportedly fixed, but why not run on old versions too?
22997:   sed '$q' "$ltmain" >> "$cfgfile" \
22998:      || (rm -f "$cfgfile"; exit 1)
22999: 
23000:   if test x"$xsi_shell" = xyes; then
23001:   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23002: func_dirname ()\
23003: {\
23004: \    case ${1} in\
23005: \      */*) func_dirname_result="${1%/*}${2}" ;;\
23006: \      *  ) func_dirname_result="${3}" ;;\
23007: \    esac\
23008: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23009:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23010:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23011: test 0 -eq $? || _lt_function_replace_fail=:
23012: 
23013: 
23014:   sed -e '/^func_basename ()$/,/^} # func_basename /c\
23015: func_basename ()\
23016: {\
23017: \    func_basename_result="${1##*/}"\
23018: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23019:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23020:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23021: test 0 -eq $? || _lt_function_replace_fail=:
23022: 
23023: 
23024:   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23025: func_dirname_and_basename ()\
23026: {\
23027: \    case ${1} in\
23028: \      */*) func_dirname_result="${1%/*}${2}" ;;\
23029: \      *  ) func_dirname_result="${3}" ;;\
23030: \    esac\
23031: \    func_basename_result="${1##*/}"\
23032: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23033:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23034:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23035: test 0 -eq $? || _lt_function_replace_fail=:
23036: 
23037: 
23038:   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23039: func_stripname ()\
23040: {\
23041: \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23042: \    # positional parameters, so assign one to ordinary parameter first.\
23043: \    func_stripname_result=${3}\
23044: \    func_stripname_result=${func_stripname_result#"${1}"}\
23045: \    func_stripname_result=${func_stripname_result%"${2}"}\
23046: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23047:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23048:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23049: test 0 -eq $? || _lt_function_replace_fail=:
23050: 
23051: 
23052:   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23053: func_split_long_opt ()\
23054: {\
23055: \    func_split_long_opt_name=${1%%=*}\
23056: \    func_split_long_opt_arg=${1#*=}\
23057: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23058:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23059:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23060: test 0 -eq $? || _lt_function_replace_fail=:
23061: 
23062: 
23063:   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23064: func_split_short_opt ()\
23065: {\
23066: \    func_split_short_opt_arg=${1#??}\
23067: \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23068: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23069:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23070:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23071: test 0 -eq $? || _lt_function_replace_fail=:
23072: 
23073: 
23074:   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23075: func_lo2o ()\
23076: {\
23077: \    case ${1} in\
23078: \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23079: \      *)    func_lo2o_result=${1} ;;\
23080: \    esac\
23081: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23082:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23083:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23084: test 0 -eq $? || _lt_function_replace_fail=:
23085: 
23086: 
23087:   sed -e '/^func_xform ()$/,/^} # func_xform /c\
23088: func_xform ()\
23089: {\
23090:     func_xform_result=${1%.*}.lo\
23091: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23092:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23093:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23094: test 0 -eq $? || _lt_function_replace_fail=:
23095: 
23096: 
23097:   sed -e '/^func_arith ()$/,/^} # func_arith /c\
23098: func_arith ()\
23099: {\
23100:     func_arith_result=$(( $* ))\
23101: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23102:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23103:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23104: test 0 -eq $? || _lt_function_replace_fail=:
23105: 
23106: 
23107:   sed -e '/^func_len ()$/,/^} # func_len /c\
23108: func_len ()\
23109: {\
23110:     func_len_result=${#1}\
23111: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23112:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23113:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23114: test 0 -eq $? || _lt_function_replace_fail=:
23115: 
23116: fi
23117: 
23118: if test x"$lt_shell_append" = xyes; then
23119:   sed -e '/^func_append ()$/,/^} # func_append /c\
23120: func_append ()\
23121: {\
23122:     eval "${1}+=\\${2}"\
23123: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23124:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23125:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23126: test 0 -eq $? || _lt_function_replace_fail=:
23127: 
23128: 
23129:   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23130: func_append_quoted ()\
23131: {\
23132: \    func_quote_for_eval "${2}"\
23133: \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23134: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23135:   && mv -f "$cfgfile.tmp" "$cfgfile" \
23136:     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23137: test 0 -eq $? || _lt_function_replace_fail=:
23138: 
23139: 
23140:   # Save a `func_append' function call where possible by direct use of '+='
23141:   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23142:     && mv -f "$cfgfile.tmp" "$cfgfile" \
23143:       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23144:   test 0 -eq $? || _lt_function_replace_fail=:
23145: else
23146:   # Save a `func_append' function call even when '+=' is not available
23147:   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23148:     && mv -f "$cfgfile.tmp" "$cfgfile" \
23149:       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23150:   test 0 -eq $? || _lt_function_replace_fail=:
23151: fi
23152: 
23153: if test x"$_lt_function_replace_fail" = x":"; then
23154:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23155: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23156: fi
23157: 
23158: 
23159:    mv -f "$cfgfile" "$ofile" ||
23160:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23161:   chmod +x "$ofile"
23162: 
23163:  ;;
23164: 
23165:   esac
23166: done # for ac_tag
23167: 
23168: 
23169: as_fn_exit 0
23170: _ACEOF
23171: ac_clean_files=$ac_clean_files_save
23172: 
23173: test $ac_write_fail = 0 ||
23174:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23175: 
23176: 
23177: # configure is writing to config.log, and then calls config.status.
23178: # config.status does its own redirection, appending to config.log.
23179: # Unfortunately, on DOS this fails, as config.log is still kept open
23180: # by configure, so config.status won't be able to write to it; its
23181: # output is simply discarded.  So we exec the FD to /dev/null,
23182: # effectively closing config.log, so it can be properly (re)opened and
23183: # appended to by config.status.  When coming back to configure, we
23184: # need to make the FD available again.
23185: if test "$no_create" != yes; then
23186:   ac_cs_success=:
23187:   ac_config_status_args=
23188:   test "$silent" = yes &&
23189:     ac_config_status_args="$ac_config_status_args --quiet"
23190:   exec 5>/dev/null
23191:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23192:   exec 5>>config.log
23193:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23194:   # would make configure fail if this is the last instruction.
23195:   $ac_cs_success || as_fn_exit 1
23196: fi
23197: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23198:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23199: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23200: fi
23201: 
23202: 
23203: if test "$with_pam" = "yes"; then
23204:     case $host in
23205: 	*-*-hpux*)
23206: 	    if test -f /usr/lib/security/libpam_hpsec.so.1; then
23207: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
23208: $as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
23209: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
23210: $as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
23211: 	    fi
23212: 	    ;;
23213: 	*-*-linux*)
23214: 	    { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
23215: $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
23216: 	    ;;
23217:     esac
23218: fi
23219: 
23220: 
23221: 
23222: 
23223: 
23224: 
23225: 
23226: 
23227: 
23228: 
23229: 
23230: 
23231: 
23232: 
23233: 
23234: 
23235: 
23236: 
23237: 
23238: 
23239: 
23240: 
23241: 
23242: 
23243: 
23244: 
23245: 
23246: 
23247: 
23248: 
23249: 
23250: 
23251: 
23252: 
23253: 
23254: 
23255: 
23256: 
23257: 
23258: 
23259: 
23260: 
23261: 
23262: 
23263: 
23264: 
23265: 
23266: 
23267: 
23268: 
23269: 
23270: 
23271: 
23272: 
23273: 
23274: 
23275: 
23276: 
23277: 
23278: 
23279: 
23280: 
23281: 
23282: 
23283: 
23284: 
23285: 
23286: 
23287: 
23288: 
23289: 
23290: 
23291: 
23292: 
23293: 
23294: 
23295: 
23296: 
23297: 
23298: 
23299: 
23300: 
23301: 
23302: 
23303: 
23304: 
23305: 
23306: 
23307: 
23308: 
23309: 
23310: 
23311: 
23312: 
23313: 
23314: 
23315: 
23316: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>