Annotation of libaitio/configure, revision 1.44.2.1

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

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