File:  [ELWIX - Embedded LightWeight unIX -] / mqtt / configure
Revision 1.3.2.1: download - view: text, annotated - select for diffs - revision graph
Fri Jan 18 09:45:34 2013 UTC (11 years, 5 months ago) by misho
Branches: mqtt2_0
Diff to: branchpoint 1.3: preferred, unified
new ver 2.0

    1: #! /bin/sh
    2: # Guess values for system-dependent variables and create Makefiles.
    3: # Generated by GNU Autoconf 2.69 for mqtt 2.0.
    4: #
    5: # Report bugs to <misho@elwix.org>.
    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 misho@elwix.org
  270: $0: about your system, including any error possibly output
  271: $0: before this message. Then install a modern shell, or
  272: $0: manually run the script under such a shell if you do
  273: $0: 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='mqtt'
  582: PACKAGE_TARNAME='mqtt'
  583: PACKAGE_VERSION='2.0'
  584: PACKAGE_STRING='mqtt 2.0'
  585: PACKAGE_BUGREPORT='misho@elwix.org'
  586: PACKAGE_URL=''
  587: 
  588: ac_unique_file="src/mqttd.c"
  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_header_list=
  626: ac_subst_vars='LTLIBOBJS
  627: SQLITE3DIR
  628: LIBOBJS
  629: EGREP
  630: GREP
  631: CPP
  632: MKDEP
  633: target_os
  634: target_vendor
  635: target_cpu
  636: target
  637: host_os
  638: host_vendor
  639: host_cpu
  640: host
  641: build_os
  642: build_vendor
  643: build_cpu
  644: build
  645: INSTALL_DATA
  646: INSTALL_SCRIPT
  647: INSTALL_PROGRAM
  648: RANLIB
  649: OBJEXT
  650: EXEEXT
  651: ac_ct_CC
  652: CPPFLAGS
  653: LDFLAGS
  654: CFLAGS
  655: CC
  656: target_alias
  657: host_alias
  658: build_alias
  659: LIBS
  660: ECHO_T
  661: ECHO_N
  662: ECHO_C
  663: DEFS
  664: mandir
  665: localedir
  666: libdir
  667: psdir
  668: pdfdir
  669: dvidir
  670: htmldir
  671: infodir
  672: docdir
  673: oldincludedir
  674: includedir
  675: localstatedir
  676: sharedstatedir
  677: sysconfdir
  678: datadir
  679: datarootdir
  680: libexecdir
  681: sbindir
  682: bindir
  683: program_transform_name
  684: prefix
  685: exec_prefix
  686: PACKAGE_URL
  687: PACKAGE_BUGREPORT
  688: PACKAGE_STRING
  689: PACKAGE_VERSION
  690: PACKAGE_TARNAME
  691: PACKAGE_NAME
  692: PATH_SEPARATOR
  693: SHELL'
  694: ac_subst_files=''
  695: ac_user_opts='
  696: enable_option_checking
  697: enable_debug
  698: with_sqlite3dir
  699: '
  700:       ac_precious_vars='build_alias
  701: host_alias
  702: target_alias
  703: CC
  704: CFLAGS
  705: LDFLAGS
  706: LIBS
  707: CPPFLAGS
  708: CPP'
  709: 
  710: 
  711: # Initialize some variables set by options.
  712: ac_init_help=
  713: ac_init_version=false
  714: ac_unrecognized_opts=
  715: ac_unrecognized_sep=
  716: # The variables have the same names as the options, with
  717: # dashes changed to underlines.
  718: cache_file=/dev/null
  719: exec_prefix=NONE
  720: no_create=
  721: no_recursion=
  722: prefix=NONE
  723: program_prefix=NONE
  724: program_suffix=NONE
  725: program_transform_name=s,x,x,
  726: silent=
  727: site=
  728: srcdir=
  729: verbose=
  730: x_includes=NONE
  731: x_libraries=NONE
  732: 
  733: # Installation directory options.
  734: # These are left unexpanded so users can "make install exec_prefix=/foo"
  735: # and all the variables that are supposed to be based on exec_prefix
  736: # by default will actually change.
  737: # Use braces instead of parens because sh, perl, etc. also accept them.
  738: # (The list follows the same order as the GNU Coding Standards.)
  739: bindir='${exec_prefix}/bin'
  740: sbindir='${exec_prefix}/sbin'
  741: libexecdir='${exec_prefix}/libexec'
  742: datarootdir='${prefix}/share'
  743: datadir='${datarootdir}'
  744: sysconfdir='${prefix}/etc'
  745: sharedstatedir='${prefix}/com'
  746: localstatedir='${prefix}/var'
  747: includedir='${prefix}/include'
  748: oldincludedir='/usr/include'
  749: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  750: infodir='${datarootdir}/info'
  751: htmldir='${docdir}'
  752: dvidir='${docdir}'
  753: pdfdir='${docdir}'
  754: psdir='${docdir}'
  755: libdir='${exec_prefix}/lib'
  756: localedir='${datarootdir}/locale'
  757: mandir='${datarootdir}/man'
  758: 
  759: ac_prev=
  760: ac_dashdash=
  761: for ac_option
  762: do
  763:   # If the previous option needs an argument, assign it.
  764:   if test -n "$ac_prev"; then
  765:     eval $ac_prev=\$ac_option
  766:     ac_prev=
  767:     continue
  768:   fi
  769: 
  770:   case $ac_option in
  771:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  772:   *=)   ac_optarg= ;;
  773:   *)    ac_optarg=yes ;;
  774:   esac
  775: 
  776:   # Accept the important Cygnus configure options, so we can diagnose typos.
  777: 
  778:   case $ac_dashdash$ac_option in
  779:   --)
  780:     ac_dashdash=yes ;;
  781: 
  782:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  783:     ac_prev=bindir ;;
  784:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  785:     bindir=$ac_optarg ;;
  786: 
  787:   -build | --build | --buil | --bui | --bu)
  788:     ac_prev=build_alias ;;
  789:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  790:     build_alias=$ac_optarg ;;
  791: 
  792:   -cache-file | --cache-file | --cache-fil | --cache-fi \
  793:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  794:     ac_prev=cache_file ;;
  795:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  796:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  797:     cache_file=$ac_optarg ;;
  798: 
  799:   --config-cache | -C)
  800:     cache_file=config.cache ;;
  801: 
  802:   -datadir | --datadir | --datadi | --datad)
  803:     ac_prev=datadir ;;
  804:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  805:     datadir=$ac_optarg ;;
  806: 
  807:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  808:   | --dataroo | --dataro | --datar)
  809:     ac_prev=datarootdir ;;
  810:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  811:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  812:     datarootdir=$ac_optarg ;;
  813: 
  814:   -disable-* | --disable-*)
  815:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  816:     # Reject names that are not valid shell variable names.
  817:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  818:       as_fn_error $? "invalid feature name: $ac_useropt"
  819:     ac_useropt_orig=$ac_useropt
  820:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  821:     case $ac_user_opts in
  822:       *"
  823: "enable_$ac_useropt"
  824: "*) ;;
  825:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  826: 	 ac_unrecognized_sep=', ';;
  827:     esac
  828:     eval enable_$ac_useropt=no ;;
  829: 
  830:   -docdir | --docdir | --docdi | --doc | --do)
  831:     ac_prev=docdir ;;
  832:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  833:     docdir=$ac_optarg ;;
  834: 
  835:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  836:     ac_prev=dvidir ;;
  837:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  838:     dvidir=$ac_optarg ;;
  839: 
  840:   -enable-* | --enable-*)
  841:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  842:     # Reject names that are not valid shell variable names.
  843:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  844:       as_fn_error $? "invalid feature name: $ac_useropt"
  845:     ac_useropt_orig=$ac_useropt
  846:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  847:     case $ac_user_opts in
  848:       *"
  849: "enable_$ac_useropt"
  850: "*) ;;
  851:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  852: 	 ac_unrecognized_sep=', ';;
  853:     esac
  854:     eval enable_$ac_useropt=\$ac_optarg ;;
  855: 
  856:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  857:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  858:   | --exec | --exe | --ex)
  859:     ac_prev=exec_prefix ;;
  860:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  861:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  862:   | --exec=* | --exe=* | --ex=*)
  863:     exec_prefix=$ac_optarg ;;
  864: 
  865:   -gas | --gas | --ga | --g)
  866:     # Obsolete; use --with-gas.
  867:     with_gas=yes ;;
  868: 
  869:   -help | --help | --hel | --he | -h)
  870:     ac_init_help=long ;;
  871:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  872:     ac_init_help=recursive ;;
  873:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  874:     ac_init_help=short ;;
  875: 
  876:   -host | --host | --hos | --ho)
  877:     ac_prev=host_alias ;;
  878:   -host=* | --host=* | --hos=* | --ho=*)
  879:     host_alias=$ac_optarg ;;
  880: 
  881:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  882:     ac_prev=htmldir ;;
  883:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  884:   | --ht=*)
  885:     htmldir=$ac_optarg ;;
  886: 
  887:   -includedir | --includedir | --includedi | --included | --include \
  888:   | --includ | --inclu | --incl | --inc)
  889:     ac_prev=includedir ;;
  890:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  891:   | --includ=* | --inclu=* | --incl=* | --inc=*)
  892:     includedir=$ac_optarg ;;
  893: 
  894:   -infodir | --infodir | --infodi | --infod | --info | --inf)
  895:     ac_prev=infodir ;;
  896:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  897:     infodir=$ac_optarg ;;
  898: 
  899:   -libdir | --libdir | --libdi | --libd)
  900:     ac_prev=libdir ;;
  901:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  902:     libdir=$ac_optarg ;;
  903: 
  904:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  905:   | --libexe | --libex | --libe)
  906:     ac_prev=libexecdir ;;
  907:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  908:   | --libexe=* | --libex=* | --libe=*)
  909:     libexecdir=$ac_optarg ;;
  910: 
  911:   -localedir | --localedir | --localedi | --localed | --locale)
  912:     ac_prev=localedir ;;
  913:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  914:     localedir=$ac_optarg ;;
  915: 
  916:   -localstatedir | --localstatedir | --localstatedi | --localstated \
  917:   | --localstate | --localstat | --localsta | --localst | --locals)
  918:     ac_prev=localstatedir ;;
  919:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  920:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  921:     localstatedir=$ac_optarg ;;
  922: 
  923:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  924:     ac_prev=mandir ;;
  925:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  926:     mandir=$ac_optarg ;;
  927: 
  928:   -nfp | --nfp | --nf)
  929:     # Obsolete; use --without-fp.
  930:     with_fp=no ;;
  931: 
  932:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  933:   | --no-cr | --no-c | -n)
  934:     no_create=yes ;;
  935: 
  936:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  937:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  938:     no_recursion=yes ;;
  939: 
  940:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  941:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  942:   | --oldin | --oldi | --old | --ol | --o)
  943:     ac_prev=oldincludedir ;;
  944:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  945:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  946:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  947:     oldincludedir=$ac_optarg ;;
  948: 
  949:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  950:     ac_prev=prefix ;;
  951:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  952:     prefix=$ac_optarg ;;
  953: 
  954:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  955:   | --program-pre | --program-pr | --program-p)
  956:     ac_prev=program_prefix ;;
  957:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  958:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  959:     program_prefix=$ac_optarg ;;
  960: 
  961:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  962:   | --program-suf | --program-su | --program-s)
  963:     ac_prev=program_suffix ;;
  964:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  965:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  966:     program_suffix=$ac_optarg ;;
  967: 
  968:   -program-transform-name | --program-transform-name \
  969:   | --program-transform-nam | --program-transform-na \
  970:   | --program-transform-n | --program-transform- \
  971:   | --program-transform | --program-transfor \
  972:   | --program-transfo | --program-transf \
  973:   | --program-trans | --program-tran \
  974:   | --progr-tra | --program-tr | --program-t)
  975:     ac_prev=program_transform_name ;;
  976:   -program-transform-name=* | --program-transform-name=* \
  977:   | --program-transform-nam=* | --program-transform-na=* \
  978:   | --program-transform-n=* | --program-transform-=* \
  979:   | --program-transform=* | --program-transfor=* \
  980:   | --program-transfo=* | --program-transf=* \
  981:   | --program-trans=* | --program-tran=* \
  982:   | --progr-tra=* | --program-tr=* | --program-t=*)
  983:     program_transform_name=$ac_optarg ;;
  984: 
  985:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  986:     ac_prev=pdfdir ;;
  987:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  988:     pdfdir=$ac_optarg ;;
  989: 
  990:   -psdir | --psdir | --psdi | --psd | --ps)
  991:     ac_prev=psdir ;;
  992:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  993:     psdir=$ac_optarg ;;
  994: 
  995:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  996:   | -silent | --silent | --silen | --sile | --sil)
  997:     silent=yes ;;
  998: 
  999:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1000:     ac_prev=sbindir ;;
 1001:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1002:   | --sbi=* | --sb=*)
 1003:     sbindir=$ac_optarg ;;
 1004: 
 1005:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1006:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1007:   | --sharedst | --shareds | --shared | --share | --shar \
 1008:   | --sha | --sh)
 1009:     ac_prev=sharedstatedir ;;
 1010:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1011:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1012:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1013:   | --sha=* | --sh=*)
 1014:     sharedstatedir=$ac_optarg ;;
 1015: 
 1016:   -site | --site | --sit)
 1017:     ac_prev=site ;;
 1018:   -site=* | --site=* | --sit=*)
 1019:     site=$ac_optarg ;;
 1020: 
 1021:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1022:     ac_prev=srcdir ;;
 1023:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1024:     srcdir=$ac_optarg ;;
 1025: 
 1026:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1027:   | --syscon | --sysco | --sysc | --sys | --sy)
 1028:     ac_prev=sysconfdir ;;
 1029:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1030:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1031:     sysconfdir=$ac_optarg ;;
 1032: 
 1033:   -target | --target | --targe | --targ | --tar | --ta | --t)
 1034:     ac_prev=target_alias ;;
 1035:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1036:     target_alias=$ac_optarg ;;
 1037: 
 1038:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1039:     verbose=yes ;;
 1040: 
 1041:   -version | --version | --versio | --versi | --vers | -V)
 1042:     ac_init_version=: ;;
 1043: 
 1044:   -with-* | --with-*)
 1045:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1046:     # Reject names that are not valid shell variable names.
 1047:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1048:       as_fn_error $? "invalid package name: $ac_useropt"
 1049:     ac_useropt_orig=$ac_useropt
 1050:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1051:     case $ac_user_opts in
 1052:       *"
 1053: "with_$ac_useropt"
 1054: "*) ;;
 1055:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1056: 	 ac_unrecognized_sep=', ';;
 1057:     esac
 1058:     eval with_$ac_useropt=\$ac_optarg ;;
 1059: 
 1060:   -without-* | --without-*)
 1061:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1062:     # Reject names that are not valid shell variable names.
 1063:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1064:       as_fn_error $? "invalid package name: $ac_useropt"
 1065:     ac_useropt_orig=$ac_useropt
 1066:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1067:     case $ac_user_opts in
 1068:       *"
 1069: "with_$ac_useropt"
 1070: "*) ;;
 1071:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1072: 	 ac_unrecognized_sep=', ';;
 1073:     esac
 1074:     eval with_$ac_useropt=no ;;
 1075: 
 1076:   --x)
 1077:     # Obsolete; use --with-x.
 1078:     with_x=yes ;;
 1079: 
 1080:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1081:   | --x-incl | --x-inc | --x-in | --x-i)
 1082:     ac_prev=x_includes ;;
 1083:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1084:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1085:     x_includes=$ac_optarg ;;
 1086: 
 1087:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1088:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1089:     ac_prev=x_libraries ;;
 1090:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1091:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1092:     x_libraries=$ac_optarg ;;
 1093: 
 1094:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1095: Try \`$0 --help' for more information"
 1096:     ;;
 1097: 
 1098:   *=*)
 1099:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1100:     # Reject names that are not valid shell variable names.
 1101:     case $ac_envvar in #(
 1102:       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1103:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1104:     esac
 1105:     eval $ac_envvar=\$ac_optarg
 1106:     export $ac_envvar ;;
 1107: 
 1108:   *)
 1109:     # FIXME: should be removed in autoconf 3.0.
 1110:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1111:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1112:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1113:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1114:     ;;
 1115: 
 1116:   esac
 1117: done
 1118: 
 1119: if test -n "$ac_prev"; then
 1120:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1121:   as_fn_error $? "missing argument to $ac_option"
 1122: fi
 1123: 
 1124: if test -n "$ac_unrecognized_opts"; then
 1125:   case $enable_option_checking in
 1126:     no) ;;
 1127:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1128:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1129:   esac
 1130: fi
 1131: 
 1132: # Check all directory arguments for consistency.
 1133: for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1134: 		datadir sysconfdir sharedstatedir localstatedir includedir \
 1135: 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1136: 		libdir localedir mandir
 1137: do
 1138:   eval ac_val=\$$ac_var
 1139:   # Remove trailing slashes.
 1140:   case $ac_val in
 1141:     */ )
 1142:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1143:       eval $ac_var=\$ac_val;;
 1144:   esac
 1145:   # Be sure to have absolute directory names.
 1146:   case $ac_val in
 1147:     [\\/$]* | ?:[\\/]* )  continue;;
 1148:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1149:   esac
 1150:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1151: done
 1152: 
 1153: # There might be people who depend on the old broken behavior: `$host'
 1154: # used to hold the argument of --host etc.
 1155: # FIXME: To remove some day.
 1156: build=$build_alias
 1157: host=$host_alias
 1158: target=$target_alias
 1159: 
 1160: # FIXME: To remove some day.
 1161: if test "x$host_alias" != x; then
 1162:   if test "x$build_alias" = x; then
 1163:     cross_compiling=maybe
 1164:   elif test "x$build_alias" != "x$host_alias"; then
 1165:     cross_compiling=yes
 1166:   fi
 1167: fi
 1168: 
 1169: ac_tool_prefix=
 1170: test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1171: 
 1172: test "$silent" = yes && exec 6>/dev/null
 1173: 
 1174: 
 1175: ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1176: ac_ls_di=`ls -di .` &&
 1177: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1178:   as_fn_error $? "working directory cannot be determined"
 1179: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1180:   as_fn_error $? "pwd does not report name of working directory"
 1181: 
 1182: 
 1183: # Find the source files, if location was not specified.
 1184: if test -z "$srcdir"; then
 1185:   ac_srcdir_defaulted=yes
 1186:   # Try the directory containing this script, then the parent directory.
 1187:   ac_confdir=`$as_dirname -- "$as_myself" ||
 1188: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1189: 	 X"$as_myself" : 'X\(//\)[^/]' \| \
 1190: 	 X"$as_myself" : 'X\(//\)$' \| \
 1191: 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1192: $as_echo X"$as_myself" |
 1193:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1194: 	    s//\1/
 1195: 	    q
 1196: 	  }
 1197: 	  /^X\(\/\/\)[^/].*/{
 1198: 	    s//\1/
 1199: 	    q
 1200: 	  }
 1201: 	  /^X\(\/\/\)$/{
 1202: 	    s//\1/
 1203: 	    q
 1204: 	  }
 1205: 	  /^X\(\/\).*/{
 1206: 	    s//\1/
 1207: 	    q
 1208: 	  }
 1209: 	  s/.*/./; q'`
 1210:   srcdir=$ac_confdir
 1211:   if test ! -r "$srcdir/$ac_unique_file"; then
 1212:     srcdir=..
 1213:   fi
 1214: else
 1215:   ac_srcdir_defaulted=no
 1216: fi
 1217: if test ! -r "$srcdir/$ac_unique_file"; then
 1218:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1219:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1220: fi
 1221: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1222: ac_abs_confdir=`(
 1223: 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1224: 	pwd)`
 1225: # When building in place, set srcdir=.
 1226: if test "$ac_abs_confdir" = "$ac_pwd"; then
 1227:   srcdir=.
 1228: fi
 1229: # Remove unnecessary trailing slashes from srcdir.
 1230: # Double slashes in file names in object file debugging info
 1231: # mess up M-x gdb in Emacs.
 1232: case $srcdir in
 1233: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1234: esac
 1235: for ac_var in $ac_precious_vars; do
 1236:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1237:   eval ac_env_${ac_var}_value=\$${ac_var}
 1238:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1239:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1240: done
 1241: 
 1242: #
 1243: # Report the --help message.
 1244: #
 1245: if test "$ac_init_help" = "long"; then
 1246:   # Omit some internal or obsolete options to make the list less imposing.
 1247:   # This message is too long to be a string in the A/UX 3.1 sh.
 1248:   cat <<_ACEOF
 1249: \`configure' configures mqtt 2.0 to adapt to many kinds of systems.
 1250: 
 1251: Usage: $0 [OPTION]... [VAR=VALUE]...
 1252: 
 1253: To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1254: VAR=VALUE.  See below for descriptions of some of the useful variables.
 1255: 
 1256: Defaults for the options are specified in brackets.
 1257: 
 1258: Configuration:
 1259:   -h, --help              display this help and exit
 1260:       --help=short        display options specific to this package
 1261:       --help=recursive    display the short help of all the included packages
 1262:   -V, --version           display version information and exit
 1263:   -q, --quiet, --silent   do not print \`checking ...' messages
 1264:       --cache-file=FILE   cache test results in FILE [disabled]
 1265:   -C, --config-cache      alias for \`--cache-file=config.cache'
 1266:   -n, --no-create         do not create output files
 1267:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1268: 
 1269: Installation directories:
 1270:   --prefix=PREFIX         install architecture-independent files in PREFIX
 1271:                           [$ac_default_prefix]
 1272:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1273:                           [PREFIX]
 1274: 
 1275: By default, \`make install' will install all the files in
 1276: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1277: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1278: for instance \`--prefix=\$HOME'.
 1279: 
 1280: For better control, use the options below.
 1281: 
 1282: Fine tuning of the installation directories:
 1283:   --bindir=DIR            user executables [EPREFIX/bin]
 1284:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1285:   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1286:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 1287:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1288:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1289:   --libdir=DIR            object code libraries [EPREFIX/lib]
 1290:   --includedir=DIR        C header files [PREFIX/include]
 1291:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1292:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1293:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1294:   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1295:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1296:   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1297:   --docdir=DIR            documentation root [DATAROOTDIR/doc/mqtt]
 1298:   --htmldir=DIR           html documentation [DOCDIR]
 1299:   --dvidir=DIR            dvi documentation [DOCDIR]
 1300:   --pdfdir=DIR            pdf documentation [DOCDIR]
 1301:   --psdir=DIR             ps documentation [DOCDIR]
 1302: _ACEOF
 1303: 
 1304:   cat <<\_ACEOF
 1305: 
 1306: System types:
 1307:   --build=BUILD     configure for building on BUILD [guessed]
 1308:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 1309:   --target=TARGET   configure for building compilers for TARGET [HOST]
 1310: _ACEOF
 1311: fi
 1312: 
 1313: if test -n "$ac_init_help"; then
 1314:   case $ac_init_help in
 1315:      short | recursive ) echo "Configuration of mqtt 2.0:";;
 1316:    esac
 1317:   cat <<\_ACEOF
 1318: 
 1319: Optional Features:
 1320:   --disable-option-checking  ignore unrecognized --enable/--with options
 1321:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1322:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1323:   --enable-debug          Build library with debug information and additional messages
 1324: 
 1325: Optional Packages:
 1326:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1327:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1328:   --with-sqlite3dir=<dir> Custom SQLite3 install directory
 1329: 
 1330: Some influential environment variables:
 1331:   CC          C compiler command
 1332:   CFLAGS      C compiler flags
 1333:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 1334:               nonstandard directory <lib dir>
 1335:   LIBS        libraries to pass to the linker, e.g. -l<library>
 1336:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 1337:               you have headers in a nonstandard directory <include dir>
 1338:   CPP         C preprocessor
 1339: 
 1340: Use these variables to override the choices made by `configure' or to help
 1341: it to find libraries and programs with nonstandard names/locations.
 1342: 
 1343: Report bugs to <misho@elwix.org>.
 1344: _ACEOF
 1345: ac_status=$?
 1346: fi
 1347: 
 1348: if test "$ac_init_help" = "recursive"; then
 1349:   # If there are subdirs, report their specific --help.
 1350:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1351:     test -d "$ac_dir" ||
 1352:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1353:       continue
 1354:     ac_builddir=.
 1355: 
 1356: case "$ac_dir" in
 1357: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1358: *)
 1359:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1360:   # A ".." for each directory in $ac_dir_suffix.
 1361:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1362:   case $ac_top_builddir_sub in
 1363:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1364:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1365:   esac ;;
 1366: esac
 1367: ac_abs_top_builddir=$ac_pwd
 1368: ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1369: # for backward compatibility:
 1370: ac_top_builddir=$ac_top_build_prefix
 1371: 
 1372: case $srcdir in
 1373:   .)  # We are building in place.
 1374:     ac_srcdir=.
 1375:     ac_top_srcdir=$ac_top_builddir_sub
 1376:     ac_abs_top_srcdir=$ac_pwd ;;
 1377:   [\\/]* | ?:[\\/]* )  # Absolute name.
 1378:     ac_srcdir=$srcdir$ac_dir_suffix;
 1379:     ac_top_srcdir=$srcdir
 1380:     ac_abs_top_srcdir=$srcdir ;;
 1381:   *) # Relative name.
 1382:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1383:     ac_top_srcdir=$ac_top_build_prefix$srcdir
 1384:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1385: esac
 1386: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1387: 
 1388:     cd "$ac_dir" || { ac_status=$?; continue; }
 1389:     # Check for guested configure.
 1390:     if test -f "$ac_srcdir/configure.gnu"; then
 1391:       echo &&
 1392:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1393:     elif test -f "$ac_srcdir/configure"; then
 1394:       echo &&
 1395:       $SHELL "$ac_srcdir/configure" --help=recursive
 1396:     else
 1397:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1398:     fi || ac_status=$?
 1399:     cd "$ac_pwd" || { ac_status=$?; break; }
 1400:   done
 1401: fi
 1402: 
 1403: test -n "$ac_init_help" && exit $ac_status
 1404: if $ac_init_version; then
 1405:   cat <<\_ACEOF
 1406: mqtt configure 2.0
 1407: generated by GNU Autoconf 2.69
 1408: 
 1409: Copyright (C) 2012 Free Software Foundation, Inc.
 1410: This configure script is free software; the Free Software Foundation
 1411: gives unlimited permission to copy, distribute and modify it.
 1412: _ACEOF
 1413:   exit
 1414: fi
 1415: 
 1416: ## ------------------------ ##
 1417: ## Autoconf initialization. ##
 1418: ## ------------------------ ##
 1419: 
 1420: # ac_fn_c_try_compile LINENO
 1421: # --------------------------
 1422: # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1423: ac_fn_c_try_compile ()
 1424: {
 1425:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1426:   rm -f conftest.$ac_objext
 1427:   if { { ac_try="$ac_compile"
 1428: case "(($ac_try" in
 1429:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1430:   *) ac_try_echo=$ac_try;;
 1431: esac
 1432: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1433: $as_echo "$ac_try_echo"; } >&5
 1434:   (eval "$ac_compile") 2>conftest.err
 1435:   ac_status=$?
 1436:   if test -s conftest.err; then
 1437:     grep -v '^ *+' conftest.err >conftest.er1
 1438:     cat conftest.er1 >&5
 1439:     mv -f conftest.er1 conftest.err
 1440:   fi
 1441:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1442:   test $ac_status = 0; } && {
 1443: 	 test -z "$ac_c_werror_flag" ||
 1444: 	 test ! -s conftest.err
 1445:        } && test -s conftest.$ac_objext; then :
 1446:   ac_retval=0
 1447: else
 1448:   $as_echo "$as_me: failed program was:" >&5
 1449: sed 's/^/| /' conftest.$ac_ext >&5
 1450: 
 1451: 	ac_retval=1
 1452: fi
 1453:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1454:   as_fn_set_status $ac_retval
 1455: 
 1456: } # ac_fn_c_try_compile
 1457: 
 1458: # ac_fn_c_try_link LINENO
 1459: # -----------------------
 1460: # Try to link conftest.$ac_ext, and return whether this succeeded.
 1461: ac_fn_c_try_link ()
 1462: {
 1463:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1464:   rm -f conftest.$ac_objext conftest$ac_exeext
 1465:   if { { ac_try="$ac_link"
 1466: case "(($ac_try" in
 1467:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1468:   *) ac_try_echo=$ac_try;;
 1469: esac
 1470: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1471: $as_echo "$ac_try_echo"; } >&5
 1472:   (eval "$ac_link") 2>conftest.err
 1473:   ac_status=$?
 1474:   if test -s conftest.err; then
 1475:     grep -v '^ *+' conftest.err >conftest.er1
 1476:     cat conftest.er1 >&5
 1477:     mv -f conftest.er1 conftest.err
 1478:   fi
 1479:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1480:   test $ac_status = 0; } && {
 1481: 	 test -z "$ac_c_werror_flag" ||
 1482: 	 test ! -s conftest.err
 1483:        } && test -s conftest$ac_exeext && {
 1484: 	 test "$cross_compiling" = yes ||
 1485: 	 test -x conftest$ac_exeext
 1486:        }; then :
 1487:   ac_retval=0
 1488: else
 1489:   $as_echo "$as_me: failed program was:" >&5
 1490: sed 's/^/| /' conftest.$ac_ext >&5
 1491: 
 1492: 	ac_retval=1
 1493: fi
 1494:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 1495:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 1496:   # interfere with the next link command; also delete a directory that is
 1497:   # left behind by Apple's compiler.  We do this before executing the actions.
 1498:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1499:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1500:   as_fn_set_status $ac_retval
 1501: 
 1502: } # ac_fn_c_try_link
 1503: 
 1504: # ac_fn_c_try_cpp LINENO
 1505: # ----------------------
 1506: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 1507: ac_fn_c_try_cpp ()
 1508: {
 1509:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1510:   if { { ac_try="$ac_cpp conftest.$ac_ext"
 1511: case "(($ac_try" in
 1512:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1513:   *) ac_try_echo=$ac_try;;
 1514: esac
 1515: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1516: $as_echo "$ac_try_echo"; } >&5
 1517:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 1518:   ac_status=$?
 1519:   if test -s conftest.err; then
 1520:     grep -v '^ *+' conftest.err >conftest.er1
 1521:     cat conftest.er1 >&5
 1522:     mv -f conftest.er1 conftest.err
 1523:   fi
 1524:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1525:   test $ac_status = 0; } > conftest.i && {
 1526: 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 1527: 	 test ! -s conftest.err
 1528:        }; then :
 1529:   ac_retval=0
 1530: else
 1531:   $as_echo "$as_me: failed program was:" >&5
 1532: sed 's/^/| /' conftest.$ac_ext >&5
 1533: 
 1534:     ac_retval=1
 1535: fi
 1536:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1537:   as_fn_set_status $ac_retval
 1538: 
 1539: } # ac_fn_c_try_cpp
 1540: 
 1541: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 1542: # -------------------------------------------------------
 1543: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
 1544: # the include files in INCLUDES and setting the cache variable VAR
 1545: # accordingly.
 1546: ac_fn_c_check_header_mongrel ()
 1547: {
 1548:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1549:   if eval \${$3+:} false; then :
 1550:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1551: $as_echo_n "checking for $2... " >&6; }
 1552: if eval \${$3+:} false; then :
 1553:   $as_echo_n "(cached) " >&6
 1554: fi
 1555: eval ac_res=\$$3
 1556: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1557: $as_echo "$ac_res" >&6; }
 1558: else
 1559:   # Is the header compilable?
 1560: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 1561: $as_echo_n "checking $2 usability... " >&6; }
 1562: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1563: /* end confdefs.h.  */
 1564: $4
 1565: #include <$2>
 1566: _ACEOF
 1567: if ac_fn_c_try_compile "$LINENO"; then :
 1568:   ac_header_compiler=yes
 1569: else
 1570:   ac_header_compiler=no
 1571: fi
 1572: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 1574: $as_echo "$ac_header_compiler" >&6; }
 1575: 
 1576: # Is the header present?
 1577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 1578: $as_echo_n "checking $2 presence... " >&6; }
 1579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1580: /* end confdefs.h.  */
 1581: #include <$2>
 1582: _ACEOF
 1583: if ac_fn_c_try_cpp "$LINENO"; then :
 1584:   ac_header_preproc=yes
 1585: else
 1586:   ac_header_preproc=no
 1587: fi
 1588: rm -f conftest.err conftest.i conftest.$ac_ext
 1589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 1590: $as_echo "$ac_header_preproc" >&6; }
 1591: 
 1592: # So?  What about this header?
 1593: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 1594:   yes:no: )
 1595:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 1596: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 1597:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1598: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1599:     ;;
 1600:   no:yes:* )
 1601:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 1602: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 1603:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 1604: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 1605:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 1606: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 1607:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 1608: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 1609:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 1610: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 1611: ( $as_echo "## ------------------------------ ##
 1612: ## Report this to misho@elwix.org ##
 1613: ## ------------------------------ ##"
 1614:      ) | sed "s/^/$as_me: WARNING:     /" >&2
 1615:     ;;
 1616: esac
 1617:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1618: $as_echo_n "checking for $2... " >&6; }
 1619: if eval \${$3+:} false; then :
 1620:   $as_echo_n "(cached) " >&6
 1621: else
 1622:   eval "$3=\$ac_header_compiler"
 1623: fi
 1624: eval ac_res=\$$3
 1625: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1626: $as_echo "$ac_res" >&6; }
 1627: fi
 1628:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1629: 
 1630: } # ac_fn_c_check_header_mongrel
 1631: 
 1632: # ac_fn_c_try_run LINENO
 1633: # ----------------------
 1634: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 1635: # that executables *can* be run.
 1636: ac_fn_c_try_run ()
 1637: {
 1638:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1639:   if { { ac_try="$ac_link"
 1640: case "(($ac_try" in
 1641:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1642:   *) ac_try_echo=$ac_try;;
 1643: esac
 1644: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1645: $as_echo "$ac_try_echo"; } >&5
 1646:   (eval "$ac_link") 2>&5
 1647:   ac_status=$?
 1648:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1649:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 1650:   { { case "(($ac_try" in
 1651:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1652:   *) ac_try_echo=$ac_try;;
 1653: esac
 1654: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1655: $as_echo "$ac_try_echo"; } >&5
 1656:   (eval "$ac_try") 2>&5
 1657:   ac_status=$?
 1658:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1659:   test $ac_status = 0; }; }; then :
 1660:   ac_retval=0
 1661: else
 1662:   $as_echo "$as_me: program exited with status $ac_status" >&5
 1663:        $as_echo "$as_me: failed program was:" >&5
 1664: sed 's/^/| /' conftest.$ac_ext >&5
 1665: 
 1666:        ac_retval=$ac_status
 1667: fi
 1668:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1669:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1670:   as_fn_set_status $ac_retval
 1671: 
 1672: } # ac_fn_c_try_run
 1673: 
 1674: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 1675: # -------------------------------------------------------
 1676: # Tests whether HEADER exists and can be compiled using the include files in
 1677: # INCLUDES, setting the cache variable VAR accordingly.
 1678: ac_fn_c_check_header_compile ()
 1679: {
 1680:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1681:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1682: $as_echo_n "checking for $2... " >&6; }
 1683: if eval \${$3+:} false; then :
 1684:   $as_echo_n "(cached) " >&6
 1685: else
 1686:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1687: /* end confdefs.h.  */
 1688: $4
 1689: #include <$2>
 1690: _ACEOF
 1691: if ac_fn_c_try_compile "$LINENO"; then :
 1692:   eval "$3=yes"
 1693: else
 1694:   eval "$3=no"
 1695: fi
 1696: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1697: fi
 1698: eval ac_res=\$$3
 1699: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1700: $as_echo "$ac_res" >&6; }
 1701:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1702: 
 1703: } # ac_fn_c_check_header_compile
 1704: 
 1705: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 1706: # -------------------------------------------
 1707: # Tests whether TYPE exists after having included INCLUDES, setting cache
 1708: # variable VAR accordingly.
 1709: ac_fn_c_check_type ()
 1710: {
 1711:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1712:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1713: $as_echo_n "checking for $2... " >&6; }
 1714: if eval \${$3+:} false; then :
 1715:   $as_echo_n "(cached) " >&6
 1716: else
 1717:   eval "$3=no"
 1718:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1719: /* end confdefs.h.  */
 1720: $4
 1721: int
 1722: main ()
 1723: {
 1724: if (sizeof ($2))
 1725: 	 return 0;
 1726:   ;
 1727:   return 0;
 1728: }
 1729: _ACEOF
 1730: if ac_fn_c_try_compile "$LINENO"; then :
 1731:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1732: /* end confdefs.h.  */
 1733: $4
 1734: int
 1735: main ()
 1736: {
 1737: if (sizeof (($2)))
 1738: 	    return 0;
 1739:   ;
 1740:   return 0;
 1741: }
 1742: _ACEOF
 1743: if ac_fn_c_try_compile "$LINENO"; then :
 1744: 
 1745: else
 1746:   eval "$3=yes"
 1747: fi
 1748: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1749: fi
 1750: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 1751: fi
 1752: eval ac_res=\$$3
 1753: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1754: $as_echo "$ac_res" >&6; }
 1755:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1756: 
 1757: } # ac_fn_c_check_type
 1758: 
 1759: # ac_fn_c_check_func LINENO FUNC VAR
 1760: # ----------------------------------
 1761: # Tests whether FUNC exists, setting the cache variable VAR accordingly
 1762: ac_fn_c_check_func ()
 1763: {
 1764:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1765:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1766: $as_echo_n "checking for $2... " >&6; }
 1767: if eval \${$3+:} false; then :
 1768:   $as_echo_n "(cached) " >&6
 1769: else
 1770:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1771: /* end confdefs.h.  */
 1772: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 1773:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 1774: #define $2 innocuous_$2
 1775: 
 1776: /* System header to define __stub macros and hopefully few prototypes,
 1777:     which can conflict with char $2 (); below.
 1778:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 1779:     <limits.h> exists even on freestanding compilers.  */
 1780: 
 1781: #ifdef __STDC__
 1782: # include <limits.h>
 1783: #else
 1784: # include <assert.h>
 1785: #endif
 1786: 
 1787: #undef $2
 1788: 
 1789: /* Override any GCC internal prototype to avoid an error.
 1790:    Use char because int might match the return type of a GCC
 1791:    builtin and then its argument prototype would still apply.  */
 1792: #ifdef __cplusplus
 1793: extern "C"
 1794: #endif
 1795: char $2 ();
 1796: /* The GNU C library defines this for functions which it implements
 1797:     to always fail with ENOSYS.  Some functions are actually named
 1798:     something starting with __ and the normal name is an alias.  */
 1799: #if defined __stub_$2 || defined __stub___$2
 1800: choke me
 1801: #endif
 1802: 
 1803: int
 1804: main ()
 1805: {
 1806: return $2 ();
 1807:   ;
 1808:   return 0;
 1809: }
 1810: _ACEOF
 1811: if ac_fn_c_try_link "$LINENO"; then :
 1812:   eval "$3=yes"
 1813: else
 1814:   eval "$3=no"
 1815: fi
 1816: rm -f core conftest.err conftest.$ac_objext \
 1817:     conftest$ac_exeext conftest.$ac_ext
 1818: fi
 1819: eval ac_res=\$$3
 1820: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1821: $as_echo "$ac_res" >&6; }
 1822:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1823: 
 1824: } # ac_fn_c_check_func
 1825: cat >config.log <<_ACEOF
 1826: This file contains any messages produced by compilers while
 1827: running configure, to aid debugging if configure makes a mistake.
 1828: 
 1829: It was created by mqtt $as_me 2.0, which was
 1830: generated by GNU Autoconf 2.69.  Invocation command line was
 1831: 
 1832:   $ $0 $@
 1833: 
 1834: _ACEOF
 1835: exec 5>>config.log
 1836: {
 1837: cat <<_ASUNAME
 1838: ## --------- ##
 1839: ## Platform. ##
 1840: ## --------- ##
 1841: 
 1842: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 1843: uname -m = `(uname -m) 2>/dev/null || echo unknown`
 1844: uname -r = `(uname -r) 2>/dev/null || echo unknown`
 1845: uname -s = `(uname -s) 2>/dev/null || echo unknown`
 1846: uname -v = `(uname -v) 2>/dev/null || echo unknown`
 1847: 
 1848: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 1849: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 1850: 
 1851: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 1852: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 1853: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 1854: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 1855: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 1856: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 1857: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 1858: 
 1859: _ASUNAME
 1860: 
 1861: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1862: for as_dir in $PATH
 1863: do
 1864:   IFS=$as_save_IFS
 1865:   test -z "$as_dir" && as_dir=.
 1866:     $as_echo "PATH: $as_dir"
 1867:   done
 1868: IFS=$as_save_IFS
 1869: 
 1870: } >&5
 1871: 
 1872: cat >&5 <<_ACEOF
 1873: 
 1874: 
 1875: ## ----------- ##
 1876: ## Core tests. ##
 1877: ## ----------- ##
 1878: 
 1879: _ACEOF
 1880: 
 1881: 
 1882: # Keep a trace of the command line.
 1883: # Strip out --no-create and --no-recursion so they do not pile up.
 1884: # Strip out --silent because we don't want to record it for future runs.
 1885: # Also quote any args containing shell meta-characters.
 1886: # Make two passes to allow for proper duplicate-argument suppression.
 1887: ac_configure_args=
 1888: ac_configure_args0=
 1889: ac_configure_args1=
 1890: ac_must_keep_next=false
 1891: for ac_pass in 1 2
 1892: do
 1893:   for ac_arg
 1894:   do
 1895:     case $ac_arg in
 1896:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 1897:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1898:     | -silent | --silent | --silen | --sile | --sil)
 1899:       continue ;;
 1900:     *\'*)
 1901:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 1902:     esac
 1903:     case $ac_pass in
 1904:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 1905:     2)
 1906:       as_fn_append ac_configure_args1 " '$ac_arg'"
 1907:       if test $ac_must_keep_next = true; then
 1908: 	ac_must_keep_next=false # Got value, back to normal.
 1909:       else
 1910: 	case $ac_arg in
 1911: 	  *=* | --config-cache | -C | -disable-* | --disable-* \
 1912: 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 1913: 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 1914: 	  | -with-* | --with-* | -without-* | --without-* | --x)
 1915: 	    case "$ac_configure_args0 " in
 1916: 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 1917: 	    esac
 1918: 	    ;;
 1919: 	  -* ) ac_must_keep_next=true ;;
 1920: 	esac
 1921:       fi
 1922:       as_fn_append ac_configure_args " '$ac_arg'"
 1923:       ;;
 1924:     esac
 1925:   done
 1926: done
 1927: { ac_configure_args0=; unset ac_configure_args0;}
 1928: { ac_configure_args1=; unset ac_configure_args1;}
 1929: 
 1930: # When interrupted or exit'd, cleanup temporary files, and complete
 1931: # config.log.  We remove comments because anyway the quotes in there
 1932: # would cause problems or look ugly.
 1933: # WARNING: Use '\'' to represent an apostrophe within the trap.
 1934: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 1935: trap 'exit_status=$?
 1936:   # Save into config.log some information that might help in debugging.
 1937:   {
 1938:     echo
 1939: 
 1940:     $as_echo "## ---------------- ##
 1941: ## Cache variables. ##
 1942: ## ---------------- ##"
 1943:     echo
 1944:     # The following way of writing the cache mishandles newlines in values,
 1945: (
 1946:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 1947:     eval ac_val=\$$ac_var
 1948:     case $ac_val in #(
 1949:     *${as_nl}*)
 1950:       case $ac_var in #(
 1951:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 1952: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 1953:       esac
 1954:       case $ac_var in #(
 1955:       _ | IFS | as_nl) ;; #(
 1956:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 1957:       *) { eval $ac_var=; unset $ac_var;} ;;
 1958:       esac ;;
 1959:     esac
 1960:   done
 1961:   (set) 2>&1 |
 1962:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 1963:     *${as_nl}ac_space=\ *)
 1964:       sed -n \
 1965: 	"s/'\''/'\''\\\\'\'''\''/g;
 1966: 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 1967:       ;; #(
 1968:     *)
 1969:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 1970:       ;;
 1971:     esac |
 1972:     sort
 1973: )
 1974:     echo
 1975: 
 1976:     $as_echo "## ----------------- ##
 1977: ## Output variables. ##
 1978: ## ----------------- ##"
 1979:     echo
 1980:     for ac_var in $ac_subst_vars
 1981:     do
 1982:       eval ac_val=\$$ac_var
 1983:       case $ac_val in
 1984:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 1985:       esac
 1986:       $as_echo "$ac_var='\''$ac_val'\''"
 1987:     done | sort
 1988:     echo
 1989: 
 1990:     if test -n "$ac_subst_files"; then
 1991:       $as_echo "## ------------------- ##
 1992: ## File substitutions. ##
 1993: ## ------------------- ##"
 1994:       echo
 1995:       for ac_var in $ac_subst_files
 1996:       do
 1997: 	eval ac_val=\$$ac_var
 1998: 	case $ac_val in
 1999: 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2000: 	esac
 2001: 	$as_echo "$ac_var='\''$ac_val'\''"
 2002:       done | sort
 2003:       echo
 2004:     fi
 2005: 
 2006:     if test -s confdefs.h; then
 2007:       $as_echo "## ----------- ##
 2008: ## confdefs.h. ##
 2009: ## ----------- ##"
 2010:       echo
 2011:       cat confdefs.h
 2012:       echo
 2013:     fi
 2014:     test "$ac_signal" != 0 &&
 2015:       $as_echo "$as_me: caught signal $ac_signal"
 2016:     $as_echo "$as_me: exit $exit_status"
 2017:   } >&5
 2018:   rm -f core *.core core.conftest.* &&
 2019:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 2020:     exit $exit_status
 2021: ' 0
 2022: for ac_signal in 1 2 13 15; do
 2023:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 2024: done
 2025: ac_signal=0
 2026: 
 2027: # confdefs.h avoids OS command line length limits that DEFS can exceed.
 2028: rm -f -r conftest* confdefs.h
 2029: 
 2030: $as_echo "/* confdefs.h */" > confdefs.h
 2031: 
 2032: # Predefined preprocessor variables.
 2033: 
 2034: cat >>confdefs.h <<_ACEOF
 2035: #define PACKAGE_NAME "$PACKAGE_NAME"
 2036: _ACEOF
 2037: 
 2038: cat >>confdefs.h <<_ACEOF
 2039: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 2040: _ACEOF
 2041: 
 2042: cat >>confdefs.h <<_ACEOF
 2043: #define PACKAGE_VERSION "$PACKAGE_VERSION"
 2044: _ACEOF
 2045: 
 2046: cat >>confdefs.h <<_ACEOF
 2047: #define PACKAGE_STRING "$PACKAGE_STRING"
 2048: _ACEOF
 2049: 
 2050: cat >>confdefs.h <<_ACEOF
 2051: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 2052: _ACEOF
 2053: 
 2054: cat >>confdefs.h <<_ACEOF
 2055: #define PACKAGE_URL "$PACKAGE_URL"
 2056: _ACEOF
 2057: 
 2058: 
 2059: # Let the site file select an alternate cache file if it wants to.
 2060: # Prefer an explicitly selected file to automatically selected ones.
 2061: ac_site_file1=NONE
 2062: ac_site_file2=NONE
 2063: if test -n "$CONFIG_SITE"; then
 2064:   # We do not want a PATH search for config.site.
 2065:   case $CONFIG_SITE in #((
 2066:     -*)  ac_site_file1=./$CONFIG_SITE;;
 2067:     */*) ac_site_file1=$CONFIG_SITE;;
 2068:     *)   ac_site_file1=./$CONFIG_SITE;;
 2069:   esac
 2070: elif test "x$prefix" != xNONE; then
 2071:   ac_site_file1=$prefix/share/config.site
 2072:   ac_site_file2=$prefix/etc/config.site
 2073: else
 2074:   ac_site_file1=$ac_default_prefix/share/config.site
 2075:   ac_site_file2=$ac_default_prefix/etc/config.site
 2076: fi
 2077: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 2078: do
 2079:   test "x$ac_site_file" = xNONE && continue
 2080:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 2081:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2082: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 2083:     sed 's/^/| /' "$ac_site_file" >&5
 2084:     . "$ac_site_file" \
 2085:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2086: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2087: as_fn_error $? "failed to load site script $ac_site_file
 2088: See \`config.log' for more details" "$LINENO" 5; }
 2089:   fi
 2090: done
 2091: 
 2092: if test -r "$cache_file"; then
 2093:   # Some versions of bash will fail to source /dev/null (special files
 2094:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 2095:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 2096:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 2097: $as_echo "$as_me: loading cache $cache_file" >&6;}
 2098:     case $cache_file in
 2099:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 2100:       *)                      . "./$cache_file";;
 2101:     esac
 2102:   fi
 2103: else
 2104:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 2105: $as_echo "$as_me: creating cache $cache_file" >&6;}
 2106:   >$cache_file
 2107: fi
 2108: 
 2109: as_fn_append ac_header_list " stdlib.h"
 2110: as_fn_append ac_header_list " unistd.h"
 2111: as_fn_append ac_header_list " sys/param.h"
 2112: # Check that the precious variables saved in the cache have kept the same
 2113: # value.
 2114: ac_cache_corrupted=false
 2115: for ac_var in $ac_precious_vars; do
 2116:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 2117:   eval ac_new_set=\$ac_env_${ac_var}_set
 2118:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 2119:   eval ac_new_val=\$ac_env_${ac_var}_value
 2120:   case $ac_old_set,$ac_new_set in
 2121:     set,)
 2122:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 2123: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 2124:       ac_cache_corrupted=: ;;
 2125:     ,set)
 2126:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 2127: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 2128:       ac_cache_corrupted=: ;;
 2129:     ,);;
 2130:     *)
 2131:       if test "x$ac_old_val" != "x$ac_new_val"; then
 2132: 	# differences in whitespace do not lead to failure.
 2133: 	ac_old_val_w=`echo x $ac_old_val`
 2134: 	ac_new_val_w=`echo x $ac_new_val`
 2135: 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
 2136: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 2137: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 2138: 	  ac_cache_corrupted=:
 2139: 	else
 2140: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 2141: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 2142: 	  eval $ac_var=\$ac_old_val
 2143: 	fi
 2144: 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 2145: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 2146: 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 2147: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 2148:       fi;;
 2149:   esac
 2150:   # Pass precious variables to config.status.
 2151:   if test "$ac_new_set" = set; then
 2152:     case $ac_new_val in
 2153:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 2154:     *) ac_arg=$ac_var=$ac_new_val ;;
 2155:     esac
 2156:     case " $ac_configure_args " in
 2157:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 2158:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 2159:     esac
 2160:   fi
 2161: done
 2162: if $ac_cache_corrupted; then
 2163:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2164: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2165:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 2166: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 2167:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 2168: fi
 2169: ## -------------------- ##
 2170: ## Main body of script. ##
 2171: ## -------------------- ##
 2172: 
 2173: ac_ext=c
 2174: ac_cpp='$CPP $CPPFLAGS'
 2175: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2176: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2177: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2178: 
 2179: 
 2180: ac_config_headers="$ac_config_headers inc/config.h"
 2181: 
 2182: 
 2183: 
 2184: # Checks for programs.
 2185: ac_ext=c
 2186: ac_cpp='$CPP $CPPFLAGS'
 2187: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2188: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2189: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2190: if test -n "$ac_tool_prefix"; then
 2191:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 2192: set dummy ${ac_tool_prefix}gcc; ac_word=$2
 2193: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2194: $as_echo_n "checking for $ac_word... " >&6; }
 2195: if ${ac_cv_prog_CC+:} false; then :
 2196:   $as_echo_n "(cached) " >&6
 2197: else
 2198:   if test -n "$CC"; then
 2199:   ac_cv_prog_CC="$CC" # Let the user override the test.
 2200: else
 2201: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2202: for as_dir in $PATH
 2203: do
 2204:   IFS=$as_save_IFS
 2205:   test -z "$as_dir" && as_dir=.
 2206:     for ac_exec_ext in '' $ac_executable_extensions; do
 2207:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2208:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 2209:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2210:     break 2
 2211:   fi
 2212: done
 2213:   done
 2214: IFS=$as_save_IFS
 2215: 
 2216: fi
 2217: fi
 2218: CC=$ac_cv_prog_CC
 2219: if test -n "$CC"; then
 2220:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2221: $as_echo "$CC" >&6; }
 2222: else
 2223:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2224: $as_echo "no" >&6; }
 2225: fi
 2226: 
 2227: 
 2228: fi
 2229: if test -z "$ac_cv_prog_CC"; then
 2230:   ac_ct_CC=$CC
 2231:   # Extract the first word of "gcc", so it can be a program name with args.
 2232: set dummy gcc; ac_word=$2
 2233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2234: $as_echo_n "checking for $ac_word... " >&6; }
 2235: if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2236:   $as_echo_n "(cached) " >&6
 2237: else
 2238:   if test -n "$ac_ct_CC"; then
 2239:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2240: else
 2241: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2242: for as_dir in $PATH
 2243: do
 2244:   IFS=$as_save_IFS
 2245:   test -z "$as_dir" && as_dir=.
 2246:     for ac_exec_ext in '' $ac_executable_extensions; do
 2247:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2248:     ac_cv_prog_ac_ct_CC="gcc"
 2249:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2250:     break 2
 2251:   fi
 2252: done
 2253:   done
 2254: IFS=$as_save_IFS
 2255: 
 2256: fi
 2257: fi
 2258: ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2259: if test -n "$ac_ct_CC"; then
 2260:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2261: $as_echo "$ac_ct_CC" >&6; }
 2262: else
 2263:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2264: $as_echo "no" >&6; }
 2265: fi
 2266: 
 2267:   if test "x$ac_ct_CC" = x; then
 2268:     CC=""
 2269:   else
 2270:     case $cross_compiling:$ac_tool_warned in
 2271: yes:)
 2272: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2273: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2274: ac_tool_warned=yes ;;
 2275: esac
 2276:     CC=$ac_ct_CC
 2277:   fi
 2278: else
 2279:   CC="$ac_cv_prog_CC"
 2280: fi
 2281: 
 2282: if test -z "$CC"; then
 2283:           if test -n "$ac_tool_prefix"; then
 2284:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 2285: set dummy ${ac_tool_prefix}cc; ac_word=$2
 2286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2287: $as_echo_n "checking for $ac_word... " >&6; }
 2288: if ${ac_cv_prog_CC+:} false; then :
 2289:   $as_echo_n "(cached) " >&6
 2290: else
 2291:   if test -n "$CC"; then
 2292:   ac_cv_prog_CC="$CC" # Let the user override the test.
 2293: else
 2294: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2295: for as_dir in $PATH
 2296: do
 2297:   IFS=$as_save_IFS
 2298:   test -z "$as_dir" && as_dir=.
 2299:     for ac_exec_ext in '' $ac_executable_extensions; do
 2300:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2301:     ac_cv_prog_CC="${ac_tool_prefix}cc"
 2302:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2303:     break 2
 2304:   fi
 2305: done
 2306:   done
 2307: IFS=$as_save_IFS
 2308: 
 2309: fi
 2310: fi
 2311: CC=$ac_cv_prog_CC
 2312: if test -n "$CC"; then
 2313:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2314: $as_echo "$CC" >&6; }
 2315: else
 2316:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2317: $as_echo "no" >&6; }
 2318: fi
 2319: 
 2320: 
 2321:   fi
 2322: fi
 2323: if test -z "$CC"; then
 2324:   # Extract the first word of "cc", so it can be a program name with args.
 2325: set dummy cc; ac_word=$2
 2326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2327: $as_echo_n "checking for $ac_word... " >&6; }
 2328: if ${ac_cv_prog_CC+:} false; then :
 2329:   $as_echo_n "(cached) " >&6
 2330: else
 2331:   if test -n "$CC"; then
 2332:   ac_cv_prog_CC="$CC" # Let the user override the test.
 2333: else
 2334:   ac_prog_rejected=no
 2335: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2336: for as_dir in $PATH
 2337: do
 2338:   IFS=$as_save_IFS
 2339:   test -z "$as_dir" && as_dir=.
 2340:     for ac_exec_ext in '' $ac_executable_extensions; do
 2341:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2342:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 2343:        ac_prog_rejected=yes
 2344:        continue
 2345:      fi
 2346:     ac_cv_prog_CC="cc"
 2347:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2348:     break 2
 2349:   fi
 2350: done
 2351:   done
 2352: IFS=$as_save_IFS
 2353: 
 2354: if test $ac_prog_rejected = yes; then
 2355:   # We found a bogon in the path, so make sure we never use it.
 2356:   set dummy $ac_cv_prog_CC
 2357:   shift
 2358:   if test $# != 0; then
 2359:     # We chose a different compiler from the bogus one.
 2360:     # However, it has the same basename, so the bogon will be chosen
 2361:     # first if we set CC to just the basename; use the full file name.
 2362:     shift
 2363:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 2364:   fi
 2365: fi
 2366: fi
 2367: fi
 2368: CC=$ac_cv_prog_CC
 2369: if test -n "$CC"; then
 2370:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2371: $as_echo "$CC" >&6; }
 2372: else
 2373:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2374: $as_echo "no" >&6; }
 2375: fi
 2376: 
 2377: 
 2378: fi
 2379: if test -z "$CC"; then
 2380:   if test -n "$ac_tool_prefix"; then
 2381:   for ac_prog in cl.exe
 2382:   do
 2383:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 2384: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 2385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2386: $as_echo_n "checking for $ac_word... " >&6; }
 2387: if ${ac_cv_prog_CC+:} false; then :
 2388:   $as_echo_n "(cached) " >&6
 2389: else
 2390:   if test -n "$CC"; then
 2391:   ac_cv_prog_CC="$CC" # Let the user override the test.
 2392: else
 2393: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2394: for as_dir in $PATH
 2395: do
 2396:   IFS=$as_save_IFS
 2397:   test -z "$as_dir" && as_dir=.
 2398:     for ac_exec_ext in '' $ac_executable_extensions; do
 2399:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2400:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 2401:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2402:     break 2
 2403:   fi
 2404: done
 2405:   done
 2406: IFS=$as_save_IFS
 2407: 
 2408: fi
 2409: fi
 2410: CC=$ac_cv_prog_CC
 2411: if test -n "$CC"; then
 2412:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 2413: $as_echo "$CC" >&6; }
 2414: else
 2415:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2416: $as_echo "no" >&6; }
 2417: fi
 2418: 
 2419: 
 2420:     test -n "$CC" && break
 2421:   done
 2422: fi
 2423: if test -z "$CC"; then
 2424:   ac_ct_CC=$CC
 2425:   for ac_prog in cl.exe
 2426: do
 2427:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2428: set dummy $ac_prog; ac_word=$2
 2429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2430: $as_echo_n "checking for $ac_word... " >&6; }
 2431: if ${ac_cv_prog_ac_ct_CC+:} false; then :
 2432:   $as_echo_n "(cached) " >&6
 2433: else
 2434:   if test -n "$ac_ct_CC"; then
 2435:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2436: else
 2437: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2438: for as_dir in $PATH
 2439: do
 2440:   IFS=$as_save_IFS
 2441:   test -z "$as_dir" && as_dir=.
 2442:     for ac_exec_ext in '' $ac_executable_extensions; do
 2443:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2444:     ac_cv_prog_ac_ct_CC="$ac_prog"
 2445:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2446:     break 2
 2447:   fi
 2448: done
 2449:   done
 2450: IFS=$as_save_IFS
 2451: 
 2452: fi
 2453: fi
 2454: ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2455: if test -n "$ac_ct_CC"; then
 2456:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 2457: $as_echo "$ac_ct_CC" >&6; }
 2458: else
 2459:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2460: $as_echo "no" >&6; }
 2461: fi
 2462: 
 2463: 
 2464:   test -n "$ac_ct_CC" && break
 2465: done
 2466: 
 2467:   if test "x$ac_ct_CC" = x; then
 2468:     CC=""
 2469:   else
 2470:     case $cross_compiling:$ac_tool_warned in
 2471: yes:)
 2472: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 2473: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 2474: ac_tool_warned=yes ;;
 2475: esac
 2476:     CC=$ac_ct_CC
 2477:   fi
 2478: fi
 2479: 
 2480: fi
 2481: 
 2482: 
 2483: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2484: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2485: as_fn_error $? "no acceptable C compiler found in \$PATH
 2486: See \`config.log' for more details" "$LINENO" 5; }
 2487: 
 2488: # Provide some information about the compiler.
 2489: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 2490: set X $ac_compile
 2491: ac_compiler=$2
 2492: for ac_option in --version -v -V -qversion; do
 2493:   { { ac_try="$ac_compiler $ac_option >&5"
 2494: case "(($ac_try" in
 2495:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2496:   *) ac_try_echo=$ac_try;;
 2497: esac
 2498: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2499: $as_echo "$ac_try_echo"; } >&5
 2500:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 2501:   ac_status=$?
 2502:   if test -s conftest.err; then
 2503:     sed '10a\
 2504: ... rest of stderr output deleted ...
 2505:          10q' conftest.err >conftest.er1
 2506:     cat conftest.er1 >&5
 2507:   fi
 2508:   rm -f conftest.er1 conftest.err
 2509:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2510:   test $ac_status = 0; }
 2511: done
 2512: 
 2513: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2514: /* end confdefs.h.  */
 2515: 
 2516: int
 2517: main ()
 2518: {
 2519: 
 2520:   ;
 2521:   return 0;
 2522: }
 2523: _ACEOF
 2524: ac_clean_files_save=$ac_clean_files
 2525: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 2526: # Try to create an executable without -o first, disregard a.out.
 2527: # It will help us diagnose broken compilers, and finding out an intuition
 2528: # of exeext.
 2529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 2530: $as_echo_n "checking whether the C compiler works... " >&6; }
 2531: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 2532: 
 2533: # The possible output files:
 2534: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 2535: 
 2536: ac_rmfiles=
 2537: for ac_file in $ac_files
 2538: do
 2539:   case $ac_file in
 2540:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2541:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 2542:   esac
 2543: done
 2544: rm -f $ac_rmfiles
 2545: 
 2546: if { { ac_try="$ac_link_default"
 2547: case "(($ac_try" in
 2548:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2549:   *) ac_try_echo=$ac_try;;
 2550: esac
 2551: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2552: $as_echo "$ac_try_echo"; } >&5
 2553:   (eval "$ac_link_default") 2>&5
 2554:   ac_status=$?
 2555:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2556:   test $ac_status = 0; }; then :
 2557:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 2558: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 2559: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 2560: # so that the user can short-circuit this test for compilers unknown to
 2561: # Autoconf.
 2562: for ac_file in $ac_files ''
 2563: do
 2564:   test -f "$ac_file" || continue
 2565:   case $ac_file in
 2566:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 2567: 	;;
 2568:     [ab].out )
 2569: 	# We found the default executable, but exeext='' is most
 2570: 	# certainly right.
 2571: 	break;;
 2572:     *.* )
 2573: 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 2574: 	then :; else
 2575: 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2576: 	fi
 2577: 	# We set ac_cv_exeext here because the later test for it is not
 2578: 	# safe: cross compilers may not add the suffix if given an `-o'
 2579: 	# argument, so we may need to know it at that point already.
 2580: 	# Even if this section looks crufty: it has the advantage of
 2581: 	# actually working.
 2582: 	break;;
 2583:     * )
 2584: 	break;;
 2585:   esac
 2586: done
 2587: test "$ac_cv_exeext" = no && ac_cv_exeext=
 2588: 
 2589: else
 2590:   ac_file=''
 2591: fi
 2592: if test -z "$ac_file"; then :
 2593:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2594: $as_echo "no" >&6; }
 2595: $as_echo "$as_me: failed program was:" >&5
 2596: sed 's/^/| /' conftest.$ac_ext >&5
 2597: 
 2598: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2599: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2600: as_fn_error 77 "C compiler cannot create executables
 2601: See \`config.log' for more details" "$LINENO" 5; }
 2602: else
 2603:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 2604: $as_echo "yes" >&6; }
 2605: fi
 2606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 2607: $as_echo_n "checking for C compiler default output file name... " >&6; }
 2608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 2609: $as_echo "$ac_file" >&6; }
 2610: ac_exeext=$ac_cv_exeext
 2611: 
 2612: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 2613: ac_clean_files=$ac_clean_files_save
 2614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 2615: $as_echo_n "checking for suffix of executables... " >&6; }
 2616: if { { ac_try="$ac_link"
 2617: case "(($ac_try" in
 2618:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2619:   *) ac_try_echo=$ac_try;;
 2620: esac
 2621: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2622: $as_echo "$ac_try_echo"; } >&5
 2623:   (eval "$ac_link") 2>&5
 2624:   ac_status=$?
 2625:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2626:   test $ac_status = 0; }; then :
 2627:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 2628: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 2629: # work properly (i.e., refer to `conftest.exe'), while it won't with
 2630: # `rm'.
 2631: for ac_file in conftest.exe conftest conftest.*; do
 2632:   test -f "$ac_file" || continue
 2633:   case $ac_file in
 2634:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 2635:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2636: 	  break;;
 2637:     * ) break;;
 2638:   esac
 2639: done
 2640: else
 2641:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2642: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2643: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 2644: See \`config.log' for more details" "$LINENO" 5; }
 2645: fi
 2646: rm -f conftest conftest$ac_cv_exeext
 2647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 2648: $as_echo "$ac_cv_exeext" >&6; }
 2649: 
 2650: rm -f conftest.$ac_ext
 2651: EXEEXT=$ac_cv_exeext
 2652: ac_exeext=$EXEEXT
 2653: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2654: /* end confdefs.h.  */
 2655: #include <stdio.h>
 2656: int
 2657: main ()
 2658: {
 2659: FILE *f = fopen ("conftest.out", "w");
 2660:  return ferror (f) || fclose (f) != 0;
 2661: 
 2662:   ;
 2663:   return 0;
 2664: }
 2665: _ACEOF
 2666: ac_clean_files="$ac_clean_files conftest.out"
 2667: # Check that the compiler produces executables we can run.  If not, either
 2668: # the compiler is broken, or we cross compile.
 2669: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 2670: $as_echo_n "checking whether we are cross compiling... " >&6; }
 2671: if test "$cross_compiling" != yes; then
 2672:   { { ac_try="$ac_link"
 2673: case "(($ac_try" in
 2674:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2675:   *) ac_try_echo=$ac_try;;
 2676: esac
 2677: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2678: $as_echo "$ac_try_echo"; } >&5
 2679:   (eval "$ac_link") 2>&5
 2680:   ac_status=$?
 2681:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2682:   test $ac_status = 0; }
 2683:   if { ac_try='./conftest$ac_cv_exeext'
 2684:   { { case "(($ac_try" in
 2685:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2686:   *) ac_try_echo=$ac_try;;
 2687: esac
 2688: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2689: $as_echo "$ac_try_echo"; } >&5
 2690:   (eval "$ac_try") 2>&5
 2691:   ac_status=$?
 2692:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2693:   test $ac_status = 0; }; }; then
 2694:     cross_compiling=no
 2695:   else
 2696:     if test "$cross_compiling" = maybe; then
 2697: 	cross_compiling=yes
 2698:     else
 2699: 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2700: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2701: as_fn_error $? "cannot run C compiled programs.
 2702: If you meant to cross compile, use \`--host'.
 2703: See \`config.log' for more details" "$LINENO" 5; }
 2704:     fi
 2705:   fi
 2706: fi
 2707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 2708: $as_echo "$cross_compiling" >&6; }
 2709: 
 2710: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 2711: ac_clean_files=$ac_clean_files_save
 2712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 2713: $as_echo_n "checking for suffix of object files... " >&6; }
 2714: if ${ac_cv_objext+:} false; then :
 2715:   $as_echo_n "(cached) " >&6
 2716: else
 2717:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2718: /* end confdefs.h.  */
 2719: 
 2720: int
 2721: main ()
 2722: {
 2723: 
 2724:   ;
 2725:   return 0;
 2726: }
 2727: _ACEOF
 2728: rm -f conftest.o conftest.obj
 2729: if { { ac_try="$ac_compile"
 2730: case "(($ac_try" in
 2731:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2732:   *) ac_try_echo=$ac_try;;
 2733: esac
 2734: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2735: $as_echo "$ac_try_echo"; } >&5
 2736:   (eval "$ac_compile") 2>&5
 2737:   ac_status=$?
 2738:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2739:   test $ac_status = 0; }; then :
 2740:   for ac_file in conftest.o conftest.obj conftest.*; do
 2741:   test -f "$ac_file" || continue;
 2742:   case $ac_file in
 2743:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 2744:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 2745:        break;;
 2746:   esac
 2747: done
 2748: else
 2749:   $as_echo "$as_me: failed program was:" >&5
 2750: sed 's/^/| /' conftest.$ac_ext >&5
 2751: 
 2752: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2753: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2754: as_fn_error $? "cannot compute suffix of object files: cannot compile
 2755: See \`config.log' for more details" "$LINENO" 5; }
 2756: fi
 2757: rm -f conftest.$ac_cv_objext conftest.$ac_ext
 2758: fi
 2759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 2760: $as_echo "$ac_cv_objext" >&6; }
 2761: OBJEXT=$ac_cv_objext
 2762: ac_objext=$OBJEXT
 2763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 2764: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 2765: if ${ac_cv_c_compiler_gnu+:} false; then :
 2766:   $as_echo_n "(cached) " >&6
 2767: else
 2768:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2769: /* end confdefs.h.  */
 2770: 
 2771: int
 2772: main ()
 2773: {
 2774: #ifndef __GNUC__
 2775:        choke me
 2776: #endif
 2777: 
 2778:   ;
 2779:   return 0;
 2780: }
 2781: _ACEOF
 2782: if ac_fn_c_try_compile "$LINENO"; then :
 2783:   ac_compiler_gnu=yes
 2784: else
 2785:   ac_compiler_gnu=no
 2786: fi
 2787: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2788: ac_cv_c_compiler_gnu=$ac_compiler_gnu
 2789: 
 2790: fi
 2791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 2792: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 2793: if test $ac_compiler_gnu = yes; then
 2794:   GCC=yes
 2795: else
 2796:   GCC=
 2797: fi
 2798: ac_test_CFLAGS=${CFLAGS+set}
 2799: ac_save_CFLAGS=$CFLAGS
 2800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 2801: $as_echo_n "checking whether $CC accepts -g... " >&6; }
 2802: if ${ac_cv_prog_cc_g+:} false; then :
 2803:   $as_echo_n "(cached) " >&6
 2804: else
 2805:   ac_save_c_werror_flag=$ac_c_werror_flag
 2806:    ac_c_werror_flag=yes
 2807:    ac_cv_prog_cc_g=no
 2808:    CFLAGS="-g"
 2809:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2810: /* end confdefs.h.  */
 2811: 
 2812: int
 2813: main ()
 2814: {
 2815: 
 2816:   ;
 2817:   return 0;
 2818: }
 2819: _ACEOF
 2820: if ac_fn_c_try_compile "$LINENO"; then :
 2821:   ac_cv_prog_cc_g=yes
 2822: else
 2823:   CFLAGS=""
 2824:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2825: /* end confdefs.h.  */
 2826: 
 2827: int
 2828: main ()
 2829: {
 2830: 
 2831:   ;
 2832:   return 0;
 2833: }
 2834: _ACEOF
 2835: if ac_fn_c_try_compile "$LINENO"; then :
 2836: 
 2837: else
 2838:   ac_c_werror_flag=$ac_save_c_werror_flag
 2839: 	 CFLAGS="-g"
 2840: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2841: /* end confdefs.h.  */
 2842: 
 2843: int
 2844: main ()
 2845: {
 2846: 
 2847:   ;
 2848:   return 0;
 2849: }
 2850: _ACEOF
 2851: if ac_fn_c_try_compile "$LINENO"; then :
 2852:   ac_cv_prog_cc_g=yes
 2853: fi
 2854: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2855: fi
 2856: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2857: fi
 2858: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2859:    ac_c_werror_flag=$ac_save_c_werror_flag
 2860: fi
 2861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 2862: $as_echo "$ac_cv_prog_cc_g" >&6; }
 2863: if test "$ac_test_CFLAGS" = set; then
 2864:   CFLAGS=$ac_save_CFLAGS
 2865: elif test $ac_cv_prog_cc_g = yes; then
 2866:   if test "$GCC" = yes; then
 2867:     CFLAGS="-g -O2"
 2868:   else
 2869:     CFLAGS="-g"
 2870:   fi
 2871: else
 2872:   if test "$GCC" = yes; then
 2873:     CFLAGS="-O2"
 2874:   else
 2875:     CFLAGS=
 2876:   fi
 2877: fi
 2878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 2879: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 2880: if ${ac_cv_prog_cc_c89+:} false; then :
 2881:   $as_echo_n "(cached) " >&6
 2882: else
 2883:   ac_cv_prog_cc_c89=no
 2884: ac_save_CC=$CC
 2885: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2886: /* end confdefs.h.  */
 2887: #include <stdarg.h>
 2888: #include <stdio.h>
 2889: struct stat;
 2890: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 2891: struct buf { int x; };
 2892: FILE * (*rcsopen) (struct buf *, struct stat *, int);
 2893: static char *e (p, i)
 2894:      char **p;
 2895:      int i;
 2896: {
 2897:   return p[i];
 2898: }
 2899: static char *f (char * (*g) (char **, int), char **p, ...)
 2900: {
 2901:   char *s;
 2902:   va_list v;
 2903:   va_start (v,p);
 2904:   s = g (p, va_arg (v,int));
 2905:   va_end (v);
 2906:   return s;
 2907: }
 2908: 
 2909: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 2910:    function prototypes and stuff, but not '\xHH' hex character constants.
 2911:    These don't provoke an error unfortunately, instead are silently treated
 2912:    as 'x'.  The following induces an error, until -std is added to get
 2913:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 2914:    array size at least.  It's necessary to write '\x00'==0 to get something
 2915:    that's true only with -std.  */
 2916: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 2917: 
 2918: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 2919:    inside strings and character constants.  */
 2920: #define FOO(x) 'x'
 2921: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 2922: 
 2923: int test (int i, double x);
 2924: struct s1 {int (*f) (int a);};
 2925: struct s2 {int (*f) (double a);};
 2926: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 2927: int argc;
 2928: char **argv;
 2929: int
 2930: main ()
 2931: {
 2932: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 2933:   ;
 2934:   return 0;
 2935: }
 2936: _ACEOF
 2937: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 2938: 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 2939: do
 2940:   CC="$ac_save_CC $ac_arg"
 2941:   if ac_fn_c_try_compile "$LINENO"; then :
 2942:   ac_cv_prog_cc_c89=$ac_arg
 2943: fi
 2944: rm -f core conftest.err conftest.$ac_objext
 2945:   test "x$ac_cv_prog_cc_c89" != "xno" && break
 2946: done
 2947: rm -f conftest.$ac_ext
 2948: CC=$ac_save_CC
 2949: 
 2950: fi
 2951: # AC_CACHE_VAL
 2952: case "x$ac_cv_prog_cc_c89" in
 2953:   x)
 2954:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 2955: $as_echo "none needed" >&6; } ;;
 2956:   xno)
 2957:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 2958: $as_echo "unsupported" >&6; } ;;
 2959:   *)
 2960:     CC="$CC $ac_cv_prog_cc_c89"
 2961:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 2962: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 2963: esac
 2964: if test "x$ac_cv_prog_cc_c89" != xno; then :
 2965: 
 2966: fi
 2967: 
 2968: ac_ext=c
 2969: ac_cpp='$CPP $CPPFLAGS'
 2970: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2971: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2972: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2973: 
 2974: if test -n "$ac_tool_prefix"; then
 2975:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 2976: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 2977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2978: $as_echo_n "checking for $ac_word... " >&6; }
 2979: if ${ac_cv_prog_RANLIB+:} false; then :
 2980:   $as_echo_n "(cached) " >&6
 2981: else
 2982:   if test -n "$RANLIB"; then
 2983:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 2984: else
 2985: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2986: for as_dir in $PATH
 2987: do
 2988:   IFS=$as_save_IFS
 2989:   test -z "$as_dir" && as_dir=.
 2990:     for ac_exec_ext in '' $ac_executable_extensions; do
 2991:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2992:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 2993:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2994:     break 2
 2995:   fi
 2996: done
 2997:   done
 2998: IFS=$as_save_IFS
 2999: 
 3000: fi
 3001: fi
 3002: RANLIB=$ac_cv_prog_RANLIB
 3003: if test -n "$RANLIB"; then
 3004:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 3005: $as_echo "$RANLIB" >&6; }
 3006: else
 3007:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3008: $as_echo "no" >&6; }
 3009: fi
 3010: 
 3011: 
 3012: fi
 3013: if test -z "$ac_cv_prog_RANLIB"; then
 3014:   ac_ct_RANLIB=$RANLIB
 3015:   # Extract the first word of "ranlib", so it can be a program name with args.
 3016: set dummy ranlib; ac_word=$2
 3017: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3018: $as_echo_n "checking for $ac_word... " >&6; }
 3019: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 3020:   $as_echo_n "(cached) " >&6
 3021: else
 3022:   if test -n "$ac_ct_RANLIB"; then
 3023:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 3024: else
 3025: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3026: for as_dir in $PATH
 3027: do
 3028:   IFS=$as_save_IFS
 3029:   test -z "$as_dir" && as_dir=.
 3030:     for ac_exec_ext in '' $ac_executable_extensions; do
 3031:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3032:     ac_cv_prog_ac_ct_RANLIB="ranlib"
 3033:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3034:     break 2
 3035:   fi
 3036: done
 3037:   done
 3038: IFS=$as_save_IFS
 3039: 
 3040: fi
 3041: fi
 3042: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 3043: if test -n "$ac_ct_RANLIB"; then
 3044:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 3045: $as_echo "$ac_ct_RANLIB" >&6; }
 3046: else
 3047:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3048: $as_echo "no" >&6; }
 3049: fi
 3050: 
 3051:   if test "x$ac_ct_RANLIB" = x; then
 3052:     RANLIB=":"
 3053:   else
 3054:     case $cross_compiling:$ac_tool_warned in
 3055: yes:)
 3056: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3057: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3058: ac_tool_warned=yes ;;
 3059: esac
 3060:     RANLIB=$ac_ct_RANLIB
 3061:   fi
 3062: else
 3063:   RANLIB="$ac_cv_prog_RANLIB"
 3064: fi
 3065: 
 3066: ac_aux_dir=
 3067: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 3068:   if test -f "$ac_dir/install-sh"; then
 3069:     ac_aux_dir=$ac_dir
 3070:     ac_install_sh="$ac_aux_dir/install-sh -c"
 3071:     break
 3072:   elif test -f "$ac_dir/install.sh"; then
 3073:     ac_aux_dir=$ac_dir
 3074:     ac_install_sh="$ac_aux_dir/install.sh -c"
 3075:     break
 3076:   elif test -f "$ac_dir/shtool"; then
 3077:     ac_aux_dir=$ac_dir
 3078:     ac_install_sh="$ac_aux_dir/shtool install -c"
 3079:     break
 3080:   fi
 3081: done
 3082: if test -z "$ac_aux_dir"; then
 3083:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 3084: fi
 3085: 
 3086: # These three variables are undocumented and unsupported,
 3087: # and are intended to be withdrawn in a future Autoconf release.
 3088: # They can cause serious problems if a builder's source tree is in a directory
 3089: # whose full name contains unusual characters.
 3090: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 3091: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 3092: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 3093: 
 3094: 
 3095: # Find a good install program.  We prefer a C program (faster),
 3096: # so one script is as good as another.  But avoid the broken or
 3097: # incompatible versions:
 3098: # SysV /etc/install, /usr/sbin/install
 3099: # SunOS /usr/etc/install
 3100: # IRIX /sbin/install
 3101: # AIX /bin/install
 3102: # AmigaOS /C/install, which installs bootblocks on floppy discs
 3103: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 3104: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 3105: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 3106: # OS/2's system install, which has a completely different semantic
 3107: # ./install, which can be erroneously created by make from ./install.sh.
 3108: # Reject install programs that cannot install multiple files.
 3109: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 3110: $as_echo_n "checking for a BSD-compatible install... " >&6; }
 3111: if test -z "$INSTALL"; then
 3112: if ${ac_cv_path_install+:} false; then :
 3113:   $as_echo_n "(cached) " >&6
 3114: else
 3115:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3116: for as_dir in $PATH
 3117: do
 3118:   IFS=$as_save_IFS
 3119:   test -z "$as_dir" && as_dir=.
 3120:     # Account for people who put trailing slashes in PATH elements.
 3121: case $as_dir/ in #((
 3122:   ./ | .// | /[cC]/* | \
 3123:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 3124:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 3125:   /usr/ucb/* ) ;;
 3126:   *)
 3127:     # OSF1 and SCO ODT 3.0 have their own names for install.
 3128:     # Don't use installbsd from OSF since it installs stuff as root
 3129:     # by default.
 3130:     for ac_prog in ginstall scoinst install; do
 3131:       for ac_exec_ext in '' $ac_executable_extensions; do
 3132: 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 3133: 	  if test $ac_prog = install &&
 3134: 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 3135: 	    # AIX install.  It has an incompatible calling convention.
 3136: 	    :
 3137: 	  elif test $ac_prog = install &&
 3138: 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 3139: 	    # program-specific install script used by HP pwplus--don't use.
 3140: 	    :
 3141: 	  else
 3142: 	    rm -rf conftest.one conftest.two conftest.dir
 3143: 	    echo one > conftest.one
 3144: 	    echo two > conftest.two
 3145: 	    mkdir conftest.dir
 3146: 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 3147: 	      test -s conftest.one && test -s conftest.two &&
 3148: 	      test -s conftest.dir/conftest.one &&
 3149: 	      test -s conftest.dir/conftest.two
 3150: 	    then
 3151: 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 3152: 	      break 3
 3153: 	    fi
 3154: 	  fi
 3155: 	fi
 3156:       done
 3157:     done
 3158:     ;;
 3159: esac
 3160: 
 3161:   done
 3162: IFS=$as_save_IFS
 3163: 
 3164: rm -rf conftest.one conftest.two conftest.dir
 3165: 
 3166: fi
 3167:   if test "${ac_cv_path_install+set}" = set; then
 3168:     INSTALL=$ac_cv_path_install
 3169:   else
 3170:     # As a last resort, use the slow shell script.  Don't cache a
 3171:     # value for INSTALL within a source directory, because that will
 3172:     # break other packages using the cache if that directory is
 3173:     # removed, or if the value is a relative name.
 3174:     INSTALL=$ac_install_sh
 3175:   fi
 3176: fi
 3177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 3178: $as_echo "$INSTALL" >&6; }
 3179: 
 3180: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 3181: # It thinks the first close brace ends the variable substitution.
 3182: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 3183: 
 3184: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 3185: 
 3186: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 3187: 
 3188: 
 3189: # Make sure we can run config.sub.
 3190: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 3191:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 3192: 
 3193: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 3194: $as_echo_n "checking build system type... " >&6; }
 3195: if ${ac_cv_build+:} false; then :
 3196:   $as_echo_n "(cached) " >&6
 3197: else
 3198:   ac_build_alias=$build_alias
 3199: test "x$ac_build_alias" = x &&
 3200:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 3201: test "x$ac_build_alias" = x &&
 3202:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 3203: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 3204:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 3205: 
 3206: fi
 3207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 3208: $as_echo "$ac_cv_build" >&6; }
 3209: case $ac_cv_build in
 3210: *-*-*) ;;
 3211: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 3212: esac
 3213: build=$ac_cv_build
 3214: ac_save_IFS=$IFS; IFS='-'
 3215: set x $ac_cv_build
 3216: shift
 3217: build_cpu=$1
 3218: build_vendor=$2
 3219: shift; shift
 3220: # Remember, the first character of IFS is used to create $*,
 3221: # except with old shells:
 3222: build_os=$*
 3223: IFS=$ac_save_IFS
 3224: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 3225: 
 3226: 
 3227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 3228: $as_echo_n "checking host system type... " >&6; }
 3229: if ${ac_cv_host+:} false; then :
 3230:   $as_echo_n "(cached) " >&6
 3231: else
 3232:   if test "x$host_alias" = x; then
 3233:   ac_cv_host=$ac_cv_build
 3234: else
 3235:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 3236:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 3237: fi
 3238: 
 3239: fi
 3240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 3241: $as_echo "$ac_cv_host" >&6; }
 3242: case $ac_cv_host in
 3243: *-*-*) ;;
 3244: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 3245: esac
 3246: host=$ac_cv_host
 3247: ac_save_IFS=$IFS; IFS='-'
 3248: set x $ac_cv_host
 3249: shift
 3250: host_cpu=$1
 3251: host_vendor=$2
 3252: shift; shift
 3253: # Remember, the first character of IFS is used to create $*,
 3254: # except with old shells:
 3255: host_os=$*
 3256: IFS=$ac_save_IFS
 3257: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 3258: 
 3259: 
 3260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 3261: $as_echo_n "checking target system type... " >&6; }
 3262: if ${ac_cv_target+:} false; then :
 3263:   $as_echo_n "(cached) " >&6
 3264: else
 3265:   if test "x$target_alias" = x; then
 3266:   ac_cv_target=$ac_cv_host
 3267: else
 3268:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 3269:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 3270: fi
 3271: 
 3272: fi
 3273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 3274: $as_echo "$ac_cv_target" >&6; }
 3275: case $ac_cv_target in
 3276: *-*-*) ;;
 3277: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
 3278: esac
 3279: target=$ac_cv_target
 3280: ac_save_IFS=$IFS; IFS='-'
 3281: set x $ac_cv_target
 3282: shift
 3283: target_cpu=$1
 3284: target_vendor=$2
 3285: shift; shift
 3286: # Remember, the first character of IFS is used to create $*,
 3287: # except with old shells:
 3288: target_os=$*
 3289: IFS=$ac_save_IFS
 3290: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 3291: 
 3292: 
 3293: # The aliases save the names the user supplied, while $host etc.
 3294: # will get canonicalized.
 3295: test -n "$target_alias" &&
 3296:   test "$program_prefix$program_suffix$program_transform_name" = \
 3297:     NONENONEs,x,x, &&
 3298:   program_prefix=${target_alias}-
 3299: 
 3300: if test -n "$ac_tool_prefix"; then
 3301:   # Extract the first word of "${ac_tool_prefix}mkdep", so it can be a program name with args.
 3302: set dummy ${ac_tool_prefix}mkdep; ac_word=$2
 3303: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3304: $as_echo_n "checking for $ac_word... " >&6; }
 3305: if ${ac_cv_prog_MKDEP+:} false; then :
 3306:   $as_echo_n "(cached) " >&6
 3307: else
 3308:   if test -n "$MKDEP"; then
 3309:   ac_cv_prog_MKDEP="$MKDEP" # Let the user override the test.
 3310: else
 3311: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3312: for as_dir in $PATH
 3313: do
 3314:   IFS=$as_save_IFS
 3315:   test -z "$as_dir" && as_dir=.
 3316:     for ac_exec_ext in '' $ac_executable_extensions; do
 3317:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3318:     ac_cv_prog_MKDEP="${ac_tool_prefix}mkdep"
 3319:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3320:     break 2
 3321:   fi
 3322: done
 3323:   done
 3324: IFS=$as_save_IFS
 3325: 
 3326: fi
 3327: fi
 3328: MKDEP=$ac_cv_prog_MKDEP
 3329: if test -n "$MKDEP"; then
 3330:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
 3331: $as_echo "$MKDEP" >&6; }
 3332: else
 3333:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3334: $as_echo "no" >&6; }
 3335: fi
 3336: 
 3337: 
 3338: fi
 3339: if test -z "$ac_cv_prog_MKDEP"; then
 3340:   ac_ct_MKDEP=$MKDEP
 3341:   # Extract the first word of "mkdep", so it can be a program name with args.
 3342: set dummy mkdep; ac_word=$2
 3343: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3344: $as_echo_n "checking for $ac_word... " >&6; }
 3345: if ${ac_cv_prog_ac_ct_MKDEP+:} false; then :
 3346:   $as_echo_n "(cached) " >&6
 3347: else
 3348:   if test -n "$ac_ct_MKDEP"; then
 3349:   ac_cv_prog_ac_ct_MKDEP="$ac_ct_MKDEP" # Let the user override the test.
 3350: else
 3351: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3352: for as_dir in $PATH
 3353: do
 3354:   IFS=$as_save_IFS
 3355:   test -z "$as_dir" && as_dir=.
 3356:     for ac_exec_ext in '' $ac_executable_extensions; do
 3357:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3358:     ac_cv_prog_ac_ct_MKDEP="mkdep"
 3359:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3360:     break 2
 3361:   fi
 3362: done
 3363:   done
 3364: IFS=$as_save_IFS
 3365: 
 3366: fi
 3367: fi
 3368: ac_ct_MKDEP=$ac_cv_prog_ac_ct_MKDEP
 3369: if test -n "$ac_ct_MKDEP"; then
 3370:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MKDEP" >&5
 3371: $as_echo "$ac_ct_MKDEP" >&6; }
 3372: else
 3373:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3374: $as_echo "no" >&6; }
 3375: fi
 3376: 
 3377:   if test "x$ac_ct_MKDEP" = x; then
 3378:     MKDEP="no"
 3379:   else
 3380:     case $cross_compiling:$ac_tool_warned in
 3381: yes:)
 3382: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3383: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3384: ac_tool_warned=yes ;;
 3385: esac
 3386:     MKDEP=$ac_ct_MKDEP
 3387:   fi
 3388: else
 3389:   MKDEP="$ac_cv_prog_MKDEP"
 3390: fi
 3391: 
 3392: 
 3393: 
 3394: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
 3395: LDFLAGS="${LDFLAGS}"
 3396: 
 3397: 
 3398: # Checks for libraries.
 3399: 
 3400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
 3401: $as_echo_n "checking for openpty in -lutil... " >&6; }
 3402: if ${ac_cv_lib_util_openpty+:} false; then :
 3403:   $as_echo_n "(cached) " >&6
 3404: else
 3405:   ac_check_lib_save_LIBS=$LIBS
 3406: LIBS="-lutil  $LIBS"
 3407: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3408: /* end confdefs.h.  */
 3409: 
 3410: /* Override any GCC internal prototype to avoid an error.
 3411:    Use char because int might match the return type of a GCC
 3412:    builtin and then its argument prototype would still apply.  */
 3413: #ifdef __cplusplus
 3414: extern "C"
 3415: #endif
 3416: char openpty ();
 3417: int
 3418: main ()
 3419: {
 3420: return openpty ();
 3421:   ;
 3422:   return 0;
 3423: }
 3424: _ACEOF
 3425: if ac_fn_c_try_link "$LINENO"; then :
 3426:   ac_cv_lib_util_openpty=yes
 3427: else
 3428:   ac_cv_lib_util_openpty=no
 3429: fi
 3430: rm -f core conftest.err conftest.$ac_objext \
 3431:     conftest$ac_exeext conftest.$ac_ext
 3432: LIBS=$ac_check_lib_save_LIBS
 3433: fi
 3434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
 3435: $as_echo "$ac_cv_lib_util_openpty" >&6; }
 3436: if test "x$ac_cv_lib_util_openpty" = xyes; then :
 3437:   cat >>confdefs.h <<_ACEOF
 3438: #define HAVE_LIBUTIL 1
 3439: _ACEOF
 3440: 
 3441:   LIBS="-lutil $LIBS"
 3442: 
 3443: fi
 3444: 
 3445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BF_set_key in -lcrypto" >&5
 3446: $as_echo_n "checking for BF_set_key in -lcrypto... " >&6; }
 3447: if ${ac_cv_lib_crypto_BF_set_key+:} false; then :
 3448:   $as_echo_n "(cached) " >&6
 3449: else
 3450:   ac_check_lib_save_LIBS=$LIBS
 3451: LIBS="-lcrypto  $LIBS"
 3452: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3453: /* end confdefs.h.  */
 3454: 
 3455: /* Override any GCC internal prototype to avoid an error.
 3456:    Use char because int might match the return type of a GCC
 3457:    builtin and then its argument prototype would still apply.  */
 3458: #ifdef __cplusplus
 3459: extern "C"
 3460: #endif
 3461: char BF_set_key ();
 3462: int
 3463: main ()
 3464: {
 3465: return BF_set_key ();
 3466:   ;
 3467:   return 0;
 3468: }
 3469: _ACEOF
 3470: if ac_fn_c_try_link "$LINENO"; then :
 3471:   ac_cv_lib_crypto_BF_set_key=yes
 3472: else
 3473:   ac_cv_lib_crypto_BF_set_key=no
 3474: fi
 3475: rm -f core conftest.err conftest.$ac_objext \
 3476:     conftest$ac_exeext conftest.$ac_ext
 3477: LIBS=$ac_check_lib_save_LIBS
 3478: fi
 3479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BF_set_key" >&5
 3480: $as_echo "$ac_cv_lib_crypto_BF_set_key" >&6; }
 3481: if test "x$ac_cv_lib_crypto_BF_set_key" = xyes; then :
 3482:   cat >>confdefs.h <<_ACEOF
 3483: #define HAVE_LIBCRYPTO 1
 3484: _ACEOF
 3485: 
 3486:   LIBS="-lcrypto $LIBS"
 3487: 
 3488: fi
 3489: 
 3490: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
 3491: $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
 3492: if ${ac_cv_lib_pthread_pthread_create+:} false; then :
 3493:   $as_echo_n "(cached) " >&6
 3494: else
 3495:   ac_check_lib_save_LIBS=$LIBS
 3496: LIBS="-lpthread  $LIBS"
 3497: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3498: /* end confdefs.h.  */
 3499: 
 3500: /* Override any GCC internal prototype to avoid an error.
 3501:    Use char because int might match the return type of a GCC
 3502:    builtin and then its argument prototype would still apply.  */
 3503: #ifdef __cplusplus
 3504: extern "C"
 3505: #endif
 3506: char pthread_create ();
 3507: int
 3508: main ()
 3509: {
 3510: return pthread_create ();
 3511:   ;
 3512:   return 0;
 3513: }
 3514: _ACEOF
 3515: if ac_fn_c_try_link "$LINENO"; then :
 3516:   ac_cv_lib_pthread_pthread_create=yes
 3517: else
 3518:   ac_cv_lib_pthread_pthread_create=no
 3519: fi
 3520: rm -f core conftest.err conftest.$ac_objext \
 3521:     conftest$ac_exeext conftest.$ac_ext
 3522: LIBS=$ac_check_lib_save_LIBS
 3523: fi
 3524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
 3525: $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
 3526: if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
 3527:   cat >>confdefs.h <<_ACEOF
 3528: #define HAVE_LIBPTHREAD 1
 3529: _ACEOF
 3530: 
 3531:   LIBS="-lpthread $LIBS"
 3532: 
 3533: fi
 3534: 
 3535: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_reset in -lsqlite3" >&5
 3536: $as_echo_n "checking for sqlite3_reset in -lsqlite3... " >&6; }
 3537: if ${ac_cv_lib_sqlite3_sqlite3_reset+:} false; then :
 3538:   $as_echo_n "(cached) " >&6
 3539: else
 3540:   ac_check_lib_save_LIBS=$LIBS
 3541: LIBS="-lsqlite3  $LIBS"
 3542: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3543: /* end confdefs.h.  */
 3544: 
 3545: /* Override any GCC internal prototype to avoid an error.
 3546:    Use char because int might match the return type of a GCC
 3547:    builtin and then its argument prototype would still apply.  */
 3548: #ifdef __cplusplus
 3549: extern "C"
 3550: #endif
 3551: char sqlite3_reset ();
 3552: int
 3553: main ()
 3554: {
 3555: return sqlite3_reset ();
 3556:   ;
 3557:   return 0;
 3558: }
 3559: _ACEOF
 3560: if ac_fn_c_try_link "$LINENO"; then :
 3561:   ac_cv_lib_sqlite3_sqlite3_reset=yes
 3562: else
 3563:   ac_cv_lib_sqlite3_sqlite3_reset=no
 3564: fi
 3565: rm -f core conftest.err conftest.$ac_objext \
 3566:     conftest$ac_exeext conftest.$ac_ext
 3567: LIBS=$ac_check_lib_save_LIBS
 3568: fi
 3569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_reset" >&5
 3570: $as_echo "$ac_cv_lib_sqlite3_sqlite3_reset" >&6; }
 3571: if test "x$ac_cv_lib_sqlite3_sqlite3_reset" = xyes; then :
 3572:   cat >>confdefs.h <<_ACEOF
 3573: #define HAVE_LIBSQLITE3 1
 3574: _ACEOF
 3575: 
 3576:   LIBS="-lsqlite3 $LIBS"
 3577: 
 3578: fi
 3579: 
 3580: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ait_allocVar in -lelwix" >&5
 3581: $as_echo_n "checking for ait_allocVar in -lelwix... " >&6; }
 3582: if ${ac_cv_lib_elwix_ait_allocVar+:} false; then :
 3583:   $as_echo_n "(cached) " >&6
 3584: else
 3585:   ac_check_lib_save_LIBS=$LIBS
 3586: LIBS="-lelwix  $LIBS"
 3587: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3588: /* end confdefs.h.  */
 3589: 
 3590: /* Override any GCC internal prototype to avoid an error.
 3591:    Use char because int might match the return type of a GCC
 3592:    builtin and then its argument prototype would still apply.  */
 3593: #ifdef __cplusplus
 3594: extern "C"
 3595: #endif
 3596: char ait_allocVar ();
 3597: int
 3598: main ()
 3599: {
 3600: return ait_allocVar ();
 3601:   ;
 3602:   return 0;
 3603: }
 3604: _ACEOF
 3605: if ac_fn_c_try_link "$LINENO"; then :
 3606:   ac_cv_lib_elwix_ait_allocVar=yes
 3607: else
 3608:   ac_cv_lib_elwix_ait_allocVar=no
 3609: fi
 3610: rm -f core conftest.err conftest.$ac_objext \
 3611:     conftest$ac_exeext conftest.$ac_ext
 3612: LIBS=$ac_check_lib_save_LIBS
 3613: fi
 3614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elwix_ait_allocVar" >&5
 3615: $as_echo "$ac_cv_lib_elwix_ait_allocVar" >&6; }
 3616: if test "x$ac_cv_lib_elwix_ait_allocVar" = xyes; then :
 3617:   cat >>confdefs.h <<_ACEOF
 3618: #define HAVE_LIBELWIX 1
 3619: _ACEOF
 3620: 
 3621:   LIBS="-lelwix $LIBS"
 3622: 
 3623: fi
 3624: 
 3625: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfgLoadConfig in -laitcfg" >&5
 3626: $as_echo_n "checking for cfgLoadConfig in -laitcfg... " >&6; }
 3627: if ${ac_cv_lib_aitcfg_cfgLoadConfig+:} false; then :
 3628:   $as_echo_n "(cached) " >&6
 3629: else
 3630:   ac_check_lib_save_LIBS=$LIBS
 3631: LIBS="-laitcfg  $LIBS"
 3632: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3633: /* end confdefs.h.  */
 3634: 
 3635: /* Override any GCC internal prototype to avoid an error.
 3636:    Use char because int might match the return type of a GCC
 3637:    builtin and then its argument prototype would still apply.  */
 3638: #ifdef __cplusplus
 3639: extern "C"
 3640: #endif
 3641: char cfgLoadConfig ();
 3642: int
 3643: main ()
 3644: {
 3645: return cfgLoadConfig ();
 3646:   ;
 3647:   return 0;
 3648: }
 3649: _ACEOF
 3650: if ac_fn_c_try_link "$LINENO"; then :
 3651:   ac_cv_lib_aitcfg_cfgLoadConfig=yes
 3652: else
 3653:   ac_cv_lib_aitcfg_cfgLoadConfig=no
 3654: fi
 3655: rm -f core conftest.err conftest.$ac_objext \
 3656:     conftest$ac_exeext conftest.$ac_ext
 3657: LIBS=$ac_check_lib_save_LIBS
 3658: fi
 3659: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aitcfg_cfgLoadConfig" >&5
 3660: $as_echo "$ac_cv_lib_aitcfg_cfgLoadConfig" >&6; }
 3661: if test "x$ac_cv_lib_aitcfg_cfgLoadConfig" = xyes; then :
 3662:   cat >>confdefs.h <<_ACEOF
 3663: #define HAVE_LIBAITCFG 1
 3664: _ACEOF
 3665: 
 3666:   LIBS="-laitcfg $LIBS"
 3667: 
 3668: fi
 3669: 
 3670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mqtt_msgAlloc in -laitmqtt" >&5
 3671: $as_echo_n "checking for mqtt_msgAlloc in -laitmqtt... " >&6; }
 3672: if ${ac_cv_lib_aitmqtt_mqtt_msgAlloc+:} false; then :
 3673:   $as_echo_n "(cached) " >&6
 3674: else
 3675:   ac_check_lib_save_LIBS=$LIBS
 3676: LIBS="-laitmqtt  $LIBS"
 3677: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3678: /* end confdefs.h.  */
 3679: 
 3680: /* Override any GCC internal prototype to avoid an error.
 3681:    Use char because int might match the return type of a GCC
 3682:    builtin and then its argument prototype would still apply.  */
 3683: #ifdef __cplusplus
 3684: extern "C"
 3685: #endif
 3686: char mqtt_msgAlloc ();
 3687: int
 3688: main ()
 3689: {
 3690: return mqtt_msgAlloc ();
 3691:   ;
 3692:   return 0;
 3693: }
 3694: _ACEOF
 3695: if ac_fn_c_try_link "$LINENO"; then :
 3696:   ac_cv_lib_aitmqtt_mqtt_msgAlloc=yes
 3697: else
 3698:   ac_cv_lib_aitmqtt_mqtt_msgAlloc=no
 3699: fi
 3700: rm -f core conftest.err conftest.$ac_objext \
 3701:     conftest$ac_exeext conftest.$ac_ext
 3702: LIBS=$ac_check_lib_save_LIBS
 3703: fi
 3704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aitmqtt_mqtt_msgAlloc" >&5
 3705: $as_echo "$ac_cv_lib_aitmqtt_mqtt_msgAlloc" >&6; }
 3706: if test "x$ac_cv_lib_aitmqtt_mqtt_msgAlloc" = xyes; then :
 3707:   cat >>confdefs.h <<_ACEOF
 3708: #define HAVE_LIBAITMQTT 1
 3709: _ACEOF
 3710: 
 3711:   LIBS="-laitmqtt $LIBS"
 3712: 
 3713: fi
 3714: 
 3715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for schedRun in -laitsched" >&5
 3716: $as_echo_n "checking for schedRun in -laitsched... " >&6; }
 3717: if ${ac_cv_lib_aitsched_schedRun+:} false; then :
 3718:   $as_echo_n "(cached) " >&6
 3719: else
 3720:   ac_check_lib_save_LIBS=$LIBS
 3721: LIBS="-laitsched  $LIBS"
 3722: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3723: /* end confdefs.h.  */
 3724: 
 3725: /* Override any GCC internal prototype to avoid an error.
 3726:    Use char because int might match the return type of a GCC
 3727:    builtin and then its argument prototype would still apply.  */
 3728: #ifdef __cplusplus
 3729: extern "C"
 3730: #endif
 3731: char schedRun ();
 3732: int
 3733: main ()
 3734: {
 3735: return schedRun ();
 3736:   ;
 3737:   return 0;
 3738: }
 3739: _ACEOF
 3740: if ac_fn_c_try_link "$LINENO"; then :
 3741:   ac_cv_lib_aitsched_schedRun=yes
 3742: else
 3743:   ac_cv_lib_aitsched_schedRun=no
 3744: fi
 3745: rm -f core conftest.err conftest.$ac_objext \
 3746:     conftest$ac_exeext conftest.$ac_ext
 3747: LIBS=$ac_check_lib_save_LIBS
 3748: fi
 3749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aitsched_schedRun" >&5
 3750: $as_echo "$ac_cv_lib_aitsched_schedRun" >&6; }
 3751: if test "x$ac_cv_lib_aitsched_schedRun" = xyes; then :
 3752:   cat >>confdefs.h <<_ACEOF
 3753: #define HAVE_LIBAITSCHED 1
 3754: _ACEOF
 3755: 
 3756:   LIBS="-laitsched $LIBS"
 3757: 
 3758: fi
 3759: 
 3760: 
 3761: # Checks for header files.
 3762: ac_ext=c
 3763: ac_cpp='$CPP $CPPFLAGS'
 3764: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3765: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3766: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 3768: $as_echo_n "checking how to run the C preprocessor... " >&6; }
 3769: # On Suns, sometimes $CPP names a directory.
 3770: if test -n "$CPP" && test -d "$CPP"; then
 3771:   CPP=
 3772: fi
 3773: if test -z "$CPP"; then
 3774:   if ${ac_cv_prog_CPP+:} false; then :
 3775:   $as_echo_n "(cached) " >&6
 3776: else
 3777:       # Double quotes because CPP needs to be expanded
 3778:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 3779:     do
 3780:       ac_preproc_ok=false
 3781: for ac_c_preproc_warn_flag in '' yes
 3782: do
 3783:   # Use a header file that comes with gcc, so configuring glibc
 3784:   # with a fresh cross-compiler works.
 3785:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 3786:   # <limits.h> exists even on freestanding compilers.
 3787:   # On the NeXT, cc -E runs the code through the compiler's parser,
 3788:   # not just through cpp. "Syntax error" is here to catch this case.
 3789:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3790: /* end confdefs.h.  */
 3791: #ifdef __STDC__
 3792: # include <limits.h>
 3793: #else
 3794: # include <assert.h>
 3795: #endif
 3796: 		     Syntax error
 3797: _ACEOF
 3798: if ac_fn_c_try_cpp "$LINENO"; then :
 3799: 
 3800: else
 3801:   # Broken: fails on valid input.
 3802: continue
 3803: fi
 3804: rm -f conftest.err conftest.i conftest.$ac_ext
 3805: 
 3806:   # OK, works on sane cases.  Now check whether nonexistent headers
 3807:   # can be detected and how.
 3808:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3809: /* end confdefs.h.  */
 3810: #include <ac_nonexistent.h>
 3811: _ACEOF
 3812: if ac_fn_c_try_cpp "$LINENO"; then :
 3813:   # Broken: success on invalid input.
 3814: continue
 3815: else
 3816:   # Passes both tests.
 3817: ac_preproc_ok=:
 3818: break
 3819: fi
 3820: rm -f conftest.err conftest.i conftest.$ac_ext
 3821: 
 3822: done
 3823: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 3824: rm -f conftest.i conftest.err conftest.$ac_ext
 3825: if $ac_preproc_ok; then :
 3826:   break
 3827: fi
 3828: 
 3829:     done
 3830:     ac_cv_prog_CPP=$CPP
 3831: 
 3832: fi
 3833:   CPP=$ac_cv_prog_CPP
 3834: else
 3835:   ac_cv_prog_CPP=$CPP
 3836: fi
 3837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 3838: $as_echo "$CPP" >&6; }
 3839: ac_preproc_ok=false
 3840: for ac_c_preproc_warn_flag in '' yes
 3841: do
 3842:   # Use a header file that comes with gcc, so configuring glibc
 3843:   # with a fresh cross-compiler works.
 3844:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 3845:   # <limits.h> exists even on freestanding compilers.
 3846:   # On the NeXT, cc -E runs the code through the compiler's parser,
 3847:   # not just through cpp. "Syntax error" is here to catch this case.
 3848:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3849: /* end confdefs.h.  */
 3850: #ifdef __STDC__
 3851: # include <limits.h>
 3852: #else
 3853: # include <assert.h>
 3854: #endif
 3855: 		     Syntax error
 3856: _ACEOF
 3857: if ac_fn_c_try_cpp "$LINENO"; then :
 3858: 
 3859: else
 3860:   # Broken: fails on valid input.
 3861: continue
 3862: fi
 3863: rm -f conftest.err conftest.i conftest.$ac_ext
 3864: 
 3865:   # OK, works on sane cases.  Now check whether nonexistent headers
 3866:   # can be detected and how.
 3867:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3868: /* end confdefs.h.  */
 3869: #include <ac_nonexistent.h>
 3870: _ACEOF
 3871: if ac_fn_c_try_cpp "$LINENO"; then :
 3872:   # Broken: success on invalid input.
 3873: continue
 3874: else
 3875:   # Passes both tests.
 3876: ac_preproc_ok=:
 3877: break
 3878: fi
 3879: rm -f conftest.err conftest.i conftest.$ac_ext
 3880: 
 3881: done
 3882: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 3883: rm -f conftest.i conftest.err conftest.$ac_ext
 3884: if $ac_preproc_ok; then :
 3885: 
 3886: else
 3887:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3888: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3889: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 3890: See \`config.log' for more details" "$LINENO" 5; }
 3891: fi
 3892: 
 3893: ac_ext=c
 3894: ac_cpp='$CPP $CPPFLAGS'
 3895: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3896: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3897: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3898: 
 3899: 
 3900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 3901: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 3902: if ${ac_cv_path_GREP+:} false; then :
 3903:   $as_echo_n "(cached) " >&6
 3904: else
 3905:   if test -z "$GREP"; then
 3906:   ac_path_GREP_found=false
 3907:   # Loop through the user's path and test for each of PROGNAME-LIST
 3908:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3909: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 3910: do
 3911:   IFS=$as_save_IFS
 3912:   test -z "$as_dir" && as_dir=.
 3913:     for ac_prog in grep ggrep; do
 3914:     for ac_exec_ext in '' $ac_executable_extensions; do
 3915:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 3916:       as_fn_executable_p "$ac_path_GREP" || continue
 3917: # Check for GNU ac_path_GREP and select it if it is found.
 3918:   # Check for GNU $ac_path_GREP
 3919: case `"$ac_path_GREP" --version 2>&1` in
 3920: *GNU*)
 3921:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 3922: *)
 3923:   ac_count=0
 3924:   $as_echo_n 0123456789 >"conftest.in"
 3925:   while :
 3926:   do
 3927:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 3928:     mv "conftest.tmp" "conftest.in"
 3929:     cp "conftest.in" "conftest.nl"
 3930:     $as_echo 'GREP' >> "conftest.nl"
 3931:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 3932:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 3933:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 3934:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 3935:       # Best one so far, save it but keep looking for a better one
 3936:       ac_cv_path_GREP="$ac_path_GREP"
 3937:       ac_path_GREP_max=$ac_count
 3938:     fi
 3939:     # 10*(2^10) chars as input seems more than enough
 3940:     test $ac_count -gt 10 && break
 3941:   done
 3942:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 3943: esac
 3944: 
 3945:       $ac_path_GREP_found && break 3
 3946:     done
 3947:   done
 3948:   done
 3949: IFS=$as_save_IFS
 3950:   if test -z "$ac_cv_path_GREP"; then
 3951:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 3952:   fi
 3953: else
 3954:   ac_cv_path_GREP=$GREP
 3955: fi
 3956: 
 3957: fi
 3958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 3959: $as_echo "$ac_cv_path_GREP" >&6; }
 3960:  GREP="$ac_cv_path_GREP"
 3961: 
 3962: 
 3963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 3964: $as_echo_n "checking for egrep... " >&6; }
 3965: if ${ac_cv_path_EGREP+:} false; then :
 3966:   $as_echo_n "(cached) " >&6
 3967: else
 3968:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 3969:    then ac_cv_path_EGREP="$GREP -E"
 3970:    else
 3971:      if test -z "$EGREP"; then
 3972:   ac_path_EGREP_found=false
 3973:   # Loop through the user's path and test for each of PROGNAME-LIST
 3974:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3975: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 3976: do
 3977:   IFS=$as_save_IFS
 3978:   test -z "$as_dir" && as_dir=.
 3979:     for ac_prog in egrep; do
 3980:     for ac_exec_ext in '' $ac_executable_extensions; do
 3981:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 3982:       as_fn_executable_p "$ac_path_EGREP" || continue
 3983: # Check for GNU ac_path_EGREP and select it if it is found.
 3984:   # Check for GNU $ac_path_EGREP
 3985: case `"$ac_path_EGREP" --version 2>&1` in
 3986: *GNU*)
 3987:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 3988: *)
 3989:   ac_count=0
 3990:   $as_echo_n 0123456789 >"conftest.in"
 3991:   while :
 3992:   do
 3993:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 3994:     mv "conftest.tmp" "conftest.in"
 3995:     cp "conftest.in" "conftest.nl"
 3996:     $as_echo 'EGREP' >> "conftest.nl"
 3997:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 3998:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 3999:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 4000:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 4001:       # Best one so far, save it but keep looking for a better one
 4002:       ac_cv_path_EGREP="$ac_path_EGREP"
 4003:       ac_path_EGREP_max=$ac_count
 4004:     fi
 4005:     # 10*(2^10) chars as input seems more than enough
 4006:     test $ac_count -gt 10 && break
 4007:   done
 4008:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 4009: esac
 4010: 
 4011:       $ac_path_EGREP_found && break 3
 4012:     done
 4013:   done
 4014:   done
 4015: IFS=$as_save_IFS
 4016:   if test -z "$ac_cv_path_EGREP"; then
 4017:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 4018:   fi
 4019: else
 4020:   ac_cv_path_EGREP=$EGREP
 4021: fi
 4022: 
 4023:    fi
 4024: fi
 4025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 4026: $as_echo "$ac_cv_path_EGREP" >&6; }
 4027:  EGREP="$ac_cv_path_EGREP"
 4028: 
 4029: 
 4030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 4031: $as_echo_n "checking for ANSI C header files... " >&6; }
 4032: if ${ac_cv_header_stdc+:} false; then :
 4033:   $as_echo_n "(cached) " >&6
 4034: else
 4035:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4036: /* end confdefs.h.  */
 4037: #include <stdlib.h>
 4038: #include <stdarg.h>
 4039: #include <string.h>
 4040: #include <float.h>
 4041: 
 4042: int
 4043: main ()
 4044: {
 4045: 
 4046:   ;
 4047:   return 0;
 4048: }
 4049: _ACEOF
 4050: if ac_fn_c_try_compile "$LINENO"; then :
 4051:   ac_cv_header_stdc=yes
 4052: else
 4053:   ac_cv_header_stdc=no
 4054: fi
 4055: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4056: 
 4057: if test $ac_cv_header_stdc = yes; then
 4058:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 4059:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4060: /* end confdefs.h.  */
 4061: #include <string.h>
 4062: 
 4063: _ACEOF
 4064: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4065:   $EGREP "memchr" >/dev/null 2>&1; then :
 4066: 
 4067: else
 4068:   ac_cv_header_stdc=no
 4069: fi
 4070: rm -f conftest*
 4071: 
 4072: fi
 4073: 
 4074: if test $ac_cv_header_stdc = yes; then
 4075:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 4076:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4077: /* end confdefs.h.  */
 4078: #include <stdlib.h>
 4079: 
 4080: _ACEOF
 4081: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4082:   $EGREP "free" >/dev/null 2>&1; then :
 4083: 
 4084: else
 4085:   ac_cv_header_stdc=no
 4086: fi
 4087: rm -f conftest*
 4088: 
 4089: fi
 4090: 
 4091: if test $ac_cv_header_stdc = yes; then
 4092:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 4093:   if test "$cross_compiling" = yes; then :
 4094:   :
 4095: else
 4096:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4097: /* end confdefs.h.  */
 4098: #include <ctype.h>
 4099: #include <stdlib.h>
 4100: #if ((' ' & 0x0FF) == 0x020)
 4101: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 4102: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 4103: #else
 4104: # define ISLOWER(c) \
 4105: 		   (('a' <= (c) && (c) <= 'i') \
 4106: 		     || ('j' <= (c) && (c) <= 'r') \
 4107: 		     || ('s' <= (c) && (c) <= 'z'))
 4108: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 4109: #endif
 4110: 
 4111: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 4112: int
 4113: main ()
 4114: {
 4115:   int i;
 4116:   for (i = 0; i < 256; i++)
 4117:     if (XOR (islower (i), ISLOWER (i))
 4118: 	|| toupper (i) != TOUPPER (i))
 4119:       return 2;
 4120:   return 0;
 4121: }
 4122: _ACEOF
 4123: if ac_fn_c_try_run "$LINENO"; then :
 4124: 
 4125: else
 4126:   ac_cv_header_stdc=no
 4127: fi
 4128: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4129:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4130: fi
 4131: 
 4132: fi
 4133: fi
 4134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 4135: $as_echo "$ac_cv_header_stdc" >&6; }
 4136: if test $ac_cv_header_stdc = yes; then
 4137: 
 4138: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 4139: 
 4140: fi
 4141: 
 4142: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 4143: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 4144: 		  inttypes.h stdint.h unistd.h
 4145: do :
 4146:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4147: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 4148: "
 4149: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 4150:   cat >>confdefs.h <<_ACEOF
 4151: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4152: _ACEOF
 4153: 
 4154: fi
 4155: 
 4156: done
 4157: 
 4158: 
 4159: for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h syslog.h unistd.h
 4160: do :
 4161:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4162: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 4163: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 4164:   cat >>confdefs.h <<_ACEOF
 4165: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4166: _ACEOF
 4167: 
 4168: fi
 4169: 
 4170: done
 4171: 
 4172: 
 4173: # Checks for typedefs, structures, and compiler characteristics.
 4174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 4175: $as_echo_n "checking for inline... " >&6; }
 4176: if ${ac_cv_c_inline+:} false; then :
 4177:   $as_echo_n "(cached) " >&6
 4178: else
 4179:   ac_cv_c_inline=no
 4180: for ac_kw in inline __inline__ __inline; do
 4181:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4182: /* end confdefs.h.  */
 4183: #ifndef __cplusplus
 4184: typedef int foo_t;
 4185: static $ac_kw foo_t static_foo () {return 0; }
 4186: $ac_kw foo_t foo () {return 0; }
 4187: #endif
 4188: 
 4189: _ACEOF
 4190: if ac_fn_c_try_compile "$LINENO"; then :
 4191:   ac_cv_c_inline=$ac_kw
 4192: fi
 4193: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4194:   test "$ac_cv_c_inline" != no && break
 4195: done
 4196: 
 4197: fi
 4198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 4199: $as_echo "$ac_cv_c_inline" >&6; }
 4200: 
 4201: case $ac_cv_c_inline in
 4202:   inline | yes) ;;
 4203:   *)
 4204:     case $ac_cv_c_inline in
 4205:       no) ac_val=;;
 4206:       *) ac_val=$ac_cv_c_inline;;
 4207:     esac
 4208:     cat >>confdefs.h <<_ACEOF
 4209: #ifndef __cplusplus
 4210: #define inline $ac_val
 4211: #endif
 4212: _ACEOF
 4213:     ;;
 4214: esac
 4215: 
 4216: 
 4217: # Checks for library functions.
 4218: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 4219: if test "x$ac_cv_type_pid_t" = xyes; then :
 4220: 
 4221: else
 4222: 
 4223: cat >>confdefs.h <<_ACEOF
 4224: #define pid_t int
 4225: _ACEOF
 4226: 
 4227: fi
 4228: 
 4229: for ac_header in vfork.h
 4230: do :
 4231:   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
 4232: if test "x$ac_cv_header_vfork_h" = xyes; then :
 4233:   cat >>confdefs.h <<_ACEOF
 4234: #define HAVE_VFORK_H 1
 4235: _ACEOF
 4236: 
 4237: fi
 4238: 
 4239: done
 4240: 
 4241: for ac_func in fork vfork
 4242: do :
 4243:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 4244: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 4245: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 4246:   cat >>confdefs.h <<_ACEOF
 4247: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 4248: _ACEOF
 4249: 
 4250: fi
 4251: done
 4252: 
 4253: if test "x$ac_cv_func_fork" = xyes; then
 4254:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
 4255: $as_echo_n "checking for working fork... " >&6; }
 4256: if ${ac_cv_func_fork_works+:} false; then :
 4257:   $as_echo_n "(cached) " >&6
 4258: else
 4259:   if test "$cross_compiling" = yes; then :
 4260:   ac_cv_func_fork_works=cross
 4261: else
 4262:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4263: /* end confdefs.h.  */
 4264: $ac_includes_default
 4265: int
 4266: main ()
 4267: {
 4268: 
 4269: 	  /* By Ruediger Kuhlmann. */
 4270: 	  return fork () < 0;
 4271: 
 4272:   ;
 4273:   return 0;
 4274: }
 4275: _ACEOF
 4276: if ac_fn_c_try_run "$LINENO"; then :
 4277:   ac_cv_func_fork_works=yes
 4278: else
 4279:   ac_cv_func_fork_works=no
 4280: fi
 4281: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4282:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4283: fi
 4284: 
 4285: fi
 4286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
 4287: $as_echo "$ac_cv_func_fork_works" >&6; }
 4288: 
 4289: else
 4290:   ac_cv_func_fork_works=$ac_cv_func_fork
 4291: fi
 4292: if test "x$ac_cv_func_fork_works" = xcross; then
 4293:   case $host in
 4294:     *-*-amigaos* | *-*-msdosdjgpp*)
 4295:       # Override, as these systems have only a dummy fork() stub
 4296:       ac_cv_func_fork_works=no
 4297:       ;;
 4298:     *)
 4299:       ac_cv_func_fork_works=yes
 4300:       ;;
 4301:   esac
 4302:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 4303: $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 4304: fi
 4305: ac_cv_func_vfork_works=$ac_cv_func_vfork
 4306: if test "x$ac_cv_func_vfork" = xyes; then
 4307:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
 4308: $as_echo_n "checking for working vfork... " >&6; }
 4309: if ${ac_cv_func_vfork_works+:} false; then :
 4310:   $as_echo_n "(cached) " >&6
 4311: else
 4312:   if test "$cross_compiling" = yes; then :
 4313:   ac_cv_func_vfork_works=cross
 4314: else
 4315:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4316: /* end confdefs.h.  */
 4317: /* Thanks to Paul Eggert for this test.  */
 4318: $ac_includes_default
 4319: #include <sys/wait.h>
 4320: #ifdef HAVE_VFORK_H
 4321: # include <vfork.h>
 4322: #endif
 4323: /* On some sparc systems, changes by the child to local and incoming
 4324:    argument registers are propagated back to the parent.  The compiler
 4325:    is told about this with #include <vfork.h>, but some compilers
 4326:    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 4327:    static variable whose address is put into a register that is
 4328:    clobbered by the vfork.  */
 4329: static void
 4330: #ifdef __cplusplus
 4331: sparc_address_test (int arg)
 4332: # else
 4333: sparc_address_test (arg) int arg;
 4334: #endif
 4335: {
 4336:   static pid_t child;
 4337:   if (!child) {
 4338:     child = vfork ();
 4339:     if (child < 0) {
 4340:       perror ("vfork");
 4341:       _exit(2);
 4342:     }
 4343:     if (!child) {
 4344:       arg = getpid();
 4345:       write(-1, "", 0);
 4346:       _exit (arg);
 4347:     }
 4348:   }
 4349: }
 4350: 
 4351: int
 4352: main ()
 4353: {
 4354:   pid_t parent = getpid ();
 4355:   pid_t child;
 4356: 
 4357:   sparc_address_test (0);
 4358: 
 4359:   child = vfork ();
 4360: 
 4361:   if (child == 0) {
 4362:     /* Here is another test for sparc vfork register problems.  This
 4363:        test uses lots of local variables, at least as many local
 4364:        variables as main has allocated so far including compiler
 4365:        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 4366:        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 4367:        reuse the register of parent for one of the local variables,
 4368:        since it will think that parent can't possibly be used any more
 4369:        in this routine.  Assigning to the local variable will thus
 4370:        munge parent in the parent process.  */
 4371:     pid_t
 4372:       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 4373:       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 4374:     /* Convince the compiler that p..p7 are live; otherwise, it might
 4375:        use the same hardware register for all 8 local variables.  */
 4376:     if (p != p1 || p != p2 || p != p3 || p != p4
 4377: 	|| p != p5 || p != p6 || p != p7)
 4378:       _exit(1);
 4379: 
 4380:     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 4381:        from child file descriptors.  If the child closes a descriptor
 4382:        before it execs or exits, this munges the parent's descriptor
 4383:        as well.  Test for this by closing stdout in the child.  */
 4384:     _exit(close(fileno(stdout)) != 0);
 4385:   } else {
 4386:     int status;
 4387:     struct stat st;
 4388: 
 4389:     while (wait(&status) != child)
 4390:       ;
 4391:     return (
 4392: 	 /* Was there some problem with vforking?  */
 4393: 	 child < 0
 4394: 
 4395: 	 /* Did the child fail?  (This shouldn't happen.)  */
 4396: 	 || status
 4397: 
 4398: 	 /* Did the vfork/compiler bug occur?  */
 4399: 	 || parent != getpid()
 4400: 
 4401: 	 /* Did the file descriptor bug occur?  */
 4402: 	 || fstat(fileno(stdout), &st) != 0
 4403: 	 );
 4404:   }
 4405: }
 4406: _ACEOF
 4407: if ac_fn_c_try_run "$LINENO"; then :
 4408:   ac_cv_func_vfork_works=yes
 4409: else
 4410:   ac_cv_func_vfork_works=no
 4411: fi
 4412: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4413:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4414: fi
 4415: 
 4416: fi
 4417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
 4418: $as_echo "$ac_cv_func_vfork_works" >&6; }
 4419: 
 4420: fi;
 4421: if test "x$ac_cv_func_fork_works" = xcross; then
 4422:   ac_cv_func_vfork_works=$ac_cv_func_vfork
 4423:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 4424: $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 4425: fi
 4426: 
 4427: if test "x$ac_cv_func_vfork_works" = xyes; then
 4428: 
 4429: $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
 4430: 
 4431: else
 4432: 
 4433: $as_echo "#define vfork fork" >>confdefs.h
 4434: 
 4435: fi
 4436: if test "x$ac_cv_func_fork_works" = xyes; then
 4437: 
 4438: $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
 4439: 
 4440: fi
 4441: 
 4442: for ac_header in stdlib.h
 4443: do :
 4444:   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 4445: if test "x$ac_cv_header_stdlib_h" = xyes; then :
 4446:   cat >>confdefs.h <<_ACEOF
 4447: #define HAVE_STDLIB_H 1
 4448: _ACEOF
 4449: 
 4450: fi
 4451: 
 4452: done
 4453: 
 4454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
 4455: $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
 4456: if ${ac_cv_func_malloc_0_nonnull+:} false; then :
 4457:   $as_echo_n "(cached) " >&6
 4458: else
 4459:   if test "$cross_compiling" = yes; then :
 4460:   ac_cv_func_malloc_0_nonnull=no
 4461: else
 4462:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4463: /* end confdefs.h.  */
 4464: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
 4465: # include <stdlib.h>
 4466: #else
 4467: char *malloc ();
 4468: #endif
 4469: 
 4470: int
 4471: main ()
 4472: {
 4473: return ! malloc (0);
 4474:   ;
 4475:   return 0;
 4476: }
 4477: _ACEOF
 4478: if ac_fn_c_try_run "$LINENO"; then :
 4479:   ac_cv_func_malloc_0_nonnull=yes
 4480: else
 4481:   ac_cv_func_malloc_0_nonnull=no
 4482: fi
 4483: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4484:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4485: fi
 4486: 
 4487: fi
 4488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
 4489: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
 4490: if test $ac_cv_func_malloc_0_nonnull = yes; then :
 4491: 
 4492: $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
 4493: 
 4494: else
 4495:   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
 4496: 
 4497:    case " $LIBOBJS " in
 4498:   *" malloc.$ac_objext "* ) ;;
 4499:   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 4500:  ;;
 4501: esac
 4502: 
 4503: 
 4504: $as_echo "#define malloc rpl_malloc" >>confdefs.h
 4505: 
 4506: fi
 4507: 
 4508: 
 4509: 
 4510: 
 4511: 
 4512:   for ac_header in $ac_header_list
 4513: do :
 4514:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4515: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 4516: "
 4517: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 4518:   cat >>confdefs.h <<_ACEOF
 4519: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4520: _ACEOF
 4521: 
 4522: fi
 4523: 
 4524: done
 4525: 
 4526: 
 4527: 
 4528: 
 4529: 
 4530: 
 4531: 
 4532: 
 4533: for ac_func in getpagesize
 4534: do :
 4535:   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
 4536: if test "x$ac_cv_func_getpagesize" = xyes; then :
 4537:   cat >>confdefs.h <<_ACEOF
 4538: #define HAVE_GETPAGESIZE 1
 4539: _ACEOF
 4540: 
 4541: fi
 4542: done
 4543: 
 4544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
 4545: $as_echo_n "checking for working mmap... " >&6; }
 4546: if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
 4547:   $as_echo_n "(cached) " >&6
 4548: else
 4549:   if test "$cross_compiling" = yes; then :
 4550:   ac_cv_func_mmap_fixed_mapped=no
 4551: else
 4552:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4553: /* end confdefs.h.  */
 4554: $ac_includes_default
 4555: /* malloc might have been renamed as rpl_malloc. */
 4556: #undef malloc
 4557: 
 4558: /* Thanks to Mike Haertel and Jim Avera for this test.
 4559:    Here is a matrix of mmap possibilities:
 4560: 	mmap private not fixed
 4561: 	mmap private fixed at somewhere currently unmapped
 4562: 	mmap private fixed at somewhere already mapped
 4563: 	mmap shared not fixed
 4564: 	mmap shared fixed at somewhere currently unmapped
 4565: 	mmap shared fixed at somewhere already mapped
 4566:    For private mappings, we should verify that changes cannot be read()
 4567:    back from the file, nor mmap's back from the file at a different
 4568:    address.  (There have been systems where private was not correctly
 4569:    implemented like the infamous i386 svr4.0, and systems where the
 4570:    VM page cache was not coherent with the file system buffer cache
 4571:    like early versions of FreeBSD and possibly contemporary NetBSD.)
 4572:    For shared mappings, we should conversely verify that changes get
 4573:    propagated back to all the places they're supposed to be.
 4574: 
 4575:    Grep wants private fixed already mapped.
 4576:    The main things grep needs to know about mmap are:
 4577:    * does it exist and is it safe to write into the mmap'd area
 4578:    * how to use it (BSD variants)  */
 4579: 
 4580: #include <fcntl.h>
 4581: #include <sys/mman.h>
 4582: 
 4583: #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
 4584: char *malloc ();
 4585: #endif
 4586: 
 4587: /* This mess was copied from the GNU getpagesize.h.  */
 4588: #ifndef HAVE_GETPAGESIZE
 4589: # ifdef _SC_PAGESIZE
 4590: #  define getpagesize() sysconf(_SC_PAGESIZE)
 4591: # else /* no _SC_PAGESIZE */
 4592: #  ifdef HAVE_SYS_PARAM_H
 4593: #   include <sys/param.h>
 4594: #   ifdef EXEC_PAGESIZE
 4595: #    define getpagesize() EXEC_PAGESIZE
 4596: #   else /* no EXEC_PAGESIZE */
 4597: #    ifdef NBPG
 4598: #     define getpagesize() NBPG * CLSIZE
 4599: #     ifndef CLSIZE
 4600: #      define CLSIZE 1
 4601: #     endif /* no CLSIZE */
 4602: #    else /* no NBPG */
 4603: #     ifdef NBPC
 4604: #      define getpagesize() NBPC
 4605: #     else /* no NBPC */
 4606: #      ifdef PAGESIZE
 4607: #       define getpagesize() PAGESIZE
 4608: #      endif /* PAGESIZE */
 4609: #     endif /* no NBPC */
 4610: #    endif /* no NBPG */
 4611: #   endif /* no EXEC_PAGESIZE */
 4612: #  else /* no HAVE_SYS_PARAM_H */
 4613: #   define getpagesize() 8192	/* punt totally */
 4614: #  endif /* no HAVE_SYS_PARAM_H */
 4615: # endif /* no _SC_PAGESIZE */
 4616: 
 4617: #endif /* no HAVE_GETPAGESIZE */
 4618: 
 4619: int
 4620: main ()
 4621: {
 4622:   char *data, *data2, *data3;
 4623:   const char *cdata2;
 4624:   int i, pagesize;
 4625:   int fd, fd2;
 4626: 
 4627:   pagesize = getpagesize ();
 4628: 
 4629:   /* First, make a file with some known garbage in it. */
 4630:   data = (char *) malloc (pagesize);
 4631:   if (!data)
 4632:     return 1;
 4633:   for (i = 0; i < pagesize; ++i)
 4634:     *(data + i) = rand ();
 4635:   umask (0);
 4636:   fd = creat ("conftest.mmap", 0600);
 4637:   if (fd < 0)
 4638:     return 2;
 4639:   if (write (fd, data, pagesize) != pagesize)
 4640:     return 3;
 4641:   close (fd);
 4642: 
 4643:   /* Next, check that the tail of a page is zero-filled.  File must have
 4644:      non-zero length, otherwise we risk SIGBUS for entire page.  */
 4645:   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
 4646:   if (fd2 < 0)
 4647:     return 4;
 4648:   cdata2 = "";
 4649:   if (write (fd2, cdata2, 1) != 1)
 4650:     return 5;
 4651:   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
 4652:   if (data2 == MAP_FAILED)
 4653:     return 6;
 4654:   for (i = 0; i < pagesize; ++i)
 4655:     if (*(data2 + i))
 4656:       return 7;
 4657:   close (fd2);
 4658:   if (munmap (data2, pagesize))
 4659:     return 8;
 4660: 
 4661:   /* Next, try to mmap the file at a fixed address which already has
 4662:      something else allocated at it.  If we can, also make sure that
 4663:      we see the same garbage.  */
 4664:   fd = open ("conftest.mmap", O_RDWR);
 4665:   if (fd < 0)
 4666:     return 9;
 4667:   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 4668: 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 4669:     return 10;
 4670:   for (i = 0; i < pagesize; ++i)
 4671:     if (*(data + i) != *(data2 + i))
 4672:       return 11;
 4673: 
 4674:   /* Finally, make sure that changes to the mapped area do not
 4675:      percolate back to the file as seen by read().  (This is a bug on
 4676:      some variants of i386 svr4.0.)  */
 4677:   for (i = 0; i < pagesize; ++i)
 4678:     *(data2 + i) = *(data2 + i) + 1;
 4679:   data3 = (char *) malloc (pagesize);
 4680:   if (!data3)
 4681:     return 12;
 4682:   if (read (fd, data3, pagesize) != pagesize)
 4683:     return 13;
 4684:   for (i = 0; i < pagesize; ++i)
 4685:     if (*(data + i) != *(data3 + i))
 4686:       return 14;
 4687:   close (fd);
 4688:   return 0;
 4689: }
 4690: _ACEOF
 4691: if ac_fn_c_try_run "$LINENO"; then :
 4692:   ac_cv_func_mmap_fixed_mapped=yes
 4693: else
 4694:   ac_cv_func_mmap_fixed_mapped=no
 4695: fi
 4696: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4697:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4698: fi
 4699: 
 4700: fi
 4701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
 4702: $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
 4703: if test $ac_cv_func_mmap_fixed_mapped = yes; then
 4704: 
 4705: $as_echo "#define HAVE_MMAP 1" >>confdefs.h
 4706: 
 4707: fi
 4708: rm -f conftest.mmap conftest.txt
 4709: 
 4710: for ac_header in stdlib.h
 4711: do :
 4712:   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
 4713: if test "x$ac_cv_header_stdlib_h" = xyes; then :
 4714:   cat >>confdefs.h <<_ACEOF
 4715: #define HAVE_STDLIB_H 1
 4716: _ACEOF
 4717: 
 4718: fi
 4719: 
 4720: done
 4721: 
 4722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
 4723: $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
 4724: if ${ac_cv_func_realloc_0_nonnull+:} false; then :
 4725:   $as_echo_n "(cached) " >&6
 4726: else
 4727:   if test "$cross_compiling" = yes; then :
 4728:   ac_cv_func_realloc_0_nonnull=no
 4729: else
 4730:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4731: /* end confdefs.h.  */
 4732: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
 4733: # include <stdlib.h>
 4734: #else
 4735: char *realloc ();
 4736: #endif
 4737: 
 4738: int
 4739: main ()
 4740: {
 4741: return ! realloc (0, 0);
 4742:   ;
 4743:   return 0;
 4744: }
 4745: _ACEOF
 4746: if ac_fn_c_try_run "$LINENO"; then :
 4747:   ac_cv_func_realloc_0_nonnull=yes
 4748: else
 4749:   ac_cv_func_realloc_0_nonnull=no
 4750: fi
 4751: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4752:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4753: fi
 4754: 
 4755: fi
 4756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
 4757: $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
 4758: if test $ac_cv_func_realloc_0_nonnull = yes; then :
 4759: 
 4760: $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
 4761: 
 4762: else
 4763:   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
 4764: 
 4765:    case " $LIBOBJS " in
 4766:   *" realloc.$ac_objext "* ) ;;
 4767:   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
 4768:  ;;
 4769: esac
 4770: 
 4771: 
 4772: $as_echo "#define realloc rpl_realloc" >>confdefs.h
 4773: 
 4774: fi
 4775: 
 4776: 
 4777: for ac_func in dup2 gettimeofday memmove memset mkdir munmap regcomp strchr strdup strerror strtol
 4778: do :
 4779:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 4780: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 4781: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 4782:   cat >>confdefs.h <<_ACEOF
 4783: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 4784: _ACEOF
 4785: 
 4786: fi
 4787: done
 4788: 
 4789: 
 4790: DEBUG=no
 4791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5
 4792: $as_echo_n "checking Debug Build... " >&6; }
 4793: # Check whether --enable-debug was given.
 4794: if test "${enable_debug+set}" = set; then :
 4795:   enableval=$enable_debug;  DEBUG=$enableval
 4796: 		case "$enableval" in
 4797: 			yes)
 4798: 
 4799: $as_echo "#define __DEBUG /**/" >>confdefs.h
 4800: 
 4801: 				CFLAGS="-g ${CFLAGS}"
 4802: 				;;
 4803: 			*)
 4804: 
 4805: $as_echo "#define NDEBUG /**/" >>confdefs.h
 4806: 
 4807: 				;;
 4808: 		esac
 4809: else
 4810: 
 4811: $as_echo "#define NDEBUG /**/" >>confdefs.h
 4812: 
 4813: fi
 4814: 
 4815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
 4816: $as_echo "$DEBUG" >&6; }
 4817: 
 4818: SQLITE3DIR="/usr/local"
 4819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking SQLite3 install directory" >&5
 4820: $as_echo_n "checking SQLite3 install directory... " >&6; }
 4821: 
 4822: # Check whether --with-sqlite3dir was given.
 4823: if test "${with_sqlite3dir+set}" = set; then :
 4824:   withval=$with_sqlite3dir;  SQLITE3DIR="$withval"
 4825: fi
 4826: 
 4827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE3DIR" >&5
 4828: $as_echo "$SQLITE3DIR" >&6; }
 4829: 
 4830: 
 4831: ac_config_files="$ac_config_files Makefile bin/Makefile inc/Makefile lib/Makefile src/Makefile"
 4832: 
 4833: cat >confcache <<\_ACEOF
 4834: # This file is a shell script that caches the results of configure
 4835: # tests run on this system so they can be shared between configure
 4836: # scripts and configure runs, see configure's option --config-cache.
 4837: # It is not useful on other systems.  If it contains results you don't
 4838: # want to keep, you may remove or edit it.
 4839: #
 4840: # config.status only pays attention to the cache file if you give it
 4841: # the --recheck option to rerun configure.
 4842: #
 4843: # `ac_cv_env_foo' variables (set or unset) will be overridden when
 4844: # loading this file, other *unset* `ac_cv_foo' will be assigned the
 4845: # following values.
 4846: 
 4847: _ACEOF
 4848: 
 4849: # The following way of writing the cache mishandles newlines in values,
 4850: # but we know of no workaround that is simple, portable, and efficient.
 4851: # So, we kill variables containing newlines.
 4852: # Ultrix sh set writes to stderr and can't be redirected directly,
 4853: # and sets the high bit in the cache file unless we assign to the vars.
 4854: (
 4855:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 4856:     eval ac_val=\$$ac_var
 4857:     case $ac_val in #(
 4858:     *${as_nl}*)
 4859:       case $ac_var in #(
 4860:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 4861: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 4862:       esac
 4863:       case $ac_var in #(
 4864:       _ | IFS | as_nl) ;; #(
 4865:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 4866:       *) { eval $ac_var=; unset $ac_var;} ;;
 4867:       esac ;;
 4868:     esac
 4869:   done
 4870: 
 4871:   (set) 2>&1 |
 4872:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 4873:     *${as_nl}ac_space=\ *)
 4874:       # `set' does not quote correctly, so add quotes: double-quote
 4875:       # substitution turns \\\\ into \\, and sed turns \\ into \.
 4876:       sed -n \
 4877: 	"s/'/'\\\\''/g;
 4878: 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 4879:       ;; #(
 4880:     *)
 4881:       # `set' quotes correctly as required by POSIX, so do not add quotes.
 4882:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 4883:       ;;
 4884:     esac |
 4885:     sort
 4886: ) |
 4887:   sed '
 4888:      /^ac_cv_env_/b end
 4889:      t clear
 4890:      :clear
 4891:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 4892:      t end
 4893:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 4894:      :end' >>confcache
 4895: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 4896:   if test -w "$cache_file"; then
 4897:     if test "x$cache_file" != "x/dev/null"; then
 4898:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 4899: $as_echo "$as_me: updating cache $cache_file" >&6;}
 4900:       if test ! -f "$cache_file" || test -h "$cache_file"; then
 4901: 	cat confcache >"$cache_file"
 4902:       else
 4903:         case $cache_file in #(
 4904:         */* | ?:*)
 4905: 	  mv -f confcache "$cache_file"$$ &&
 4906: 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
 4907:         *)
 4908: 	  mv -f confcache "$cache_file" ;;
 4909: 	esac
 4910:       fi
 4911:     fi
 4912:   else
 4913:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 4914: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 4915:   fi
 4916: fi
 4917: rm -f confcache
 4918: 
 4919: test "x$prefix" = xNONE && prefix=$ac_default_prefix
 4920: # Let make expand exec_prefix.
 4921: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 4922: 
 4923: DEFS=-DHAVE_CONFIG_H
 4924: 
 4925: ac_libobjs=
 4926: ac_ltlibobjs=
 4927: U=
 4928: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 4929:   # 1. Remove the extension, and $U if already installed.
 4930:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 4931:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 4932:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 4933:   #    will be set to the directory where LIBOBJS objects are built.
 4934:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 4935:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 4936: done
 4937: LIBOBJS=$ac_libobjs
 4938: 
 4939: LTLIBOBJS=$ac_ltlibobjs
 4940: 
 4941: 
 4942: 
 4943: : "${CONFIG_STATUS=./config.status}"
 4944: ac_write_fail=0
 4945: ac_clean_files_save=$ac_clean_files
 4946: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 4947: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 4948: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 4949: as_write_fail=0
 4950: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 4951: #! $SHELL
 4952: # Generated by $as_me.
 4953: # Run this file to recreate the current configuration.
 4954: # Compiler output produced by configure, useful for debugging
 4955: # configure, is in config.log if it exists.
 4956: 
 4957: debug=false
 4958: ac_cs_recheck=false
 4959: ac_cs_silent=false
 4960: 
 4961: SHELL=\${CONFIG_SHELL-$SHELL}
 4962: export SHELL
 4963: _ASEOF
 4964: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 4965: ## -------------------- ##
 4966: ## M4sh Initialization. ##
 4967: ## -------------------- ##
 4968: 
 4969: # Be more Bourne compatible
 4970: DUALCASE=1; export DUALCASE # for MKS sh
 4971: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 4972:   emulate sh
 4973:   NULLCMD=:
 4974:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 4975:   # is contrary to our usage.  Disable this feature.
 4976:   alias -g '${1+"$@"}'='"$@"'
 4977:   setopt NO_GLOB_SUBST
 4978: else
 4979:   case `(set -o) 2>/dev/null` in #(
 4980:   *posix*) :
 4981:     set -o posix ;; #(
 4982:   *) :
 4983:      ;;
 4984: esac
 4985: fi
 4986: 
 4987: 
 4988: as_nl='
 4989: '
 4990: export as_nl
 4991: # Printing a long string crashes Solaris 7 /usr/bin/printf.
 4992: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 4993: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 4994: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 4995: # Prefer a ksh shell builtin over an external printf program on Solaris,
 4996: # but without wasting forks for bash or zsh.
 4997: if test -z "$BASH_VERSION$ZSH_VERSION" \
 4998:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 4999:   as_echo='print -r --'
 5000:   as_echo_n='print -rn --'
 5001: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 5002:   as_echo='printf %s\n'
 5003:   as_echo_n='printf %s'
 5004: else
 5005:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 5006:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 5007:     as_echo_n='/usr/ucb/echo -n'
 5008:   else
 5009:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 5010:     as_echo_n_body='eval
 5011:       arg=$1;
 5012:       case $arg in #(
 5013:       *"$as_nl"*)
 5014: 	expr "X$arg" : "X\\(.*\\)$as_nl";
 5015: 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 5016:       esac;
 5017:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 5018:     '
 5019:     export as_echo_n_body
 5020:     as_echo_n='sh -c $as_echo_n_body as_echo'
 5021:   fi
 5022:   export as_echo_body
 5023:   as_echo='sh -c $as_echo_body as_echo'
 5024: fi
 5025: 
 5026: # The user is always right.
 5027: if test "${PATH_SEPARATOR+set}" != set; then
 5028:   PATH_SEPARATOR=:
 5029:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 5030:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 5031:       PATH_SEPARATOR=';'
 5032:   }
 5033: fi
 5034: 
 5035: 
 5036: # IFS
 5037: # We need space, tab and new line, in precisely that order.  Quoting is
 5038: # there to prevent editors from complaining about space-tab.
 5039: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 5040: # splitting by setting IFS to empty value.)
 5041: IFS=" ""	$as_nl"
 5042: 
 5043: # Find who we are.  Look in the path if we contain no directory separator.
 5044: as_myself=
 5045: case $0 in #((
 5046:   *[\\/]* ) as_myself=$0 ;;
 5047:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5048: for as_dir in $PATH
 5049: do
 5050:   IFS=$as_save_IFS
 5051:   test -z "$as_dir" && as_dir=.
 5052:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 5053:   done
 5054: IFS=$as_save_IFS
 5055: 
 5056:      ;;
 5057: esac
 5058: # We did not find ourselves, most probably we were run as `sh COMMAND'
 5059: # in which case we are not to be found in the path.
 5060: if test "x$as_myself" = x; then
 5061:   as_myself=$0
 5062: fi
 5063: if test ! -f "$as_myself"; then
 5064:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 5065:   exit 1
 5066: fi
 5067: 
 5068: # Unset variables that we do not need and which cause bugs (e.g. in
 5069: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 5070: # suppresses any "Segmentation fault" message there.  '((' could
 5071: # trigger a bug in pdksh 5.2.14.
 5072: for as_var in BASH_ENV ENV MAIL MAILPATH
 5073: do eval test x\${$as_var+set} = xset \
 5074:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 5075: done
 5076: PS1='$ '
 5077: PS2='> '
 5078: PS4='+ '
 5079: 
 5080: # NLS nuisances.
 5081: LC_ALL=C
 5082: export LC_ALL
 5083: LANGUAGE=C
 5084: export LANGUAGE
 5085: 
 5086: # CDPATH.
 5087: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 5088: 
 5089: 
 5090: # as_fn_error STATUS ERROR [LINENO LOG_FD]
 5091: # ----------------------------------------
 5092: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 5093: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 5094: # script with STATUS, using 1 if that was 0.
 5095: as_fn_error ()
 5096: {
 5097:   as_status=$1; test $as_status -eq 0 && as_status=1
 5098:   if test "$4"; then
 5099:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 5100:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 5101:   fi
 5102:   $as_echo "$as_me: error: $2" >&2
 5103:   as_fn_exit $as_status
 5104: } # as_fn_error
 5105: 
 5106: 
 5107: # as_fn_set_status STATUS
 5108: # -----------------------
 5109: # Set $? to STATUS, without forking.
 5110: as_fn_set_status ()
 5111: {
 5112:   return $1
 5113: } # as_fn_set_status
 5114: 
 5115: # as_fn_exit STATUS
 5116: # -----------------
 5117: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 5118: as_fn_exit ()
 5119: {
 5120:   set +e
 5121:   as_fn_set_status $1
 5122:   exit $1
 5123: } # as_fn_exit
 5124: 
 5125: # as_fn_unset VAR
 5126: # ---------------
 5127: # Portably unset VAR.
 5128: as_fn_unset ()
 5129: {
 5130:   { eval $1=; unset $1;}
 5131: }
 5132: as_unset=as_fn_unset
 5133: # as_fn_append VAR VALUE
 5134: # ----------------------
 5135: # Append the text in VALUE to the end of the definition contained in VAR. Take
 5136: # advantage of any shell optimizations that allow amortized linear growth over
 5137: # repeated appends, instead of the typical quadratic growth present in naive
 5138: # implementations.
 5139: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 5140:   eval 'as_fn_append ()
 5141:   {
 5142:     eval $1+=\$2
 5143:   }'
 5144: else
 5145:   as_fn_append ()
 5146:   {
 5147:     eval $1=\$$1\$2
 5148:   }
 5149: fi # as_fn_append
 5150: 
 5151: # as_fn_arith ARG...
 5152: # ------------------
 5153: # Perform arithmetic evaluation on the ARGs, and store the result in the
 5154: # global $as_val. Take advantage of shells that can avoid forks. The arguments
 5155: # must be portable across $(()) and expr.
 5156: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 5157:   eval 'as_fn_arith ()
 5158:   {
 5159:     as_val=$(( $* ))
 5160:   }'
 5161: else
 5162:   as_fn_arith ()
 5163:   {
 5164:     as_val=`expr "$@" || test $? -eq 1`
 5165:   }
 5166: fi # as_fn_arith
 5167: 
 5168: 
 5169: if expr a : '\(a\)' >/dev/null 2>&1 &&
 5170:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 5171:   as_expr=expr
 5172: else
 5173:   as_expr=false
 5174: fi
 5175: 
 5176: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 5177:   as_basename=basename
 5178: else
 5179:   as_basename=false
 5180: fi
 5181: 
 5182: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 5183:   as_dirname=dirname
 5184: else
 5185:   as_dirname=false
 5186: fi
 5187: 
 5188: as_me=`$as_basename -- "$0" ||
 5189: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 5190: 	 X"$0" : 'X\(//\)$' \| \
 5191: 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 5192: $as_echo X/"$0" |
 5193:     sed '/^.*\/\([^/][^/]*\)\/*$/{
 5194: 	    s//\1/
 5195: 	    q
 5196: 	  }
 5197: 	  /^X\/\(\/\/\)$/{
 5198: 	    s//\1/
 5199: 	    q
 5200: 	  }
 5201: 	  /^X\/\(\/\).*/{
 5202: 	    s//\1/
 5203: 	    q
 5204: 	  }
 5205: 	  s/.*/./; q'`
 5206: 
 5207: # Avoid depending upon Character Ranges.
 5208: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 5209: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 5210: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 5211: as_cr_digits='0123456789'
 5212: as_cr_alnum=$as_cr_Letters$as_cr_digits
 5213: 
 5214: ECHO_C= ECHO_N= ECHO_T=
 5215: case `echo -n x` in #(((((
 5216: -n*)
 5217:   case `echo 'xy\c'` in
 5218:   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
 5219:   xy)  ECHO_C='\c';;
 5220:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 5221:        ECHO_T='	';;
 5222:   esac;;
 5223: *)
 5224:   ECHO_N='-n';;
 5225: esac
 5226: 
 5227: rm -f conf$$ conf$$.exe conf$$.file
 5228: if test -d conf$$.dir; then
 5229:   rm -f conf$$.dir/conf$$.file
 5230: else
 5231:   rm -f conf$$.dir
 5232:   mkdir conf$$.dir 2>/dev/null
 5233: fi
 5234: if (echo >conf$$.file) 2>/dev/null; then
 5235:   if ln -s conf$$.file conf$$ 2>/dev/null; then
 5236:     as_ln_s='ln -s'
 5237:     # ... but there are two gotchas:
 5238:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 5239:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 5240:     # In both cases, we have to default to `cp -pR'.
 5241:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 5242:       as_ln_s='cp -pR'
 5243:   elif ln conf$$.file conf$$ 2>/dev/null; then
 5244:     as_ln_s=ln
 5245:   else
 5246:     as_ln_s='cp -pR'
 5247:   fi
 5248: else
 5249:   as_ln_s='cp -pR'
 5250: fi
 5251: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 5252: rmdir conf$$.dir 2>/dev/null
 5253: 
 5254: 
 5255: # as_fn_mkdir_p
 5256: # -------------
 5257: # Create "$as_dir" as a directory, including parents if necessary.
 5258: as_fn_mkdir_p ()
 5259: {
 5260: 
 5261:   case $as_dir in #(
 5262:   -*) as_dir=./$as_dir;;
 5263:   esac
 5264:   test -d "$as_dir" || eval $as_mkdir_p || {
 5265:     as_dirs=
 5266:     while :; do
 5267:       case $as_dir in #(
 5268:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 5269:       *) as_qdir=$as_dir;;
 5270:       esac
 5271:       as_dirs="'$as_qdir' $as_dirs"
 5272:       as_dir=`$as_dirname -- "$as_dir" ||
 5273: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 5274: 	 X"$as_dir" : 'X\(//\)[^/]' \| \
 5275: 	 X"$as_dir" : 'X\(//\)$' \| \
 5276: 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 5277: $as_echo X"$as_dir" |
 5278:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 5279: 	    s//\1/
 5280: 	    q
 5281: 	  }
 5282: 	  /^X\(\/\/\)[^/].*/{
 5283: 	    s//\1/
 5284: 	    q
 5285: 	  }
 5286: 	  /^X\(\/\/\)$/{
 5287: 	    s//\1/
 5288: 	    q
 5289: 	  }
 5290: 	  /^X\(\/\).*/{
 5291: 	    s//\1/
 5292: 	    q
 5293: 	  }
 5294: 	  s/.*/./; q'`
 5295:       test -d "$as_dir" && break
 5296:     done
 5297:     test -z "$as_dirs" || eval "mkdir $as_dirs"
 5298:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 5299: 
 5300: 
 5301: } # as_fn_mkdir_p
 5302: if mkdir -p . 2>/dev/null; then
 5303:   as_mkdir_p='mkdir -p "$as_dir"'
 5304: else
 5305:   test -d ./-p && rmdir ./-p
 5306:   as_mkdir_p=false
 5307: fi
 5308: 
 5309: 
 5310: # as_fn_executable_p FILE
 5311: # -----------------------
 5312: # Test if FILE is an executable regular file.
 5313: as_fn_executable_p ()
 5314: {
 5315:   test -f "$1" && test -x "$1"
 5316: } # as_fn_executable_p
 5317: as_test_x='test -x'
 5318: as_executable_p=as_fn_executable_p
 5319: 
 5320: # Sed expression to map a string onto a valid CPP name.
 5321: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 5322: 
 5323: # Sed expression to map a string onto a valid variable name.
 5324: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 5325: 
 5326: 
 5327: exec 6>&1
 5328: ## ----------------------------------- ##
 5329: ## Main body of $CONFIG_STATUS script. ##
 5330: ## ----------------------------------- ##
 5331: _ASEOF
 5332: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 5333: 
 5334: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5335: # Save the log message, to keep $0 and so on meaningful, and to
 5336: # report actual input values of CONFIG_FILES etc. instead of their
 5337: # values after options handling.
 5338: ac_log="
 5339: This file was extended by mqtt $as_me 2.0, which was
 5340: generated by GNU Autoconf 2.69.  Invocation command line was
 5341: 
 5342:   CONFIG_FILES    = $CONFIG_FILES
 5343:   CONFIG_HEADERS  = $CONFIG_HEADERS
 5344:   CONFIG_LINKS    = $CONFIG_LINKS
 5345:   CONFIG_COMMANDS = $CONFIG_COMMANDS
 5346:   $ $0 $@
 5347: 
 5348: on `(hostname || uname -n) 2>/dev/null | sed 1q`
 5349: "
 5350: 
 5351: _ACEOF
 5352: 
 5353: case $ac_config_files in *"
 5354: "*) set x $ac_config_files; shift; ac_config_files=$*;;
 5355: esac
 5356: 
 5357: case $ac_config_headers in *"
 5358: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 5359: esac
 5360: 
 5361: 
 5362: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5363: # Files that config.status was made for.
 5364: config_files="$ac_config_files"
 5365: config_headers="$ac_config_headers"
 5366: 
 5367: _ACEOF
 5368: 
 5369: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5370: ac_cs_usage="\
 5371: \`$as_me' instantiates files and other configuration actions
 5372: from templates according to the current configuration.  Unless the files
 5373: and actions are specified as TAGs, all are instantiated by default.
 5374: 
 5375: Usage: $0 [OPTION]... [TAG]...
 5376: 
 5377:   -h, --help       print this help, then exit
 5378:   -V, --version    print version number and configuration settings, then exit
 5379:       --config     print configuration, then exit
 5380:   -q, --quiet, --silent
 5381:                    do not print progress messages
 5382:   -d, --debug      don't remove temporary files
 5383:       --recheck    update $as_me by reconfiguring in the same conditions
 5384:       --file=FILE[:TEMPLATE]
 5385:                    instantiate the configuration file FILE
 5386:       --header=FILE[:TEMPLATE]
 5387:                    instantiate the configuration header FILE
 5388: 
 5389: Configuration files:
 5390: $config_files
 5391: 
 5392: Configuration headers:
 5393: $config_headers
 5394: 
 5395: Report bugs to <misho@elwix.org>."
 5396: 
 5397: _ACEOF
 5398: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5399: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 5400: ac_cs_version="\\
 5401: mqtt config.status 2.0
 5402: configured by $0, generated by GNU Autoconf 2.69,
 5403:   with options \\"\$ac_cs_config\\"
 5404: 
 5405: Copyright (C) 2012 Free Software Foundation, Inc.
 5406: This config.status script is free software; the Free Software Foundation
 5407: gives unlimited permission to copy, distribute and modify it."
 5408: 
 5409: ac_pwd='$ac_pwd'
 5410: srcdir='$srcdir'
 5411: INSTALL='$INSTALL'
 5412: test -n "\$AWK" || AWK=awk
 5413: _ACEOF
 5414: 
 5415: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5416: # The default lists apply if the user does not specify any file.
 5417: ac_need_defaults=:
 5418: while test $# != 0
 5419: do
 5420:   case $1 in
 5421:   --*=?*)
 5422:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 5423:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 5424:     ac_shift=:
 5425:     ;;
 5426:   --*=)
 5427:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 5428:     ac_optarg=
 5429:     ac_shift=:
 5430:     ;;
 5431:   *)
 5432:     ac_option=$1
 5433:     ac_optarg=$2
 5434:     ac_shift=shift
 5435:     ;;
 5436:   esac
 5437: 
 5438:   case $ac_option in
 5439:   # Handling of the options.
 5440:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 5441:     ac_cs_recheck=: ;;
 5442:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 5443:     $as_echo "$ac_cs_version"; exit ;;
 5444:   --config | --confi | --conf | --con | --co | --c )
 5445:     $as_echo "$ac_cs_config"; exit ;;
 5446:   --debug | --debu | --deb | --de | --d | -d )
 5447:     debug=: ;;
 5448:   --file | --fil | --fi | --f )
 5449:     $ac_shift
 5450:     case $ac_optarg in
 5451:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 5452:     '') as_fn_error $? "missing file argument" ;;
 5453:     esac
 5454:     as_fn_append CONFIG_FILES " '$ac_optarg'"
 5455:     ac_need_defaults=false;;
 5456:   --header | --heade | --head | --hea )
 5457:     $ac_shift
 5458:     case $ac_optarg in
 5459:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 5460:     esac
 5461:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 5462:     ac_need_defaults=false;;
 5463:   --he | --h)
 5464:     # Conflict between --help and --header
 5465:     as_fn_error $? "ambiguous option: \`$1'
 5466: Try \`$0 --help' for more information.";;
 5467:   --help | --hel | -h )
 5468:     $as_echo "$ac_cs_usage"; exit ;;
 5469:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 5470:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 5471:     ac_cs_silent=: ;;
 5472: 
 5473:   # This is an error.
 5474:   -*) as_fn_error $? "unrecognized option: \`$1'
 5475: Try \`$0 --help' for more information." ;;
 5476: 
 5477:   *) as_fn_append ac_config_targets " $1"
 5478:      ac_need_defaults=false ;;
 5479: 
 5480:   esac
 5481:   shift
 5482: done
 5483: 
 5484: ac_configure_extra_args=
 5485: 
 5486: if $ac_cs_silent; then
 5487:   exec 6>/dev/null
 5488:   ac_configure_extra_args="$ac_configure_extra_args --silent"
 5489: fi
 5490: 
 5491: _ACEOF
 5492: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5493: if \$ac_cs_recheck; then
 5494:   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 5495:   shift
 5496:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 5497:   CONFIG_SHELL='$SHELL'
 5498:   export CONFIG_SHELL
 5499:   exec "\$@"
 5500: fi
 5501: 
 5502: _ACEOF
 5503: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5504: exec 5>>config.log
 5505: {
 5506:   echo
 5507:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 5508: ## Running $as_me. ##
 5509: _ASBOX
 5510:   $as_echo "$ac_log"
 5511: } >&5
 5512: 
 5513: _ACEOF
 5514: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5515: _ACEOF
 5516: 
 5517: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5518: 
 5519: # Handling of arguments.
 5520: for ac_config_target in $ac_config_targets
 5521: do
 5522:   case $ac_config_target in
 5523:     "inc/config.h") CONFIG_HEADERS="$CONFIG_HEADERS inc/config.h" ;;
 5524:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 5525:     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
 5526:     "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
 5527:     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 5528:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 5529: 
 5530:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 5531:   esac
 5532: done
 5533: 
 5534: 
 5535: # If the user did not use the arguments to specify the items to instantiate,
 5536: # then the envvar interface is used.  Set only those that are not.
 5537: # We use the long form for the default assignment because of an extremely
 5538: # bizarre bug on SunOS 4.1.3.
 5539: if $ac_need_defaults; then
 5540:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 5541:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 5542: fi
 5543: 
 5544: # Have a temporary directory for convenience.  Make it in the build tree
 5545: # simply because there is no reason against having it here, and in addition,
 5546: # creating and moving files from /tmp can sometimes cause problems.
 5547: # Hook for its removal unless debugging.
 5548: # Note that there is a small window in which the directory will not be cleaned:
 5549: # after its creation but before its name has been assigned to `$tmp'.
 5550: $debug ||
 5551: {
 5552:   tmp= ac_tmp=
 5553:   trap 'exit_status=$?
 5554:   : "${ac_tmp:=$tmp}"
 5555:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 5556: ' 0
 5557:   trap 'as_fn_exit 1' 1 2 13 15
 5558: }
 5559: # Create a (secure) tmp directory for tmp files.
 5560: 
 5561: {
 5562:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 5563:   test -d "$tmp"
 5564: }  ||
 5565: {
 5566:   tmp=./conf$$-$RANDOM
 5567:   (umask 077 && mkdir "$tmp")
 5568: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 5569: ac_tmp=$tmp
 5570: 
 5571: # Set up the scripts for CONFIG_FILES section.
 5572: # No need to generate them if there are no CONFIG_FILES.
 5573: # This happens for instance with `./config.status config.h'.
 5574: if test -n "$CONFIG_FILES"; then
 5575: 
 5576: 
 5577: ac_cr=`echo X | tr X '\015'`
 5578: # On cygwin, bash can eat \r inside `` if the user requested igncr.
 5579: # But we know of no other shell where ac_cr would be empty at this
 5580: # point, so we can use a bashism as a fallback.
 5581: if test "x$ac_cr" = x; then
 5582:   eval ac_cr=\$\'\\r\'
 5583: fi
 5584: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 5585: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 5586:   ac_cs_awk_cr='\\r'
 5587: else
 5588:   ac_cs_awk_cr=$ac_cr
 5589: fi
 5590: 
 5591: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 5592: _ACEOF
 5593: 
 5594: 
 5595: {
 5596:   echo "cat >conf$$subs.awk <<_ACEOF" &&
 5597:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 5598:   echo "_ACEOF"
 5599: } >conf$$subs.sh ||
 5600:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 5601: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 5602: ac_delim='%!_!# '
 5603: for ac_last_try in false false false false false :; do
 5604:   . ./conf$$subs.sh ||
 5605:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 5606: 
 5607:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 5608:   if test $ac_delim_n = $ac_delim_num; then
 5609:     break
 5610:   elif $ac_last_try; then
 5611:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 5612:   else
 5613:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 5614:   fi
 5615: done
 5616: rm -f conf$$subs.sh
 5617: 
 5618: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5619: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 5620: _ACEOF
 5621: sed -n '
 5622: h
 5623: s/^/S["/; s/!.*/"]=/
 5624: p
 5625: g
 5626: s/^[^!]*!//
 5627: :repl
 5628: t repl
 5629: s/'"$ac_delim"'$//
 5630: t delim
 5631: :nl
 5632: h
 5633: s/\(.\{148\}\)..*/\1/
 5634: t more1
 5635: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 5636: p
 5637: n
 5638: b repl
 5639: :more1
 5640: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 5641: p
 5642: g
 5643: s/.\{148\}//
 5644: t nl
 5645: :delim
 5646: h
 5647: s/\(.\{148\}\)..*/\1/
 5648: t more2
 5649: s/["\\]/\\&/g; s/^/"/; s/$/"/
 5650: p
 5651: b
 5652: :more2
 5653: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 5654: p
 5655: g
 5656: s/.\{148\}//
 5657: t delim
 5658: ' <conf$$subs.awk | sed '
 5659: /^[^""]/{
 5660:   N
 5661:   s/\n//
 5662: }
 5663: ' >>$CONFIG_STATUS || ac_write_fail=1
 5664: rm -f conf$$subs.awk
 5665: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5666: _ACAWK
 5667: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 5668:   for (key in S) S_is_set[key] = 1
 5669:   FS = ""
 5670: 
 5671: }
 5672: {
 5673:   line = $ 0
 5674:   nfields = split(line, field, "@")
 5675:   substed = 0
 5676:   len = length(field[1])
 5677:   for (i = 2; i < nfields; i++) {
 5678:     key = field[i]
 5679:     keylen = length(key)
 5680:     if (S_is_set[key]) {
 5681:       value = S[key]
 5682:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 5683:       len += length(value) + length(field[++i])
 5684:       substed = 1
 5685:     } else
 5686:       len += 1 + keylen
 5687:   }
 5688: 
 5689:   print line
 5690: }
 5691: 
 5692: _ACAWK
 5693: _ACEOF
 5694: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5695: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 5696:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 5697: else
 5698:   cat
 5699: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 5700:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 5701: _ACEOF
 5702: 
 5703: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 5704: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 5705: # trailing colons and then remove the whole line if VPATH becomes empty
 5706: # (actually we leave an empty line to preserve line numbers).
 5707: if test "x$srcdir" = x.; then
 5708:   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
 5709: h
 5710: s///
 5711: s/^/:/
 5712: s/[	 ]*$/:/
 5713: s/:\$(srcdir):/:/g
 5714: s/:\${srcdir}:/:/g
 5715: s/:@srcdir@:/:/g
 5716: s/^:*//
 5717: s/:*$//
 5718: x
 5719: s/\(=[	 ]*\).*/\1/
 5720: G
 5721: s/\n//
 5722: s/^[^=]*=[	 ]*$//
 5723: }'
 5724: fi
 5725: 
 5726: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5727: fi # test -n "$CONFIG_FILES"
 5728: 
 5729: # Set up the scripts for CONFIG_HEADERS section.
 5730: # No need to generate them if there are no CONFIG_HEADERS.
 5731: # This happens for instance with `./config.status Makefile'.
 5732: if test -n "$CONFIG_HEADERS"; then
 5733: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 5734: BEGIN {
 5735: _ACEOF
 5736: 
 5737: # Transform confdefs.h into an awk script `defines.awk', embedded as
 5738: # here-document in config.status, that substitutes the proper values into
 5739: # config.h.in to produce config.h.
 5740: 
 5741: # Create a delimiter string that does not exist in confdefs.h, to ease
 5742: # handling of long lines.
 5743: ac_delim='%!_!# '
 5744: for ac_last_try in false false :; do
 5745:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 5746:   if test -z "$ac_tt"; then
 5747:     break
 5748:   elif $ac_last_try; then
 5749:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 5750:   else
 5751:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 5752:   fi
 5753: done
 5754: 
 5755: # For the awk script, D is an array of macro values keyed by name,
 5756: # likewise P contains macro parameters if any.  Preserve backslash
 5757: # newline sequences.
 5758: 
 5759: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 5760: sed -n '
 5761: s/.\{148\}/&'"$ac_delim"'/g
 5762: t rset
 5763: :rset
 5764: s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
 5765: t def
 5766: d
 5767: :def
 5768: s/\\$//
 5769: t bsnl
 5770: s/["\\]/\\&/g
 5771: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 5772: D["\1"]=" \3"/p
 5773: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
 5774: d
 5775: :bsnl
 5776: s/["\\]/\\&/g
 5777: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
 5778: D["\1"]=" \3\\\\\\n"\\/p
 5779: t cont
 5780: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 5781: t cont
 5782: d
 5783: :cont
 5784: n
 5785: s/.\{148\}/&'"$ac_delim"'/g
 5786: t clear
 5787: :clear
 5788: s/\\$//
 5789: t bsnlc
 5790: s/["\\]/\\&/g; s/^/"/; s/$/"/p
 5791: d
 5792: :bsnlc
 5793: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 5794: b cont
 5795: ' <confdefs.h | sed '
 5796: s/'"$ac_delim"'/"\\\
 5797: "/g' >>$CONFIG_STATUS || ac_write_fail=1
 5798: 
 5799: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5800:   for (key in D) D_is_set[key] = 1
 5801:   FS = ""
 5802: }
 5803: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 5804:   line = \$ 0
 5805:   split(line, arg, " ")
 5806:   if (arg[1] == "#") {
 5807:     defundef = arg[2]
 5808:     mac1 = arg[3]
 5809:   } else {
 5810:     defundef = substr(arg[1], 2)
 5811:     mac1 = arg[2]
 5812:   }
 5813:   split(mac1, mac2, "(") #)
 5814:   macro = mac2[1]
 5815:   prefix = substr(line, 1, index(line, defundef) - 1)
 5816:   if (D_is_set[macro]) {
 5817:     # Preserve the white space surrounding the "#".
 5818:     print prefix "define", macro P[macro] D[macro]
 5819:     next
 5820:   } else {
 5821:     # Replace #undef with comments.  This is necessary, for example,
 5822:     # in the case of _POSIX_SOURCE, which is predefined and required
 5823:     # on some systems where configure will not decide to define it.
 5824:     if (defundef == "undef") {
 5825:       print "/*", prefix defundef, macro, "*/"
 5826:       next
 5827:     }
 5828:   }
 5829: }
 5830: { print }
 5831: _ACAWK
 5832: _ACEOF
 5833: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5834:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 5835: fi # test -n "$CONFIG_HEADERS"
 5836: 
 5837: 
 5838: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
 5839: shift
 5840: for ac_tag
 5841: do
 5842:   case $ac_tag in
 5843:   :[FHLC]) ac_mode=$ac_tag; continue;;
 5844:   esac
 5845:   case $ac_mode$ac_tag in
 5846:   :[FHL]*:*);;
 5847:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 5848:   :[FH]-) ac_tag=-:-;;
 5849:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 5850:   esac
 5851:   ac_save_IFS=$IFS
 5852:   IFS=:
 5853:   set x $ac_tag
 5854:   IFS=$ac_save_IFS
 5855:   shift
 5856:   ac_file=$1
 5857:   shift
 5858: 
 5859:   case $ac_mode in
 5860:   :L) ac_source=$1;;
 5861:   :[FH])
 5862:     ac_file_inputs=
 5863:     for ac_f
 5864:     do
 5865:       case $ac_f in
 5866:       -) ac_f="$ac_tmp/stdin";;
 5867:       *) # Look for the file first in the build tree, then in the source tree
 5868: 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
 5869: 	 # because $ac_f cannot contain `:'.
 5870: 	 test -f "$ac_f" ||
 5871: 	   case $ac_f in
 5872: 	   [\\/$]*) false;;
 5873: 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 5874: 	   esac ||
 5875: 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 5876:       esac
 5877:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 5878:       as_fn_append ac_file_inputs " '$ac_f'"
 5879:     done
 5880: 
 5881:     # Let's still pretend it is `configure' which instantiates (i.e., don't
 5882:     # use $as_me), people would be surprised to read:
 5883:     #    /* config.h.  Generated by config.status.  */
 5884:     configure_input='Generated from '`
 5885: 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 5886: 	`' by configure.'
 5887:     if test x"$ac_file" != x-; then
 5888:       configure_input="$ac_file.  $configure_input"
 5889:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 5890: $as_echo "$as_me: creating $ac_file" >&6;}
 5891:     fi
 5892:     # Neutralize special characters interpreted by sed in replacement strings.
 5893:     case $configure_input in #(
 5894:     *\&* | *\|* | *\\* )
 5895:        ac_sed_conf_input=`$as_echo "$configure_input" |
 5896:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
 5897:     *) ac_sed_conf_input=$configure_input;;
 5898:     esac
 5899: 
 5900:     case $ac_tag in
 5901:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
 5902:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 5903:     esac
 5904:     ;;
 5905:   esac
 5906: 
 5907:   ac_dir=`$as_dirname -- "$ac_file" ||
 5908: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 5909: 	 X"$ac_file" : 'X\(//\)[^/]' \| \
 5910: 	 X"$ac_file" : 'X\(//\)$' \| \
 5911: 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 5912: $as_echo X"$ac_file" |
 5913:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 5914: 	    s//\1/
 5915: 	    q
 5916: 	  }
 5917: 	  /^X\(\/\/\)[^/].*/{
 5918: 	    s//\1/
 5919: 	    q
 5920: 	  }
 5921: 	  /^X\(\/\/\)$/{
 5922: 	    s//\1/
 5923: 	    q
 5924: 	  }
 5925: 	  /^X\(\/\).*/{
 5926: 	    s//\1/
 5927: 	    q
 5928: 	  }
 5929: 	  s/.*/./; q'`
 5930:   as_dir="$ac_dir"; as_fn_mkdir_p
 5931:   ac_builddir=.
 5932: 
 5933: case "$ac_dir" in
 5934: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 5935: *)
 5936:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 5937:   # A ".." for each directory in $ac_dir_suffix.
 5938:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 5939:   case $ac_top_builddir_sub in
 5940:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 5941:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 5942:   esac ;;
 5943: esac
 5944: ac_abs_top_builddir=$ac_pwd
 5945: ac_abs_builddir=$ac_pwd$ac_dir_suffix
 5946: # for backward compatibility:
 5947: ac_top_builddir=$ac_top_build_prefix
 5948: 
 5949: case $srcdir in
 5950:   .)  # We are building in place.
 5951:     ac_srcdir=.
 5952:     ac_top_srcdir=$ac_top_builddir_sub
 5953:     ac_abs_top_srcdir=$ac_pwd ;;
 5954:   [\\/]* | ?:[\\/]* )  # Absolute name.
 5955:     ac_srcdir=$srcdir$ac_dir_suffix;
 5956:     ac_top_srcdir=$srcdir
 5957:     ac_abs_top_srcdir=$srcdir ;;
 5958:   *) # Relative name.
 5959:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 5960:     ac_top_srcdir=$ac_top_build_prefix$srcdir
 5961:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 5962: esac
 5963: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 5964: 
 5965: 
 5966:   case $ac_mode in
 5967:   :F)
 5968:   #
 5969:   # CONFIG_FILE
 5970:   #
 5971: 
 5972:   case $INSTALL in
 5973:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 5974:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 5975:   esac
 5976: _ACEOF
 5977: 
 5978: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 5979: # If the template does not know about datarootdir, expand it.
 5980: # FIXME: This hack should be removed a few years after 2.60.
 5981: ac_datarootdir_hack=; ac_datarootdir_seen=
 5982: ac_sed_dataroot='
 5983: /datarootdir/ {
 5984:   p
 5985:   q
 5986: }
 5987: /@datadir@/p
 5988: /@docdir@/p
 5989: /@infodir@/p
 5990: /@localedir@/p
 5991: /@mandir@/p'
 5992: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 5993: *datarootdir*) ac_datarootdir_seen=yes;;
 5994: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 5995:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 5996: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 5997: _ACEOF
 5998: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 5999:   ac_datarootdir_hack='
 6000:   s&@datadir@&$datadir&g
 6001:   s&@docdir@&$docdir&g
 6002:   s&@infodir@&$infodir&g
 6003:   s&@localedir@&$localedir&g
 6004:   s&@mandir@&$mandir&g
 6005:   s&\\\${datarootdir}&$datarootdir&g' ;;
 6006: esac
 6007: _ACEOF
 6008: 
 6009: # Neutralize VPATH when `$srcdir' = `.'.
 6010: # Shell code in configure.ac might set extrasub.
 6011: # FIXME: do we really want to maintain this feature?
 6012: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 6013: ac_sed_extra="$ac_vpsub
 6014: $extrasub
 6015: _ACEOF
 6016: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 6017: :t
 6018: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 6019: s|@configure_input@|$ac_sed_conf_input|;t t
 6020: s&@top_builddir@&$ac_top_builddir_sub&;t t
 6021: s&@top_build_prefix@&$ac_top_build_prefix&;t t
 6022: s&@srcdir@&$ac_srcdir&;t t
 6023: s&@abs_srcdir@&$ac_abs_srcdir&;t t
 6024: s&@top_srcdir@&$ac_top_srcdir&;t t
 6025: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 6026: s&@builddir@&$ac_builddir&;t t
 6027: s&@abs_builddir@&$ac_abs_builddir&;t t
 6028: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 6029: s&@INSTALL@&$ac_INSTALL&;t t
 6030: $ac_datarootdir_hack
 6031: "
 6032: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 6033:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 6034: 
 6035: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 6036:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 6037:   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
 6038:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
 6039:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 6040: which seems to be undefined.  Please make sure it is defined" >&5
 6041: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 6042: which seems to be undefined.  Please make sure it is defined" >&2;}
 6043: 
 6044:   rm -f "$ac_tmp/stdin"
 6045:   case $ac_file in
 6046:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 6047:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 6048:   esac \
 6049:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 6050:  ;;
 6051:   :H)
 6052:   #
 6053:   # CONFIG_HEADER
 6054:   #
 6055:   if test x"$ac_file" != x-; then
 6056:     {
 6057:       $as_echo "/* $configure_input  */" \
 6058:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 6059:     } >"$ac_tmp/config.h" \
 6060:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 6061:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 6062:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 6063: $as_echo "$as_me: $ac_file is unchanged" >&6;}
 6064:     else
 6065:       rm -f "$ac_file"
 6066:       mv "$ac_tmp/config.h" "$ac_file" \
 6067: 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
 6068:     fi
 6069:   else
 6070:     $as_echo "/* $configure_input  */" \
 6071:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 6072:       || as_fn_error $? "could not create -" "$LINENO" 5
 6073:   fi
 6074:  ;;
 6075: 
 6076: 
 6077:   esac
 6078: 
 6079: done # for ac_tag
 6080: 
 6081: 
 6082: as_fn_exit 0
 6083: _ACEOF
 6084: ac_clean_files=$ac_clean_files_save
 6085: 
 6086: test $ac_write_fail = 0 ||
 6087:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 6088: 
 6089: 
 6090: # configure is writing to config.log, and then calls config.status.
 6091: # config.status does its own redirection, appending to config.log.
 6092: # Unfortunately, on DOS this fails, as config.log is still kept open
 6093: # by configure, so config.status won't be able to write to it; its
 6094: # output is simply discarded.  So we exec the FD to /dev/null,
 6095: # effectively closing config.log, so it can be properly (re)opened and
 6096: # appended to by config.status.  When coming back to configure, we
 6097: # need to make the FD available again.
 6098: if test "$no_create" != yes; then
 6099:   ac_cs_success=:
 6100:   ac_config_status_args=
 6101:   test "$silent" = yes &&
 6102:     ac_config_status_args="$ac_config_status_args --quiet"
 6103:   exec 5>/dev/null
 6104:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 6105:   exec 5>>config.log
 6106:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 6107:   # would make configure fail if this is the last instruction.
 6108:   $ac_cs_success || as_fn_exit 1
 6109: fi
 6110: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 6111:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 6112: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 6113: fi
 6114: 

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