Annotation of libaitsync/configure, revision 1.4

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

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