Annotation of embedaddon/readline/configure, revision 1.1.1.2

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

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