File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / smartmontools / configure
Revision 1.1.1.4 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 07:54:03 2013 UTC (10 years, 7 months ago) by misho
Branches: smartmontools, elwix, MAIN
CVS tags: v6_2, HEAD
v 6.2

    1: #! /bin/sh
    2: # Guess values for system-dependent variables and create Makefiles.
    3: # Generated by GNU Autoconf 2.69 for smartmontools 6.2.
    4: #
    5: # Report bugs to <smartmontools-support@lists.sourceforge.net>.
    6: #
    7: #
    8: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    9: #
   10: #
   11: # This configure script is free software; the Free Software Foundation
   12: # gives unlimited permission to copy, distribute and modify it.
   13: ## -------------------- ##
   14: ## M4sh Initialization. ##
   15: ## -------------------- ##
   16: 
   17: # Be more Bourne compatible
   18: DUALCASE=1; export DUALCASE # for MKS sh
   19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   20:   emulate sh
   21:   NULLCMD=:
   22:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   23:   # is contrary to our usage.  Disable this feature.
   24:   alias -g '${1+"$@"}'='"$@"'
   25:   setopt NO_GLOB_SUBST
   26: else
   27:   case `(set -o) 2>/dev/null` in #(
   28:   *posix*) :
   29:     set -o posix ;; #(
   30:   *) :
   31:      ;;
   32: esac
   33: fi
   34: 
   35: 
   36: as_nl='
   37: '
   38: export as_nl
   39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
   40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   43: # Prefer a ksh shell builtin over an external printf program on Solaris,
   44: # but without wasting forks for bash or zsh.
   45: if test -z "$BASH_VERSION$ZSH_VERSION" \
   46:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   47:   as_echo='print -r --'
   48:   as_echo_n='print -rn --'
   49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   50:   as_echo='printf %s\n'
   51:   as_echo_n='printf %s'
   52: else
   53:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   54:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   55:     as_echo_n='/usr/ucb/echo -n'
   56:   else
   57:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   58:     as_echo_n_body='eval
   59:       arg=$1;
   60:       case $arg in #(
   61:       *"$as_nl"*)
   62: 	expr "X$arg" : "X\\(.*\\)$as_nl";
   63: 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   64:       esac;
   65:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   66:     '
   67:     export as_echo_n_body
   68:     as_echo_n='sh -c $as_echo_n_body as_echo'
   69:   fi
   70:   export as_echo_body
   71:   as_echo='sh -c $as_echo_body as_echo'
   72: fi
   73: 
   74: # The user is always right.
   75: if test "${PATH_SEPARATOR+set}" != set; then
   76:   PATH_SEPARATOR=:
   77:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   78:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   79:       PATH_SEPARATOR=';'
   80:   }
   81: fi
   82: 
   83: 
   84: # IFS
   85: # We need space, tab and new line, in precisely that order.  Quoting is
   86: # there to prevent editors from complaining about space-tab.
   87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   88: # splitting by setting IFS to empty value.)
   89: IFS=" ""	$as_nl"
   90: 
   91: # Find who we are.  Look in the path if we contain no directory separator.
   92: as_myself=
   93: case $0 in #((
   94:   *[\\/]* ) as_myself=$0 ;;
   95:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   96: for as_dir in $PATH
   97: do
   98:   IFS=$as_save_IFS
   99:   test -z "$as_dir" && as_dir=.
  100:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101:   done
  102: IFS=$as_save_IFS
  103: 
  104:      ;;
  105: esac
  106: # We did not find ourselves, most probably we were run as `sh COMMAND'
  107: # in which case we are not to be found in the path.
  108: if test "x$as_myself" = x; then
  109:   as_myself=$0
  110: fi
  111: if test ! -f "$as_myself"; then
  112:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  113:   exit 1
  114: fi
  115: 
  116: # Unset variables that we do not need and which cause bugs (e.g. in
  117: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  118: # suppresses any "Segmentation fault" message there.  '((' could
  119: # trigger a bug in pdksh 5.2.14.
  120: for as_var in BASH_ENV ENV MAIL MAILPATH
  121: do eval test x\${$as_var+set} = xset \
  122:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  123: done
  124: PS1='$ '
  125: PS2='> '
  126: PS4='+ '
  127: 
  128: # NLS nuisances.
  129: LC_ALL=C
  130: export LC_ALL
  131: LANGUAGE=C
  132: export LANGUAGE
  133: 
  134: # CDPATH.
  135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  136: 
  137: # Use a proper internal environment variable to ensure we don't fall
  138:   # into an infinite loop, continuously re-executing ourselves.
  139:   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  140:     _as_can_reexec=no; export _as_can_reexec;
  141:     # We cannot yet assume a decent shell, so we have to provide a
  142: # neutralization value for shells without unset; and this also
  143: # works around shells that cannot unset nonexistent variables.
  144: # Preserve -v and -x to the replacement shell.
  145: BASH_ENV=/dev/null
  146: ENV=/dev/null
  147: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  148: case $- in # ((((
  149:   *v*x* | *x*v* ) as_opts=-vx ;;
  150:   *v* ) as_opts=-v ;;
  151:   *x* ) as_opts=-x ;;
  152:   * ) as_opts= ;;
  153: esac
  154: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  155: # Admittedly, this is quite paranoid, since all the known shells bail
  156: # out after a failed `exec'.
  157: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  158: as_fn_exit 255
  159:   fi
  160:   # We don't want this to propagate to other subprocesses.
  161:           { _as_can_reexec=; unset _as_can_reexec;}
  162: if test "x$CONFIG_SHELL" = x; then
  163:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  164:   emulate sh
  165:   NULLCMD=:
  166:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  167:   # is contrary to our usage.  Disable this feature.
  168:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  169:   setopt NO_GLOB_SUBST
  170: else
  171:   case \`(set -o) 2>/dev/null\` in #(
  172:   *posix*) :
  173:     set -o posix ;; #(
  174:   *) :
  175:      ;;
  176: esac
  177: fi
  178: "
  179:   as_required="as_fn_return () { (exit \$1); }
  180: as_fn_success () { as_fn_return 0; }
  181: as_fn_failure () { as_fn_return 1; }
  182: as_fn_ret_success () { return 0; }
  183: as_fn_ret_failure () { return 1; }
  184: 
  185: exitcode=0
  186: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  187: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  188: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  189: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  190: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  191: 
  192: else
  193:   exitcode=1; echo positional parameters were not saved.
  194: fi
  195: test x\$exitcode = x0 || exit 1
  196: test -x / || exit 1"
  197:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  198:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  199:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  200:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  201: test \$(( 1 + 1 )) = 2 || exit 1"
  202:   if (eval "$as_required") 2>/dev/null; then :
  203:   as_have_required=yes
  204: else
  205:   as_have_required=no
  206: fi
  207:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  208: 
  209: else
  210:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211: as_found=false
  212: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  213: do
  214:   IFS=$as_save_IFS
  215:   test -z "$as_dir" && as_dir=.
  216:   as_found=:
  217:   case $as_dir in #(
  218: 	 /*)
  219: 	   for as_base in sh bash ksh sh5; do
  220: 	     # Try only shells that exist, to save several forks.
  221: 	     as_shell=$as_dir/$as_base
  222: 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  223: 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  224:   CONFIG_SHELL=$as_shell as_have_required=yes
  225: 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  226:   break 2
  227: fi
  228: fi
  229: 	   done;;
  230:        esac
  231:   as_found=false
  232: done
  233: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  234: 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  235:   CONFIG_SHELL=$SHELL as_have_required=yes
  236: fi; }
  237: IFS=$as_save_IFS
  238: 
  239: 
  240:       if test "x$CONFIG_SHELL" != x; then :
  241:   export CONFIG_SHELL
  242:              # We cannot yet assume a decent shell, so we have to provide a
  243: # neutralization value for shells without unset; and this also
  244: # works around shells that cannot unset nonexistent variables.
  245: # Preserve -v and -x to the replacement shell.
  246: BASH_ENV=/dev/null
  247: ENV=/dev/null
  248: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  249: case $- in # ((((
  250:   *v*x* | *x*v* ) as_opts=-vx ;;
  251:   *v* ) as_opts=-v ;;
  252:   *x* ) as_opts=-x ;;
  253:   * ) as_opts= ;;
  254: esac
  255: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  256: # Admittedly, this is quite paranoid, since all the known shells bail
  257: # out after a failed `exec'.
  258: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  259: exit 255
  260: fi
  261: 
  262:     if test x$as_have_required = xno; then :
  263:   $as_echo "$0: This script requires a shell more modern than all"
  264:   $as_echo "$0: the shells that I found on your system."
  265:   if test x${ZSH_VERSION+set} = xset ; then
  266:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  267:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  268:   else
  269:     $as_echo "$0: Please tell bug-autoconf@gnu.org and
  270: $0: smartmontools-support@lists.sourceforge.net about your
  271: $0: system, including any error possibly output before this
  272: $0: message. Then install a modern shell, or manually run
  273: $0: the script under such a shell if you do have one."
  274:   fi
  275:   exit 1
  276: fi
  277: fi
  278: fi
  279: SHELL=${CONFIG_SHELL-/bin/sh}
  280: export SHELL
  281: # Unset more variables known to interfere with behavior of common tools.
  282: CLICOLOR_FORCE= GREP_OPTIONS=
  283: unset CLICOLOR_FORCE GREP_OPTIONS
  284: 
  285: ## --------------------- ##
  286: ## M4sh Shell Functions. ##
  287: ## --------------------- ##
  288: # as_fn_unset VAR
  289: # ---------------
  290: # Portably unset VAR.
  291: as_fn_unset ()
  292: {
  293:   { eval $1=; unset $1;}
  294: }
  295: as_unset=as_fn_unset
  296: 
  297: # as_fn_set_status STATUS
  298: # -----------------------
  299: # Set $? to STATUS, without forking.
  300: as_fn_set_status ()
  301: {
  302:   return $1
  303: } # as_fn_set_status
  304: 
  305: # as_fn_exit STATUS
  306: # -----------------
  307: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  308: as_fn_exit ()
  309: {
  310:   set +e
  311:   as_fn_set_status $1
  312:   exit $1
  313: } # as_fn_exit
  314: 
  315: # as_fn_mkdir_p
  316: # -------------
  317: # Create "$as_dir" as a directory, including parents if necessary.
  318: as_fn_mkdir_p ()
  319: {
  320: 
  321:   case $as_dir in #(
  322:   -*) as_dir=./$as_dir;;
  323:   esac
  324:   test -d "$as_dir" || eval $as_mkdir_p || {
  325:     as_dirs=
  326:     while :; do
  327:       case $as_dir in #(
  328:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  329:       *) as_qdir=$as_dir;;
  330:       esac
  331:       as_dirs="'$as_qdir' $as_dirs"
  332:       as_dir=`$as_dirname -- "$as_dir" ||
  333: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  334: 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  335: 	 X"$as_dir" : 'X\(//\)$' \| \
  336: 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  337: $as_echo X"$as_dir" |
  338:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  339: 	    s//\1/
  340: 	    q
  341: 	  }
  342: 	  /^X\(\/\/\)[^/].*/{
  343: 	    s//\1/
  344: 	    q
  345: 	  }
  346: 	  /^X\(\/\/\)$/{
  347: 	    s//\1/
  348: 	    q
  349: 	  }
  350: 	  /^X\(\/\).*/{
  351: 	    s//\1/
  352: 	    q
  353: 	  }
  354: 	  s/.*/./; q'`
  355:       test -d "$as_dir" && break
  356:     done
  357:     test -z "$as_dirs" || eval "mkdir $as_dirs"
  358:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  359: 
  360: 
  361: } # as_fn_mkdir_p
  362: 
  363: # as_fn_executable_p FILE
  364: # -----------------------
  365: # Test if FILE is an executable regular file.
  366: as_fn_executable_p ()
  367: {
  368:   test -f "$1" && test -x "$1"
  369: } # as_fn_executable_p
  370: # as_fn_append VAR VALUE
  371: # ----------------------
  372: # Append the text in VALUE to the end of the definition contained in VAR. Take
  373: # advantage of any shell optimizations that allow amortized linear growth over
  374: # repeated appends, instead of the typical quadratic growth present in naive
  375: # implementations.
  376: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  377:   eval 'as_fn_append ()
  378:   {
  379:     eval $1+=\$2
  380:   }'
  381: else
  382:   as_fn_append ()
  383:   {
  384:     eval $1=\$$1\$2
  385:   }
  386: fi # as_fn_append
  387: 
  388: # as_fn_arith ARG...
  389: # ------------------
  390: # Perform arithmetic evaluation on the ARGs, and store the result in the
  391: # global $as_val. Take advantage of shells that can avoid forks. The arguments
  392: # must be portable across $(()) and expr.
  393: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  394:   eval 'as_fn_arith ()
  395:   {
  396:     as_val=$(( $* ))
  397:   }'
  398: else
  399:   as_fn_arith ()
  400:   {
  401:     as_val=`expr "$@" || test $? -eq 1`
  402:   }
  403: fi # as_fn_arith
  404: 
  405: 
  406: # as_fn_error STATUS ERROR [LINENO LOG_FD]
  407: # ----------------------------------------
  408: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  409: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  410: # script with STATUS, using 1 if that was 0.
  411: as_fn_error ()
  412: {
  413:   as_status=$1; test $as_status -eq 0 && as_status=1
  414:   if test "$4"; then
  415:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  416:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  417:   fi
  418:   $as_echo "$as_me: error: $2" >&2
  419:   as_fn_exit $as_status
  420: } # as_fn_error
  421: 
  422: if expr a : '\(a\)' >/dev/null 2>&1 &&
  423:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  424:   as_expr=expr
  425: else
  426:   as_expr=false
  427: fi
  428: 
  429: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  430:   as_basename=basename
  431: else
  432:   as_basename=false
  433: fi
  434: 
  435: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  436:   as_dirname=dirname
  437: else
  438:   as_dirname=false
  439: fi
  440: 
  441: as_me=`$as_basename -- "$0" ||
  442: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  443: 	 X"$0" : 'X\(//\)$' \| \
  444: 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  445: $as_echo X/"$0" |
  446:     sed '/^.*\/\([^/][^/]*\)\/*$/{
  447: 	    s//\1/
  448: 	    q
  449: 	  }
  450: 	  /^X\/\(\/\/\)$/{
  451: 	    s//\1/
  452: 	    q
  453: 	  }
  454: 	  /^X\/\(\/\).*/{
  455: 	    s//\1/
  456: 	    q
  457: 	  }
  458: 	  s/.*/./; q'`
  459: 
  460: # Avoid depending upon Character Ranges.
  461: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  462: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  463: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  464: as_cr_digits='0123456789'
  465: as_cr_alnum=$as_cr_Letters$as_cr_digits
  466: 
  467: 
  468:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  469:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  470:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  471:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  472:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  473:   sed -n '
  474:     p
  475:     /[$]LINENO/=
  476:   ' <$as_myself |
  477:     sed '
  478:       s/[$]LINENO.*/&-/
  479:       t lineno
  480:       b
  481:       :lineno
  482:       N
  483:       :loop
  484:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  485:       t loop
  486:       s/-\n.*//
  487:     ' >$as_me.lineno &&
  488:   chmod +x "$as_me.lineno" ||
  489:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  490: 
  491:   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  492:   # already done that, so ensure we don't try to do so again and fall
  493:   # in an infinite loop.  This has already happened in practice.
  494:   _as_can_reexec=no; export _as_can_reexec
  495:   # Don't try to exec as it changes $[0], causing all sort of problems
  496:   # (the dirname of $[0] is not the place where we might find the
  497:   # original and so on.  Autoconf is especially sensitive to this).
  498:   . "./$as_me.lineno"
  499:   # Exit status is that of the last command.
  500:   exit
  501: }
  502: 
  503: ECHO_C= ECHO_N= ECHO_T=
  504: case `echo -n x` in #(((((
  505: -n*)
  506:   case `echo 'xy\c'` in
  507:   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  508:   xy)  ECHO_C='\c';;
  509:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  510:        ECHO_T='	';;
  511:   esac;;
  512: *)
  513:   ECHO_N='-n';;
  514: esac
  515: 
  516: rm -f conf$$ conf$$.exe conf$$.file
  517: if test -d conf$$.dir; then
  518:   rm -f conf$$.dir/conf$$.file
  519: else
  520:   rm -f conf$$.dir
  521:   mkdir conf$$.dir 2>/dev/null
  522: fi
  523: if (echo >conf$$.file) 2>/dev/null; then
  524:   if ln -s conf$$.file conf$$ 2>/dev/null; then
  525:     as_ln_s='ln -s'
  526:     # ... but there are two gotchas:
  527:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  528:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  529:     # In both cases, we have to default to `cp -pR'.
  530:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  531:       as_ln_s='cp -pR'
  532:   elif ln conf$$.file conf$$ 2>/dev/null; then
  533:     as_ln_s=ln
  534:   else
  535:     as_ln_s='cp -pR'
  536:   fi
  537: else
  538:   as_ln_s='cp -pR'
  539: fi
  540: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  541: rmdir conf$$.dir 2>/dev/null
  542: 
  543: if mkdir -p . 2>/dev/null; then
  544:   as_mkdir_p='mkdir -p "$as_dir"'
  545: else
  546:   test -d ./-p && rmdir ./-p
  547:   as_mkdir_p=false
  548: fi
  549: 
  550: as_test_x='test -x'
  551: as_executable_p=as_fn_executable_p
  552: 
  553: # Sed expression to map a string onto a valid CPP name.
  554: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  555: 
  556: # Sed expression to map a string onto a valid variable name.
  557: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  558: 
  559: 
  560: test -n "$DJDIR" || exec 7<&0 </dev/null
  561: exec 6>&1
  562: 
  563: # Name of the host.
  564: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  565: # so uname gets run too.
  566: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  567: 
  568: #
  569: # Initializations.
  570: #
  571: ac_default_prefix=/usr/local
  572: ac_clean_files=
  573: ac_config_libobj_dir=.
  574: LIBOBJS=
  575: cross_compiling=no
  576: subdirs=
  577: MFLAGS=
  578: MAKEFLAGS=
  579: 
  580: # Identity of this package.
  581: PACKAGE_NAME='smartmontools'
  582: PACKAGE_TARNAME='smartmontools'
  583: PACKAGE_VERSION='6.2'
  584: PACKAGE_STRING='smartmontools 6.2'
  585: PACKAGE_BUGREPORT='smartmontools-support@lists.sourceforge.net'
  586: PACKAGE_URL=''
  587: 
  588: ac_unique_file="smartctl.cpp"
  589: # Factoring default headers for most tests.
  590: ac_includes_default="\
  591: #include <stdio.h>
  592: #ifdef HAVE_SYS_TYPES_H
  593: # include <sys/types.h>
  594: #endif
  595: #ifdef HAVE_SYS_STAT_H
  596: # include <sys/stat.h>
  597: #endif
  598: #ifdef STDC_HEADERS
  599: # include <stdlib.h>
  600: # include <stddef.h>
  601: #else
  602: # ifdef HAVE_STDLIB_H
  603: #  include <stdlib.h>
  604: # endif
  605: #endif
  606: #ifdef HAVE_STRING_H
  607: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  608: #  include <memory.h>
  609: # endif
  610: # include <string.h>
  611: #endif
  612: #ifdef HAVE_STRINGS_H
  613: # include <strings.h>
  614: #endif
  615: #ifdef HAVE_INTTYPES_H
  616: # include <inttypes.h>
  617: #endif
  618: #ifdef HAVE_STDINT_H
  619: # include <stdint.h>
  620: #endif
  621: #ifdef HAVE_UNISTD_H
  622: # include <unistd.h>
  623: #endif"
  624: 
  625: ac_subst_vars='am__EXEEXT_FALSE
  626: am__EXEEXT_TRUE
  627: LTLIBOBJS
  628: LIBOBJS
  629: OS_WIN64_FALSE
  630: OS_WIN64_TRUE
  631: OS_WIN32_NSIS_FALSE
  632: OS_WIN32_NSIS_TRUE
  633: OS_WIN32_MINGW_FALSE
  634: OS_WIN32_MINGW_TRUE
  635: OS_WIN32_FALSE
  636: OS_WIN32_TRUE
  637: OS_SOLARIS_FALSE
  638: OS_SOLARIS_TRUE
  639: OS_DARWIN_FALSE
  640: OS_DARWIN_TRUE
  641: DRIVEDB_BRANCH
  642: os_man_filter
  643: os_nisdomainname
  644: os_dnsdomainname
  645: os_hostname
  646: os_mailer
  647: os_dltools
  648: os_libs
  649: os_deps
  650: smartmontools_release_time
  651: smartmontools_release_date
  652: releaseversion
  653: ENABLE_CAPABILITIES_FALSE
  654: ENABLE_CAPABILITIES_TRUE
  655: CAPNG_LDADD
  656: with_selinux
  657: smartd_suffix
  658: ENABLE_ATTRIBUTELOG_FALSE
  659: ENABLE_ATTRIBUTELOG_TRUE
  660: attributelogdir
  661: attributelog
  662: ENABLE_SAVESTATES_FALSE
  663: ENABLE_SAVESTATES_TRUE
  664: savestatesdir
  665: savestates
  666: ENABLE_DRIVEDB_FALSE
  667: ENABLE_DRIVEDB_TRUE
  668: drivedbdir
  669: exampledir
  670: initdfile
  671: INSTALL_INITSCRIPT_FALSE
  672: INSTALL_INITSCRIPT_TRUE
  673: initddir
  674: INSTALL_SYSTEMDUNIT_FALSE
  675: INSTALL_SYSTEMDUNIT_TRUE
  676: systemdsystemunitdir
  677: ASFLAGS
  678: gcc_have_attr_packed
  679: libc_have_working_snprintf
  680: NEED_REGEX_FALSE
  681: NEED_REGEX_TRUE
  682: NEED_GETOPT_LONG_FALSE
  683: NEED_GETOPT_LONG_TRUE
  684: EGREP
  685: GREP
  686: CXXCPP
  687: IS_SVN_BUILD_FALSE
  688: IS_SVN_BUILD_TRUE
  689: svn_deps
  690: host_os
  691: host_vendor
  692: host_cpu
  693: host
  694: build_os
  695: build_vendor
  696: build_cpu
  697: build
  698: MAKENSIS
  699: WINDRES
  700: WINDMC
  701: PKG_CONFIG_LIBDIR
  702: PKG_CONFIG_PATH
  703: PKG_CONFIG
  704: am__fastdepCCAS_FALSE
  705: am__fastdepCCAS_TRUE
  706: CCASDEPMODE
  707: CCASFLAGS
  708: CCAS
  709: am__fastdepCC_FALSE
  710: am__fastdepCC_TRUE
  711: CCDEPMODE
  712: ac_ct_CC
  713: CFLAGS
  714: CC
  715: am__fastdepCXX_FALSE
  716: am__fastdepCXX_TRUE
  717: CXXDEPMODE
  718: am__nodep
  719: AMDEPBACKSLASH
  720: AMDEP_FALSE
  721: AMDEP_TRUE
  722: am__quote
  723: am__include
  724: DEPDIR
  725: OBJEXT
  726: EXEEXT
  727: ac_ct_CXX
  728: CPPFLAGS
  729: LDFLAGS
  730: CXXFLAGS
  731: CXX
  732: MAINT
  733: MAINTAINER_MODE_FALSE
  734: MAINTAINER_MODE_TRUE
  735: am__untar
  736: am__tar
  737: AMTAR
  738: am__leading_dot
  739: SET_MAKE
  740: AWK
  741: mkdir_p
  742: MKDIR_P
  743: INSTALL_STRIP_PROGRAM
  744: STRIP
  745: install_sh
  746: MAKEINFO
  747: AUTOHEADER
  748: AUTOMAKE
  749: AUTOCONF
  750: ACLOCAL
  751: VERSION
  752: PACKAGE
  753: CYGPATH_W
  754: am__isrc
  755: INSTALL_DATA
  756: INSTALL_SCRIPT
  757: INSTALL_PROGRAM
  758: target_alias
  759: host_alias
  760: build_alias
  761: LIBS
  762: ECHO_T
  763: ECHO_N
  764: ECHO_C
  765: DEFS
  766: mandir
  767: localedir
  768: libdir
  769: psdir
  770: pdfdir
  771: dvidir
  772: htmldir
  773: infodir
  774: docdir
  775: oldincludedir
  776: includedir
  777: localstatedir
  778: sharedstatedir
  779: sysconfdir
  780: datadir
  781: datarootdir
  782: libexecdir
  783: sbindir
  784: bindir
  785: program_transform_name
  786: prefix
  787: exec_prefix
  788: PACKAGE_URL
  789: PACKAGE_BUGREPORT
  790: PACKAGE_STRING
  791: PACKAGE_VERSION
  792: PACKAGE_TARNAME
  793: PACKAGE_NAME
  794: PATH_SEPARATOR
  795: SHELL'
  796: ac_subst_files=''
  797: ac_user_opts='
  798: enable_option_checking
  799: enable_maintainer_mode
  800: enable_dependency_tracking
  801: with_systemdsystemunitdir
  802: with_initscriptdir
  803: with_docdir
  804: with_exampledir
  805: enable_drivedb
  806: with_drivedbdir
  807: enable_savestates
  808: with_savestates
  809: enable_attributelog
  810: with_attributelog
  811: enable_sample
  812: with_os_deps
  813: with_selinux
  814: with_libcap_ng
  815: '
  816:       ac_precious_vars='build_alias
  817: host_alias
  818: target_alias
  819: CXX
  820: CXXFLAGS
  821: LDFLAGS
  822: LIBS
  823: CPPFLAGS
  824: CCC
  825: CC
  826: CFLAGS
  827: CCAS
  828: CCASFLAGS
  829: PKG_CONFIG
  830: PKG_CONFIG_PATH
  831: PKG_CONFIG_LIBDIR
  832: WINDMC
  833: WINDRES
  834: MAKENSIS
  835: CXXCPP'
  836: 
  837: 
  838: # Initialize some variables set by options.
  839: ac_init_help=
  840: ac_init_version=false
  841: ac_unrecognized_opts=
  842: ac_unrecognized_sep=
  843: # The variables have the same names as the options, with
  844: # dashes changed to underlines.
  845: cache_file=/dev/null
  846: exec_prefix=NONE
  847: no_create=
  848: no_recursion=
  849: prefix=NONE
  850: program_prefix=NONE
  851: program_suffix=NONE
  852: program_transform_name=s,x,x,
  853: silent=
  854: site=
  855: srcdir=
  856: verbose=
  857: x_includes=NONE
  858: x_libraries=NONE
  859: 
  860: # Installation directory options.
  861: # These are left unexpanded so users can "make install exec_prefix=/foo"
  862: # and all the variables that are supposed to be based on exec_prefix
  863: # by default will actually change.
  864: # Use braces instead of parens because sh, perl, etc. also accept them.
  865: # (The list follows the same order as the GNU Coding Standards.)
  866: bindir='${exec_prefix}/bin'
  867: sbindir='${exec_prefix}/sbin'
  868: libexecdir='${exec_prefix}/libexec'
  869: datarootdir='${prefix}/share'
  870: datadir='${datarootdir}'
  871: sysconfdir='${prefix}/etc'
  872: sharedstatedir='${prefix}/com'
  873: localstatedir='${prefix}/var'
  874: includedir='${prefix}/include'
  875: oldincludedir='/usr/include'
  876: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  877: infodir='${datarootdir}/info'
  878: htmldir='${docdir}'
  879: dvidir='${docdir}'
  880: pdfdir='${docdir}'
  881: psdir='${docdir}'
  882: libdir='${exec_prefix}/lib'
  883: localedir='${datarootdir}/locale'
  884: mandir='${datarootdir}/man'
  885: 
  886: ac_prev=
  887: ac_dashdash=
  888: for ac_option
  889: do
  890:   # If the previous option needs an argument, assign it.
  891:   if test -n "$ac_prev"; then
  892:     eval $ac_prev=\$ac_option
  893:     ac_prev=
  894:     continue
  895:   fi
  896: 
  897:   case $ac_option in
  898:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  899:   *=)   ac_optarg= ;;
  900:   *)    ac_optarg=yes ;;
  901:   esac
  902: 
  903:   # Accept the important Cygnus configure options, so we can diagnose typos.
  904: 
  905:   case $ac_dashdash$ac_option in
  906:   --)
  907:     ac_dashdash=yes ;;
  908: 
  909:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  910:     ac_prev=bindir ;;
  911:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  912:     bindir=$ac_optarg ;;
  913: 
  914:   -build | --build | --buil | --bui | --bu)
  915:     ac_prev=build_alias ;;
  916:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  917:     build_alias=$ac_optarg ;;
  918: 
  919:   -cache-file | --cache-file | --cache-fil | --cache-fi \
  920:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  921:     ac_prev=cache_file ;;
  922:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  923:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  924:     cache_file=$ac_optarg ;;
  925: 
  926:   --config-cache | -C)
  927:     cache_file=config.cache ;;
  928: 
  929:   -datadir | --datadir | --datadi | --datad)
  930:     ac_prev=datadir ;;
  931:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  932:     datadir=$ac_optarg ;;
  933: 
  934:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  935:   | --dataroo | --dataro | --datar)
  936:     ac_prev=datarootdir ;;
  937:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  938:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  939:     datarootdir=$ac_optarg ;;
  940: 
  941:   -disable-* | --disable-*)
  942:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  943:     # Reject names that are not valid shell variable names.
  944:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  945:       as_fn_error $? "invalid feature name: $ac_useropt"
  946:     ac_useropt_orig=$ac_useropt
  947:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  948:     case $ac_user_opts in
  949:       *"
  950: "enable_$ac_useropt"
  951: "*) ;;
  952:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  953: 	 ac_unrecognized_sep=', ';;
  954:     esac
  955:     eval enable_$ac_useropt=no ;;
  956: 
  957:   -docdir | --docdir | --docdi | --doc | --do)
  958:     ac_prev=docdir ;;
  959:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  960:     docdir=$ac_optarg ;;
  961: 
  962:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  963:     ac_prev=dvidir ;;
  964:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  965:     dvidir=$ac_optarg ;;
  966: 
  967:   -enable-* | --enable-*)
  968:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  969:     # Reject names that are not valid shell variable names.
  970:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  971:       as_fn_error $? "invalid feature name: $ac_useropt"
  972:     ac_useropt_orig=$ac_useropt
  973:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  974:     case $ac_user_opts in
  975:       *"
  976: "enable_$ac_useropt"
  977: "*) ;;
  978:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  979: 	 ac_unrecognized_sep=', ';;
  980:     esac
  981:     eval enable_$ac_useropt=\$ac_optarg ;;
  982: 
  983:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  984:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  985:   | --exec | --exe | --ex)
  986:     ac_prev=exec_prefix ;;
  987:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  988:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  989:   | --exec=* | --exe=* | --ex=*)
  990:     exec_prefix=$ac_optarg ;;
  991: 
  992:   -gas | --gas | --ga | --g)
  993:     # Obsolete; use --with-gas.
  994:     with_gas=yes ;;
  995: 
  996:   -help | --help | --hel | --he | -h)
  997:     ac_init_help=long ;;
  998:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  999:     ac_init_help=recursive ;;
 1000:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 1001:     ac_init_help=short ;;
 1002: 
 1003:   -host | --host | --hos | --ho)
 1004:     ac_prev=host_alias ;;
 1005:   -host=* | --host=* | --hos=* | --ho=*)
 1006:     host_alias=$ac_optarg ;;
 1007: 
 1008:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 1009:     ac_prev=htmldir ;;
 1010:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 1011:   | --ht=*)
 1012:     htmldir=$ac_optarg ;;
 1013: 
 1014:   -includedir | --includedir | --includedi | --included | --include \
 1015:   | --includ | --inclu | --incl | --inc)
 1016:     ac_prev=includedir ;;
 1017:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 1018:   | --includ=* | --inclu=* | --incl=* | --inc=*)
 1019:     includedir=$ac_optarg ;;
 1020: 
 1021:   -infodir | --infodir | --infodi | --infod | --info | --inf)
 1022:     ac_prev=infodir ;;
 1023:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 1024:     infodir=$ac_optarg ;;
 1025: 
 1026:   -libdir | --libdir | --libdi | --libd)
 1027:     ac_prev=libdir ;;
 1028:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
 1029:     libdir=$ac_optarg ;;
 1030: 
 1031:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 1032:   | --libexe | --libex | --libe)
 1033:     ac_prev=libexecdir ;;
 1034:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 1035:   | --libexe=* | --libex=* | --libe=*)
 1036:     libexecdir=$ac_optarg ;;
 1037: 
 1038:   -localedir | --localedir | --localedi | --localed | --locale)
 1039:     ac_prev=localedir ;;
 1040:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 1041:     localedir=$ac_optarg ;;
 1042: 
 1043:   -localstatedir | --localstatedir | --localstatedi | --localstated \
 1044:   | --localstate | --localstat | --localsta | --localst | --locals)
 1045:     ac_prev=localstatedir ;;
 1046:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 1047:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 1048:     localstatedir=$ac_optarg ;;
 1049: 
 1050:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 1051:     ac_prev=mandir ;;
 1052:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 1053:     mandir=$ac_optarg ;;
 1054: 
 1055:   -nfp | --nfp | --nf)
 1056:     # Obsolete; use --without-fp.
 1057:     with_fp=no ;;
 1058: 
 1059:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 1060:   | --no-cr | --no-c | -n)
 1061:     no_create=yes ;;
 1062: 
 1063:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 1064:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 1065:     no_recursion=yes ;;
 1066: 
 1067:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 1068:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 1069:   | --oldin | --oldi | --old | --ol | --o)
 1070:     ac_prev=oldincludedir ;;
 1071:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 1072:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 1073:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 1074:     oldincludedir=$ac_optarg ;;
 1075: 
 1076:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 1077:     ac_prev=prefix ;;
 1078:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 1079:     prefix=$ac_optarg ;;
 1080: 
 1081:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
 1082:   | --program-pre | --program-pr | --program-p)
 1083:     ac_prev=program_prefix ;;
 1084:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
 1085:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 1086:     program_prefix=$ac_optarg ;;
 1087: 
 1088:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 1089:   | --program-suf | --program-su | --program-s)
 1090:     ac_prev=program_suffix ;;
 1091:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 1092:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 1093:     program_suffix=$ac_optarg ;;
 1094: 
 1095:   -program-transform-name | --program-transform-name \
 1096:   | --program-transform-nam | --program-transform-na \
 1097:   | --program-transform-n | --program-transform- \
 1098:   | --program-transform | --program-transfor \
 1099:   | --program-transfo | --program-transf \
 1100:   | --program-trans | --program-tran \
 1101:   | --progr-tra | --program-tr | --program-t)
 1102:     ac_prev=program_transform_name ;;
 1103:   -program-transform-name=* | --program-transform-name=* \
 1104:   | --program-transform-nam=* | --program-transform-na=* \
 1105:   | --program-transform-n=* | --program-transform-=* \
 1106:   | --program-transform=* | --program-transfor=* \
 1107:   | --program-transfo=* | --program-transf=* \
 1108:   | --program-trans=* | --program-tran=* \
 1109:   | --progr-tra=* | --program-tr=* | --program-t=*)
 1110:     program_transform_name=$ac_optarg ;;
 1111: 
 1112:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 1113:     ac_prev=pdfdir ;;
 1114:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 1115:     pdfdir=$ac_optarg ;;
 1116: 
 1117:   -psdir | --psdir | --psdi | --psd | --ps)
 1118:     ac_prev=psdir ;;
 1119:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 1120:     psdir=$ac_optarg ;;
 1121: 
 1122:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1123:   | -silent | --silent | --silen | --sile | --sil)
 1124:     silent=yes ;;
 1125: 
 1126:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1127:     ac_prev=sbindir ;;
 1128:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1129:   | --sbi=* | --sb=*)
 1130:     sbindir=$ac_optarg ;;
 1131: 
 1132:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1133:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1134:   | --sharedst | --shareds | --shared | --share | --shar \
 1135:   | --sha | --sh)
 1136:     ac_prev=sharedstatedir ;;
 1137:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1138:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1139:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1140:   | --sha=* | --sh=*)
 1141:     sharedstatedir=$ac_optarg ;;
 1142: 
 1143:   -site | --site | --sit)
 1144:     ac_prev=site ;;
 1145:   -site=* | --site=* | --sit=*)
 1146:     site=$ac_optarg ;;
 1147: 
 1148:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1149:     ac_prev=srcdir ;;
 1150:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1151:     srcdir=$ac_optarg ;;
 1152: 
 1153:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1154:   | --syscon | --sysco | --sysc | --sys | --sy)
 1155:     ac_prev=sysconfdir ;;
 1156:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1157:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1158:     sysconfdir=$ac_optarg ;;
 1159: 
 1160:   -target | --target | --targe | --targ | --tar | --ta | --t)
 1161:     ac_prev=target_alias ;;
 1162:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1163:     target_alias=$ac_optarg ;;
 1164: 
 1165:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1166:     verbose=yes ;;
 1167: 
 1168:   -version | --version | --versio | --versi | --vers | -V)
 1169:     ac_init_version=: ;;
 1170: 
 1171:   -with-* | --with-*)
 1172:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1173:     # Reject names that are not valid shell variable names.
 1174:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1175:       as_fn_error $? "invalid package name: $ac_useropt"
 1176:     ac_useropt_orig=$ac_useropt
 1177:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1178:     case $ac_user_opts in
 1179:       *"
 1180: "with_$ac_useropt"
 1181: "*) ;;
 1182:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1183: 	 ac_unrecognized_sep=', ';;
 1184:     esac
 1185:     eval with_$ac_useropt=\$ac_optarg ;;
 1186: 
 1187:   -without-* | --without-*)
 1188:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1189:     # Reject names that are not valid shell variable names.
 1190:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1191:       as_fn_error $? "invalid package name: $ac_useropt"
 1192:     ac_useropt_orig=$ac_useropt
 1193:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1194:     case $ac_user_opts in
 1195:       *"
 1196: "with_$ac_useropt"
 1197: "*) ;;
 1198:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1199: 	 ac_unrecognized_sep=', ';;
 1200:     esac
 1201:     eval with_$ac_useropt=no ;;
 1202: 
 1203:   --x)
 1204:     # Obsolete; use --with-x.
 1205:     with_x=yes ;;
 1206: 
 1207:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1208:   | --x-incl | --x-inc | --x-in | --x-i)
 1209:     ac_prev=x_includes ;;
 1210:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1211:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1212:     x_includes=$ac_optarg ;;
 1213: 
 1214:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1215:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1216:     ac_prev=x_libraries ;;
 1217:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1218:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1219:     x_libraries=$ac_optarg ;;
 1220: 
 1221:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1222: Try \`$0 --help' for more information"
 1223:     ;;
 1224: 
 1225:   *=*)
 1226:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1227:     # Reject names that are not valid shell variable names.
 1228:     case $ac_envvar in #(
 1229:       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1230:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1231:     esac
 1232:     eval $ac_envvar=\$ac_optarg
 1233:     export $ac_envvar ;;
 1234: 
 1235:   *)
 1236:     # FIXME: should be removed in autoconf 3.0.
 1237:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1238:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1239:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1240:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1241:     ;;
 1242: 
 1243:   esac
 1244: done
 1245: 
 1246: if test -n "$ac_prev"; then
 1247:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1248:   as_fn_error $? "missing argument to $ac_option"
 1249: fi
 1250: 
 1251: if test -n "$ac_unrecognized_opts"; then
 1252:   case $enable_option_checking in
 1253:     no) ;;
 1254:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1255:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1256:   esac
 1257: fi
 1258: 
 1259: # Check all directory arguments for consistency.
 1260: for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1261: 		datadir sysconfdir sharedstatedir localstatedir includedir \
 1262: 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1263: 		libdir localedir mandir
 1264: do
 1265:   eval ac_val=\$$ac_var
 1266:   # Remove trailing slashes.
 1267:   case $ac_val in
 1268:     */ )
 1269:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1270:       eval $ac_var=\$ac_val;;
 1271:   esac
 1272:   # Be sure to have absolute directory names.
 1273:   case $ac_val in
 1274:     [\\/$]* | ?:[\\/]* )  continue;;
 1275:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1276:   esac
 1277:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1278: done
 1279: 
 1280: # There might be people who depend on the old broken behavior: `$host'
 1281: # used to hold the argument of --host etc.
 1282: # FIXME: To remove some day.
 1283: build=$build_alias
 1284: host=$host_alias
 1285: target=$target_alias
 1286: 
 1287: # FIXME: To remove some day.
 1288: if test "x$host_alias" != x; then
 1289:   if test "x$build_alias" = x; then
 1290:     cross_compiling=maybe
 1291:   elif test "x$build_alias" != "x$host_alias"; then
 1292:     cross_compiling=yes
 1293:   fi
 1294: fi
 1295: 
 1296: ac_tool_prefix=
 1297: test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1298: 
 1299: test "$silent" = yes && exec 6>/dev/null
 1300: 
 1301: 
 1302: ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1303: ac_ls_di=`ls -di .` &&
 1304: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1305:   as_fn_error $? "working directory cannot be determined"
 1306: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1307:   as_fn_error $? "pwd does not report name of working directory"
 1308: 
 1309: 
 1310: # Find the source files, if location was not specified.
 1311: if test -z "$srcdir"; then
 1312:   ac_srcdir_defaulted=yes
 1313:   # Try the directory containing this script, then the parent directory.
 1314:   ac_confdir=`$as_dirname -- "$as_myself" ||
 1315: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1316: 	 X"$as_myself" : 'X\(//\)[^/]' \| \
 1317: 	 X"$as_myself" : 'X\(//\)$' \| \
 1318: 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1319: $as_echo X"$as_myself" |
 1320:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1321: 	    s//\1/
 1322: 	    q
 1323: 	  }
 1324: 	  /^X\(\/\/\)[^/].*/{
 1325: 	    s//\1/
 1326: 	    q
 1327: 	  }
 1328: 	  /^X\(\/\/\)$/{
 1329: 	    s//\1/
 1330: 	    q
 1331: 	  }
 1332: 	  /^X\(\/\).*/{
 1333: 	    s//\1/
 1334: 	    q
 1335: 	  }
 1336: 	  s/.*/./; q'`
 1337:   srcdir=$ac_confdir
 1338:   if test ! -r "$srcdir/$ac_unique_file"; then
 1339:     srcdir=..
 1340:   fi
 1341: else
 1342:   ac_srcdir_defaulted=no
 1343: fi
 1344: if test ! -r "$srcdir/$ac_unique_file"; then
 1345:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1346:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1347: fi
 1348: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1349: ac_abs_confdir=`(
 1350: 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1351: 	pwd)`
 1352: # When building in place, set srcdir=.
 1353: if test "$ac_abs_confdir" = "$ac_pwd"; then
 1354:   srcdir=.
 1355: fi
 1356: # Remove unnecessary trailing slashes from srcdir.
 1357: # Double slashes in file names in object file debugging info
 1358: # mess up M-x gdb in Emacs.
 1359: case $srcdir in
 1360: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1361: esac
 1362: for ac_var in $ac_precious_vars; do
 1363:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1364:   eval ac_env_${ac_var}_value=\$${ac_var}
 1365:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1366:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1367: done
 1368: 
 1369: #
 1370: # Report the --help message.
 1371: #
 1372: if test "$ac_init_help" = "long"; then
 1373:   # Omit some internal or obsolete options to make the list less imposing.
 1374:   # This message is too long to be a string in the A/UX 3.1 sh.
 1375:   cat <<_ACEOF
 1376: \`configure' configures smartmontools 6.2 to adapt to many kinds of systems.
 1377: 
 1378: Usage: $0 [OPTION]... [VAR=VALUE]...
 1379: 
 1380: To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1381: VAR=VALUE.  See below for descriptions of some of the useful variables.
 1382: 
 1383: Defaults for the options are specified in brackets.
 1384: 
 1385: Configuration:
 1386:   -h, --help              display this help and exit
 1387:       --help=short        display options specific to this package
 1388:       --help=recursive    display the short help of all the included packages
 1389:   -V, --version           display version information and exit
 1390:   -q, --quiet, --silent   do not print \`checking ...' messages
 1391:       --cache-file=FILE   cache test results in FILE [disabled]
 1392:   -C, --config-cache      alias for \`--cache-file=config.cache'
 1393:   -n, --no-create         do not create output files
 1394:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1395: 
 1396: Installation directories:
 1397:   --prefix=PREFIX         install architecture-independent files in PREFIX
 1398:                           [$ac_default_prefix]
 1399:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1400:                           [PREFIX]
 1401: 
 1402: By default, \`make install' will install all the files in
 1403: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1404: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1405: for instance \`--prefix=\$HOME'.
 1406: 
 1407: For better control, use the options below.
 1408: 
 1409: Fine tuning of the installation directories:
 1410:   --bindir=DIR            user executables [EPREFIX/bin]
 1411:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1412:   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1413:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 1414:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1415:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1416:   --libdir=DIR            object code libraries [EPREFIX/lib]
 1417:   --includedir=DIR        C header files [PREFIX/include]
 1418:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1419:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1420:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1421:   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1422:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1423:   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1424:   --docdir=DIR            documentation root [DATAROOTDIR/doc/smartmontools]
 1425:   --htmldir=DIR           html documentation [DOCDIR]
 1426:   --dvidir=DIR            dvi documentation [DOCDIR]
 1427:   --pdfdir=DIR            pdf documentation [DOCDIR]
 1428:   --psdir=DIR             ps documentation [DOCDIR]
 1429: _ACEOF
 1430: 
 1431:   cat <<\_ACEOF
 1432: 
 1433: Program names:
 1434:   --program-prefix=PREFIX            prepend PREFIX to installed program names
 1435:   --program-suffix=SUFFIX            append SUFFIX to installed program names
 1436:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 1437: 
 1438: System types:
 1439:   --build=BUILD     configure for building on BUILD [guessed]
 1440:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 1441: _ACEOF
 1442: fi
 1443: 
 1444: if test -n "$ac_init_help"; then
 1445:   case $ac_init_help in
 1446:      short | recursive ) echo "Configuration of smartmontools 6.2:";;
 1447:    esac
 1448:   cat <<\_ACEOF
 1449: 
 1450: Optional Features:
 1451:   --disable-option-checking  ignore unrecognized --enable/--with options
 1452:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1453:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1454:   --enable-maintainer-mode
 1455:                           enable make rules and dependencies not useful (and
 1456:                           sometimes confusing) to the casual installer
 1457:   --enable-dependency-tracking
 1458:                           do not reject slow dependency extractors
 1459:   --disable-dependency-tracking
 1460:                           speeds up one-time build
 1461:   --disable-drivedb       Disables drive database file
 1462:   --enable-savestates     Enables default smartd state files
 1463:   --enable-attributelog   Enables default smartd attribute log files
 1464:   --enable-sample         Enables appending .sample to the installed smartd rc
 1465:                           script and configuration file
 1466: 
 1467: Optional Packages:
 1468:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1469:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1470:   --with-systemdsystemunitdir[=DIR|auto|yes|no]
 1471:                           Location of systemd service files [auto]
 1472:   --with-initscriptdir[=DIR|auto|yes|no]
 1473:                           Location of init scripts [auto]
 1474:   --with-docdir=DIR       Location of documentation
 1475:                           [DATADIR/doc/smartmontools]
 1476:   --with-exampledir=DIR   Location of example scripts [DOCDIR/examplescripts]
 1477:   --with-drivedbdir=DIR   Location of drive database file (implies
 1478:                           --enable-drivedb) [DATADIR/smartmontools]
 1479:   --with-savestates=PREFIX
 1480:                           Prefix for default smartd state files (implies
 1481:                           --enable-savestates)
 1482:                           [LOCALSTATEDIR/lib/smartmontools/smartd.]
 1483:   --with-attributelog=PREFIX
 1484:                           Prefix for default smartd attribute log files
 1485:                           (implies --enable-attributelog)
 1486:                           [LOCALSTATEDIR/lib/smartmontools/attrlog.]
 1487:   --with-os-deps='os_module.o ...'
 1488:                           Specify OS dependent module(s) [guessed]
 1489:   --with-selinux[=yes|no] Enables SELinux support [no]
 1490:   --with-libcap-ng[=auto|yes|no]
 1491:                           Add Libcap-ng support to smartd [auto]
 1492: 
 1493: Some influential environment variables:
 1494:   CXX         C++ compiler command
 1495:   CXXFLAGS    C++ compiler flags
 1496:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 1497:               nonstandard directory <lib dir>
 1498:   LIBS        libraries to pass to the linker, e.g. -l<library>
 1499:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 1500:               you have headers in a nonstandard directory <include dir>
 1501:   CC          C compiler command
 1502:   CFLAGS      C compiler flags
 1503:   CCAS        assembler compiler command (defaults to CC)
 1504:   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
 1505:   PKG_CONFIG  path to pkg-config utility
 1506:   PKG_CONFIG_PATH
 1507:               directories to add to pkg-config's search path
 1508:   PKG_CONFIG_LIBDIR
 1509:               path overriding pkg-config's built-in search path
 1510:   WINDMC      Windows message compiler command
 1511:   WINDRES     Windows resource compiler command
 1512:   MAKENSIS    NSIS compiler command
 1513:   CXXCPP      C++ preprocessor
 1514: 
 1515: Use these variables to override the choices made by `configure' or to help
 1516: it to find libraries and programs with nonstandard names/locations.
 1517: 
 1518: Report bugs to <smartmontools-support@lists.sourceforge.net>.
 1519: _ACEOF
 1520: ac_status=$?
 1521: fi
 1522: 
 1523: if test "$ac_init_help" = "recursive"; then
 1524:   # If there are subdirs, report their specific --help.
 1525:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1526:     test -d "$ac_dir" ||
 1527:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1528:       continue
 1529:     ac_builddir=.
 1530: 
 1531: case "$ac_dir" in
 1532: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1533: *)
 1534:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1535:   # A ".." for each directory in $ac_dir_suffix.
 1536:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1537:   case $ac_top_builddir_sub in
 1538:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1539:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1540:   esac ;;
 1541: esac
 1542: ac_abs_top_builddir=$ac_pwd
 1543: ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1544: # for backward compatibility:
 1545: ac_top_builddir=$ac_top_build_prefix
 1546: 
 1547: case $srcdir in
 1548:   .)  # We are building in place.
 1549:     ac_srcdir=.
 1550:     ac_top_srcdir=$ac_top_builddir_sub
 1551:     ac_abs_top_srcdir=$ac_pwd ;;
 1552:   [\\/]* | ?:[\\/]* )  # Absolute name.
 1553:     ac_srcdir=$srcdir$ac_dir_suffix;
 1554:     ac_top_srcdir=$srcdir
 1555:     ac_abs_top_srcdir=$srcdir ;;
 1556:   *) # Relative name.
 1557:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1558:     ac_top_srcdir=$ac_top_build_prefix$srcdir
 1559:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1560: esac
 1561: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1562: 
 1563:     cd "$ac_dir" || { ac_status=$?; continue; }
 1564:     # Check for guested configure.
 1565:     if test -f "$ac_srcdir/configure.gnu"; then
 1566:       echo &&
 1567:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1568:     elif test -f "$ac_srcdir/configure"; then
 1569:       echo &&
 1570:       $SHELL "$ac_srcdir/configure" --help=recursive
 1571:     else
 1572:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1573:     fi || ac_status=$?
 1574:     cd "$ac_pwd" || { ac_status=$?; break; }
 1575:   done
 1576: fi
 1577: 
 1578: test -n "$ac_init_help" && exit $ac_status
 1579: if $ac_init_version; then
 1580:   cat <<\_ACEOF
 1581: smartmontools configure 6.2
 1582: generated by GNU Autoconf 2.69
 1583: 
 1584: Copyright (C) 2012 Free Software Foundation, Inc.
 1585: This configure script is free software; the Free Software Foundation
 1586: gives unlimited permission to copy, distribute and modify it.
 1587: _ACEOF
 1588:   exit
 1589: fi
 1590: 
 1591: ## ------------------------ ##
 1592: ## Autoconf initialization. ##
 1593: ## ------------------------ ##
 1594: 
 1595: # ac_fn_cxx_try_compile LINENO
 1596: # ----------------------------
 1597: # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1598: ac_fn_cxx_try_compile ()
 1599: {
 1600:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1601:   rm -f conftest.$ac_objext
 1602:   if { { ac_try="$ac_compile"
 1603: case "(($ac_try" in
 1604:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1605:   *) ac_try_echo=$ac_try;;
 1606: esac
 1607: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1608: $as_echo "$ac_try_echo"; } >&5
 1609:   (eval "$ac_compile") 2>conftest.err
 1610:   ac_status=$?
 1611:   if test -s conftest.err; then
 1612:     grep -v '^ *+' conftest.err >conftest.er1
 1613:     cat conftest.er1 >&5
 1614:     mv -f conftest.er1 conftest.err
 1615:   fi
 1616:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1617:   test $ac_status = 0; } && {
 1618: 	 test -z "$ac_cxx_werror_flag" ||
 1619: 	 test ! -s conftest.err
 1620:        } && test -s conftest.$ac_objext; then :
 1621:   ac_retval=0
 1622: else
 1623:   $as_echo "$as_me: failed program was:" >&5
 1624: sed 's/^/| /' conftest.$ac_ext >&5
 1625: 
 1626: 	ac_retval=1
 1627: fi
 1628:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1629:   as_fn_set_status $ac_retval
 1630: 
 1631: } # ac_fn_cxx_try_compile
 1632: 
 1633: # ac_fn_c_try_compile LINENO
 1634: # --------------------------
 1635: # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1636: ac_fn_c_try_compile ()
 1637: {
 1638:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1639:   rm -f conftest.$ac_objext
 1640:   if { { ac_try="$ac_compile"
 1641: case "(($ac_try" in
 1642:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1643:   *) ac_try_echo=$ac_try;;
 1644: esac
 1645: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1646: $as_echo "$ac_try_echo"; } >&5
 1647:   (eval "$ac_compile") 2>conftest.err
 1648:   ac_status=$?
 1649:   if test -s conftest.err; then
 1650:     grep -v '^ *+' conftest.err >conftest.er1
 1651:     cat conftest.er1 >&5
 1652:     mv -f conftest.er1 conftest.err
 1653:   fi
 1654:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1655:   test $ac_status = 0; } && {
 1656: 	 test -z "$ac_c_werror_flag" ||
 1657: 	 test ! -s conftest.err
 1658:        } && test -s conftest.$ac_objext; then :
 1659:   ac_retval=0
 1660: else
 1661:   $as_echo "$as_me: failed program was:" >&5
 1662: sed 's/^/| /' conftest.$ac_ext >&5
 1663: 
 1664: 	ac_retval=1
 1665: fi
 1666:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1667:   as_fn_set_status $ac_retval
 1668: 
 1669: } # ac_fn_c_try_compile
 1670: 
 1671: # ac_fn_cxx_try_cpp LINENO
 1672: # ------------------------
 1673: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 1674: ac_fn_cxx_try_cpp ()
 1675: {
 1676:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1677:   if { { ac_try="$ac_cpp conftest.$ac_ext"
 1678: case "(($ac_try" in
 1679:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1680:   *) ac_try_echo=$ac_try;;
 1681: esac
 1682: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1683: $as_echo "$ac_try_echo"; } >&5
 1684:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 1685:   ac_status=$?
 1686:   if test -s conftest.err; then
 1687:     grep -v '^ *+' conftest.err >conftest.er1
 1688:     cat conftest.er1 >&5
 1689:     mv -f conftest.er1 conftest.err
 1690:   fi
 1691:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1692:   test $ac_status = 0; } > conftest.i && {
 1693: 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 1694: 	 test ! -s conftest.err
 1695:        }; then :
 1696:   ac_retval=0
 1697: else
 1698:   $as_echo "$as_me: failed program was:" >&5
 1699: sed 's/^/| /' conftest.$ac_ext >&5
 1700: 
 1701:     ac_retval=1
 1702: fi
 1703:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1704:   as_fn_set_status $ac_retval
 1705: 
 1706: } # ac_fn_cxx_try_cpp
 1707: 
 1708: # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
 1709: # ---------------------------------------------------------
 1710: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
 1711: # the include files in INCLUDES and setting the cache variable VAR
 1712: # accordingly.
 1713: ac_fn_cxx_check_header_mongrel ()
 1714: {
 1715:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1716:   if eval \${$3+:} false; then :
 1717:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1718: $as_echo_n "checking for $2... " >&6; }
 1719: if eval \${$3+:} false; then :
 1720:   $as_echo_n "(cached) " >&6
 1721: fi
 1722: eval ac_res=\$$3
 1723: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1724: $as_echo "$ac_res" >&6; }
 1725: else
 1726:   # Is the header compilable?
 1727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 1728: $as_echo_n "checking $2 usability... " >&6; }
 1729: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1730: /* end confdefs.h.  */
 1731: $4
 1732: #include <$2>
 1733: _ACEOF
 1734: if ac_fn_cxx_try_compile "$LINENO"; then :
 1735:   ac_header_compiler=yes
 1736: else
 1737:   ac_header_compiler=no
 1738: fi
 1739: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 1741: $as_echo "$ac_header_compiler" >&6; }
 1742: 
 1743: # Is the header present?
 1744: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 1745: $as_echo_n "checking $2 presence... " >&6; }
 1746: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1747: /* end confdefs.h.  */
 1748: #include <$2>
 1749: _ACEOF
 1750: if ac_fn_cxx_try_cpp "$LINENO"; then :
 1751:   ac_header_preproc=yes
 1752: else
 1753:   ac_header_preproc=no
 1754: fi
 1755: rm -f conftest.err conftest.i conftest.$ac_ext
 1756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 1757: $as_echo "$ac_header_preproc" >&6; }
 1758: 
 1759: # So?  What about this header?
 1760: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
 1761:   yes:no: )
 1762:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 1763: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 1764:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1765: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1766:     ;;
 1767:   no:yes:* )
 1768:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 1769: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 1770:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 1771: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 1772:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 1773: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 1774:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 1775: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 1776:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1777: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1778: ( $as_echo "## ---------------------------------------------------------- ##
 1779: ## Report this to smartmontools-support@lists.sourceforge.net ##
 1780: ## ---------------------------------------------------------- ##"
 1781:      ) | sed "s/^/$as_me: WARNING:     /" >&2
 1782:     ;;
 1783: esac
 1784:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1785: $as_echo_n "checking for $2... " >&6; }
 1786: if eval \${$3+:} false; then :
 1787:   $as_echo_n "(cached) " >&6
 1788: else
 1789:   eval "$3=\$ac_header_compiler"
 1790: fi
 1791: eval ac_res=\$$3
 1792: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1793: $as_echo "$ac_res" >&6; }
 1794: fi
 1795:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1796: 
 1797: } # ac_fn_cxx_check_header_mongrel
 1798: 
 1799: # ac_fn_cxx_try_run LINENO
 1800: # ------------------------
 1801: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 1802: # that executables *can* be run.
 1803: ac_fn_cxx_try_run ()
 1804: {
 1805:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1806:   if { { ac_try="$ac_link"
 1807: case "(($ac_try" in
 1808:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1809:   *) ac_try_echo=$ac_try;;
 1810: esac
 1811: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1812: $as_echo "$ac_try_echo"; } >&5
 1813:   (eval "$ac_link") 2>&5
 1814:   ac_status=$?
 1815:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1816:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 1817:   { { case "(($ac_try" in
 1818:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1819:   *) ac_try_echo=$ac_try;;
 1820: esac
 1821: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1822: $as_echo "$ac_try_echo"; } >&5
 1823:   (eval "$ac_try") 2>&5
 1824:   ac_status=$?
 1825:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1826:   test $ac_status = 0; }; }; then :
 1827:   ac_retval=0
 1828: else
 1829:   $as_echo "$as_me: program exited with status $ac_status" >&5
 1830:        $as_echo "$as_me: failed program was:" >&5
 1831: sed 's/^/| /' conftest.$ac_ext >&5
 1832: 
 1833:        ac_retval=$ac_status
 1834: fi
 1835:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1836:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1837:   as_fn_set_status $ac_retval
 1838: 
 1839: } # ac_fn_cxx_try_run
 1840: 
 1841: # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
 1842: # ---------------------------------------------------------
 1843: # Tests whether HEADER exists and can be compiled using the include files in
 1844: # INCLUDES, setting the cache variable VAR accordingly.
 1845: ac_fn_cxx_check_header_compile ()
 1846: {
 1847:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1848:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1849: $as_echo_n "checking for $2... " >&6; }
 1850: if eval \${$3+:} false; then :
 1851:   $as_echo_n "(cached) " >&6
 1852: else
 1853:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1854: /* end confdefs.h.  */
 1855: $4
 1856: #include <$2>
 1857: _ACEOF
 1858: if ac_fn_cxx_try_compile "$LINENO"; then :
 1859:   eval "$3=yes"
 1860: else
 1861:   eval "$3=no"
 1862: fi
 1863: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1864: fi
 1865: eval ac_res=\$$3
 1866: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1867: $as_echo "$ac_res" >&6; }
 1868:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1869: 
 1870: } # ac_fn_cxx_check_header_compile
 1871: 
 1872: # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
 1873: # ---------------------------------------------
 1874: # Tests whether TYPE exists after having included INCLUDES, setting cache
 1875: # variable VAR accordingly.
 1876: ac_fn_cxx_check_type ()
 1877: {
 1878:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1879:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1880: $as_echo_n "checking for $2... " >&6; }
 1881: if eval \${$3+:} false; then :
 1882:   $as_echo_n "(cached) " >&6
 1883: else
 1884:   eval "$3=no"
 1885:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1886: /* end confdefs.h.  */
 1887: $4
 1888: int
 1889: main ()
 1890: {
 1891: if (sizeof ($2))
 1892: 	 return 0;
 1893:   ;
 1894:   return 0;
 1895: }
 1896: _ACEOF
 1897: if ac_fn_cxx_try_compile "$LINENO"; then :
 1898:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1899: /* end confdefs.h.  */
 1900: $4
 1901: int
 1902: main ()
 1903: {
 1904: if (sizeof (($2)))
 1905: 	    return 0;
 1906:   ;
 1907:   return 0;
 1908: }
 1909: _ACEOF
 1910: if ac_fn_cxx_try_compile "$LINENO"; then :
 1911: 
 1912: else
 1913:   eval "$3=yes"
 1914: fi
 1915: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1916: fi
 1917: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1918: fi
 1919: eval ac_res=\$$3
 1920: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1921: $as_echo "$ac_res" >&6; }
 1922:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1923: 
 1924: } # ac_fn_cxx_check_type
 1925: 
 1926: # ac_fn_cxx_try_link LINENO
 1927: # -------------------------
 1928: # Try to link conftest.$ac_ext, and return whether this succeeded.
 1929: ac_fn_cxx_try_link ()
 1930: {
 1931:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1932:   rm -f conftest.$ac_objext conftest$ac_exeext
 1933:   if { { ac_try="$ac_link"
 1934: case "(($ac_try" in
 1935:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1936:   *) ac_try_echo=$ac_try;;
 1937: esac
 1938: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1939: $as_echo "$ac_try_echo"; } >&5
 1940:   (eval "$ac_link") 2>conftest.err
 1941:   ac_status=$?
 1942:   if test -s conftest.err; then
 1943:     grep -v '^ *+' conftest.err >conftest.er1
 1944:     cat conftest.er1 >&5
 1945:     mv -f conftest.er1 conftest.err
 1946:   fi
 1947:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1948:   test $ac_status = 0; } && {
 1949: 	 test -z "$ac_cxx_werror_flag" ||
 1950: 	 test ! -s conftest.err
 1951:        } && test -s conftest$ac_exeext && {
 1952: 	 test "$cross_compiling" = yes ||
 1953: 	 test -x conftest$ac_exeext
 1954:        }; then :
 1955:   ac_retval=0
 1956: else
 1957:   $as_echo "$as_me: failed program was:" >&5
 1958: sed 's/^/| /' conftest.$ac_ext >&5
 1959: 
 1960: 	ac_retval=1
 1961: fi
 1962:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 1963:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 1964:   # interfere with the next link command; also delete a directory that is
 1965:   # left behind by Apple's compiler.  We do this before executing the actions.
 1966:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1967:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1968:   as_fn_set_status $ac_retval
 1969: 
 1970: } # ac_fn_cxx_try_link
 1971: 
 1972: # ac_fn_cxx_check_func LINENO FUNC VAR
 1973: # ------------------------------------
 1974: # Tests whether FUNC exists, setting the cache variable VAR accordingly
 1975: ac_fn_cxx_check_func ()
 1976: {
 1977:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1978:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1979: $as_echo_n "checking for $2... " >&6; }
 1980: if eval \${$3+:} false; then :
 1981:   $as_echo_n "(cached) " >&6
 1982: else
 1983:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1984: /* end confdefs.h.  */
 1985: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 1986:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 1987: #define $2 innocuous_$2
 1988: 
 1989: /* System header to define __stub macros and hopefully few prototypes,
 1990:     which can conflict with char $2 (); below.
 1991:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 1992:     <limits.h> exists even on freestanding compilers.  */
 1993: 
 1994: #ifdef __STDC__
 1995: # include <limits.h>
 1996: #else
 1997: # include <assert.h>
 1998: #endif
 1999: 
 2000: #undef $2
 2001: 
 2002: /* Override any GCC internal prototype to avoid an error.
 2003:    Use char because int might match the return type of a GCC
 2004:    builtin and then its argument prototype would still apply.  */
 2005: #ifdef __cplusplus
 2006: extern "C"
 2007: #endif
 2008: char $2 ();
 2009: /* The GNU C library defines this for functions which it implements
 2010:     to always fail with ENOSYS.  Some functions are actually named
 2011:     something starting with __ and the normal name is an alias.  */
 2012: #if defined __stub_$2 || defined __stub___$2
 2013: choke me
 2014: #endif
 2015: 
 2016: int
 2017: main ()
 2018: {
 2019: return $2 ();
 2020:   ;
 2021:   return 0;
 2022: }
 2023: _ACEOF
 2024: if ac_fn_cxx_try_link "$LINENO"; then :
 2025:   eval "$3=yes"
 2026: else
 2027:   eval "$3=no"
 2028: fi
 2029: rm -f core conftest.err conftest.$ac_objext \
 2030:     conftest$ac_exeext conftest.$ac_ext
 2031: fi
 2032: eval ac_res=\$$3
 2033: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2034: $as_echo "$ac_res" >&6; }
 2035:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2036: 
 2037: } # ac_fn_cxx_check_func
 2038: cat >config.log <<_ACEOF
 2039: This file contains any messages produced by compilers while
 2040: running configure, to aid debugging if configure makes a mistake.
 2041: 
 2042: It was created by smartmontools $as_me 6.2, which was
 2043: generated by GNU Autoconf 2.69.  Invocation command line was
 2044: 
 2045:   $ $0 $@
 2046: 
 2047: _ACEOF
 2048: exec 5>>config.log
 2049: {
 2050: cat <<_ASUNAME
 2051: ## --------- ##
 2052: ## Platform. ##
 2053: ## --------- ##
 2054: 
 2055: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 2056: uname -m = `(uname -m) 2>/dev/null || echo unknown`
 2057: uname -r = `(uname -r) 2>/dev/null || echo unknown`
 2058: uname -s = `(uname -s) 2>/dev/null || echo unknown`
 2059: uname -v = `(uname -v) 2>/dev/null || echo unknown`
 2060: 
 2061: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 2062: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 2063: 
 2064: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 2065: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 2066: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 2067: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 2068: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 2069: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 2070: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 2071: 
 2072: _ASUNAME
 2073: 
 2074: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2075: for as_dir in $PATH
 2076: do
 2077:   IFS=$as_save_IFS
 2078:   test -z "$as_dir" && as_dir=.
 2079:     $as_echo "PATH: $as_dir"
 2080:   done
 2081: IFS=$as_save_IFS
 2082: 
 2083: } >&5
 2084: 
 2085: cat >&5 <<_ACEOF
 2086: 
 2087: 
 2088: ## ----------- ##
 2089: ## Core tests. ##
 2090: ## ----------- ##
 2091: 
 2092: _ACEOF
 2093: 
 2094: 
 2095: # Keep a trace of the command line.
 2096: # Strip out --no-create and --no-recursion so they do not pile up.
 2097: # Strip out --silent because we don't want to record it for future runs.
 2098: # Also quote any args containing shell meta-characters.
 2099: # Make two passes to allow for proper duplicate-argument suppression.
 2100: ac_configure_args=
 2101: ac_configure_args0=
 2102: ac_configure_args1=
 2103: ac_must_keep_next=false
 2104: for ac_pass in 1 2
 2105: do
 2106:   for ac_arg
 2107:   do
 2108:     case $ac_arg in
 2109:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 2110:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 2111:     | -silent | --silent | --silen | --sile | --sil)
 2112:       continue ;;
 2113:     *\'*)
 2114:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 2115:     esac
 2116:     case $ac_pass in
 2117:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 2118:     2)
 2119:       as_fn_append ac_configure_args1 " '$ac_arg'"
 2120:       if test $ac_must_keep_next = true; then
 2121: 	ac_must_keep_next=false # Got value, back to normal.
 2122:       else
 2123: 	case $ac_arg in
 2124: 	  *=* | --config-cache | -C | -disable-* | --disable-* \
 2125: 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 2126: 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 2127: 	  | -with-* | --with-* | -without-* | --without-* | --x)
 2128: 	    case "$ac_configure_args0 " in
 2129: 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 2130: 	    esac
 2131: 	    ;;
 2132: 	  -* ) ac_must_keep_next=true ;;
 2133: 	esac
 2134:       fi
 2135:       as_fn_append ac_configure_args " '$ac_arg'"
 2136:       ;;
 2137:     esac
 2138:   done
 2139: done
 2140: { ac_configure_args0=; unset ac_configure_args0;}
 2141: { ac_configure_args1=; unset ac_configure_args1;}
 2142: 
 2143: # When interrupted or exit'd, cleanup temporary files, and complete
 2144: # config.log.  We remove comments because anyway the quotes in there
 2145: # would cause problems or look ugly.
 2146: # WARNING: Use '\'' to represent an apostrophe within the trap.
 2147: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 2148: trap 'exit_status=$?
 2149:   # Save into config.log some information that might help in debugging.
 2150:   {
 2151:     echo
 2152: 
 2153:     $as_echo "## ---------------- ##
 2154: ## Cache variables. ##
 2155: ## ---------------- ##"
 2156:     echo
 2157:     # The following way of writing the cache mishandles newlines in values,
 2158: (
 2159:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 2160:     eval ac_val=\$$ac_var
 2161:     case $ac_val in #(
 2162:     *${as_nl}*)
 2163:       case $ac_var in #(
 2164:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 2165: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 2166:       esac
 2167:       case $ac_var in #(
 2168:       _ | IFS | as_nl) ;; #(
 2169:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 2170:       *) { eval $ac_var=; unset $ac_var;} ;;
 2171:       esac ;;
 2172:     esac
 2173:   done
 2174:   (set) 2>&1 |
 2175:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 2176:     *${as_nl}ac_space=\ *)
 2177:       sed -n \
 2178: 	"s/'\''/'\''\\\\'\'''\''/g;
 2179: 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 2180:       ;; #(
 2181:     *)
 2182:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 2183:       ;;
 2184:     esac |
 2185:     sort
 2186: )
 2187:     echo
 2188: 
 2189:     $as_echo "## ----------------- ##
 2190: ## Output variables. ##
 2191: ## ----------------- ##"
 2192:     echo
 2193:     for ac_var in $ac_subst_vars
 2194:     do
 2195:       eval ac_val=\$$ac_var
 2196:       case $ac_val in
 2197:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2198:       esac
 2199:       $as_echo "$ac_var='\''$ac_val'\''"
 2200:     done | sort
 2201:     echo
 2202: 
 2203:     if test -n "$ac_subst_files"; then
 2204:       $as_echo "## ------------------- ##
 2205: ## File substitutions. ##
 2206: ## ------------------- ##"
 2207:       echo
 2208:       for ac_var in $ac_subst_files
 2209:       do
 2210: 	eval ac_val=\$$ac_var
 2211: 	case $ac_val in
 2212: 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2213: 	esac
 2214: 	$as_echo "$ac_var='\''$ac_val'\''"
 2215:       done | sort
 2216:       echo
 2217:     fi
 2218: 
 2219:     if test -s confdefs.h; then
 2220:       $as_echo "## ----------- ##
 2221: ## confdefs.h. ##
 2222: ## ----------- ##"
 2223:       echo
 2224:       cat confdefs.h
 2225:       echo
 2226:     fi
 2227:     test "$ac_signal" != 0 &&
 2228:       $as_echo "$as_me: caught signal $ac_signal"
 2229:     $as_echo "$as_me: exit $exit_status"
 2230:   } >&5
 2231:   rm -f core *.core core.conftest.* &&
 2232:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 2233:     exit $exit_status
 2234: ' 0
 2235: for ac_signal in 1 2 13 15; do
 2236:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 2237: done
 2238: ac_signal=0
 2239: 
 2240: # confdefs.h avoids OS command line length limits that DEFS can exceed.
 2241: rm -f -r conftest* confdefs.h
 2242: 
 2243: $as_echo "/* confdefs.h */" > confdefs.h
 2244: 
 2245: # Predefined preprocessor variables.
 2246: 
 2247: cat >>confdefs.h <<_ACEOF
 2248: #define PACKAGE_NAME "$PACKAGE_NAME"
 2249: _ACEOF
 2250: 
 2251: cat >>confdefs.h <<_ACEOF
 2252: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 2253: _ACEOF
 2254: 
 2255: cat >>confdefs.h <<_ACEOF
 2256: #define PACKAGE_VERSION "$PACKAGE_VERSION"
 2257: _ACEOF
 2258: 
 2259: cat >>confdefs.h <<_ACEOF
 2260: #define PACKAGE_STRING "$PACKAGE_STRING"
 2261: _ACEOF
 2262: 
 2263: cat >>confdefs.h <<_ACEOF
 2264: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 2265: _ACEOF
 2266: 
 2267: cat >>confdefs.h <<_ACEOF
 2268: #define PACKAGE_URL "$PACKAGE_URL"
 2269: _ACEOF
 2270: 
 2271: 
 2272: # Let the site file select an alternate cache file if it wants to.
 2273: # Prefer an explicitly selected file to automatically selected ones.
 2274: ac_site_file1=NONE
 2275: ac_site_file2=NONE
 2276: if test -n "$CONFIG_SITE"; then
 2277:   # We do not want a PATH search for config.site.
 2278:   case $CONFIG_SITE in #((
 2279:     -*)  ac_site_file1=./$CONFIG_SITE;;
 2280:     */*) ac_site_file1=$CONFIG_SITE;;
 2281:     *)   ac_site_file1=./$CONFIG_SITE;;
 2282:   esac
 2283: elif test "x$prefix" != xNONE; then
 2284:   ac_site_file1=$prefix/share/config.site
 2285:   ac_site_file2=$prefix/etc/config.site
 2286: else
 2287:   ac_site_file1=$ac_default_prefix/share/config.site
 2288:   ac_site_file2=$ac_default_prefix/etc/config.site
 2289: fi
 2290: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 2291: do
 2292:   test "x$ac_site_file" = xNONE && continue
 2293:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 2294:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2295: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 2296:     sed 's/^/| /' "$ac_site_file" >&5
 2297:     . "$ac_site_file" \
 2298:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2299: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2300: as_fn_error $? "failed to load site script $ac_site_file
 2301: See \`config.log' for more details" "$LINENO" 5; }
 2302:   fi
 2303: done
 2304: 
 2305: if test -r "$cache_file"; then
 2306:   # Some versions of bash will fail to source /dev/null (special files
 2307:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 2308:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 2309:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 2310: $as_echo "$as_me: loading cache $cache_file" >&6;}
 2311:     case $cache_file in
 2312:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 2313:       *)                      . "./$cache_file";;
 2314:     esac
 2315:   fi
 2316: else
 2317:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 2318: $as_echo "$as_me: creating cache $cache_file" >&6;}
 2319:   >$cache_file
 2320: fi
 2321: 
 2322: # Check that the precious variables saved in the cache have kept the same
 2323: # value.
 2324: ac_cache_corrupted=false
 2325: for ac_var in $ac_precious_vars; do
 2326:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 2327:   eval ac_new_set=\$ac_env_${ac_var}_set
 2328:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 2329:   eval ac_new_val=\$ac_env_${ac_var}_value
 2330:   case $ac_old_set,$ac_new_set in
 2331:     set,)
 2332:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 2333: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 2334:       ac_cache_corrupted=: ;;
 2335:     ,set)
 2336:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 2337: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 2338:       ac_cache_corrupted=: ;;
 2339:     ,);;
 2340:     *)
 2341:       if test "x$ac_old_val" != "x$ac_new_val"; then
 2342: 	# differences in whitespace do not lead to failure.
 2343: 	ac_old_val_w=`echo x $ac_old_val`
 2344: 	ac_new_val_w=`echo x $ac_new_val`
 2345: 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
 2346: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 2347: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 2348: 	  ac_cache_corrupted=:
 2349: 	else
 2350: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 2351: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 2352: 	  eval $ac_var=\$ac_old_val
 2353: 	fi
 2354: 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 2355: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 2356: 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 2357: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 2358:       fi;;
 2359:   esac
 2360:   # Pass precious variables to config.status.
 2361:   if test "$ac_new_set" = set; then
 2362:     case $ac_new_val in
 2363:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 2364:     *) ac_arg=$ac_var=$ac_new_val ;;
 2365:     esac
 2366:     case " $ac_configure_args " in
 2367:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 2368:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 2369:     esac
 2370:   fi
 2371: done
 2372: if $ac_cache_corrupted; then
 2373:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2374: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2375:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 2376: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 2377:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 2378: fi
 2379: ## -------------------- ##
 2380: ## Main body of script. ##
 2381: ## -------------------- ##
 2382: 
 2383: ac_ext=c
 2384: ac_cpp='$CPP $CPPFLAGS'
 2385: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2386: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2387: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2388: 
 2389: 
 2390: 
 2391: 
 2392: smartmontools_configure_date=`date -u +'%Y-%m-%d %T %Z'`
 2393: smartmontools_cvs_tag=`echo '$Id: configure,v 1.1.1.4 2013/10/14 07:54:03 misho Exp $'`
 2394: smartmontools_release_date=2013-07-26
 2395: smartmontools_release_time="17:38:20 UTC"
 2396: 
 2397: 
 2398: cat >>confdefs.h <<_ACEOF
 2399: #define SMARTMONTOOLS_CONFIGURE_ARGS "$ac_configure_args"
 2400: _ACEOF
 2401: 
 2402: 
 2403: cat >>confdefs.h <<_ACEOF
 2404: #define SMARTMONTOOLS_CONFIGURE_DATE "$smartmontools_configure_date"
 2405: _ACEOF
 2406: 
 2407: 
 2408: cat >>confdefs.h <<_ACEOF
 2409: #define SMARTMONTOOLS_RELEASE_DATE "$smartmontools_release_date"
 2410: _ACEOF
 2411: 
 2412: 
 2413: cat >>confdefs.h <<_ACEOF
 2414: #define SMARTMONTOOLS_RELEASE_TIME "$smartmontools_release_time"
 2415: _ACEOF
 2416: 
 2417: 
 2418: cat >>confdefs.h <<_ACEOF
 2419: #define CONFIG_H_CVSID "$smartmontools_cvs_tag"
 2420: _ACEOF
 2421: 
 2422: 
 2423: cat >>confdefs.h <<_ACEOF
 2424: #define PACKAGE_HOMEPAGE "http://smartmontools.sourceforge.net/"
 2425: _ACEOF
 2426: 
 2427: 
 2428: ac_config_headers="$ac_config_headers config.h"
 2429: 
 2430: 
 2431: am__api_version='1.12'
 2432: 
 2433: ac_aux_dir=
 2434: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 2435:   if test -f "$ac_dir/install-sh"; then
 2436:     ac_aux_dir=$ac_dir
 2437:     ac_install_sh="$ac_aux_dir/install-sh -c"
 2438:     break
 2439:   elif test -f "$ac_dir/install.sh"; then
 2440:     ac_aux_dir=$ac_dir
 2441:     ac_install_sh="$ac_aux_dir/install.sh -c"
 2442:     break
 2443:   elif test -f "$ac_dir/shtool"; then
 2444:     ac_aux_dir=$ac_dir
 2445:     ac_install_sh="$ac_aux_dir/shtool install -c"
 2446:     break
 2447:   fi
 2448: done
 2449: if test -z "$ac_aux_dir"; then
 2450:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 2451: fi
 2452: 
 2453: # These three variables are undocumented and unsupported,
 2454: # and are intended to be withdrawn in a future Autoconf release.
 2455: # They can cause serious problems if a builder's source tree is in a directory
 2456: # whose full name contains unusual characters.
 2457: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 2458: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 2459: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 2460: 
 2461: 
 2462: # Find a good install program.  We prefer a C program (faster),
 2463: # so one script is as good as another.  But avoid the broken or
 2464: # incompatible versions:
 2465: # SysV /etc/install, /usr/sbin/install
 2466: # SunOS /usr/etc/install
 2467: # IRIX /sbin/install
 2468: # AIX /bin/install
 2469: # AmigaOS /C/install, which installs bootblocks on floppy discs
 2470: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 2471: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 2472: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 2473: # OS/2's system install, which has a completely different semantic
 2474: # ./install, which can be erroneously created by make from ./install.sh.
 2475: # Reject install programs that cannot install multiple files.
 2476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 2477: $as_echo_n "checking for a BSD-compatible install... " >&6; }
 2478: if test -z "$INSTALL"; then
 2479: if ${ac_cv_path_install+:} false; then :
 2480:   $as_echo_n "(cached) " >&6
 2481: else
 2482:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2483: for as_dir in $PATH
 2484: do
 2485:   IFS=$as_save_IFS
 2486:   test -z "$as_dir" && as_dir=.
 2487:     # Account for people who put trailing slashes in PATH elements.
 2488: case $as_dir/ in #((
 2489:   ./ | .// | /[cC]/* | \
 2490:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 2491:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 2492:   /usr/ucb/* ) ;;
 2493:   *)
 2494:     # OSF1 and SCO ODT 3.0 have their own names for install.
 2495:     # Don't use installbsd from OSF since it installs stuff as root
 2496:     # by default.
 2497:     for ac_prog in ginstall scoinst install; do
 2498:       for ac_exec_ext in '' $ac_executable_extensions; do
 2499: 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 2500: 	  if test $ac_prog = install &&
 2501: 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 2502: 	    # AIX install.  It has an incompatible calling convention.
 2503: 	    :
 2504: 	  elif test $ac_prog = install &&
 2505: 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 2506: 	    # program-specific install script used by HP pwplus--don't use.
 2507: 	    :
 2508: 	  else
 2509: 	    rm -rf conftest.one conftest.two conftest.dir
 2510: 	    echo one > conftest.one
 2511: 	    echo two > conftest.two
 2512: 	    mkdir conftest.dir
 2513: 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 2514: 	      test -s conftest.one && test -s conftest.two &&
 2515: 	      test -s conftest.dir/conftest.one &&
 2516: 	      test -s conftest.dir/conftest.two
 2517: 	    then
 2518: 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 2519: 	      break 3
 2520: 	    fi
 2521: 	  fi
 2522: 	fi
 2523:       done
 2524:     done
 2525:     ;;
 2526: esac
 2527: 
 2528:   done
 2529: IFS=$as_save_IFS
 2530: 
 2531: rm -rf conftest.one conftest.two conftest.dir
 2532: 
 2533: fi
 2534:   if test "${ac_cv_path_install+set}" = set; then
 2535:     INSTALL=$ac_cv_path_install
 2536:   else
 2537:     # As a last resort, use the slow shell script.  Don't cache a
 2538:     # value for INSTALL within a source directory, because that will
 2539:     # break other packages using the cache if that directory is
 2540:     # removed, or if the value is a relative name.
 2541:     INSTALL=$ac_install_sh
 2542:   fi
 2543: fi
 2544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 2545: $as_echo "$INSTALL" >&6; }
 2546: 
 2547: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 2548: # It thinks the first close brace ends the variable substitution.
 2549: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 2550: 
 2551: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 2552: 
 2553: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 2554: 
 2555: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 2556: $as_echo_n "checking whether build environment is sane... " >&6; }
 2557: # Reject unsafe characters in $srcdir or the absolute working directory
 2558: # name.  Accept space and tab only in the latter.
 2559: am_lf='
 2560: '
 2561: case `pwd` in
 2562:   *[\\\"\#\$\&\'\`$am_lf]*)
 2563:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 2564: esac
 2565: case $srcdir in
 2566:   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
 2567:     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
 2568: esac
 2569: 
 2570: # Do 'set' in a subshell so we don't clobber the current shell's
 2571: # arguments.  Must try -L first in case configure is actually a
 2572: # symlink; some systems play weird games with the mod time of symlinks
 2573: # (eg FreeBSD returns the mod time of the symlink's containing
 2574: # directory).
 2575: if (
 2576:    am_has_slept=no
 2577:    for am_try in 1 2; do
 2578:      echo "timestamp, slept: $am_has_slept" > conftest.file
 2579:      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 2580:      if test "$*" = "X"; then
 2581: 	# -L didn't work.
 2582: 	set X `ls -t "$srcdir/configure" conftest.file`
 2583:      fi
 2584:      if test "$*" != "X $srcdir/configure conftest.file" \
 2585: 	&& test "$*" != "X conftest.file $srcdir/configure"; then
 2586: 
 2587: 	# If neither matched, then we have a broken ls.  This can happen
 2588: 	# if, for instance, CONFIG_SHELL is bash and it inherits a
 2589: 	# broken ls alias from the environment.  This has actually
 2590: 	# happened.  Such a system could not be considered "sane".
 2591: 	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 2592:   alias in your environment" "$LINENO" 5
 2593:      fi
 2594:      if test "$2" = conftest.file || test $am_try -eq 2; then
 2595:        break
 2596:      fi
 2597:      # Just in case.
 2598:      sleep 1
 2599:      am_has_slept=yes
 2600:    done
 2601:    test "$2" = conftest.file
 2602:    )
 2603: then
 2604:    # Ok.
 2605:    :
 2606: else
 2607:    as_fn_error $? "newly created file is older than distributed files!
 2608: Check your system clock" "$LINENO" 5
 2609: fi
 2610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 2611: $as_echo "yes" >&6; }
 2612: # If we didn't sleep, we still need to ensure time stamps of config.status and
 2613: # generated files are strictly newer.
 2614: am_sleep_pid=
 2615: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 2616:   ( sleep 1 ) &
 2617:   am_sleep_pid=$!
 2618: fi
 2619: 
 2620: rm -f conftest.file
 2621: 
 2622: test "$program_prefix" != NONE &&
 2623:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
 2624: # Use a double $ so make ignores it.
 2625: test "$program_suffix" != NONE &&
 2626:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 2627: # Double any \ or $.
 2628: # By default was `s,x,x', remove it if useless.
 2629: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 2630: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 2631: 
 2632: # expand $ac_aux_dir to an absolute path
 2633: am_aux_dir=`cd $ac_aux_dir && pwd`
 2634: 
 2635: if test x"${MISSING+set}" != xset; then
 2636:   case $am_aux_dir in
 2637:   *\ * | *\	*)
 2638:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 2639:   *)
 2640:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
 2641:   esac
 2642: fi
 2643: # Use eval to expand $SHELL
 2644: if eval "$MISSING --run true"; then
 2645:   am_missing_run="$MISSING --run "
 2646: else
 2647:   am_missing_run=
 2648:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 2649: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
 2650: fi
 2651: 
 2652: if test x"${install_sh}" != xset; then
 2653:   case $am_aux_dir in
 2654:   *\ * | *\	*)
 2655:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 2656:   *)
 2657:     install_sh="\${SHELL} $am_aux_dir/install-sh"
 2658:   esac
 2659: fi
 2660: 
 2661: # Installed binaries are usually stripped using 'strip' when the user
 2662: # run "make install-strip".  However 'strip' might not be the right
 2663: # tool to use in cross-compilation environments, therefore Automake
 2664: # will honor the 'STRIP' environment variable to overrule this program.
 2665: if test "$cross_compiling" != no; then
 2666:   if test -n "$ac_tool_prefix"; then
 2667:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 2668: set dummy ${ac_tool_prefix}strip; ac_word=$2
 2669: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2670: $as_echo_n "checking for $ac_word... " >&6; }
 2671: if ${ac_cv_prog_STRIP+:} false; then :
 2672:   $as_echo_n "(cached) " >&6
 2673: else
 2674:   if test -n "$STRIP"; then
 2675:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 2676: else
 2677: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2678: for as_dir in $PATH
 2679: do
 2680:   IFS=$as_save_IFS
 2681:   test -z "$as_dir" && as_dir=.
 2682:     for ac_exec_ext in '' $ac_executable_extensions; do
 2683:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2684:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 2685:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2686:     break 2
 2687:   fi
 2688: done
 2689:   done
 2690: IFS=$as_save_IFS
 2691: 
 2692: fi
 2693: fi
 2694: STRIP=$ac_cv_prog_STRIP
 2695: if test -n "$STRIP"; then
 2696:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 2697: $as_echo "$STRIP" >&6; }
 2698: else
 2699:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2700: $as_echo "no" >&6; }
 2701: fi
 2702: 
 2703: 
 2704: fi
 2705: if test -z "$ac_cv_prog_STRIP"; then
 2706:   ac_ct_STRIP=$STRIP
 2707:   # Extract the first word of "strip", so it can be a program name with args.
 2708: set dummy strip; ac_word=$2
 2709: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2710: $as_echo_n "checking for $ac_word... " >&6; }
 2711: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 2712:   $as_echo_n "(cached) " >&6
 2713: else
 2714:   if test -n "$ac_ct_STRIP"; then
 2715:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 2716: else
 2717: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2718: for as_dir in $PATH
 2719: do
 2720:   IFS=$as_save_IFS
 2721:   test -z "$as_dir" && as_dir=.
 2722:     for ac_exec_ext in '' $ac_executable_extensions; do
 2723:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2724:     ac_cv_prog_ac_ct_STRIP="strip"
 2725:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2726:     break 2
 2727:   fi
 2728: done
 2729:   done
 2730: IFS=$as_save_IFS
 2731: 
 2732: fi
 2733: fi
 2734: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 2735: if test -n "$ac_ct_STRIP"; then
 2736:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 2737: $as_echo "$ac_ct_STRIP" >&6; }
 2738: else
 2739:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2740: $as_echo "no" >&6; }
 2741: fi
 2742: 
 2743:   if test "x$ac_ct_STRIP" = x; then
 2744:     STRIP=":"
 2745:   else
 2746:     case $cross_compiling:$ac_tool_warned in
 2747: yes:)
 2748: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2749: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2750: ac_tool_warned=yes ;;
 2751: esac
 2752:     STRIP=$ac_ct_STRIP
 2753:   fi
 2754: else
 2755:   STRIP="$ac_cv_prog_STRIP"
 2756: fi
 2757: 
 2758: fi
 2759: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 2760: 
 2761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 2762: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 2763: if test -z "$MKDIR_P"; then
 2764:   if ${ac_cv_path_mkdir+:} false; then :
 2765:   $as_echo_n "(cached) " >&6
 2766: else
 2767:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2768: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 2769: do
 2770:   IFS=$as_save_IFS
 2771:   test -z "$as_dir" && as_dir=.
 2772:     for ac_prog in mkdir gmkdir; do
 2773: 	 for ac_exec_ext in '' $ac_executable_extensions; do
 2774: 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 2775: 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 2776: 	     'mkdir (GNU coreutils) '* | \
 2777: 	     'mkdir (coreutils) '* | \
 2778: 	     'mkdir (fileutils) '4.1*)
 2779: 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 2780: 	       break 3;;
 2781: 	   esac
 2782: 	 done
 2783:        done
 2784:   done
 2785: IFS=$as_save_IFS
 2786: 
 2787: fi
 2788: 
 2789:   test -d ./--version && rmdir ./--version
 2790:   if test "${ac_cv_path_mkdir+set}" = set; then
 2791:     MKDIR_P="$ac_cv_path_mkdir -p"
 2792:   else
 2793:     # As a last resort, use the slow shell script.  Don't cache a
 2794:     # value for MKDIR_P within a source directory, because that will
 2795:     # break other packages using the cache if that directory is
 2796:     # removed, or if the value is a relative name.
 2797:     MKDIR_P="$ac_install_sh -d"
 2798:   fi
 2799: fi
 2800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 2801: $as_echo "$MKDIR_P" >&6; }
 2802: 
 2803: for ac_prog in gawk mawk nawk awk
 2804: do
 2805:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2806: set dummy $ac_prog; ac_word=$2
 2807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2808: $as_echo_n "checking for $ac_word... " >&6; }
 2809: if ${ac_cv_prog_AWK+:} false; then :
 2810:   $as_echo_n "(cached) " >&6
 2811: else
 2812:   if test -n "$AWK"; then
 2813:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
 2814: else
 2815: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2816: for as_dir in $PATH
 2817: do
 2818:   IFS=$as_save_IFS
 2819:   test -z "$as_dir" && as_dir=.
 2820:     for ac_exec_ext in '' $ac_executable_extensions; do
 2821:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2822:     ac_cv_prog_AWK="$ac_prog"
 2823:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2824:     break 2
 2825:   fi
 2826: done
 2827:   done
 2828: IFS=$as_save_IFS
 2829: 
 2830: fi
 2831: fi
 2832: AWK=$ac_cv_prog_AWK
 2833: if test -n "$AWK"; then
 2834:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 2835: $as_echo "$AWK" >&6; }
 2836: else
 2837:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2838: $as_echo "no" >&6; }
 2839: fi
 2840: 
 2841: 
 2842:   test -n "$AWK" && break
 2843: done
 2844: 
 2845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 2846: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 2847: set x ${MAKE-make}
 2848: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 2849: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 2850:   $as_echo_n "(cached) " >&6
 2851: else
 2852:   cat >conftest.make <<\_ACEOF
 2853: SHELL = /bin/sh
 2854: all:
 2855: 	@echo '@@@%%%=$(MAKE)=@@@%%%'
 2856: _ACEOF
 2857: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 2858: case `${MAKE-make} -f conftest.make 2>/dev/null` in
 2859:   *@@@%%%=?*=@@@%%%*)
 2860:     eval ac_cv_prog_make_${ac_make}_set=yes;;
 2861:   *)
 2862:     eval ac_cv_prog_make_${ac_make}_set=no;;
 2863: esac
 2864: rm -f conftest.make
 2865: fi
 2866: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 2867:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 2868: $as_echo "yes" >&6; }
 2869:   SET_MAKE=
 2870: else
 2871:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2872: $as_echo "no" >&6; }
 2873:   SET_MAKE="MAKE=${MAKE-make}"
 2874: fi
 2875: 
 2876: rm -rf .tst 2>/dev/null
 2877: mkdir .tst 2>/dev/null
 2878: if test -d .tst; then
 2879:   am__leading_dot=.
 2880: else
 2881:   am__leading_dot=_
 2882: fi
 2883: rmdir .tst 2>/dev/null
 2884: 
 2885: if test "`cd $srcdir && pwd`" != "`pwd`"; then
 2886:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 2887:   # is not polluted with repeated "-I."
 2888:   am__isrc=' -I$(srcdir)'
 2889:   # test to see if srcdir already configured
 2890:   if test -f $srcdir/config.status; then
 2891:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 2892:   fi
 2893: fi
 2894: 
 2895: # test whether we have cygpath
 2896: if test -z "$CYGPATH_W"; then
 2897:   if (cygpath --version) >/dev/null 2>/dev/null; then
 2898:     CYGPATH_W='cygpath -w'
 2899:   else
 2900:     CYGPATH_W=echo
 2901:   fi
 2902: fi
 2903: 
 2904: 
 2905: # Define the identity of the package.
 2906:  PACKAGE='smartmontools'
 2907:  VERSION='6.2'
 2908: 
 2909: 
 2910: cat >>confdefs.h <<_ACEOF
 2911: #define PACKAGE "$PACKAGE"
 2912: _ACEOF
 2913: 
 2914: 
 2915: cat >>confdefs.h <<_ACEOF
 2916: #define VERSION "$VERSION"
 2917: _ACEOF
 2918: 
 2919: # Some tools Automake needs.
 2920: 
 2921: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 2922: 
 2923: 
 2924: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 2925: 
 2926: 
 2927: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 2928: 
 2929: 
 2930: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 2931: 
 2932: 
 2933: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 2934: 
 2935: # For better backward compatibility.  To be removed once Automake 1.9.x
 2936: # dies out for good.  For more background, see:
 2937: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 2938: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 2939: mkdir_p='$(MKDIR_P)'
 2940: 
 2941: # We need awk for the "check" target.  The system "awk" is bad on
 2942: # some platforms.
 2943: # Always define AMTAR for backward compatibility.  Yes, it's still used
 2944: # in the wild :-(  We should find a proper way to deprecate it ...
 2945: AMTAR='$${TAR-tar}'
 2946: 
 2947: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 2948: 
 2949: 
 2950: 
 2951: 
 2952: 
 2953: 
 2954: 
 2955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 2956: $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 2957:     # Check whether --enable-maintainer-mode was given.
 2958: if test "${enable_maintainer_mode+set}" = set; then :
 2959:   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 2960: else
 2961:   USE_MAINTAINER_MODE=no
 2962: fi
 2963: 
 2964:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 2965: $as_echo "$USE_MAINTAINER_MODE" >&6; }
 2966:    if test $USE_MAINTAINER_MODE = yes; then
 2967:   MAINTAINER_MODE_TRUE=
 2968:   MAINTAINER_MODE_FALSE='#'
 2969: else
 2970:   MAINTAINER_MODE_TRUE='#'
 2971:   MAINTAINER_MODE_FALSE=
 2972: fi
 2973: 
 2974:   MAINT=$MAINTAINER_MODE_TRUE
 2975: 
 2976: 
 2977: 
 2978: ac_ext=cpp
 2979: ac_cpp='$CXXCPP $CPPFLAGS'
 2980: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2981: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2982: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 2983: 
 2984: ac_ext=cpp
 2985: ac_cpp='$CXXCPP $CPPFLAGS'
 2986: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2987: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2988: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 2989: if test -z "$CXX"; then
 2990:   if test -n "$CCC"; then
 2991:     CXX=$CCC
 2992:   else
 2993:     if test -n "$ac_tool_prefix"; then
 2994:   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 2995:   do
 2996:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 2997: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 2998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2999: $as_echo_n "checking for $ac_word... " >&6; }
 3000: if ${ac_cv_prog_CXX+:} false; then :
 3001:   $as_echo_n "(cached) " >&6
 3002: else
 3003:   if test -n "$CXX"; then
 3004:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
 3005: else
 3006: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3007: for as_dir in $PATH
 3008: do
 3009:   IFS=$as_save_IFS
 3010:   test -z "$as_dir" && as_dir=.
 3011:     for ac_exec_ext in '' $ac_executable_extensions; do
 3012:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3013:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 3014:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3015:     break 2
 3016:   fi
 3017: done
 3018:   done
 3019: IFS=$as_save_IFS
 3020: 
 3021: fi
 3022: fi
 3023: CXX=$ac_cv_prog_CXX
 3024: if test -n "$CXX"; then
 3025:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 3026: $as_echo "$CXX" >&6; }
 3027: else
 3028:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3029: $as_echo "no" >&6; }
 3030: fi
 3031: 
 3032: 
 3033:     test -n "$CXX" && break
 3034:   done
 3035: fi
 3036: if test -z "$CXX"; then
 3037:   ac_ct_CXX=$CXX
 3038:   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 3039: do
 3040:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 3041: set dummy $ac_prog; ac_word=$2
 3042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3043: $as_echo_n "checking for $ac_word... " >&6; }
 3044: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 3045:   $as_echo_n "(cached) " >&6
 3046: else
 3047:   if test -n "$ac_ct_CXX"; then
 3048:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 3049: else
 3050: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3051: for as_dir in $PATH
 3052: do
 3053:   IFS=$as_save_IFS
 3054:   test -z "$as_dir" && as_dir=.
 3055:     for ac_exec_ext in '' $ac_executable_extensions; do
 3056:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3057:     ac_cv_prog_ac_ct_CXX="$ac_prog"
 3058:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3059:     break 2
 3060:   fi
 3061: done
 3062:   done
 3063: IFS=$as_save_IFS
 3064: 
 3065: fi
 3066: fi
 3067: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 3068: if test -n "$ac_ct_CXX"; then
 3069:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 3070: $as_echo "$ac_ct_CXX" >&6; }
 3071: else
 3072:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3073: $as_echo "no" >&6; }
 3074: fi
 3075: 
 3076: 
 3077:   test -n "$ac_ct_CXX" && break
 3078: done
 3079: 
 3080:   if test "x$ac_ct_CXX" = x; then
 3081:     CXX="g++"
 3082:   else
 3083:     case $cross_compiling:$ac_tool_warned in
 3084: yes:)
 3085: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3086: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3087: ac_tool_warned=yes ;;
 3088: esac
 3089:     CXX=$ac_ct_CXX
 3090:   fi
 3091: fi
 3092: 
 3093:   fi
 3094: fi
 3095: # Provide some information about the compiler.
 3096: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 3097: set X $ac_compile
 3098: ac_compiler=$2
 3099: for ac_option in --version -v -V -qversion; do
 3100:   { { ac_try="$ac_compiler $ac_option >&5"
 3101: case "(($ac_try" in
 3102:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3103:   *) ac_try_echo=$ac_try;;
 3104: esac
 3105: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3106: $as_echo "$ac_try_echo"; } >&5
 3107:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 3108:   ac_status=$?
 3109:   if test -s conftest.err; then
 3110:     sed '10a\
 3111: ... rest of stderr output deleted ...
 3112:          10q' conftest.err >conftest.er1
 3113:     cat conftest.er1 >&5
 3114:   fi
 3115:   rm -f conftest.er1 conftest.err
 3116:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3117:   test $ac_status = 0; }
 3118: done
 3119: 
 3120: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3121: /* end confdefs.h.  */
 3122: 
 3123: int
 3124: main ()
 3125: {
 3126: 
 3127:   ;
 3128:   return 0;
 3129: }
 3130: _ACEOF
 3131: ac_clean_files_save=$ac_clean_files
 3132: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 3133: # Try to create an executable without -o first, disregard a.out.
 3134: # It will help us diagnose broken compilers, and finding out an intuition
 3135: # of exeext.
 3136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
 3137: $as_echo_n "checking whether the C++ compiler works... " >&6; }
 3138: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 3139: 
 3140: # The possible output files:
 3141: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 3142: 
 3143: ac_rmfiles=
 3144: for ac_file in $ac_files
 3145: do
 3146:   case $ac_file in
 3147:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 3148:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 3149:   esac
 3150: done
 3151: rm -f $ac_rmfiles
 3152: 
 3153: if { { ac_try="$ac_link_default"
 3154: case "(($ac_try" in
 3155:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3156:   *) ac_try_echo=$ac_try;;
 3157: esac
 3158: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3159: $as_echo "$ac_try_echo"; } >&5
 3160:   (eval "$ac_link_default") 2>&5
 3161:   ac_status=$?
 3162:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3163:   test $ac_status = 0; }; then :
 3164:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 3165: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 3166: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 3167: # so that the user can short-circuit this test for compilers unknown to
 3168: # Autoconf.
 3169: for ac_file in $ac_files ''
 3170: do
 3171:   test -f "$ac_file" || continue
 3172:   case $ac_file in
 3173:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 3174: 	;;
 3175:     [ab].out )
 3176: 	# We found the default executable, but exeext='' is most
 3177: 	# certainly right.
 3178: 	break;;
 3179:     *.* )
 3180: 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 3181: 	then :; else
 3182: 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3183: 	fi
 3184: 	# We set ac_cv_exeext here because the later test for it is not
 3185: 	# safe: cross compilers may not add the suffix if given an `-o'
 3186: 	# argument, so we may need to know it at that point already.
 3187: 	# Even if this section looks crufty: it has the advantage of
 3188: 	# actually working.
 3189: 	break;;
 3190:     * )
 3191: 	break;;
 3192:   esac
 3193: done
 3194: test "$ac_cv_exeext" = no && ac_cv_exeext=
 3195: 
 3196: else
 3197:   ac_file=''
 3198: fi
 3199: if test -z "$ac_file"; then :
 3200:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3201: $as_echo "no" >&6; }
 3202: $as_echo "$as_me: failed program was:" >&5
 3203: sed 's/^/| /' conftest.$ac_ext >&5
 3204: 
 3205: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3206: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3207: as_fn_error 77 "C++ compiler cannot create executables
 3208: See \`config.log' for more details" "$LINENO" 5; }
 3209: else
 3210:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3211: $as_echo "yes" >&6; }
 3212: fi
 3213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
 3214: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
 3215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 3216: $as_echo "$ac_file" >&6; }
 3217: ac_exeext=$ac_cv_exeext
 3218: 
 3219: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 3220: ac_clean_files=$ac_clean_files_save
 3221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 3222: $as_echo_n "checking for suffix of executables... " >&6; }
 3223: if { { ac_try="$ac_link"
 3224: case "(($ac_try" in
 3225:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3226:   *) ac_try_echo=$ac_try;;
 3227: esac
 3228: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3229: $as_echo "$ac_try_echo"; } >&5
 3230:   (eval "$ac_link") 2>&5
 3231:   ac_status=$?
 3232:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3233:   test $ac_status = 0; }; then :
 3234:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 3235: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 3236: # work properly (i.e., refer to `conftest.exe'), while it won't with
 3237: # `rm'.
 3238: for ac_file in conftest.exe conftest conftest.*; do
 3239:   test -f "$ac_file" || continue
 3240:   case $ac_file in
 3241:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 3242:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3243: 	  break;;
 3244:     * ) break;;
 3245:   esac
 3246: done
 3247: else
 3248:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3249: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3250: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 3251: See \`config.log' for more details" "$LINENO" 5; }
 3252: fi
 3253: rm -f conftest conftest$ac_cv_exeext
 3254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 3255: $as_echo "$ac_cv_exeext" >&6; }
 3256: 
 3257: rm -f conftest.$ac_ext
 3258: EXEEXT=$ac_cv_exeext
 3259: ac_exeext=$EXEEXT
 3260: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3261: /* end confdefs.h.  */
 3262: #include <stdio.h>
 3263: int
 3264: main ()
 3265: {
 3266: FILE *f = fopen ("conftest.out", "w");
 3267:  return ferror (f) || fclose (f) != 0;
 3268: 
 3269:   ;
 3270:   return 0;
 3271: }
 3272: _ACEOF
 3273: ac_clean_files="$ac_clean_files conftest.out"
 3274: # Check that the compiler produces executables we can run.  If not, either
 3275: # the compiler is broken, or we cross compile.
 3276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 3277: $as_echo_n "checking whether we are cross compiling... " >&6; }
 3278: if test "$cross_compiling" != yes; then
 3279:   { { ac_try="$ac_link"
 3280: case "(($ac_try" in
 3281:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3282:   *) ac_try_echo=$ac_try;;
 3283: esac
 3284: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3285: $as_echo "$ac_try_echo"; } >&5
 3286:   (eval "$ac_link") 2>&5
 3287:   ac_status=$?
 3288:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3289:   test $ac_status = 0; }
 3290:   if { ac_try='./conftest$ac_cv_exeext'
 3291:   { { case "(($ac_try" in
 3292:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3293:   *) ac_try_echo=$ac_try;;
 3294: esac
 3295: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3296: $as_echo "$ac_try_echo"; } >&5
 3297:   (eval "$ac_try") 2>&5
 3298:   ac_status=$?
 3299:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3300:   test $ac_status = 0; }; }; then
 3301:     cross_compiling=no
 3302:   else
 3303:     if test "$cross_compiling" = maybe; then
 3304: 	cross_compiling=yes
 3305:     else
 3306: 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3307: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3308: as_fn_error $? "cannot run C++ compiled programs.
 3309: If you meant to cross compile, use \`--host'.
 3310: See \`config.log' for more details" "$LINENO" 5; }
 3311:     fi
 3312:   fi
 3313: fi
 3314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 3315: $as_echo "$cross_compiling" >&6; }
 3316: 
 3317: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 3318: ac_clean_files=$ac_clean_files_save
 3319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 3320: $as_echo_n "checking for suffix of object files... " >&6; }
 3321: if ${ac_cv_objext+:} false; then :
 3322:   $as_echo_n "(cached) " >&6
 3323: else
 3324:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3325: /* end confdefs.h.  */
 3326: 
 3327: int
 3328: main ()
 3329: {
 3330: 
 3331:   ;
 3332:   return 0;
 3333: }
 3334: _ACEOF
 3335: rm -f conftest.o conftest.obj
 3336: if { { ac_try="$ac_compile"
 3337: case "(($ac_try" in
 3338:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3339:   *) ac_try_echo=$ac_try;;
 3340: esac
 3341: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3342: $as_echo "$ac_try_echo"; } >&5
 3343:   (eval "$ac_compile") 2>&5
 3344:   ac_status=$?
 3345:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3346:   test $ac_status = 0; }; then :
 3347:   for ac_file in conftest.o conftest.obj conftest.*; do
 3348:   test -f "$ac_file" || continue;
 3349:   case $ac_file in
 3350:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 3351:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 3352:        break;;
 3353:   esac
 3354: done
 3355: else
 3356:   $as_echo "$as_me: failed program was:" >&5
 3357: sed 's/^/| /' conftest.$ac_ext >&5
 3358: 
 3359: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3360: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3361: as_fn_error $? "cannot compute suffix of object files: cannot compile
 3362: See \`config.log' for more details" "$LINENO" 5; }
 3363: fi
 3364: rm -f conftest.$ac_cv_objext conftest.$ac_ext
 3365: fi
 3366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 3367: $as_echo "$ac_cv_objext" >&6; }
 3368: OBJEXT=$ac_cv_objext
 3369: ac_objext=$OBJEXT
 3370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 3371: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 3372: if ${ac_cv_cxx_compiler_gnu+:} false; then :
 3373:   $as_echo_n "(cached) " >&6
 3374: else
 3375:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3376: /* end confdefs.h.  */
 3377: 
 3378: int
 3379: main ()
 3380: {
 3381: #ifndef __GNUC__
 3382:        choke me
 3383: #endif
 3384: 
 3385:   ;
 3386:   return 0;
 3387: }
 3388: _ACEOF
 3389: if ac_fn_cxx_try_compile "$LINENO"; then :
 3390:   ac_compiler_gnu=yes
 3391: else
 3392:   ac_compiler_gnu=no
 3393: fi
 3394: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3395: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 3396: 
 3397: fi
 3398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 3399: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 3400: if test $ac_compiler_gnu = yes; then
 3401:   GXX=yes
 3402: else
 3403:   GXX=
 3404: fi
 3405: ac_test_CXXFLAGS=${CXXFLAGS+set}
 3406: ac_save_CXXFLAGS=$CXXFLAGS
 3407: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 3408: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
 3409: if ${ac_cv_prog_cxx_g+:} false; then :
 3410:   $as_echo_n "(cached) " >&6
 3411: else
 3412:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 3413:    ac_cxx_werror_flag=yes
 3414:    ac_cv_prog_cxx_g=no
 3415:    CXXFLAGS="-g"
 3416:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3417: /* end confdefs.h.  */
 3418: 
 3419: int
 3420: main ()
 3421: {
 3422: 
 3423:   ;
 3424:   return 0;
 3425: }
 3426: _ACEOF
 3427: if ac_fn_cxx_try_compile "$LINENO"; then :
 3428:   ac_cv_prog_cxx_g=yes
 3429: else
 3430:   CXXFLAGS=""
 3431:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3432: /* end confdefs.h.  */
 3433: 
 3434: int
 3435: main ()
 3436: {
 3437: 
 3438:   ;
 3439:   return 0;
 3440: }
 3441: _ACEOF
 3442: if ac_fn_cxx_try_compile "$LINENO"; then :
 3443: 
 3444: else
 3445:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 3446: 	 CXXFLAGS="-g"
 3447: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3448: /* end confdefs.h.  */
 3449: 
 3450: int
 3451: main ()
 3452: {
 3453: 
 3454:   ;
 3455:   return 0;
 3456: }
 3457: _ACEOF
 3458: if ac_fn_cxx_try_compile "$LINENO"; then :
 3459:   ac_cv_prog_cxx_g=yes
 3460: fi
 3461: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3462: fi
 3463: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3464: fi
 3465: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 3466:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 3467: fi
 3468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 3469: $as_echo "$ac_cv_prog_cxx_g" >&6; }
 3470: if test "$ac_test_CXXFLAGS" = set; then
 3471:   CXXFLAGS=$ac_save_CXXFLAGS
 3472: elif test $ac_cv_prog_cxx_g = yes; then
 3473:   if test "$GXX" = yes; then
 3474:     CXXFLAGS="-g -O2"
 3475:   else
 3476:     CXXFLAGS="-g"
 3477:   fi
 3478: else
 3479:   if test "$GXX" = yes; then
 3480:     CXXFLAGS="-O2"
 3481:   else
 3482:     CXXFLAGS=
 3483:   fi
 3484: fi
 3485: ac_ext=cpp
 3486: ac_cpp='$CXXCPP $CPPFLAGS'
 3487: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3488: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3489: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 3490: DEPDIR="${am__leading_dot}deps"
 3491: 
 3492: ac_config_commands="$ac_config_commands depfiles"
 3493: 
 3494: 
 3495: am_make=${MAKE-make}
 3496: cat > confinc << 'END'
 3497: am__doit:
 3498: 	@echo this is the am__doit target
 3499: .PHONY: am__doit
 3500: END
 3501: # If we don't find an include directive, just comment out the code.
 3502: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 3503: $as_echo_n "checking for style of include used by $am_make... " >&6; }
 3504: am__include="#"
 3505: am__quote=
 3506: _am_result=none
 3507: # First try GNU make style include.
 3508: echo "include confinc" > confmf
 3509: # Ignore all kinds of additional output from 'make'.
 3510: case `$am_make -s -f confmf 2> /dev/null` in #(
 3511: *the\ am__doit\ target*)
 3512:   am__include=include
 3513:   am__quote=
 3514:   _am_result=GNU
 3515:   ;;
 3516: esac
 3517: # Now try BSD make style include.
 3518: if test "$am__include" = "#"; then
 3519:    echo '.include "confinc"' > confmf
 3520:    case `$am_make -s -f confmf 2> /dev/null` in #(
 3521:    *the\ am__doit\ target*)
 3522:      am__include=.include
 3523:      am__quote="\""
 3524:      _am_result=BSD
 3525:      ;;
 3526:    esac
 3527: fi
 3528: 
 3529: 
 3530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 3531: $as_echo "$_am_result" >&6; }
 3532: rm -f confinc confmf
 3533: 
 3534: # Check whether --enable-dependency-tracking was given.
 3535: if test "${enable_dependency_tracking+set}" = set; then :
 3536:   enableval=$enable_dependency_tracking;
 3537: fi
 3538: 
 3539: if test "x$enable_dependency_tracking" != xno; then
 3540:   am_depcomp="$ac_aux_dir/depcomp"
 3541:   AMDEPBACKSLASH='\'
 3542:   am__nodep='_no'
 3543: fi
 3544:  if test "x$enable_dependency_tracking" != xno; then
 3545:   AMDEP_TRUE=
 3546:   AMDEP_FALSE='#'
 3547: else
 3548:   AMDEP_TRUE='#'
 3549:   AMDEP_FALSE=
 3550: fi
 3551: 
 3552: 
 3553: 
 3554: depcc="$CXX"  am_compiler_list=
 3555: 
 3556: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 3557: $as_echo_n "checking dependency style of $depcc... " >&6; }
 3558: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 3559:   $as_echo_n "(cached) " >&6
 3560: else
 3561:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 3562:   # We make a subdir and do the tests there.  Otherwise we can end up
 3563:   # making bogus files that we don't know about and never remove.  For
 3564:   # instance it was reported that on HP-UX the gcc test will end up
 3565:   # making a dummy file named 'D' -- because '-MD' means "put the output
 3566:   # in D".
 3567:   rm -rf conftest.dir
 3568:   mkdir conftest.dir
 3569:   # Copy depcomp to subdir because otherwise we won't find it if we're
 3570:   # using a relative directory.
 3571:   cp "$am_depcomp" conftest.dir
 3572:   cd conftest.dir
 3573:   # We will build objects and dependencies in a subdirectory because
 3574:   # it helps to detect inapplicable dependency modes.  For instance
 3575:   # both Tru64's cc and ICC support -MD to output dependencies as a
 3576:   # side effect of compilation, but ICC will put the dependencies in
 3577:   # the current directory while Tru64 will put them in the object
 3578:   # directory.
 3579:   mkdir sub
 3580: 
 3581:   am_cv_CXX_dependencies_compiler_type=none
 3582:   if test "$am_compiler_list" = ""; then
 3583:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 3584:   fi
 3585:   am__universal=false
 3586:   case " $depcc " in #(
 3587:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
 3588:      esac
 3589: 
 3590:   for depmode in $am_compiler_list; do
 3591:     # Setup a source with many dependencies, because some compilers
 3592:     # like to wrap large dependency lists on column 80 (with \), and
 3593:     # we should not choose a depcomp mode which is confused by this.
 3594:     #
 3595:     # We need to recreate these files for each test, as the compiler may
 3596:     # overwrite some of them when testing with obscure command lines.
 3597:     # This happens at least with the AIX C compiler.
 3598:     : > sub/conftest.c
 3599:     for i in 1 2 3 4 5 6; do
 3600:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
 3601:       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 3602:       # Solaris 10 /bin/sh.
 3603:       echo '/* dummy */' > sub/conftst$i.h
 3604:     done
 3605:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 3606: 
 3607:     # We check with '-c' and '-o' for the sake of the "dashmstdout"
 3608:     # mode.  It turns out that the SunPro C++ compiler does not properly
 3609:     # handle '-M -o', and we need to detect this.  Also, some Intel
 3610:     # versions had trouble with output in subdirs.
 3611:     am__obj=sub/conftest.${OBJEXT-o}
 3612:     am__minus_obj="-o $am__obj"
 3613:     case $depmode in
 3614:     gcc)
 3615:       # This depmode causes a compiler race in universal mode.
 3616:       test "$am__universal" = false || continue
 3617:       ;;
 3618:     nosideeffect)
 3619:       # After this tag, mechanisms are not by side-effect, so they'll
 3620:       # only be used when explicitly requested.
 3621:       if test "x$enable_dependency_tracking" = xyes; then
 3622: 	continue
 3623:       else
 3624: 	break
 3625:       fi
 3626:       ;;
 3627:     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 3628:       # This compiler won't grok '-c -o', but also, the minuso test has
 3629:       # not run yet.  These depmodes are late enough in the game, and
 3630:       # so weak that their functioning should not be impacted.
 3631:       am__obj=conftest.${OBJEXT-o}
 3632:       am__minus_obj=
 3633:       ;;
 3634:     none) break ;;
 3635:     esac
 3636:     if depmode=$depmode \
 3637:        source=sub/conftest.c object=$am__obj \
 3638:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 3639:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 3640:          >/dev/null 2>conftest.err &&
 3641:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 3642:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 3643:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 3644:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 3645:       # icc doesn't choke on unknown options, it will just issue warnings
 3646:       # or remarks (even with -Werror).  So we grep stderr for any message
 3647:       # that says an option was ignored or not supported.
 3648:       # When given -MP, icc 7.0 and 7.1 complain thusly:
 3649:       #   icc: Command line warning: ignoring option '-M'; no argument required
 3650:       # The diagnosis changed in icc 8.0:
 3651:       #   icc: Command line remark: option '-MP' not supported
 3652:       if (grep 'ignoring option' conftest.err ||
 3653:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 3654:         am_cv_CXX_dependencies_compiler_type=$depmode
 3655:         break
 3656:       fi
 3657:     fi
 3658:   done
 3659: 
 3660:   cd ..
 3661:   rm -rf conftest.dir
 3662: else
 3663:   am_cv_CXX_dependencies_compiler_type=none
 3664: fi
 3665: 
 3666: fi
 3667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 3668: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 3669: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 3670: 
 3671:  if
 3672:   test "x$enable_dependency_tracking" != xno \
 3673:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 3674:   am__fastdepCXX_TRUE=
 3675:   am__fastdepCXX_FALSE='#'
 3676: else
 3677:   am__fastdepCXX_TRUE='#'
 3678:   am__fastdepCXX_FALSE=
 3679: fi
 3680: 
 3681: 
 3682: ac_ext=c
 3683: ac_cpp='$CPP $CPPFLAGS'
 3684: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3685: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3686: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3687: if test -n "$ac_tool_prefix"; then
 3688:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 3689: set dummy ${ac_tool_prefix}gcc; ac_word=$2
 3690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3691: $as_echo_n "checking for $ac_word... " >&6; }
 3692: if ${ac_cv_prog_CC+:} false; then :
 3693:   $as_echo_n "(cached) " >&6
 3694: else
 3695:   if test -n "$CC"; then
 3696:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3697: else
 3698: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3699: for as_dir in $PATH
 3700: do
 3701:   IFS=$as_save_IFS
 3702:   test -z "$as_dir" && as_dir=.
 3703:     for ac_exec_ext in '' $ac_executable_extensions; do
 3704:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3705:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 3706:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3707:     break 2
 3708:   fi
 3709: done
 3710:   done
 3711: IFS=$as_save_IFS
 3712: 
 3713: fi
 3714: fi
 3715: CC=$ac_cv_prog_CC
 3716: if test -n "$CC"; then
 3717:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3718: $as_echo "$CC" >&6; }
 3719: else
 3720:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3721: $as_echo "no" >&6; }
 3722: fi
 3723: 
 3724: 
 3725: fi
 3726: if test -z "$ac_cv_prog_CC"; then
 3727:   ac_ct_CC=$CC
 3728:   # Extract the first word of "gcc", so it can be a program name with args.
 3729: set dummy gcc; ac_word=$2
 3730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3731: $as_echo_n "checking for $ac_word... " >&6; }
 3732: if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3733:   $as_echo_n "(cached) " >&6
 3734: else
 3735:   if test -n "$ac_ct_CC"; then
 3736:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3737: else
 3738: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3739: for as_dir in $PATH
 3740: do
 3741:   IFS=$as_save_IFS
 3742:   test -z "$as_dir" && as_dir=.
 3743:     for ac_exec_ext in '' $ac_executable_extensions; do
 3744:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3745:     ac_cv_prog_ac_ct_CC="gcc"
 3746:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3747:     break 2
 3748:   fi
 3749: done
 3750:   done
 3751: IFS=$as_save_IFS
 3752: 
 3753: fi
 3754: fi
 3755: ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3756: if test -n "$ac_ct_CC"; then
 3757:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3758: $as_echo "$ac_ct_CC" >&6; }
 3759: else
 3760:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3761: $as_echo "no" >&6; }
 3762: fi
 3763: 
 3764:   if test "x$ac_ct_CC" = x; then
 3765:     CC=""
 3766:   else
 3767:     case $cross_compiling:$ac_tool_warned in
 3768: yes:)
 3769: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3770: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3771: ac_tool_warned=yes ;;
 3772: esac
 3773:     CC=$ac_ct_CC
 3774:   fi
 3775: else
 3776:   CC="$ac_cv_prog_CC"
 3777: fi
 3778: 
 3779: if test -z "$CC"; then
 3780:           if test -n "$ac_tool_prefix"; then
 3781:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 3782: set dummy ${ac_tool_prefix}cc; ac_word=$2
 3783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3784: $as_echo_n "checking for $ac_word... " >&6; }
 3785: if ${ac_cv_prog_CC+:} false; then :
 3786:   $as_echo_n "(cached) " >&6
 3787: else
 3788:   if test -n "$CC"; then
 3789:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3790: else
 3791: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3792: for as_dir in $PATH
 3793: do
 3794:   IFS=$as_save_IFS
 3795:   test -z "$as_dir" && as_dir=.
 3796:     for ac_exec_ext in '' $ac_executable_extensions; do
 3797:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3798:     ac_cv_prog_CC="${ac_tool_prefix}cc"
 3799:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3800:     break 2
 3801:   fi
 3802: done
 3803:   done
 3804: IFS=$as_save_IFS
 3805: 
 3806: fi
 3807: fi
 3808: CC=$ac_cv_prog_CC
 3809: if test -n "$CC"; then
 3810:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3811: $as_echo "$CC" >&6; }
 3812: else
 3813:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3814: $as_echo "no" >&6; }
 3815: fi
 3816: 
 3817: 
 3818:   fi
 3819: fi
 3820: if test -z "$CC"; then
 3821:   # Extract the first word of "cc", so it can be a program name with args.
 3822: set dummy cc; ac_word=$2
 3823: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3824: $as_echo_n "checking for $ac_word... " >&6; }
 3825: if ${ac_cv_prog_CC+:} false; then :
 3826:   $as_echo_n "(cached) " >&6
 3827: else
 3828:   if test -n "$CC"; then
 3829:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3830: else
 3831:   ac_prog_rejected=no
 3832: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3833: for as_dir in $PATH
 3834: do
 3835:   IFS=$as_save_IFS
 3836:   test -z "$as_dir" && as_dir=.
 3837:     for ac_exec_ext in '' $ac_executable_extensions; do
 3838:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3839:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 3840:        ac_prog_rejected=yes
 3841:        continue
 3842:      fi
 3843:     ac_cv_prog_CC="cc"
 3844:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3845:     break 2
 3846:   fi
 3847: done
 3848:   done
 3849: IFS=$as_save_IFS
 3850: 
 3851: if test $ac_prog_rejected = yes; then
 3852:   # We found a bogon in the path, so make sure we never use it.
 3853:   set dummy $ac_cv_prog_CC
 3854:   shift
 3855:   if test $# != 0; then
 3856:     # We chose a different compiler from the bogus one.
 3857:     # However, it has the same basename, so the bogon will be chosen
 3858:     # first if we set CC to just the basename; use the full file name.
 3859:     shift
 3860:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 3861:   fi
 3862: fi
 3863: fi
 3864: fi
 3865: CC=$ac_cv_prog_CC
 3866: if test -n "$CC"; then
 3867:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3868: $as_echo "$CC" >&6; }
 3869: else
 3870:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3871: $as_echo "no" >&6; }
 3872: fi
 3873: 
 3874: 
 3875: fi
 3876: if test -z "$CC"; then
 3877:   if test -n "$ac_tool_prefix"; then
 3878:   for ac_prog in cl.exe
 3879:   do
 3880:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 3881: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 3882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3883: $as_echo_n "checking for $ac_word... " >&6; }
 3884: if ${ac_cv_prog_CC+:} false; then :
 3885:   $as_echo_n "(cached) " >&6
 3886: else
 3887:   if test -n "$CC"; then
 3888:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3889: else
 3890: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3891: for as_dir in $PATH
 3892: do
 3893:   IFS=$as_save_IFS
 3894:   test -z "$as_dir" && as_dir=.
 3895:     for ac_exec_ext in '' $ac_executable_extensions; do
 3896:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3897:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 3898:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3899:     break 2
 3900:   fi
 3901: done
 3902:   done
 3903: IFS=$as_save_IFS
 3904: 
 3905: fi
 3906: fi
 3907: CC=$ac_cv_prog_CC
 3908: if test -n "$CC"; then
 3909:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3910: $as_echo "$CC" >&6; }
 3911: else
 3912:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3913: $as_echo "no" >&6; }
 3914: fi
 3915: 
 3916: 
 3917:     test -n "$CC" && break
 3918:   done
 3919: fi
 3920: if test -z "$CC"; then
 3921:   ac_ct_CC=$CC
 3922:   for ac_prog in cl.exe
 3923: do
 3924:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 3925: set dummy $ac_prog; ac_word=$2
 3926: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3927: $as_echo_n "checking for $ac_word... " >&6; }
 3928: if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3929:   $as_echo_n "(cached) " >&6
 3930: else
 3931:   if test -n "$ac_ct_CC"; then
 3932:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3933: else
 3934: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3935: for as_dir in $PATH
 3936: do
 3937:   IFS=$as_save_IFS
 3938:   test -z "$as_dir" && as_dir=.
 3939:     for ac_exec_ext in '' $ac_executable_extensions; do
 3940:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3941:     ac_cv_prog_ac_ct_CC="$ac_prog"
 3942:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3943:     break 2
 3944:   fi
 3945: done
 3946:   done
 3947: IFS=$as_save_IFS
 3948: 
 3949: fi
 3950: fi
 3951: ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3952: if test -n "$ac_ct_CC"; then
 3953:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3954: $as_echo "$ac_ct_CC" >&6; }
 3955: else
 3956:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3957: $as_echo "no" >&6; }
 3958: fi
 3959: 
 3960: 
 3961:   test -n "$ac_ct_CC" && break
 3962: done
 3963: 
 3964:   if test "x$ac_ct_CC" = x; then
 3965:     CC=""
 3966:   else
 3967:     case $cross_compiling:$ac_tool_warned in
 3968: yes:)
 3969: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3970: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3971: ac_tool_warned=yes ;;
 3972: esac
 3973:     CC=$ac_ct_CC
 3974:   fi
 3975: fi
 3976: 
 3977: fi
 3978: 
 3979: 
 3980: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3981: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3982: as_fn_error $? "no acceptable C compiler found in \$PATH
 3983: See \`config.log' for more details" "$LINENO" 5; }
 3984: 
 3985: # Provide some information about the compiler.
 3986: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 3987: set X $ac_compile
 3988: ac_compiler=$2
 3989: for ac_option in --version -v -V -qversion; do
 3990:   { { ac_try="$ac_compiler $ac_option >&5"
 3991: case "(($ac_try" in
 3992:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3993:   *) ac_try_echo=$ac_try;;
 3994: esac
 3995: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3996: $as_echo "$ac_try_echo"; } >&5
 3997:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 3998:   ac_status=$?
 3999:   if test -s conftest.err; then
 4000:     sed '10a\
 4001: ... rest of stderr output deleted ...
 4002:          10q' conftest.err >conftest.er1
 4003:     cat conftest.er1 >&5
 4004:   fi
 4005:   rm -f conftest.er1 conftest.err
 4006:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4007:   test $ac_status = 0; }
 4008: done
 4009: 
 4010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 4011: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 4012: if ${ac_cv_c_compiler_gnu+:} false; then :
 4013:   $as_echo_n "(cached) " >&6
 4014: else
 4015:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4016: /* end confdefs.h.  */
 4017: 
 4018: int
 4019: main ()
 4020: {
 4021: #ifndef __GNUC__
 4022:        choke me
 4023: #endif
 4024: 
 4025:   ;
 4026:   return 0;
 4027: }
 4028: _ACEOF
 4029: if ac_fn_c_try_compile "$LINENO"; then :
 4030:   ac_compiler_gnu=yes
 4031: else
 4032:   ac_compiler_gnu=no
 4033: fi
 4034: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4035: ac_cv_c_compiler_gnu=$ac_compiler_gnu
 4036: 
 4037: fi
 4038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 4039: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 4040: if test $ac_compiler_gnu = yes; then
 4041:   GCC=yes
 4042: else
 4043:   GCC=
 4044: fi
 4045: ac_test_CFLAGS=${CFLAGS+set}
 4046: ac_save_CFLAGS=$CFLAGS
 4047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 4048: $as_echo_n "checking whether $CC accepts -g... " >&6; }
 4049: if ${ac_cv_prog_cc_g+:} false; then :
 4050:   $as_echo_n "(cached) " >&6
 4051: else
 4052:   ac_save_c_werror_flag=$ac_c_werror_flag
 4053:    ac_c_werror_flag=yes
 4054:    ac_cv_prog_cc_g=no
 4055:    CFLAGS="-g"
 4056:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4057: /* end confdefs.h.  */
 4058: 
 4059: int
 4060: main ()
 4061: {
 4062: 
 4063:   ;
 4064:   return 0;
 4065: }
 4066: _ACEOF
 4067: if ac_fn_c_try_compile "$LINENO"; then :
 4068:   ac_cv_prog_cc_g=yes
 4069: else
 4070:   CFLAGS=""
 4071:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4072: /* end confdefs.h.  */
 4073: 
 4074: int
 4075: main ()
 4076: {
 4077: 
 4078:   ;
 4079:   return 0;
 4080: }
 4081: _ACEOF
 4082: if ac_fn_c_try_compile "$LINENO"; then :
 4083: 
 4084: else
 4085:   ac_c_werror_flag=$ac_save_c_werror_flag
 4086: 	 CFLAGS="-g"
 4087: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4088: /* end confdefs.h.  */
 4089: 
 4090: int
 4091: main ()
 4092: {
 4093: 
 4094:   ;
 4095:   return 0;
 4096: }
 4097: _ACEOF
 4098: if ac_fn_c_try_compile "$LINENO"; then :
 4099:   ac_cv_prog_cc_g=yes
 4100: fi
 4101: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4102: fi
 4103: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4104: fi
 4105: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4106:    ac_c_werror_flag=$ac_save_c_werror_flag
 4107: fi
 4108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 4109: $as_echo "$ac_cv_prog_cc_g" >&6; }
 4110: if test "$ac_test_CFLAGS" = set; then
 4111:   CFLAGS=$ac_save_CFLAGS
 4112: elif test $ac_cv_prog_cc_g = yes; then
 4113:   if test "$GCC" = yes; then
 4114:     CFLAGS="-g -O2"
 4115:   else
 4116:     CFLAGS="-g"
 4117:   fi
 4118: else
 4119:   if test "$GCC" = yes; then
 4120:     CFLAGS="-O2"
 4121:   else
 4122:     CFLAGS=
 4123:   fi
 4124: fi
 4125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 4126: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 4127: if ${ac_cv_prog_cc_c89+:} false; then :
 4128:   $as_echo_n "(cached) " >&6
 4129: else
 4130:   ac_cv_prog_cc_c89=no
 4131: ac_save_CC=$CC
 4132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4133: /* end confdefs.h.  */
 4134: #include <stdarg.h>
 4135: #include <stdio.h>
 4136: struct stat;
 4137: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 4138: struct buf { int x; };
 4139: FILE * (*rcsopen) (struct buf *, struct stat *, int);
 4140: static char *e (p, i)
 4141:      char **p;
 4142:      int i;
 4143: {
 4144:   return p[i];
 4145: }
 4146: static char *f (char * (*g) (char **, int), char **p, ...)
 4147: {
 4148:   char *s;
 4149:   va_list v;
 4150:   va_start (v,p);
 4151:   s = g (p, va_arg (v,int));
 4152:   va_end (v);
 4153:   return s;
 4154: }
 4155: 
 4156: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 4157:    function prototypes and stuff, but not '\xHH' hex character constants.
 4158:    These don't provoke an error unfortunately, instead are silently treated
 4159:    as 'x'.  The following induces an error, until -std is added to get
 4160:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 4161:    array size at least.  It's necessary to write '\x00'==0 to get something
 4162:    that's true only with -std.  */
 4163: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 4164: 
 4165: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 4166:    inside strings and character constants.  */
 4167: #define FOO(x) 'x'
 4168: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 4169: 
 4170: int test (int i, double x);
 4171: struct s1 {int (*f) (int a);};
 4172: struct s2 {int (*f) (double a);};
 4173: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 4174: int argc;
 4175: char **argv;
 4176: int
 4177: main ()
 4178: {
 4179: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 4180:   ;
 4181:   return 0;
 4182: }
 4183: _ACEOF
 4184: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 4185: 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 4186: do
 4187:   CC="$ac_save_CC $ac_arg"
 4188:   if ac_fn_c_try_compile "$LINENO"; then :
 4189:   ac_cv_prog_cc_c89=$ac_arg
 4190: fi
 4191: rm -f core conftest.err conftest.$ac_objext
 4192:   test "x$ac_cv_prog_cc_c89" != "xno" && break
 4193: done
 4194: rm -f conftest.$ac_ext
 4195: CC=$ac_save_CC
 4196: 
 4197: fi
 4198: # AC_CACHE_VAL
 4199: case "x$ac_cv_prog_cc_c89" in
 4200:   x)
 4201:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 4202: $as_echo "none needed" >&6; } ;;
 4203:   xno)
 4204:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 4205: $as_echo "unsupported" >&6; } ;;
 4206:   *)
 4207:     CC="$CC $ac_cv_prog_cc_c89"
 4208:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 4209: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 4210: esac
 4211: if test "x$ac_cv_prog_cc_c89" != xno; then :
 4212: 
 4213: fi
 4214: 
 4215: ac_ext=cpp
 4216: ac_cpp='$CXXCPP $CPPFLAGS'
 4217: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4218: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4219: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 4220: 
 4221: depcc="$CC"   am_compiler_list=
 4222: 
 4223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 4224: $as_echo_n "checking dependency style of $depcc... " >&6; }
 4225: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 4226:   $as_echo_n "(cached) " >&6
 4227: else
 4228:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 4229:   # We make a subdir and do the tests there.  Otherwise we can end up
 4230:   # making bogus files that we don't know about and never remove.  For
 4231:   # instance it was reported that on HP-UX the gcc test will end up
 4232:   # making a dummy file named 'D' -- because '-MD' means "put the output
 4233:   # in D".
 4234:   rm -rf conftest.dir
 4235:   mkdir conftest.dir
 4236:   # Copy depcomp to subdir because otherwise we won't find it if we're
 4237:   # using a relative directory.
 4238:   cp "$am_depcomp" conftest.dir
 4239:   cd conftest.dir
 4240:   # We will build objects and dependencies in a subdirectory because
 4241:   # it helps to detect inapplicable dependency modes.  For instance
 4242:   # both Tru64's cc and ICC support -MD to output dependencies as a
 4243:   # side effect of compilation, but ICC will put the dependencies in
 4244:   # the current directory while Tru64 will put them in the object
 4245:   # directory.
 4246:   mkdir sub
 4247: 
 4248:   am_cv_CC_dependencies_compiler_type=none
 4249:   if test "$am_compiler_list" = ""; then
 4250:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 4251:   fi
 4252:   am__universal=false
 4253:   case " $depcc " in #(
 4254:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
 4255:      esac
 4256: 
 4257:   for depmode in $am_compiler_list; do
 4258:     # Setup a source with many dependencies, because some compilers
 4259:     # like to wrap large dependency lists on column 80 (with \), and
 4260:     # we should not choose a depcomp mode which is confused by this.
 4261:     #
 4262:     # We need to recreate these files for each test, as the compiler may
 4263:     # overwrite some of them when testing with obscure command lines.
 4264:     # This happens at least with the AIX C compiler.
 4265:     : > sub/conftest.c
 4266:     for i in 1 2 3 4 5 6; do
 4267:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
 4268:       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 4269:       # Solaris 10 /bin/sh.
 4270:       echo '/* dummy */' > sub/conftst$i.h
 4271:     done
 4272:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 4273: 
 4274:     # We check with '-c' and '-o' for the sake of the "dashmstdout"
 4275:     # mode.  It turns out that the SunPro C++ compiler does not properly
 4276:     # handle '-M -o', and we need to detect this.  Also, some Intel
 4277:     # versions had trouble with output in subdirs.
 4278:     am__obj=sub/conftest.${OBJEXT-o}
 4279:     am__minus_obj="-o $am__obj"
 4280:     case $depmode in
 4281:     gcc)
 4282:       # This depmode causes a compiler race in universal mode.
 4283:       test "$am__universal" = false || continue
 4284:       ;;
 4285:     nosideeffect)
 4286:       # After this tag, mechanisms are not by side-effect, so they'll
 4287:       # only be used when explicitly requested.
 4288:       if test "x$enable_dependency_tracking" = xyes; then
 4289: 	continue
 4290:       else
 4291: 	break
 4292:       fi
 4293:       ;;
 4294:     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 4295:       # This compiler won't grok '-c -o', but also, the minuso test has
 4296:       # not run yet.  These depmodes are late enough in the game, and
 4297:       # so weak that their functioning should not be impacted.
 4298:       am__obj=conftest.${OBJEXT-o}
 4299:       am__minus_obj=
 4300:       ;;
 4301:     none) break ;;
 4302:     esac
 4303:     if depmode=$depmode \
 4304:        source=sub/conftest.c object=$am__obj \
 4305:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 4306:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 4307:          >/dev/null 2>conftest.err &&
 4308:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 4309:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 4310:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 4311:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 4312:       # icc doesn't choke on unknown options, it will just issue warnings
 4313:       # or remarks (even with -Werror).  So we grep stderr for any message
 4314:       # that says an option was ignored or not supported.
 4315:       # When given -MP, icc 7.0 and 7.1 complain thusly:
 4316:       #   icc: Command line warning: ignoring option '-M'; no argument required
 4317:       # The diagnosis changed in icc 8.0:
 4318:       #   icc: Command line remark: option '-MP' not supported
 4319:       if (grep 'ignoring option' conftest.err ||
 4320:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 4321:         am_cv_CC_dependencies_compiler_type=$depmode
 4322:         break
 4323:       fi
 4324:     fi
 4325:   done
 4326: 
 4327:   cd ..
 4328:   rm -rf conftest.dir
 4329: else
 4330:   am_cv_CC_dependencies_compiler_type=none
 4331: fi
 4332: 
 4333: fi
 4334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 4335: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 4336: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 4337: 
 4338:  if
 4339:   test "x$enable_dependency_tracking" != xno \
 4340:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 4341:   am__fastdepCC_TRUE=
 4342:   am__fastdepCC_FALSE='#'
 4343: else
 4344:   am__fastdepCC_TRUE='#'
 4345:   am__fastdepCC_FALSE=
 4346: fi
 4347: 
 4348: 
 4349: # By default we simply use the C compiler to build assembly code.
 4350: 
 4351: test "${CCAS+set}" = set || CCAS=$CC
 4352: test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 4353: 
 4354: 
 4355: 
 4356: depcc="$CCAS"   am_compiler_list=
 4357: 
 4358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 4359: $as_echo_n "checking dependency style of $depcc... " >&6; }
 4360: if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
 4361:   $as_echo_n "(cached) " >&6
 4362: else
 4363:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 4364:   # We make a subdir and do the tests there.  Otherwise we can end up
 4365:   # making bogus files that we don't know about and never remove.  For
 4366:   # instance it was reported that on HP-UX the gcc test will end up
 4367:   # making a dummy file named 'D' -- because '-MD' means "put the output
 4368:   # in D".
 4369:   rm -rf conftest.dir
 4370:   mkdir conftest.dir
 4371:   # Copy depcomp to subdir because otherwise we won't find it if we're
 4372:   # using a relative directory.
 4373:   cp "$am_depcomp" conftest.dir
 4374:   cd conftest.dir
 4375:   # We will build objects and dependencies in a subdirectory because
 4376:   # it helps to detect inapplicable dependency modes.  For instance
 4377:   # both Tru64's cc and ICC support -MD to output dependencies as a
 4378:   # side effect of compilation, but ICC will put the dependencies in
 4379:   # the current directory while Tru64 will put them in the object
 4380:   # directory.
 4381:   mkdir sub
 4382: 
 4383:   am_cv_CCAS_dependencies_compiler_type=none
 4384:   if test "$am_compiler_list" = ""; then
 4385:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 4386:   fi
 4387:   am__universal=false
 4388: 
 4389: 
 4390:   for depmode in $am_compiler_list; do
 4391:     # Setup a source with many dependencies, because some compilers
 4392:     # like to wrap large dependency lists on column 80 (with \), and
 4393:     # we should not choose a depcomp mode which is confused by this.
 4394:     #
 4395:     # We need to recreate these files for each test, as the compiler may
 4396:     # overwrite some of them when testing with obscure command lines.
 4397:     # This happens at least with the AIX C compiler.
 4398:     : > sub/conftest.c
 4399:     for i in 1 2 3 4 5 6; do
 4400:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
 4401:       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 4402:       # Solaris 10 /bin/sh.
 4403:       echo '/* dummy */' > sub/conftst$i.h
 4404:     done
 4405:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 4406: 
 4407:     # We check with '-c' and '-o' for the sake of the "dashmstdout"
 4408:     # mode.  It turns out that the SunPro C++ compiler does not properly
 4409:     # handle '-M -o', and we need to detect this.  Also, some Intel
 4410:     # versions had trouble with output in subdirs.
 4411:     am__obj=sub/conftest.${OBJEXT-o}
 4412:     am__minus_obj="-o $am__obj"
 4413:     case $depmode in
 4414:     gcc)
 4415:       # This depmode causes a compiler race in universal mode.
 4416:       test "$am__universal" = false || continue
 4417:       ;;
 4418:     nosideeffect)
 4419:       # After this tag, mechanisms are not by side-effect, so they'll
 4420:       # only be used when explicitly requested.
 4421:       if test "x$enable_dependency_tracking" = xyes; then
 4422: 	continue
 4423:       else
 4424: 	break
 4425:       fi
 4426:       ;;
 4427:     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 4428:       # This compiler won't grok '-c -o', but also, the minuso test has
 4429:       # not run yet.  These depmodes are late enough in the game, and
 4430:       # so weak that their functioning should not be impacted.
 4431:       am__obj=conftest.${OBJEXT-o}
 4432:       am__minus_obj=
 4433:       ;;
 4434:     none) break ;;
 4435:     esac
 4436:     if depmode=$depmode \
 4437:        source=sub/conftest.c object=$am__obj \
 4438:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 4439:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 4440:          >/dev/null 2>conftest.err &&
 4441:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 4442:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 4443:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 4444:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 4445:       # icc doesn't choke on unknown options, it will just issue warnings
 4446:       # or remarks (even with -Werror).  So we grep stderr for any message
 4447:       # that says an option was ignored or not supported.
 4448:       # When given -MP, icc 7.0 and 7.1 complain thusly:
 4449:       #   icc: Command line warning: ignoring option '-M'; no argument required
 4450:       # The diagnosis changed in icc 8.0:
 4451:       #   icc: Command line remark: option '-MP' not supported
 4452:       if (grep 'ignoring option' conftest.err ||
 4453:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 4454:         am_cv_CCAS_dependencies_compiler_type=$depmode
 4455:         break
 4456:       fi
 4457:     fi
 4458:   done
 4459: 
 4460:   cd ..
 4461:   rm -rf conftest.dir
 4462: else
 4463:   am_cv_CCAS_dependencies_compiler_type=none
 4464: fi
 4465: 
 4466: fi
 4467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
 4468: $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
 4469: CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
 4470: 
 4471:  if
 4472:   test "x$enable_dependency_tracking" != xno \
 4473:   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
 4474:   am__fastdepCCAS_TRUE=
 4475:   am__fastdepCCAS_FALSE='#'
 4476: else
 4477:   am__fastdepCCAS_TRUE='#'
 4478:   am__fastdepCCAS_FALSE=
 4479: fi
 4480: 
 4481: 
 4482: 
 4483: 
 4484: 
 4485: if test "$cross_compiling" = "no"; then
 4486: 
 4487: 
 4488: 
 4489: 
 4490: 
 4491: 
 4492: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 4493: 	if test -n "$ac_tool_prefix"; then
 4494:   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 4495: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 4496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4497: $as_echo_n "checking for $ac_word... " >&6; }
 4498: if ${ac_cv_path_PKG_CONFIG+:} false; then :
 4499:   $as_echo_n "(cached) " >&6
 4500: else
 4501:   case $PKG_CONFIG in
 4502:   [\\/]* | ?:[\\/]*)
 4503:   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 4504:   ;;
 4505:   *)
 4506:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4507: for as_dir in $PATH
 4508: do
 4509:   IFS=$as_save_IFS
 4510:   test -z "$as_dir" && as_dir=.
 4511:     for ac_exec_ext in '' $ac_executable_extensions; do
 4512:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4513:     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 4514:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4515:     break 2
 4516:   fi
 4517: done
 4518:   done
 4519: IFS=$as_save_IFS
 4520: 
 4521:   ;;
 4522: esac
 4523: fi
 4524: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 4525: if test -n "$PKG_CONFIG"; then
 4526:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 4527: $as_echo "$PKG_CONFIG" >&6; }
 4528: else
 4529:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4530: $as_echo "no" >&6; }
 4531: fi
 4532: 
 4533: 
 4534: fi
 4535: if test -z "$ac_cv_path_PKG_CONFIG"; then
 4536:   ac_pt_PKG_CONFIG=$PKG_CONFIG
 4537:   # Extract the first word of "pkg-config", so it can be a program name with args.
 4538: set dummy pkg-config; ac_word=$2
 4539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4540: $as_echo_n "checking for $ac_word... " >&6; }
 4541: if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 4542:   $as_echo_n "(cached) " >&6
 4543: else
 4544:   case $ac_pt_PKG_CONFIG in
 4545:   [\\/]* | ?:[\\/]*)
 4546:   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 4547:   ;;
 4548:   *)
 4549:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4550: for as_dir in $PATH
 4551: do
 4552:   IFS=$as_save_IFS
 4553:   test -z "$as_dir" && as_dir=.
 4554:     for ac_exec_ext in '' $ac_executable_extensions; do
 4555:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4556:     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 4557:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4558:     break 2
 4559:   fi
 4560: done
 4561:   done
 4562: IFS=$as_save_IFS
 4563: 
 4564:   ;;
 4565: esac
 4566: fi
 4567: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 4568: if test -n "$ac_pt_PKG_CONFIG"; then
 4569:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 4570: $as_echo "$ac_pt_PKG_CONFIG" >&6; }
 4571: else
 4572:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4573: $as_echo "no" >&6; }
 4574: fi
 4575: 
 4576:   if test "x$ac_pt_PKG_CONFIG" = x; then
 4577:     PKG_CONFIG=""
 4578:   else
 4579:     case $cross_compiling:$ac_tool_warned in
 4580: yes:)
 4581: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 4582: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 4583: ac_tool_warned=yes ;;
 4584: esac
 4585:     PKG_CONFIG=$ac_pt_PKG_CONFIG
 4586:   fi
 4587: else
 4588:   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 4589: fi
 4590: 
 4591: fi
 4592: if test -n "$PKG_CONFIG"; then
 4593: 	_pkg_min_version=0.9.0
 4594: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 4595: $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 4596: 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 4597: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4598: $as_echo "yes" >&6; }
 4599: 	else
 4600: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4601: $as_echo "no" >&6; }
 4602: 		PKG_CONFIG=""
 4603: 	fi
 4604: 
 4605: fi
 4606: fi
 4607: 
 4608: 
 4609: 
 4610: 
 4611: 
 4612: # Make sure we can run config.sub.
 4613: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 4614:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 4615: 
 4616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 4617: $as_echo_n "checking build system type... " >&6; }
 4618: if ${ac_cv_build+:} false; then :
 4619:   $as_echo_n "(cached) " >&6
 4620: else
 4621:   ac_build_alias=$build_alias
 4622: test "x$ac_build_alias" = x &&
 4623:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 4624: test "x$ac_build_alias" = x &&
 4625:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 4626: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 4627:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 4628: 
 4629: fi
 4630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 4631: $as_echo "$ac_cv_build" >&6; }
 4632: case $ac_cv_build in
 4633: *-*-*) ;;
 4634: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 4635: esac
 4636: build=$ac_cv_build
 4637: ac_save_IFS=$IFS; IFS='-'
 4638: set x $ac_cv_build
 4639: shift
 4640: build_cpu=$1
 4641: build_vendor=$2
 4642: shift; shift
 4643: # Remember, the first character of IFS is used to create $*,
 4644: # except with old shells:
 4645: build_os=$*
 4646: IFS=$ac_save_IFS
 4647: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 4648: 
 4649: 
 4650: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 4651: $as_echo_n "checking host system type... " >&6; }
 4652: if ${ac_cv_host+:} false; then :
 4653:   $as_echo_n "(cached) " >&6
 4654: else
 4655:   if test "x$host_alias" = x; then
 4656:   ac_cv_host=$ac_cv_build
 4657: else
 4658:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 4659:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 4660: fi
 4661: 
 4662: fi
 4663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 4664: $as_echo "$ac_cv_host" >&6; }
 4665: case $ac_cv_host in
 4666: *-*-*) ;;
 4667: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 4668: esac
 4669: host=$ac_cv_host
 4670: ac_save_IFS=$IFS; IFS='-'
 4671: set x $ac_cv_host
 4672: shift
 4673: host_cpu=$1
 4674: host_vendor=$2
 4675: shift; shift
 4676: # Remember, the first character of IFS is used to create $*,
 4677: # except with old shells:
 4678: host_os=$*
 4679: IFS=$ac_save_IFS
 4680: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 4681: 
 4682: 
 4683: case "${host}" in
 4684:   *-*-mingw*)
 4685:     # Cygwin gcc 4.x does no longer support '-mno-cygwin' to select MinGW gcc.
 4686:     if test "${build}" = "${host}" && test -x /usr/bin/uname && \
 4687:     /usr/bin/uname | grep -i '^CYGWIN' >/dev/null; then
 4688:       as_fn_error $? "Build with MinGW on Cygwin requires cross-compilation, see INSTALL file." "$LINENO" 5
 4689:     fi
 4690:     if test -n "$ac_tool_prefix"; then
 4691:   # Extract the first word of "${ac_tool_prefix}windmc", so it can be a program name with args.
 4692: set dummy ${ac_tool_prefix}windmc; ac_word=$2
 4693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4694: $as_echo_n "checking for $ac_word... " >&6; }
 4695: if ${ac_cv_prog_WINDMC+:} false; then :
 4696:   $as_echo_n "(cached) " >&6
 4697: else
 4698:   if test -n "$WINDMC"; then
 4699:   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
 4700: else
 4701: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4702: for as_dir in $PATH
 4703: do
 4704:   IFS=$as_save_IFS
 4705:   test -z "$as_dir" && as_dir=.
 4706:     for ac_exec_ext in '' $ac_executable_extensions; do
 4707:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4708:     ac_cv_prog_WINDMC="${ac_tool_prefix}windmc"
 4709:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4710:     break 2
 4711:   fi
 4712: done
 4713:   done
 4714: IFS=$as_save_IFS
 4715: 
 4716: fi
 4717: fi
 4718: WINDMC=$ac_cv_prog_WINDMC
 4719: if test -n "$WINDMC"; then
 4720:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
 4721: $as_echo "$WINDMC" >&6; }
 4722: else
 4723:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4724: $as_echo "no" >&6; }
 4725: fi
 4726: 
 4727: 
 4728: fi
 4729: if test -z "$ac_cv_prog_WINDMC"; then
 4730:   ac_ct_WINDMC=$WINDMC
 4731:   # Extract the first word of "windmc", so it can be a program name with args.
 4732: set dummy windmc; ac_word=$2
 4733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4734: $as_echo_n "checking for $ac_word... " >&6; }
 4735: if ${ac_cv_prog_ac_ct_WINDMC+:} false; then :
 4736:   $as_echo_n "(cached) " >&6
 4737: else
 4738:   if test -n "$ac_ct_WINDMC"; then
 4739:   ac_cv_prog_ac_ct_WINDMC="$ac_ct_WINDMC" # Let the user override the test.
 4740: else
 4741: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4742: for as_dir in $PATH
 4743: do
 4744:   IFS=$as_save_IFS
 4745:   test -z "$as_dir" && as_dir=.
 4746:     for ac_exec_ext in '' $ac_executable_extensions; do
 4747:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4748:     ac_cv_prog_ac_ct_WINDMC="windmc"
 4749:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4750:     break 2
 4751:   fi
 4752: done
 4753:   done
 4754: IFS=$as_save_IFS
 4755: 
 4756: fi
 4757: fi
 4758: ac_ct_WINDMC=$ac_cv_prog_ac_ct_WINDMC
 4759: if test -n "$ac_ct_WINDMC"; then
 4760:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDMC" >&5
 4761: $as_echo "$ac_ct_WINDMC" >&6; }
 4762: else
 4763:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4764: $as_echo "no" >&6; }
 4765: fi
 4766: 
 4767:   if test "x$ac_ct_WINDMC" = x; then
 4768:     WINDMC=""
 4769:   else
 4770:     case $cross_compiling:$ac_tool_warned in
 4771: yes:)
 4772: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 4773: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 4774: ac_tool_warned=yes ;;
 4775: esac
 4776:     WINDMC=$ac_ct_WINDMC
 4777:   fi
 4778: else
 4779:   WINDMC="$ac_cv_prog_WINDMC"
 4780: fi
 4781: 
 4782:     if test -n "$ac_tool_prefix"; then
 4783:   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
 4784: set dummy ${ac_tool_prefix}windres; ac_word=$2
 4785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4786: $as_echo_n "checking for $ac_word... " >&6; }
 4787: if ${ac_cv_prog_WINDRES+:} false; then :
 4788:   $as_echo_n "(cached) " >&6
 4789: else
 4790:   if test -n "$WINDRES"; then
 4791:   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
 4792: else
 4793: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4794: for as_dir in $PATH
 4795: do
 4796:   IFS=$as_save_IFS
 4797:   test -z "$as_dir" && as_dir=.
 4798:     for ac_exec_ext in '' $ac_executable_extensions; do
 4799:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4800:     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
 4801:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4802:     break 2
 4803:   fi
 4804: done
 4805:   done
 4806: IFS=$as_save_IFS
 4807: 
 4808: fi
 4809: fi
 4810: WINDRES=$ac_cv_prog_WINDRES
 4811: if test -n "$WINDRES"; then
 4812:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
 4813: $as_echo "$WINDRES" >&6; }
 4814: else
 4815:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4816: $as_echo "no" >&6; }
 4817: fi
 4818: 
 4819: 
 4820: fi
 4821: if test -z "$ac_cv_prog_WINDRES"; then
 4822:   ac_ct_WINDRES=$WINDRES
 4823:   # Extract the first word of "windres", so it can be a program name with args.
 4824: set dummy windres; ac_word=$2
 4825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4826: $as_echo_n "checking for $ac_word... " >&6; }
 4827: if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
 4828:   $as_echo_n "(cached) " >&6
 4829: else
 4830:   if test -n "$ac_ct_WINDRES"; then
 4831:   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
 4832: else
 4833: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4834: for as_dir in $PATH
 4835: do
 4836:   IFS=$as_save_IFS
 4837:   test -z "$as_dir" && as_dir=.
 4838:     for ac_exec_ext in '' $ac_executable_extensions; do
 4839:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 4840:     ac_cv_prog_ac_ct_WINDRES="windres"
 4841:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 4842:     break 2
 4843:   fi
 4844: done
 4845:   done
 4846: IFS=$as_save_IFS
 4847: 
 4848: fi
 4849: fi
 4850: ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
 4851: if test -n "$ac_ct_WINDRES"; then
 4852:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
 4853: $as_echo "$ac_ct_WINDRES" >&6; }
 4854: else
 4855:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4856: $as_echo "no" >&6; }
 4857: fi
 4858: 
 4859:   if test "x$ac_ct_WINDRES" = x; then
 4860:     WINDRES=""
 4861:   else
 4862:     case $cross_compiling:$ac_tool_warned in
 4863: yes:)
 4864: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 4865: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 4866: ac_tool_warned=yes ;;
 4867: esac
 4868:     WINDRES=$ac_ct_WINDRES
 4869:   fi
 4870: else
 4871:   WINDRES="$ac_cv_prog_WINDRES"
 4872: fi
 4873: 
 4874: 
 4875:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for makensis" >&5
 4876: $as_echo_n "checking checking for makensis... " >&6; }
 4877:     if test -z "$MAKENSIS"; then
 4878:       if test -n "$PROGRAMFILES" && "$PROGRAMFILES/NSIS/makensis" -VERSION >/dev/null 2>&1; then
 4879:         MAKENSIS="$PROGRAMFILES/NSIS/makensis"
 4880:       elif makensis -VERSION >/dev/null 2>&1; then
 4881:         MAKENSIS=makensis
 4882:       fi
 4883:     fi
 4884:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MAKENSIS:-no}" >&5
 4885: $as_echo "${MAKENSIS:-no}" >&6; }
 4886:     ;;
 4887: esac
 4888: 
 4889: # Check for SVN.
 4890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is a build from SVN" >&5
 4891: $as_echo_n "checking whether this is a build from SVN... " >&6; }
 4892: is_svn_build=no
 4893: svn_deps=
 4894: if test -f "$srcdir/.svn/wc.db"; then
 4895:   # SVN 1.7, 1.8 working copy
 4896:   svn_deps='${srcdir}/.svn/wc.db'
 4897: elif test -f "${srcdir}/.svn/entries"; then
 4898:   # SVN <= 1.6 working copy (SVN 1.7 has empty entries file)
 4899:   svn_deps='${srcdir}/.svn/entries'
 4900: fi
 4901: if test -n "$svn_deps"; then
 4902:   is_svn_build=unknown
 4903:   if (cd "$srcdir" && svn --version && svnversion && svn info) >/dev/null 2>&1; then
 4904:     is_svn_build=yes
 4905:   fi
 4906: fi
 4907: 
 4908:  if test "$is_svn_build" = "yes"; then
 4909:   IS_SVN_BUILD_TRUE=
 4910:   IS_SVN_BUILD_FALSE='#'
 4911: else
 4912:   IS_SVN_BUILD_TRUE='#'
 4913:   IS_SVN_BUILD_FALSE=
 4914: fi
 4915: 
 4916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $is_svn_build" >&5
 4917: $as_echo "$is_svn_build" >&6; }
 4918: 
 4919: # Note: On Linux, clock_gettime() requires -lrt which implies -lpthreads
 4920: # Check ommitted for now, gettimeofday() provides reasonable precision
 4921: # AC_SEARCH_LIBS(clock_gettime, rt)
 4922: 
 4923: 
 4924: ac_ext=cpp
 4925: ac_cpp='$CXXCPP $CPPFLAGS'
 4926: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4927: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4928: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 4929: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 4930: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 4931: if test -z "$CXXCPP"; then
 4932:   if ${ac_cv_prog_CXXCPP+:} false; then :
 4933:   $as_echo_n "(cached) " >&6
 4934: else
 4935:       # Double quotes because CXXCPP needs to be expanded
 4936:     for CXXCPP in "$CXX -E" "/lib/cpp"
 4937:     do
 4938:       ac_preproc_ok=false
 4939: for ac_cxx_preproc_warn_flag in '' yes
 4940: do
 4941:   # Use a header file that comes with gcc, so configuring glibc
 4942:   # with a fresh cross-compiler works.
 4943:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4944:   # <limits.h> exists even on freestanding compilers.
 4945:   # On the NeXT, cc -E runs the code through the compiler's parser,
 4946:   # not just through cpp. "Syntax error" is here to catch this case.
 4947:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4948: /* end confdefs.h.  */
 4949: #ifdef __STDC__
 4950: # include <limits.h>
 4951: #else
 4952: # include <assert.h>
 4953: #endif
 4954: 		     Syntax error
 4955: _ACEOF
 4956: if ac_fn_cxx_try_cpp "$LINENO"; then :
 4957: 
 4958: else
 4959:   # Broken: fails on valid input.
 4960: continue
 4961: fi
 4962: rm -f conftest.err conftest.i conftest.$ac_ext
 4963: 
 4964:   # OK, works on sane cases.  Now check whether nonexistent headers
 4965:   # can be detected and how.
 4966:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4967: /* end confdefs.h.  */
 4968: #include <ac_nonexistent.h>
 4969: _ACEOF
 4970: if ac_fn_cxx_try_cpp "$LINENO"; then :
 4971:   # Broken: success on invalid input.
 4972: continue
 4973: else
 4974:   # Passes both tests.
 4975: ac_preproc_ok=:
 4976: break
 4977: fi
 4978: rm -f conftest.err conftest.i conftest.$ac_ext
 4979: 
 4980: done
 4981: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4982: rm -f conftest.i conftest.err conftest.$ac_ext
 4983: if $ac_preproc_ok; then :
 4984:   break
 4985: fi
 4986: 
 4987:     done
 4988:     ac_cv_prog_CXXCPP=$CXXCPP
 4989: 
 4990: fi
 4991:   CXXCPP=$ac_cv_prog_CXXCPP
 4992: else
 4993:   ac_cv_prog_CXXCPP=$CXXCPP
 4994: fi
 4995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 4996: $as_echo "$CXXCPP" >&6; }
 4997: ac_preproc_ok=false
 4998: for ac_cxx_preproc_warn_flag in '' yes
 4999: do
 5000:   # Use a header file that comes with gcc, so configuring glibc
 5001:   # with a fresh cross-compiler works.
 5002:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 5003:   # <limits.h> exists even on freestanding compilers.
 5004:   # On the NeXT, cc -E runs the code through the compiler's parser,
 5005:   # not just through cpp. "Syntax error" is here to catch this case.
 5006:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5007: /* end confdefs.h.  */
 5008: #ifdef __STDC__
 5009: # include <limits.h>
 5010: #else
 5011: # include <assert.h>
 5012: #endif
 5013: 		     Syntax error
 5014: _ACEOF
 5015: if ac_fn_cxx_try_cpp "$LINENO"; then :
 5016: 
 5017: else
 5018:   # Broken: fails on valid input.
 5019: continue
 5020: fi
 5021: rm -f conftest.err conftest.i conftest.$ac_ext
 5022: 
 5023:   # OK, works on sane cases.  Now check whether nonexistent headers
 5024:   # can be detected and how.
 5025:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5026: /* end confdefs.h.  */
 5027: #include <ac_nonexistent.h>
 5028: _ACEOF
 5029: if ac_fn_cxx_try_cpp "$LINENO"; then :
 5030:   # Broken: success on invalid input.
 5031: continue
 5032: else
 5033:   # Passes both tests.
 5034: ac_preproc_ok=:
 5035: break
 5036: fi
 5037: rm -f conftest.err conftest.i conftest.$ac_ext
 5038: 
 5039: done
 5040: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 5041: rm -f conftest.i conftest.err conftest.$ac_ext
 5042: if $ac_preproc_ok; then :
 5043: 
 5044: else
 5045:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 5046: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 5047: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 5048: See \`config.log' for more details" "$LINENO" 5; }
 5049: fi
 5050: 
 5051: ac_ext=cpp
 5052: ac_cpp='$CXXCPP $CPPFLAGS'
 5053: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 5054: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 5055: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 5056: 
 5057: 
 5058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 5059: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 5060: if ${ac_cv_path_GREP+:} false; then :
 5061:   $as_echo_n "(cached) " >&6
 5062: else
 5063:   if test -z "$GREP"; then
 5064:   ac_path_GREP_found=false
 5065:   # Loop through the user's path and test for each of PROGNAME-LIST
 5066:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5067: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 5068: do
 5069:   IFS=$as_save_IFS
 5070:   test -z "$as_dir" && as_dir=.
 5071:     for ac_prog in grep ggrep; do
 5072:     for ac_exec_ext in '' $ac_executable_extensions; do
 5073:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 5074:       as_fn_executable_p "$ac_path_GREP" || continue
 5075: # Check for GNU ac_path_GREP and select it if it is found.
 5076:   # Check for GNU $ac_path_GREP
 5077: case `"$ac_path_GREP" --version 2>&1` in
 5078: *GNU*)
 5079:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 5080: *)
 5081:   ac_count=0
 5082:   $as_echo_n 0123456789 >"conftest.in"
 5083:   while :
 5084:   do
 5085:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 5086:     mv "conftest.tmp" "conftest.in"
 5087:     cp "conftest.in" "conftest.nl"
 5088:     $as_echo 'GREP' >> "conftest.nl"
 5089:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 5090:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 5091:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 5092:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 5093:       # Best one so far, save it but keep looking for a better one
 5094:       ac_cv_path_GREP="$ac_path_GREP"
 5095:       ac_path_GREP_max=$ac_count
 5096:     fi
 5097:     # 10*(2^10) chars as input seems more than enough
 5098:     test $ac_count -gt 10 && break
 5099:   done
 5100:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 5101: esac
 5102: 
 5103:       $ac_path_GREP_found && break 3
 5104:     done
 5105:   done
 5106:   done
 5107: IFS=$as_save_IFS
 5108:   if test -z "$ac_cv_path_GREP"; then
 5109:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 5110:   fi
 5111: else
 5112:   ac_cv_path_GREP=$GREP
 5113: fi
 5114: 
 5115: fi
 5116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 5117: $as_echo "$ac_cv_path_GREP" >&6; }
 5118:  GREP="$ac_cv_path_GREP"
 5119: 
 5120: 
 5121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 5122: $as_echo_n "checking for egrep... " >&6; }
 5123: if ${ac_cv_path_EGREP+:} false; then :
 5124:   $as_echo_n "(cached) " >&6
 5125: else
 5126:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 5127:    then ac_cv_path_EGREP="$GREP -E"
 5128:    else
 5129:      if test -z "$EGREP"; then
 5130:   ac_path_EGREP_found=false
 5131:   # Loop through the user's path and test for each of PROGNAME-LIST
 5132:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5133: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 5134: do
 5135:   IFS=$as_save_IFS
 5136:   test -z "$as_dir" && as_dir=.
 5137:     for ac_prog in egrep; do
 5138:     for ac_exec_ext in '' $ac_executable_extensions; do
 5139:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 5140:       as_fn_executable_p "$ac_path_EGREP" || continue
 5141: # Check for GNU ac_path_EGREP and select it if it is found.
 5142:   # Check for GNU $ac_path_EGREP
 5143: case `"$ac_path_EGREP" --version 2>&1` in
 5144: *GNU*)
 5145:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 5146: *)
 5147:   ac_count=0
 5148:   $as_echo_n 0123456789 >"conftest.in"
 5149:   while :
 5150:   do
 5151:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 5152:     mv "conftest.tmp" "conftest.in"
 5153:     cp "conftest.in" "conftest.nl"
 5154:     $as_echo 'EGREP' >> "conftest.nl"
 5155:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 5156:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 5157:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 5158:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 5159:       # Best one so far, save it but keep looking for a better one
 5160:       ac_cv_path_EGREP="$ac_path_EGREP"
 5161:       ac_path_EGREP_max=$ac_count
 5162:     fi
 5163:     # 10*(2^10) chars as input seems more than enough
 5164:     test $ac_count -gt 10 && break
 5165:   done
 5166:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 5167: esac
 5168: 
 5169:       $ac_path_EGREP_found && break 3
 5170:     done
 5171:   done
 5172:   done
 5173: IFS=$as_save_IFS
 5174:   if test -z "$ac_cv_path_EGREP"; then
 5175:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 5176:   fi
 5177: else
 5178:   ac_cv_path_EGREP=$EGREP
 5179: fi
 5180: 
 5181:    fi
 5182: fi
 5183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 5184: $as_echo "$ac_cv_path_EGREP" >&6; }
 5185:  EGREP="$ac_cv_path_EGREP"
 5186: 
 5187: 
 5188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 5189: $as_echo_n "checking for ANSI C header files... " >&6; }
 5190: if ${ac_cv_header_stdc+:} false; then :
 5191:   $as_echo_n "(cached) " >&6
 5192: else
 5193:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5194: /* end confdefs.h.  */
 5195: #include <stdlib.h>
 5196: #include <stdarg.h>
 5197: #include <string.h>
 5198: #include <float.h>
 5199: 
 5200: int
 5201: main ()
 5202: {
 5203: 
 5204:   ;
 5205:   return 0;
 5206: }
 5207: _ACEOF
 5208: if ac_fn_cxx_try_compile "$LINENO"; then :
 5209:   ac_cv_header_stdc=yes
 5210: else
 5211:   ac_cv_header_stdc=no
 5212: fi
 5213: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5214: 
 5215: if test $ac_cv_header_stdc = yes; then
 5216:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 5217:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5218: /* end confdefs.h.  */
 5219: #include <string.h>
 5220: 
 5221: _ACEOF
 5222: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5223:   $EGREP "memchr" >/dev/null 2>&1; then :
 5224: 
 5225: else
 5226:   ac_cv_header_stdc=no
 5227: fi
 5228: rm -f conftest*
 5229: 
 5230: fi
 5231: 
 5232: if test $ac_cv_header_stdc = yes; then
 5233:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 5234:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5235: /* end confdefs.h.  */
 5236: #include <stdlib.h>
 5237: 
 5238: _ACEOF
 5239: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 5240:   $EGREP "free" >/dev/null 2>&1; then :
 5241: 
 5242: else
 5243:   ac_cv_header_stdc=no
 5244: fi
 5245: rm -f conftest*
 5246: 
 5247: fi
 5248: 
 5249: if test $ac_cv_header_stdc = yes; then
 5250:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 5251:   if test "$cross_compiling" = yes; then :
 5252:   :
 5253: else
 5254:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5255: /* end confdefs.h.  */
 5256: #include <ctype.h>
 5257: #include <stdlib.h>
 5258: #if ((' ' & 0x0FF) == 0x020)
 5259: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 5260: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 5261: #else
 5262: # define ISLOWER(c) \
 5263: 		   (('a' <= (c) && (c) <= 'i') \
 5264: 		     || ('j' <= (c) && (c) <= 'r') \
 5265: 		     || ('s' <= (c) && (c) <= 'z'))
 5266: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 5267: #endif
 5268: 
 5269: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 5270: int
 5271: main ()
 5272: {
 5273:   int i;
 5274:   for (i = 0; i < 256; i++)
 5275:     if (XOR (islower (i), ISLOWER (i))
 5276: 	|| toupper (i) != TOUPPER (i))
 5277:       return 2;
 5278:   return 0;
 5279: }
 5280: _ACEOF
 5281: if ac_fn_cxx_try_run "$LINENO"; then :
 5282: 
 5283: else
 5284:   ac_cv_header_stdc=no
 5285: fi
 5286: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 5287:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 5288: fi
 5289: 
 5290: fi
 5291: fi
 5292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 5293: $as_echo "$ac_cv_header_stdc" >&6; }
 5294: if test $ac_cv_header_stdc = yes; then
 5295: 
 5296: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 5297: 
 5298: fi
 5299: 
 5300: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 5301: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 5302: 		  inttypes.h stdint.h unistd.h
 5303: do :
 5304:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 5305: ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 5306: "
 5307: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 5308:   cat >>confdefs.h <<_ACEOF
 5309: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 5310: _ACEOF
 5311: 
 5312: fi
 5313: 
 5314: done
 5315: 
 5316: 
 5317: for ac_header in locale.h
 5318: do :
 5319:   ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
 5320: if test "x$ac_cv_header_locale_h" = xyes; then :
 5321:   cat >>confdefs.h <<_ACEOF
 5322: #define HAVE_LOCALE_H 1
 5323: _ACEOF
 5324: 
 5325: fi
 5326: 
 5327: done
 5328: 
 5329: for ac_header in dev/ata/atavar.h
 5330: do :
 5331:   ac_fn_cxx_check_header_mongrel "$LINENO" "dev/ata/atavar.h" "ac_cv_header_dev_ata_atavar_h" "$ac_includes_default"
 5332: if test "x$ac_cv_header_dev_ata_atavar_h" = xyes; then :
 5333:   cat >>confdefs.h <<_ACEOF
 5334: #define HAVE_DEV_ATA_ATAVAR_H 1
 5335: _ACEOF
 5336: 
 5337: fi
 5338: 
 5339: done
 5340: 
 5341: for ac_header in netdb.h
 5342: do :
 5343:   ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
 5344: if test "x$ac_cv_header_netdb_h" = xyes; then :
 5345:   cat >>confdefs.h <<_ACEOF
 5346: #define HAVE_NETDB_H 1
 5347: _ACEOF
 5348: 
 5349: fi
 5350: 
 5351: done
 5352: 
 5353: for ac_header in inttypes.h
 5354: do :
 5355:   ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
 5356: if test "x$ac_cv_header_inttypes_h" = xyes; then :
 5357:   cat >>confdefs.h <<_ACEOF
 5358: #define HAVE_INTTYPES_H 1
 5359: _ACEOF
 5360: 
 5361: fi
 5362: 
 5363: done
 5364: 		for ac_header in stdint.h
 5365: do :
 5366:   ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
 5367: if test "x$ac_cv_header_stdint_h" = xyes; then :
 5368:   cat >>confdefs.h <<_ACEOF
 5369: #define HAVE_STDINT_H 1
 5370: _ACEOF
 5371: 
 5372: fi
 5373: 
 5374: done
 5375: 		for ac_header in sys/inttypes.h
 5376: do :
 5377:   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
 5378: if test "x$ac_cv_header_sys_inttypes_h" = xyes; then :
 5379:   cat >>confdefs.h <<_ACEOF
 5380: #define HAVE_SYS_INTTYPES_H 1
 5381: _ACEOF
 5382: 
 5383: fi
 5384: 
 5385: done
 5386: 	for ac_header in sys/int_types.h
 5387: do :
 5388:   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
 5389: if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
 5390:   cat >>confdefs.h <<_ACEOF
 5391: #define HAVE_SYS_INT_TYPES_H 1
 5392: _ACEOF
 5393: 
 5394: fi
 5395: 
 5396: done
 5397: 	for ac_header in sys/tweio.h
 5398: do :
 5399:   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/tweio.h" "ac_cv_header_sys_tweio_h" "$ac_includes_default"
 5400: if test "x$ac_cv_header_sys_tweio_h" = xyes; then :
 5401:   cat >>confdefs.h <<_ACEOF
 5402: #define HAVE_SYS_TWEIO_H 1
 5403: _ACEOF
 5404: 
 5405: fi
 5406: 
 5407: done
 5408: 
 5409: for ac_header in sys/twereg.h
 5410: do :
 5411:   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/twereg.h" "ac_cv_header_sys_twereg_h" "$ac_includes_default"
 5412: if test "x$ac_cv_header_sys_twereg_h" = xyes; then :
 5413:   cat >>confdefs.h <<_ACEOF
 5414: #define HAVE_SYS_TWEREG_H 1
 5415: _ACEOF
 5416: 
 5417: fi
 5418: 
 5419: done
 5420: 
 5421: for ac_header in sys/tw_osl_ioctl.h
 5422: do :
 5423:   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/tw_osl_ioctl.h" "ac_cv_header_sys_tw_osl_ioctl_h" "$ac_includes_default"
 5424: if test "x$ac_cv_header_sys_tw_osl_ioctl_h" = xyes; then :
 5425:   cat >>confdefs.h <<_ACEOF
 5426: #define HAVE_SYS_TW_OSL_IOCTL_H 1
 5427: _ACEOF
 5428: 
 5429: fi
 5430: 
 5431: done
 5432: 
 5433: for ac_header in linux/compiler.h
 5434: do :
 5435:   ac_fn_cxx_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
 5436: if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
 5437:   cat >>confdefs.h <<_ACEOF
 5438: #define HAVE_LINUX_COMPILER_H 1
 5439: _ACEOF
 5440: 
 5441: fi
 5442: 
 5443: done
 5444: 
 5445: for ac_header in dev/ciss/cissio.h
 5446: do :
 5447:   ac_fn_cxx_check_header_mongrel "$LINENO" "dev/ciss/cissio.h" "ac_cv_header_dev_ciss_cissio_h" "$ac_includes_default"
 5448: if test "x$ac_cv_header_dev_ciss_cissio_h" = xyes; then :
 5449:   cat >>confdefs.h <<_ACEOF
 5450: #define HAVE_DEV_CISS_CISSIO_H 1
 5451: _ACEOF
 5452: 
 5453: $as_echo "#define CISS_LOCATION <dev/ciss/cissio.h>" >>confdefs.h
 5454: 
 5455: else
 5456: 
 5457: $as_echo "#define CISS_LOCATION \"cissio_freebsd.h\"" >>confdefs.h
 5458: 
 5459: 
 5460: fi
 5461: 
 5462: done
 5463: 
 5464: for ac_header in linux/cciss_ioctl.h
 5465: do :
 5466:   ac_fn_cxx_check_header_compile "$LINENO" "linux/cciss_ioctl.h" "ac_cv_header_linux_cciss_ioctl_h" "$ac_includes_default
 5467: #ifdef HAVE_LINUX_COMPILER_H
 5468: # include <linux/compiler.h>
 5469: #endif
 5470: 
 5471: "
 5472: if test "x$ac_cv_header_linux_cciss_ioctl_h" = xyes; then :
 5473:   cat >>confdefs.h <<_ACEOF
 5474: #define HAVE_LINUX_CCISS_IOCTL_H 1
 5475: _ACEOF
 5476: 
 5477: fi
 5478: 
 5479: done
 5480: 
 5481: for ac_header in ntdddisk.h ddk/ntdddisk.h
 5482: do :
 5483:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 5484: ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 5485: #include <windows.h>
 5486: 
 5487: "
 5488: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 5489:   cat >>confdefs.h <<_ACEOF
 5490: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 5491: _ACEOF
 5492: 
 5493: fi
 5494: 
 5495: done
 5496: 
 5497: for ac_header in wbemcli.h
 5498: do :
 5499:   ac_fn_cxx_check_header_mongrel "$LINENO" "wbemcli.h" "ac_cv_header_wbemcli_h" "$ac_includes_default"
 5500: if test "x$ac_cv_header_wbemcli_h" = xyes; then :
 5501:   cat >>confdefs.h <<_ACEOF
 5502: #define HAVE_WBEMCLI_H 1
 5503: _ACEOF
 5504: 
 5505: fi
 5506: 
 5507: done
 5508: 
 5509: 
 5510: ac_fn_cxx_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
 5511: if test "x$ac_cv_type_int64_t" = xyes; then :
 5512: 
 5513: cat >>confdefs.h <<_ACEOF
 5514: #define HAVE_INT64_T 1
 5515: _ACEOF
 5516: 
 5517: 
 5518: fi
 5519: ac_fn_cxx_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
 5520: if test "x$ac_cv_type_uint64_t" = xyes; then :
 5521: 
 5522: cat >>confdefs.h <<_ACEOF
 5523: #define HAVE_UINT64_T 1
 5524: _ACEOF
 5525: 
 5526: 
 5527: fi
 5528: 
 5529: 
 5530: for ac_func in getopt_long
 5531: do :
 5532:   ac_fn_cxx_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
 5533: if test "x$ac_cv_func_getopt_long" = xyes; then :
 5534:   cat >>confdefs.h <<_ACEOF
 5535: #define HAVE_GETOPT_LONG 1
 5536: _ACEOF
 5537:  need_getopt_long=no
 5538: else
 5539:   need_getopt_long=yes
 5540: fi
 5541: done
 5542: 
 5543:  if test "$need_getopt_long" = "yes"; then
 5544:   NEED_GETOPT_LONG_TRUE=
 5545:   NEED_GETOPT_LONG_FALSE='#'
 5546: else
 5547:   NEED_GETOPT_LONG_TRUE='#'
 5548:   NEED_GETOPT_LONG_FALSE=
 5549: fi
 5550: 
 5551: for ac_func in regcomp
 5552: do :
 5553:   ac_fn_cxx_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
 5554: if test "x$ac_cv_func_regcomp" = xyes; then :
 5555:   cat >>confdefs.h <<_ACEOF
 5556: #define HAVE_REGCOMP 1
 5557: _ACEOF
 5558:  need_regex=no
 5559: else
 5560:   need_regex=yes
 5561: fi
 5562: done
 5563: 
 5564:  if test "$need_regex" = "yes"; then
 5565:   NEED_REGEX_TRUE=
 5566:   NEED_REGEX_FALSE='#'
 5567: else
 5568:   NEED_REGEX_TRUE='#'
 5569:   NEED_REGEX_FALSE=
 5570: fi
 5571: 
 5572: 
 5573: for ac_func in sigset
 5574: do :
 5575:   ac_fn_cxx_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
 5576: if test "x$ac_cv_func_sigset" = xyes; then :
 5577:   cat >>confdefs.h <<_ACEOF
 5578: #define HAVE_SIGSET 1
 5579: _ACEOF
 5580: 
 5581: fi
 5582: done
 5583: 
 5584: for ac_func in strtoull
 5585: do :
 5586:   ac_fn_cxx_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
 5587: if test "x$ac_cv_func_strtoull" = xyes; then :
 5588:   cat >>confdefs.h <<_ACEOF
 5589: #define HAVE_STRTOULL 1
 5590: _ACEOF
 5591: 
 5592: fi
 5593: done
 5594: 
 5595: for ac_func in uname
 5596: do :
 5597:   ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
 5598: if test "x$ac_cv_func_uname" = xyes; then :
 5599:   cat >>confdefs.h <<_ACEOF
 5600: #define HAVE_UNAME 1
 5601: _ACEOF
 5602: 
 5603: fi
 5604: done
 5605: 
 5606: for ac_func in clock_gettime ftime gettimeofday
 5607: do :
 5608:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 5609: ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
 5610: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 5611:   cat >>confdefs.h <<_ACEOF
 5612: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 5613: _ACEOF
 5614: 
 5615: fi
 5616: done
 5617: 
 5618: 
 5619: # Check byte ordering (defines WORDS_BIGENDIAN)
 5620:  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 5621: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 5622: if ${ac_cv_c_bigendian+:} false; then :
 5623:   $as_echo_n "(cached) " >&6
 5624: else
 5625:   ac_cv_c_bigendian=unknown
 5626:     # See if we're dealing with a universal compiler.
 5627:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5628: /* end confdefs.h.  */
 5629: #ifndef __APPLE_CC__
 5630: 	       not a universal capable compiler
 5631: 	     #endif
 5632: 	     typedef int dummy;
 5633: 
 5634: _ACEOF
 5635: if ac_fn_cxx_try_compile "$LINENO"; then :
 5636: 
 5637: 	# Check for potential -arch flags.  It is not universal unless
 5638: 	# there are at least two -arch flags with different values.
 5639: 	ac_arch=
 5640: 	ac_prev=
 5641: 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 5642: 	 if test -n "$ac_prev"; then
 5643: 	   case $ac_word in
 5644: 	     i?86 | x86_64 | ppc | ppc64)
 5645: 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 5646: 		 ac_arch=$ac_word
 5647: 	       else
 5648: 		 ac_cv_c_bigendian=universal
 5649: 		 break
 5650: 	       fi
 5651: 	       ;;
 5652: 	   esac
 5653: 	   ac_prev=
 5654: 	 elif test "x$ac_word" = "x-arch"; then
 5655: 	   ac_prev=arch
 5656: 	 fi
 5657:        done
 5658: fi
 5659: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5660:     if test $ac_cv_c_bigendian = unknown; then
 5661:       # See if sys/param.h defines the BYTE_ORDER macro.
 5662:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5663: /* end confdefs.h.  */
 5664: #include <sys/types.h>
 5665: 	     #include <sys/param.h>
 5666: 
 5667: int
 5668: main ()
 5669: {
 5670: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 5671: 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 5672: 		     && LITTLE_ENDIAN)
 5673: 	      bogus endian macros
 5674: 	     #endif
 5675: 
 5676:   ;
 5677:   return 0;
 5678: }
 5679: _ACEOF
 5680: if ac_fn_cxx_try_compile "$LINENO"; then :
 5681:   # It does; now see whether it defined to BIG_ENDIAN or not.
 5682: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5683: /* end confdefs.h.  */
 5684: #include <sys/types.h>
 5685: 		#include <sys/param.h>
 5686: 
 5687: int
 5688: main ()
 5689: {
 5690: #if BYTE_ORDER != BIG_ENDIAN
 5691: 		 not big endian
 5692: 		#endif
 5693: 
 5694:   ;
 5695:   return 0;
 5696: }
 5697: _ACEOF
 5698: if ac_fn_cxx_try_compile "$LINENO"; then :
 5699:   ac_cv_c_bigendian=yes
 5700: else
 5701:   ac_cv_c_bigendian=no
 5702: fi
 5703: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5704: fi
 5705: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5706:     fi
 5707:     if test $ac_cv_c_bigendian = unknown; then
 5708:       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 5709:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5710: /* end confdefs.h.  */
 5711: #include <limits.h>
 5712: 
 5713: int
 5714: main ()
 5715: {
 5716: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 5717: 	      bogus endian macros
 5718: 	     #endif
 5719: 
 5720:   ;
 5721:   return 0;
 5722: }
 5723: _ACEOF
 5724: if ac_fn_cxx_try_compile "$LINENO"; then :
 5725:   # It does; now see whether it defined to _BIG_ENDIAN or not.
 5726: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5727: /* end confdefs.h.  */
 5728: #include <limits.h>
 5729: 
 5730: int
 5731: main ()
 5732: {
 5733: #ifndef _BIG_ENDIAN
 5734: 		 not big endian
 5735: 		#endif
 5736: 
 5737:   ;
 5738:   return 0;
 5739: }
 5740: _ACEOF
 5741: if ac_fn_cxx_try_compile "$LINENO"; then :
 5742:   ac_cv_c_bigendian=yes
 5743: else
 5744:   ac_cv_c_bigendian=no
 5745: fi
 5746: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5747: fi
 5748: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5749:     fi
 5750:     if test $ac_cv_c_bigendian = unknown; then
 5751:       # Compile a test program.
 5752:       if test "$cross_compiling" = yes; then :
 5753:   # Try to guess by grepping values from an object file.
 5754: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5755: /* end confdefs.h.  */
 5756: short int ascii_mm[] =
 5757: 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 5758: 		short int ascii_ii[] =
 5759: 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 5760: 		int use_ascii (int i) {
 5761: 		  return ascii_mm[i] + ascii_ii[i];
 5762: 		}
 5763: 		short int ebcdic_ii[] =
 5764: 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 5765: 		short int ebcdic_mm[] =
 5766: 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 5767: 		int use_ebcdic (int i) {
 5768: 		  return ebcdic_mm[i] + ebcdic_ii[i];
 5769: 		}
 5770: 		extern int foo;
 5771: 
 5772: int
 5773: main ()
 5774: {
 5775: return use_ascii (foo) == use_ebcdic (foo);
 5776:   ;
 5777:   return 0;
 5778: }
 5779: _ACEOF
 5780: if ac_fn_cxx_try_compile "$LINENO"; then :
 5781:   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 5782: 	      ac_cv_c_bigendian=yes
 5783: 	    fi
 5784: 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 5785: 	      if test "$ac_cv_c_bigendian" = unknown; then
 5786: 		ac_cv_c_bigendian=no
 5787: 	      else
 5788: 		# finding both strings is unlikely to happen, but who knows?
 5789: 		ac_cv_c_bigendian=unknown
 5790: 	      fi
 5791: 	    fi
 5792: fi
 5793: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5794: else
 5795:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5796: /* end confdefs.h.  */
 5797: $ac_includes_default
 5798: int
 5799: main ()
 5800: {
 5801: 
 5802: 	     /* Are we little or big endian?  From Harbison&Steele.  */
 5803: 	     union
 5804: 	     {
 5805: 	       long int l;
 5806: 	       char c[sizeof (long int)];
 5807: 	     } u;
 5808: 	     u.l = 1;
 5809: 	     return u.c[sizeof (long int) - 1] == 1;
 5810: 
 5811:   ;
 5812:   return 0;
 5813: }
 5814: _ACEOF
 5815: if ac_fn_cxx_try_run "$LINENO"; then :
 5816:   ac_cv_c_bigendian=no
 5817: else
 5818:   ac_cv_c_bigendian=yes
 5819: fi
 5820: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 5821:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 5822: fi
 5823: 
 5824:     fi
 5825: fi
 5826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 5827: $as_echo "$ac_cv_c_bigendian" >&6; }
 5828:  case $ac_cv_c_bigendian in #(
 5829:    yes)
 5830:      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
 5831: ;; #(
 5832:    no)
 5833:       ;; #(
 5834:    universal)
 5835: 
 5836: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 5837: 
 5838:      ;; #(
 5839:    *)
 5840:      as_fn_error $? "unknown endianness
 5841:  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 5842:  esac
 5843: 
 5844: 
 5845: # Check whether snprintf appends null char and returns expected length on overflow
 5846: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
 5847: $as_echo_n "checking for working snprintf... " >&6; }
 5848: if test "$cross_compiling" = yes; then :
 5849:   libc_have_working_snprintf=unknown
 5850: else
 5851:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5852: /* end confdefs.h.  */
 5853: #include <stdio.h>
 5854: int
 5855: main ()
 5856: {
 5857:  char buf[]="ABCDEFGHI";
 5858:                int i=snprintf(buf,8,"12345678"); return !(!buf[7] && i==8);
 5859:   ;
 5860:   return 0;
 5861: }
 5862: _ACEOF
 5863: if ac_fn_cxx_try_run "$LINENO"; then :
 5864:   libc_have_working_snprintf=yes
 5865: else
 5866:   libc_have_working_snprintf=no
 5867: fi
 5868: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 5869:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 5870: fi
 5871: 
 5872: 
 5873: if test "$libc_have_working_snprintf" = "yes"; then
 5874: 
 5875: $as_echo "#define HAVE_WORKING_SNPRINTF 1" >>confdefs.h
 5876: 
 5877: fi
 5878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_have_working_snprintf" >&5
 5879: $as_echo "$libc_have_working_snprintf" >&6; }
 5880: 
 5881: # check for __attribute__((packed))
 5882: # (sizeof() check is required to avoid false positives if other
 5883: # __attribute__((x)) are supported)
 5884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports __attribute__((packed))" >&5
 5885: $as_echo_n "checking whether $CXX supports __attribute__((packed))... " >&6; }
 5886: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5887: /* end confdefs.h.  */
 5888: 
 5889: int
 5890: main ()
 5891: {
 5892: 
 5893:     struct s { char a; short b; } __attribute__((packed));
 5894:     typedef char t[sizeof(struct s) == 3 ? 1 : -1];
 5895:   ;
 5896:   return 0;
 5897: }
 5898: _ACEOF
 5899: if ac_fn_cxx_try_compile "$LINENO"; then :
 5900:   gcc_have_attr_packed=yes
 5901: else
 5902:   gcc_have_attr_packed=no
 5903: fi
 5904: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5905: 
 5906: if test "$gcc_have_attr_packed" = "yes"; then
 5907: 
 5908: $as_echo "#define HAVE_ATTR_PACKED 1" >>confdefs.h
 5909: 
 5910: fi
 5911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_have_attr_packed" >&5
 5912: $as_echo "$gcc_have_attr_packed" >&6; }
 5913: 
 5914: 
 5915: 
 5916: 
 5917: 
 5918: 
 5919: # Check whether --with-systemdsystemunitdir was given.
 5920: if test "${with_systemdsystemunitdir+set}" = set; then :
 5921:   withval=$with_systemdsystemunitdir;
 5922: else
 5923:   with_systemdsystemunitdir=auto
 5924: fi
 5925: 
 5926: 
 5927: systemdsystemunitdir=
 5928: case "$with_systemdsystemunitdir" in
 5929:  auto|yes)
 5930:    if test -n "$PKG_CONFIG"; then
 5931:      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemdsystemunitdir" >&5
 5932: $as_echo_n "checking for systemdsystemunitdir... " >&6; }
 5933:      systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
 5934:      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemdsystemunitdir:-no}" >&5
 5935: $as_echo "${systemdsystemunitdir:-no}" >&6; }
 5936:    fi
 5937:    case "$with_systemdsystemunitdir:$sysconfdir:$systemdsystemunitdir" in
 5938:      yes:*:) as_fn_error $? "Location of systemd service files not found" "$LINENO" 5 ;;
 5939:      yes:*:*|auto:*:|auto:/etc:*) ;;
 5940:      *) systemdsystemunitdir='${prefix}'$systemdsystemunitdir ;;
 5941:    esac ;;
 5942:  no) ;;
 5943:  *) systemdsystemunitdir="$with_systemdsystemunitdir" ;;
 5944: esac
 5945: 
 5946:  if test -n "$systemdsystemunitdir"; then
 5947:   INSTALL_SYSTEMDUNIT_TRUE=
 5948:   INSTALL_SYSTEMDUNIT_FALSE='#'
 5949: else
 5950:   INSTALL_SYSTEMDUNIT_TRUE='#'
 5951:   INSTALL_SYSTEMDUNIT_FALSE=
 5952: fi
 5953: 
 5954: 
 5955: 
 5956: # Check whether --with-initscriptdir was given.
 5957: if test "${with_initscriptdir+set}" = set; then :
 5958:   withval=$with_initscriptdir;
 5959: else
 5960:   with_initscriptdir=auto
 5961: fi
 5962: 
 5963: 
 5964: initddir=
 5965: case "$with_initscriptdir:$cross_compiling:$systemdsystemunitdir" in
 5966:   auto:no:|yes:*)
 5967:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init (rc) directory" >&5
 5968: $as_echo_n "checking for init (rc) directory... " >&6; }
 5969:     for dir in rc.d/init.d init.d rc.d; do
 5970:       if test -d /etc/$dir; then
 5971:         initddir='${sysconfdir}'/$dir
 5972:         break
 5973:       fi
 5974:     done
 5975:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${initddir:-no}" >&5
 5976: $as_echo "${initddir:-no}" >&6; }
 5977:     case "$with_initscriptdir:$initddir" in
 5978:       yes:) as_fn_error $? "Location of init scripts not found" "$LINENO" 5 ;;
 5979:     esac ;;
 5980:   auto:*|no:*) ;;
 5981:   *) initddir="$with_initscriptdir" ;;
 5982: esac
 5983: 
 5984:  if test -n "$initddir"; then
 5985:   INSTALL_INITSCRIPT_TRUE=
 5986:   INSTALL_INITSCRIPT_FALSE='#'
 5987: else
 5988:   INSTALL_INITSCRIPT_TRUE='#'
 5989:   INSTALL_INITSCRIPT_FALSE=
 5990: fi
 5991: 
 5992: 
 5993: # use different init script templates for different OS
 5994: case "${host}" in
 5995:   *-*-freebsd*)
 5996:     initdfile="smartd.freebsd.initd"
 5997:     ;;
 5998:   *)
 5999:     initdfile="smartd.initd"
 6000:     ;;
 6001: esac
 6002: 
 6003: 
 6004: 
 6005: # Check whether --with-docdir was given.
 6006: if test "${with_docdir+set}" = set; then :
 6007:   withval=$with_docdir; docdir="$withval"
 6008: else
 6009:    if test -z "$docdir"; then
 6010:       # autoconf 2.5x without '--docdir' support
 6011:       docdir='${datadir}/doc/${PACKAGE}'
 6012:     fi
 6013: 
 6014: fi
 6015: 
 6016: 
 6017: 
 6018: 
 6019: # Check whether --with-exampledir was given.
 6020: if test "${with_exampledir+set}" = set; then :
 6021:   withval=$with_exampledir; exampledir="$withval"
 6022: else
 6023:   exampledir='${docdir}/examplescripts'
 6024: fi
 6025: 
 6026: 
 6027: 
 6028: # Check whether --enable-drivedb was given.
 6029: if test "${enable_drivedb+set}" = set; then :
 6030:   enableval=$enable_drivedb;
 6031: else
 6032:   enable_drivedb=yes
 6033: fi
 6034: 
 6035: 
 6036: 
 6037: # Check whether --with-drivedbdir was given.
 6038: if test "${with_drivedbdir+set}" = set; then :
 6039:   withval=$with_drivedbdir; drivedbdir="$withval"; enable_drivedb=yes
 6040: else
 6041:   drivedbdir=; test "$enable_drivedb" = "yes" && drivedbdir='${datadir}/${PACKAGE}'
 6042: fi
 6043: 
 6044: 
 6045:  if test "$enable_drivedb" = "yes"; then
 6046:   ENABLE_DRIVEDB_TRUE=
 6047:   ENABLE_DRIVEDB_FALSE='#'
 6048: else
 6049:   ENABLE_DRIVEDB_TRUE='#'
 6050:   ENABLE_DRIVEDB_FALSE=
 6051: fi
 6052: 
 6053: 
 6054: # Check whether --enable-savestates was given.
 6055: if test "${enable_savestates+set}" = set; then :
 6056:   enableval=$enable_savestates;
 6057: fi
 6058: 
 6059: 
 6060: 
 6061: # Check whether --with-savestates was given.
 6062: if test "${with_savestates+set}" = set; then :
 6063:   withval=$with_savestates; savestates="$withval"; enable_savestates="yes"
 6064: else
 6065:   savestates=; test "$enable_savestates" = "yes" && savestates='${localstatedir}/lib/${PACKAGE}/smartd.'
 6066: fi
 6067: 
 6068: savestatesdir="${savestates%/*}"
 6069: 
 6070: 
 6071:  if test "$enable_savestates" = "yes"; then
 6072:   ENABLE_SAVESTATES_TRUE=
 6073:   ENABLE_SAVESTATES_FALSE='#'
 6074: else
 6075:   ENABLE_SAVESTATES_TRUE='#'
 6076:   ENABLE_SAVESTATES_FALSE=
 6077: fi
 6078: 
 6079: 
 6080: # Check whether --enable-attributelog was given.
 6081: if test "${enable_attributelog+set}" = set; then :
 6082:   enableval=$enable_attributelog;
 6083: fi
 6084: 
 6085: 
 6086: 
 6087: # Check whether --with-attributelog was given.
 6088: if test "${with_attributelog+set}" = set; then :
 6089:   withval=$with_attributelog; attributelog="$withval"; enable_attributelog="yes"
 6090: else
 6091:   attributelog=; test "$enable_attributelog" = "yes" && attributelog='${localstatedir}/lib/${PACKAGE}/attrlog.'
 6092: fi
 6093: 
 6094: attributelogdir="${attributelog%/*}"
 6095: 
 6096: 
 6097:  if test "$enable_attributelog" = "yes"; then
 6098:   ENABLE_ATTRIBUTELOG_TRUE=
 6099:   ENABLE_ATTRIBUTELOG_FALSE='#'
 6100: else
 6101:   ENABLE_ATTRIBUTELOG_TRUE='#'
 6102:   ENABLE_ATTRIBUTELOG_FALSE=
 6103: fi
 6104: 
 6105: 
 6106: # Check whether --enable-sample was given.
 6107: if test "${enable_sample+set}" = set; then :
 6108:   enableval=$enable_sample; smartd_suffix=; test "$enableval" = "yes" && smartd_suffix=".sample"
 6109: else
 6110:   smartd_suffix=;
 6111: fi
 6112: 
 6113: 
 6114: 
 6115: 
 6116: # Check whether --with-os-deps was given.
 6117: if test "${with_os_deps+set}" = set; then :
 6118:   withval=$with_os_deps;  for x in $with_os_deps; do
 6119:       case $x in
 6120:         *.o) ;;
 6121:         *) as_fn_error $? "non-object file specified by --with-os-deps" "$LINENO" 5 ;;
 6122:       esac
 6123:     done
 6124: 
 6125: fi
 6126: 
 6127: 
 6128: 
 6129: # Check whether --with-selinux was given.
 6130: if test "${with_selinux+set}" = set; then :
 6131:   withval=$with_selinux;  if test "$withval" = "yes"; then
 6132:       for ac_header in selinux/selinux.h
 6133: do :
 6134:   ac_fn_cxx_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
 6135: if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
 6136:   cat >>confdefs.h <<_ACEOF
 6137: #define HAVE_SELINUX_SELINUX_H 1
 6138: _ACEOF
 6139: 
 6140: else
 6141:   as_fn_error $? "Missing SELinux header files" "$LINENO" 5
 6142: fi
 6143: 
 6144: done
 6145: 
 6146:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for matchpathcon in -lselinux" >&5
 6147: $as_echo_n "checking for matchpathcon in -lselinux... " >&6; }
 6148: if ${ac_cv_lib_selinux_matchpathcon+:} false; then :
 6149:   $as_echo_n "(cached) " >&6
 6150: else
 6151:   ac_check_lib_save_LIBS=$LIBS
 6152: LIBS="-lselinux  $LIBS"
 6153: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6154: /* end confdefs.h.  */
 6155: 
 6156: /* Override any GCC internal prototype to avoid an error.
 6157:    Use char because int might match the return type of a GCC
 6158:    builtin and then its argument prototype would still apply.  */
 6159: #ifdef __cplusplus
 6160: extern "C"
 6161: #endif
 6162: char matchpathcon ();
 6163: int
 6164: main ()
 6165: {
 6166: return matchpathcon ();
 6167:   ;
 6168:   return 0;
 6169: }
 6170: _ACEOF
 6171: if ac_fn_cxx_try_link "$LINENO"; then :
 6172:   ac_cv_lib_selinux_matchpathcon=yes
 6173: else
 6174:   ac_cv_lib_selinux_matchpathcon=no
 6175: fi
 6176: rm -f core conftest.err conftest.$ac_objext \
 6177:     conftest$ac_exeext conftest.$ac_ext
 6178: LIBS=$ac_check_lib_save_LIBS
 6179: fi
 6180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_matchpathcon" >&5
 6181: $as_echo "$ac_cv_lib_selinux_matchpathcon" >&6; }
 6182: if test "x$ac_cv_lib_selinux_matchpathcon" = xyes; then :
 6183:   cat >>confdefs.h <<_ACEOF
 6184: #define HAVE_LIBSELINUX 1
 6185: _ACEOF
 6186: 
 6187:   LIBS="-lselinux $LIBS"
 6188: 
 6189: else
 6190:   as_fn_error $? "Missing or incorrect SELinux library files" "$LINENO" 5
 6191: fi
 6192: 
 6193:     fi
 6194: 
 6195: fi
 6196: 
 6197: 
 6198: if test "$with_selinux" = "yes"; then
 6199: 
 6200: $as_echo "#define WITH_SELINUX 1" >>confdefs.h
 6201: 
 6202: fi
 6203: 
 6204: 
 6205: # Check whether --with-libcap-ng was given.
 6206: if test "${with_libcap_ng+set}" = set; then :
 6207:   withval=$with_libcap_ng;
 6208: else
 6209:   with_libcap_ng=auto
 6210: fi
 6211: 
 6212: 
 6213: use_libcap_ng=no
 6214: if test "$with_libcap_ng" != "no"; then
 6215:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capng_clear in -lcap-ng" >&5
 6216: $as_echo_n "checking for capng_clear in -lcap-ng... " >&6; }
 6217: if ${ac_cv_lib_cap_ng_capng_clear+:} false; then :
 6218:   $as_echo_n "(cached) " >&6
 6219: else
 6220:   ac_check_lib_save_LIBS=$LIBS
 6221: LIBS="-lcap-ng  $LIBS"
 6222: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6223: /* end confdefs.h.  */
 6224: 
 6225: /* Override any GCC internal prototype to avoid an error.
 6226:    Use char because int might match the return type of a GCC
 6227:    builtin and then its argument prototype would still apply.  */
 6228: #ifdef __cplusplus
 6229: extern "C"
 6230: #endif
 6231: char capng_clear ();
 6232: int
 6233: main ()
 6234: {
 6235: return capng_clear ();
 6236:   ;
 6237:   return 0;
 6238: }
 6239: _ACEOF
 6240: if ac_fn_cxx_try_link "$LINENO"; then :
 6241:   ac_cv_lib_cap_ng_capng_clear=yes
 6242: else
 6243:   ac_cv_lib_cap_ng_capng_clear=no
 6244: fi
 6245: rm -f core conftest.err conftest.$ac_objext \
 6246:     conftest$ac_exeext conftest.$ac_ext
 6247: LIBS=$ac_check_lib_save_LIBS
 6248: fi
 6249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_clear" >&5
 6250: $as_echo "$ac_cv_lib_cap_ng_capng_clear" >&6; }
 6251: if test "x$ac_cv_lib_cap_ng_capng_clear" = xyes; then :
 6252: 
 6253: $as_echo "#define HAVE_LIBCAP_NG 1" >>confdefs.h
 6254: 
 6255:      CAPNG_LDADD="-lcap-ng"; use_libcap_ng=yes
 6256: fi
 6257: 
 6258: 
 6259:   if test "$use_libcap_ng" = "yes"; then
 6260:     ac_fn_cxx_check_header_mongrel "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default"
 6261: if test "x$ac_cv_header_cap_ng_h" = xyes; then :
 6262: 
 6263: else
 6264:   as_fn_error $? "libcap-ng libraries found but headers are missing" "$LINENO" 5
 6265: fi
 6266: 
 6267: 
 6268:   elif test "$with_libcap_ng" = "yes"; then
 6269:     as_fn_error $? "libcap-ng support was requested but the library was not found" "$LINENO" 5
 6270:   fi
 6271: fi
 6272: 
 6273: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libcap-ng" >&5
 6274: $as_echo_n "checking whether to use libcap-ng... " >&6; }
 6275: 
 6276:  if test "$use_libcap_ng" = "yes"; then
 6277:   ENABLE_CAPABILITIES_TRUE=
 6278:   ENABLE_CAPABILITIES_FALSE='#'
 6279: else
 6280:   ENABLE_CAPABILITIES_TRUE='#'
 6281:   ENABLE_CAPABILITIES_FALSE=
 6282: fi
 6283: 
 6284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libcap_ng" >&5
 6285: $as_echo "$use_libcap_ng" >&6; }
 6286: 
 6287: if test "$prefix" = "NONE"; then
 6288:         if test "$mandir" = '${prefix}/man'; then
 6289:     	mandir='${prefix}/share/man'
 6290: 
 6291:     fi
 6292: fi
 6293: 
 6294: releaseversion='${PACKAGE}-${VERSION}'
 6295: 
 6296: 
 6297: 
 6298: 
 6299: # Set platform-specific modules and symbols
 6300: os_libs=
 6301: os_dltools='curl wget lynx'
 6302: os_mailer=mail
 6303: os_hostname="'hostname'"
 6304: os_dnsdomainname=
 6305: os_nisdomainname="'domainname'"
 6306: os_darwin=no
 6307: os_solaris=no
 6308: os_win32=no
 6309: os_win32_mingw=no
 6310: os_win64=no
 6311: os_man_filter=
 6312: case "${host}" in
 6313:   *-*-linux*)
 6314:     os_deps='os_linux.o cciss.o dev_areca.o'
 6315:     os_dnsdomainname="'dnsdomainname' 'hostname -d'"
 6316:     os_nisdomainname="'nisdomainname' 'hostname -y' 'domainname'"
 6317:     os_man_filter=Linux
 6318:     ;;
 6319:   *-*-freebsd*|*-*-dragonfly*|*-*-kfreebsd*-gnu*)
 6320:     os_deps='os_freebsd.o cciss.o dev_areca.o'
 6321:     os_libs='-lcam'
 6322:     os_dltools='curl wget lynx fetch'
 6323:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb20_dev_get_device_desc in -lusb" >&5
 6324: $as_echo_n "checking for libusb20_dev_get_device_desc in -lusb... " >&6; }
 6325: if ${ac_cv_lib_usb_libusb20_dev_get_device_desc+:} false; then :
 6326:   $as_echo_n "(cached) " >&6
 6327: else
 6328:   ac_check_lib_save_LIBS=$LIBS
 6329: LIBS="-lusb  $LIBS"
 6330: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6331: /* end confdefs.h.  */
 6332: 
 6333: /* Override any GCC internal prototype to avoid an error.
 6334:    Use char because int might match the return type of a GCC
 6335:    builtin and then its argument prototype would still apply.  */
 6336: #ifdef __cplusplus
 6337: extern "C"
 6338: #endif
 6339: char libusb20_dev_get_device_desc ();
 6340: int
 6341: main ()
 6342: {
 6343: return libusb20_dev_get_device_desc ();
 6344:   ;
 6345:   return 0;
 6346: }
 6347: _ACEOF
 6348: if ac_fn_cxx_try_link "$LINENO"; then :
 6349:   ac_cv_lib_usb_libusb20_dev_get_device_desc=yes
 6350: else
 6351:   ac_cv_lib_usb_libusb20_dev_get_device_desc=no
 6352: fi
 6353: rm -f core conftest.err conftest.$ac_objext \
 6354:     conftest$ac_exeext conftest.$ac_ext
 6355: LIBS=$ac_check_lib_save_LIBS
 6356: fi
 6357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_libusb20_dev_get_device_desc" >&5
 6358: $as_echo "$ac_cv_lib_usb_libusb20_dev_get_device_desc" >&6; }
 6359: if test "x$ac_cv_lib_usb_libusb20_dev_get_device_desc" = xyes; then :
 6360:   cat >>confdefs.h <<_ACEOF
 6361: #define HAVE_LIBUSB 1
 6362: _ACEOF
 6363: 
 6364:   LIBS="-lusb $LIBS"
 6365: 
 6366: fi
 6367: 
 6368:     os_man_filter=FreeBSD
 6369:     ;;
 6370:   sparc-*-solaris*)
 6371:     os_deps='os_solaris.o os_solaris_ata.o'
 6372:     os_mailer='mailx'
 6373:     os_solaris=yes
 6374:     os_man_filter=Solaris
 6375:     ;;
 6376:   *-pc-solaris*)
 6377:     os_deps='os_solaris.o'
 6378:     os_mailer='mailx'
 6379:     os_solaris=yes
 6380:     os_man_filter=Solaris
 6381:     ;;
 6382:   *-*-netbsd*)
 6383:     os_deps='os_netbsd.o'
 6384:     os_libs='-lutil'
 6385:     os_man_filter=NetBSD
 6386:     ;;
 6387:   *-*-openbsd*)
 6388:     os_deps='os_openbsd.o'
 6389:     os_libs='-lutil'
 6390:     os_dltools='curl wget lynx ftp'
 6391:     os_man_filter=OpenBSD
 6392:     ;;
 6393:   *-*-cygwin*)
 6394:     os_deps='os_win32.o dev_areca.o'
 6395:     os_hostname="'hostname' 'echo "'"${HOSTNAME?unset}"'"'"
 6396:     os_dnsdomainname="'dnsdomainname' 'hostname -d' 'echo "'"${USERDNSDOMAIN?unset}"'"'"
 6397:     os_nisdomainname=
 6398:     os_win32=yes
 6399:     os_man_filter=Cygwin
 6400:     ;;
 6401:   x86_64-*-mingw*)
 6402:     os_deps='os_win32.o dev_areca.o'
 6403:     os_win32=yes
 6404:     os_win32_mingw=yes
 6405:     os_win64=yes
 6406:     os_man_filter=Windows
 6407:     ;;
 6408:   *-*-mingw*)
 6409:     os_deps='os_win32.o dev_areca.o'
 6410:     os_win32=yes
 6411:     os_win32_mingw=yes
 6412:     os_man_filter=Windows
 6413:     ;;
 6414:   *-*-darwin*)
 6415:     os_deps='os_darwin.o'
 6416:     os_libs='-framework CoreFoundation -framework IOKit'
 6417:     os_darwin=yes
 6418:     os_man_filter=Darwin
 6419:     ;;
 6420:   *-*-nto-qnx*)
 6421:     os_deps='os_qnxnto.o'
 6422:     ;;
 6423:   *)
 6424:     os_deps='os_generic.o'
 6425:     ;;
 6426: esac
 6427: 
 6428: # Replace if '--with-os-deps' was specified
 6429: test -z "$with_os_deps" || os_deps="$with_os_deps"
 6430: 
 6431: # Check if we need adapter to old interface (dev_legacy.cpp)
 6432: os_src=`echo "${os_deps}"|sed -n 's,^\([^ .]*\)\.o.*$,\1.cpp,p'`
 6433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${os_src} uses new interface" >&5
 6434: $as_echo_n "checking whether ${os_src} uses new interface... " >&6; }
 6435: if grep "smart_interface" "${srcdir}/${os_src}" >/dev/null 2>&1; then
 6436:   os_new_interface=yes
 6437: else
 6438:   os_new_interface=no
 6439:   os_deps="${os_deps} dev_legacy.o"
 6440: 
 6441: $as_echo "#define OLD_INTERFACE 1" >>confdefs.h
 6442: 
 6443: fi
 6444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_new_interface" >&5
 6445: $as_echo "$os_new_interface" >&6; }
 6446: 
 6447: 
 6448: 
 6449: 
 6450: 
 6451: 
 6452: 
 6453: 
 6454: 
 6455: 
 6456: # Create drivedb.h update branch name from version: 5.41[.X] -> RELEASE_5_41_DRIVEDB
 6457: DRIVEDB_BRANCH=`echo $VERSION | sed 's,^\([0-9]*\.[0-9]*\)\..*$,\1,' \
 6458:                 | sed -n 's,^\([0-9][0-9]*\)\.\([0-9][0-9]*\)$,RELEASE_\1_\2_DRIVEDB,p'`
 6459: if test -z "$DRIVEDB_BRANCH"; then
 6460:   as_fn_error $? "Unable to create DRIVEDB_BRANCH from VERSION=$VERSION" "$LINENO" 5
 6461: fi
 6462: 
 6463: 
 6464: # Enable platform-specific makefile sections
 6465:  if test "$os_darwin" = "yes"; then
 6466:   OS_DARWIN_TRUE=
 6467:   OS_DARWIN_FALSE='#'
 6468: else
 6469:   OS_DARWIN_TRUE='#'
 6470:   OS_DARWIN_FALSE=
 6471: fi
 6472: 
 6473:  if test "$os_solaris" = "yes"; then
 6474:   OS_SOLARIS_TRUE=
 6475:   OS_SOLARIS_FALSE='#'
 6476: else
 6477:   OS_SOLARIS_TRUE='#'
 6478:   OS_SOLARIS_FALSE=
 6479: fi
 6480: 
 6481:  if test "$os_win32" = "yes"; then
 6482:   OS_WIN32_TRUE=
 6483:   OS_WIN32_FALSE='#'
 6484: else
 6485:   OS_WIN32_TRUE='#'
 6486:   OS_WIN32_FALSE=
 6487: fi
 6488: 
 6489:  if test "$os_win32_mingw" = "yes"; then
 6490:   OS_WIN32_MINGW_TRUE=
 6491:   OS_WIN32_MINGW_FALSE='#'
 6492: else
 6493:   OS_WIN32_MINGW_TRUE='#'
 6494:   OS_WIN32_MINGW_FALSE=
 6495: fi
 6496: 
 6497:  if test -n "$MAKENSIS"; then
 6498:   OS_WIN32_NSIS_TRUE=
 6499:   OS_WIN32_NSIS_FALSE='#'
 6500: else
 6501:   OS_WIN32_NSIS_TRUE='#'
 6502:   OS_WIN32_NSIS_FALSE=
 6503: fi
 6504: 
 6505:  if test "$os_win64" = "yes"; then
 6506:   OS_WIN64_TRUE=
 6507:   OS_WIN64_FALSE='#'
 6508: else
 6509:   OS_WIN64_TRUE='#'
 6510:   OS_WIN64_FALSE=
 6511: fi
 6512: 
 6513: 
 6514: if test "$GXX" = "yes"; then
 6515:   if test -z "`echo "$CXXFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
 6516:       CXXFLAGS="$CXXFLAGS -Wall"
 6517:   fi
 6518: # In the next line, do NOT delete the 2 spaces inside double quotes.
 6519:   if test -z "`echo "$CXXFLAGS " | grep "\-W " 2> /dev/null`" ; then
 6520:       CXXFLAGS="$CXXFLAGS -W"
 6521:   fi
 6522: 
 6523: else
 6524:   case "${host}" in
 6525: 	sparc*-*-solaris*)
 6526:                     if test -z "`echo "$CXXFLAGS" | grep "\-xmemalign" 2> /dev/null`" ; then
 6527:                         CXXFLAGS="-xmemalign=1i $CXXFLAGS"
 6528:           fi
 6529:  esac
 6530:  case "${host}" in
 6531: 	*-*-solaris*)
 6532:           if test -z "`echo "$CXXFLAGS" | grep "\-xO" 2> /dev/null`" ; then
 6533:                         CXXFLAGS="-xO2 $CXXFLAGS"
 6534:           fi
 6535:           if test -z "`echo "$CXXFLAGS" | grep "\-erroff" 2> /dev/null`" ; then
 6536: 	    	    CXXFLAGS="-erroff=%none,wbadinitl,wbadasgl,badargtypel2w,badargtype2w $CXXFLAGS"
 6537: 	  fi
 6538:  esac
 6539: fi
 6540: 
 6541: 
 6542: cat >>confdefs.h <<_ACEOF
 6543: #define SMARTMONTOOLS_BUILD_HOST "${host}"
 6544: _ACEOF
 6545: 
 6546: 
 6547: 
 6548: 
 6549: ac_config_files="$ac_config_files Makefile"
 6550: 
 6551: cat >confcache <<\_ACEOF
 6552: # This file is a shell script that caches the results of configure
 6553: # tests run on this system so they can be shared between configure
 6554: # scripts and configure runs, see configure's option --config-cache.
 6555: # It is not useful on other systems.  If it contains results you don't
 6556: # want to keep, you may remove or edit it.
 6557: #
 6558: # config.status only pays attention to the cache file if you give it
 6559: # the --recheck option to rerun configure.
 6560: #
 6561: # `ac_cv_env_foo' variables (set or unset) will be overridden when
 6562: # loading this file, other *unset* `ac_cv_foo' will be assigned the
 6563: # following values.
 6564: 
 6565: _ACEOF
 6566: 
 6567: # The following way of writing the cache mishandles newlines in values,
 6568: # but we know of no workaround that is simple, portable, and efficient.
 6569: # So, we kill variables containing newlines.
 6570: # Ultrix sh set writes to stderr and can't be redirected directly,
 6571: # and sets the high bit in the cache file unless we assign to the vars.
 6572: (
 6573:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 6574:     eval ac_val=\$$ac_var
 6575:     case $ac_val in #(
 6576:     *${as_nl}*)
 6577:       case $ac_var in #(
 6578:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 6579: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 6580:       esac
 6581:       case $ac_var in #(
 6582:       _ | IFS | as_nl) ;; #(
 6583:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 6584:       *) { eval $ac_var=; unset $ac_var;} ;;
 6585:       esac ;;
 6586:     esac
 6587:   done
 6588: 
 6589:   (set) 2>&1 |
 6590:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 6591:     *${as_nl}ac_space=\ *)
 6592:       # `set' does not quote correctly, so add quotes: double-quote
 6593:       # substitution turns \\\\ into \\, and sed turns \\ into \.
 6594:       sed -n \
 6595: 	"s/'/'\\\\''/g;
 6596: 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 6597:       ;; #(
 6598:     *)
 6599:       # `set' quotes correctly as required by POSIX, so do not add quotes.
 6600:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 6601:       ;;
 6602:     esac |
 6603:     sort
 6604: ) |
 6605:   sed '
 6606:      /^ac_cv_env_/b end
 6607:      t clear
 6608:      :clear
 6609:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 6610:      t end
 6611:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 6612:      :end' >>confcache
 6613: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 6614:   if test -w "$cache_file"; then
 6615:     if test "x$cache_file" != "x/dev/null"; then
 6616:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 6617: $as_echo "$as_me: updating cache $cache_file" >&6;}
 6618:       if test ! -f "$cache_file" || test -h "$cache_file"; then
 6619: 	cat confcache >"$cache_file"
 6620:       else
 6621:         case $cache_file in #(
 6622:         */* | ?:*)
 6623: 	  mv -f confcache "$cache_file"$$ &&
 6624: 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
 6625:         *)
 6626: 	  mv -f confcache "$cache_file" ;;
 6627: 	esac
 6628:       fi
 6629:     fi
 6630:   else
 6631:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 6632: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 6633:   fi
 6634: fi
 6635: rm -f confcache
 6636: 
 6637: test "x$prefix" = xNONE && prefix=$ac_default_prefix
 6638: # Let make expand exec_prefix.
 6639: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 6640: 
 6641: DEFS=-DHAVE_CONFIG_H
 6642: 
 6643: ac_libobjs=
 6644: ac_ltlibobjs=
 6645: U=
 6646: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 6647:   # 1. Remove the extension, and $U if already installed.
 6648:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 6649:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 6650:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 6651:   #    will be set to the directory where LIBOBJS objects are built.
 6652:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 6653:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 6654: done
 6655: LIBOBJS=$ac_libobjs
 6656: 
 6657: LTLIBOBJS=$ac_ltlibobjs
 6658: 
 6659: 
 6660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 6661: $as_echo_n "checking that generated files are newer than configure... " >&6; }
 6662:    if test -n "$am_sleep_pid"; then
 6663:      # Hide warnings about reused PIDs.
 6664:      wait $am_sleep_pid 2>/dev/null
 6665:    fi
 6666:    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 6667: $as_echo "done" >&6; }
 6668:  if test -n "$EXEEXT"; then
 6669:   am__EXEEXT_TRUE=
 6670:   am__EXEEXT_FALSE='#'
 6671: else
 6672:   am__EXEEXT_TRUE='#'
 6673:   am__EXEEXT_FALSE=
 6674: fi
 6675: 
 6676: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 6677:   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 6678: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6679: fi
 6680: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 6681:   as_fn_error $? "conditional \"AMDEP\" was never defined.
 6682: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6683: fi
 6684: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 6685:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 6686: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6687: fi
 6688: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 6689:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 6690: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6691: fi
 6692: if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
 6693:   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
 6694: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6695: fi
 6696: if test -z "${IS_SVN_BUILD_TRUE}" && test -z "${IS_SVN_BUILD_FALSE}"; then
 6697:   as_fn_error $? "conditional \"IS_SVN_BUILD\" was never defined.
 6698: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6699: fi
 6700: if test -z "${NEED_GETOPT_LONG_TRUE}" && test -z "${NEED_GETOPT_LONG_FALSE}"; then
 6701:   as_fn_error $? "conditional \"NEED_GETOPT_LONG\" was never defined.
 6702: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6703: fi
 6704: if test -z "${NEED_REGEX_TRUE}" && test -z "${NEED_REGEX_FALSE}"; then
 6705:   as_fn_error $? "conditional \"NEED_REGEX\" was never defined.
 6706: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6707: fi
 6708: 
 6709: if test -z "${INSTALL_SYSTEMDUNIT_TRUE}" && test -z "${INSTALL_SYSTEMDUNIT_FALSE}"; then
 6710:   as_fn_error $? "conditional \"INSTALL_SYSTEMDUNIT\" was never defined.
 6711: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6712: fi
 6713: if test -z "${INSTALL_INITSCRIPT_TRUE}" && test -z "${INSTALL_INITSCRIPT_FALSE}"; then
 6714:   as_fn_error $? "conditional \"INSTALL_INITSCRIPT\" was never defined.
 6715: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6716: fi
 6717: if test -z "${ENABLE_DRIVEDB_TRUE}" && test -z "${ENABLE_DRIVEDB_FALSE}"; then
 6718:   as_fn_error $? "conditional \"ENABLE_DRIVEDB\" was never defined.
 6719: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6720: fi
 6721: if test -z "${ENABLE_SAVESTATES_TRUE}" && test -z "${ENABLE_SAVESTATES_FALSE}"; then
 6722:   as_fn_error $? "conditional \"ENABLE_SAVESTATES\" was never defined.
 6723: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6724: fi
 6725: if test -z "${ENABLE_ATTRIBUTELOG_TRUE}" && test -z "${ENABLE_ATTRIBUTELOG_FALSE}"; then
 6726:   as_fn_error $? "conditional \"ENABLE_ATTRIBUTELOG\" was never defined.
 6727: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6728: fi
 6729: if test -z "${ENABLE_CAPABILITIES_TRUE}" && test -z "${ENABLE_CAPABILITIES_FALSE}"; then
 6730:   as_fn_error $? "conditional \"ENABLE_CAPABILITIES\" was never defined.
 6731: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6732: fi
 6733: if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
 6734:   as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
 6735: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6736: fi
 6737: if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
 6738:   as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
 6739: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6740: fi
 6741: if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
 6742:   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
 6743: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6744: fi
 6745: if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
 6746:   as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined.
 6747: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6748: fi
 6749: if test -z "${OS_WIN32_NSIS_TRUE}" && test -z "${OS_WIN32_NSIS_FALSE}"; then
 6750:   as_fn_error $? "conditional \"OS_WIN32_NSIS\" was never defined.
 6751: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6752: fi
 6753: if test -z "${OS_WIN64_TRUE}" && test -z "${OS_WIN64_FALSE}"; then
 6754:   as_fn_error $? "conditional \"OS_WIN64\" was never defined.
 6755: Usually this means the macro was only invoked conditionally." "$LINENO" 5
 6756: fi
 6757: 
 6758: : "${CONFIG_STATUS=./config.status}"
 6759: ac_write_fail=0
 6760: ac_clean_files_save=$ac_clean_files
 6761: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 6762: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 6763: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 6764: as_write_fail=0
 6765: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 6766: #! $SHELL
 6767: # Generated by $as_me.
 6768: # Run this file to recreate the current configuration.
 6769: # Compiler output produced by configure, useful for debugging
 6770: # configure, is in config.log if it exists.
 6771: 
 6772: debug=false
 6773: ac_cs_recheck=false
 6774: ac_cs_silent=false
 6775: 
 6776: SHELL=\${CONFIG_SHELL-$SHELL}
 6777: export SHELL
 6778: _ASEOF
 6779: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 6780: ## -------------------- ##
 6781: ## M4sh Initialization. ##
 6782: ## -------------------- ##
 6783: 
 6784: # Be more Bourne compatible
 6785: DUALCASE=1; export DUALCASE # for MKS sh
 6786: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 6787:   emulate sh
 6788:   NULLCMD=:
 6789:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 6790:   # is contrary to our usage.  Disable this feature.
 6791:   alias -g '${1+"$@"}'='"$@"'
 6792:   setopt NO_GLOB_SUBST
 6793: else
 6794:   case `(set -o) 2>/dev/null` in #(
 6795:   *posix*) :
 6796:     set -o posix ;; #(
 6797:   *) :
 6798:      ;;
 6799: esac
 6800: fi
 6801: 
 6802: 
 6803: as_nl='
 6804: '
 6805: export as_nl
 6806: # Printing a long string crashes Solaris 7 /usr/bin/printf.
 6807: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 6808: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 6809: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 6810: # Prefer a ksh shell builtin over an external printf program on Solaris,
 6811: # but without wasting forks for bash or zsh.
 6812: if test -z "$BASH_VERSION$ZSH_VERSION" \
 6813:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 6814:   as_echo='print -r --'
 6815:   as_echo_n='print -rn --'
 6816: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 6817:   as_echo='printf %s\n'
 6818:   as_echo_n='printf %s'
 6819: else
 6820:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 6821:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 6822:     as_echo_n='/usr/ucb/echo -n'
 6823:   else
 6824:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 6825:     as_echo_n_body='eval
 6826:       arg=$1;
 6827:       case $arg in #(
 6828:       *"$as_nl"*)
 6829: 	expr "X$arg" : "X\\(.*\\)$as_nl";
 6830: 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 6831:       esac;
 6832:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 6833:     '
 6834:     export as_echo_n_body
 6835:     as_echo_n='sh -c $as_echo_n_body as_echo'
 6836:   fi
 6837:   export as_echo_body
 6838:   as_echo='sh -c $as_echo_body as_echo'
 6839: fi
 6840: 
 6841: # The user is always right.
 6842: if test "${PATH_SEPARATOR+set}" != set; then
 6843:   PATH_SEPARATOR=:
 6844:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 6845:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 6846:       PATH_SEPARATOR=';'
 6847:   }
 6848: fi
 6849: 
 6850: 
 6851: # IFS
 6852: # We need space, tab and new line, in precisely that order.  Quoting is
 6853: # there to prevent editors from complaining about space-tab.
 6854: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 6855: # splitting by setting IFS to empty value.)
 6856: IFS=" ""	$as_nl"
 6857: 
 6858: # Find who we are.  Look in the path if we contain no directory separator.
 6859: as_myself=
 6860: case $0 in #((
 6861:   *[\\/]* ) as_myself=$0 ;;
 6862:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6863: for as_dir in $PATH
 6864: do
 6865:   IFS=$as_save_IFS
 6866:   test -z "$as_dir" && as_dir=.
 6867:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 6868:   done
 6869: IFS=$as_save_IFS
 6870: 
 6871:      ;;
 6872: esac
 6873: # We did not find ourselves, most probably we were run as `sh COMMAND'
 6874: # in which case we are not to be found in the path.
 6875: if test "x$as_myself" = x; then
 6876:   as_myself=$0
 6877: fi
 6878: if test ! -f "$as_myself"; then
 6879:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 6880:   exit 1
 6881: fi
 6882: 
 6883: # Unset variables that we do not need and which cause bugs (e.g. in
 6884: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 6885: # suppresses any "Segmentation fault" message there.  '((' could
 6886: # trigger a bug in pdksh 5.2.14.
 6887: for as_var in BASH_ENV ENV MAIL MAILPATH
 6888: do eval test x\${$as_var+set} = xset \
 6889:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 6890: done
 6891: PS1='$ '
 6892: PS2='> '
 6893: PS4='+ '
 6894: 
 6895: # NLS nuisances.
 6896: LC_ALL=C
 6897: export LC_ALL
 6898: LANGUAGE=C
 6899: export LANGUAGE
 6900: 
 6901: # CDPATH.
 6902: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 6903: 
 6904: 
 6905: # as_fn_error STATUS ERROR [LINENO LOG_FD]
 6906: # ----------------------------------------
 6907: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 6908: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 6909: # script with STATUS, using 1 if that was 0.
 6910: as_fn_error ()
 6911: {
 6912:   as_status=$1; test $as_status -eq 0 && as_status=1
 6913:   if test "$4"; then
 6914:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 6915:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 6916:   fi
 6917:   $as_echo "$as_me: error: $2" >&2
 6918:   as_fn_exit $as_status
 6919: } # as_fn_error
 6920: 
 6921: 
 6922: # as_fn_set_status STATUS
 6923: # -----------------------
 6924: # Set $? to STATUS, without forking.
 6925: as_fn_set_status ()
 6926: {
 6927:   return $1
 6928: } # as_fn_set_status
 6929: 
 6930: # as_fn_exit STATUS
 6931: # -----------------
 6932: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 6933: as_fn_exit ()
 6934: {
 6935:   set +e
 6936:   as_fn_set_status $1
 6937:   exit $1
 6938: } # as_fn_exit
 6939: 
 6940: # as_fn_unset VAR
 6941: # ---------------
 6942: # Portably unset VAR.
 6943: as_fn_unset ()
 6944: {
 6945:   { eval $1=; unset $1;}
 6946: }
 6947: as_unset=as_fn_unset
 6948: # as_fn_append VAR VALUE
 6949: # ----------------------
 6950: # Append the text in VALUE to the end of the definition contained in VAR. Take
 6951: # advantage of any shell optimizations that allow amortized linear growth over
 6952: # repeated appends, instead of the typical quadratic growth present in naive
 6953: # implementations.
 6954: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 6955:   eval 'as_fn_append ()
 6956:   {
 6957:     eval $1+=\$2
 6958:   }'
 6959: else
 6960:   as_fn_append ()
 6961:   {
 6962:     eval $1=\$$1\$2
 6963:   }
 6964: fi # as_fn_append
 6965: 
 6966: # as_fn_arith ARG...
 6967: # ------------------
 6968: # Perform arithmetic evaluation on the ARGs, and store the result in the
 6969: # global $as_val. Take advantage of shells that can avoid forks. The arguments
 6970: # must be portable across $(()) and expr.
 6971: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 6972:   eval 'as_fn_arith ()
 6973:   {
 6974:     as_val=$(( $* ))
 6975:   }'
 6976: else
 6977:   as_fn_arith ()
 6978:   {
 6979:     as_val=`expr "$@" || test $? -eq 1`
 6980:   }
 6981: fi # as_fn_arith
 6982: 
 6983: 
 6984: if expr a : '\(a\)' >/dev/null 2>&1 &&
 6985:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 6986:   as_expr=expr
 6987: else
 6988:   as_expr=false
 6989: fi
 6990: 
 6991: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 6992:   as_basename=basename
 6993: else
 6994:   as_basename=false
 6995: fi
 6996: 
 6997: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 6998:   as_dirname=dirname
 6999: else
 7000:   as_dirname=false
 7001: fi
 7002: 
 7003: as_me=`$as_basename -- "$0" ||
 7004: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 7005: 	 X"$0" : 'X\(//\)$' \| \
 7006: 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 7007: $as_echo X/"$0" |
 7008:     sed '/^.*\/\([^/][^/]*\)\/*$/{
 7009: 	    s//\1/
 7010: 	    q
 7011: 	  }
 7012: 	  /^X\/\(\/\/\)$/{
 7013: 	    s//\1/
 7014: 	    q
 7015: 	  }
 7016: 	  /^X\/\(\/\).*/{
 7017: 	    s//\1/
 7018: 	    q
 7019: 	  }
 7020: 	  s/.*/./; q'`
 7021: 
 7022: # Avoid depending upon Character Ranges.
 7023: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 7024: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 7025: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 7026: as_cr_digits='0123456789'
 7027: as_cr_alnum=$as_cr_Letters$as_cr_digits
 7028: 
 7029: ECHO_C= ECHO_N= ECHO_T=
 7030: case `echo -n x` in #(((((
 7031: -n*)
 7032:   case `echo 'xy\c'` in
 7033:   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 7034:   xy)  ECHO_C='\c';;
 7035:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 7036:        ECHO_T='	';;
 7037:   esac;;
 7038: *)
 7039:   ECHO_N='-n';;
 7040: esac
 7041: 
 7042: rm -f conf$$ conf$$.exe conf$$.file
 7043: if test -d conf$$.dir; then
 7044:   rm -f conf$$.dir/conf$$.file
 7045: else
 7046:   rm -f conf$$.dir
 7047:   mkdir conf$$.dir 2>/dev/null
 7048: fi
 7049: if (echo >conf$$.file) 2>/dev/null; then
 7050:   if ln -s conf$$.file conf$$ 2>/dev/null; then
 7051:     as_ln_s='ln -s'
 7052:     # ... but there are two gotchas:
 7053:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 7054:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 7055:     # In both cases, we have to default to `cp -pR'.
 7056:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 7057:       as_ln_s='cp -pR'
 7058:   elif ln conf$$.file conf$$ 2>/dev/null; then
 7059:     as_ln_s=ln
 7060:   else
 7061:     as_ln_s='cp -pR'
 7062:   fi
 7063: else
 7064:   as_ln_s='cp -pR'
 7065: fi
 7066: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 7067: rmdir conf$$.dir 2>/dev/null
 7068: 
 7069: 
 7070: # as_fn_mkdir_p
 7071: # -------------
 7072: # Create "$as_dir" as a directory, including parents if necessary.
 7073: as_fn_mkdir_p ()
 7074: {
 7075: 
 7076:   case $as_dir in #(
 7077:   -*) as_dir=./$as_dir;;
 7078:   esac
 7079:   test -d "$as_dir" || eval $as_mkdir_p || {
 7080:     as_dirs=
 7081:     while :; do
 7082:       case $as_dir in #(
 7083:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 7084:       *) as_qdir=$as_dir;;
 7085:       esac
 7086:       as_dirs="'$as_qdir' $as_dirs"
 7087:       as_dir=`$as_dirname -- "$as_dir" ||
 7088: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 7089: 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 7090: 	 X"$as_dir" : 'X\(//\)$' \| \
 7091: 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 7092: $as_echo X"$as_dir" |
 7093:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 7094: 	    s//\1/
 7095: 	    q
 7096: 	  }
 7097: 	  /^X\(\/\/\)[^/].*/{
 7098: 	    s//\1/
 7099: 	    q
 7100: 	  }
 7101: 	  /^X\(\/\/\)$/{
 7102: 	    s//\1/
 7103: 	    q
 7104: 	  }
 7105: 	  /^X\(\/\).*/{
 7106: 	    s//\1/
 7107: 	    q
 7108: 	  }
 7109: 	  s/.*/./; q'`
 7110:       test -d "$as_dir" && break
 7111:     done
 7112:     test -z "$as_dirs" || eval "mkdir $as_dirs"
 7113:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 7114: 
 7115: 
 7116: } # as_fn_mkdir_p
 7117: if mkdir -p . 2>/dev/null; then
 7118:   as_mkdir_p='mkdir -p "$as_dir"'
 7119: else
 7120:   test -d ./-p && rmdir ./-p
 7121:   as_mkdir_p=false
 7122: fi
 7123: 
 7124: 
 7125: # as_fn_executable_p FILE
 7126: # -----------------------
 7127: # Test if FILE is an executable regular file.
 7128: as_fn_executable_p ()
 7129: {
 7130:   test -f "$1" && test -x "$1"
 7131: } # as_fn_executable_p
 7132: as_test_x='test -x'
 7133: as_executable_p=as_fn_executable_p
 7134: 
 7135: # Sed expression to map a string onto a valid CPP name.
 7136: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 7137: 
 7138: # Sed expression to map a string onto a valid variable name.
 7139: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 7140: 
 7141: 
 7142: exec 6>&1
 7143: ## ----------------------------------- ##
 7144: ## Main body of $CONFIG_STATUS script. ##
 7145: ## ----------------------------------- ##
 7146: _ASEOF
 7147: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 7148: 
 7149: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 7150: # Save the log message, to keep $0 and so on meaningful, and to
 7151: # report actual input values of CONFIG_FILES etc. instead of their
 7152: # values after options handling.
 7153: ac_log="
 7154: This file was extended by smartmontools $as_me 6.2, which was
 7155: generated by GNU Autoconf 2.69.  Invocation command line was
 7156: 
 7157:   CONFIG_FILES    = $CONFIG_FILES
 7158:   CONFIG_HEADERS  = $CONFIG_HEADERS
 7159:   CONFIG_LINKS    = $CONFIG_LINKS
 7160:   CONFIG_COMMANDS = $CONFIG_COMMANDS
 7161:   $ $0 $@
 7162: 
 7163: on `(hostname || uname -n) 2>/dev/null | sed 1q`
 7164: "
 7165: 
 7166: _ACEOF
 7167: 
 7168: case $ac_config_files in *"
 7169: "*) set x $ac_config_files; shift; ac_config_files=$*;;
 7170: esac
 7171: 
 7172: case $ac_config_headers in *"
 7173: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 7174: esac
 7175: 
 7176: 
 7177: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 7178: # Files that config.status was made for.
 7179: config_files="$ac_config_files"
 7180: config_headers="$ac_config_headers"
 7181: config_commands="$ac_config_commands"
 7182: 
 7183: _ACEOF
 7184: 
 7185: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 7186: ac_cs_usage="\
 7187: \`$as_me' instantiates files and other configuration actions
 7188: from templates according to the current configuration.  Unless the files
 7189: and actions are specified as TAGs, all are instantiated by default.
 7190: 
 7191: Usage: $0 [OPTION]... [TAG]...
 7192: 
 7193:   -h, --help       print this help, then exit
 7194:   -V, --version    print version number and configuration settings, then exit
 7195:       --config     print configuration, then exit
 7196:   -q, --quiet, --silent
 7197:                    do not print progress messages
 7198:   -d, --debug      don't remove temporary files
 7199:       --recheck    update $as_me by reconfiguring in the same conditions
 7200:       --file=FILE[:TEMPLATE]
 7201:                    instantiate the configuration file FILE
 7202:       --header=FILE[:TEMPLATE]
 7203:                    instantiate the configuration header FILE
 7204: 
 7205: Configuration files:
 7206: $config_files
 7207: 
 7208: Configuration headers:
 7209: $config_headers
 7210: 
 7211: Configuration commands:
 7212: $config_commands
 7213: 
 7214: Report bugs to <smartmontools-support@lists.sourceforge.net>."
 7215: 
 7216: _ACEOF
 7217: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 7218: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 7219: ac_cs_version="\\
 7220: smartmontools config.status 6.2
 7221: configured by $0, generated by GNU Autoconf 2.69,
 7222:   with options \\"\$ac_cs_config\\"
 7223: 
 7224: Copyright (C) 2012 Free Software Foundation, Inc.
 7225: This config.status script is free software; the Free Software Foundation
 7226: gives unlimited permission to copy, distribute and modify it."
 7227: 
 7228: ac_pwd='$ac_pwd'
 7229: srcdir='$srcdir'
 7230: INSTALL='$INSTALL'
 7231: MKDIR_P='$MKDIR_P'
 7232: AWK='$AWK'
 7233: test -n "\$AWK" || AWK=awk
 7234: _ACEOF
 7235: 
 7236: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 7237: # The default lists apply if the user does not specify any file.
 7238: ac_need_defaults=:
 7239: while test $# != 0
 7240: do
 7241:   case $1 in
 7242:   --*=?*)
 7243:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 7244:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 7245:     ac_shift=:
 7246:     ;;
 7247:   --*=)
 7248:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 7249:     ac_optarg=
 7250:     ac_shift=:
 7251:     ;;
 7252:   *)
 7253:     ac_option=$1
 7254:     ac_optarg=$2
 7255:     ac_shift=shift
 7256:     ;;
 7257:   esac
 7258: 
 7259:   case $ac_option in
 7260:   # Handling of the options.
 7261:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 7262:     ac_cs_recheck=: ;;
 7263:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 7264:     $as_echo "$ac_cs_version"; exit ;;
 7265:   --config | --confi | --conf | --con | --co | --c )
 7266:     $as_echo "$ac_cs_config"; exit ;;
 7267:   --debug | --debu | --deb | --de | --d | -d )
 7268:     debug=: ;;
 7269:   --file | --fil | --fi | --f )
 7270:     $ac_shift
 7271:     case $ac_optarg in
 7272:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 7273:     '') as_fn_error $? "missing file argument" ;;
 7274:     esac
 7275:     as_fn_append CONFIG_FILES " '$ac_optarg'"
 7276:     ac_need_defaults=false;;
 7277:   --header | --heade | --head | --hea )
 7278:     $ac_shift
 7279:     case $ac_optarg in
 7280:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 7281:     esac
 7282:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 7283:     ac_need_defaults=false;;
 7284:   --he | --h)
 7285:     # Conflict between --help and --header
 7286:     as_fn_error $? "ambiguous option: \`$1'
 7287: Try \`$0 --help' for more information.";;
 7288:   --help | --hel | -h )
 7289:     $as_echo "$ac_cs_usage"; exit ;;
 7290:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 7291:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 7292:     ac_cs_silent=: ;;
 7293: 
 7294:   # This is an error.
 7295:   -*) as_fn_error $? "unrecognized option: \`$1'
 7296: Try \`$0 --help' for more information." ;;
 7297: 
 7298:   *) as_fn_append ac_config_targets " $1"
 7299:      ac_need_defaults=false ;;
 7300: 
 7301:   esac
 7302:   shift
 7303: done
 7304: 
 7305: ac_configure_extra_args=
 7306: 
 7307: if $ac_cs_silent; then
 7308:   exec 6>/dev/null
 7309:   ac_configure_extra_args="$ac_configure_extra_args --silent"
 7310: fi
 7311: 
 7312: _ACEOF
 7313: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 7314: if \$ac_cs_recheck; then
 7315:   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 7316:   shift
 7317:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 7318:   CONFIG_SHELL='$SHELL'
 7319:   export CONFIG_SHELL
 7320:   exec "\$@"
 7321: fi
 7322: 
 7323: _ACEOF
 7324: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 7325: exec 5>>config.log
 7326: {
 7327:   echo
 7328:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 7329: ## Running $as_me. ##
 7330: _ASBOX
 7331:   $as_echo "$ac_log"
 7332: } >&5
 7333: 
 7334: _ACEOF
 7335: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 7336: #
 7337: # INIT-COMMANDS
 7338: #
 7339: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 7340: 
 7341: _ACEOF
 7342: 
 7343: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 7344: 
 7345: # Handling of arguments.
 7346: for ac_config_target in $ac_config_targets
 7347: do
 7348:   case $ac_config_target in
 7349:     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 7350:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 7351:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 7352: 
 7353:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 7354:   esac
 7355: done
 7356: 
 7357: 
 7358: # If the user did not use the arguments to specify the items to instantiate,
 7359: # then the envvar interface is used.  Set only those that are not.
 7360: # We use the long form for the default assignment because of an extremely
 7361: # bizarre bug on SunOS 4.1.3.
 7362: if $ac_need_defaults; then
 7363:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 7364:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 7365:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 7366: fi
 7367: 
 7368: # Have a temporary directory for convenience.  Make it in the build tree
 7369: # simply because there is no reason against having it here, and in addition,
 7370: # creating and moving files from /tmp can sometimes cause problems.
 7371: # Hook for its removal unless debugging.
 7372: # Note that there is a small window in which the directory will not be cleaned:
 7373: # after its creation but before its name has been assigned to `$tmp'.
 7374: $debug ||
 7375: {
 7376:   tmp= ac_tmp=
 7377:   trap 'exit_status=$?
 7378:   : "${ac_tmp:=$tmp}"
 7379:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 7380: ' 0
 7381:   trap 'as_fn_exit 1' 1 2 13 15
 7382: }
 7383: # Create a (secure) tmp directory for tmp files.
 7384: 
 7385: {
 7386:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 7387:   test -d "$tmp"
 7388: }  ||
 7389: {
 7390:   tmp=./conf$$-$RANDOM
 7391:   (umask 077 && mkdir "$tmp")
 7392: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 7393: ac_tmp=$tmp
 7394: 
 7395: # Set up the scripts for CONFIG_FILES section.
 7396: # No need to generate them if there are no CONFIG_FILES.
 7397: # This happens for instance with `./config.status config.h'.
 7398: if test -n "$CONFIG_FILES"; then
 7399: 
 7400: 
 7401: ac_cr=`echo X | tr X '\015'`
 7402: # On cygwin, bash can eat \r inside `` if the user requested igncr.
 7403: # But we know of no other shell where ac_cr would be empty at this
 7404: # point, so we can use a bashism as a fallback.
 7405: if test "x$ac_cr" = x; then
 7406:   eval ac_cr=\$\'\\r\'
 7407: fi
 7408: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 7409: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 7410:   ac_cs_awk_cr='\\r'
 7411: else
 7412:   ac_cs_awk_cr=$ac_cr
 7413: fi
 7414: 
 7415: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 7416: _ACEOF
 7417: 
 7418: 
 7419: {
 7420:   echo "cat >conf$$subs.awk <<_ACEOF" &&
 7421:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 7422:   echo "_ACEOF"
 7423: } >conf$$subs.sh ||
 7424:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 7425: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 7426: ac_delim='%!_!# '
 7427: for ac_last_try in false false false false false :; do
 7428:   . ./conf$$subs.sh ||
 7429:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 7430: 
 7431:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 7432:   if test $ac_delim_n = $ac_delim_num; then
 7433:     break
 7434:   elif $ac_last_try; then
 7435:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 7436:   else
 7437:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 7438:   fi
 7439: done
 7440: rm -f conf$$subs.sh
 7441: 
 7442: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 7443: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 7444: _ACEOF
 7445: sed -n '
 7446: h
 7447: s/^/S["/; s/!.*/"]=/
 7448: p
 7449: g
 7450: s/^[^!]*!//
 7451: :repl
 7452: t repl
 7453: s/'"$ac_delim"'$//
 7454: t delim
 7455: :nl
 7456: h
 7457: s/\(.\{148\}\)..*/\1/
 7458: t more1
 7459: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 7460: p
 7461: n
 7462: b repl
 7463: :more1
 7464: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 7465: p
 7466: g
 7467: s/.\{148\}//
 7468: t nl
 7469: :delim
 7470: h
 7471: s/\(.\{148\}\)..*/\1/
 7472: t more2
 7473: s/["\\]/\\&/g; s/^/"/; s/$/"/
 7474: p
 7475: b
 7476: :more2
 7477: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 7478: p
 7479: g
 7480: s/.\{148\}//
 7481: t delim
 7482: ' <conf$$subs.awk | sed '
 7483: /^[^""]/{
 7484:   N
 7485:   s/\n//
 7486: }
 7487: ' >>$CONFIG_STATUS || ac_write_fail=1
 7488: rm -f conf$$subs.awk
 7489: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 7490: _ACAWK
 7491: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 7492:   for (key in S) S_is_set[key] = 1
 7493:   FS = ""
 7494: 
 7495: }
 7496: {
 7497:   line = $ 0
 7498:   nfields = split(line, field, "@")
 7499:   substed = 0
 7500:   len = length(field[1])
 7501:   for (i = 2; i < nfields; i++) {
 7502:     key = field[i]
 7503:     keylen = length(key)
 7504:     if (S_is_set[key]) {
 7505:       value = S[key]
 7506:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 7507:       len += length(value) + length(field[++i])
 7508:       substed = 1
 7509:     } else
 7510:       len += 1 + keylen
 7511:   }
 7512: 
 7513:   print line
 7514: }
 7515: 
 7516: _ACAWK
 7517: _ACEOF
 7518: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 7519: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 7520:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 7521: else
 7522:   cat
 7523: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 7524:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 7525: _ACEOF
 7526: 
 7527: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 7528: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 7529: # trailing colons and then remove the whole line if VPATH becomes empty
 7530: # (actually we leave an empty line to preserve line numbers).
 7531: if test "x$srcdir" = x.; then
 7532:   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
 7533: h
 7534: s///
 7535: s/^/:/
 7536: s/[	 ]*$/:/
 7537: s/:\$(srcdir):/:/g
 7538: s/:\${srcdir}:/:/g
 7539: s/:@srcdir@:/:/g
 7540: s/^:*//
 7541: s/:*$//
 7542: x
 7543: s/\(=[	 ]*\).*/\1/
 7544: G
 7545: s/\n//
 7546: s/^[^=]*=[	 ]*$//
 7547: }'
 7548: fi
 7549: 
 7550: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 7551: fi # test -n "$CONFIG_FILES"
 7552: 
 7553: # Set up the scripts for CONFIG_HEADERS section.
 7554: # No need to generate them if there are no CONFIG_HEADERS.
 7555: # This happens for instance with `./config.status Makefile'.
 7556: if test -n "$CONFIG_HEADERS"; then
 7557: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 7558: BEGIN {
 7559: _ACEOF
 7560: 
 7561: # Transform confdefs.h into an awk script `defines.awk', embedded as
 7562: # here-document in config.status, that substitutes the proper values into
 7563: # config.h.in to produce config.h.
 7564: 
 7565: # Create a delimiter string that does not exist in confdefs.h, to ease
 7566: # handling of long lines.
 7567: ac_delim='%!_!# '
 7568: for ac_last_try in false false :; do
 7569:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 7570:   if test -z "$ac_tt"; then
 7571:     break
 7572:   elif $ac_last_try; then
 7573:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 7574:   else
 7575:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 7576:   fi
 7577: done
 7578: 
 7579: # For the awk script, D is an array of macro values keyed by name,
 7580: # likewise P contains macro parameters if any.  Preserve backslash
 7581: # newline sequences.
 7582: 
 7583: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 7584: sed -n '
 7585: s/.\{148\}/&'"$ac_delim"'/g
 7586: t rset
 7587: :rset
 7588: s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 7589: t def
 7590: d
 7591: :def
 7592: s/\\$//
 7593: t bsnl
 7594: s/["\\]/\\&/g
 7595: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 7596: D["\1"]=" \3"/p
 7597: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 7598: d
 7599: :bsnl
 7600: s/["\\]/\\&/g
 7601: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 7602: D["\1"]=" \3\\\\\\n"\\/p
 7603: t cont
 7604: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 7605: t cont
 7606: d
 7607: :cont
 7608: n
 7609: s/.\{148\}/&'"$ac_delim"'/g
 7610: t clear
 7611: :clear
 7612: s/\\$//
 7613: t bsnlc
 7614: s/["\\]/\\&/g; s/^/"/; s/$/"/p
 7615: d
 7616: :bsnlc
 7617: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 7618: b cont
 7619: ' <confdefs.h | sed '
 7620: s/'"$ac_delim"'/"\\\
 7621: "/g' >>$CONFIG_STATUS || ac_write_fail=1
 7622: 
 7623: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 7624:   for (key in D) D_is_set[key] = 1
 7625:   FS = ""
 7626: }
 7627: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 7628:   line = \$ 0
 7629:   split(line, arg, " ")
 7630:   if (arg[1] == "#") {
 7631:     defundef = arg[2]
 7632:     mac1 = arg[3]
 7633:   } else {
 7634:     defundef = substr(arg[1], 2)
 7635:     mac1 = arg[2]
 7636:   }
 7637:   split(mac1, mac2, "(") #)
 7638:   macro = mac2[1]
 7639:   prefix = substr(line, 1, index(line, defundef) - 1)
 7640:   if (D_is_set[macro]) {
 7641:     # Preserve the white space surrounding the "#".
 7642:     print prefix "define", macro P[macro] D[macro]
 7643:     next
 7644:   } else {
 7645:     # Replace #undef with comments.  This is necessary, for example,
 7646:     # in the case of _POSIX_SOURCE, which is predefined and required
 7647:     # on some systems where configure will not decide to define it.
 7648:     if (defundef == "undef") {
 7649:       print "/*", prefix defundef, macro, "*/"
 7650:       next
 7651:     }
 7652:   }
 7653: }
 7654: { print }
 7655: _ACAWK
 7656: _ACEOF
 7657: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 7658:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 7659: fi # test -n "$CONFIG_HEADERS"
 7660: 
 7661: 
 7662: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 7663: shift
 7664: for ac_tag
 7665: do
 7666:   case $ac_tag in
 7667:   :[FHLC]) ac_mode=$ac_tag; continue;;
 7668:   esac
 7669:   case $ac_mode$ac_tag in
 7670:   :[FHL]*:*);;
 7671:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 7672:   :[FH]-) ac_tag=-:-;;
 7673:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 7674:   esac
 7675:   ac_save_IFS=$IFS
 7676:   IFS=:
 7677:   set x $ac_tag
 7678:   IFS=$ac_save_IFS
 7679:   shift
 7680:   ac_file=$1
 7681:   shift
 7682: 
 7683:   case $ac_mode in
 7684:   :L) ac_source=$1;;
 7685:   :[FH])
 7686:     ac_file_inputs=
 7687:     for ac_f
 7688:     do
 7689:       case $ac_f in
 7690:       -) ac_f="$ac_tmp/stdin";;
 7691:       *) # Look for the file first in the build tree, then in the source tree
 7692: 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 7693: 	 # because $ac_f cannot contain `:'.
 7694: 	 test -f "$ac_f" ||
 7695: 	   case $ac_f in
 7696: 	   [\\/$]*) false;;
 7697: 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 7698: 	   esac ||
 7699: 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 7700:       esac
 7701:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 7702:       as_fn_append ac_file_inputs " '$ac_f'"
 7703:     done
 7704: 
 7705:     # Let's still pretend it is `configure' which instantiates (i.e., don't
 7706:     # use $as_me), people would be surprised to read:
 7707:     #    /* config.h.  Generated by config.status.  */
 7708:     configure_input='Generated from '`
 7709: 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 7710: 	`' by configure.'
 7711:     if test x"$ac_file" != x-; then
 7712:       configure_input="$ac_file.  $configure_input"
 7713:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 7714: $as_echo "$as_me: creating $ac_file" >&6;}
 7715:     fi
 7716:     # Neutralize special characters interpreted by sed in replacement strings.
 7717:     case $configure_input in #(
 7718:     *\&* | *\|* | *\\* )
 7719:        ac_sed_conf_input=`$as_echo "$configure_input" |
 7720:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
 7721:     *) ac_sed_conf_input=$configure_input;;
 7722:     esac
 7723: 
 7724:     case $ac_tag in
 7725:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
 7726:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 7727:     esac
 7728:     ;;
 7729:   esac
 7730: 
 7731:   ac_dir=`$as_dirname -- "$ac_file" ||
 7732: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 7733: 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 7734: 	 X"$ac_file" : 'X\(//\)$' \| \
 7735: 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 7736: $as_echo X"$ac_file" |
 7737:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 7738: 	    s//\1/
 7739: 	    q
 7740: 	  }
 7741: 	  /^X\(\/\/\)[^/].*/{
 7742: 	    s//\1/
 7743: 	    q
 7744: 	  }
 7745: 	  /^X\(\/\/\)$/{
 7746: 	    s//\1/
 7747: 	    q
 7748: 	  }
 7749: 	  /^X\(\/\).*/{
 7750: 	    s//\1/
 7751: 	    q
 7752: 	  }
 7753: 	  s/.*/./; q'`
 7754:   as_dir="$ac_dir"; as_fn_mkdir_p
 7755:   ac_builddir=.
 7756: 
 7757: case "$ac_dir" in
 7758: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 7759: *)
 7760:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 7761:   # A ".." for each directory in $ac_dir_suffix.
 7762:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 7763:   case $ac_top_builddir_sub in
 7764:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 7765:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 7766:   esac ;;
 7767: esac
 7768: ac_abs_top_builddir=$ac_pwd
 7769: ac_abs_builddir=$ac_pwd$ac_dir_suffix
 7770: # for backward compatibility:
 7771: ac_top_builddir=$ac_top_build_prefix
 7772: 
 7773: case $srcdir in
 7774:   .)  # We are building in place.
 7775:     ac_srcdir=.
 7776:     ac_top_srcdir=$ac_top_builddir_sub
 7777:     ac_abs_top_srcdir=$ac_pwd ;;
 7778:   [\\/]* | ?:[\\/]* )  # Absolute name.
 7779:     ac_srcdir=$srcdir$ac_dir_suffix;
 7780:     ac_top_srcdir=$srcdir
 7781:     ac_abs_top_srcdir=$srcdir ;;
 7782:   *) # Relative name.
 7783:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 7784:     ac_top_srcdir=$ac_top_build_prefix$srcdir
 7785:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 7786: esac
 7787: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 7788: 
 7789: 
 7790:   case $ac_mode in
 7791:   :F)
 7792:   #
 7793:   # CONFIG_FILE
 7794:   #
 7795: 
 7796:   case $INSTALL in
 7797:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 7798:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 7799:   esac
 7800:   ac_MKDIR_P=$MKDIR_P
 7801:   case $MKDIR_P in
 7802:   [\\/$]* | ?:[\\/]* ) ;;
 7803:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 7804:   esac
 7805: _ACEOF
 7806: 
 7807: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 7808: # If the template does not know about datarootdir, expand it.
 7809: # FIXME: This hack should be removed a few years after 2.60.
 7810: ac_datarootdir_hack=; ac_datarootdir_seen=
 7811: ac_sed_dataroot='
 7812: /datarootdir/ {
 7813:   p
 7814:   q
 7815: }
 7816: /@datadir@/p
 7817: /@docdir@/p
 7818: /@infodir@/p
 7819: /@localedir@/p
 7820: /@mandir@/p'
 7821: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 7822: *datarootdir*) ac_datarootdir_seen=yes;;
 7823: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 7824:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 7825: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 7826: _ACEOF
 7827: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 7828:   ac_datarootdir_hack='
 7829:   s&@datadir@&$datadir&g
 7830:   s&@docdir@&$docdir&g
 7831:   s&@infodir@&$infodir&g
 7832:   s&@localedir@&$localedir&g
 7833:   s&@mandir@&$mandir&g
 7834:   s&\\\${datarootdir}&$datarootdir&g' ;;
 7835: esac
 7836: _ACEOF
 7837: 
 7838: # Neutralize VPATH when `$srcdir' = `.'.
 7839: # Shell code in configure.ac might set extrasub.
 7840: # FIXME: do we really want to maintain this feature?
 7841: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 7842: ac_sed_extra="$ac_vpsub
 7843: $extrasub
 7844: _ACEOF
 7845: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 7846: :t
 7847: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 7848: s|@configure_input@|$ac_sed_conf_input|;t t
 7849: s&@top_builddir@&$ac_top_builddir_sub&;t t
 7850: s&@top_build_prefix@&$ac_top_build_prefix&;t t
 7851: s&@srcdir@&$ac_srcdir&;t t
 7852: s&@abs_srcdir@&$ac_abs_srcdir&;t t
 7853: s&@top_srcdir@&$ac_top_srcdir&;t t
 7854: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 7855: s&@builddir@&$ac_builddir&;t t
 7856: s&@abs_builddir@&$ac_abs_builddir&;t t
 7857: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 7858: s&@INSTALL@&$ac_INSTALL&;t t
 7859: s&@MKDIR_P@&$ac_MKDIR_P&;t t
 7860: $ac_datarootdir_hack
 7861: "
 7862: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 7863:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 7864: 
 7865: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 7866:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 7867:   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
 7868:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
 7869:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 7870: which seems to be undefined.  Please make sure it is defined" >&5
 7871: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 7872: which seems to be undefined.  Please make sure it is defined" >&2;}
 7873: 
 7874:   rm -f "$ac_tmp/stdin"
 7875:   case $ac_file in
 7876:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 7877:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 7878:   esac \
 7879:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 7880:  ;;
 7881:   :H)
 7882:   #
 7883:   # CONFIG_HEADER
 7884:   #
 7885:   if test x"$ac_file" != x-; then
 7886:     {
 7887:       $as_echo "/* $configure_input  */" \
 7888:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 7889:     } >"$ac_tmp/config.h" \
 7890:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 7891:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 7892:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 7893: $as_echo "$as_me: $ac_file is unchanged" >&6;}
 7894:     else
 7895:       rm -f "$ac_file"
 7896:       mv "$ac_tmp/config.h" "$ac_file" \
 7897: 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
 7898:     fi
 7899:   else
 7900:     $as_echo "/* $configure_input  */" \
 7901:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 7902:       || as_fn_error $? "could not create -" "$LINENO" 5
 7903:   fi
 7904: # Compute "$ac_file"'s index in $config_headers.
 7905: _am_arg="$ac_file"
 7906: _am_stamp_count=1
 7907: for _am_header in $config_headers :; do
 7908:   case $_am_header in
 7909:     $_am_arg | $_am_arg:* )
 7910:       break ;;
 7911:     * )
 7912:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 7913:   esac
 7914: done
 7915: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 7916: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 7917: 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
 7918: 	 X"$_am_arg" : 'X\(//\)$' \| \
 7919: 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 7920: $as_echo X"$_am_arg" |
 7921:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 7922: 	    s//\1/
 7923: 	    q
 7924: 	  }
 7925: 	  /^X\(\/\/\)[^/].*/{
 7926: 	    s//\1/
 7927: 	    q
 7928: 	  }
 7929: 	  /^X\(\/\/\)$/{
 7930: 	    s//\1/
 7931: 	    q
 7932: 	  }
 7933: 	  /^X\(\/\).*/{
 7934: 	    s//\1/
 7935: 	    q
 7936: 	  }
 7937: 	  s/.*/./; q'`/stamp-h$_am_stamp_count
 7938:  ;;
 7939: 
 7940:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 7941: $as_echo "$as_me: executing $ac_file commands" >&6;}
 7942:  ;;
 7943:   esac
 7944: 
 7945: 
 7946:   case $ac_file$ac_mode in
 7947:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 7948:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
 7949:   # are listed without --file.  Let's play safe and only enable the eval
 7950:   # if we detect the quoting.
 7951:   case $CONFIG_FILES in
 7952:   *\'*) eval set x "$CONFIG_FILES" ;;
 7953:   *)   set x $CONFIG_FILES ;;
 7954:   esac
 7955:   shift
 7956:   for mf
 7957:   do
 7958:     # Strip MF so we end up with the name of the file.
 7959:     mf=`echo "$mf" | sed -e 's/:.*$//'`
 7960:     # Check whether this is an Automake generated Makefile or not.
 7961:     # We used to match only the files named 'Makefile.in', but
 7962:     # some people rename them; so instead we look at the file content.
 7963:     # Grep'ing the first line is not enough: some people post-process
 7964:     # each Makefile.in and add a new line on top of each file to say so.
 7965:     # Grep'ing the whole file is not good either: AIX grep has a line
 7966:     # limit of 2048, but all sed's we know have understand at least 4000.
 7967:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 7968:       dirpart=`$as_dirname -- "$mf" ||
 7969: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 7970: 	 X"$mf" : 'X\(//\)[^/]' \| \
 7971: 	 X"$mf" : 'X\(//\)$' \| \
 7972: 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 7973: $as_echo X"$mf" |
 7974:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 7975: 	    s//\1/
 7976: 	    q
 7977: 	  }
 7978: 	  /^X\(\/\/\)[^/].*/{
 7979: 	    s//\1/
 7980: 	    q
 7981: 	  }
 7982: 	  /^X\(\/\/\)$/{
 7983: 	    s//\1/
 7984: 	    q
 7985: 	  }
 7986: 	  /^X\(\/\).*/{
 7987: 	    s//\1/
 7988: 	    q
 7989: 	  }
 7990: 	  s/.*/./; q'`
 7991:     else
 7992:       continue
 7993:     fi
 7994:     # Extract the definition of DEPDIR, am__include, and am__quote
 7995:     # from the Makefile without running 'make'.
 7996:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 7997:     test -z "$DEPDIR" && continue
 7998:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
 7999:     test -z "am__include" && continue
 8000:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 8001:     # Find all dependency output files, they are included files with
 8002:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
 8003:     # simplest approach to changing $(DEPDIR) to its actual value in the
 8004:     # expansion.
 8005:     for file in `sed -n "
 8006:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 8007: 	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
 8008:       # Make sure the directory exists.
 8009:       test -f "$dirpart/$file" && continue
 8010:       fdir=`$as_dirname -- "$file" ||
 8011: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 8012: 	 X"$file" : 'X\(//\)[^/]' \| \
 8013: 	 X"$file" : 'X\(//\)$' \| \
 8014: 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 8015: $as_echo X"$file" |
 8016:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 8017: 	    s//\1/
 8018: 	    q
 8019: 	  }
 8020: 	  /^X\(\/\/\)[^/].*/{
 8021: 	    s//\1/
 8022: 	    q
 8023: 	  }
 8024: 	  /^X\(\/\/\)$/{
 8025: 	    s//\1/
 8026: 	    q
 8027: 	  }
 8028: 	  /^X\(\/\).*/{
 8029: 	    s//\1/
 8030: 	    q
 8031: 	  }
 8032: 	  s/.*/./; q'`
 8033:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
 8034:       # echo "creating $dirpart/$file"
 8035:       echo '# dummy' > "$dirpart/$file"
 8036:     done
 8037:   done
 8038: }
 8039:  ;;
 8040: 
 8041:   esac
 8042: done # for ac_tag
 8043: 
 8044: 
 8045: as_fn_exit 0
 8046: _ACEOF
 8047: ac_clean_files=$ac_clean_files_save
 8048: 
 8049: test $ac_write_fail = 0 ||
 8050:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 8051: 
 8052: 
 8053: # configure is writing to config.log, and then calls config.status.
 8054: # config.status does its own redirection, appending to config.log.
 8055: # Unfortunately, on DOS this fails, as config.log is still kept open
 8056: # by configure, so config.status won't be able to write to it; its
 8057: # output is simply discarded.  So we exec the FD to /dev/null,
 8058: # effectively closing config.log, so it can be properly (re)opened and
 8059: # appended to by config.status.  When coming back to configure, we
 8060: # need to make the FD available again.
 8061: if test "$no_create" != yes; then
 8062:   ac_cs_success=:
 8063:   ac_config_status_args=
 8064:   test "$silent" = yes &&
 8065:     ac_config_status_args="$ac_config_status_args --quiet"
 8066:   exec 5>/dev/null
 8067:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 8068:   exec 5>>config.log
 8069:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 8070:   # would make configure fail if this is the last instruction.
 8071:   $ac_cs_success || as_fn_exit 1
 8072: fi
 8073: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 8074:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 8075: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 8076: fi
 8077: 
 8078: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 8079: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 8080: set x ${MAKE-make}
 8081: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 8082: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 8083:   $as_echo_n "(cached) " >&6
 8084: else
 8085:   cat >conftest.make <<\_ACEOF
 8086: SHELL = /bin/sh
 8087: all:
 8088: 	@echo '@@@%%%=$(MAKE)=@@@%%%'
 8089: _ACEOF
 8090: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 8091: case `${MAKE-make} -f conftest.make 2>/dev/null` in
 8092:   *@@@%%%=?*=@@@%%%*)
 8093:     eval ac_cv_prog_make_${ac_make}_set=yes;;
 8094:   *)
 8095:     eval ac_cv_prog_make_${ac_make}_set=no;;
 8096: esac
 8097: rm -f conftest.make
 8098: fi
 8099: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 8100:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 8101: $as_echo "yes" >&6; }
 8102:   SET_MAKE=
 8103: else
 8104:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8105: $as_echo "no" >&6; }
 8106:   SET_MAKE="MAKE=${MAKE-make}"
 8107: fi
 8108: 
 8109: 
 8110: echo "-----------------------------------------------------------------------------" >&6
 8111: echo "${PACKAGE}-${VERSION} configuration:" >&6
 8112: echo "host operating system:  $host" >&6
 8113: echo "C++ compiler:           $CXX" >&6
 8114: echo "C compiler:             $CC" >&6
 8115: echo "preprocessor flags:     $CPPFLAGS" >&6
 8116: echo "C++ compiler flags:     $CXXFLAGS" >&6
 8117: echo "C compiler flags:       $CFLAGS" >&6
 8118: echo "linker flags:           $LDFLAGS" >&6
 8119: echo "OS specific modules:    $os_deps $os_libs $LIBS" >&6
 8120: 
 8121: case "$host_os" in
 8122:   mingw*)
 8123:     echo "resource compiler:      $WINDRES" >&6
 8124:     echo "message compiler:       $WINDMC" >&6
 8125:     echo "NSIS compiler:          $MAKENSIS" >&6
 8126:     if test -n "$drivedbdir"; then
 8127:       echo "drive database file:    EXEDIR/drivedb.h" >&6
 8128:       if test -n "$MAKENSIS"; then
 8129:         echo "database update tool:   EXEDIR/update-smart-drivedb.exe" >&6
 8130:       fi
 8131:     else
 8132:       echo "drive database file:    [disabled]" >&6
 8133:     fi
 8134:     if test -n "$savestates"; then
 8135:       echo "smartd save files:      `eval eval eval echo $savestates`MODEL-SERIAL.TYPE.state" >&6
 8136:     fi
 8137:     if test -n "$attributelog"; then
 8138:       echo "smartd attribute logs:  `eval eval eval echo $attributelog`MODEL-SERIAL.TYPE.csv" >&6
 8139:     fi
 8140:     ;;
 8141: 
 8142:   *)
 8143:     echo "binary install path:    `eval eval eval echo $sbindir`" >&6
 8144:     echo "man page install path:  `eval eval eval echo $mandir`" >&6
 8145:     echo "doc file install path:  `eval eval eval echo $docdir`" >&6
 8146:     echo "examples install path:  `eval eval eval echo $exampledir`" >&6
 8147:     if test -n "$drivedbdir"; then
 8148:       echo "drive database file:    `eval eval eval echo $drivedbdir`/drivedb.h" >&6
 8149:       echo "database update script: `eval eval eval echo $sbindir`/update-smart-drivedb" >&6
 8150:       echo "download tools:         `eval eval eval echo $os_dltools`" >&6
 8151:     else
 8152:       echo "drive database file:    [disabled]" >&6
 8153:     fi
 8154:     echo "local drive database:   `eval eval eval echo $sysconfdir`/smart_drivedb.h" >&6
 8155:     echo "smartd config file:     `eval eval eval echo $sysconfdir`/smartd.conf${smartd_suffix}" >&6
 8156:     echo "smartd warning script:  `eval eval eval echo $sysconfdir`/smartd_warning.sh" >&6
 8157:     if test -n "$initddir"; then
 8158:       echo "smartd initd script:    `eval eval eval echo $initddir`/smartd${smartd_suffix}" >&6
 8159:     elif test -z "$systemdsystemunitdir"; then
 8160:       echo "smartd initd script:    [disabled]" >&6
 8161:     fi
 8162:     if test -n "$systemdsystemunitdir"; then
 8163:       echo "smartd systemd file:    `eval eval eval echo $systemdsystemunitdir`/smartd.service" >&6
 8164:     fi
 8165:     if test -n "$savestates"; then
 8166:       echo "smartd save files:      `eval eval eval echo $savestates`MODEL-SERIAL.TYPE.state" >&6
 8167:     else
 8168:       echo "smartd save files:      [disabled]" >&6
 8169:     fi
 8170:     if test -n "$attributelog"; then
 8171:       echo "smartd attribute logs:  `eval eval eval echo $attributelog`MODEL-SERIAL.TYPE.csv" >&6
 8172:     else
 8173:       echo "smartd attribute logs:  [disabled]" >&6
 8174:     fi
 8175:     echo "libcap-ng support:      $use_libcap_ng" >&6
 8176:     case "$host_os" in
 8177:       linux*) echo "SELinux support:        ${with_selinux-no}" >&6 ;;
 8178:     esac
 8179:     ;;
 8180: esac
 8181: echo "-----------------------------------------------------------------------------" >&6

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