Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.3
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by Autoconf 2.52.20081225.
      4 #
      5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
      6 # Free Software Foundation, Inc.
      7 # This configure script is free software; the Free Software Foundation
      8 # gives unlimited permission to copy, distribute and modify it.
      9 
     10 # Avoid depending upon Character Ranges.
     11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     14 as_cr_digits='0123456789'
     15 as_cr_alnum=$as_cr_Letters$as_cr_digits
     16 
     17 # Sed expression to map a string onto a valid variable name.
     18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
     19 
     20 # Sed expression to map a string onto a valid CPP name.
     21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
     22 
     23 # Be Bourne compatible
     24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     25   emulate sh
     26   NULLCMD=:
     27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     28   set -o posix
     29 fi
     30 
     31 # Name of the executable.
     32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
     33 
     34 if expr a : '\(a\)' >/dev/null 2>&1; then
     35   as_expr=expr
     36 else
     37   as_expr=false
     38 fi
     39 
     40 rm -f conf$$ conf$$.exe conf$$.file
     41 echo >conf$$.file
     42 if ln -s conf$$.file conf$$ 2>/dev/null; then
     43   # We could just check for DJGPP; but this test a) works b) is more generic
     44   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     45   if test -f conf$$.exe; then
     46     # Don't use ln at all; we don't have any links
     47     as_ln_s='cp -p'
     48   else
     49     as_ln_s='ln -s'
     50   fi
     51 elif ln conf$$.file conf$$ 2>/dev/null; then
     52   as_ln_s=ln
     53 else
     54   as_ln_s='cp -p'
     55 fi
     56 rm -f conf$$ conf$$.exe conf$$.file
     57 
     58 as_executable_p="test -f"
     59 
     60 # Support unset when possible.
     61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     62   as_unset=unset
     63 else
     64   as_unset=false
     65 fi
     66 
     67 # NLS nuisances.
     68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     76 
     77 # IFS
     78 # We need space, tab and new line, in precisely that order.
     79 as_nl='
     80 '
     81 IFS=" 	$as_nl"
     82 
     83 # CDPATH.
     84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     85 
     86 # Name of the host.
     87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     88 # so uname gets run too.
     89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     90 
     91 exec 6>&1
     92 
     93 #
     94 # Initializations.
     95 #
     96 ac_default_prefix=/usr/local
     97 cross_compiling=no
     98 subdirs=
     99 MFLAGS= MAKEFLAGS=
    100 SHELL=${CONFIG_SHELL-/bin/sh}
    101 
    102 # Maximum number of lines to put in a shell here document.
    103 # This variable seems obsolete.  It should probably be removed, and
    104 # only ac_max_sed_lines should be used.
    105 : ${ac_max_here_lines=38}
    106 
    107 ac_unique_file="charproc.c"
    108 # Factoring default headers for most tests.
    109 ac_includes_default="\
    110 #include <stdio.h>
    111 #if HAVE_SYS_TYPES_H
    112 # include <sys/types.h>
    113 #endif
    114 #if HAVE_SYS_STAT_H
    115 # include <sys/stat.h>
    116 #endif
    117 #if STDC_HEADERS
    118 # include <stdlib.h>
    119 # include <stddef.h>
    120 #else
    121 # if HAVE_STDLIB_H
    122 #  include <stdlib.h>
    123 # endif
    124 #endif
    125 #if HAVE_STRING_H
    126 # if !STDC_HEADERS && HAVE_MEMORY_H
    127 #  include <memory.h>
    128 # endif
    129 # include <string.h>
    130 #endif
    131 #if HAVE_STRINGS_H
    132 # include <strings.h>
    133 #endif
    134 #if HAVE_INTTYPES_H
    135 # include <inttypes.h>
    136 #else
    137 # if HAVE_STDINT_H
    138 #  include <stdint.h>
    139 # endif
    140 #endif
    141 #if HAVE_UNISTD_H
    142 # include <unistd.h>
    143 #endif"
    144 
    145 # Initialize some variables set by options.
    146 ac_init_help=
    147 ac_init_version=false
    148 # The variables have the same names as the options, with
    149 # dashes changed to underlines.
    150 cache_file=/dev/null
    151 exec_prefix=NONE
    152 no_create=
    153 no_recursion=
    154 prefix=NONE
    155 program_prefix=NONE
    156 program_suffix=NONE
    157 program_transform_name=s,x,x,
    158 silent=
    159 site=
    160 srcdir=
    161 verbose=
    162 x_includes=NONE
    163 x_libraries=NONE
    164 
    165 # Installation directory options.
    166 # These are left unexpanded so users can "make install exec_prefix=/foo"
    167 # and all the variables that are supposed to be based on exec_prefix
    168 # by default will actually change.
    169 # Use braces instead of parens because sh, perl, etc. also accept them.
    170 bindir='${exec_prefix}/bin'
    171 sbindir='${exec_prefix}/sbin'
    172 libexecdir='${exec_prefix}/libexec'
    173 datadir='${prefix}/share'
    174 sysconfdir='${prefix}/etc'
    175 sharedstatedir='${prefix}/com'
    176 localstatedir='${prefix}/var'
    177 libdir='${exec_prefix}/lib'
    178 includedir='${prefix}/include'
    179 oldincludedir='/usr/include'
    180 infodir='${prefix}/info'
    181 mandir='${prefix}/man'
    182 
    183 # Identity of this package.
    184 PACKAGE_NAME=
    185 PACKAGE_TARNAME=
    186 PACKAGE_VERSION=
    187 PACKAGE_STRING=
    188 PACKAGE_BUGREPORT=
    189 
    190 ac_prev=
    191 for ac_option
    192 do
    193   # If the previous option needs an argument, assign it.
    194   if test -n "$ac_prev"; then
    195     eval "$ac_prev=\$ac_option"
    196     ac_prev=
    197     continue
    198   fi
    199 
    200   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    201 
    202   # Accept the important Cygnus configure options, so we can diagnose typos.
    203 
    204   case $ac_option in
    205 
    206   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    207     ac_prev=bindir ;;
    208   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    209     bindir=$ac_optarg ;;
    210 
    211   -build | --build | --buil | --bui | --bu)
    212     ac_prev=build_alias ;;
    213   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    214     build_alias=$ac_optarg ;;
    215 
    216   -cache-file | --cache-file | --cache-fil | --cache-fi \
    217   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    218     ac_prev=cache_file ;;
    219   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    220   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    221     cache_file=$ac_optarg ;;
    222 
    223   --config-cache | -C)
    224     cache_file=config.cache ;;
    225 
    226   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    227     ac_prev=datadir ;;
    228   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    229   | --da=*)
    230     datadir=$ac_optarg ;;
    231 
    232   -disable-* | --disable-*)
    233     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    234     # Reject names that are not valid shell variable names.
    235     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    236       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    237    { (exit 1); exit 1; }; }
    238     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    239     eval "enable_$ac_feature=no" ;;
    240 
    241   -enable-* | --enable-*)
    242     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    243     # Reject names that are not valid shell variable names.
    244     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    245       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    246    { (exit 1); exit 1; }; }
    247     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    248     case $ac_option in
    249       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    250       *) ac_optarg=yes ;;
    251     esac
    252     eval "enable_$ac_feature='$ac_optarg'" ;;
    253 
    254   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    255   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    256   | --exec | --exe | --ex)
    257     ac_prev=exec_prefix ;;
    258   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    259   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    260   | --exec=* | --exe=* | --ex=*)
    261     exec_prefix=$ac_optarg ;;
    262 
    263   -gas | --gas | --ga | --g)
    264     # Obsolete; use --with-gas.
    265     with_gas=yes ;;
    266 
    267   -help | --help | --hel | --he | -h)
    268     ac_init_help=long ;;
    269   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    270     ac_init_help=recursive ;;
    271   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    272     ac_init_help=short ;;
    273 
    274   -host | --host | --hos | --ho)
    275     ac_prev=host_alias ;;
    276   -host=* | --host=* | --hos=* | --ho=*)
    277     host_alias=$ac_optarg ;;
    278 
    279   -includedir | --includedir | --includedi | --included | --include \
    280   | --includ | --inclu | --incl | --inc)
    281     ac_prev=includedir ;;
    282   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    283   | --includ=* | --inclu=* | --incl=* | --inc=*)
    284     includedir=$ac_optarg ;;
    285 
    286   -infodir | --infodir | --infodi | --infod | --info | --inf)
    287     ac_prev=infodir ;;
    288   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    289     infodir=$ac_optarg ;;
    290 
    291   -libdir | --libdir | --libdi | --libd)
    292     ac_prev=libdir ;;
    293   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    294     libdir=$ac_optarg ;;
    295 
    296   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    297   | --libexe | --libex | --libe)
    298     ac_prev=libexecdir ;;
    299   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    300   | --libexe=* | --libex=* | --libe=*)
    301     libexecdir=$ac_optarg ;;
    302 
    303   -localstatedir | --localstatedir | --localstatedi | --localstated \
    304   | --localstate | --localstat | --localsta | --localst \
    305   | --locals | --local | --loca | --loc | --lo)
    306     ac_prev=localstatedir ;;
    307   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    308   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    309   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    310     localstatedir=$ac_optarg ;;
    311 
    312   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    313     ac_prev=mandir ;;
    314   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    315     mandir=$ac_optarg ;;
    316 
    317   -nfp | --nfp | --nf)
    318     # Obsolete; use --without-fp.
    319     with_fp=no ;;
    320 
    321   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    322   | --no-cr | --no-c)
    323     no_create=yes ;;
    324 
    325   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    326   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    327     no_recursion=yes ;;
    328 
    329   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    330   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    331   | --oldin | --oldi | --old | --ol | --o)
    332     ac_prev=oldincludedir ;;
    333   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    334   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    335   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    336     oldincludedir=$ac_optarg ;;
    337 
    338   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    339     ac_prev=prefix ;;
    340   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    341     prefix=$ac_optarg ;;
    342 
    343   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    344   | --program-pre | --program-pr | --program-p)
    345     ac_prev=program_prefix ;;
    346   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    347   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    348     program_prefix=$ac_optarg ;;
    349 
    350   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    351   | --program-suf | --program-su | --program-s)
    352     ac_prev=program_suffix ;;
    353   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    354   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    355     program_suffix=$ac_optarg ;;
    356 
    357   -program-transform-name | --program-transform-name \
    358   | --program-transform-nam | --program-transform-na \
    359   | --program-transform-n | --program-transform- \
    360   | --program-transform | --program-transfor \
    361   | --program-transfo | --program-transf \
    362   | --program-trans | --program-tran \
    363   | --progr-tra | --program-tr | --program-t)
    364     ac_prev=program_transform_name ;;
    365   -program-transform-name=* | --program-transform-name=* \
    366   | --program-transform-nam=* | --program-transform-na=* \
    367   | --program-transform-n=* | --program-transform-=* \
    368   | --program-transform=* | --program-transfor=* \
    369   | --program-transfo=* | --program-transf=* \
    370   | --program-trans=* | --program-tran=* \
    371   | --progr-tra=* | --program-tr=* | --program-t=*)
    372     program_transform_name=$ac_optarg ;;
    373 
    374   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    375   | -silent | --silent | --silen | --sile | --sil)
    376     silent=yes ;;
    377 
    378   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    379     ac_prev=sbindir ;;
    380   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    381   | --sbi=* | --sb=*)
    382     sbindir=$ac_optarg ;;
    383 
    384   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    385   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    386   | --sharedst | --shareds | --shared | --share | --shar \
    387   | --sha | --sh)
    388     ac_prev=sharedstatedir ;;
    389   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    390   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    391   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    392   | --sha=* | --sh=*)
    393     sharedstatedir=$ac_optarg ;;
    394 
    395   -site | --site | --sit)
    396     ac_prev=site ;;
    397   -site=* | --site=* | --sit=*)
    398     site=$ac_optarg ;;
    399 
    400   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    401     ac_prev=srcdir ;;
    402   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    403     srcdir=$ac_optarg ;;
    404 
    405   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    406   | --syscon | --sysco | --sysc | --sys | --sy)
    407     ac_prev=sysconfdir ;;
    408   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    409   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    410     sysconfdir=$ac_optarg ;;
    411 
    412   -target | --target | --targe | --targ | --tar | --ta | --t)
    413     ac_prev=target_alias ;;
    414   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    415     target_alias=$ac_optarg ;;
    416 
    417   -v | -verbose | --verbose | --verbos | --verbo | --verb)
    418     verbose=yes ;;
    419 
    420   -version | --version | --versio | --versi | --vers | -V)
    421     ac_init_version=: ;;
    422 
    423   -with-* | --with-*)
    424     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    425     # Reject names that are not valid shell variable names.
    426     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    427       { echo "$as_me: error: invalid package name: $ac_package" >&2
    428    { (exit 1); exit 1; }; }
    429     ac_package=`echo $ac_package| sed 's/-/_/g'`
    430     case $ac_option in
    431       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    432       *) ac_optarg=yes ;;
    433     esac
    434     eval "with_$ac_package='$ac_optarg'" ;;
    435 
    436   -without-* | --without-*)
    437     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    438     # Reject names that are not valid shell variable names.
    439     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    440       { echo "$as_me: error: invalid package name: $ac_package" >&2
    441    { (exit 1); exit 1; }; }
    442     ac_package=`echo $ac_package | sed 's/-/_/g'`
    443     eval "with_$ac_package=no" ;;
    444 
    445   --x)
    446     # Obsolete; use --with-x.
    447     with_x=yes ;;
    448 
    449   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
    450   | --x-incl | --x-inc | --x-in | --x-i)
    451     ac_prev=x_includes ;;
    452   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    453   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    454     x_includes=$ac_optarg ;;
    455 
    456   -x-libraries | --x-libraries | --x-librarie | --x-librari \
    457   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    458     ac_prev=x_libraries ;;
    459   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    460   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    461     x_libraries=$ac_optarg ;;
    462 
    463   -*) { echo "$as_me: error: unrecognized option: $ac_option
    464 Try \`$0 --help' for more information." >&2
    465    { (exit 1); exit 1; }; }
    466     ;;
    467 
    468   *=*)
    469     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    470     # Reject names that are not valid shell variable names.
    471     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    472       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    473    { (exit 1); exit 1; }; }
    474     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    475     eval "$ac_envvar='$ac_optarg'"
    476     export $ac_envvar ;;
    477 
    478   *)
    479     # FIXME: should be removed in autoconf 3.0.
    480     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    481     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    482       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    483     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    484     ;;
    485 
    486   esac
    487 done
    488 
    489 if test -n "$ac_prev"; then
    490   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    491   { echo "$as_me: error: missing argument to $ac_option" >&2
    492    { (exit 1); exit 1; }; }
    493 fi
    494 
    495 # Be sure to have absolute paths.
    496 for ac_var in exec_prefix prefix
    497 do
    498   eval ac_val=$`echo $ac_var`
    499   case $ac_val in
    500     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    501     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
    502    { (exit 1); exit 1; }; };;
    503   esac
    504 done
    505 
    506 # Be sure to have absolute paths.
    507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    508               localstatedir libdir includedir oldincludedir infodir mandir
    509 do
    510   eval ac_val=$`echo $ac_var`
    511   case $ac_val in
    512     [\\/$]* | ?:[\\/]* ) ;;
    513     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
    514    { (exit 1); exit 1; }; };;
    515   esac
    516 done
    517 
    518 # There might be people who depend on the old broken behavior: `$host'
    519 # used to hold the argument of --host etc.
    520 build=$build_alias
    521 host=$host_alias
    522 target=$target_alias
    523 
    524 # FIXME: should be removed in autoconf 3.0.
    525 if test "x$host_alias" != x; then
    526   if test "x$build_alias" = x; then
    527     cross_compiling=maybe
    528     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    529     If a cross compiler is detected then cross compile mode will be used." >&2
    530   elif test "x$build_alias" != "x$host_alias"; then
    531     cross_compiling=yes
    532   fi
    533 fi
    534 
    535 ac_tool_prefix=
    536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
    537 
    538 test "$silent" = yes && exec 6>/dev/null
    539 
    540 # Find the source files, if location was not specified.
    541 if test -z "$srcdir"; then
    542   ac_srcdir_defaulted=yes
    543   # Try the directory containing this script, then its parent.
    544   ac_prog=$0
    545   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    546   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    547   srcdir=$ac_confdir
    548   if test ! -r $srcdir/$ac_unique_file; then
    549     srcdir=..
    550   fi
    551 else
    552   ac_srcdir_defaulted=no
    553 fi
    554 if test ! -r $srcdir/$ac_unique_file; then
    555   if test "$ac_srcdir_defaulted" = yes; then
    556     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
    557    { (exit 1); exit 1; }; }
    558   else
    559     { echo "$as_me: error: cannot find sources in $srcdir" >&2
    560    { (exit 1); exit 1; }; }
    561   fi
    562 fi
    563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    564 ac_env_build_alias_set=${build_alias+set}
    565 ac_env_build_alias_value=$build_alias
    566 ac_cv_env_build_alias_set=${build_alias+set}
    567 ac_cv_env_build_alias_value=$build_alias
    568 ac_env_host_alias_set=${host_alias+set}
    569 ac_env_host_alias_value=$host_alias
    570 ac_cv_env_host_alias_set=${host_alias+set}
    571 ac_cv_env_host_alias_value=$host_alias
    572 ac_env_target_alias_set=${target_alias+set}
    573 ac_env_target_alias_value=$target_alias
    574 ac_cv_env_target_alias_set=${target_alias+set}
    575 ac_cv_env_target_alias_value=$target_alias
    576 ac_env_CC_set=${CC+set}
    577 ac_env_CC_value=$CC
    578 ac_cv_env_CC_set=${CC+set}
    579 ac_cv_env_CC_value=$CC
    580 ac_env_CFLAGS_set=${CFLAGS+set}
    581 ac_env_CFLAGS_value=$CFLAGS
    582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    583 ac_cv_env_CFLAGS_value=$CFLAGS
    584 ac_env_LDFLAGS_set=${LDFLAGS+set}
    585 ac_env_LDFLAGS_value=$LDFLAGS
    586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    587 ac_cv_env_LDFLAGS_value=$LDFLAGS
    588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    589 ac_env_CPPFLAGS_value=$CPPFLAGS
    590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    592 ac_env_CPP_set=${CPP+set}
    593 ac_env_CPP_value=$CPP
    594 ac_cv_env_CPP_set=${CPP+set}
    595 ac_cv_env_CPP_value=$CPP
    596 
    597 #
    598 # Report the --help message.
    599 #
    600 if test "$ac_init_help" = "long"; then
    601   # Omit some internal or obsolete options to make the list less imposing.
    602   # This message is too long to be a string in the A/UX 3.1 sh.
    603   cat <<EOF
    604 \`configure' configures this package to adapt to many kinds of systems.
    605 
    606 Usage: $0 [OPTION]... [VAR=VALUE]...
    607 
    608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
    609 VAR=VALUE.  See below for descriptions of some of the useful variables.
    610 
    611 Defaults for the options are specified in brackets.
    612 
    613 Configuration:
    614   -h, --help              display this help and exit
    615       --help=short        display options specific to this package
    616       --help=recursive    display the short help of all the included packages
    617   -V, --version           display version information and exit
    618   -q, --quiet, --silent   do not print \`checking...' messages
    619       --cache-file=FILE   cache test results in FILE [disabled]
    620   -C, --config-cache      alias for \`--cache-file=config.cache'
    621   -n, --no-create         do not create output files
    622       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    623 
    624 EOF
    625 
    626   cat <<EOF
    627 Installation directories:
    628   --prefix=PREFIX         install architecture-independent files in PREFIX
    629                           [$ac_default_prefix]
    630   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    631                           [PREFIX]
    632 
    633 By default, \`make install' will install all the files in
    634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    636 for instance \`--prefix=\$HOME'.
    637 
    638 For better control, use the options below.
    639 
    640 Fine tuning of the installation directories:
    641   --bindir=DIR            user executables [EPREFIX/bin]
    642   --sbindir=DIR           system admin executables [EPREFIX/sbin]
    643   --libexecdir=DIR        program executables [EPREFIX/libexec]
    644   --datadir=DIR           read-only architecture-independent data [PREFIX/share]
    645   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
    646   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
    647   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
    648   --libdir=DIR            object code libraries [EPREFIX/lib]
    649   --includedir=DIR        C header files [PREFIX/include]
    650   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
    651   --infodir=DIR           info documentation [PREFIX/info]
    652   --mandir=DIR            man documentation [PREFIX/man]
    653 EOF
    654 
    655   cat <<\EOF
    656 
    657 Program names:
    658   --program-prefix=PREFIX            prepend PREFIX to installed program names
    659   --program-suffix=SUFFIX            append SUFFIX to installed program names
    660   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    661 
    662 X features:
    663   --x-includes=DIR    X include files are in DIR
    664   --x-libraries=DIR   X library files are in DIR
    665 
    666 System types:
    667   --build=BUILD           configure for building on BUILD [guessed]
    668   --host=HOST       build programs to run on HOST [BUILD]
    669 EOF
    670 fi
    671 
    672 if test -n "$ac_init_help"; then
    673 
    674   cat <<\EOF
    675 
    676 Optional Features:
    677   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    678   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    679 
    680 Optional Packages:
    681   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    682   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    683 
    684 Compile/Install Options:
    685   --disable-full-tgetent  disable check for full tgetent function
    686   --with-app-defaults=DIR directory in which to install resource files (default: EPREFIX/lib/X11/app-defaults)
    687   --with-icondir=DIR      directory in which to install icons (default: EPREFIX/share/pixmaps)
    688   --disable-desktop       disable install of xterm desktop files
    689   --with-reference=XXX    program to use as permissions-reference
    690   --with-xterm-symlink=XXX make symbolic link to installed xterm
    691   --disable-setuid        disable setuid in xterm, do not install setuid/setgid
    692   --disable-setgid        disable setgid in xterm, do not install setuid/setgid
    693   --with-setuid=XXX       use the given setuid user
    694   --with-utmp-setgid=XXX  use setgid to match utmp/utmpx file
    695   --with-utempter         use utempter library for access to utmp
    696   --with-tty-group=XXX    use XXX for the tty-group
    697   --with-x                use the X Window System
    698   --with-Xaw3d            link with Xaw 3d library
    699   --with-neXtaw           link with neXT Athena library
    700   --with-XawPlus          link with Athena-Plus library
    701   --enable-narrowproto    enable narrow prototypes for X libraries
    702   --disable-imake         disable use of imake for definitions
    703 Terminal Configuration:
    704   --with-terminal-id=V    set default decTerminalID (default: vt100)
    705   --with-terminal-type=T  set default $TERM (default: xterm)
    706   --with-own-terminfo=P   set default $TERMINFO (default: from environment)
    707 Optional Features:
    708   --disable-active-icon   disable X11R6.3 active-icon feature
    709   --disable-ansi-color    disable ANSI color
    710   --disable-16-color      disable 16-color support
    711   --enable-256-color      enable 256-color support
    712   --enable-88-color       enable 88-color support
    713   --disable-blink-cursor  disable support for blinking cursor
    714   --enable-broken-osc     allow broken Linux OSC-strings
    715   --enable-broken-st      allow broken string-terminators
    716   --disable-c1-print      disallow -k8 option for printable 128-159
    717   --disable-bold-color    disable PC-style mapping of bold colors
    718   --disable-color-class   disable separate color class resources
    719   --disable-color-mode    disable default colorMode resource
    720   --disable-highlighting  disable support for color highlighting
    721   --disable-doublechars   disable support for double-size chars
    722   --disable-boxchars      disable fallback-support for box chars
    723   --enable-exec-xterm     enable "spawn-new-terminal" action
    724   --disable-freetype      disable freetype library-support
    725   --with-pkg-config{=path} enable/disable use of pkg-config
    726   --with-freetype-cflags  -D/-I options for compiling with FreeType
    727   --with-freetype-libs    -L/-l options to link FreeType
    728   --enable-hp-fkeys       enable support for HP-style function keys
    729   --enable-sco-fkeys      enable support for SCO-style function keys
    730   --disable-sun-fkeys     disable support for Sun-style function keys
    731   --enable-fifo-lines     disable FIFO-storage for saved-lines
    732   --disable-i18n          disable internationalization
    733   --disable-initial-erase disable setup for stty erase
    734   --disable-input-method  disable input-method
    735   --enable-load-vt-fonts  enable load-vt-fonts() action
    736   --enable-logging        enable logging
    737   --enable-logfile-exec   enable exec'd logfile filter
    738   --disable-maximize      disable actions for iconify/deiconify/maximize/restore
    739   --disable-num-lock      disable NumLock keypad support
    740   --disable-paste64       disable get/set base64 selection data
    741   --disable-pty-handshake disable pty-handshake support
    742   --enable-readline-mouse enable support for mouse in readline applications
    743   --disable-regex         disable regular-expression selections
    744   --with-pcre             use PCRE for regular-expressions
    745   --disable-rightbar      disable right-scrollbar support
    746   --disable-samename      disable check for redundant name-change
    747   --disable-session-mgt   disable support for session management
    748   --disable-tcap-fkeys    disable termcap function-keys support
    749   --disable-tcap-query    disable compiled-in termcap-query support
    750   --disable-tek4014       disable tek4014 emulation
    751   --enable-toolbar        compile-in toolbar for pulldown menus
    752   --disable-vt52          disable VT52 emulation
    753   --enable-mini-luit      enable mini-luit (built-in Latin9 support)
    754   --enable-luit           enable luit filter (Unicode translation)
    755   --enable-wide-chars     enable wide-character support
    756   --enable-16bit-chars    enable 16-bit character support
    757   --enable-dabbrev        enable dynamic-abbreviation support
    758   --enable-dec-locator    enable DECterm Locator support
    759   --disable-rectangles    disable VT420 rectangle support
    760   --disable-ziconbeep     disable -ziconbeep option
    761 Testing/development Options:
    762   --enable-trace          test: set to enable debugging traces
    763   --disable-leaks         test: set to test memory leaks
    764   --disable-echo          display "compiling" commands
    765   --enable-xmc-glitch     test: enable xmc magic-cookie emulation
    766   --enable-warnings       test: turn on GCC compiler warnings
    767 
    768 Some influential environment variables:
    769   CC          C compiler command
    770   CFLAGS      C compiler flags
    771   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    772               nonstandard directory <lib dir>
    773   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    774               headers in a nonstandard directory <include dir>
    775   CPP         C preprocessor
    776 
    777 Use these variables to override the choices made by `configure' or to help
    778 it to find libraries and programs with nonstandard names/locations.
    779 
    780 EOF
    781 fi
    782 
    783 if test "$ac_init_help" = "recursive"; then
    784   # If there are subdirs, report their specific --help.
    785   ac_popdir=`pwd`
    786   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    787     cd $ac_subdir
    788     # A "../" for each directory in /$ac_subdir.
    789     ac_dots=`echo $ac_subdir |
    790              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    791 
    792     case $srcdir in
    793     .) # No --srcdir option.  We are building in place.
    794       ac_sub_srcdir=$srcdir ;;
    795     [\\/]* | ?:[\\/]* ) # Absolute path.
    796       ac_sub_srcdir=$srcdir/$ac_subdir ;;
    797     *) # Relative path.
    798       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    799     esac
    800 
    801     # Check for guested configure; otherwise get Cygnus style configure.
    802     if test -f $ac_sub_srcdir/configure.gnu; then
    803       echo
    804       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    805     elif test -f $ac_sub_srcdir/configure; then
    806       echo
    807       $SHELL $ac_sub_srcdir/configure  --help=recursive
    808     elif test -f $ac_sub_srcdir/configure.ac ||
    809            test -f $ac_sub_srcdir/configure.in; then
    810       echo
    811       $ac_configure --help
    812     else
    813       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    814     fi
    815     cd $ac_popdir
    816   done
    817 fi
    818 
    819 test -n "$ac_init_help" && exit 0
    820 if $ac_init_version; then
    821   cat <<\EOF
    822 
    823 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    824 Free Software Foundation, Inc.
    825 This configure script is free software; the Free Software Foundation
    826 gives unlimited permission to copy, distribute and modify it.
    827 EOF
    828   exit 0
    829 fi
    830 exec 5>config.log
    831 cat >&5 <<EOF
    832 This file contains any messages produced by compilers while
    833 running configure, to aid debugging if configure makes a mistake.
    834 
    835 It was created by $as_me, which was
    836 generated by GNU Autoconf 2.52.20081225.  Invocation command line was
    837 
    838   $ $0 $@
    839 
    840 EOF
    841 {
    842 cat <<_ASUNAME
    843 ## ---------- ##
    844 ## Platform.  ##
    845 ## ---------- ##
    846 
    847 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    848 uname -m = `(uname -m) 2>/dev/null || echo unknown`
    849 uname -r = `(uname -r) 2>/dev/null || echo unknown`
    850 uname -s = `(uname -s) 2>/dev/null || echo unknown`
    851 uname -v = `(uname -v) 2>/dev/null || echo unknown`
    852 
    853 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
    854 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
    855 
    856 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
    857 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    858 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    859 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    860 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    861 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    862 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    863 
    864 PATH = $PATH
    865 
    866 _ASUNAME
    867 } >&5
    868 
    869 cat >&5 <<EOF
    870 ## ------------ ##
    871 ## Core tests.  ##
    872 ## ------------ ##
    873 
    874 EOF
    875 
    876 # Keep a trace of the command line.
    877 # Strip out --no-create and --no-recursion so they do not pile up.
    878 # Also quote any args containing shell meta-characters.
    879 ac_configure_args=
    880 ac_sep=
    881 for ac_arg
    882 do
    883   case $ac_arg in
    884   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    885   | --no-cr | --no-c) ;;
    886   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    887   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    888   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    889     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    890     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    891     ac_sep=" " ;;
    892   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
    893      ac_sep=" " ;;
    894   esac
    895   # Get rid of the leading space.
    896 done
    897 
    898 # When interrupted or exit'd, cleanup temporary files, and complete
    899 # config.log.  We remove comments because anyway the quotes in there
    900 # would cause problems or look ugly.
    901 trap 'exit_status=$?
    902   # Save into config.log some information that might help in debugging.
    903   echo >&5
    904   echo "## ----------------- ##" >&5
    905   echo "## Cache variables.  ##" >&5
    906   echo "## ----------------- ##" >&5
    907   echo >&5
    908   # The following way of writing the cache mishandles newlines in values,
    909 {
    910   (set) 2>&1 |
    911     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    912     *ac_space=\ *)
    913       sed -n \
    914         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    915     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    916       ;;
    917     *)
    918       sed -n \
    919         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    920       ;;
    921     esac;
    922 } >&5
    923   sed "/^$/d" confdefs.h >conftest.log
    924   if test -s conftest.log; then
    925     echo >&5
    926     echo "## ------------ ##" >&5
    927     echo "## confdefs.h.  ##" >&5
    928     echo "## ------------ ##" >&5
    929     echo >&5
    930     cat conftest.log >&5
    931   fi
    932   (echo; echo) >&5
    933   test "$ac_signal" != 0 &&
    934     echo "$as_me: caught signal $ac_signal" >&5
    935   echo "$as_me: exit $exit_status" >&5
    936   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    937     exit $exit_status
    938      ' 0
    939 for ac_signal in 1 2 13 15; do
    940   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    941 done
    942 ac_signal=0
    943 
    944 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    945 rm -rf conftest* confdefs.h
    946 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    947 echo >confdefs.h
    948 
    949 # Let the site file select an alternate cache file if it wants to.
    950 # Prefer explicitly selected file to automatically selected ones.
    951 if test -z "$CONFIG_SITE"; then
    952   if test "x$prefix" != xNONE; then
    953     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    954   else
    955     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    956   fi
    957 fi
    958 for ac_site_file in $CONFIG_SITE; do
    959   if test -r "$ac_site_file"; then
    960     { echo "$as_me:960: loading site script $ac_site_file" >&5
    961 echo "$as_me: loading site script $ac_site_file" >&6;}
    962     cat "$ac_site_file" >&5
    963     . "$ac_site_file"
    964   fi
    965 done
    966 
    967 if test -r "$cache_file"; then
    968   # Some versions of bash will fail to source /dev/null (special
    969   # files actually), so we avoid doing that.
    970   if test -f "$cache_file"; then
    971     { echo "$as_me:971: loading cache $cache_file" >&5
    972 echo "$as_me: loading cache $cache_file" >&6;}
    973     case $cache_file in
    974       [\\/]* | ?:[\\/]* ) . $cache_file;;
    975       *)                      . ./$cache_file;;
    976     esac
    977   fi
    978 else
    979   { echo "$as_me:979: creating cache $cache_file" >&5
    980 echo "$as_me: creating cache $cache_file" >&6;}
    981   >$cache_file
    982 fi
    983 
    984 # Check that the precious variables saved in the cache have kept the same
    985 # value.
    986 ac_cache_corrupted=false
    987 for ac_var in `(set) 2>&1 |
    988                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    989   eval ac_old_set=\$ac_cv_env_${ac_var}_set
    990   eval ac_new_set=\$ac_env_${ac_var}_set
    991   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    992   eval ac_new_val="\$ac_env_${ac_var}_value"
    993   case $ac_old_set,$ac_new_set in
    994     set,)
    995       { echo "$as_me:995: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    996 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    997       ac_cache_corrupted=: ;;
    998     ,set)
    999       { echo "$as_me:999: error: \`$ac_var' was not set in the previous run" >&5
   1000 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1001       ac_cache_corrupted=: ;;
   1002     ,);;
   1003     *)
   1004       if test "x$ac_old_val" != "x$ac_new_val"; then
   1005         { echo "$as_me:1005: error: \`$ac_var' has changed since the previous run:" >&5
   1006 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1007         { echo "$as_me:1007:   former value:  $ac_old_val" >&5
   1008 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1009         { echo "$as_me:1009:   current value: $ac_new_val" >&5
   1010 echo "$as_me:   current value: $ac_new_val" >&2;}
   1011         ac_cache_corrupted=:
   1012       fi;;
   1013   esac
   1014   # Pass precious variables to config.status.  It doesn't matter if
   1015   # we pass some twice (in addition to the command line arguments).
   1016   if test "$ac_new_set" = set; then
   1017     case $ac_new_val in
   1018     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1019       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
   1020       ac_configure_args="$ac_configure_args '$ac_arg'"
   1021       ;;
   1022     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
   1023        ;;
   1024     esac
   1025   fi
   1026 done
   1027 if $ac_cache_corrupted; then
   1028   { echo "$as_me:1028: error: changes in the environment can compromise the build" >&5
   1029 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1030   { { echo "$as_me:1030: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1031 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1032    { (exit 1); exit 1; }; }
   1033 fi
   1034 
   1035 ac_ext=c
   1036 ac_cpp='$CPP $CPPFLAGS'
   1037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1040 ac_main_return=return
   1041 
   1042 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
   1043   *c*,-n*) ECHO_N= ECHO_C='
   1044 ' ECHO_T='	' ;;
   1045   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
   1046   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
   1047 esac
   1048 echo "#! $SHELL" >conftest.sh
   1049 echo  "exit 0"   >>conftest.sh
   1050 chmod +x conftest.sh
   1051 if { (echo "$as_me:1051: PATH=\".;.\"; conftest.sh") >&5
   1052   (PATH=".;."; conftest.sh) 2>&5
   1053   ac_status=$?
   1054   echo "$as_me:1054: \$? = $ac_status" >&5
   1055   (exit $ac_status); }; then
   1056   ac_path_separator=';'
   1057 else
   1058   ac_path_separator=:
   1059 fi
   1060 PATH_SEPARATOR="$ac_path_separator"
   1061 rm -f conftest.sh
   1062 
   1063 ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
   1064 
   1065 ac_aux_dir=
   1066 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   1067   if test -f $ac_dir/install-sh; then
   1068     ac_aux_dir=$ac_dir
   1069     ac_install_sh="$ac_aux_dir/install-sh -c"
   1070     break
   1071   elif test -f $ac_dir/install.sh; then
   1072     ac_aux_dir=$ac_dir
   1073     ac_install_sh="$ac_aux_dir/install.sh -c"
   1074     break
   1075   elif test -f $ac_dir/shtool; then
   1076     ac_aux_dir=$ac_dir
   1077     ac_install_sh="$ac_aux_dir/shtool install -c"
   1078     break
   1079   fi
   1080 done
   1081 if test -z "$ac_aux_dir"; then
   1082   { { echo "$as_me:1082: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
   1083 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   1084    { (exit 1); exit 1; }; }
   1085 fi
   1086 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
   1087 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
   1088 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
   1089 
   1090 # Make sure we can run config.sub.
   1091 $ac_config_sub sun4 >/dev/null 2>&1 ||
   1092   { { echo "$as_me:1092: error: cannot run $ac_config_sub" >&5
   1093 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   1094    { (exit 1); exit 1; }; }
   1095 
   1096 echo "$as_me:1096: checking build system type" >&5
   1097 echo $ECHO_N "checking build system type... $ECHO_C" >&6
   1098 if test "${ac_cv_build+set}" = set; then
   1099   echo $ECHO_N "(cached) $ECHO_C" >&6
   1100 else
   1101   ac_cv_build_alias=$build_alias
   1102 test -z "$ac_cv_build_alias" &&
   1103   ac_cv_build_alias=`$ac_config_guess`
   1104 test -z "$ac_cv_build_alias" &&
   1105   { { echo "$as_me:1105: error: cannot guess build type; you must specify one" >&5
   1106 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   1107    { (exit 1); exit 1; }; }
   1108 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
   1109   { { echo "$as_me:1109: error: $ac_config_sub $ac_cv_build_alias failed." >&5
   1110 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   1111    { (exit 1); exit 1; }; }
   1112 
   1113 fi
   1114 echo "$as_me:1114: result: $ac_cv_build" >&5
   1115 echo "${ECHO_T}$ac_cv_build" >&6
   1116 build=$ac_cv_build
   1117 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1118 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1119 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1120 
   1121 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
   1122 	echo "$as_me:1122: checking host system type" >&5
   1123 echo $ECHO_N "checking host system type... $ECHO_C" >&6
   1124 if test "${ac_cv_host+set}" = set; then
   1125   echo $ECHO_N "(cached) $ECHO_C" >&6
   1126 else
   1127   ac_cv_host_alias=$host_alias
   1128 test -z "$ac_cv_host_alias" &&
   1129   ac_cv_host_alias=$ac_cv_build_alias
   1130 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
   1131   { { echo "$as_me:1131: error: $ac_config_sub $ac_cv_host_alias failed" >&5
   1132 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   1133    { (exit 1); exit 1; }; }
   1134 
   1135 fi
   1136 echo "$as_me:1136: result: $ac_cv_host" >&5
   1137 echo "${ECHO_T}$ac_cv_host" >&6
   1138 host=$ac_cv_host
   1139 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1140 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1141 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1142 
   1143 	system_name="$host_os"
   1144 else
   1145 	system_name="`(uname -s -r) 2>/dev/null`"
   1146 	if test -z "$system_name" ; then
   1147 		system_name="`(hostname) 2>/dev/null`"
   1148 	fi
   1149 fi
   1150 test -n "$system_name" && cat >>confdefs.h <<EOF
   1151 #define SYSTEM_NAME "$system_name"
   1152 EOF
   1153 
   1154 if test "${cf_cv_system_name+set}" = set; then
   1155   echo $ECHO_N "(cached) $ECHO_C" >&6
   1156 else
   1157   cf_cv_system_name="$system_name"
   1158 fi
   1159 
   1160 test -z "$system_name" && system_name="$cf_cv_system_name"
   1161 test -n "$cf_cv_system_name" && echo "$as_me:1161: result: Configuring for $cf_cv_system_name" >&5
   1162 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
   1163 
   1164 if test ".$system_name" != ".$cf_cv_system_name" ; then
   1165 	echo "$as_me:1165: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
   1166 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
   1167 	{ { echo "$as_me:1167: error: \"Please remove config.cache and try again.\"" >&5
   1168 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
   1169    { (exit 1); exit 1; }; }
   1170 fi
   1171 
   1172 ###	checks for alternative programs
   1173 
   1174 case "$host_os" in
   1175 openedition)	: ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"}
   1176 		: ${CPPFLAGS="-D_ALL_SOURCE"}
   1177 		: ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"}
   1178 		: ${CC=c89};;
   1179 darwin*)
   1180 		: ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";;
   1181 esac
   1182 
   1183 ac_ext=c
   1184 ac_cpp='$CPP $CPPFLAGS'
   1185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1188 ac_main_return=return
   1189 if test -n "$ac_tool_prefix"; then
   1190   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1192 echo "$as_me:1192: checking for $ac_word" >&5
   1193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1194 if test "${ac_cv_prog_CC+set}" = set; then
   1195   echo $ECHO_N "(cached) $ECHO_C" >&6
   1196 else
   1197   if test -n "$CC"; then
   1198   ac_cv_prog_CC="$CC" # Let the user override the test.
   1199 else
   1200   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1201 ac_dummy="$PATH"
   1202 for ac_dir in $ac_dummy; do
   1203   IFS=$ac_save_IFS
   1204   test -z "$ac_dir" && ac_dir=.
   1205   $as_executable_p "$ac_dir/$ac_word" || continue
   1206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1207 echo "$as_me:1207: found $ac_dir/$ac_word" >&5
   1208 break
   1209 done
   1210 
   1211 fi
   1212 fi
   1213 CC=$ac_cv_prog_CC
   1214 if test -n "$CC"; then
   1215   echo "$as_me:1215: result: $CC" >&5
   1216 echo "${ECHO_T}$CC" >&6
   1217 else
   1218   echo "$as_me:1218: result: no" >&5
   1219 echo "${ECHO_T}no" >&6
   1220 fi
   1221 
   1222 fi
   1223 if test -z "$ac_cv_prog_CC"; then
   1224   ac_ct_CC=$CC
   1225   # Extract the first word of "gcc", so it can be a program name with args.
   1226 set dummy gcc; ac_word=$2
   1227 echo "$as_me:1227: checking for $ac_word" >&5
   1228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1230   echo $ECHO_N "(cached) $ECHO_C" >&6
   1231 else
   1232   if test -n "$ac_ct_CC"; then
   1233   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1234 else
   1235   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1236 ac_dummy="$PATH"
   1237 for ac_dir in $ac_dummy; do
   1238   IFS=$ac_save_IFS
   1239   test -z "$ac_dir" && ac_dir=.
   1240   $as_executable_p "$ac_dir/$ac_word" || continue
   1241 ac_cv_prog_ac_ct_CC="gcc"
   1242 echo "$as_me:1242: found $ac_dir/$ac_word" >&5
   1243 break
   1244 done
   1245 
   1246 fi
   1247 fi
   1248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1249 if test -n "$ac_ct_CC"; then
   1250   echo "$as_me:1250: result: $ac_ct_CC" >&5
   1251 echo "${ECHO_T}$ac_ct_CC" >&6
   1252 else
   1253   echo "$as_me:1253: result: no" >&5
   1254 echo "${ECHO_T}no" >&6
   1255 fi
   1256 
   1257   CC=$ac_ct_CC
   1258 else
   1259   CC="$ac_cv_prog_CC"
   1260 fi
   1261 
   1262 if test -z "$CC"; then
   1263   if test -n "$ac_tool_prefix"; then
   1264   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1265 set dummy ${ac_tool_prefix}cc; ac_word=$2
   1266 echo "$as_me:1266: checking for $ac_word" >&5
   1267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1268 if test "${ac_cv_prog_CC+set}" = set; then
   1269   echo $ECHO_N "(cached) $ECHO_C" >&6
   1270 else
   1271   if test -n "$CC"; then
   1272   ac_cv_prog_CC="$CC" # Let the user override the test.
   1273 else
   1274   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1275 ac_dummy="$PATH"
   1276 for ac_dir in $ac_dummy; do
   1277   IFS=$ac_save_IFS
   1278   test -z "$ac_dir" && ac_dir=.
   1279   $as_executable_p "$ac_dir/$ac_word" || continue
   1280 ac_cv_prog_CC="${ac_tool_prefix}cc"
   1281 echo "$as_me:1281: found $ac_dir/$ac_word" >&5
   1282 break
   1283 done
   1284 
   1285 fi
   1286 fi
   1287 CC=$ac_cv_prog_CC
   1288 if test -n "$CC"; then
   1289   echo "$as_me:1289: result: $CC" >&5
   1290 echo "${ECHO_T}$CC" >&6
   1291 else
   1292   echo "$as_me:1292: result: no" >&5
   1293 echo "${ECHO_T}no" >&6
   1294 fi
   1295 
   1296 fi
   1297 if test -z "$ac_cv_prog_CC"; then
   1298   ac_ct_CC=$CC
   1299   # Extract the first word of "cc", so it can be a program name with args.
   1300 set dummy cc; ac_word=$2
   1301 echo "$as_me:1301: checking for $ac_word" >&5
   1302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1304   echo $ECHO_N "(cached) $ECHO_C" >&6
   1305 else
   1306   if test -n "$ac_ct_CC"; then
   1307   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1308 else
   1309   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1310 ac_dummy="$PATH"
   1311 for ac_dir in $ac_dummy; do
   1312   IFS=$ac_save_IFS
   1313   test -z "$ac_dir" && ac_dir=.
   1314   $as_executable_p "$ac_dir/$ac_word" || continue
   1315 ac_cv_prog_ac_ct_CC="cc"
   1316 echo "$as_me:1316: found $ac_dir/$ac_word" >&5
   1317 break
   1318 done
   1319 
   1320 fi
   1321 fi
   1322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1323 if test -n "$ac_ct_CC"; then
   1324   echo "$as_me:1324: result: $ac_ct_CC" >&5
   1325 echo "${ECHO_T}$ac_ct_CC" >&6
   1326 else
   1327   echo "$as_me:1327: result: no" >&5
   1328 echo "${ECHO_T}no" >&6
   1329 fi
   1330 
   1331   CC=$ac_ct_CC
   1332 else
   1333   CC="$ac_cv_prog_CC"
   1334 fi
   1335 
   1336 fi
   1337 if test -z "$CC"; then
   1338   # Extract the first word of "cc", so it can be a program name with args.
   1339 set dummy cc; ac_word=$2
   1340 echo "$as_me:1340: checking for $ac_word" >&5
   1341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1342 if test "${ac_cv_prog_CC+set}" = set; then
   1343   echo $ECHO_N "(cached) $ECHO_C" >&6
   1344 else
   1345   if test -n "$CC"; then
   1346   ac_cv_prog_CC="$CC" # Let the user override the test.
   1347 else
   1348   ac_prog_rejected=no
   1349   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1350 ac_dummy="$PATH"
   1351 for ac_dir in $ac_dummy; do
   1352   IFS=$ac_save_IFS
   1353   test -z "$ac_dir" && ac_dir=.
   1354   $as_executable_p "$ac_dir/$ac_word" || continue
   1355 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
   1356   ac_prog_rejected=yes
   1357   continue
   1358 fi
   1359 ac_cv_prog_CC="cc"
   1360 echo "$as_me:1360: found $ac_dir/$ac_word" >&5
   1361 break
   1362 done
   1363 
   1364 if test $ac_prog_rejected = yes; then
   1365   # We found a bogon in the path, so make sure we never use it.
   1366   set dummy $ac_cv_prog_CC
   1367   shift
   1368   if test $# != 0; then
   1369     # We chose a different compiler from the bogus one.
   1370     # However, it has the same basename, so the bogon will be chosen
   1371     # first if we set CC to just the basename; use the full file name.
   1372     shift
   1373     set dummy "$ac_dir/$ac_word" ${1+"$@"}
   1374     shift
   1375     ac_cv_prog_CC="$@"
   1376   fi
   1377 fi
   1378 fi
   1379 fi
   1380 CC=$ac_cv_prog_CC
   1381 if test -n "$CC"; then
   1382   echo "$as_me:1382: result: $CC" >&5
   1383 echo "${ECHO_T}$CC" >&6
   1384 else
   1385   echo "$as_me:1385: result: no" >&5
   1386 echo "${ECHO_T}no" >&6
   1387 fi
   1388 
   1389 fi
   1390 if test -z "$CC"; then
   1391   if test -n "$ac_tool_prefix"; then
   1392   for ac_prog in cl
   1393   do
   1394     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1396 echo "$as_me:1396: checking for $ac_word" >&5
   1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1398 if test "${ac_cv_prog_CC+set}" = set; then
   1399   echo $ECHO_N "(cached) $ECHO_C" >&6
   1400 else
   1401   if test -n "$CC"; then
   1402   ac_cv_prog_CC="$CC" # Let the user override the test.
   1403 else
   1404   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1405 ac_dummy="$PATH"
   1406 for ac_dir in $ac_dummy; do
   1407   IFS=$ac_save_IFS
   1408   test -z "$ac_dir" && ac_dir=.
   1409   $as_executable_p "$ac_dir/$ac_word" || continue
   1410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1411 echo "$as_me:1411: found $ac_dir/$ac_word" >&5
   1412 break
   1413 done
   1414 
   1415 fi
   1416 fi
   1417 CC=$ac_cv_prog_CC
   1418 if test -n "$CC"; then
   1419   echo "$as_me:1419: result: $CC" >&5
   1420 echo "${ECHO_T}$CC" >&6
   1421 else
   1422   echo "$as_me:1422: result: no" >&5
   1423 echo "${ECHO_T}no" >&6
   1424 fi
   1425 
   1426     test -n "$CC" && break
   1427   done
   1428 fi
   1429 if test -z "$CC"; then
   1430   ac_ct_CC=$CC
   1431   for ac_prog in cl
   1432 do
   1433   # Extract the first word of "$ac_prog", so it can be a program name with args.
   1434 set dummy $ac_prog; ac_word=$2
   1435 echo "$as_me:1435: checking for $ac_word" >&5
   1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1438   echo $ECHO_N "(cached) $ECHO_C" >&6
   1439 else
   1440   if test -n "$ac_ct_CC"; then
   1441   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1442 else
   1443   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1444 ac_dummy="$PATH"
   1445 for ac_dir in $ac_dummy; do
   1446   IFS=$ac_save_IFS
   1447   test -z "$ac_dir" && ac_dir=.
   1448   $as_executable_p "$ac_dir/$ac_word" || continue
   1449 ac_cv_prog_ac_ct_CC="$ac_prog"
   1450 echo "$as_me:1450: found $ac_dir/$ac_word" >&5
   1451 break
   1452 done
   1453 
   1454 fi
   1455 fi
   1456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1457 if test -n "$ac_ct_CC"; then
   1458   echo "$as_me:1458: result: $ac_ct_CC" >&5
   1459 echo "${ECHO_T}$ac_ct_CC" >&6
   1460 else
   1461   echo "$as_me:1461: result: no" >&5
   1462 echo "${ECHO_T}no" >&6
   1463 fi
   1464 
   1465   test -n "$ac_ct_CC" && break
   1466 done
   1467 
   1468   CC=$ac_ct_CC
   1469 fi
   1470 
   1471 fi
   1472 
   1473 test -z "$CC" && { { echo "$as_me:1473: error: no acceptable cc found in \$PATH" >&5
   1474 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   1475    { (exit 1); exit 1; }; }
   1476 
   1477 # Provide some information about the compiler.
   1478 echo "$as_me:1478:" \
   1479      "checking for C compiler version" >&5
   1480 ac_compiler=`set X $ac_compile; echo $2`
   1481 { (eval echo "$as_me:1481: \"$ac_compiler --version </dev/null >&5\"") >&5
   1482   (eval $ac_compiler --version </dev/null >&5) 2>&5
   1483   ac_status=$?
   1484   echo "$as_me:1484: \$? = $ac_status" >&5
   1485   (exit $ac_status); }
   1486 { (eval echo "$as_me:1486: \"$ac_compiler -v </dev/null >&5\"") >&5
   1487   (eval $ac_compiler -v </dev/null >&5) 2>&5
   1488   ac_status=$?
   1489   echo "$as_me:1489: \$? = $ac_status" >&5
   1490   (exit $ac_status); }
   1491 { (eval echo "$as_me:1491: \"$ac_compiler -V </dev/null >&5\"") >&5
   1492   (eval $ac_compiler -V </dev/null >&5) 2>&5
   1493   ac_status=$?
   1494   echo "$as_me:1494: \$? = $ac_status" >&5
   1495   (exit $ac_status); }
   1496 
   1497 cat >conftest.$ac_ext <<_ACEOF
   1498 #line 1498 "configure"
   1499 #include "confdefs.h"
   1500 
   1501 int
   1502 main ()
   1503 {
   1504 
   1505   ;
   1506   return 0;
   1507 }
   1508 _ACEOF
   1509 ac_clean_files_save=$ac_clean_files
   1510 ac_clean_files="$ac_clean_files a.out a.exe"
   1511 # Try to create an executable without -o first, disregard a.out.
   1512 # It will help us diagnose broken compilers, and finding out an intuition
   1513 # of exeext.
   1514 echo "$as_me:1514: checking for C compiler default output" >&5
   1515 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
   1516 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   1517 if { (eval echo "$as_me:1517: \"$ac_link_default\"") >&5
   1518   (eval $ac_link_default) 2>&5
   1519   ac_status=$?
   1520   echo "$as_me:1520: \$? = $ac_status" >&5
   1521   (exit $ac_status); }; then
   1522   # Find the output, starting from the most likely.  This scheme is
   1523 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
   1524 # resort.
   1525 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
   1526                 ls a.out conftest 2>/dev/null;
   1527                 ls a.* conftest.* 2>/dev/null`; do
   1528   case $ac_file in
   1529     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1530     a.out ) # We found the default executable, but exeext='' is most
   1531             # certainly right.
   1532             break;;
   1533     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1534           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
   1535           export ac_cv_exeext
   1536           break;;
   1537     * ) break;;
   1538   esac
   1539 done
   1540 else
   1541   echo "$as_me: failed program was:" >&5
   1542 cat conftest.$ac_ext >&5
   1543 { { echo "$as_me:1543: error: C compiler cannot create executables" >&5
   1544 echo "$as_me: error: C compiler cannot create executables" >&2;}
   1545    { (exit 77); exit 77; }; }
   1546 fi
   1547 
   1548 ac_exeext=$ac_cv_exeext
   1549 echo "$as_me:1549: result: $ac_file" >&5
   1550 echo "${ECHO_T}$ac_file" >&6
   1551 
   1552 # Check the compiler produces executables we can run.  If not, either
   1553 # the compiler is broken, or we cross compile.
   1554 echo "$as_me:1554: checking whether the C compiler works" >&5
   1555 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
   1556 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   1557 # If not cross compiling, check that we can run a simple program.
   1558 if test "$cross_compiling" != yes; then
   1559   if { ac_try='./$ac_file'
   1560   { (eval echo "$as_me:1560: \"$ac_try\"") >&5
   1561   (eval $ac_try) 2>&5
   1562   ac_status=$?
   1563   echo "$as_me:1563: \$? = $ac_status" >&5
   1564   (exit $ac_status); }; }; then
   1565     cross_compiling=no
   1566   else
   1567     if test "$cross_compiling" = maybe; then
   1568 	cross_compiling=yes
   1569     else
   1570 	{ { echo "$as_me:1570: error: cannot run C compiled programs.
   1571 If you meant to cross compile, use \`--host'." >&5
   1572 echo "$as_me: error: cannot run C compiled programs.
   1573 If you meant to cross compile, use \`--host'." >&2;}
   1574    { (exit 1); exit 1; }; }
   1575     fi
   1576   fi
   1577 fi
   1578 echo "$as_me:1578: result: yes" >&5
   1579 echo "${ECHO_T}yes" >&6
   1580 
   1581 rm -f a.out a.exe conftest$ac_cv_exeext
   1582 ac_clean_files=$ac_clean_files_save
   1583 # Check the compiler produces executables we can run.  If not, either
   1584 # the compiler is broken, or we cross compile.
   1585 echo "$as_me:1585: checking whether we are cross compiling" >&5
   1586 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
   1587 echo "$as_me:1587: result: $cross_compiling" >&5
   1588 echo "${ECHO_T}$cross_compiling" >&6
   1589 
   1590 echo "$as_me:1590: checking for executable suffix" >&5
   1591 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
   1592 if { (eval echo "$as_me:1592: \"$ac_link\"") >&5
   1593   (eval $ac_link) 2>&5
   1594   ac_status=$?
   1595   echo "$as_me:1595: \$? = $ac_status" >&5
   1596   (exit $ac_status); }; then
   1597   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   1598 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   1599 # work properly (i.e., refer to `conftest.exe'), while it won't with
   1600 # `rm'.
   1601 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
   1602   case $ac_file in
   1603     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1604     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1605           export ac_cv_exeext
   1606           break;;
   1607     * ) break;;
   1608   esac
   1609 done
   1610 else
   1611   { { echo "$as_me:1611: error: cannot compute EXEEXT: cannot compile and link" >&5
   1612 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   1613    { (exit 1); exit 1; }; }
   1614 fi
   1615 
   1616 rm -f conftest$ac_cv_exeext
   1617 echo "$as_me:1617: result: $ac_cv_exeext" >&5
   1618 echo "${ECHO_T}$ac_cv_exeext" >&6
   1619 
   1620 rm -f conftest.$ac_ext
   1621 EXEEXT=$ac_cv_exeext
   1622 ac_exeext=$EXEEXT
   1623 echo "$as_me:1623: checking for object suffix" >&5
   1624 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
   1625 if test "${ac_cv_objext+set}" = set; then
   1626   echo $ECHO_N "(cached) $ECHO_C" >&6
   1627 else
   1628   cat >conftest.$ac_ext <<_ACEOF
   1629 #line 1629 "configure"
   1630 #include "confdefs.h"
   1631 
   1632 int
   1633 main ()
   1634 {
   1635 
   1636   ;
   1637   return 0;
   1638 }
   1639 _ACEOF
   1640 rm -f conftest.o conftest.obj
   1641 if { (eval echo "$as_me:1641: \"$ac_compile\"") >&5
   1642   (eval $ac_compile) 2>&5
   1643   ac_status=$?
   1644   echo "$as_me:1644: \$? = $ac_status" >&5
   1645   (exit $ac_status); }; then
   1646   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   1647   case $ac_file in
   1648     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
   1649     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   1650        break;;
   1651   esac
   1652 done
   1653 else
   1654   echo "$as_me: failed program was:" >&5
   1655 cat conftest.$ac_ext >&5
   1656 { { echo "$as_me:1656: error: cannot compute OBJEXT: cannot compile" >&5
   1657 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   1658    { (exit 1); exit 1; }; }
   1659 fi
   1660 
   1661 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   1662 fi
   1663 echo "$as_me:1663: result: $ac_cv_objext" >&5
   1664 echo "${ECHO_T}$ac_cv_objext" >&6
   1665 OBJEXT=$ac_cv_objext
   1666 ac_objext=$OBJEXT
   1667 echo "$as_me:1667: checking whether we are using the GNU C compiler" >&5
   1668 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
   1669 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   1670   echo $ECHO_N "(cached) $ECHO_C" >&6
   1671 else
   1672   cat >conftest.$ac_ext <<_ACEOF
   1673 #line 1673 "configure"
   1674 #include "confdefs.h"
   1675 
   1676 int
   1677 main ()
   1678 {
   1679 #ifndef __GNUC__
   1680        choke me
   1681 #endif
   1682 
   1683   ;
   1684   return 0;
   1685 }
   1686 _ACEOF
   1687 rm -f conftest.$ac_objext
   1688 if { (eval echo "$as_me:1688: \"$ac_compile\"") >&5
   1689   (eval $ac_compile) 2>&5
   1690   ac_status=$?
   1691   echo "$as_me:1691: \$? = $ac_status" >&5
   1692   (exit $ac_status); } &&
   1693          { ac_try='test -s conftest.$ac_objext'
   1694   { (eval echo "$as_me:1694: \"$ac_try\"") >&5
   1695   (eval $ac_try) 2>&5
   1696   ac_status=$?
   1697   echo "$as_me:1697: \$? = $ac_status" >&5
   1698   (exit $ac_status); }; }; then
   1699   ac_compiler_gnu=yes
   1700 else
   1701   echo "$as_me: failed program was:" >&5
   1702 cat conftest.$ac_ext >&5
   1703 ac_compiler_gnu=no
   1704 fi
   1705 rm -f conftest.$ac_objext conftest.$ac_ext
   1706 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   1707 
   1708 fi
   1709 echo "$as_me:1709: result: $ac_cv_c_compiler_gnu" >&5
   1710 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
   1711 GCC=`test $ac_compiler_gnu = yes && echo yes`
   1712 ac_test_CFLAGS=${CFLAGS+set}
   1713 ac_save_CFLAGS=$CFLAGS
   1714 CFLAGS="-g"
   1715 echo "$as_me:1715: checking whether $CC accepts -g" >&5
   1716 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
   1717 if test "${ac_cv_prog_cc_g+set}" = set; then
   1718   echo $ECHO_N "(cached) $ECHO_C" >&6
   1719 else
   1720   cat >conftest.$ac_ext <<_ACEOF
   1721 #line 1721 "configure"
   1722 #include "confdefs.h"
   1723 
   1724 int
   1725 main ()
   1726 {
   1727 
   1728   ;
   1729   return 0;
   1730 }
   1731 _ACEOF
   1732 rm -f conftest.$ac_objext
   1733 if { (eval echo "$as_me:1733: \"$ac_compile\"") >&5
   1734   (eval $ac_compile) 2>&5
   1735   ac_status=$?
   1736   echo "$as_me:1736: \$? = $ac_status" >&5
   1737   (exit $ac_status); } &&
   1738          { ac_try='test -s conftest.$ac_objext'
   1739   { (eval echo "$as_me:1739: \"$ac_try\"") >&5
   1740   (eval $ac_try) 2>&5
   1741   ac_status=$?
   1742   echo "$as_me:1742: \$? = $ac_status" >&5
   1743   (exit $ac_status); }; }; then
   1744   ac_cv_prog_cc_g=yes
   1745 else
   1746   echo "$as_me: failed program was:" >&5
   1747 cat conftest.$ac_ext >&5
   1748 ac_cv_prog_cc_g=no
   1749 fi
   1750 rm -f conftest.$ac_objext conftest.$ac_ext
   1751 fi
   1752 echo "$as_me:1752: result: $ac_cv_prog_cc_g" >&5
   1753 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
   1754 if test "$ac_test_CFLAGS" = set; then
   1755   CFLAGS=$ac_save_CFLAGS
   1756 elif test $ac_cv_prog_cc_g = yes; then
   1757   if test "$GCC" = yes; then
   1758     CFLAGS="-g -O2"
   1759   else
   1760     CFLAGS="-g"
   1761   fi
   1762 else
   1763   if test "$GCC" = yes; then
   1764     CFLAGS="-O2"
   1765   else
   1766     CFLAGS=
   1767   fi
   1768 fi
   1769 # Some people use a C++ compiler to compile C.  Since we use `exit',
   1770 # in C++ we need to declare it.  In case someone uses the same compiler
   1771 # for both compiling C and C++ we need to have the C++ compiler decide
   1772 # the declaration of exit, since it's the most demanding environment.
   1773 cat >conftest.$ac_ext <<_ACEOF
   1774 #ifndef __cplusplus
   1775   choke me
   1776 #endif
   1777 _ACEOF
   1778 rm -f conftest.$ac_objext
   1779 if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5
   1780   (eval $ac_compile) 2>&5
   1781   ac_status=$?
   1782   echo "$as_me:1782: \$? = $ac_status" >&5
   1783   (exit $ac_status); } &&
   1784          { ac_try='test -s conftest.$ac_objext'
   1785   { (eval echo "$as_me:1785: \"$ac_try\"") >&5
   1786   (eval $ac_try) 2>&5
   1787   ac_status=$?
   1788   echo "$as_me:1788: \$? = $ac_status" >&5
   1789   (exit $ac_status); }; }; then
   1790   for ac_declaration in \
   1791    ''\
   1792    '#include <stdlib.h>' \
   1793    'extern "C" void std::exit (int) throw (); using std::exit;' \
   1794    'extern "C" void std::exit (int); using std::exit;' \
   1795    'extern "C" void exit (int) throw ();' \
   1796    'extern "C" void exit (int);' \
   1797    'void exit (int);'
   1798 do
   1799   cat >conftest.$ac_ext <<_ACEOF
   1800 #line 1800 "configure"
   1801 #include "confdefs.h"
   1802 #include <stdlib.h>
   1803 $ac_declaration
   1804 int
   1805 main ()
   1806 {
   1807 exit (42);
   1808   ;
   1809   return 0;
   1810 }
   1811 _ACEOF
   1812 rm -f conftest.$ac_objext
   1813 if { (eval echo "$as_me:1813: \"$ac_compile\"") >&5
   1814   (eval $ac_compile) 2>&5
   1815   ac_status=$?
   1816   echo "$as_me:1816: \$? = $ac_status" >&5
   1817   (exit $ac_status); } &&
   1818          { ac_try='test -s conftest.$ac_objext'
   1819   { (eval echo "$as_me:1819: \"$ac_try\"") >&5
   1820   (eval $ac_try) 2>&5
   1821   ac_status=$?
   1822   echo "$as_me:1822: \$? = $ac_status" >&5
   1823   (exit $ac_status); }; }; then
   1824   :
   1825 else
   1826   echo "$as_me: failed program was:" >&5
   1827 cat conftest.$ac_ext >&5
   1828 continue
   1829 fi
   1830 rm -f conftest.$ac_objext conftest.$ac_ext
   1831   cat >conftest.$ac_ext <<_ACEOF
   1832 #line 1832 "configure"
   1833 #include "confdefs.h"
   1834 $ac_declaration
   1835 int
   1836 main ()
   1837 {
   1838 exit (42);
   1839   ;
   1840   return 0;
   1841 }
   1842 _ACEOF
   1843 rm -f conftest.$ac_objext
   1844 if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5
   1845   (eval $ac_compile) 2>&5
   1846   ac_status=$?
   1847   echo "$as_me:1847: \$? = $ac_status" >&5
   1848   (exit $ac_status); } &&
   1849          { ac_try='test -s conftest.$ac_objext'
   1850   { (eval echo "$as_me:1850: \"$ac_try\"") >&5
   1851   (eval $ac_try) 2>&5
   1852   ac_status=$?
   1853   echo "$as_me:1853: \$? = $ac_status" >&5
   1854   (exit $ac_status); }; }; then
   1855   break
   1856 else
   1857   echo "$as_me: failed program was:" >&5
   1858 cat conftest.$ac_ext >&5
   1859 fi
   1860 rm -f conftest.$ac_objext conftest.$ac_ext
   1861 done
   1862 rm -f conftest*
   1863 if test -n "$ac_declaration"; then
   1864   echo '#ifdef __cplusplus' >>confdefs.h
   1865   echo $ac_declaration      >>confdefs.h
   1866   echo '#endif'             >>confdefs.h
   1867 fi
   1868 
   1869 else
   1870   echo "$as_me: failed program was:" >&5
   1871 cat conftest.$ac_ext >&5
   1872 fi
   1873 rm -f conftest.$ac_objext conftest.$ac_ext
   1874 ac_ext=c
   1875 ac_cpp='$CPP $CPPFLAGS'
   1876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1879 ac_main_return=return
   1880 
   1881 ac_ext=c
   1882 ac_cpp='$CPP $CPPFLAGS'
   1883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1886 ac_main_return=return
   1887 echo "$as_me:1887: checking how to run the C preprocessor" >&5
   1888 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   1889 # On Suns, sometimes $CPP names a directory.
   1890 if test -n "$CPP" && test -d "$CPP"; then
   1891   CPP=
   1892 fi
   1893 if test -z "$CPP"; then
   1894   if test "${ac_cv_prog_CPP+set}" = set; then
   1895   echo $ECHO_N "(cached) $ECHO_C" >&6
   1896 else
   1897       # Double quotes because CPP needs to be expanded
   1898     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   1899     do
   1900       ac_preproc_ok=false
   1901 for ac_c_preproc_warn_flag in '' yes
   1902 do
   1903   # Use a header file that comes with gcc, so configuring glibc
   1904   # with a fresh cross-compiler works.
   1905   # On the NeXT, cc -E runs the code through the compiler's parser,
   1906   # not just through cpp. "Syntax error" is here to catch this case.
   1907   cat >conftest.$ac_ext <<_ACEOF
   1908 #line 1908 "configure"
   1909 #include "confdefs.h"
   1910 #include <assert.h>
   1911                      Syntax error
   1912 _ACEOF
   1913 if { (eval echo "$as_me:1913: \"$ac_cpp conftest.$ac_ext\"") >&5
   1914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   1915   ac_status=$?
   1916   egrep -v '^ *\+' conftest.er1 >conftest.err
   1917   rm -f conftest.er1
   1918   cat conftest.err >&5
   1919   echo "$as_me:1919: \$? = $ac_status" >&5
   1920   (exit $ac_status); } >/dev/null; then
   1921   if test -s conftest.err; then
   1922     ac_cpp_err=$ac_c_preproc_warn_flag
   1923   else
   1924     ac_cpp_err=
   1925   fi
   1926 else
   1927   ac_cpp_err=yes
   1928 fi
   1929 if test -z "$ac_cpp_err"; then
   1930   :
   1931 else
   1932   echo "$as_me: failed program was:" >&5
   1933   cat conftest.$ac_ext >&5
   1934   # Broken: fails on valid input.
   1935 continue
   1936 fi
   1937 rm -f conftest.err conftest.$ac_ext
   1938 
   1939   # OK, works on sane cases.  Now check whether non-existent headers
   1940   # can be detected and how.
   1941   cat >conftest.$ac_ext <<_ACEOF
   1942 #line 1942 "configure"
   1943 #include "confdefs.h"
   1944 #include <ac_nonexistent.h>
   1945 _ACEOF
   1946 if { (eval echo "$as_me:1946: \"$ac_cpp conftest.$ac_ext\"") >&5
   1947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   1948   ac_status=$?
   1949   egrep -v '^ *\+' conftest.er1 >conftest.err
   1950   rm -f conftest.er1
   1951   cat conftest.err >&5
   1952   echo "$as_me:1952: \$? = $ac_status" >&5
   1953   (exit $ac_status); } >/dev/null; then
   1954   if test -s conftest.err; then
   1955     ac_cpp_err=$ac_c_preproc_warn_flag
   1956   else
   1957     ac_cpp_err=
   1958   fi
   1959 else
   1960   ac_cpp_err=yes
   1961 fi
   1962 if test -z "$ac_cpp_err"; then
   1963   # Broken: success on invalid input.
   1964 continue
   1965 else
   1966   echo "$as_me: failed program was:" >&5
   1967   cat conftest.$ac_ext >&5
   1968   # Passes both tests.
   1969 ac_preproc_ok=:
   1970 break
   1971 fi
   1972 rm -f conftest.err conftest.$ac_ext
   1973 
   1974 done
   1975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   1976 rm -f conftest.err conftest.$ac_ext
   1977 if $ac_preproc_ok; then
   1978   break
   1979 fi
   1980 
   1981     done
   1982     ac_cv_prog_CPP=$CPP
   1983 
   1984 fi
   1985   CPP=$ac_cv_prog_CPP
   1986 else
   1987   ac_cv_prog_CPP=$CPP
   1988 fi
   1989 echo "$as_me:1989: result: $CPP" >&5
   1990 echo "${ECHO_T}$CPP" >&6
   1991 ac_preproc_ok=false
   1992 for ac_c_preproc_warn_flag in '' yes
   1993 do
   1994   # Use a header file that comes with gcc, so configuring glibc
   1995   # with a fresh cross-compiler works.
   1996   # On the NeXT, cc -E runs the code through the compiler's parser,
   1997   # not just through cpp. "Syntax error" is here to catch this case.
   1998   cat >conftest.$ac_ext <<_ACEOF
   1999 #line 1999 "configure"
   2000 #include "confdefs.h"
   2001 #include <assert.h>
   2002                      Syntax error
   2003 _ACEOF
   2004 if { (eval echo "$as_me:2004: \"$ac_cpp conftest.$ac_ext\"") >&5
   2005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2006   ac_status=$?
   2007   egrep -v '^ *\+' conftest.er1 >conftest.err
   2008   rm -f conftest.er1
   2009   cat conftest.err >&5
   2010   echo "$as_me:2010: \$? = $ac_status" >&5
   2011   (exit $ac_status); } >/dev/null; then
   2012   if test -s conftest.err; then
   2013     ac_cpp_err=$ac_c_preproc_warn_flag
   2014   else
   2015     ac_cpp_err=
   2016   fi
   2017 else
   2018   ac_cpp_err=yes
   2019 fi
   2020 if test -z "$ac_cpp_err"; then
   2021   :
   2022 else
   2023   echo "$as_me: failed program was:" >&5
   2024   cat conftest.$ac_ext >&5
   2025   # Broken: fails on valid input.
   2026 continue
   2027 fi
   2028 rm -f conftest.err conftest.$ac_ext
   2029 
   2030   # OK, works on sane cases.  Now check whether non-existent headers
   2031   # can be detected and how.
   2032   cat >conftest.$ac_ext <<_ACEOF
   2033 #line 2033 "configure"
   2034 #include "confdefs.h"
   2035 #include <ac_nonexistent.h>
   2036 _ACEOF
   2037 if { (eval echo "$as_me:2037: \"$ac_cpp conftest.$ac_ext\"") >&5
   2038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2039   ac_status=$?
   2040   egrep -v '^ *\+' conftest.er1 >conftest.err
   2041   rm -f conftest.er1
   2042   cat conftest.err >&5
   2043   echo "$as_me:2043: \$? = $ac_status" >&5
   2044   (exit $ac_status); } >/dev/null; then
   2045   if test -s conftest.err; then
   2046     ac_cpp_err=$ac_c_preproc_warn_flag
   2047   else
   2048     ac_cpp_err=
   2049   fi
   2050 else
   2051   ac_cpp_err=yes
   2052 fi
   2053 if test -z "$ac_cpp_err"; then
   2054   # Broken: success on invalid input.
   2055 continue
   2056 else
   2057   echo "$as_me: failed program was:" >&5
   2058   cat conftest.$ac_ext >&5
   2059   # Passes both tests.
   2060 ac_preproc_ok=:
   2061 break
   2062 fi
   2063 rm -f conftest.err conftest.$ac_ext
   2064 
   2065 done
   2066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   2067 rm -f conftest.err conftest.$ac_ext
   2068 if $ac_preproc_ok; then
   2069   :
   2070 else
   2071   { { echo "$as_me:2071: error: C preprocessor \"$CPP\" fails sanity check" >&5
   2072 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   2073    { (exit 1); exit 1; }; }
   2074 fi
   2075 
   2076 ac_ext=c
   2077 ac_cpp='$CPP $CPPFLAGS'
   2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2081 ac_main_return=return
   2082 
   2083 if test $ac_cv_c_compiler_gnu = yes; then
   2084     echo "$as_me:2084: checking whether $CC needs -traditional" >&5
   2085 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
   2086 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
   2087   echo $ECHO_N "(cached) $ECHO_C" >&6
   2088 else
   2089     ac_pattern="Autoconf.*'x'"
   2090   cat >conftest.$ac_ext <<_ACEOF
   2091 #line 2091 "configure"
   2092 #include "confdefs.h"
   2093 #include <sgtty.h>
   2094 int Autoconf = TIOCGETP;
   2095 _ACEOF
   2096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   2097   egrep "$ac_pattern" >/dev/null 2>&1; then
   2098   ac_cv_prog_gcc_traditional=yes
   2099 else
   2100   ac_cv_prog_gcc_traditional=no
   2101 fi
   2102 rm -f conftest*
   2103 
   2104   if test $ac_cv_prog_gcc_traditional = no; then
   2105     cat >conftest.$ac_ext <<_ACEOF
   2106 #line 2106 "configure"
   2107 #include "confdefs.h"
   2108 #include <termio.h>
   2109 int Autoconf = TCGETA;
   2110 _ACEOF
   2111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   2112   egrep "$ac_pattern" >/dev/null 2>&1; then
   2113   ac_cv_prog_gcc_traditional=yes
   2114 fi
   2115 rm -f conftest*
   2116 
   2117   fi
   2118 fi
   2119 echo "$as_me:2119: result: $ac_cv_prog_gcc_traditional" >&5
   2120 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
   2121   if test $ac_cv_prog_gcc_traditional = yes; then
   2122     CC="$CC -traditional"
   2123   fi
   2124 fi
   2125 
   2126 for ac_prog in mawk gawk nawk awk
   2127 do
   2128   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2129 set dummy $ac_prog; ac_word=$2
   2130 echo "$as_me:2130: checking for $ac_word" >&5
   2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2132 if test "${ac_cv_prog_AWK+set}" = set; then
   2133   echo $ECHO_N "(cached) $ECHO_C" >&6
   2134 else
   2135   if test -n "$AWK"; then
   2136   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2137 else
   2138   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2139 ac_dummy="$PATH"
   2140 for ac_dir in $ac_dummy; do
   2141   IFS=$ac_save_IFS
   2142   test -z "$ac_dir" && ac_dir=.
   2143   $as_executable_p "$ac_dir/$ac_word" || continue
   2144 ac_cv_prog_AWK="$ac_prog"
   2145 echo "$as_me:2145: found $ac_dir/$ac_word" >&5
   2146 break
   2147 done
   2148 
   2149 fi
   2150 fi
   2151 AWK=$ac_cv_prog_AWK
   2152 if test -n "$AWK"; then
   2153   echo "$as_me:2153: result: $AWK" >&5
   2154 echo "${ECHO_T}$AWK" >&6
   2155 else
   2156   echo "$as_me:2156: result: no" >&5
   2157 echo "${ECHO_T}no" >&6
   2158 fi
   2159 
   2160   test -n "$AWK" && break
   2161 done
   2162 
   2163 # Find a good install program.  We prefer a C program (faster),
   2164 # so one script is as good as another.  But avoid the broken or
   2165 # incompatible versions:
   2166 # SysV /etc/install, /usr/sbin/install
   2167 # SunOS /usr/etc/install
   2168 # IRIX /sbin/install
   2169 # AIX /bin/install
   2170 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2171 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2172 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2173 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2174 # ./install, which can be erroneously created by make from ./install.sh.
   2175 echo "$as_me:2175: checking for a BSD compatible install" >&5
   2176 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
   2177 if test -z "$INSTALL"; then
   2178 if test "${ac_cv_path_install+set}" = set; then
   2179   echo $ECHO_N "(cached) $ECHO_C" >&6
   2180 else
   2181     ac_save_IFS=$IFS; IFS=$ac_path_separator
   2182   for ac_dir in $PATH; do
   2183     IFS=$ac_save_IFS
   2184     # Account for people who put trailing slashes in PATH elements.
   2185     case $ac_dir/ in
   2186     / | ./ | .// | /cC/* \
   2187     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
   2188     | /usr/ucb/* ) ;;
   2189     *)
   2190       # OSF1 and SCO ODT 3.0 have their own names for install.
   2191       # Don't use installbsd from OSF since it installs stuff as root
   2192       # by default.
   2193       for ac_prog in ginstall scoinst install; do
   2194         if $as_executable_p "$ac_dir/$ac_prog"; then
   2195 	  if test $ac_prog = install &&
   2196             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2197 	    # AIX install.  It has an incompatible calling convention.
   2198 	    :
   2199 	  elif test $ac_prog = install &&
   2200 	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2201 	    # program-specific install script used by HP pwplus--don't use.
   2202 	    :
   2203 	  else
   2204 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   2205 	    break 2
   2206 	  fi
   2207 	fi
   2208       done
   2209       ;;
   2210     esac
   2211   done
   2212 
   2213 fi
   2214   if test "${ac_cv_path_install+set}" = set; then
   2215     INSTALL=$ac_cv_path_install
   2216   else
   2217     # As a last resort, use the slow shell script.  We don't cache a
   2218     # path for INSTALL within a source directory, because that will
   2219     # break other packages using the cache if that directory is
   2220     # removed, or if the path is relative.
   2221     INSTALL=$ac_install_sh
   2222   fi
   2223 fi
   2224 echo "$as_me:2224: result: $INSTALL" >&5
   2225 echo "${ECHO_T}$INSTALL" >&6
   2226 
   2227 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2228 # It thinks the first close brace ends the variable substitution.
   2229 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2230 
   2231 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2232 
   2233 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2234 
   2235 echo "$as_me:2235: checking whether ln -s works" >&5
   2236 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
   2237 LN_S=$as_ln_s
   2238 if test "$LN_S" = "ln -s"; then
   2239   echo "$as_me:2239: result: yes" >&5
   2240 echo "${ECHO_T}yes" >&6
   2241 else
   2242   echo "$as_me:2242: result: no, using $LN_S" >&5
   2243 echo "${ECHO_T}no, using $LN_S" >&6
   2244 fi
   2245 
   2246 test "$program_prefix" != NONE &&
   2247   program_transform_name="s,^,$program_prefix,;$program_transform_name"
   2248 # Use a double $ so make ignores it.
   2249 test "$program_suffix" != NONE &&
   2250   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
   2251 # Double any \ or $.  echo might interpret backslashes.
   2252 # By default was `s,x,x', remove it if useless.
   2253 cat <<\_ACEOF >conftest.sed
   2254 s/[\\$]/&&/g;s/;s,x,x,$//
   2255 _ACEOF
   2256 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
   2257 rm conftest.sed
   2258 
   2259 for ac_prog in tdlint lint alint
   2260 do
   2261   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2262 set dummy $ac_prog; ac_word=$2
   2263 echo "$as_me:2263: checking for $ac_word" >&5
   2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2265 if test "${ac_cv_prog_LINT+set}" = set; then
   2266   echo $ECHO_N "(cached) $ECHO_C" >&6
   2267 else
   2268   if test -n "$LINT"; then
   2269   ac_cv_prog_LINT="$LINT" # Let the user override the test.
   2270 else
   2271   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2272 ac_dummy="$PATH"
   2273 for ac_dir in $ac_dummy; do
   2274   IFS=$ac_save_IFS
   2275   test -z "$ac_dir" && ac_dir=.
   2276   $as_executable_p "$ac_dir/$ac_word" || continue
   2277 ac_cv_prog_LINT="$ac_prog"
   2278 echo "$as_me:2278: found $ac_dir/$ac_word" >&5
   2279 break
   2280 done
   2281 
   2282 fi
   2283 fi
   2284 LINT=$ac_cv_prog_LINT
   2285 if test -n "$LINT"; then
   2286   echo "$as_me:2286: result: $LINT" >&5
   2287 echo "${ECHO_T}$LINT" >&6
   2288 else
   2289   echo "$as_me:2289: result: no" >&5
   2290 echo "${ECHO_T}no" >&6
   2291 fi
   2292 
   2293   test -n "$LINT" && break
   2294 done
   2295 
   2296 ###	checks for UNIX variants that set C preprocessor variables
   2297 
   2298 echo "$as_me:2298: checking for AIX" >&5
   2299 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
   2300 cat >conftest.$ac_ext <<_ACEOF
   2301 #line 2301 "configure"
   2302 #include "confdefs.h"
   2303 #ifdef _AIX
   2304   yes
   2305 #endif
   2306 
   2307 _ACEOF
   2308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   2309   egrep "yes" >/dev/null 2>&1; then
   2310   echo "$as_me:2310: result: yes" >&5
   2311 echo "${ECHO_T}yes" >&6
   2312 cat >>confdefs.h <<\EOF
   2313 #define _ALL_SOURCE 1
   2314 EOF
   2315 
   2316 else
   2317   echo "$as_me:2317: result: no" >&5
   2318 echo "${ECHO_T}no" >&6
   2319 fi
   2320 rm -f conftest*
   2321 
   2322 echo "$as_me:2322: checking for POSIXized ISC" >&5
   2323 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
   2324 if test -d /etc/conf/kconfig.d &&
   2325    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
   2326 then
   2327   echo "$as_me:2327: result: yes" >&5
   2328 echo "${ECHO_T}yes" >&6
   2329   ISC=yes # If later tests want to check for ISC.
   2330 
   2331 cat >>confdefs.h <<\EOF
   2332 #define _POSIX_SOURCE 1
   2333 EOF
   2334 
   2335   if test "$GCC" = yes; then
   2336     CC="$CC -posix"
   2337   else
   2338     CC="$CC -Xp"
   2339   fi
   2340 else
   2341   echo "$as_me:2341: result: no" >&5
   2342 echo "${ECHO_T}no" >&6
   2343   ISC=
   2344 fi
   2345 
   2346 ###	checks for compiler characteristics
   2347 
   2348 echo "$as_me:2348: checking for ${CC-cc} option to accept ANSI C" >&5
   2349 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
   2350 if test "${cf_cv_ansi_cc+set}" = set; then
   2351   echo $ECHO_N "(cached) $ECHO_C" >&6
   2352 else
   2353 
   2354 cf_cv_ansi_cc=no
   2355 cf_save_CFLAGS="$CFLAGS"
   2356 cf_save_CPPFLAGS="$CPPFLAGS"
   2357 # Don't try gcc -ansi; that turns off useful extensions and
   2358 # breaks some systems' header files.
   2359 # AIX			-qlanglvl=ansi
   2360 # Ultrix and OSF/1	-std1
   2361 # HP-UX			-Aa -D_HPUX_SOURCE
   2362 # SVR4			-Xc
   2363 # UnixWare 1.2		(cannot use -Xc, since ANSI/POSIX clashes)
   2364 for cf_arg in "-DCC_HAS_PROTOS" \
   2365 	"" \
   2366 	-qlanglvl=ansi \
   2367 	-std1 \
   2368 	-Ae \
   2369 	"-Aa -D_HPUX_SOURCE" \
   2370 	-Xc
   2371 do
   2372 
   2373 cf_fix_cppflags=no
   2374 cf_new_cflags=
   2375 cf_new_cppflags=
   2376 cf_new_extra_cppflags=
   2377 
   2378 for cf_add_cflags in $cf_arg
   2379 do
   2380 case $cf_fix_cppflags in
   2381 no)
   2382 	case $cf_add_cflags in #(vi
   2383 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   2384 		case $cf_add_cflags in
   2385 		-D*)
   2386 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2387 
   2388 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   2389 			&& test -z "${cf_tst_cflags}" \
   2390 			&& cf_fix_cppflags=yes
   2391 
   2392 			if test $cf_fix_cppflags = yes ; then
   2393 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2394 				continue
   2395 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2396 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2397 				continue
   2398 			fi
   2399 			;;
   2400 		esac
   2401 		case "$CPPFLAGS" in
   2402 		*$cf_add_cflags) #(vi
   2403 			;;
   2404 		*) #(vi
   2405 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   2406 			;;
   2407 		esac
   2408 		;;
   2409 	*)
   2410 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   2411 		;;
   2412 	esac
   2413 	;;
   2414 yes)
   2415 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2416 
   2417 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2418 
   2419 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   2420 	&& test -z "${cf_tst_cflags}" \
   2421 	&& cf_fix_cppflags=no
   2422 	;;
   2423 esac
   2424 done
   2425 
   2426 if test -n "$cf_new_cflags" ; then
   2427 
   2428 	CFLAGS="$CFLAGS $cf_new_cflags"
   2429 fi
   2430 
   2431 if test -n "$cf_new_cppflags" ; then
   2432 
   2433 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   2434 fi
   2435 
   2436 if test -n "$cf_new_extra_cppflags" ; then
   2437 
   2438 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   2439 fi
   2440 
   2441 	cat >conftest.$ac_ext <<_ACEOF
   2442 #line 2442 "configure"
   2443 #include "confdefs.h"
   2444 
   2445 #ifndef CC_HAS_PROTOS
   2446 #if !defined(__STDC__) || (__STDC__ != 1)
   2447 choke me
   2448 #endif
   2449 #endif
   2450 
   2451 int
   2452 main ()
   2453 {
   2454 
   2455 	int test (int i, double x);
   2456 	struct s1 {int (*f) (int a);};
   2457 	struct s2 {int (*f) (double a);};
   2458   ;
   2459   return 0;
   2460 }
   2461 _ACEOF
   2462 rm -f conftest.$ac_objext
   2463 if { (eval echo "$as_me:2463: \"$ac_compile\"") >&5
   2464   (eval $ac_compile) 2>&5
   2465   ac_status=$?
   2466   echo "$as_me:2466: \$? = $ac_status" >&5
   2467   (exit $ac_status); } &&
   2468          { ac_try='test -s conftest.$ac_objext'
   2469   { (eval echo "$as_me:2469: \"$ac_try\"") >&5
   2470   (eval $ac_try) 2>&5
   2471   ac_status=$?
   2472   echo "$as_me:2472: \$? = $ac_status" >&5
   2473   (exit $ac_status); }; }; then
   2474   cf_cv_ansi_cc="$cf_arg"; break
   2475 else
   2476   echo "$as_me: failed program was:" >&5
   2477 cat conftest.$ac_ext >&5
   2478 fi
   2479 rm -f conftest.$ac_objext conftest.$ac_ext
   2480 done
   2481 CFLAGS="$cf_save_CFLAGS"
   2482 CPPFLAGS="$cf_save_CPPFLAGS"
   2483 
   2484 fi
   2485 echo "$as_me:2485: result: $cf_cv_ansi_cc" >&5
   2486 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
   2487 
   2488 if test "$cf_cv_ansi_cc" != "no"; then
   2489 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
   2490 
   2491 cf_fix_cppflags=no
   2492 cf_new_cflags=
   2493 cf_new_cppflags=
   2494 cf_new_extra_cppflags=
   2495 
   2496 for cf_add_cflags in $cf_cv_ansi_cc
   2497 do
   2498 case $cf_fix_cppflags in
   2499 no)
   2500 	case $cf_add_cflags in #(vi
   2501 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   2502 		case $cf_add_cflags in
   2503 		-D*)
   2504 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2505 
   2506 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   2507 			&& test -z "${cf_tst_cflags}" \
   2508 			&& cf_fix_cppflags=yes
   2509 
   2510 			if test $cf_fix_cppflags = yes ; then
   2511 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2512 				continue
   2513 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2514 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2515 				continue
   2516 			fi
   2517 			;;
   2518 		esac
   2519 		case "$CPPFLAGS" in
   2520 		*$cf_add_cflags) #(vi
   2521 			;;
   2522 		*) #(vi
   2523 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   2524 			;;
   2525 		esac
   2526 		;;
   2527 	*)
   2528 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   2529 		;;
   2530 	esac
   2531 	;;
   2532 yes)
   2533 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2534 
   2535 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2536 
   2537 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   2538 	&& test -z "${cf_tst_cflags}" \
   2539 	&& cf_fix_cppflags=no
   2540 	;;
   2541 esac
   2542 done
   2543 
   2544 if test -n "$cf_new_cflags" ; then
   2545 
   2546 	CFLAGS="$CFLAGS $cf_new_cflags"
   2547 fi
   2548 
   2549 if test -n "$cf_new_cppflags" ; then
   2550 
   2551 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   2552 fi
   2553 
   2554 if test -n "$cf_new_extra_cppflags" ; then
   2555 
   2556 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   2557 fi
   2558 
   2559 else
   2560 	cat >>confdefs.h <<\EOF
   2561 #define CC_HAS_PROTOS 1
   2562 EOF
   2563 
   2564 fi
   2565 fi
   2566 
   2567 echo "$as_me:2567: checking for $CC option to accept ANSI C" >&5
   2568 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
   2569 if test "${ac_cv_prog_cc_stdc+set}" = set; then
   2570   echo $ECHO_N "(cached) $ECHO_C" >&6
   2571 else
   2572   ac_cv_prog_cc_stdc=no
   2573 ac_save_CC=$CC
   2574 cat >conftest.$ac_ext <<_ACEOF
   2575 #line 2575 "configure"
   2576 #include "confdefs.h"
   2577 #include <stdarg.h>
   2578 #include <stdio.h>
   2579 #include <sys/types.h>
   2580 #include <sys/stat.h>
   2581 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2582 struct buf { int x; };
   2583 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2584 static char *e (p, i)
   2585      char **p;
   2586      int i;
   2587 {
   2588   return p[i];
   2589 }
   2590 static char *f (char * (*g) (char **, int), char **p, ...)
   2591 {
   2592   char *s;
   2593   va_list v;
   2594   va_start (v,p);
   2595   s = g (p, va_arg (v,int));
   2596   va_end (v);
   2597   return s;
   2598 }
   2599 int test (int i, double x);
   2600 struct s1 {int (*f) (int a);};
   2601 struct s2 {int (*f) (double a);};
   2602 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2603 int argc;
   2604 char **argv;
   2605 int
   2606 main ()
   2607 {
   2608 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2609   ;
   2610   return 0;
   2611 }
   2612 _ACEOF
   2613 # Don't try gcc -ansi; that turns off useful extensions and
   2614 # breaks some systems' header files.
   2615 # AIX			-qlanglvl=ansi
   2616 # Ultrix and OSF/1	-std1
   2617 # HP-UX 10.20 and later	-Ae
   2618 # HP-UX older versions	-Aa -D_HPUX_SOURCE
   2619 # SVR4			-Xc -D__EXTENSIONS__
   2620 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2621 do
   2622   CC="$ac_save_CC $ac_arg"
   2623   rm -f conftest.$ac_objext
   2624 if { (eval echo "$as_me:2624: \"$ac_compile\"") >&5
   2625   (eval $ac_compile) 2>&5
   2626   ac_status=$?
   2627   echo "$as_me:2627: \$? = $ac_status" >&5
   2628   (exit $ac_status); } &&
   2629          { ac_try='test -s conftest.$ac_objext'
   2630   { (eval echo "$as_me:2630: \"$ac_try\"") >&5
   2631   (eval $ac_try) 2>&5
   2632   ac_status=$?
   2633   echo "$as_me:2633: \$? = $ac_status" >&5
   2634   (exit $ac_status); }; }; then
   2635   ac_cv_prog_cc_stdc=$ac_arg
   2636 break
   2637 else
   2638   echo "$as_me: failed program was:" >&5
   2639 cat conftest.$ac_ext >&5
   2640 fi
   2641 rm -f conftest.$ac_objext
   2642 done
   2643 rm -f conftest.$ac_ext conftest.$ac_objext
   2644 CC=$ac_save_CC
   2645 
   2646 fi
   2647 
   2648 case "x$ac_cv_prog_cc_stdc" in
   2649   x|xno)
   2650     echo "$as_me:2650: result: none needed" >&5
   2651 echo "${ECHO_T}none needed" >&6 ;;
   2652   *)
   2653     echo "$as_me:2653: result: $ac_cv_prog_cc_stdc" >&5
   2654 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
   2655     CC="$CC $ac_cv_prog_cc_stdc" ;;
   2656 esac
   2657 
   2658 echo "$as_me:2658: checking for an ANSI C-conforming const" >&5
   2659 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
   2660 if test "${ac_cv_c_const+set}" = set; then
   2661   echo $ECHO_N "(cached) $ECHO_C" >&6
   2662 else
   2663   cat >conftest.$ac_ext <<_ACEOF
   2664 #line 2664 "configure"
   2665 #include "confdefs.h"
   2666 
   2667 int
   2668 main ()
   2669 {
   2670 /* FIXME: Include the comments suggested by Paul. */
   2671 #ifndef __cplusplus
   2672   /* Ultrix mips cc rejects this.  */
   2673   typedef int charset[2];
   2674   const charset x;
   2675   /* SunOS 4.1.1 cc rejects this.  */
   2676   char const *const *ccp;
   2677   char **p;
   2678   /* NEC SVR4.0.2 mips cc rejects this.  */
   2679   struct point {int x, y;};
   2680   static struct point const zero = {0,0};
   2681   /* AIX XL C 1.02.0.0 rejects this.
   2682      It does not let you subtract one const X* pointer from another in
   2683      an arm of an if-expression whose if-part is not a constant
   2684      expression */
   2685   const char *g = "string";
   2686   ccp = &g + (g ? g-g : 0);
   2687   /* HPUX 7.0 cc rejects these. */
   2688   ++ccp;
   2689   p = (char**) ccp;
   2690   ccp = (char const *const *) p;
   2691   { /* SCO 3.2v4 cc rejects this.  */
   2692     char *t;
   2693     char const *s = 0 ? (char *) 0 : (char const *) 0;
   2694 
   2695     *t++ = 0;
   2696   }
   2697   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   2698     int x[] = {25, 17};
   2699     const int *foo = &x[0];
   2700     ++foo;
   2701   }
   2702   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   2703     typedef const int *iptr;
   2704     iptr p = 0;
   2705     ++p;
   2706   }
   2707   { /* AIX XL C 1.02.0.0 rejects this saying
   2708        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   2709     struct s { int j; const int *ap[3]; };
   2710     struct s *b; b->j = 5;
   2711   }
   2712   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   2713     const int foo = 10;
   2714   }
   2715 #endif
   2716 
   2717   ;
   2718   return 0;
   2719 }
   2720 _ACEOF
   2721 rm -f conftest.$ac_objext
   2722 if { (eval echo "$as_me:2722: \"$ac_compile\"") >&5
   2723   (eval $ac_compile) 2>&5
   2724   ac_status=$?
   2725   echo "$as_me:2725: \$? = $ac_status" >&5
   2726   (exit $ac_status); } &&
   2727          { ac_try='test -s conftest.$ac_objext'
   2728   { (eval echo "$as_me:2728: \"$ac_try\"") >&5
   2729   (eval $ac_try) 2>&5
   2730   ac_status=$?
   2731   echo "$as_me:2731: \$? = $ac_status" >&5
   2732   (exit $ac_status); }; }; then
   2733   ac_cv_c_const=yes
   2734 else
   2735   echo "$as_me: failed program was:" >&5
   2736 cat conftest.$ac_ext >&5
   2737 ac_cv_c_const=no
   2738 fi
   2739 rm -f conftest.$ac_objext conftest.$ac_ext
   2740 fi
   2741 echo "$as_me:2741: result: $ac_cv_c_const" >&5
   2742 echo "${ECHO_T}$ac_cv_c_const" >&6
   2743 if test $ac_cv_c_const = no; then
   2744 
   2745 cat >>confdefs.h <<\EOF
   2746 #define const
   2747 EOF
   2748 
   2749 fi
   2750 
   2751 case $cf_cv_system_name in
   2752 os2*)
   2753     CFLAGS="$CFLAGS -Zmt"
   2754     CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
   2755     CXXFLAGS="$CXXFLAGS -Zmt"
   2756     # autoconf's macro sets -Zexe and suffix both, which conflict:w
   2757     LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
   2758     ac_cv_exeext=.exe
   2759     ;;
   2760 esac
   2761 
   2762 PROG_EXT="$EXEEXT"
   2763 
   2764 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
   2765 #define PROG_EXT "$PROG_EXT"
   2766 EOF
   2767 
   2768 echo "$as_me:2768: checking if $CC -U and -D options work together" >&5
   2769 echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
   2770 if test "${cf_cv_cc_u_d_options+set}" = set; then
   2771   echo $ECHO_N "(cached) $ECHO_C" >&6
   2772 else
   2773 
   2774 	cf_save_CPPFLAGS="$CPPFLAGS"
   2775 	CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
   2776 	cat >conftest.$ac_ext <<_ACEOF
   2777 #line 2777 "configure"
   2778 #include "confdefs.h"
   2779 
   2780 int
   2781 main ()
   2782 {
   2783 
   2784 #ifndef U_D_OPTIONS
   2785 make an undefined-error
   2786 #endif
   2787 #ifdef  D_U_OPTIONS
   2788 make a defined-error
   2789 #endif
   2790 
   2791   ;
   2792   return 0;
   2793 }
   2794 _ACEOF
   2795 rm -f conftest.$ac_objext
   2796 if { (eval echo "$as_me:2796: \"$ac_compile\"") >&5
   2797   (eval $ac_compile) 2>&5
   2798   ac_status=$?
   2799   echo "$as_me:2799: \$? = $ac_status" >&5
   2800   (exit $ac_status); } &&
   2801          { ac_try='test -s conftest.$ac_objext'
   2802   { (eval echo "$as_me:2802: \"$ac_try\"") >&5
   2803   (eval $ac_try) 2>&5
   2804   ac_status=$?
   2805   echo "$as_me:2805: \$? = $ac_status" >&5
   2806   (exit $ac_status); }; }; then
   2807 
   2808 	cf_cv_cc_u_d_options=yes
   2809 else
   2810   echo "$as_me: failed program was:" >&5
   2811 cat conftest.$ac_ext >&5
   2812 
   2813 	cf_cv_cc_u_d_options=no
   2814 fi
   2815 rm -f conftest.$ac_objext conftest.$ac_ext
   2816 	CPPFLAGS="$cf_save_CPPFLAGS"
   2817 
   2818 fi
   2819 echo "$as_me:2819: result: $cf_cv_cc_u_d_options" >&5
   2820 echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6
   2821 
   2822 cf_XOPEN_SOURCE=500
   2823 cf_POSIX_C_SOURCE=199506L
   2824 
   2825 case $host_os in #(vi
   2826 aix[456]*) #(vi
   2827 	CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
   2828 	;;
   2829 freebsd*|dragonfly*) #(vi
   2830 	# 5.x headers associate
   2831 	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
   2832 	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
   2833 	cf_POSIX_C_SOURCE=200112L
   2834 	cf_XOPEN_SOURCE=600
   2835 	CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   2836 	;;
   2837 hpux*) #(vi
   2838 	CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
   2839 	;;
   2840 irix[56].*) #(vi
   2841 	CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
   2842 	;;
   2843 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
   2844 
   2845 echo "$as_me:2845: checking if we must define _GNU_SOURCE" >&5
   2846 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
   2847 if test "${cf_cv_gnu_source+set}" = set; then
   2848   echo $ECHO_N "(cached) $ECHO_C" >&6
   2849 else
   2850 
   2851 cat >conftest.$ac_ext <<_ACEOF
   2852 #line 2852 "configure"
   2853 #include "confdefs.h"
   2854 #include <sys/types.h>
   2855 int
   2856 main ()
   2857 {
   2858 
   2859 #ifndef _XOPEN_SOURCE
   2860 make an error
   2861 #endif
   2862   ;
   2863   return 0;
   2864 }
   2865 _ACEOF
   2866 rm -f conftest.$ac_objext
   2867 if { (eval echo "$as_me:2867: \"$ac_compile\"") >&5
   2868   (eval $ac_compile) 2>&5
   2869   ac_status=$?
   2870   echo "$as_me:2870: \$? = $ac_status" >&5
   2871   (exit $ac_status); } &&
   2872          { ac_try='test -s conftest.$ac_objext'
   2873   { (eval echo "$as_me:2873: \"$ac_try\"") >&5
   2874   (eval $ac_try) 2>&5
   2875   ac_status=$?
   2876   echo "$as_me:2876: \$? = $ac_status" >&5
   2877   (exit $ac_status); }; }; then
   2878   cf_cv_gnu_source=no
   2879 else
   2880   echo "$as_me: failed program was:" >&5
   2881 cat conftest.$ac_ext >&5
   2882 cf_save="$CPPFLAGS"
   2883 	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   2884 	 cat >conftest.$ac_ext <<_ACEOF
   2885 #line 2885 "configure"
   2886 #include "confdefs.h"
   2887 #include <sys/types.h>
   2888 int
   2889 main ()
   2890 {
   2891 
   2892 #ifdef _XOPEN_SOURCE
   2893 make an error
   2894 #endif
   2895   ;
   2896   return 0;
   2897 }
   2898 _ACEOF
   2899 rm -f conftest.$ac_objext
   2900 if { (eval echo "$as_me:2900: \"$ac_compile\"") >&5
   2901   (eval $ac_compile) 2>&5
   2902   ac_status=$?
   2903   echo "$as_me:2903: \$? = $ac_status" >&5
   2904   (exit $ac_status); } &&
   2905          { ac_try='test -s conftest.$ac_objext'
   2906   { (eval echo "$as_me:2906: \"$ac_try\"") >&5
   2907   (eval $ac_try) 2>&5
   2908   ac_status=$?
   2909   echo "$as_me:2909: \$? = $ac_status" >&5
   2910   (exit $ac_status); }; }; then
   2911   cf_cv_gnu_source=no
   2912 else
   2913   echo "$as_me: failed program was:" >&5
   2914 cat conftest.$ac_ext >&5
   2915 cf_cv_gnu_source=yes
   2916 fi
   2917 rm -f conftest.$ac_objext conftest.$ac_ext
   2918 	CPPFLAGS="$cf_save"
   2919 
   2920 fi
   2921 rm -f conftest.$ac_objext conftest.$ac_ext
   2922 
   2923 fi
   2924 echo "$as_me:2924: result: $cf_cv_gnu_source" >&5
   2925 echo "${ECHO_T}$cf_cv_gnu_source" >&6
   2926 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   2927 
   2928 	;;
   2929 mirbsd*) #(vi
   2930 	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
   2931 	;;
   2932 netbsd*) #(vi
   2933 	# setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
   2934 	;;
   2935 openbsd*) #(vi
   2936 	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
   2937 	;;
   2938 osf[45]*) #(vi
   2939 	CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
   2940 	;;
   2941 nto-qnx*) #(vi
   2942 	CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
   2943 	;;
   2944 sco*) #(vi
   2945 	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
   2946 	;;
   2947 solaris*) #(vi
   2948 	CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
   2949 	;;
   2950 *)
   2951 	echo "$as_me:2951: checking if we should define _XOPEN_SOURCE" >&5
   2952 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   2953 if test "${cf_cv_xopen_source+set}" = set; then
   2954   echo $ECHO_N "(cached) $ECHO_C" >&6
   2955 else
   2956 
   2957 	cat >conftest.$ac_ext <<_ACEOF
   2958 #line 2958 "configure"
   2959 #include "confdefs.h"
   2960 #include <sys/types.h>
   2961 int
   2962 main ()
   2963 {
   2964 
   2965 #ifndef _XOPEN_SOURCE
   2966 make an error
   2967 #endif
   2968   ;
   2969   return 0;
   2970 }
   2971 _ACEOF
   2972 rm -f conftest.$ac_objext
   2973 if { (eval echo "$as_me:2973: \"$ac_compile\"") >&5
   2974   (eval $ac_compile) 2>&5
   2975   ac_status=$?
   2976   echo "$as_me:2976: \$? = $ac_status" >&5
   2977   (exit $ac_status); } &&
   2978          { ac_try='test -s conftest.$ac_objext'
   2979   { (eval echo "$as_me:2979: \"$ac_try\"") >&5
   2980   (eval $ac_try) 2>&5
   2981   ac_status=$?
   2982   echo "$as_me:2982: \$? = $ac_status" >&5
   2983   (exit $ac_status); }; }; then
   2984   cf_cv_xopen_source=no
   2985 else
   2986   echo "$as_me: failed program was:" >&5
   2987 cat conftest.$ac_ext >&5
   2988 cf_save="$CPPFLAGS"
   2989 	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   2990 	 cat >conftest.$ac_ext <<_ACEOF
   2991 #line 2991 "configure"
   2992 #include "confdefs.h"
   2993 #include <sys/types.h>
   2994 int
   2995 main ()
   2996 {
   2997 
   2998 #ifdef _XOPEN_SOURCE
   2999 make an error
   3000 #endif
   3001   ;
   3002   return 0;
   3003 }
   3004 _ACEOF
   3005 rm -f conftest.$ac_objext
   3006 if { (eval echo "$as_me:3006: \"$ac_compile\"") >&5
   3007   (eval $ac_compile) 2>&5
   3008   ac_status=$?
   3009   echo "$as_me:3009: \$? = $ac_status" >&5
   3010   (exit $ac_status); } &&
   3011          { ac_try='test -s conftest.$ac_objext'
   3012   { (eval echo "$as_me:3012: \"$ac_try\"") >&5
   3013   (eval $ac_try) 2>&5
   3014   ac_status=$?
   3015   echo "$as_me:3015: \$? = $ac_status" >&5
   3016   (exit $ac_status); }; }; then
   3017   cf_cv_xopen_source=no
   3018 else
   3019   echo "$as_me: failed program was:" >&5
   3020 cat conftest.$ac_ext >&5
   3021 cf_cv_xopen_source=$cf_XOPEN_SOURCE
   3022 fi
   3023 rm -f conftest.$ac_objext conftest.$ac_ext
   3024 	CPPFLAGS="$cf_save"
   3025 
   3026 fi
   3027 rm -f conftest.$ac_objext conftest.$ac_ext
   3028 
   3029 fi
   3030 echo "$as_me:3030: result: $cf_cv_xopen_source" >&5
   3031 echo "${ECHO_T}$cf_cv_xopen_source" >&6
   3032 	if test "$cf_cv_xopen_source" != no ; then
   3033 
   3034 # remove _XOPEN_SOURCE symbol from $CFLAGS
   3035 CFLAGS=`echo "$CFLAGS" | \
   3036 	sed	-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
   3037 		-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?$//g'`
   3038 
   3039 # remove _XOPEN_SOURCE symbol from $CPPFLAGS
   3040 CPPFLAGS=`echo "$CPPFLAGS" | \
   3041 	sed	-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
   3042 		-e 's/-[UD]_XOPEN_SOURCE\(=[^ 	]*\)\?$//g'`
   3043 
   3044 		test "$cf_cv_cc_u_d_options" = yes && \
   3045 			CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
   3046 		CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
   3047 	fi
   3048 
   3049 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   3050 
   3051 cf_save_CFLAGS="$CFLAGS"
   3052 cf_save_CPPFLAGS="$CPPFLAGS"
   3053 
   3054 # remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
   3055 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   3056 	sed	-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
   3057 		-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?$//g'`
   3058 
   3059 # remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
   3060 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   3061 	sed	-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?[ 	]/ /g' \
   3062 		-e 's/-[UD]_POSIX_C_SOURCE\(=[^ 	]*\)\?$//g'`
   3063 
   3064 echo "$as_me:3064: checking if we should define _POSIX_C_SOURCE" >&5
   3065 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   3066 if test "${cf_cv_posix_c_source+set}" = set; then
   3067   echo $ECHO_N "(cached) $ECHO_C" >&6
   3068 else
   3069 
   3070 echo "${as_me-configure}:3070: testing if the symbol is already defined go no further ..." 1>&5
   3071 
   3072 	cat >conftest.$ac_ext <<_ACEOF
   3073 #line 3073 "configure"
   3074 #include "confdefs.h"
   3075 #include <sys/types.h>
   3076 int
   3077 main ()
   3078 {
   3079 
   3080 #ifndef _POSIX_C_SOURCE
   3081 make an error
   3082 #endif
   3083   ;
   3084   return 0;
   3085 }
   3086 _ACEOF
   3087 rm -f conftest.$ac_objext
   3088 if { (eval echo "$as_me:3088: \"$ac_compile\"") >&5
   3089   (eval $ac_compile) 2>&5
   3090   ac_status=$?
   3091   echo "$as_me:3091: \$? = $ac_status" >&5
   3092   (exit $ac_status); } &&
   3093          { ac_try='test -s conftest.$ac_objext'
   3094   { (eval echo "$as_me:3094: \"$ac_try\"") >&5
   3095   (eval $ac_try) 2>&5
   3096   ac_status=$?
   3097   echo "$as_me:3097: \$? = $ac_status" >&5
   3098   (exit $ac_status); }; }; then
   3099   cf_cv_posix_c_source=no
   3100 else
   3101   echo "$as_me: failed program was:" >&5
   3102 cat conftest.$ac_ext >&5
   3103 cf_want_posix_source=no
   3104 	 case .$cf_POSIX_C_SOURCE in #(vi
   3105 	 .[12]??*) #(vi
   3106 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3107 		;;
   3108 	 .2) #(vi
   3109 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3110 		cf_want_posix_source=yes
   3111 		;;
   3112 	 .*)
   3113 		cf_want_posix_source=yes
   3114 		;;
   3115 	 esac
   3116 	 if test "$cf_want_posix_source" = yes ; then
   3117 		cat >conftest.$ac_ext <<_ACEOF
   3118 #line 3118 "configure"
   3119 #include "confdefs.h"
   3120 #include <sys/types.h>
   3121 int
   3122 main ()
   3123 {
   3124 
   3125 #ifdef _POSIX_SOURCE
   3126 make an error
   3127 #endif
   3128   ;
   3129   return 0;
   3130 }
   3131 _ACEOF
   3132 rm -f conftest.$ac_objext
   3133 if { (eval echo "$as_me:3133: \"$ac_compile\"") >&5
   3134   (eval $ac_compile) 2>&5
   3135   ac_status=$?
   3136   echo "$as_me:3136: \$? = $ac_status" >&5
   3137   (exit $ac_status); } &&
   3138          { ac_try='test -s conftest.$ac_objext'
   3139   { (eval echo "$as_me:3139: \"$ac_try\"") >&5
   3140   (eval $ac_try) 2>&5
   3141   ac_status=$?
   3142   echo "$as_me:3142: \$? = $ac_status" >&5
   3143   (exit $ac_status); }; }; then
   3144   :
   3145 else
   3146   echo "$as_me: failed program was:" >&5
   3147 cat conftest.$ac_ext >&5
   3148 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   3149 fi
   3150 rm -f conftest.$ac_objext conftest.$ac_ext
   3151 	 fi
   3152 
   3153 echo "${as_me-configure}:3153: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   3154 
   3155 	 CFLAGS="$cf_trim_CFLAGS"
   3156 	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
   3157 
   3158 echo "${as_me-configure}:3158: testing if the second compile does not leave our definition intact error ..." 1>&5
   3159 
   3160 	 cat >conftest.$ac_ext <<_ACEOF
   3161 #line 3161 "configure"
   3162 #include "confdefs.h"
   3163 #include <sys/types.h>
   3164 int
   3165 main ()
   3166 {
   3167 
   3168 #ifndef _POSIX_C_SOURCE
   3169 make an error
   3170 #endif
   3171   ;
   3172   return 0;
   3173 }
   3174 _ACEOF
   3175 rm -f conftest.$ac_objext
   3176 if { (eval echo "$as_me:3176: \"$ac_compile\"") >&5
   3177   (eval $ac_compile) 2>&5
   3178   ac_status=$?
   3179   echo "$as_me:3179: \$? = $ac_status" >&5
   3180   (exit $ac_status); } &&
   3181          { ac_try='test -s conftest.$ac_objext'
   3182   { (eval echo "$as_me:3182: \"$ac_try\"") >&5
   3183   (eval $ac_try) 2>&5
   3184   ac_status=$?
   3185   echo "$as_me:3185: \$? = $ac_status" >&5
   3186   (exit $ac_status); }; }; then
   3187   :
   3188 else
   3189   echo "$as_me: failed program was:" >&5
   3190 cat conftest.$ac_ext >&5
   3191 cf_cv_posix_c_source=no
   3192 fi
   3193 rm -f conftest.$ac_objext conftest.$ac_ext
   3194 	 CFLAGS="$cf_save_CFLAGS"
   3195 	 CPPFLAGS="$cf_save_CPPFLAGS"
   3196 
   3197 fi
   3198 rm -f conftest.$ac_objext conftest.$ac_ext
   3199 
   3200 fi
   3201 echo "$as_me:3201: result: $cf_cv_posix_c_source" >&5
   3202 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   3203 
   3204 if test "$cf_cv_posix_c_source" != no ; then
   3205 	CFLAGS="$cf_trim_CFLAGS"
   3206 	CPPFLAGS="$cf_trim_CPPFLAGS"
   3207 	if test "$cf_cv_cc_u_d_options" = yes ; then
   3208 		cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
   3209 				sed -e 's/-D/-U/g' -e 's/=[^ 	]*//g'`
   3210 		CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
   3211 	fi
   3212 	CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
   3213 fi
   3214 
   3215 	;;
   3216 esac
   3217 
   3218 echo "$as_me:3218: checking if SIGWINCH is defined" >&5
   3219 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
   3220 if test "${cf_cv_define_sigwinch+set}" = set; then
   3221   echo $ECHO_N "(cached) $ECHO_C" >&6
   3222 else
   3223 
   3224 	cat >conftest.$ac_ext <<_ACEOF
   3225 #line 3225 "configure"
   3226 #include "confdefs.h"
   3227 
   3228 #include <sys/types.h>
   3229 #include <sys/signal.h>
   3230 
   3231 int
   3232 main ()
   3233 {
   3234 int x = SIGWINCH
   3235   ;
   3236   return 0;
   3237 }
   3238 _ACEOF
   3239 rm -f conftest.$ac_objext
   3240 if { (eval echo "$as_me:3240: \"$ac_compile\"") >&5
   3241   (eval $ac_compile) 2>&5
   3242   ac_status=$?
   3243   echo "$as_me:3243: \$? = $ac_status" >&5
   3244   (exit $ac_status); } &&
   3245          { ac_try='test -s conftest.$ac_objext'
   3246   { (eval echo "$as_me:3246: \"$ac_try\"") >&5
   3247   (eval $ac_try) 2>&5
   3248   ac_status=$?
   3249   echo "$as_me:3249: \$? = $ac_status" >&5
   3250   (exit $ac_status); }; }; then
   3251   cf_cv_define_sigwinch=yes
   3252 else
   3253   echo "$as_me: failed program was:" >&5
   3254 cat conftest.$ac_ext >&5
   3255 cat >conftest.$ac_ext <<_ACEOF
   3256 #line 3256 "configure"
   3257 #include "confdefs.h"
   3258 
   3259 #undef _XOPEN_SOURCE
   3260 #undef _POSIX_SOURCE
   3261 #undef _POSIX_C_SOURCE
   3262 #include <sys/types.h>
   3263 #include <sys/signal.h>
   3264 
   3265 int
   3266 main ()
   3267 {
   3268 int x = SIGWINCH
   3269   ;
   3270   return 0;
   3271 }
   3272 _ACEOF
   3273 rm -f conftest.$ac_objext
   3274 if { (eval echo "$as_me:3274: \"$ac_compile\"") >&5
   3275   (eval $ac_compile) 2>&5
   3276   ac_status=$?
   3277   echo "$as_me:3277: \$? = $ac_status" >&5
   3278   (exit $ac_status); } &&
   3279          { ac_try='test -s conftest.$ac_objext'
   3280   { (eval echo "$as_me:3280: \"$ac_try\"") >&5
   3281   (eval $ac_try) 2>&5
   3282   ac_status=$?
   3283   echo "$as_me:3283: \$? = $ac_status" >&5
   3284   (exit $ac_status); }; }; then
   3285   cf_cv_define_sigwinch=maybe
   3286 else
   3287   echo "$as_me: failed program was:" >&5
   3288 cat conftest.$ac_ext >&5
   3289 cf_cv_define_sigwinch=no
   3290 fi
   3291 rm -f conftest.$ac_objext conftest.$ac_ext
   3292 
   3293 fi
   3294 rm -f conftest.$ac_objext conftest.$ac_ext
   3295 
   3296 fi
   3297 echo "$as_me:3297: result: $cf_cv_define_sigwinch" >&5
   3298 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
   3299 
   3300 if test "$cf_cv_define_sigwinch" = maybe ; then
   3301 echo "$as_me:3301: checking for actual SIGWINCH definition" >&5
   3302 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
   3303 if test "${cf_cv_fixup_sigwinch+set}" = set; then
   3304   echo $ECHO_N "(cached) $ECHO_C" >&6
   3305 else
   3306 
   3307 cf_cv_fixup_sigwinch=unknown
   3308 cf_sigwinch=32
   3309 while test $cf_sigwinch != 1
   3310 do
   3311 	cat >conftest.$ac_ext <<_ACEOF
   3312 #line 3312 "configure"
   3313 #include "confdefs.h"
   3314 
   3315 #undef _XOPEN_SOURCE
   3316 #undef _POSIX_SOURCE
   3317 #undef _POSIX_C_SOURCE
   3318 #include <sys/types.h>
   3319 #include <sys/signal.h>
   3320 
   3321 int
   3322 main ()
   3323 {
   3324 
   3325 #if SIGWINCH != $cf_sigwinch
   3326 make an error
   3327 #endif
   3328 int x = SIGWINCH
   3329   ;
   3330   return 0;
   3331 }
   3332 _ACEOF
   3333 rm -f conftest.$ac_objext
   3334 if { (eval echo "$as_me:3334: \"$ac_compile\"") >&5
   3335   (eval $ac_compile) 2>&5
   3336   ac_status=$?
   3337   echo "$as_me:3337: \$? = $ac_status" >&5
   3338   (exit $ac_status); } &&
   3339          { ac_try='test -s conftest.$ac_objext'
   3340   { (eval echo "$as_me:3340: \"$ac_try\"") >&5
   3341   (eval $ac_try) 2>&5
   3342   ac_status=$?
   3343   echo "$as_me:3343: \$? = $ac_status" >&5
   3344   (exit $ac_status); }; }; then
   3345   cf_cv_fixup_sigwinch=$cf_sigwinch
   3346 	 break
   3347 else
   3348   echo "$as_me: failed program was:" >&5
   3349 cat conftest.$ac_ext >&5
   3350 fi
   3351 rm -f conftest.$ac_objext conftest.$ac_ext
   3352 
   3353 cf_sigwinch=`expr $cf_sigwinch - 1`
   3354 done
   3355 
   3356 fi
   3357 echo "$as_me:3357: result: $cf_cv_fixup_sigwinch" >&5
   3358 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
   3359 
   3360 	if test "$cf_cv_fixup_sigwinch" != unknown ; then
   3361 		CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
   3362 	fi
   3363 fi
   3364 
   3365 ###	checks for header files
   3366 
   3367 for ac_header in \
   3368 ncurses/term.h \
   3369 stdlib.h \
   3370 sys/ttydefaults.h \
   3371 term.h \
   3372 termios.h \
   3373 unistd.h \
   3374 wchar.h \
   3375 
   3376 do
   3377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3378 echo "$as_me:3378: checking for $ac_header" >&5
   3379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   3380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   3381   echo $ECHO_N "(cached) $ECHO_C" >&6
   3382 else
   3383   cat >conftest.$ac_ext <<_ACEOF
   3384 #line 3384 "configure"
   3385 #include "confdefs.h"
   3386 #include <$ac_header>
   3387 _ACEOF
   3388 if { (eval echo "$as_me:3388: \"$ac_cpp conftest.$ac_ext\"") >&5
   3389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3390   ac_status=$?
   3391   egrep -v '^ *\+' conftest.er1 >conftest.err
   3392   rm -f conftest.er1
   3393   cat conftest.err >&5
   3394   echo "$as_me:3394: \$? = $ac_status" >&5
   3395   (exit $ac_status); } >/dev/null; then
   3396   if test -s conftest.err; then
   3397     ac_cpp_err=$ac_c_preproc_warn_flag
   3398   else
   3399     ac_cpp_err=
   3400   fi
   3401 else
   3402   ac_cpp_err=yes
   3403 fi
   3404 if test -z "$ac_cpp_err"; then
   3405   eval "$as_ac_Header=yes"
   3406 else
   3407   echo "$as_me: failed program was:" >&5
   3408   cat conftest.$ac_ext >&5
   3409   eval "$as_ac_Header=no"
   3410 fi
   3411 rm -f conftest.err conftest.$ac_ext
   3412 fi
   3413 echo "$as_me:3413: result: `eval echo '${'$as_ac_Header'}'`" >&5
   3414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   3415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   3416   cat >>confdefs.h <<EOF
   3417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3418 EOF
   3419 
   3420 fi
   3421 done
   3422 
   3423 echo "$as_me:3423: checking whether time.h and sys/time.h may both be included" >&5
   3424 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
   3425 if test "${ac_cv_header_time+set}" = set; then
   3426   echo $ECHO_N "(cached) $ECHO_C" >&6
   3427 else
   3428   cat >conftest.$ac_ext <<_ACEOF
   3429 #line 3429 "configure"
   3430 #include "confdefs.h"
   3431 #include <sys/types.h>
   3432 #include <sys/time.h>
   3433 #include <time.h>
   3434 
   3435 int
   3436 main ()
   3437 {
   3438 if ((struct tm *) 0)
   3439 return 0;
   3440   ;
   3441   return 0;
   3442 }
   3443 _ACEOF
   3444 rm -f conftest.$ac_objext
   3445 if { (eval echo "$as_me:3445: \"$ac_compile\"") >&5
   3446   (eval $ac_compile) 2>&5
   3447   ac_status=$?
   3448   echo "$as_me:3448: \$? = $ac_status" >&5
   3449   (exit $ac_status); } &&
   3450          { ac_try='test -s conftest.$ac_objext'
   3451   { (eval echo "$as_me:3451: \"$ac_try\"") >&5
   3452   (eval $ac_try) 2>&5
   3453   ac_status=$?
   3454   echo "$as_me:3454: \$? = $ac_status" >&5
   3455   (exit $ac_status); }; }; then
   3456   ac_cv_header_time=yes
   3457 else
   3458   echo "$as_me: failed program was:" >&5
   3459 cat conftest.$ac_ext >&5
   3460 ac_cv_header_time=no
   3461 fi
   3462 rm -f conftest.$ac_objext conftest.$ac_ext
   3463 fi
   3464 echo "$as_me:3464: result: $ac_cv_header_time" >&5
   3465 echo "${ECHO_T}$ac_cv_header_time" >&6
   3466 if test $ac_cv_header_time = yes; then
   3467 
   3468 cat >>confdefs.h <<\EOF
   3469 #define TIME_WITH_SYS_TIME 1
   3470 EOF
   3471 
   3472 fi
   3473 
   3474   echo "$as_me:3474: checking for nl_langinfo and CODESET" >&5
   3475 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
   3476 if test "${am_cv_langinfo_codeset+set}" = set; then
   3477   echo $ECHO_N "(cached) $ECHO_C" >&6
   3478 else
   3479   cat >conftest.$ac_ext <<_ACEOF
   3480 #line 3480 "configure"
   3481 #include "confdefs.h"
   3482 #include <langinfo.h>
   3483 int
   3484 main ()
   3485 {
   3486 char* cs = nl_langinfo(CODESET);
   3487   ;
   3488   return 0;
   3489 }
   3490 _ACEOF
   3491 rm -f conftest.$ac_objext conftest$ac_exeext
   3492 if { (eval echo "$as_me:3492: \"$ac_link\"") >&5
   3493   (eval $ac_link) 2>&5
   3494   ac_status=$?
   3495   echo "$as_me:3495: \$? = $ac_status" >&5
   3496   (exit $ac_status); } &&
   3497          { ac_try='test -s conftest$ac_exeext'
   3498   { (eval echo "$as_me:3498: \"$ac_try\"") >&5
   3499   (eval $ac_try) 2>&5
   3500   ac_status=$?
   3501   echo "$as_me:3501: \$? = $ac_status" >&5
   3502   (exit $ac_status); }; }; then
   3503   am_cv_langinfo_codeset=yes
   3504 else
   3505   echo "$as_me: failed program was:" >&5
   3506 cat conftest.$ac_ext >&5
   3507 am_cv_langinfo_codeset=no
   3508 fi
   3509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   3510 
   3511 fi
   3512 echo "$as_me:3512: result: $am_cv_langinfo_codeset" >&5
   3513 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
   3514   if test $am_cv_langinfo_codeset = yes; then
   3515 
   3516 cat >>confdefs.h <<\EOF
   3517 #define HAVE_LANGINFO_CODESET 1
   3518 EOF
   3519 
   3520   fi
   3521 
   3522 ###	checks for typedefs
   3523 
   3524 echo "$as_me:3524: checking for signal global datatype" >&5
   3525 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
   3526 if test "${cf_cv_sig_atomic_t+set}" = set; then
   3527   echo $ECHO_N "(cached) $ECHO_C" >&6
   3528 else
   3529 
   3530 	for cf_type in \
   3531 		"volatile sig_atomic_t" \
   3532 		"sig_atomic_t" \
   3533 		"int"
   3534 	do
   3535 	cat >conftest.$ac_ext <<_ACEOF
   3536 #line 3536 "configure"
   3537 #include "confdefs.h"
   3538 
   3539 #include <sys/types.h>
   3540 #include <signal.h>
   3541 #include <stdio.h>
   3542 
   3543 extern $cf_type x;
   3544 $cf_type x;
   3545 static void handler(int sig)
   3546 {
   3547 	x = 5;
   3548 }
   3549 int
   3550 main ()
   3551 {
   3552 signal(SIGINT, handler);
   3553 		 x = 1
   3554   ;
   3555   return 0;
   3556 }
   3557 _ACEOF
   3558 rm -f conftest.$ac_objext
   3559 if { (eval echo "$as_me:3559: \"$ac_compile\"") >&5
   3560   (eval $ac_compile) 2>&5
   3561   ac_status=$?
   3562   echo "$as_me:3562: \$? = $ac_status" >&5
   3563   (exit $ac_status); } &&
   3564          { ac_try='test -s conftest.$ac_objext'
   3565   { (eval echo "$as_me:3565: \"$ac_try\"") >&5
   3566   (eval $ac_try) 2>&5
   3567   ac_status=$?
   3568   echo "$as_me:3568: \$? = $ac_status" >&5
   3569   (exit $ac_status); }; }; then
   3570   cf_cv_sig_atomic_t=$cf_type
   3571 else
   3572   echo "$as_me: failed program was:" >&5
   3573 cat conftest.$ac_ext >&5
   3574 cf_cv_sig_atomic_t=no
   3575 fi
   3576 rm -f conftest.$ac_objext conftest.$ac_ext
   3577 		test "$cf_cv_sig_atomic_t" != no && break
   3578 	done
   3579 
   3580 fi
   3581 
   3582 echo "$as_me:3582: result: $cf_cv_sig_atomic_t" >&5
   3583 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
   3584 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
   3585 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
   3586 EOF
   3587 
   3588 echo "$as_me:3588: checking for size_t in <sys/types.h> or <stdio.h>" >&5
   3589 echo $ECHO_N "checking for size_t in <sys/types.h> or <stdio.h>... $ECHO_C" >&6
   3590 if test "${cf_cv_type_size_t+set}" = set; then
   3591   echo $ECHO_N "(cached) $ECHO_C" >&6
   3592 else
   3593 
   3594 	cat >conftest.$ac_ext <<_ACEOF
   3595 #line 3595 "configure"
   3596 #include "confdefs.h"
   3597 
   3598 #include <sys/types.h>
   3599 #ifdef STDC_HEADERS
   3600 #include <stdlib.h>
   3601 #include <stddef.h>
   3602 #endif
   3603 #include <stdio.h>
   3604 int
   3605 main ()
   3606 {
   3607 size_t x
   3608   ;
   3609   return 0;
   3610 }
   3611 _ACEOF
   3612 rm -f conftest.$ac_objext
   3613 if { (eval echo "$as_me:3613: \"$ac_compile\"") >&5
   3614   (eval $ac_compile) 2>&5
   3615   ac_status=$?
   3616   echo "$as_me:3616: \$? = $ac_status" >&5
   3617   (exit $ac_status); } &&
   3618          { ac_try='test -s conftest.$ac_objext'
   3619   { (eval echo "$as_me:3619: \"$ac_try\"") >&5
   3620   (eval $ac_try) 2>&5
   3621   ac_status=$?
   3622   echo "$as_me:3622: \$? = $ac_status" >&5
   3623   (exit $ac_status); }; }; then
   3624   cf_cv_type_size_t=yes
   3625 else
   3626   echo "$as_me: failed program was:" >&5
   3627 cat conftest.$ac_ext >&5
   3628 cf_cv_type_size_t=no
   3629 fi
   3630 rm -f conftest.$ac_objext conftest.$ac_ext
   3631 
   3632 fi
   3633 
   3634 echo "$as_me:3634: result: $cf_cv_type_size_t" >&5
   3635 echo "${ECHO_T}$cf_cv_type_size_t" >&6
   3636 test $cf_cv_type_size_t = no && cat >>confdefs.h <<\EOF
   3637 #define size_t unsigned
   3638 EOF
   3639 
   3640 echo "$as_me:3640: checking for ANSI C header files" >&5
   3641 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   3642 if test "${ac_cv_header_stdc+set}" = set; then
   3643   echo $ECHO_N "(cached) $ECHO_C" >&6
   3644 else
   3645   cat >conftest.$ac_ext <<_ACEOF
   3646 #line 3646 "configure"
   3647 #include "confdefs.h"
   3648 #include <stdlib.h>
   3649 #include <stdarg.h>
   3650 #include <string.h>
   3651 #include <float.h>
   3652 
   3653 _ACEOF
   3654 if { (eval echo "$as_me:3654: \"$ac_cpp conftest.$ac_ext\"") >&5
   3655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3656   ac_status=$?
   3657   egrep -v '^ *\+' conftest.er1 >conftest.err
   3658   rm -f conftest.er1
   3659   cat conftest.err >&5
   3660   echo "$as_me:3660: \$? = $ac_status" >&5
   3661   (exit $ac_status); } >/dev/null; then
   3662   if test -s conftest.err; then
   3663     ac_cpp_err=$ac_c_preproc_warn_flag
   3664   else
   3665     ac_cpp_err=
   3666   fi
   3667 else
   3668   ac_cpp_err=yes
   3669 fi
   3670 if test -z "$ac_cpp_err"; then
   3671   ac_cv_header_stdc=yes
   3672 else
   3673   echo "$as_me: failed program was:" >&5
   3674   cat conftest.$ac_ext >&5
   3675   ac_cv_header_stdc=no
   3676 fi
   3677 rm -f conftest.err conftest.$ac_ext
   3678 
   3679 if test $ac_cv_header_stdc = yes; then
   3680   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3681   cat >conftest.$ac_ext <<_ACEOF
   3682 #line 3682 "configure"
   3683 #include "confdefs.h"
   3684 #include <string.h>
   3685 
   3686 _ACEOF
   3687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3688   egrep "memchr" >/dev/null 2>&1; then
   3689   :
   3690 else
   3691   ac_cv_header_stdc=no
   3692 fi
   3693 rm -f conftest*
   3694 
   3695 fi
   3696 
   3697 if test $ac_cv_header_stdc = yes; then
   3698   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3699   cat >conftest.$ac_ext <<_ACEOF
   3700 #line 3700 "configure"
   3701 #include "confdefs.h"
   3702 #include <stdlib.h>
   3703 
   3704 _ACEOF
   3705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3706   egrep "free" >/dev/null 2>&1; then
   3707   :
   3708 else
   3709   ac_cv_header_stdc=no
   3710 fi
   3711 rm -f conftest*
   3712 
   3713 fi
   3714 
   3715 if test $ac_cv_header_stdc = yes; then
   3716   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3717   if test "$cross_compiling" = yes; then
   3718   :
   3719 else
   3720   cat >conftest.$ac_ext <<_ACEOF
   3721 #line 3721 "configure"
   3722 #include "confdefs.h"
   3723 #include <ctype.h>
   3724 #if ((' ' & 0x0FF) == 0x020)
   3725 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3726 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3727 #else
   3728 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   3729                      || ('j' <= (c) && (c) <= 'r') \
   3730                      || ('s' <= (c) && (c) <= 'z'))
   3731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3732 #endif
   3733 
   3734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3735 int
   3736 main ()
   3737 {
   3738   int i;
   3739   for (i = 0; i < 256; i++)
   3740     if (XOR (islower (i), ISLOWER (i))
   3741         || toupper (i) != TOUPPER (i))
   3742       $ac_main_return(2);
   3743   $ac_main_return (0);
   3744 }
   3745 _ACEOF
   3746 rm -f conftest$ac_exeext
   3747 if { (eval echo "$as_me:3747: \"$ac_link\"") >&5
   3748   (eval $ac_link) 2>&5
   3749   ac_status=$?
   3750   echo "$as_me:3750: \$? = $ac_status" >&5
   3751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3752   { (eval echo "$as_me:3752: \"$ac_try\"") >&5
   3753   (eval $ac_try) 2>&5
   3754   ac_status=$?
   3755   echo "$as_me:3755: \$? = $ac_status" >&5
   3756   (exit $ac_status); }; }; then
   3757   :
   3758 else
   3759   echo "$as_me: program exited with status $ac_status" >&5
   3760 echo "$as_me: failed program was:" >&5
   3761 cat conftest.$ac_ext >&5
   3762 ac_cv_header_stdc=no
   3763 fi
   3764 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3765 fi
   3766 fi
   3767 fi
   3768 echo "$as_me:3768: result: $ac_cv_header_stdc" >&5
   3769 echo "${ECHO_T}$ac_cv_header_stdc" >&6
   3770 if test $ac_cv_header_stdc = yes; then
   3771 
   3772 cat >>confdefs.h <<\EOF
   3773 #define STDC_HEADERS 1
   3774 EOF
   3775 
   3776 fi
   3777 
   3778 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3779 
   3780 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3781                   inttypes.h stdint.h unistd.h
   3782 do
   3783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3784 echo "$as_me:3784: checking for $ac_header" >&5
   3785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   3786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   3787   echo $ECHO_N "(cached) $ECHO_C" >&6
   3788 else
   3789   cat >conftest.$ac_ext <<_ACEOF
   3790 #line 3790 "configure"
   3791 #include "confdefs.h"
   3792 $ac_includes_default
   3793 #include <$ac_header>
   3794 _ACEOF
   3795 rm -f conftest.$ac_objext
   3796 if { (eval echo "$as_me:3796: \"$ac_compile\"") >&5
   3797   (eval $ac_compile) 2>&5
   3798   ac_status=$?
   3799   echo "$as_me:3799: \$? = $ac_status" >&5
   3800   (exit $ac_status); } &&
   3801          { ac_try='test -s conftest.$ac_objext'
   3802   { (eval echo "$as_me:3802: \"$ac_try\"") >&5
   3803   (eval $ac_try) 2>&5
   3804   ac_status=$?
   3805   echo "$as_me:3805: \$? = $ac_status" >&5
   3806   (exit $ac_status); }; }; then
   3807   eval "$as_ac_Header=yes"
   3808 else
   3809   echo "$as_me: failed program was:" >&5
   3810 cat conftest.$ac_ext >&5
   3811 eval "$as_ac_Header=no"
   3812 fi
   3813 rm -f conftest.$ac_objext conftest.$ac_ext
   3814 fi
   3815 echo "$as_me:3815: result: `eval echo '${'$as_ac_Header'}'`" >&5
   3816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   3817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   3818   cat >>confdefs.h <<EOF
   3819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3820 EOF
   3821 
   3822 fi
   3823 done
   3824 
   3825 echo "$as_me:3825: checking for time_t" >&5
   3826 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
   3827 if test "${ac_cv_type_time_t+set}" = set; then
   3828   echo $ECHO_N "(cached) $ECHO_C" >&6
   3829 else
   3830   cat >conftest.$ac_ext <<_ACEOF
   3831 #line 3831 "configure"
   3832 #include "confdefs.h"
   3833 $ac_includes_default
   3834 int
   3835 main ()
   3836 {
   3837 if ((time_t *) 0)
   3838   return 0;
   3839 if (sizeof (time_t))
   3840   return 0;
   3841   ;
   3842   return 0;
   3843 }
   3844 _ACEOF
   3845 rm -f conftest.$ac_objext
   3846 if { (eval echo "$as_me:3846: \"$ac_compile\"") >&5
   3847   (eval $ac_compile) 2>&5
   3848   ac_status=$?
   3849   echo "$as_me:3849: \$? = $ac_status" >&5
   3850   (exit $ac_status); } &&
   3851          { ac_try='test -s conftest.$ac_objext'
   3852   { (eval echo "$as_me:3852: \"$ac_try\"") >&5
   3853   (eval $ac_try) 2>&5
   3854   ac_status=$?
   3855   echo "$as_me:3855: \$? = $ac_status" >&5
   3856   (exit $ac_status); }; }; then
   3857   ac_cv_type_time_t=yes
   3858 else
   3859   echo "$as_me: failed program was:" >&5
   3860 cat conftest.$ac_ext >&5
   3861 ac_cv_type_time_t=no
   3862 fi
   3863 rm -f conftest.$ac_objext conftest.$ac_ext
   3864 fi
   3865 echo "$as_me:3865: result: $ac_cv_type_time_t" >&5
   3866 echo "${ECHO_T}$ac_cv_type_time_t" >&6
   3867 if test $ac_cv_type_time_t = yes; then
   3868   :
   3869 else
   3870 
   3871 cat >>confdefs.h <<EOF
   3872 #define time_t long
   3873 EOF
   3874 
   3875 fi
   3876 
   3877 echo "$as_me:3877: checking for mode_t" >&5
   3878 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
   3879 if test "${ac_cv_type_mode_t+set}" = set; then
   3880   echo $ECHO_N "(cached) $ECHO_C" >&6
   3881 else
   3882   cat >conftest.$ac_ext <<_ACEOF
   3883 #line 3883 "configure"
   3884 #include "confdefs.h"
   3885 $ac_includes_default
   3886 int
   3887 main ()
   3888 {
   3889 if ((mode_t *) 0)
   3890   return 0;
   3891 if (sizeof (mode_t))
   3892   return 0;
   3893   ;
   3894   return 0;
   3895 }
   3896 _ACEOF
   3897 rm -f conftest.$ac_objext
   3898 if { (eval echo "$as_me:3898: \"$ac_compile\"") >&5
   3899   (eval $ac_compile) 2>&5
   3900   ac_status=$?
   3901   echo "$as_me:3901: \$? = $ac_status" >&5
   3902   (exit $ac_status); } &&
   3903          { ac_try='test -s conftest.$ac_objext'
   3904   { (eval echo "$as_me:3904: \"$ac_try\"") >&5
   3905   (eval $ac_try) 2>&5
   3906   ac_status=$?
   3907   echo "$as_me:3907: \$? = $ac_status" >&5
   3908   (exit $ac_status); }; }; then
   3909   ac_cv_type_mode_t=yes
   3910 else
   3911   echo "$as_me: failed program was:" >&5
   3912 cat conftest.$ac_ext >&5
   3913 ac_cv_type_mode_t=no
   3914 fi
   3915 rm -f conftest.$ac_objext conftest.$ac_ext
   3916 fi
   3917 echo "$as_me:3917: result: $ac_cv_type_mode_t" >&5
   3918 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
   3919 if test $ac_cv_type_mode_t = yes; then
   3920   :
   3921 else
   3922 
   3923 cat >>confdefs.h <<EOF
   3924 #define mode_t int
   3925 EOF
   3926 
   3927 fi
   3928 
   3929 echo "$as_me:3929: checking for pid_t" >&5
   3930 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
   3931 if test "${ac_cv_type_pid_t+set}" = set; then
   3932   echo $ECHO_N "(cached) $ECHO_C" >&6
   3933 else
   3934   cat >conftest.$ac_ext <<_ACEOF
   3935 #line 3935 "configure"
   3936 #include "confdefs.h"
   3937 $ac_includes_default
   3938 int
   3939 main ()
   3940 {
   3941 if ((pid_t *) 0)
   3942   return 0;
   3943 if (sizeof (pid_t))
   3944   return 0;
   3945   ;
   3946   return 0;
   3947 }
   3948 _ACEOF
   3949 rm -f conftest.$ac_objext
   3950 if { (eval echo "$as_me:3950: \"$ac_compile\"") >&5
   3951   (eval $ac_compile) 2>&5
   3952   ac_status=$?
   3953   echo "$as_me:3953: \$? = $ac_status" >&5
   3954   (exit $ac_status); } &&
   3955          { ac_try='test -s conftest.$ac_objext'
   3956   { (eval echo "$as_me:3956: \"$ac_try\"") >&5
   3957   (eval $ac_try) 2>&5
   3958   ac_status=$?
   3959   echo "$as_me:3959: \$? = $ac_status" >&5
   3960   (exit $ac_status); }; }; then
   3961   ac_cv_type_pid_t=yes
   3962 else
   3963   echo "$as_me: failed program was:" >&5
   3964 cat conftest.$ac_ext >&5
   3965 ac_cv_type_pid_t=no
   3966 fi
   3967 rm -f conftest.$ac_objext conftest.$ac_ext
   3968 fi
   3969 echo "$as_me:3969: result: $ac_cv_type_pid_t" >&5
   3970 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
   3971 if test $ac_cv_type_pid_t = yes; then
   3972   :
   3973 else
   3974 
   3975 cat >>confdefs.h <<EOF
   3976 #define pid_t int
   3977 EOF
   3978 
   3979 fi
   3980 
   3981 echo "$as_me:3981: checking for uid_t in sys/types.h" >&5
   3982 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
   3983 if test "${ac_cv_type_uid_t+set}" = set; then
   3984   echo $ECHO_N "(cached) $ECHO_C" >&6
   3985 else
   3986   cat >conftest.$ac_ext <<_ACEOF
   3987 #line 3987 "configure"
   3988 #include "confdefs.h"
   3989 #include <sys/types.h>
   3990 
   3991 _ACEOF
   3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3993   egrep "uid_t" >/dev/null 2>&1; then
   3994   ac_cv_type_uid_t=yes
   3995 else
   3996   ac_cv_type_uid_t=no
   3997 fi
   3998 rm -f conftest*
   3999 
   4000 fi
   4001 echo "$as_me:4001: result: $ac_cv_type_uid_t" >&5
   4002 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
   4003 if test $ac_cv_type_uid_t = no; then
   4004 
   4005 cat >>confdefs.h <<\EOF
   4006 #define uid_t int
   4007 EOF
   4008 
   4009 cat >>confdefs.h <<\EOF
   4010 #define gid_t int
   4011 EOF
   4012 
   4013 fi
   4014 
   4015 echo "$as_me:4015: checking for off_t" >&5
   4016 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
   4017 if test "${ac_cv_type_off_t+set}" = set; then
   4018   echo $ECHO_N "(cached) $ECHO_C" >&6
   4019 else
   4020   cat >conftest.$ac_ext <<_ACEOF
   4021 #line 4021 "configure"
   4022 #include "confdefs.h"
   4023 $ac_includes_default
   4024 int
   4025 main ()
   4026 {
   4027 if ((off_t *) 0)
   4028   return 0;
   4029 if (sizeof (off_t))
   4030   return 0;
   4031   ;
   4032   return 0;
   4033 }
   4034 _ACEOF
   4035 rm -f conftest.$ac_objext
   4036 if { (eval echo "$as_me:4036: \"$ac_compile\"") >&5
   4037   (eval $ac_compile) 2>&5
   4038   ac_status=$?
   4039   echo "$as_me:4039: \$? = $ac_status" >&5
   4040   (exit $ac_status); } &&
   4041          { ac_try='test -s conftest.$ac_objext'
   4042   { (eval echo "$as_me:4042: \"$ac_try\"") >&5
   4043   (eval $ac_try) 2>&5
   4044   ac_status=$?
   4045   echo "$as_me:4045: \$? = $ac_status" >&5
   4046   (exit $ac_status); }; }; then
   4047   ac_cv_type_off_t=yes
   4048 else
   4049   echo "$as_me: failed program was:" >&5
   4050 cat conftest.$ac_ext >&5
   4051 ac_cv_type_off_t=no
   4052 fi
   4053 rm -f conftest.$ac_objext conftest.$ac_ext
   4054 fi
   4055 echo "$as_me:4055: result: $ac_cv_type_off_t" >&5
   4056 echo "${ECHO_T}$ac_cv_type_off_t" >&6
   4057 if test $ac_cv_type_off_t = yes; then
   4058   :
   4059 else
   4060 
   4061 cat >>confdefs.h <<EOF
   4062 #define off_t long
   4063 EOF
   4064 
   4065 fi
   4066 
   4067 ###	checks for library functions
   4068 
   4069 for ac_func in \
   4070 	bcopy \
   4071 	gethostname \
   4072 	getlogin \
   4073 	memmove \
   4074 	putenv \
   4075 	sched_yield \
   4076 	strerror \
   4077 	strftime \
   4078 	tcgetattr \
   4079 	waitpid \
   4080 	wcswidth \
   4081 	wcwidth
   4082 do
   4083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   4084 echo "$as_me:4084: checking for $ac_func" >&5
   4085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   4086 if eval "test \"\${$as_ac_var+set}\" = set"; then
   4087   echo $ECHO_N "(cached) $ECHO_C" >&6
   4088 else
   4089   cat >conftest.$ac_ext <<_ACEOF
   4090 #line 4090 "configure"
   4091 #include "confdefs.h"
   4092 /* System header to define __stub macros and hopefully few prototypes,
   4093     which can conflict with char $ac_func (); below.  */
   4094 #include <assert.h>
   4095 /* Override any gcc2 internal prototype to avoid an error.  */
   4096 #ifdef __cplusplus
   4097 extern "C"
   4098 #endif
   4099 /* We use char because int might match the return type of a gcc2
   4100    builtin and then its argument prototype would still apply.  */
   4101 char $ac_func ();
   4102 char (*f) ();
   4103 
   4104 int
   4105 main ()
   4106 {
   4107 /* The GNU C library defines this for functions which it implements
   4108     to always fail with ENOSYS.  Some functions are actually named
   4109     something starting with __ and the normal name is an alias.  */
   4110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   4111 choke me
   4112 #else
   4113 f = $ac_func;
   4114 #endif
   4115 
   4116   ;
   4117   return 0;
   4118 }
   4119 _ACEOF
   4120 rm -f conftest.$ac_objext conftest$ac_exeext
   4121 if { (eval echo "$as_me:4121: \"$ac_link\"") >&5
   4122   (eval $ac_link) 2>&5
   4123   ac_status=$?
   4124   echo "$as_me:4124: \$? = $ac_status" >&5
   4125   (exit $ac_status); } &&
   4126          { ac_try='test -s conftest$ac_exeext'
   4127   { (eval echo "$as_me:4127: \"$ac_try\"") >&5
   4128   (eval $ac_try) 2>&5
   4129   ac_status=$?
   4130   echo "$as_me:4130: \$? = $ac_status" >&5
   4131   (exit $ac_status); }; }; then
   4132   eval "$as_ac_var=yes"
   4133 else
   4134   echo "$as_me: failed program was:" >&5
   4135 cat conftest.$ac_ext >&5
   4136 eval "$as_ac_var=no"
   4137 fi
   4138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4139 fi
   4140 echo "$as_me:4140: result: `eval echo '${'$as_ac_var'}'`" >&5
   4141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   4142 if test `eval echo '${'$as_ac_var'}'` = yes; then
   4143   cat >>confdefs.h <<EOF
   4144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   4145 EOF
   4146 
   4147 fi
   4148 done
   4149 
   4150 echo "$as_me:4150: checking for memmove" >&5
   4151 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
   4152 if test "${ac_cv_func_memmove+set}" = set; then
   4153   echo $ECHO_N "(cached) $ECHO_C" >&6
   4154 else
   4155   cat >conftest.$ac_ext <<_ACEOF
   4156 #line 4156 "configure"
   4157 #include "confdefs.h"
   4158 /* System header to define __stub macros and hopefully few prototypes,
   4159     which can conflict with char memmove (); below.  */
   4160 #include <assert.h>
   4161 /* Override any gcc2 internal prototype to avoid an error.  */
   4162 #ifdef __cplusplus
   4163 extern "C"
   4164 #endif
   4165 /* We use char because int might match the return type of a gcc2
   4166    builtin and then its argument prototype would still apply.  */
   4167 char memmove ();
   4168 char (*f) ();
   4169 
   4170 int
   4171 main ()
   4172 {
   4173 /* The GNU C library defines this for functions which it implements
   4174     to always fail with ENOSYS.  Some functions are actually named
   4175     something starting with __ and the normal name is an alias.  */
   4176 #if defined (__stub_memmove) || defined (__stub___memmove)
   4177 choke me
   4178 #else
   4179 f = memmove;
   4180 #endif
   4181 
   4182   ;
   4183   return 0;
   4184 }
   4185 _ACEOF
   4186 rm -f conftest.$ac_objext conftest$ac_exeext
   4187 if { (eval echo "$as_me:4187: \"$ac_link\"") >&5
   4188   (eval $ac_link) 2>&5
   4189   ac_status=$?
   4190   echo "$as_me:4190: \$? = $ac_status" >&5
   4191   (exit $ac_status); } &&
   4192          { ac_try='test -s conftest$ac_exeext'
   4193   { (eval echo "$as_me:4193: \"$ac_try\"") >&5
   4194   (eval $ac_try) 2>&5
   4195   ac_status=$?
   4196   echo "$as_me:4196: \$? = $ac_status" >&5
   4197   (exit $ac_status); }; }; then
   4198   ac_cv_func_memmove=yes
   4199 else
   4200   echo "$as_me: failed program was:" >&5
   4201 cat conftest.$ac_ext >&5
   4202 ac_cv_func_memmove=no
   4203 fi
   4204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4205 fi
   4206 echo "$as_me:4206: result: $ac_cv_func_memmove" >&5
   4207 echo "${ECHO_T}$ac_cv_func_memmove" >&6
   4208 if test $ac_cv_func_memmove = yes; then
   4209   :
   4210 else
   4211 
   4212 echo "$as_me:4212: checking for bcopy" >&5
   4213 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
   4214 if test "${ac_cv_func_bcopy+set}" = set; then
   4215   echo $ECHO_N "(cached) $ECHO_C" >&6
   4216 else
   4217   cat >conftest.$ac_ext <<_ACEOF
   4218 #line 4218 "configure"
   4219 #include "confdefs.h"
   4220 /* System header to define __stub macros and hopefully few prototypes,
   4221     which can conflict with char bcopy (); below.  */
   4222 #include <assert.h>
   4223 /* Override any gcc2 internal prototype to avoid an error.  */
   4224 #ifdef __cplusplus
   4225 extern "C"
   4226 #endif
   4227 /* We use char because int might match the return type of a gcc2
   4228    builtin and then its argument prototype would still apply.  */
   4229 char bcopy ();
   4230 char (*f) ();
   4231 
   4232 int
   4233 main ()
   4234 {
   4235 /* The GNU C library defines this for functions which it implements
   4236     to always fail with ENOSYS.  Some functions are actually named
   4237     something starting with __ and the normal name is an alias.  */
   4238 #if defined (__stub_bcopy) || defined (__stub___bcopy)
   4239 choke me
   4240 #else
   4241 f = bcopy;
   4242 #endif
   4243 
   4244   ;
   4245   return 0;
   4246 }
   4247 _ACEOF
   4248 rm -f conftest.$ac_objext conftest$ac_exeext
   4249 if { (eval echo "$as_me:4249: \"$ac_link\"") >&5
   4250   (eval $ac_link) 2>&5
   4251   ac_status=$?
   4252   echo "$as_me:4252: \$? = $ac_status" >&5
   4253   (exit $ac_status); } &&
   4254          { ac_try='test -s conftest$ac_exeext'
   4255   { (eval echo "$as_me:4255: \"$ac_try\"") >&5
   4256   (eval $ac_try) 2>&5
   4257   ac_status=$?
   4258   echo "$as_me:4258: \$? = $ac_status" >&5
   4259   (exit $ac_status); }; }; then
   4260   ac_cv_func_bcopy=yes
   4261 else
   4262   echo "$as_me: failed program was:" >&5
   4263 cat conftest.$ac_ext >&5
   4264 ac_cv_func_bcopy=no
   4265 fi
   4266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4267 fi
   4268 echo "$as_me:4268: result: $ac_cv_func_bcopy" >&5
   4269 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
   4270 if test $ac_cv_func_bcopy = yes; then
   4271 
   4272 	echo "$as_me:4272: checking if bcopy does overlapping moves" >&5
   4273 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
   4274 if test "${cf_cv_good_bcopy+set}" = set; then
   4275   echo $ECHO_N "(cached) $ECHO_C" >&6
   4276 else
   4277 
   4278 		if test "$cross_compiling" = yes; then
   4279   cf_cv_good_bcopy=unknown
   4280 else
   4281   cat >conftest.$ac_ext <<_ACEOF
   4282 #line 4282 "configure"
   4283 #include "confdefs.h"
   4284 
   4285 int main() {
   4286 	static char data[] = "abcdefghijklmnopqrstuwwxyz";
   4287 	char temp[40];
   4288 	bcopy(data, temp, sizeof(data));
   4289 	bcopy(temp+10, temp, 15);
   4290 	bcopy(temp+5, temp+15, 10);
   4291 	${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
   4292 }
   4293 
   4294 _ACEOF
   4295 rm -f conftest$ac_exeext
   4296 if { (eval echo "$as_me:4296: \"$ac_link\"") >&5
   4297   (eval $ac_link) 2>&5
   4298   ac_status=$?
   4299   echo "$as_me:4299: \$? = $ac_status" >&5
   4300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4301   { (eval echo "$as_me:4301: \"$ac_try\"") >&5
   4302   (eval $ac_try) 2>&5
   4303   ac_status=$?
   4304   echo "$as_me:4304: \$? = $ac_status" >&5
   4305   (exit $ac_status); }; }; then
   4306   cf_cv_good_bcopy=yes
   4307 else
   4308   echo "$as_me: program exited with status $ac_status" >&5
   4309 echo "$as_me: failed program was:" >&5
   4310 cat conftest.$ac_ext >&5
   4311 cf_cv_good_bcopy=no
   4312 fi
   4313 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4314 fi
   4315 
   4316 fi
   4317 echo "$as_me:4317: result: $cf_cv_good_bcopy" >&5
   4318 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
   4319 
   4320 else
   4321   cf_cv_good_bcopy=no
   4322 fi
   4323 
   4324 	if test "$cf_cv_good_bcopy" = yes ; then
   4325 		cat >>confdefs.h <<\EOF
   4326 #define USE_OK_BCOPY 1
   4327 EOF
   4328 
   4329 	else
   4330 		cat >>confdefs.h <<\EOF
   4331 #define USE_MY_MEMMOVE 1
   4332 EOF
   4333 
   4334 	fi
   4335 
   4336 fi
   4337 
   4338 for ac_header in lastlog.h paths.h
   4339 do
   4340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4341 echo "$as_me:4341: checking for $ac_header" >&5
   4342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4344   echo $ECHO_N "(cached) $ECHO_C" >&6
   4345 else
   4346   cat >conftest.$ac_ext <<_ACEOF
   4347 #line 4347 "configure"
   4348 #include "confdefs.h"
   4349 #include <$ac_header>
   4350 _ACEOF
   4351 if { (eval echo "$as_me:4351: \"$ac_cpp conftest.$ac_ext\"") >&5
   4352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4353   ac_status=$?
   4354   egrep -v '^ *\+' conftest.er1 >conftest.err
   4355   rm -f conftest.er1
   4356   cat conftest.err >&5
   4357   echo "$as_me:4357: \$? = $ac_status" >&5
   4358   (exit $ac_status); } >/dev/null; then
   4359   if test -s conftest.err; then
   4360     ac_cpp_err=$ac_c_preproc_warn_flag
   4361   else
   4362     ac_cpp_err=
   4363   fi
   4364 else
   4365   ac_cpp_err=yes
   4366 fi
   4367 if test -z "$ac_cpp_err"; then
   4368   eval "$as_ac_Header=yes"
   4369 else
   4370   echo "$as_me: failed program was:" >&5
   4371   cat conftest.$ac_ext >&5
   4372   eval "$as_ac_Header=no"
   4373 fi
   4374 rm -f conftest.err conftest.$ac_ext
   4375 fi
   4376 echo "$as_me:4376: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4379   cat >>confdefs.h <<EOF
   4380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4381 EOF
   4382 
   4383 fi
   4384 done
   4385 
   4386 echo "$as_me:4386: checking for lastlog path" >&5
   4387 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
   4388 if test "${cf_cv_path_lastlog+set}" = set; then
   4389   echo $ECHO_N "(cached) $ECHO_C" >&6
   4390 else
   4391 
   4392 cat >conftest.$ac_ext <<_ACEOF
   4393 #line 4393 "configure"
   4394 #include "confdefs.h"
   4395 
   4396 #include <sys/types.h>
   4397 #ifdef HAVE_LASTLOG_H
   4398 #include <lastlog.h>
   4399 #else
   4400 #ifdef HAVE_PATHS_H
   4401 #include <paths.h>
   4402 #endif
   4403 #endif
   4404 int
   4405 main ()
   4406 {
   4407 char *path = _PATH_LASTLOG
   4408   ;
   4409   return 0;
   4410 }
   4411 _ACEOF
   4412 rm -f conftest.$ac_objext
   4413 if { (eval echo "$as_me:4413: \"$ac_compile\"") >&5
   4414   (eval $ac_compile) 2>&5
   4415   ac_status=$?
   4416   echo "$as_me:4416: \$? = $ac_status" >&5
   4417   (exit $ac_status); } &&
   4418          { ac_try='test -s conftest.$ac_objext'
   4419   { (eval echo "$as_me:4419: \"$ac_try\"") >&5
   4420   (eval $ac_try) 2>&5
   4421   ac_status=$?
   4422   echo "$as_me:4422: \$? = $ac_status" >&5
   4423   (exit $ac_status); }; }; then
   4424   cf_cv_path_lastlog="_PATH_LASTLOG"
   4425 else
   4426   echo "$as_me: failed program was:" >&5
   4427 cat conftest.$ac_ext >&5
   4428 if test -f /usr/adm/lastlog ; then
   4429 	 	cf_cv_path_lastlog=/usr/adm/lastlog
   4430 	else
   4431 		cf_cv_path_lastlog=no
   4432 	fi
   4433 fi
   4434 rm -f conftest.$ac_objext conftest.$ac_ext
   4435 
   4436 fi
   4437 echo "$as_me:4437: result: $cf_cv_path_lastlog" >&5
   4438 echo "${ECHO_T}$cf_cv_path_lastlog" >&6
   4439 test $cf_cv_path_lastlog != no && cat >>confdefs.h <<\EOF
   4440 #define USE_LASTLOG 1
   4441 EOF
   4442 
   4443 echo "$as_me:4443: checking for utmp implementation" >&5
   4444 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
   4445 if test "${cf_cv_have_utmp+set}" = set; then
   4446   echo $ECHO_N "(cached) $ECHO_C" >&6
   4447 else
   4448 
   4449 	cf_cv_have_utmp=no
   4450 for cf_header in utmpx utmp ; do
   4451 cf_utmp_includes="
   4452 #include <sys/types.h>
   4453 #include <${cf_header}.h>
   4454 #define getutent getutxent
   4455 #ifdef USE_LASTLOG
   4456 #include <lastlog.h>	/* may conflict with utmpx.h on Linux */
   4457 #endif
   4458 "
   4459 	cat >conftest.$ac_ext <<_ACEOF
   4460 #line 4460 "configure"
   4461 #include "confdefs.h"
   4462 $cf_utmp_includes
   4463 int
   4464 main ()
   4465 {
   4466 struct $cf_header x;
   4467 	 char *name = x.ut_name; /* utmp.h and compatible definitions */
   4468 
   4469   ;
   4470   return 0;
   4471 }
   4472 _ACEOF
   4473 rm -f conftest.$ac_objext
   4474 if { (eval echo "$as_me:4474: \"$ac_compile\"") >&5
   4475   (eval $ac_compile) 2>&5
   4476   ac_status=$?
   4477   echo "$as_me:4477: \$? = $ac_status" >&5
   4478   (exit $ac_status); } &&
   4479          { ac_try='test -s conftest.$ac_objext'
   4480   { (eval echo "$as_me:4480: \"$ac_try\"") >&5
   4481   (eval $ac_try) 2>&5
   4482   ac_status=$?
   4483   echo "$as_me:4483: \$? = $ac_status" >&5
   4484   (exit $ac_status); }; }; then
   4485   cf_cv_have_utmp=$cf_header
   4486 	 break
   4487 else
   4488   echo "$as_me: failed program was:" >&5
   4489 cat conftest.$ac_ext >&5
   4490 
   4491 	cat >conftest.$ac_ext <<_ACEOF
   4492 #line 4492 "configure"
   4493 #include "confdefs.h"
   4494 $cf_utmp_includes
   4495 int
   4496 main ()
   4497 {
   4498 struct $cf_header x;
   4499 	 char *name = x.ut_user; /* utmpx.h must declare this */
   4500 
   4501   ;
   4502   return 0;
   4503 }
   4504 _ACEOF
   4505 rm -f conftest.$ac_objext
   4506 if { (eval echo "$as_me:4506: \"$ac_compile\"") >&5
   4507   (eval $ac_compile) 2>&5
   4508   ac_status=$?
   4509   echo "$as_me:4509: \$? = $ac_status" >&5
   4510   (exit $ac_status); } &&
   4511          { ac_try='test -s conftest.$ac_objext'
   4512   { (eval echo "$as_me:4512: \"$ac_try\"") >&5
   4513   (eval $ac_try) 2>&5
   4514   ac_status=$?
   4515   echo "$as_me:4515: \$? = $ac_status" >&5
   4516   (exit $ac_status); }; }; then
   4517   cf_cv_have_utmp=$cf_header
   4518 	 break
   4519 
   4520 else
   4521   echo "$as_me: failed program was:" >&5
   4522 cat conftest.$ac_ext >&5
   4523 fi
   4524 rm -f conftest.$ac_objext conftest.$ac_ext
   4525 fi
   4526 rm -f conftest.$ac_objext conftest.$ac_ext
   4527 done
   4528 
   4529 fi
   4530 echo "$as_me:4530: result: $cf_cv_have_utmp" >&5
   4531 echo "${ECHO_T}$cf_cv_have_utmp" >&6
   4532 
   4533 if test $cf_cv_have_utmp != no ; then
   4534 	cat >>confdefs.h <<\EOF
   4535 #define HAVE_UTMP 1
   4536 EOF
   4537 
   4538 	test $cf_cv_have_utmp = utmpx && cat >>confdefs.h <<\EOF
   4539 #define UTMPX_FOR_UTMP 1
   4540 EOF
   4541 
   4542 if test $cf_cv_have_utmp != no ; then
   4543 echo "$as_me:4543: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
   4544 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
   4545 if test "${cf_cv_have_utmp_ut_host+set}" = set; then
   4546   echo $ECHO_N "(cached) $ECHO_C" >&6
   4547 else
   4548 
   4549 	cat >conftest.$ac_ext <<_ACEOF
   4550 #line 4550 "configure"
   4551 #include "confdefs.h"
   4552 
   4553 #include <sys/types.h>
   4554 #include <${cf_cv_have_utmp}.h>
   4555 int
   4556 main ()
   4557 {
   4558 struct $cf_cv_have_utmp x; char *y = &x.ut_host[0]
   4559   ;
   4560   return 0;
   4561 }
   4562 _ACEOF
   4563 rm -f conftest.$ac_objext
   4564 if { (eval echo "$as_me:4564: \"$ac_compile\"") >&5
   4565   (eval $ac_compile) 2>&5
   4566   ac_status=$?
   4567   echo "$as_me:4567: \$? = $ac_status" >&5
   4568   (exit $ac_status); } &&
   4569          { ac_try='test -s conftest.$ac_objext'
   4570   { (eval echo "$as_me:4570: \"$ac_try\"") >&5
   4571   (eval $ac_try) 2>&5
   4572   ac_status=$?
   4573   echo "$as_me:4573: \$? = $ac_status" >&5
   4574   (exit $ac_status); }; }; then
   4575   cf_cv_have_utmp_ut_host=yes
   4576 else
   4577   echo "$as_me: failed program was:" >&5
   4578 cat conftest.$ac_ext >&5
   4579 cf_cv_have_utmp_ut_host=no
   4580 fi
   4581 rm -f conftest.$ac_objext conftest.$ac_ext
   4582 
   4583 fi
   4584 
   4585 echo "$as_me:4585: result: $cf_cv_have_utmp_ut_host" >&5
   4586 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
   4587 test $cf_cv_have_utmp_ut_host != no && cat >>confdefs.h <<\EOF
   4588 #define HAVE_UTMP_UT_HOST 1
   4589 EOF
   4590 
   4591 fi
   4592 
   4593 if test $cf_cv_have_utmp != no ; then
   4594 echo "$as_me:4594: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
   4595 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6
   4596 if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
   4597   echo $ECHO_N "(cached) $ECHO_C" >&6
   4598 else
   4599 
   4600 	cat >conftest.$ac_ext <<_ACEOF
   4601 #line 4601 "configure"
   4602 #include "confdefs.h"
   4603 
   4604 #include <sys/types.h>
   4605 #include <${cf_cv_have_utmp}.h>
   4606 int
   4607 main ()
   4608 {
   4609 struct $cf_cv_have_utmp x; int y = x.ut_syslen
   4610   ;
   4611   return 0;
   4612 }
   4613 _ACEOF
   4614 rm -f conftest.$ac_objext
   4615 if { (eval echo "$as_me:4615: \"$ac_compile\"") >&5
   4616   (eval $ac_compile) 2>&5
   4617   ac_status=$?
   4618   echo "$as_me:4618: \$? = $ac_status" >&5
   4619   (exit $ac_status); } &&
   4620          { ac_try='test -s conftest.$ac_objext'
   4621   { (eval echo "$as_me:4621: \"$ac_try\"") >&5
   4622   (eval $ac_try) 2>&5
   4623   ac_status=$?
   4624   echo "$as_me:4624: \$? = $ac_status" >&5
   4625   (exit $ac_status); }; }; then
   4626   cf_cv_have_utmp_ut_syslen=yes
   4627 else
   4628   echo "$as_me: failed program was:" >&5
   4629 cat conftest.$ac_ext >&5
   4630 cf_cv_have_utmp_ut_syslen=no
   4631 fi
   4632 rm -f conftest.$ac_objext conftest.$ac_ext
   4633 
   4634 fi
   4635 
   4636 echo "$as_me:4636: result: $cf_cv_have_utmp_ut_syslen" >&5
   4637 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
   4638 test $cf_cv_have_utmp_ut_syslen != no && cat >>confdefs.h <<\EOF
   4639 #define HAVE_UTMP_UT_SYSLEN 1
   4640 EOF
   4641 
   4642 fi
   4643 
   4644 if test $cf_cv_have_utmp != no ; then
   4645 echo "$as_me:4645: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
   4646 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
   4647 if test "${cf_cv_have_utmp_ut_name+set}" = set; then
   4648   echo $ECHO_N "(cached) $ECHO_C" >&6
   4649 else
   4650 
   4651 	cf_cv_have_utmp_ut_name=no
   4652 cf_utmp_includes="
   4653 #include <sys/types.h>
   4654 #include <${cf_cv_have_utmp}.h>
   4655 #define getutent getutxent
   4656 #ifdef USE_LASTLOG
   4657 #include <lastlog.h>		/* may conflict with utmpx.h on Linux */
   4658 #endif
   4659 "
   4660 for cf_header in ut_name ut_user ; do
   4661 	cat >conftest.$ac_ext <<_ACEOF
   4662 #line 4662 "configure"
   4663 #include "confdefs.h"
   4664 $cf_utmp_includes
   4665 int
   4666 main ()
   4667 {
   4668 struct $cf_cv_have_utmp x;
   4669 	 char *name = x.$cf_header;
   4670 
   4671   ;
   4672   return 0;
   4673 }
   4674 _ACEOF
   4675 rm -f conftest.$ac_objext
   4676 if { (eval echo "$as_me:4676: \"$ac_compile\"") >&5
   4677   (eval $ac_compile) 2>&5
   4678   ac_status=$?
   4679   echo "$as_me:4679: \$? = $ac_status" >&5
   4680   (exit $ac_status); } &&
   4681          { ac_try='test -s conftest.$ac_objext'
   4682   { (eval echo "$as_me:4682: \"$ac_try\"") >&5
   4683   (eval $ac_try) 2>&5
   4684   ac_status=$?
   4685   echo "$as_me:4685: \$? = $ac_status" >&5
   4686   (exit $ac_status); }; }; then
   4687   cf_cv_have_utmp_ut_name=$cf_header
   4688 	 break
   4689 else
   4690   echo "$as_me: failed program was:" >&5
   4691 cat conftest.$ac_ext >&5
   4692 fi
   4693 rm -f conftest.$ac_objext conftest.$ac_ext
   4694 done
   4695 
   4696 fi
   4697 echo "$as_me:4697: result: $cf_cv_have_utmp_ut_name" >&5
   4698 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
   4699 
   4700 case $cf_cv_have_utmp_ut_name in #(vi
   4701 no) #(vi
   4702 	{ { echo "$as_me:4702: error: Cannot find declaration for ut.ut_name" >&5
   4703 echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
   4704    { (exit 1); exit 1; }; }
   4705 	;;
   4706 ut_user)
   4707 	cat >>confdefs.h <<\EOF
   4708 #define ut_name ut_user
   4709 EOF
   4710 
   4711 	;;
   4712 esac
   4713 fi
   4714 
   4715 if test $cf_cv_have_utmp != no ; then
   4716 echo "$as_me:4716: checking for exit-status in $cf_cv_have_utmp" >&5
   4717 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
   4718 if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
   4719   echo $ECHO_N "(cached) $ECHO_C" >&6
   4720 else
   4721 
   4722 for cf_result in \
   4723 	ut_exit.__e_exit \
   4724 	ut_exit.e_exit \
   4725 	ut_exit.ut_e_exit \
   4726 	ut_exit.ut_exit
   4727 do
   4728 cat >conftest.$ac_ext <<_ACEOF
   4729 #line 4729 "configure"
   4730 #include "confdefs.h"
   4731 
   4732 #include <sys/types.h>
   4733 #include <${cf_cv_have_utmp}.h>
   4734 int
   4735 main ()
   4736 {
   4737 struct $cf_cv_have_utmp x; long y = x.$cf_result = 0
   4738   ;
   4739   return 0;
   4740 }
   4741 _ACEOF
   4742 rm -f conftest.$ac_objext
   4743 if { (eval echo "$as_me:4743: \"$ac_compile\"") >&5
   4744   (eval $ac_compile) 2>&5
   4745   ac_status=$?
   4746   echo "$as_me:4746: \$? = $ac_status" >&5
   4747   (exit $ac_status); } &&
   4748          { ac_try='test -s conftest.$ac_objext'
   4749   { (eval echo "$as_me:4749: \"$ac_try\"") >&5
   4750   (eval $ac_try) 2>&5
   4751   ac_status=$?
   4752   echo "$as_me:4752: \$? = $ac_status" >&5
   4753   (exit $ac_status); }; }; then
   4754   cf_cv_have_utmp_ut_xstatus=$cf_result
   4755 	 break
   4756 else
   4757   echo "$as_me: failed program was:" >&5
   4758 cat conftest.$ac_ext >&5
   4759 cf_cv_have_utmp_ut_xstatus=no
   4760 fi
   4761 rm -f conftest.$ac_objext conftest.$ac_ext
   4762 done
   4763 
   4764 fi
   4765 echo "$as_me:4765: result: $cf_cv_have_utmp_ut_xstatus" >&5
   4766 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
   4767 if test $cf_cv_have_utmp_ut_xstatus != no ; then
   4768 	cat >>confdefs.h <<\EOF
   4769 #define HAVE_UTMP_UT_XSTATUS 1
   4770 EOF
   4771 
   4772 	cat >>confdefs.h <<EOF
   4773 #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
   4774 EOF
   4775 
   4776 fi
   4777 fi
   4778 
   4779 if test $cf_cv_have_utmp != no ; then
   4780 echo "$as_me:4780: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
   4781 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6
   4782 if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
   4783   echo $ECHO_N "(cached) $ECHO_C" >&6
   4784 else
   4785 
   4786 	cat >conftest.$ac_ext <<_ACEOF
   4787 #line 4787 "configure"
   4788 #include "confdefs.h"
   4789 
   4790 #include <sys/types.h>
   4791 #include <${cf_cv_have_utmp}.h>
   4792 int
   4793 main ()
   4794 {
   4795 struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0
   4796   ;
   4797   return 0;
   4798 }
   4799 _ACEOF
   4800 rm -f conftest.$ac_objext
   4801 if { (eval echo "$as_me:4801: \"$ac_compile\"") >&5
   4802   (eval $ac_compile) 2>&5
   4803   ac_status=$?
   4804   echo "$as_me:4804: \$? = $ac_status" >&5
   4805   (exit $ac_status); } &&
   4806          { ac_try='test -s conftest.$ac_objext'
   4807   { (eval echo "$as_me:4807: \"$ac_try\"") >&5
   4808   (eval $ac_try) 2>&5
   4809   ac_status=$?
   4810   echo "$as_me:4810: \$? = $ac_status" >&5
   4811   (exit $ac_status); }; }; then
   4812   cf_cv_have_utmp_ut_xtime=yes
   4813 else
   4814   echo "$as_me: failed program was:" >&5
   4815 cat conftest.$ac_ext >&5
   4816 cat >conftest.$ac_ext <<_ACEOF
   4817 #line 4817 "configure"
   4818 #include "confdefs.h"
   4819 
   4820 #include <sys/types.h>
   4821 #include <${cf_cv_have_utmp}.h>
   4822 int
   4823 main ()
   4824 {
   4825 struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec
   4826   ;
   4827   return 0;
   4828 }
   4829 _ACEOF
   4830 rm -f conftest.$ac_objext
   4831 if { (eval echo "$as_me:4831: \"$ac_compile\"") >&5
   4832   (eval $ac_compile) 2>&5
   4833   ac_status=$?
   4834   echo "$as_me:4834: \$? = $ac_status" >&5
   4835   (exit $ac_status); } &&
   4836          { ac_try='test -s conftest.$ac_objext'
   4837   { (eval echo "$as_me:4837: \"$ac_try\"") >&5
   4838   (eval $ac_try) 2>&5
   4839   ac_status=$?
   4840   echo "$as_me:4840: \$? = $ac_status" >&5
   4841   (exit $ac_status); }; }; then
   4842   cf_cv_have_utmp_ut_xtime=define
   4843 else
   4844   echo "$as_me: failed program was:" >&5
   4845 cat conftest.$ac_ext >&5
   4846 cf_cv_have_utmp_ut_xtime=no
   4847 fi
   4848 rm -f conftest.$ac_objext conftest.$ac_ext
   4849 
   4850 fi
   4851 rm -f conftest.$ac_objext conftest.$ac_ext
   4852 
   4853 fi
   4854 echo "$as_me:4854: result: $cf_cv_have_utmp_ut_xtime" >&5
   4855 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
   4856 if test $cf_cv_have_utmp_ut_xtime != no ; then
   4857 	cat >>confdefs.h <<\EOF
   4858 #define HAVE_UTMP_UT_XTIME 1
   4859 EOF
   4860 
   4861 	if test $cf_cv_have_utmp_ut_xtime = define ; then
   4862 		cat >>confdefs.h <<\EOF
   4863 #define ut_xtime ut_tv.tv_sec
   4864 EOF
   4865 
   4866 	fi
   4867 fi
   4868 fi
   4869 
   4870 if test $cf_cv_have_utmp != no ; then
   4871 echo "$as_me:4871: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
   4872 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
   4873 if test "${cf_cv_have_utmp_ut_session+set}" = set; then
   4874   echo $ECHO_N "(cached) $ECHO_C" >&6
   4875 else
   4876 
   4877 	cat >conftest.$ac_ext <<_ACEOF
   4878 #line 4878 "configure"
   4879 #include "confdefs.h"
   4880 
   4881 #include <sys/types.h>
   4882 #include <${cf_cv_have_utmp}.h>
   4883 int
   4884 main ()
   4885 {
   4886 struct $cf_cv_have_utmp x; long y = x.ut_session
   4887   ;
   4888   return 0;
   4889 }
   4890 _ACEOF
   4891 rm -f conftest.$ac_objext
   4892 if { (eval echo "$as_me:4892: \"$ac_compile\"") >&5
   4893   (eval $ac_compile) 2>&5
   4894   ac_status=$?
   4895   echo "$as_me:4895: \$? = $ac_status" >&5
   4896   (exit $ac_status); } &&
   4897          { ac_try='test -s conftest.$ac_objext'
   4898   { (eval echo "$as_me:4898: \"$ac_try\"") >&5
   4899   (eval $ac_try) 2>&5
   4900   ac_status=$?
   4901   echo "$as_me:4901: \$? = $ac_status" >&5
   4902   (exit $ac_status); }; }; then
   4903   cf_cv_have_utmp_ut_session=yes
   4904 else
   4905   echo "$as_me: failed program was:" >&5
   4906 cat conftest.$ac_ext >&5
   4907 cf_cv_have_utmp_ut_session=no
   4908 fi
   4909 rm -f conftest.$ac_objext conftest.$ac_ext
   4910 
   4911 fi
   4912 echo "$as_me:4912: result: $cf_cv_have_utmp_ut_session" >&5
   4913 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
   4914 if test $cf_cv_have_utmp_ut_session != no ; then
   4915 	cat >>confdefs.h <<\EOF
   4916 #define HAVE_UTMP_UT_SESSION 1
   4917 EOF
   4918 
   4919 fi
   4920 fi
   4921 
   4922 echo "$as_me:4922: checking if $cf_cv_have_utmp is SYSV flavor" >&5
   4923 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
   4924 if test "${cf_cv_sysv_utmp+set}" = set; then
   4925   echo $ECHO_N "(cached) $ECHO_C" >&6
   4926 else
   4927 
   4928 test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
   4929 cat >conftest.$ac_ext <<_ACEOF
   4930 #line 4930 "configure"
   4931 #include "confdefs.h"
   4932 
   4933 #include <sys/types.h>
   4934 #include <${cf_cv_have_utmp}.h>
   4935 int
   4936 main ()
   4937 {
   4938 
   4939 struct $cf_cv_have_utmp x;
   4940 	set${cf_prefix}ent ();
   4941 	get${cf_prefix}id(&x);
   4942 	put${cf_prefix}line(&x);
   4943 	end${cf_prefix}ent();
   4944   ;
   4945   return 0;
   4946 }
   4947 _ACEOF
   4948 rm -f conftest.$ac_objext conftest$ac_exeext
   4949 if { (eval echo "$as_me:4949: \"$ac_link\"") >&5
   4950   (eval $ac_link) 2>&5
   4951   ac_status=$?
   4952   echo "$as_me:4952: \$? = $ac_status" >&5
   4953   (exit $ac_status); } &&
   4954          { ac_try='test -s conftest$ac_exeext'
   4955   { (eval echo "$as_me:4955: \"$ac_try\"") >&5
   4956   (eval $ac_try) 2>&5
   4957   ac_status=$?
   4958   echo "$as_me:4958: \$? = $ac_status" >&5
   4959   (exit $ac_status); }; }; then
   4960   cf_cv_sysv_utmp=yes
   4961 else
   4962   echo "$as_me: failed program was:" >&5
   4963 cat conftest.$ac_ext >&5
   4964 cf_cv_sysv_utmp=no
   4965 fi
   4966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4967 
   4968 fi
   4969 echo "$as_me:4969: result: $cf_cv_sysv_utmp" >&5
   4970 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
   4971 test $cf_cv_sysv_utmp = yes && cat >>confdefs.h <<\EOF
   4972 #define USE_SYSV_UTMP 1
   4973 EOF
   4974 
   4975 fi
   4976 
   4977 for ac_header in lastlog.h
   4978 do
   4979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4980 echo "$as_me:4980: checking for $ac_header" >&5
   4981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4983   echo $ECHO_N "(cached) $ECHO_C" >&6
   4984 else
   4985   cat >conftest.$ac_ext <<_ACEOF
   4986 #line 4986 "configure"
   4987 #include "confdefs.h"
   4988 #include <$ac_header>
   4989 _ACEOF
   4990 if { (eval echo "$as_me:4990: \"$ac_cpp conftest.$ac_ext\"") >&5
   4991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4992   ac_status=$?
   4993   egrep -v '^ *\+' conftest.er1 >conftest.err
   4994   rm -f conftest.er1
   4995   cat conftest.err >&5
   4996   echo "$as_me:4996: \$? = $ac_status" >&5
   4997   (exit $ac_status); } >/dev/null; then
   4998   if test -s conftest.err; then
   4999     ac_cpp_err=$ac_c_preproc_warn_flag
   5000   else
   5001     ac_cpp_err=
   5002   fi
   5003 else
   5004   ac_cpp_err=yes
   5005 fi
   5006 if test -z "$ac_cpp_err"; then
   5007   eval "$as_ac_Header=yes"
   5008 else
   5009   echo "$as_me: failed program was:" >&5
   5010   cat conftest.$ac_ext >&5
   5011   eval "$as_ac_Header=no"
   5012 fi
   5013 rm -f conftest.err conftest.$ac_ext
   5014 fi
   5015 echo "$as_me:5015: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5018   cat >>confdefs.h <<EOF
   5019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5020 EOF
   5021 
   5022 fi
   5023 done
   5024 
   5025 echo "$as_me:5025: checking for struct lastlog" >&5
   5026 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
   5027 if test "${cf_cv_struct_lastlog+set}" = set; then
   5028   echo $ECHO_N "(cached) $ECHO_C" >&6
   5029 else
   5030 
   5031 if test "$cross_compiling" = yes; then
   5032 
   5033 cf_cv_struct_lastlog=unknown
   5034 else
   5035   cat >conftest.$ac_ext <<_ACEOF
   5036 #line 5036 "configure"
   5037 #include "confdefs.h"
   5038 
   5039 #include <sys/types.h>
   5040 #include <time.h>
   5041 #include <lastlog.h>
   5042 
   5043 int main()
   5044 {
   5045 	struct lastlog data;
   5046 	return (sizeof(data.ll_time) != sizeof(time_t));
   5047 }
   5048 _ACEOF
   5049 rm -f conftest$ac_exeext
   5050 if { (eval echo "$as_me:5050: \"$ac_link\"") >&5
   5051   (eval $ac_link) 2>&5
   5052   ac_status=$?
   5053   echo "$as_me:5053: \$? = $ac_status" >&5
   5054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5055   { (eval echo "$as_me:5055: \"$ac_try\"") >&5
   5056   (eval $ac_try) 2>&5
   5057   ac_status=$?
   5058   echo "$as_me:5058: \$? = $ac_status" >&5
   5059   (exit $ac_status); }; }; then
   5060 
   5061 cf_cv_struct_lastlog=yes
   5062 else
   5063   echo "$as_me: program exited with status $ac_status" >&5
   5064 echo "$as_me: failed program was:" >&5
   5065 cat conftest.$ac_ext >&5
   5066 
   5067 cf_cv_struct_lastlog=no
   5068 fi
   5069 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5070 fi
   5071 fi
   5072 echo "$as_me:5072: result: $cf_cv_struct_lastlog" >&5
   5073 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
   5074 
   5075 test $cf_cv_struct_lastlog != no && cat >>confdefs.h <<\EOF
   5076 #define USE_STRUCT_LASTLOG 1
   5077 EOF
   5078 
   5079 for ac_header in \
   5080 sys/param.h \
   5081 
   5082 do
   5083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5084 echo "$as_me:5084: checking for $ac_header" >&5
   5085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5087   echo $ECHO_N "(cached) $ECHO_C" >&6
   5088 else
   5089   cat >conftest.$ac_ext <<_ACEOF
   5090 #line 5090 "configure"
   5091 #include "confdefs.h"
   5092 #include <$ac_header>
   5093 _ACEOF
   5094 if { (eval echo "$as_me:5094: \"$ac_cpp conftest.$ac_ext\"") >&5
   5095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5096   ac_status=$?
   5097   egrep -v '^ *\+' conftest.er1 >conftest.err
   5098   rm -f conftest.er1
   5099   cat conftest.err >&5
   5100   echo "$as_me:5100: \$? = $ac_status" >&5
   5101   (exit $ac_status); } >/dev/null; then
   5102   if test -s conftest.err; then
   5103     ac_cpp_err=$ac_c_preproc_warn_flag
   5104   else
   5105     ac_cpp_err=
   5106   fi
   5107 else
   5108   ac_cpp_err=yes
   5109 fi
   5110 if test -z "$ac_cpp_err"; then
   5111   eval "$as_ac_Header=yes"
   5112 else
   5113   echo "$as_me: failed program was:" >&5
   5114   cat conftest.$ac_ext >&5
   5115   eval "$as_ac_Header=no"
   5116 fi
   5117 rm -f conftest.err conftest.$ac_ext
   5118 fi
   5119 echo "$as_me:5119: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5122   cat >>confdefs.h <<EOF
   5123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5124 EOF
   5125 
   5126 fi
   5127 done
   5128 
   5129 echo "$as_me:5129: checking if POSIX saved-ids are supported" >&5
   5130 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
   5131 if test "${cf_cv_posix_saved_ids+set}" = set; then
   5132   echo $ECHO_N "(cached) $ECHO_C" >&6
   5133 else
   5134 
   5135 cat >conftest.$ac_ext <<_ACEOF
   5136 #line 5136 "configure"
   5137 #include "confdefs.h"
   5138 
   5139 #include <unistd.h>
   5140 #ifdef HAVE_SYS_PARAM_H
   5141 #include <sys/param.h>		/* this may define "BSD" */
   5142 #endif
   5143 
   5144 int
   5145 main ()
   5146 {
   5147 
   5148 #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0)
   5149 	void *p = (void *) seteuid;
   5150 	int x = seteuid(geteuid());
   5151 #elif defined(BSD) && (BSD >= 199103)
   5152 /* The BSD's may implement the runtime check - and it fails.
   5153  * However, saved-ids work almost like POSIX (close enough for most uses).
   5154  */
   5155 #else
   5156 make an error
   5157 #endif
   5158 
   5159   ;
   5160   return 0;
   5161 }
   5162 _ACEOF
   5163 rm -f conftest.$ac_objext conftest$ac_exeext
   5164 if { (eval echo "$as_me:5164: \"$ac_link\"") >&5
   5165   (eval $ac_link) 2>&5
   5166   ac_status=$?
   5167   echo "$as_me:5167: \$? = $ac_status" >&5
   5168   (exit $ac_status); } &&
   5169          { ac_try='test -s conftest$ac_exeext'
   5170   { (eval echo "$as_me:5170: \"$ac_try\"") >&5
   5171   (eval $ac_try) 2>&5
   5172   ac_status=$?
   5173   echo "$as_me:5173: \$? = $ac_status" >&5
   5174   (exit $ac_status); }; }; then
   5175   cf_cv_posix_saved_ids=yes
   5176 
   5177 else
   5178   echo "$as_me: failed program was:" >&5
   5179 cat conftest.$ac_ext >&5
   5180 
   5181 if test "$cross_compiling" = yes; then
   5182   cf_cv_posix_saved_ids=unknown
   5183 else
   5184   cat >conftest.$ac_ext <<_ACEOF
   5185 #line 5185 "configure"
   5186 #include "confdefs.h"
   5187 
   5188 #ifdef HAVE_STDLIB_H
   5189 #include <stdlib.h>
   5190 #endif
   5191 #include <unistd.h>
   5192 int main()
   5193 {
   5194 	void *p = (void *) seteuid;
   5195 	long code = sysconf(_SC_SAVED_IDS);
   5196 	${cf_cv_main_return:-return}  ((code > 0) ? 0 : 1);
   5197 }
   5198 _ACEOF
   5199 rm -f conftest$ac_exeext
   5200 if { (eval echo "$as_me:5200: \"$ac_link\"") >&5
   5201   (eval $ac_link) 2>&5
   5202   ac_status=$?
   5203   echo "$as_me:5203: \$? = $ac_status" >&5
   5204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5205   { (eval echo "$as_me:5205: \"$ac_try\"") >&5
   5206   (eval $ac_try) 2>&5
   5207   ac_status=$?
   5208   echo "$as_me:5208: \$? = $ac_status" >&5
   5209   (exit $ac_status); }; }; then
   5210   cf_cv_posix_saved_ids=yes
   5211 else
   5212   echo "$as_me: program exited with status $ac_status" >&5
   5213 echo "$as_me: failed program was:" >&5
   5214 cat conftest.$ac_ext >&5
   5215 cf_cv_posix_saved_ids=no
   5216 fi
   5217 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5218 fi
   5219 
   5220 fi
   5221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5222 
   5223 fi
   5224 echo "$as_me:5224: result: $cf_cv_posix_saved_ids" >&5
   5225 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
   5226 
   5227 test "$cf_cv_posix_saved_ids" = yes && cat >>confdefs.h <<\EOF
   5228 #define HAVE_POSIX_SAVED_IDS 1
   5229 EOF
   5230 
   5231 # compute a reasonable value for $TERM to give tgetent(), since we may be
   5232 # running in 'screen', which sets $TERMCAP to a specific entry that is not
   5233 # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
   5234 # discard $TERMCAP.
   5235 cf_TERMVAR=vt100
   5236 test -n "$TERMCAP" && cf_TERMVAR="$TERM"
   5237 test -z "$cf_TERMVAR" && cf_TERMVAR=vt100
   5238 
   5239 echo "$as_me:5239: checking if we want full tgetent function" >&5
   5240 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
   5241 
   5242 # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
   5243 if test "${enable_full_tgetent+set}" = set; then
   5244   enableval="$enable_full_tgetent"
   5245   test "$enableval" != no && enableval=yes
   5246   if test "$enableval" != "yes" ; then
   5247     cf_full_tgetent=no
   5248   else
   5249     cf_full_tgetent=yes
   5250   fi
   5251 else
   5252   enableval=yes
   5253   cf_full_tgetent=yes
   5254 
   5255 fi;
   5256 echo "$as_me:5256: result: $cf_full_tgetent" >&5
   5257 echo "${ECHO_T}$cf_full_tgetent" >&6
   5258 
   5259 if test "$cf_full_tgetent" = yes ; then
   5260 	cf_test_message="full tgetent"
   5261 else
   5262 	cf_test_message="tgetent"
   5263 fi
   5264 
   5265 echo "$as_me:5265: checking for $cf_test_message function" >&5
   5266 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
   5267 if test "${cf_cv_lib_tgetent+set}" = set; then
   5268   echo $ECHO_N "(cached) $ECHO_C" >&6
   5269 else
   5270 
   5271 cf_save_LIBS="$LIBS"
   5272 cf_cv_lib_tgetent=no
   5273 if test "$cf_full_tgetent" = yes ; then
   5274 	cf_TERMLIB="termcap termlib ncurses curses"
   5275 	cf_TERMTST="buffer[0] == 0"
   5276 else
   5277 	cf_TERMLIB="termlib ncurses curses"
   5278 	cf_TERMTST="0"
   5279 fi
   5280 for cf_termlib in '' $cf_TERMLIB ; do
   5281 	LIBS="$cf_save_LIBS"
   5282 	test -n "$cf_termlib" && LIBS="$LIBS -l$cf_termlib"
   5283 	if test "$cross_compiling" = yes; then
   5284   echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5
   5285 else
   5286   cat >conftest.$ac_ext <<_ACEOF
   5287 #line 5287 "configure"
   5288 #include "confdefs.h"
   5289 
   5290 /* terminfo implementations ignore the buffer argument, making it useless for
   5291  * the xterm application, which uses this information to make a new TERMCAP
   5292  * environment variable.
   5293  */
   5294 int main()
   5295 {
   5296 	char buffer[1024];
   5297 	buffer[0] = 0;
   5298 	tgetent(buffer, "$cf_TERMVAR");
   5299 	${cf_cv_main_return:-return} ($cf_TERMTST); }
   5300 _ACEOF
   5301 rm -f conftest$ac_exeext
   5302 if { (eval echo "$as_me:5302: \"$ac_link\"") >&5
   5303   (eval $ac_link) 2>&5
   5304   ac_status=$?
   5305   echo "$as_me:5305: \$? = $ac_status" >&5
   5306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5307   { (eval echo "$as_me:5307: \"$ac_try\"") >&5
   5308   (eval $ac_try) 2>&5
   5309   ac_status=$?
   5310   echo "$as_me:5310: \$? = $ac_status" >&5
   5311   (exit $ac_status); }; }; then
   5312   echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
   5313 	 if test -n "$cf_termlib" ; then
   5314 	 	cf_cv_lib_tgetent="-l$cf_termlib"
   5315 	 else
   5316 	 	cf_cv_lib_tgetent=yes
   5317 	 fi
   5318 	 break
   5319 else
   5320   echo "$as_me: program exited with status $ac_status" >&5
   5321 echo "$as_me: failed program was:" >&5
   5322 cat conftest.$ac_ext >&5
   5323 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
   5324 fi
   5325 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5326 fi
   5327 done
   5328 LIBS="$cf_save_LIBS"
   5329 
   5330 fi
   5331 echo "$as_me:5331: result: $cf_cv_lib_tgetent" >&5
   5332 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
   5333 
   5334 # If we found a working tgetent(), set LIBS and check for termcap.h.
   5335 # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
   5336 # not have side effects other than setting the cache variable, because
   5337 # they are not executed when a cached value exists.)
   5338 if test "$cf_cv_lib_tgetent" != no ; then
   5339 	test "$cf_cv_lib_tgetent" != yes && LIBS="$LIBS $cf_cv_lib_tgetent"
   5340 	cat >>confdefs.h <<\EOF
   5341 #define USE_TERMCAP 1
   5342 EOF
   5343 
   5344 	cat >conftest.$ac_ext <<_ACEOF
   5345 #line 5345 "configure"
   5346 #include "confdefs.h"
   5347 
   5348 #include <termcap.h>
   5349 int
   5350 main ()
   5351 {
   5352 
   5353 #ifdef NCURSES_VERSION
   5354 make an error
   5355 #endif
   5356   ;
   5357   return 0;
   5358 }
   5359 _ACEOF
   5360 rm -f conftest.$ac_objext
   5361 if { (eval echo "$as_me:5361: \"$ac_compile\"") >&5
   5362   (eval $ac_compile) 2>&5
   5363   ac_status=$?
   5364   echo "$as_me:5364: \$? = $ac_status" >&5
   5365   (exit $ac_status); } &&
   5366          { ac_try='test -s conftest.$ac_objext'
   5367   { (eval echo "$as_me:5367: \"$ac_try\"") >&5
   5368   (eval $ac_try) 2>&5
   5369   ac_status=$?
   5370   echo "$as_me:5370: \$? = $ac_status" >&5
   5371   (exit $ac_status); }; }; then
   5372   cat >>confdefs.h <<\EOF
   5373 #define HAVE_TERMCAP_H 1
   5374 EOF
   5375 
   5376 else
   5377   echo "$as_me: failed program was:" >&5
   5378 cat conftest.$ac_ext >&5
   5379 fi
   5380 rm -f conftest.$ac_objext conftest.$ac_ext
   5381 else
   5382         # If we didn't find a tgetent() that supports the buffer
   5383         # argument, look again to see whether we can find even
   5384         # a crippled one.  A crippled tgetent() is still useful to
   5385         # validate values for the TERM environment variable given to
   5386         # child processes.
   5387 	echo "$as_me:5387: checking for partial tgetent function" >&5
   5388 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
   5389 if test "${cf_cv_lib_part_tgetent+set}" = set; then
   5390   echo $ECHO_N "(cached) $ECHO_C" >&6
   5391 else
   5392 
   5393 	cf_cv_lib_part_tgetent=no
   5394 	for cf_termlib in $cf_TERMLIB ; do
   5395 		LIBS="$cf_save_LIBS -l$cf_termlib"
   5396 		cat >conftest.$ac_ext <<_ACEOF
   5397 #line 5397 "configure"
   5398 #include "confdefs.h"
   5399 
   5400 int
   5401 main ()
   5402 {
   5403 tgetent(0, "$cf_TERMVAR")
   5404   ;
   5405   return 0;
   5406 }
   5407 _ACEOF
   5408 rm -f conftest.$ac_objext conftest$ac_exeext
   5409 if { (eval echo "$as_me:5409: \"$ac_link\"") >&5
   5410   (eval $ac_link) 2>&5
   5411   ac_status=$?
   5412   echo "$as_me:5412: \$? = $ac_status" >&5
   5413   (exit $ac_status); } &&
   5414          { ac_try='test -s conftest$ac_exeext'
   5415   { (eval echo "$as_me:5415: \"$ac_try\"") >&5
   5416   (eval $ac_try) 2>&5
   5417   ac_status=$?
   5418   echo "$as_me:5418: \$? = $ac_status" >&5
   5419   (exit $ac_status); }; }; then
   5420   echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
   5421 			 cf_cv_lib_part_tgetent="-l$cf_termlib"
   5422 			 break
   5423 else
   5424   echo "$as_me: failed program was:" >&5
   5425 cat conftest.$ac_ext >&5
   5426 fi
   5427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5428 	done
   5429 	LIBS="$cf_save_LIBS"
   5430 
   5431 fi
   5432 echo "$as_me:5432: result: $cf_cv_lib_part_tgetent" >&5
   5433 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
   5434 
   5435 	if test "$cf_cv_lib_part_tgetent" != no ; then
   5436 		LIBS="$LIBS $cf_cv_lib_part_tgetent"
   5437 
   5438 for ac_header in termcap.h
   5439 do
   5440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5441 echo "$as_me:5441: checking for $ac_header" >&5
   5442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5444   echo $ECHO_N "(cached) $ECHO_C" >&6
   5445 else
   5446   cat >conftest.$ac_ext <<_ACEOF
   5447 #line 5447 "configure"
   5448 #include "confdefs.h"
   5449 #include <$ac_header>
   5450 _ACEOF
   5451 if { (eval echo "$as_me:5451: \"$ac_cpp conftest.$ac_ext\"") >&5
   5452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5453   ac_status=$?
   5454   egrep -v '^ *\+' conftest.er1 >conftest.err
   5455   rm -f conftest.er1
   5456   cat conftest.err >&5
   5457   echo "$as_me:5457: \$? = $ac_status" >&5
   5458   (exit $ac_status); } >/dev/null; then
   5459   if test -s conftest.err; then
   5460     ac_cpp_err=$ac_c_preproc_warn_flag
   5461   else
   5462     ac_cpp_err=
   5463   fi
   5464 else
   5465   ac_cpp_err=yes
   5466 fi
   5467 if test -z "$ac_cpp_err"; then
   5468   eval "$as_ac_Header=yes"
   5469 else
   5470   echo "$as_me: failed program was:" >&5
   5471   cat conftest.$ac_ext >&5
   5472   eval "$as_ac_Header=no"
   5473 fi
   5474 rm -f conftest.err conftest.$ac_ext
   5475 fi
   5476 echo "$as_me:5476: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5479   cat >>confdefs.h <<EOF
   5480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5481 EOF
   5482 
   5483 fi
   5484 done
   5485 
   5486                 # If this is linking against ncurses, we'll trigger the
   5487                 # ifdef in resize.c that turns the termcap stuff back off.
   5488 		cat >>confdefs.h <<\EOF
   5489 #define USE_TERMINFO 1
   5490 EOF
   5491 
   5492 	fi
   5493 fi
   5494 
   5495 echo "$as_me:5495: checking for directory to install resource files" >&5
   5496 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
   5497 
   5498 # Check whether --with-app-defaults or --without-app-defaults was given.
   5499 if test "${with_app_defaults+set}" = set; then
   5500   withval="$with_app_defaults"
   5501 
   5502 else
   5503   withval="${appsdir-'\$(exec_prefix)/lib/X11/app-defaults'}"
   5504 fi; if test -n "'\$(exec_prefix)/lib/X11/app-defaults'" ; then
   5505 
   5506 if test "x$prefix" != xNONE; then
   5507   cf_path_syntax="$prefix"
   5508 else
   5509   cf_path_syntax="$ac_default_prefix"
   5510 fi
   5511 
   5512 case ".$withval" in #(vi
   5513 .\$\(*\)*|.\'*\'*) #(vi
   5514   ;;
   5515 ..|./*|.\\*) #(vi
   5516   ;;
   5517 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
   5518   ;;
   5519 .\${*prefix}*) #(vi
   5520   eval withval="$withval"
   5521   case ".$withval" in #(vi
   5522   .NONE/*)
   5523     withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
   5524     ;;
   5525   esac
   5526   ;; #(vi
   5527 .no|.NONE/*)
   5528   withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
   5529   ;;
   5530 *)
   5531   { { echo "$as_me:5531: error: expected a pathname, not \"$withval\"" >&5
   5532 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   5533    { (exit 1); exit 1; }; }
   5534   ;;
   5535 esac
   5536 
   5537 fi
   5538 appsdir="$withval"
   5539 
   5540 echo "$as_me:5540: result: $appsdir" >&5
   5541 echo "${ECHO_T}$appsdir" >&6
   5542 
   5543 no_appsdir=
   5544 test "$appsdir" = no && no_appsdir="#"
   5545 
   5546 echo "$as_me:5546: checking for directory to install icons" >&5
   5547 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
   5548 
   5549 # Check whether --with-icondir or --without-icondir was given.
   5550 if test "${with_icondir+set}" = set; then
   5551   withval="$with_icondir"
   5552 
   5553 else
   5554   withval="${icondir-'\$(exec_prefix)/share/pixmaps'}"
   5555 fi; if test -n "'\$(exec_prefix)/share/pixmaps'" ; then
   5556 
   5557 if test "x$prefix" != xNONE; then
   5558   cf_path_syntax="$prefix"
   5559 else
   5560   cf_path_syntax="$ac_default_prefix"
   5561 fi
   5562 
   5563 case ".$withval" in #(vi
   5564 .\$\(*\)*|.\'*\'*) #(vi
   5565   ;;
   5566 ..|./*|.\\*) #(vi
   5567   ;;
   5568 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
   5569   ;;
   5570 .\${*prefix}*) #(vi
   5571   eval withval="$withval"
   5572   case ".$withval" in #(vi
   5573   .NONE/*)
   5574     withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
   5575     ;;
   5576   esac
   5577   ;; #(vi
   5578 .no|.NONE/*)
   5579   withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
   5580   ;;
   5581 *)
   5582   { { echo "$as_me:5582: error: expected a pathname, not \"$withval\"" >&5
   5583 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   5584    { (exit 1); exit 1; }; }
   5585   ;;
   5586 esac
   5587 
   5588 fi
   5589 icondir="$withval"
   5590 
   5591 echo "$as_me:5591: result: $icondir" >&5
   5592 echo "${ECHO_T}$icondir" >&6
   5593 
   5594 no_icondir=
   5595 test "$icondir" = no && no_icondir="#"
   5596 
   5597 # Comment-out the install-desktop rule if the desktop-utils are not found.
   5598 echo "$as_me:5598: checking if you want to install desktop files" >&5
   5599 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
   5600 
   5601 # Check whether --enable-desktop or --disable-desktop was given.
   5602 if test "${enable_desktop+set}" = set; then
   5603   enableval="$enable_desktop"
   5604   test "$enableval" != no && enableval=yes
   5605   if test "$enableval" != "yes" ; then
   5606     enable_desktop=$enableval
   5607   else
   5608     enable_desktop=$enableval
   5609   fi
   5610 else
   5611   enableval=yes
   5612   enable_desktop=$enableval
   5613 
   5614 fi;
   5615 echo "$as_me:5615: result: $enable_desktop" >&5
   5616 echo "${ECHO_T}$enable_desktop" >&6
   5617 
   5618 desktop_utils=
   5619 if test "$enable_desktop" = yes ; then
   5620 # Extract the first word of "desktop-file-install", so it can be a program name with args.
   5621 set dummy desktop-file-install; ac_word=$2
   5622 echo "$as_me:5622: checking for $ac_word" >&5
   5623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5624 if test "${ac_cv_prog_desktop_utils+set}" = set; then
   5625   echo $ECHO_N "(cached) $ECHO_C" >&6
   5626 else
   5627   if test -n "$desktop_utils"; then
   5628   ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
   5629 else
   5630   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5631 ac_dummy="$PATH"
   5632 for ac_dir in $ac_dummy; do
   5633   IFS=$ac_save_IFS
   5634   test -z "$ac_dir" && ac_dir=.
   5635   $as_executable_p "$ac_dir/$ac_word" || continue
   5636 ac_cv_prog_desktop_utils="yes"
   5637 echo "$as_me:5637: found $ac_dir/$ac_word" >&5
   5638 break
   5639 done
   5640 
   5641   test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
   5642 fi
   5643 fi
   5644 desktop_utils=$ac_cv_prog_desktop_utils
   5645 if test -n "$desktop_utils"; then
   5646   echo "$as_me:5646: result: $desktop_utils" >&5
   5647 echo "${ECHO_T}$desktop_utils" >&6
   5648 else
   5649   echo "$as_me:5649: result: no" >&5
   5650 echo "${ECHO_T}no" >&6
   5651 fi
   5652 
   5653 fi
   5654 
   5655 test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
   5656 
   5657 # inherit SINSTALL_OPTS from environment to allow packager to customize it.
   5658 
   5659 echo "$as_me:5659: checking for install-permissions reference" >&5
   5660 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
   5661 
   5662 # Check whether --with-reference or --without-reference was given.
   5663 if test "${with_reference+set}" = set; then
   5664   withval="$with_reference"
   5665   with_reference=$withval
   5666 else
   5667   with_reference=xterm
   5668 fi;
   5669 echo "$as_me:5669: result: $with_reference" >&5
   5670 echo "${ECHO_T}$with_reference" >&6
   5671 
   5672 with_full_paths=yes
   5673 
   5674 	case $cf_cv_system_name in
   5675 	os2*)	PATH_SEPARATOR=';'  ;;
   5676 	*)	PATH_SEPARATOR=':'  ;;
   5677 	esac
   5678 
   5679 test -z "$XTERM_PATH" && XTERM_PATH=$with_reference
   5680 for ac_prog in $XTERM_PATH $with_reference
   5681 do
   5682   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5683 set dummy $ac_prog; ac_word=$2
   5684 echo "$as_me:5684: checking for $ac_word" >&5
   5685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5686 if test "${ac_cv_path_XTERM_PATH+set}" = set; then
   5687   echo $ECHO_N "(cached) $ECHO_C" >&6
   5688 else
   5689   case $XTERM_PATH in
   5690   [\\/]* | ?:[\\/]*)
   5691   ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path.
   5692   ;;
   5693   *)
   5694   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5695 ac_dummy="$PATH"
   5696 for ac_dir in $ac_dummy; do
   5697   IFS=$ac_save_IFS
   5698   test -z "$ac_dir" && ac_dir=.
   5699   if $as_executable_p "$ac_dir/$ac_word"; then
   5700    ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
   5701    echo "$as_me:5701: found $ac_dir/$ac_word" >&5
   5702    break
   5703 fi
   5704 done
   5705 
   5706   ;;
   5707 esac
   5708 fi
   5709 XTERM_PATH=$ac_cv_path_XTERM_PATH
   5710 
   5711 if test -n "$XTERM_PATH"; then
   5712   echo "$as_me:5712: result: $XTERM_PATH" >&5
   5713 echo "${ECHO_T}$XTERM_PATH" >&6
   5714 else
   5715   echo "$as_me:5715: result: no" >&5
   5716 echo "${ECHO_T}no" >&6
   5717 fi
   5718 
   5719   test -n "$XTERM_PATH" && break
   5720 done
   5721 test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
   5722 
   5723 cf_path_prog=""
   5724 cf_path_args=""
   5725 IFS="${IFS= 	}"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
   5726 for cf_temp in $ac_cv_path_XTERM_PATH
   5727 do
   5728 	if test -z "$cf_path_prog" ; then
   5729 		if test "$with_full_paths" = yes ; then
   5730 
   5731 if test "x$prefix" != xNONE; then
   5732   cf_path_syntax="$prefix"
   5733 else
   5734   cf_path_syntax="$ac_default_prefix"
   5735 fi
   5736 
   5737 case ".$cf_temp" in #(vi
   5738 .\$\(*\)*|.\'*\'*) #(vi
   5739   ;;
   5740 ..|./*|.\\*) #(vi
   5741   ;;
   5742 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
   5743   ;;
   5744 .\${*prefix}*) #(vi
   5745   eval cf_temp="$cf_temp"
   5746   case ".$cf_temp" in #(vi
   5747   .NONE/*)
   5748     cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   5749     ;;
   5750   esac
   5751   ;; #(vi
   5752 .no|.NONE/*)
   5753   cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   5754   ;;
   5755 *)
   5756   break
   5757   ;;
   5758 esac
   5759 
   5760 			cf_path_prog="$cf_temp"
   5761 		else
   5762 			cf_path_prog="`basename $cf_temp`"
   5763 		fi
   5764 	elif test -z "$cf_path_args" ; then
   5765 		cf_path_args="$cf_temp"
   5766 	else
   5767 		cf_path_args="$cf_path_args $cf_temp"
   5768 	fi
   5769 done
   5770 IFS="$cf_save_ifs"
   5771 
   5772 if test -n "$cf_path_prog" ; then
   5773 
   5774 echo "${as_me-configure}:5774: testing defining path for ${cf_path_prog} ..." 1>&5
   5775 
   5776 	cat >>confdefs.h <<EOF
   5777 #define XTERM_PATH_PATH "$cf_path_prog"
   5778 EOF
   5779 
   5780 	test -n "$cf_path_args" && cat >>confdefs.h <<EOF
   5781 #define XTERM_PATH_ARGS "$cf_path_args"
   5782 EOF
   5783 
   5784 fi
   5785 
   5786 # If any of --program-prefix, --program-suffix or --program-transform-name is
   5787 # given, accept an option tell the makefile to create a symbolic link, e.g.,
   5788 # to "xterm" on install.
   5789 XTERM_SYMLINK=NONE
   5790 
   5791 if test "$program_transform_name" != "'s,,,'" ; then
   5792 cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
   5793 cf_name=`echo xterm |sed -e "$cf_name"`
   5794 echo "$as_me:5794: checking for symbolic link to create to $cf_name" >&5
   5795 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
   5796 
   5797 # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
   5798 if test "${with_xterm_symlink+set}" = set; then
   5799   withval="$with_xterm_symlink"
   5800   with_symlink=$withval
   5801 else
   5802   with_symlink=xterm
   5803 fi;
   5804 echo "$as_me:5804: result: $with_symlink" >&5
   5805 echo "${ECHO_T}$with_symlink" >&6
   5806 test "$with_symlink" = yes && with_symlink=xterm
   5807 test -n "$with_symlink" && \
   5808 	test "$with_symlink" != no && \
   5809 	test "$with_symlink" != $cf_name && \
   5810 	XTERM_SYMLINK="$with_symlink"
   5811 fi
   5812 
   5813 echo "$as_me:5813: checking if you want to disable setuid" >&5
   5814 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
   5815 
   5816 # Check whether --enable-setuid or --disable-setuid was given.
   5817 if test "${enable_setuid+set}" = set; then
   5818   enableval="$enable_setuid"
   5819   test "$enableval" != no && enableval=yes
   5820   if test "$enableval" != "yes" ; then
   5821     disable_setuid=yes
   5822   else
   5823     disable_setuid=no
   5824   fi
   5825 else
   5826   enableval=yes
   5827   disable_setuid=no
   5828 
   5829 fi;
   5830 echo "$as_me:5830: result: $disable_setuid" >&5
   5831 echo "${ECHO_T}$disable_setuid" >&6
   5832 
   5833 echo "$as_me:5833: checking if you want to disable setgid" >&5
   5834 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
   5835 
   5836 # Check whether --enable-setgid or --disable-setgid was given.
   5837 if test "${enable_setgid+set}" = set; then
   5838   enableval="$enable_setgid"
   5839   test "$enableval" != no && enableval=yes
   5840   if test "$enableval" != "yes" ; then
   5841     disable_setgid=yes
   5842   else
   5843     disable_setgid=no
   5844   fi
   5845 else
   5846   enableval=yes
   5847   disable_setgid=no
   5848 
   5849 fi;
   5850 echo "$as_me:5850: result: $disable_setgid" >&5
   5851 echo "${ECHO_T}$disable_setgid" >&6
   5852 
   5853 echo "$as_me:5853: checking if you want to run xterm setuid to a given user" >&5
   5854 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6
   5855 
   5856 # Check whether --with-setuid or --without-setuid was given.
   5857 if test "${with_setuid+set}" = set; then
   5858   withval="$with_setuid"
   5859   use_given_setuid=$withval
   5860 else
   5861   use_given_setuid=no
   5862 fi;
   5863 echo "$as_me:5863: result: $use_given_setuid" >&5
   5864 echo "${ECHO_T}$use_given_setuid" >&6
   5865 
   5866 if test "$use_given_setuid" != no ; then
   5867 	if test "$use_given_setuid" = yes ; then
   5868 		cf_cv_given_setuid=root
   5869 	else
   5870 		cf_cv_given_setuid=$use_given_setuid
   5871 	fi
   5872 	SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
   5873 fi
   5874 
   5875 echo "$as_me:5875: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
   5876 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6
   5877 
   5878 # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
   5879 if test "${with_utmp_setgid+set}" = set; then
   5880   withval="$with_utmp_setgid"
   5881   use_utmp_setgid=$withval
   5882 else
   5883   use_utmp_setgid=no
   5884 fi;
   5885 echo "$as_me:5885: result: $use_utmp_setgid" >&5
   5886 echo "${ECHO_T}$use_utmp_setgid" >&6
   5887 
   5888 if test "$use_utmp_setgid" != no ; then
   5889 	if test "$use_utmp_setgid" = yes ; then
   5890 
   5891 if test $cf_cv_have_utmp != no ; then
   5892 echo "$as_me:5892: checking for utmp/utmpx group" >&5
   5893 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
   5894 if test "${cf_cv_utmp_group+set}" = set; then
   5895   echo $ECHO_N "(cached) $ECHO_C" >&6
   5896 else
   5897 
   5898 for cf_utmp_path in /var/adm /var/run
   5899 do
   5900 	for cf_utmp_file in utmpx utmp
   5901 	do
   5902 		if test -f $cf_utmp_path/$cf_utmp_file
   5903 		then
   5904 			cf_cv_utmp_group=root
   5905 
   5906 			cf_option="-l -L"
   5907 
   5908 			# Expect listing to have fields like this:
   5909 			#-r--r--r--   1 user      group       34293 Jul 18 16:29 pathname
   5910 			ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
   5911 			read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
   5912 			if test -z "$cf_rest" ; then
   5913 				cf_option="$cf_option -g"
   5914 				ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
   5915 				read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
   5916 			fi
   5917 			rm -f conftest
   5918 
   5919 			# If we have a pathname, and the date fields look right, assume we've
   5920 			# captured the group as well.
   5921 			if test -n "$cf_rest" ; then
   5922 				cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'`
   5923 				if test -z "$cf_test" ; then
   5924 					cf_cv_utmp_group=$cf_grp;
   5925 				fi
   5926 			fi
   5927 			break
   5928 		fi
   5929 	done
   5930 	test -n "$cf_cv_utmp_group" && break
   5931 done
   5932 
   5933 fi
   5934 echo "$as_me:5934: result: $cf_cv_utmp_group" >&5
   5935 echo "${ECHO_T}$cf_cv_utmp_group" >&6
   5936 else
   5937 	{ { echo "$as_me:5937: error: cannot find utmp group" >&5
   5938 echo "$as_me: error: cannot find utmp group" >&2;}
   5939    { (exit 1); exit 1; }; }
   5940 fi
   5941 
   5942 	else
   5943 		cf_cv_utmp_group=$use_utmp_setgid
   5944 	fi
   5945 	if test "$cf_cv_posix_saved_ids" != yes ; then
   5946 		{ { echo "$as_me:5946: error: Your system does not support POSIX saved-ids" >&5
   5947 echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
   5948    { (exit 1); exit 1; }; }
   5949 	fi
   5950 	cat >>confdefs.h <<\EOF
   5951 #define USE_UTMP_SETGID 1
   5952 EOF
   5953 
   5954 	SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
   5955 fi
   5956 
   5957 echo "$as_me:5957: checking if you want to link with utempter" >&5
   5958 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
   5959 
   5960 # Check whether --with-utempter or --without-utempter was given.
   5961 if test "${with_utempter+set}" = set; then
   5962   withval="$with_utempter"
   5963   use_utempter=$withval
   5964 else
   5965   use_utempter=no
   5966 fi;
   5967 echo "$as_me:5967: result: $use_utempter" >&5
   5968 echo "${ECHO_T}$use_utempter" >&6
   5969 
   5970 if test "$use_utempter" = yes ; then
   5971 
   5972 echo "$as_me:5972: checking if we can link with utempter library" >&5
   5973 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
   5974 if test "${cf_cv_have_utempter+set}" = set; then
   5975   echo $ECHO_N "(cached) $ECHO_C" >&6
   5976 else
   5977 
   5978 cf_save_LIBS="$LIBS"
   5979 LIBS="-lutempter $LIBS"
   5980 cat >conftest.$ac_ext <<_ACEOF
   5981 #line 5981 "configure"
   5982 #include "confdefs.h"
   5983 
   5984 #include <utempter.h>
   5985 
   5986 int
   5987 main ()
   5988 {
   5989 
   5990 	addToUtmp("/dev/tty", 0, 1);
   5991 	removeFromUtmp();
   5992 
   5993   ;
   5994   return 0;
   5995 }
   5996 _ACEOF
   5997 rm -f conftest.$ac_objext conftest$ac_exeext
   5998 if { (eval echo "$as_me:5998: \"$ac_link\"") >&5
   5999   (eval $ac_link) 2>&5
   6000   ac_status=$?
   6001   echo "$as_me:6001: \$? = $ac_status" >&5
   6002   (exit $ac_status); } &&
   6003          { ac_try='test -s conftest$ac_exeext'
   6004   { (eval echo "$as_me:6004: \"$ac_try\"") >&5
   6005   (eval $ac_try) 2>&5
   6006   ac_status=$?
   6007   echo "$as_me:6007: \$? = $ac_status" >&5
   6008   (exit $ac_status); }; }; then
   6009 
   6010 	cf_cv_have_utempter=yes
   6011 else
   6012   echo "$as_me: failed program was:" >&5
   6013 cat conftest.$ac_ext >&5
   6014 
   6015 	cf_cv_have_utempter=no
   6016 fi
   6017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6018 LIBS="$cf_save_LIBS"
   6019 
   6020 fi
   6021 echo "$as_me:6021: result: $cf_cv_have_utempter" >&5
   6022 echo "${ECHO_T}$cf_cv_have_utempter" >&6
   6023 if test "$cf_cv_have_utempter" = yes ; then
   6024 	cat >>confdefs.h <<\EOF
   6025 #define USE_UTEMPTER 1
   6026 EOF
   6027 
   6028 	LIBS="-lutempter $LIBS"
   6029 fi
   6030 
   6031 	test "$cf_cv_have_utempter" != yes && use_utempter=no
   6032 else
   6033 	use_utempter=no
   6034 fi
   6035 
   6036 # Some configurations permit (or require) either setuid or setgid mode.
   6037 # Let the user decide.
   6038 if test "$use_utempter" = yes ; then
   6039 	if test "${enable_setuid+set}" != set ; then
   6040 		disable_setuid=yes
   6041 		test -n "$verbose" && echo "	No --disable-setuid option given, force to yes" 1>&6
   6042 
   6043 echo "${as_me-configure}:6043: testing No --disable-setuid option given, force to yes ..." 1>&5
   6044 
   6045 	fi
   6046 fi
   6047 
   6048 ###	checks for external data
   6049 
   6050 echo "$as_me:6050: checking if external errno is declared" >&5
   6051 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
   6052 if test "${cf_cv_dcl_errno+set}" = set; then
   6053   echo $ECHO_N "(cached) $ECHO_C" >&6
   6054 else
   6055 
   6056     cat >conftest.$ac_ext <<_ACEOF
   6057 #line 6057 "configure"
   6058 #include "confdefs.h"
   6059 
   6060 #ifdef HAVE_STDLIB_H
   6061 #include <stdlib.h>
   6062 #endif
   6063 #include <stdio.h>
   6064 #include <sys/types.h>
   6065 #include <errno.h>
   6066 int
   6067 main ()
   6068 {
   6069 int x = (int) errno
   6070   ;
   6071   return 0;
   6072 }
   6073 _ACEOF
   6074 rm -f conftest.$ac_objext
   6075 if { (eval echo "$as_me:6075: \"$ac_compile\"") >&5
   6076   (eval $ac_compile) 2>&5
   6077   ac_status=$?
   6078   echo "$as_me:6078: \$? = $ac_status" >&5
   6079   (exit $ac_status); } &&
   6080          { ac_try='test -s conftest.$ac_objext'
   6081   { (eval echo "$as_me:6081: \"$ac_try\"") >&5
   6082   (eval $ac_try) 2>&5
   6083   ac_status=$?
   6084   echo "$as_me:6084: \$? = $ac_status" >&5
   6085   (exit $ac_status); }; }; then
   6086   cf_cv_dcl_errno=yes
   6087 else
   6088   echo "$as_me: failed program was:" >&5
   6089 cat conftest.$ac_ext >&5
   6090 cf_cv_dcl_errno=no
   6091 fi
   6092 rm -f conftest.$ac_objext conftest.$ac_ext
   6093 
   6094 fi
   6095 echo "$as_me:6095: result: $cf_cv_dcl_errno" >&5
   6096 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
   6097 
   6098 if test "$cf_cv_dcl_errno" = no ; then
   6099 
   6100 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6101 
   6102     cat >>confdefs.h <<EOF
   6103 #define $cf_result 1
   6104 EOF
   6105 
   6106 fi
   6107 
   6108 # It's possible (for near-UNIX clones) that the data doesn't exist
   6109 
   6110 echo "$as_me:6110: checking if external errno exists" >&5
   6111 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
   6112 if test "${cf_cv_have_errno+set}" = set; then
   6113   echo $ECHO_N "(cached) $ECHO_C" >&6
   6114 else
   6115 
   6116     cat >conftest.$ac_ext <<_ACEOF
   6117 #line 6117 "configure"
   6118 #include "confdefs.h"
   6119 
   6120 #undef errno
   6121 extern int errno;
   6122 
   6123 int
   6124 main ()
   6125 {
   6126 errno = 2
   6127   ;
   6128   return 0;
   6129 }
   6130 _ACEOF
   6131 rm -f conftest.$ac_objext conftest$ac_exeext
   6132 if { (eval echo "$as_me:6132: \"$ac_link\"") >&5
   6133   (eval $ac_link) 2>&5
   6134   ac_status=$?
   6135   echo "$as_me:6135: \$? = $ac_status" >&5
   6136   (exit $ac_status); } &&
   6137          { ac_try='test -s conftest$ac_exeext'
   6138   { (eval echo "$as_me:6138: \"$ac_try\"") >&5
   6139   (eval $ac_try) 2>&5
   6140   ac_status=$?
   6141   echo "$as_me:6141: \$? = $ac_status" >&5
   6142   (exit $ac_status); }; }; then
   6143   cf_cv_have_errno=yes
   6144 else
   6145   echo "$as_me: failed program was:" >&5
   6146 cat conftest.$ac_ext >&5
   6147 cf_cv_have_errno=no
   6148 fi
   6149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6150 
   6151 fi
   6152 echo "$as_me:6152: result: $cf_cv_have_errno" >&5
   6153 echo "${ECHO_T}$cf_cv_have_errno" >&6
   6154 
   6155 if test "$cf_cv_have_errno" = yes ; then
   6156 
   6157 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6158 
   6159     cat >>confdefs.h <<EOF
   6160 #define $cf_result 1
   6161 EOF
   6162 
   6163 fi
   6164 
   6165 echo "$as_me:6165: checking for explicit tty group name" >&5
   6166 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
   6167 
   6168 # Check whether --with-tty-group or --without-tty-group was given.
   6169 if test "${with_tty_group+set}" = set; then
   6170   withval="$with_tty_group"
   6171   cf_tty_group=$withval
   6172 else
   6173   cf_tty_group=auto...
   6174 fi;
   6175 test -z "$cf_tty_group"    && cf_tty_group=auto...
   6176 test "$cf_tty_group" = yes && cf_tty_group=auto...
   6177 echo "$as_me:6177: result: $cf_tty_group" >&5
   6178 echo "${ECHO_T}$cf_tty_group" >&6
   6179 
   6180 if test "$cf_tty_group" = "auto..." ; then
   6181 echo "$as_me:6181: checking for tty group name" >&5
   6182 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
   6183 if test "${cf_cv_tty_group_name+set}" = set; then
   6184   echo $ECHO_N "(cached) $ECHO_C" >&6
   6185 else
   6186 
   6187 # If we are configuring as root, it is hard to get a clue about the tty group.
   6188 # But we'll guess based on how our connection is set up - assuming it is done
   6189 # properly.
   6190 
   6191 cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'`
   6192 # )vi
   6193 if test "$cf_uid" != 0 ; then
   6194 cf_cv_tty_group_name=
   6195 cf_tty_name=`tty`
   6196 test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty
   6197 test -z "$cf_tty_name" && cf_tty_name=/dev/tty
   6198 if test -c "$cf_tty_name"
   6199 then
   6200 	cf_option="-l -L"
   6201 
   6202 	# Expect listing to have fields like this:
   6203 	#-rwxrwxrwx   1 user      group       34293 Jul 18 16:29 pathname
   6204 	ls $cf_option $cf_tty_name >conftest.out
   6205 	read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
   6206 	if test -z "$cf_rest" ; then
   6207 		cf_option="$cf_option -g"
   6208 		ls $cf_option $cf_tty_name >conftest.out
   6209 		read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
   6210 	fi
   6211 	rm -f conftest.out
   6212 	cf_cv_tty_group_name=$cf_grp
   6213 fi
   6214 fi
   6215 
   6216 # If we cannot deduce the tty group, fall back on hardcoded cases
   6217 
   6218 if test -z "$cf_cv_tty_group_name"
   6219 then
   6220 case $host_os in #(vi
   6221 osf*) #(vi
   6222 	cf_cv_tty_group_name="terminal"
   6223 	;;
   6224 *)
   6225 	cf_cv_tty_group_name="unknown"
   6226 	if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
   6227 		cf_cv_tty_group_name="tty"
   6228 	fi
   6229 	;;
   6230 esac
   6231 fi
   6232 
   6233 fi
   6234 echo "$as_me:6234: result: $cf_cv_tty_group_name" >&5
   6235 echo "${ECHO_T}$cf_cv_tty_group_name" >&6
   6236 cf_tty_group="$cf_cv_tty_group_name"
   6237 else
   6238 	# if configure option, always do this
   6239 	cat >>confdefs.h <<\EOF
   6240 #define USE_TTY_GROUP 1
   6241 EOF
   6242 
   6243 fi
   6244 
   6245 cat >>confdefs.h <<EOF
   6246 #define TTY_GROUP_NAME "$cf_tty_group"
   6247 EOF
   6248 
   6249 # This is only a double-check that the group-name we obtained above really
   6250 # does apply to the device.  We cannot perform this test if we are in batch
   6251 # mode, or if we are cross-compiling.
   6252 
   6253 echo "$as_me:6253: checking if we may use the $cf_tty_group group" >&5
   6254 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
   6255 if test "${cf_cv_tty_group+set}" = set; then
   6256   echo $ECHO_N "(cached) $ECHO_C" >&6
   6257 else
   6258 
   6259 cf_tty_name=`tty`
   6260 if test "$cf_tty_name" != "not a tty"
   6261 then
   6262 if test "$cross_compiling" = yes; then
   6263   cf_cv_tty_group=unknown
   6264 else
   6265   cat >conftest.$ac_ext <<_ACEOF
   6266 #line 6266 "configure"
   6267 #include "confdefs.h"
   6268 
   6269 #include <unistd.h>
   6270 #include <sys/types.h>
   6271 #include <sys/stat.h>
   6272 #include <grp.h>
   6273 int main()
   6274 {
   6275 	struct stat sb;
   6276 	struct group *ttygrp = getgrnam(TTY_GROUP_NAME);
   6277 	char *name = ttyname(0);
   6278 
   6279 	endgrent();
   6280 	if (ttygrp != 0
   6281 	 && name != 0
   6282 	 && stat(name, &sb) == 0
   6283 	 && sb.st_gid != getgid()
   6284 	 && sb.st_gid == ttygrp->gr_gid) {
   6285 		${cf_cv_main_return:-return} (0);
   6286 	}
   6287 	${cf_cv_main_return:-return} (1);
   6288 }
   6289 
   6290 _ACEOF
   6291 rm -f conftest$ac_exeext
   6292 if { (eval echo "$as_me:6292: \"$ac_link\"") >&5
   6293   (eval $ac_link) 2>&5
   6294   ac_status=$?
   6295   echo "$as_me:6295: \$? = $ac_status" >&5
   6296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6297   { (eval echo "$as_me:6297: \"$ac_try\"") >&5
   6298   (eval $ac_try) 2>&5
   6299   ac_status=$?
   6300   echo "$as_me:6300: \$? = $ac_status" >&5
   6301   (exit $ac_status); }; }; then
   6302   cf_cv_tty_group=yes
   6303 else
   6304   echo "$as_me: program exited with status $ac_status" >&5
   6305 echo "$as_me: failed program was:" >&5
   6306 cat conftest.$ac_ext >&5
   6307 cf_cv_tty_group=no
   6308 fi
   6309 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6310 fi
   6311 elif test "$cross_compiling" = yes; then
   6312 	cf_cv_tty_group=unknown
   6313 else
   6314 	cf_cv_tty_group=yes
   6315 fi
   6316 
   6317 fi
   6318 echo "$as_me:6318: result: $cf_cv_tty_group" >&5
   6319 echo "${ECHO_T}$cf_cv_tty_group" >&6
   6320 
   6321 if test $cf_cv_tty_group = no ; then
   6322 	{ echo "$as_me:6322: WARNING: Cannot use $cf_tty_group group" >&5
   6323 echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
   6324 else
   6325 	cat >>confdefs.h <<\EOF
   6326 #define USE_TTY_GROUP 1
   6327 EOF
   6328 
   6329 fi
   6330 
   6331 ###	checks for system services and user specified options
   6332 
   6333 echo "$as_me:6333: checking for sys/wait.h that is POSIX.1 compatible" >&5
   6334 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
   6335 if test "${ac_cv_header_sys_wait_h+set}" = set; then
   6336   echo $ECHO_N "(cached) $ECHO_C" >&6
   6337 else
   6338   cat >conftest.$ac_ext <<_ACEOF
   6339 #line 6339 "configure"
   6340 #include "confdefs.h"
   6341 #include <sys/types.h>
   6342 #include <sys/wait.h>
   6343 #ifndef WEXITSTATUS
   6344 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
   6345 #endif
   6346 #ifndef WIFEXITED
   6347 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   6348 #endif
   6349 
   6350 int
   6351 main ()
   6352 {
   6353   int s;
   6354   wait (&s);
   6355   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   6356   ;
   6357   return 0;
   6358 }
   6359 _ACEOF
   6360 rm -f conftest.$ac_objext
   6361 if { (eval echo "$as_me:6361: \"$ac_compile\"") >&5
   6362   (eval $ac_compile) 2>&5
   6363   ac_status=$?
   6364   echo "$as_me:6364: \$? = $ac_status" >&5
   6365   (exit $ac_status); } &&
   6366          { ac_try='test -s conftest.$ac_objext'
   6367   { (eval echo "$as_me:6367: \"$ac_try\"") >&5
   6368   (eval $ac_try) 2>&5
   6369   ac_status=$?
   6370   echo "$as_me:6370: \$? = $ac_status" >&5
   6371   (exit $ac_status); }; }; then
   6372   ac_cv_header_sys_wait_h=yes
   6373 else
   6374   echo "$as_me: failed program was:" >&5
   6375 cat conftest.$ac_ext >&5
   6376 ac_cv_header_sys_wait_h=no
   6377 fi
   6378 rm -f conftest.$ac_objext conftest.$ac_ext
   6379 fi
   6380 echo "$as_me:6380: result: $ac_cv_header_sys_wait_h" >&5
   6381 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
   6382 if test $ac_cv_header_sys_wait_h = yes; then
   6383 
   6384 cat >>confdefs.h <<\EOF
   6385 #define HAVE_SYS_WAIT_H 1
   6386 EOF
   6387 
   6388 fi
   6389 
   6390 echo "$as_me:6390: checking for POSIX wait functions" >&5
   6391 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
   6392 if test "${cf_cv_posix_wait+set}" = set; then
   6393   echo $ECHO_N "(cached) $ECHO_C" >&6
   6394 else
   6395 
   6396 cat >conftest.$ac_ext <<_ACEOF
   6397 #line 6397 "configure"
   6398 #include "confdefs.h"
   6399 
   6400 #include <stdlib.h>
   6401 #include <stdio.h>
   6402 #include <sys/types.h>
   6403 #ifdef HAVE_SYS_WAIT_H
   6404 #include <sys/wait.h>
   6405 #endif
   6406 
   6407 int
   6408 main ()
   6409 {
   6410 
   6411 	int stat_loc;
   6412 	pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
   6413 	pid_t pid2 = wait(&stat_loc);
   6414 
   6415   ;
   6416   return 0;
   6417 }
   6418 _ACEOF
   6419 rm -f conftest.$ac_objext conftest$ac_exeext
   6420 if { (eval echo "$as_me:6420: \"$ac_link\"") >&5
   6421   (eval $ac_link) 2>&5
   6422   ac_status=$?
   6423   echo "$as_me:6423: \$? = $ac_status" >&5
   6424   (exit $ac_status); } &&
   6425          { ac_try='test -s conftest$ac_exeext'
   6426   { (eval echo "$as_me:6426: \"$ac_try\"") >&5
   6427   (eval $ac_try) 2>&5
   6428   ac_status=$?
   6429   echo "$as_me:6429: \$? = $ac_status" >&5
   6430   (exit $ac_status); }; }; then
   6431   cf_cv_posix_wait=yes
   6432 else
   6433   echo "$as_me: failed program was:" >&5
   6434 cat conftest.$ac_ext >&5
   6435 cf_cv_posix_wait=no
   6436 fi
   6437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6438 
   6439 fi
   6440 echo "$as_me:6440: result: $cf_cv_posix_wait" >&5
   6441 echo "${ECHO_T}$cf_cv_posix_wait" >&6
   6442 test "$cf_cv_posix_wait" = yes && cat >>confdefs.h <<\EOF
   6443 #define USE_POSIX_WAIT 1
   6444 EOF
   6445 
   6446 echo "$as_me:6446: checking if external sys_nerr is declared" >&5
   6447 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
   6448 if test "${cf_cv_dcl_sys_nerr+set}" = set; then
   6449   echo $ECHO_N "(cached) $ECHO_C" >&6
   6450 else
   6451 
   6452     cat >conftest.$ac_ext <<_ACEOF
   6453 #line 6453 "configure"
   6454 #include "confdefs.h"
   6455 
   6456 #ifdef HAVE_STDLIB_H
   6457 #include <stdlib.h>
   6458 #endif
   6459 #include <stdio.h>
   6460 #include <sys/types.h>
   6461 #include <errno.h>
   6462 int
   6463 main ()
   6464 {
   6465 int x = (int) sys_nerr
   6466   ;
   6467   return 0;
   6468 }
   6469 _ACEOF
   6470 rm -f conftest.$ac_objext
   6471 if { (eval echo "$as_me:6471: \"$ac_compile\"") >&5
   6472   (eval $ac_compile) 2>&5
   6473   ac_status=$?
   6474   echo "$as_me:6474: \$? = $ac_status" >&5
   6475   (exit $ac_status); } &&
   6476          { ac_try='test -s conftest.$ac_objext'
   6477   { (eval echo "$as_me:6477: \"$ac_try\"") >&5
   6478   (eval $ac_try) 2>&5
   6479   ac_status=$?
   6480   echo "$as_me:6480: \$? = $ac_status" >&5
   6481   (exit $ac_status); }; }; then
   6482   cf_cv_dcl_sys_nerr=yes
   6483 else
   6484   echo "$as_me: failed program was:" >&5
   6485 cat conftest.$ac_ext >&5
   6486 cf_cv_dcl_sys_nerr=no
   6487 fi
   6488 rm -f conftest.$ac_objext conftest.$ac_ext
   6489 
   6490 fi
   6491 echo "$as_me:6491: result: $cf_cv_dcl_sys_nerr" >&5
   6492 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
   6493 
   6494 if test "$cf_cv_dcl_sys_nerr" = no ; then
   6495 
   6496 cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6497 
   6498     cat >>confdefs.h <<EOF
   6499 #define $cf_result 1
   6500 EOF
   6501 
   6502 fi
   6503 
   6504 # It's possible (for near-UNIX clones) that the data doesn't exist
   6505 
   6506 echo "$as_me:6506: checking if external sys_nerr exists" >&5
   6507 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
   6508 if test "${cf_cv_have_sys_nerr+set}" = set; then
   6509   echo $ECHO_N "(cached) $ECHO_C" >&6
   6510 else
   6511 
   6512     cat >conftest.$ac_ext <<_ACEOF
   6513 #line 6513 "configure"
   6514 #include "confdefs.h"
   6515 
   6516 #undef sys_nerr
   6517 extern int sys_nerr;
   6518 
   6519 int
   6520 main ()
   6521 {
   6522 sys_nerr = 2
   6523   ;
   6524   return 0;
   6525 }
   6526 _ACEOF
   6527 rm -f conftest.$ac_objext conftest$ac_exeext
   6528 if { (eval echo "$as_me:6528: \"$ac_link\"") >&5
   6529   (eval $ac_link) 2>&5
   6530   ac_status=$?
   6531   echo "$as_me:6531: \$? = $ac_status" >&5
   6532   (exit $ac_status); } &&
   6533          { ac_try='test -s conftest$ac_exeext'
   6534   { (eval echo "$as_me:6534: \"$ac_try\"") >&5
   6535   (eval $ac_try) 2>&5
   6536   ac_status=$?
   6537   echo "$as_me:6537: \$? = $ac_status" >&5
   6538   (exit $ac_status); }; }; then
   6539   cf_cv_have_sys_nerr=yes
   6540 else
   6541   echo "$as_me: failed program was:" >&5
   6542 cat conftest.$ac_ext >&5
   6543 cf_cv_have_sys_nerr=no
   6544 fi
   6545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6546 
   6547 fi
   6548 echo "$as_me:6548: result: $cf_cv_have_sys_nerr" >&5
   6549 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
   6550 
   6551 if test "$cf_cv_have_sys_nerr" = yes ; then
   6552 
   6553 cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6554 
   6555     cat >>confdefs.h <<EOF
   6556 #define $cf_result 1
   6557 EOF
   6558 
   6559 fi
   6560 
   6561 echo "$as_me:6561: checking if external sys_errlist is declared" >&5
   6562 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
   6563 if test "${cf_cv_dcl_sys_errlist+set}" = set; then
   6564   echo $ECHO_N "(cached) $ECHO_C" >&6
   6565 else
   6566 
   6567     cat >conftest.$ac_ext <<_ACEOF
   6568 #line 6568 "configure"
   6569 #include "confdefs.h"
   6570 
   6571 #ifdef HAVE_STDLIB_H
   6572 #include <stdlib.h>
   6573 #endif
   6574 #include <stdio.h>
   6575 #include <sys/types.h>
   6576 #include <errno.h>
   6577 int
   6578 main ()
   6579 {
   6580 int x = (int) sys_errlist
   6581   ;
   6582   return 0;
   6583 }
   6584 _ACEOF
   6585 rm -f conftest.$ac_objext
   6586 if { (eval echo "$as_me:6586: \"$ac_compile\"") >&5
   6587   (eval $ac_compile) 2>&5
   6588   ac_status=$?
   6589   echo "$as_me:6589: \$? = $ac_status" >&5
   6590   (exit $ac_status); } &&
   6591          { ac_try='test -s conftest.$ac_objext'
   6592   { (eval echo "$as_me:6592: \"$ac_try\"") >&5
   6593   (eval $ac_try) 2>&5
   6594   ac_status=$?
   6595   echo "$as_me:6595: \$? = $ac_status" >&5
   6596   (exit $ac_status); }; }; then
   6597   cf_cv_dcl_sys_errlist=yes
   6598 else
   6599   echo "$as_me: failed program was:" >&5
   6600 cat conftest.$ac_ext >&5
   6601 cf_cv_dcl_sys_errlist=no
   6602 fi
   6603 rm -f conftest.$ac_objext conftest.$ac_ext
   6604 
   6605 fi
   6606 echo "$as_me:6606: result: $cf_cv_dcl_sys_errlist" >&5
   6607 echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
   6608 
   6609 if test "$cf_cv_dcl_sys_errlist" = no ; then
   6610 
   6611 cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6612 
   6613     cat >>confdefs.h <<EOF
   6614 #define $cf_result 1
   6615 EOF
   6616 
   6617 fi
   6618 
   6619 # It's possible (for near-UNIX clones) that the data doesn't exist
   6620 
   6621 echo "$as_me:6621: checking if external sys_errlist exists" >&5
   6622 echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
   6623 if test "${cf_cv_have_sys_errlist+set}" = set; then
   6624   echo $ECHO_N "(cached) $ECHO_C" >&6
   6625 else
   6626 
   6627     cat >conftest.$ac_ext <<_ACEOF
   6628 #line 6628 "configure"
   6629 #include "confdefs.h"
   6630 
   6631 #undef sys_errlist
   6632 extern int sys_errlist;
   6633 
   6634 int
   6635 main ()
   6636 {
   6637 sys_errlist = 2
   6638   ;
   6639   return 0;
   6640 }
   6641 _ACEOF
   6642 rm -f conftest.$ac_objext conftest$ac_exeext
   6643 if { (eval echo "$as_me:6643: \"$ac_link\"") >&5
   6644   (eval $ac_link) 2>&5
   6645   ac_status=$?
   6646   echo "$as_me:6646: \$? = $ac_status" >&5
   6647   (exit $ac_status); } &&
   6648          { ac_try='test -s conftest$ac_exeext'
   6649   { (eval echo "$as_me:6649: \"$ac_try\"") >&5
   6650   (eval $ac_try) 2>&5
   6651   ac_status=$?
   6652   echo "$as_me:6652: \$? = $ac_status" >&5
   6653   (exit $ac_status); }; }; then
   6654   cf_cv_have_sys_errlist=yes
   6655 else
   6656   echo "$as_me: failed program was:" >&5
   6657 cat conftest.$ac_ext >&5
   6658 cf_cv_have_sys_errlist=no
   6659 fi
   6660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6661 
   6662 fi
   6663 echo "$as_me:6663: result: $cf_cv_have_sys_errlist" >&5
   6664 echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
   6665 
   6666 if test "$cf_cv_have_sys_errlist" = yes ; then
   6667 
   6668 cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6669 
   6670     cat >>confdefs.h <<EOF
   6671 #define $cf_result 1
   6672 EOF
   6673 
   6674 fi
   6675 
   6676 for ac_header in \
   6677 termios.h \
   6678 stdlib.h \
   6679 X11/Intrinsic.h \
   6680 
   6681 do
   6682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6683 echo "$as_me:6683: checking for $ac_header" >&5
   6684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6686   echo $ECHO_N "(cached) $ECHO_C" >&6
   6687 else
   6688   cat >conftest.$ac_ext <<_ACEOF
   6689 #line 6689 "configure"
   6690 #include "confdefs.h"
   6691 #include <$ac_header>
   6692 _ACEOF
   6693 if { (eval echo "$as_me:6693: \"$ac_cpp conftest.$ac_ext\"") >&5
   6694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   6695   ac_status=$?
   6696   egrep -v '^ *\+' conftest.er1 >conftest.err
   6697   rm -f conftest.er1
   6698   cat conftest.err >&5
   6699   echo "$as_me:6699: \$? = $ac_status" >&5
   6700   (exit $ac_status); } >/dev/null; then
   6701   if test -s conftest.err; then
   6702     ac_cpp_err=$ac_c_preproc_warn_flag
   6703   else
   6704     ac_cpp_err=
   6705   fi
   6706 else
   6707   ac_cpp_err=yes
   6708 fi
   6709 if test -z "$ac_cpp_err"; then
   6710   eval "$as_ac_Header=yes"
   6711 else
   6712   echo "$as_me: failed program was:" >&5
   6713   cat conftest.$ac_ext >&5
   6714   eval "$as_ac_Header=no"
   6715 fi
   6716 rm -f conftest.err conftest.$ac_ext
   6717 fi
   6718 echo "$as_me:6718: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6721   cat >>confdefs.h <<EOF
   6722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6723 EOF
   6724 
   6725 fi
   6726 done
   6727 
   6728 echo "$as_me:6728: checking if we should define SYSV" >&5
   6729 echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
   6730 if test "${cf_cv_sysv+set}" = set; then
   6731   echo $ECHO_N "(cached) $ECHO_C" >&6
   6732 else
   6733 
   6734 cat >conftest.$ac_ext <<_ACEOF
   6735 #line 6735 "configure"
   6736 #include "confdefs.h"
   6737 
   6738 #undef  SYSV
   6739 #define SYSV 1			/* get Xos.h to declare sys_errlist[] */
   6740 #ifdef HAVE_STDLIB_H
   6741 #include <stdlib.h>		/* look for wchar_t */
   6742 #endif
   6743 #ifdef HAVE_X11_INTRINSIC_H
   6744 #include <X11/Intrinsic.h>	/* Intrinsic.h has other traps... */
   6745 #endif
   6746 #ifdef HAVE_TERMIOS_H		/* needed for HPUX 10.20 */
   6747 #include <termios.h>
   6748 #define STRUCT_TERMIOS struct termios
   6749 #else
   6750 #define STRUCT_TERMIOS struct termio
   6751 #endif
   6752 #include <curses.h>
   6753 #include <term.h>		/* eliminate most BSD hacks */
   6754 #include <errno.h>		/* declare sys_errlist on older systems */
   6755 #include <sys/termio.h>		/* eliminate most of the remaining ones */
   6756 
   6757 int
   6758 main ()
   6759 {
   6760 
   6761 static STRUCT_TERMIOS d_tio;
   6762 	d_tio.c_cc[VINTR] = 0;
   6763 	d_tio.c_cc[VQUIT] = 0;
   6764 	d_tio.c_cc[VERASE] = 0;
   6765 	d_tio.c_cc[VKILL] = 0;
   6766 	d_tio.c_cc[VEOF] = 0;
   6767 	d_tio.c_cc[VEOL] = 0;
   6768 	d_tio.c_cc[VMIN] = 0;
   6769 	d_tio.c_cc[VTIME] = 0;
   6770 #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
   6771 sys_errlist[0] = "";		/* Cygwin mis-declares this */
   6772 #endif
   6773 
   6774   ;
   6775   return 0;
   6776 }
   6777 _ACEOF
   6778 rm -f conftest.$ac_objext
   6779 if { (eval echo "$as_me:6779: \"$ac_compile\"") >&5
   6780   (eval $ac_compile) 2>&5
   6781   ac_status=$?
   6782   echo "$as_me:6782: \$? = $ac_status" >&5
   6783   (exit $ac_status); } &&
   6784          { ac_try='test -s conftest.$ac_objext'
   6785   { (eval echo "$as_me:6785: \"$ac_try\"") >&5
   6786   (eval $ac_try) 2>&5
   6787   ac_status=$?
   6788   echo "$as_me:6788: \$? = $ac_status" >&5
   6789   (exit $ac_status); }; }; then
   6790   cf_cv_sysv=yes
   6791 else
   6792   echo "$as_me: failed program was:" >&5
   6793 cat conftest.$ac_ext >&5
   6794 cf_cv_sysv=no
   6795 fi
   6796 rm -f conftest.$ac_objext conftest.$ac_ext
   6797 
   6798 fi
   6799 echo "$as_me:6799: result: $cf_cv_sysv" >&5
   6800 echo "${ECHO_T}$cf_cv_sysv" >&6
   6801 test "$cf_cv_sysv" = yes && cat >>confdefs.h <<\EOF
   6802 #define SYSV 1
   6803 EOF
   6804 
   6805 echo "$as_me:6805: checking for elf_begin in -lelf" >&5
   6806 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
   6807 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
   6808   echo $ECHO_N "(cached) $ECHO_C" >&6
   6809 else
   6810   ac_check_lib_save_LIBS=$LIBS
   6811 LIBS="-lelf  $LIBS"
   6812 cat >conftest.$ac_ext <<_ACEOF
   6813 #line 6813 "configure"
   6814 #include "confdefs.h"
   6815 
   6816 /* Override any gcc2 internal prototype to avoid an error.  */
   6817 #ifdef __cplusplus
   6818 extern "C"
   6819 #endif
   6820 /* We use char because int might match the return type of a gcc2
   6821    builtin and then its argument prototype would still apply.  */
   6822 char elf_begin ();
   6823 int
   6824 main ()
   6825 {
   6826 elf_begin ();
   6827   ;
   6828   return 0;
   6829 }
   6830 _ACEOF
   6831 rm -f conftest.$ac_objext conftest$ac_exeext
   6832 if { (eval echo "$as_me:6832: \"$ac_link\"") >&5
   6833   (eval $ac_link) 2>&5
   6834   ac_status=$?
   6835   echo "$as_me:6835: \$? = $ac_status" >&5
   6836   (exit $ac_status); } &&
   6837          { ac_try='test -s conftest$ac_exeext'
   6838   { (eval echo "$as_me:6838: \"$ac_try\"") >&5
   6839   (eval $ac_try) 2>&5
   6840   ac_status=$?
   6841   echo "$as_me:6841: \$? = $ac_status" >&5
   6842   (exit $ac_status); }; }; then
   6843   ac_cv_lib_elf_elf_begin=yes
   6844 else
   6845   echo "$as_me: failed program was:" >&5
   6846 cat conftest.$ac_ext >&5
   6847 ac_cv_lib_elf_elf_begin=no
   6848 fi
   6849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6850 LIBS=$ac_check_lib_save_LIBS
   6851 fi
   6852 echo "$as_me:6852: result: $ac_cv_lib_elf_elf_begin" >&5
   6853 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
   6854 if test $ac_cv_lib_elf_elf_begin = yes; then
   6855 
   6856 echo "$as_me:6856: checking if this is an SVR4 system" >&5
   6857 echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
   6858 if test "${cf_cv_svr4+set}" = set; then
   6859   echo $ECHO_N "(cached) $ECHO_C" >&6
   6860 else
   6861 
   6862 cat >conftest.$ac_ext <<_ACEOF
   6863 #line 6863 "configure"
   6864 #include "confdefs.h"
   6865 
   6866 #include <elf.h>
   6867 #include <sys/termio.h>
   6868 
   6869 int
   6870 main ()
   6871 {
   6872 
   6873 static struct termio d_tio;
   6874 	d_tio.c_cc[VINTR] = 0;
   6875 	d_tio.c_cc[VQUIT] = 0;
   6876 	d_tio.c_cc[VERASE] = 0;
   6877 	d_tio.c_cc[VKILL] = 0;
   6878 	d_tio.c_cc[VEOF] = 0;
   6879 	d_tio.c_cc[VEOL] = 0;
   6880 	d_tio.c_cc[VMIN] = 0;
   6881 	d_tio.c_cc[VTIME] = 0;
   6882 	d_tio.c_cc[VLNEXT] = 0;
   6883 
   6884   ;
   6885   return 0;
   6886 }
   6887 _ACEOF
   6888 rm -f conftest.$ac_objext
   6889 if { (eval echo "$as_me:6889: \"$ac_compile\"") >&5
   6890   (eval $ac_compile) 2>&5
   6891   ac_status=$?
   6892   echo "$as_me:6892: \$? = $ac_status" >&5
   6893   (exit $ac_status); } &&
   6894          { ac_try='test -s conftest.$ac_objext'
   6895   { (eval echo "$as_me:6895: \"$ac_try\"") >&5
   6896   (eval $ac_try) 2>&5
   6897   ac_status=$?
   6898   echo "$as_me:6898: \$? = $ac_status" >&5
   6899   (exit $ac_status); }; }; then
   6900   cf_cv_svr4=yes
   6901 else
   6902   echo "$as_me: failed program was:" >&5
   6903 cat conftest.$ac_ext >&5
   6904 cf_cv_svr4=no
   6905 fi
   6906 rm -f conftest.$ac_objext conftest.$ac_ext
   6907 
   6908 fi
   6909 echo "$as_me:6909: result: $cf_cv_svr4" >&5
   6910 echo "${ECHO_T}$cf_cv_svr4" >&6
   6911 
   6912 fi
   6913 
   6914 test "$cf_cv_svr4" = yes && cat >>confdefs.h <<\EOF
   6915 #define SVR4 1
   6916 EOF
   6917 
   6918 echo "$as_me:6918: checking for X" >&5
   6919 echo $ECHO_N "checking for X... $ECHO_C" >&6
   6920 
   6921 # Check whether --with-x or --without-x was given.
   6922 if test "${with_x+set}" = set; then
   6923   withval="$with_x"
   6924 
   6925 fi;
   6926 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   6927 if test "x$with_x" = xno; then
   6928   # The user explicitly disabled X.
   6929   have_x=disabled
   6930 else
   6931   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
   6932     # Both variables are already set.
   6933     have_x=yes
   6934   else
   6935     if test "${ac_cv_have_x+set}" = set; then
   6936   echo $ECHO_N "(cached) $ECHO_C" >&6
   6937 else
   6938   # One or both of the vars are not set, and there is no cached value.
   6939 ac_x_includes=no ac_x_libraries=no
   6940 rm -fr conftest.dir
   6941 if mkdir conftest.dir; then
   6942   cd conftest.dir
   6943   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
   6944   cat >Imakefile <<'EOF'
   6945 acfindx:
   6946 	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
   6947 EOF
   6948   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
   6949     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   6950     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
   6951     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   6952     for ac_extension in a so sl dylib dll; do
   6953       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
   6954          test -f $ac_im_libdir/libX11.$ac_extension; then
   6955         ac_im_usrlibdir=$ac_im_libdir; break
   6956       fi
   6957     done
   6958     # Screen out bogus values from the imake configuration.  They are
   6959     # bogus both because they are the default anyway, and because
   6960     # using them would break gcc on systems where it needs fixed includes.
   6961     case $ac_im_incroot in
   6962 	/usr/include) ;;
   6963 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   6964     esac
   6965     case $ac_im_usrlibdir in
   6966 	/usr/lib | /lib) ;;
   6967 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   6968     esac
   6969   fi
   6970   cd ..
   6971   rm -fr conftest.dir
   6972 fi
   6973 
   6974 # Standard set of common directories for X headers.
   6975 # Check X11 before X11Rn because it is often a symlink to the current release.
   6976 ac_x_header_dirs='
   6977 /usr/X11/include
   6978 /usr/X11R6/include
   6979 /usr/X11R5/include
   6980 /usr/X11R4/include
   6981 
   6982 /usr/include/X11
   6983 /usr/include/X11R6
   6984 /usr/include/X11R5
   6985 /usr/include/X11R4
   6986 
   6987 /usr/local/X11/include
   6988 /usr/local/X11R6/include
   6989 /usr/local/X11R5/include
   6990 /usr/local/X11R4/include
   6991 
   6992 /usr/local/include/X11
   6993 /usr/local/include/X11R6
   6994 /usr/local/include/X11R5
   6995 /usr/local/include/X11R4
   6996 
   6997 /usr/X386/include
   6998 /usr/x386/include
   6999 /usr/XFree86/include/X11
   7000 
   7001 /usr/include
   7002 /usr/local/include
   7003 /usr/unsupported/include
   7004 /usr/athena/include
   7005 /usr/local/x11r5/include
   7006 /usr/lpp/Xamples/include
   7007 
   7008 /usr/openwin/include
   7009 /usr/openwin/share/include'
   7010 
   7011 if test "$ac_x_includes" = no; then
   7012   # Guess where to find include files, by looking for Intrinsic.h.
   7013   # First, try using that file with no special directory specified.
   7014   cat >conftest.$ac_ext <<_ACEOF
   7015 #line 7015 "configure"
   7016 #include "confdefs.h"
   7017 #include <X11/Intrinsic.h>
   7018 _ACEOF
   7019 if { (eval echo "$as_me:7019: \"$ac_cpp conftest.$ac_ext\"") >&5
   7020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   7021   ac_status=$?
   7022   egrep -v '^ *\+' conftest.er1 >conftest.err
   7023   rm -f conftest.er1
   7024   cat conftest.err >&5
   7025   echo "$as_me:7025: \$? = $ac_status" >&5
   7026   (exit $ac_status); } >/dev/null; then
   7027   if test -s conftest.err; then
   7028     ac_cpp_err=$ac_c_preproc_warn_flag
   7029   else
   7030     ac_cpp_err=
   7031   fi
   7032 else
   7033   ac_cpp_err=yes
   7034 fi
   7035 if test -z "$ac_cpp_err"; then
   7036   # We can compile using X headers with no special include directory.
   7037 ac_x_includes=
   7038 else
   7039   echo "$as_me: failed program was:" >&5
   7040   cat conftest.$ac_ext >&5
   7041   for ac_dir in $ac_x_header_dirs; do
   7042   if test -r "$ac_dir/X11/Intrinsic.h"; then
   7043     ac_x_includes=$ac_dir
   7044     break
   7045   fi
   7046 done
   7047 fi
   7048 rm -f conftest.err conftest.$ac_ext
   7049 fi # $ac_x_includes = no
   7050 
   7051 if test "$ac_x_libraries" = no; then
   7052   # Check for the libraries.
   7053   # See if we find them without any special options.
   7054   # Don't add to $LIBS permanently.
   7055   ac_save_LIBS=$LIBS
   7056   LIBS="-lXt $LIBS"
   7057   cat >conftest.$ac_ext <<_ACEOF
   7058 #line 7058 "configure"
   7059 #include "confdefs.h"
   7060 #include <X11/Intrinsic.h>
   7061 int
   7062 main ()
   7063 {
   7064 XtMalloc (0)
   7065   ;
   7066   return 0;
   7067 }
   7068 _ACEOF
   7069 rm -f conftest.$ac_objext conftest$ac_exeext
   7070 if { (eval echo "$as_me:7070: \"$ac_link\"") >&5
   7071   (eval $ac_link) 2>&5
   7072   ac_status=$?
   7073   echo "$as_me:7073: \$? = $ac_status" >&5
   7074   (exit $ac_status); } &&
   7075          { ac_try='test -s conftest$ac_exeext'
   7076   { (eval echo "$as_me:7076: \"$ac_try\"") >&5
   7077   (eval $ac_try) 2>&5
   7078   ac_status=$?
   7079   echo "$as_me:7079: \$? = $ac_status" >&5
   7080   (exit $ac_status); }; }; then
   7081   LIBS=$ac_save_LIBS
   7082 # We can link X programs with no special library path.
   7083 ac_x_libraries=
   7084 else
   7085   echo "$as_me: failed program was:" >&5
   7086 cat conftest.$ac_ext >&5
   7087 LIBS=$ac_save_LIBS
   7088 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   7089 do
   7090   # Don't even attempt the hair of trying to link an X program!
   7091   for ac_extension in a so sl dylib dll; do
   7092     if test -r $ac_dir/libXt.$ac_extension; then
   7093       ac_x_libraries=$ac_dir
   7094       break 2
   7095     fi
   7096   done
   7097 done
   7098 fi
   7099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7100 fi # $ac_x_libraries = no
   7101 
   7102 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
   7103   # Didn't find X anywhere.  Cache the known absence of X.
   7104   ac_cv_have_x="have_x=no"
   7105 else
   7106   # Record where we found X for the cache.
   7107   ac_cv_have_x="have_x=yes \
   7108 	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
   7109 fi
   7110 fi
   7111 
   7112   fi
   7113   eval "$ac_cv_have_x"
   7114 fi # $with_x != no
   7115 
   7116 if test "$have_x" != yes; then
   7117   echo "$as_me:7117: result: $have_x" >&5
   7118 echo "${ECHO_T}$have_x" >&6
   7119   no_x=yes
   7120 else
   7121   # If each of the values was on the command line, it overrides each guess.
   7122   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   7123   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   7124   # Update the cache value to reflect the command line values.
   7125   ac_cv_have_x="have_x=yes \
   7126 		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
   7127   echo "$as_me:7127: result: libraries $x_libraries, headers $x_includes" >&5
   7128 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
   7129 fi
   7130 
   7131 if test "$no_x" = yes; then
   7132   # Not all programs may use this symbol, but it does not hurt to define it.
   7133 
   7134 cat >>confdefs.h <<\EOF
   7135 #define X_DISPLAY_MISSING 1
   7136 EOF
   7137 
   7138   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
   7139 else
   7140   if test -n "$x_includes"; then
   7141     X_CFLAGS="$X_CFLAGS -I$x_includes"
   7142   fi
   7143 
   7144   # It would also be nice to do this for all -L options, not just this one.
   7145   if test -n "$x_libraries"; then
   7146     X_LIBS="$X_LIBS -L$x_libraries"
   7147     # For Solaris; some versions of Sun CC require a space after -R and
   7148     # others require no space.  Words are not sufficient . . . .
   7149     case `(uname -sr) 2>/dev/null` in
   7150     "SunOS 5"*)
   7151       echo "$as_me:7151: checking whether -R must be followed by a space" >&5
   7152 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
   7153       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
   7154       cat >conftest.$ac_ext <<_ACEOF
   7155 #line 7155 "configure"
   7156 #include "confdefs.h"
   7157 
   7158 int
   7159 main ()
   7160 {
   7161 
   7162   ;
   7163   return 0;
   7164 }
   7165 _ACEOF
   7166 rm -f conftest.$ac_objext conftest$ac_exeext
   7167 if { (eval echo "$as_me:7167: \"$ac_link\"") >&5
   7168   (eval $ac_link) 2>&5
   7169   ac_status=$?
   7170   echo "$as_me:7170: \$? = $ac_status" >&5
   7171   (exit $ac_status); } &&
   7172          { ac_try='test -s conftest$ac_exeext'
   7173   { (eval echo "$as_me:7173: \"$ac_try\"") >&5
   7174   (eval $ac_try) 2>&5
   7175   ac_status=$?
   7176   echo "$as_me:7176: \$? = $ac_status" >&5
   7177   (exit $ac_status); }; }; then
   7178   ac_R_nospace=yes
   7179 else
   7180   echo "$as_me: failed program was:" >&5
   7181 cat conftest.$ac_ext >&5
   7182 ac_R_nospace=no
   7183 fi
   7184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7185       if test $ac_R_nospace = yes; then
   7186 	echo "$as_me:7186: result: no" >&5
   7187 echo "${ECHO_T}no" >&6
   7188 	X_LIBS="$X_LIBS -R$x_libraries"
   7189       else
   7190 	LIBS="$ac_xsave_LIBS -R $x_libraries"
   7191 	cat >conftest.$ac_ext <<_ACEOF
   7192 #line 7192 "configure"
   7193 #include "confdefs.h"
   7194 
   7195 int
   7196 main ()
   7197 {
   7198 
   7199   ;
   7200   return 0;
   7201 }
   7202 _ACEOF
   7203 rm -f conftest.$ac_objext conftest$ac_exeext
   7204 if { (eval echo "$as_me:7204: \"$ac_link\"") >&5
   7205   (eval $ac_link) 2>&5
   7206   ac_status=$?
   7207   echo "$as_me:7207: \$? = $ac_status" >&5
   7208   (exit $ac_status); } &&
   7209          { ac_try='test -s conftest$ac_exeext'
   7210   { (eval echo "$as_me:7210: \"$ac_try\"") >&5
   7211   (eval $ac_try) 2>&5
   7212   ac_status=$?
   7213   echo "$as_me:7213: \$? = $ac_status" >&5
   7214   (exit $ac_status); }; }; then
   7215   ac_R_space=yes
   7216 else
   7217   echo "$as_me: failed program was:" >&5
   7218 cat conftest.$ac_ext >&5
   7219 ac_R_space=no
   7220 fi
   7221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7222 	if test $ac_R_space = yes; then
   7223 	  echo "$as_me:7223: result: yes" >&5
   7224 echo "${ECHO_T}yes" >&6
   7225 	  X_LIBS="$X_LIBS -R $x_libraries"
   7226 	else
   7227 	  echo "$as_me:7227: result: neither works" >&5
   7228 echo "${ECHO_T}neither works" >&6
   7229 	fi
   7230       fi
   7231       LIBS=$ac_xsave_LIBS
   7232     esac
   7233   fi
   7234 
   7235   # Check for system-dependent libraries X programs must link with.
   7236   # Do this before checking for the system-independent R6 libraries
   7237   # (-lICE), since we may need -lsocket or whatever for X linking.
   7238 
   7239   if test "$ISC" = yes; then
   7240     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
   7241   else
   7242     # Martyn Johnson says this is needed for Ultrix, if the X
   7243     # libraries were built with DECnet support.  And Karl Berry says
   7244     # the Alpha needs dnet_stub (dnet does not exist).
   7245     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
   7246     cat >conftest.$ac_ext <<_ACEOF
   7247 #line 7247 "configure"
   7248 #include "confdefs.h"
   7249 
   7250 /* Override any gcc2 internal prototype to avoid an error.  */
   7251 #ifdef __cplusplus
   7252 extern "C"
   7253 #endif
   7254 /* We use char because int might match the return type of a gcc2
   7255    builtin and then its argument prototype would still apply.  */
   7256 char XOpenDisplay ();
   7257 int
   7258 main ()
   7259 {
   7260 XOpenDisplay ();
   7261   ;
   7262   return 0;
   7263 }
   7264 _ACEOF
   7265 rm -f conftest.$ac_objext conftest$ac_exeext
   7266 if { (eval echo "$as_me:7266: \"$ac_link\"") >&5
   7267   (eval $ac_link) 2>&5
   7268   ac_status=$?
   7269   echo "$as_me:7269: \$? = $ac_status" >&5
   7270   (exit $ac_status); } &&
   7271          { ac_try='test -s conftest$ac_exeext'
   7272   { (eval echo "$as_me:7272: \"$ac_try\"") >&5
   7273   (eval $ac_try) 2>&5
   7274   ac_status=$?
   7275   echo "$as_me:7275: \$? = $ac_status" >&5
   7276   (exit $ac_status); }; }; then
   7277   :
   7278 else
   7279   echo "$as_me: failed program was:" >&5
   7280 cat conftest.$ac_ext >&5
   7281 echo "$as_me:7281: checking for dnet_ntoa in -ldnet" >&5
   7282 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
   7283 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
   7284   echo $ECHO_N "(cached) $ECHO_C" >&6
   7285 else
   7286   ac_check_lib_save_LIBS=$LIBS
   7287 LIBS="-ldnet  $LIBS"
   7288 cat >conftest.$ac_ext <<_ACEOF
   7289 #line 7289 "configure"
   7290 #include "confdefs.h"
   7291 
   7292 /* Override any gcc2 internal prototype to avoid an error.  */
   7293 #ifdef __cplusplus
   7294 extern "C"
   7295 #endif
   7296 /* We use char because int might match the return type of a gcc2
   7297    builtin and then its argument prototype would still apply.  */
   7298 char dnet_ntoa ();
   7299 int
   7300 main ()
   7301 {
   7302 dnet_ntoa ();
   7303   ;
   7304   return 0;
   7305 }
   7306 _ACEOF
   7307 rm -f conftest.$ac_objext conftest$ac_exeext
   7308 if { (eval echo "$as_me:7308: \"$ac_link\"") >&5
   7309   (eval $ac_link) 2>&5
   7310   ac_status=$?
   7311   echo "$as_me:7311: \$? = $ac_status" >&5
   7312   (exit $ac_status); } &&
   7313          { ac_try='test -s conftest$ac_exeext'
   7314   { (eval echo "$as_me:7314: \"$ac_try\"") >&5
   7315   (eval $ac_try) 2>&5
   7316   ac_status=$?
   7317   echo "$as_me:7317: \$? = $ac_status" >&5
   7318   (exit $ac_status); }; }; then
   7319   ac_cv_lib_dnet_dnet_ntoa=yes
   7320 else
   7321   echo "$as_me: failed program was:" >&5
   7322 cat conftest.$ac_ext >&5
   7323 ac_cv_lib_dnet_dnet_ntoa=no
   7324 fi
   7325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7326 LIBS=$ac_check_lib_save_LIBS
   7327 fi
   7328 echo "$as_me:7328: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
   7329 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
   7330 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
   7331   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
   7332 fi
   7333 
   7334     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
   7335       echo "$as_me:7335: checking for dnet_ntoa in -ldnet_stub" >&5
   7336 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
   7337 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
   7338   echo $ECHO_N "(cached) $ECHO_C" >&6
   7339 else
   7340   ac_check_lib_save_LIBS=$LIBS
   7341 LIBS="-ldnet_stub  $LIBS"
   7342 cat >conftest.$ac_ext <<_ACEOF
   7343 #line 7343 "configure"
   7344 #include "confdefs.h"
   7345 
   7346 /* Override any gcc2 internal prototype to avoid an error.  */
   7347 #ifdef __cplusplus
   7348 extern "C"
   7349 #endif
   7350 /* We use char because int might match the return type of a gcc2
   7351    builtin and then its argument prototype would still apply.  */
   7352 char dnet_ntoa ();
   7353 int
   7354 main ()
   7355 {
   7356 dnet_ntoa ();
   7357   ;
   7358   return 0;
   7359 }
   7360 _ACEOF
   7361 rm -f conftest.$ac_objext conftest$ac_exeext
   7362 if { (eval echo "$as_me:7362: \"$ac_link\"") >&5
   7363   (eval $ac_link) 2>&5
   7364   ac_status=$?
   7365   echo "$as_me:7365: \$? = $ac_status" >&5
   7366   (exit $ac_status); } &&
   7367          { ac_try='test -s conftest$ac_exeext'
   7368   { (eval echo "$as_me:7368: \"$ac_try\"") >&5
   7369   (eval $ac_try) 2>&5
   7370   ac_status=$?
   7371   echo "$as_me:7371: \$? = $ac_status" >&5
   7372   (exit $ac_status); }; }; then
   7373   ac_cv_lib_dnet_stub_dnet_ntoa=yes
   7374 else
   7375   echo "$as_me: failed program was:" >&5
   7376 cat conftest.$ac_ext >&5
   7377 ac_cv_lib_dnet_stub_dnet_ntoa=no
   7378 fi
   7379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7380 LIBS=$ac_check_lib_save_LIBS
   7381 fi
   7382 echo "$as_me:7382: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
   7383 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
   7384 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
   7385   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
   7386 fi
   7387 
   7388     fi
   7389 fi
   7390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7391     LIBS="$ac_xsave_LIBS"
   7392 
   7393     # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
   7394     # to get the SysV transport functions.
   7395     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
   7396     # needs -lnsl.
   7397     # The nsl library prevents programs from opening the X display
   7398     # on Irix 5.2, according to T.E. Dickey.
   7399     # The functions gethostbyname, getservbyname, and inet_addr are
   7400     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
   7401     echo "$as_me:7401: checking for gethostbyname" >&5
   7402 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
   7403 if test "${ac_cv_func_gethostbyname+set}" = set; then
   7404   echo $ECHO_N "(cached) $ECHO_C" >&6
   7405 else
   7406   cat >conftest.$ac_ext <<_ACEOF
   7407 #line 7407 "configure"
   7408 #include "confdefs.h"
   7409 /* System header to define __stub macros and hopefully few prototypes,
   7410     which can conflict with char gethostbyname (); below.  */
   7411 #include <assert.h>
   7412 /* Override any gcc2 internal prototype to avoid an error.  */
   7413 #ifdef __cplusplus
   7414 extern "C"
   7415 #endif
   7416 /* We use char because int might match the return type of a gcc2
   7417    builtin and then its argument prototype would still apply.  */
   7418 char gethostbyname ();
   7419 char (*f) ();
   7420 
   7421 int
   7422 main ()
   7423 {
   7424 /* The GNU C library defines this for functions which it implements
   7425     to always fail with ENOSYS.  Some functions are actually named
   7426     something starting with __ and the normal name is an alias.  */
   7427 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
   7428 choke me
   7429 #else
   7430 f = gethostbyname;
   7431 #endif
   7432 
   7433   ;
   7434   return 0;
   7435 }
   7436 _ACEOF
   7437 rm -f conftest.$ac_objext conftest$ac_exeext
   7438 if { (eval echo "$as_me:7438: \"$ac_link\"") >&5
   7439   (eval $ac_link) 2>&5
   7440   ac_status=$?
   7441   echo "$as_me:7441: \$? = $ac_status" >&5
   7442   (exit $ac_status); } &&
   7443          { ac_try='test -s conftest$ac_exeext'
   7444   { (eval echo "$as_me:7444: \"$ac_try\"") >&5
   7445   (eval $ac_try) 2>&5
   7446   ac_status=$?
   7447   echo "$as_me:7447: \$? = $ac_status" >&5
   7448   (exit $ac_status); }; }; then
   7449   ac_cv_func_gethostbyname=yes
   7450 else
   7451   echo "$as_me: failed program was:" >&5
   7452 cat conftest.$ac_ext >&5
   7453 ac_cv_func_gethostbyname=no
   7454 fi
   7455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7456 fi
   7457 echo "$as_me:7457: result: $ac_cv_func_gethostbyname" >&5
   7458 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
   7459 
   7460     if test $ac_cv_func_gethostbyname = no; then
   7461       echo "$as_me:7461: checking for gethostbyname in -lnsl" >&5
   7462 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
   7463 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
   7464   echo $ECHO_N "(cached) $ECHO_C" >&6
   7465 else
   7466   ac_check_lib_save_LIBS=$LIBS
   7467 LIBS="-lnsl  $LIBS"
   7468 cat >conftest.$ac_ext <<_ACEOF
   7469 #line 7469 "configure"
   7470 #include "confdefs.h"
   7471 
   7472 /* Override any gcc2 internal prototype to avoid an error.  */
   7473 #ifdef __cplusplus
   7474 extern "C"
   7475 #endif
   7476 /* We use char because int might match the return type of a gcc2
   7477    builtin and then its argument prototype would still apply.  */
   7478 char gethostbyname ();
   7479 int
   7480 main ()
   7481 {
   7482 gethostbyname ();
   7483   ;
   7484   return 0;
   7485 }
   7486 _ACEOF
   7487 rm -f conftest.$ac_objext conftest$ac_exeext
   7488 if { (eval echo "$as_me:7488: \"$ac_link\"") >&5
   7489   (eval $ac_link) 2>&5
   7490   ac_status=$?
   7491   echo "$as_me:7491: \$? = $ac_status" >&5
   7492   (exit $ac_status); } &&
   7493          { ac_try='test -s conftest$ac_exeext'
   7494   { (eval echo "$as_me:7494: \"$ac_try\"") >&5
   7495   (eval $ac_try) 2>&5
   7496   ac_status=$?
   7497   echo "$as_me:7497: \$? = $ac_status" >&5
   7498   (exit $ac_status); }; }; then
   7499   ac_cv_lib_nsl_gethostbyname=yes
   7500 else
   7501   echo "$as_me: failed program was:" >&5
   7502 cat conftest.$ac_ext >&5
   7503 ac_cv_lib_nsl_gethostbyname=no
   7504 fi
   7505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7506 LIBS=$ac_check_lib_save_LIBS
   7507 fi
   7508 echo "$as_me:7508: result: $ac_cv_lib_nsl_gethostbyname" >&5
   7509 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
   7510 if test $ac_cv_lib_nsl_gethostbyname = yes; then
   7511   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
   7512 fi
   7513 
   7514       if test $ac_cv_lib_nsl_gethostbyname = no; then
   7515         echo "$as_me:7515: checking for gethostbyname in -lbsd" >&5
   7516 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
   7517 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
   7518   echo $ECHO_N "(cached) $ECHO_C" >&6
   7519 else
   7520   ac_check_lib_save_LIBS=$LIBS
   7521 LIBS="-lbsd  $LIBS"
   7522 cat >conftest.$ac_ext <<_ACEOF
   7523 #line 7523 "configure"
   7524 #include "confdefs.h"
   7525 
   7526 /* Override any gcc2 internal prototype to avoid an error.  */
   7527 #ifdef __cplusplus
   7528 extern "C"
   7529 #endif
   7530 /* We use char because int might match the return type of a gcc2
   7531    builtin and then its argument prototype would still apply.  */
   7532 char gethostbyname ();
   7533 int
   7534 main ()
   7535 {
   7536 gethostbyname ();
   7537   ;
   7538   return 0;
   7539 }
   7540 _ACEOF
   7541 rm -f conftest.$ac_objext conftest$ac_exeext
   7542 if { (eval echo "$as_me:7542: \"$ac_link\"") >&5
   7543   (eval $ac_link) 2>&5
   7544   ac_status=$?
   7545   echo "$as_me:7545: \$? = $ac_status" >&5
   7546   (exit $ac_status); } &&
   7547          { ac_try='test -s conftest$ac_exeext'
   7548   { (eval echo "$as_me:7548: \"$ac_try\"") >&5
   7549   (eval $ac_try) 2>&5
   7550   ac_status=$?
   7551   echo "$as_me:7551: \$? = $ac_status" >&5
   7552   (exit $ac_status); }; }; then
   7553   ac_cv_lib_bsd_gethostbyname=yes
   7554 else
   7555   echo "$as_me: failed program was:" >&5
   7556 cat conftest.$ac_ext >&5
   7557 ac_cv_lib_bsd_gethostbyname=no
   7558 fi
   7559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7560 LIBS=$ac_check_lib_save_LIBS
   7561 fi
   7562 echo "$as_me:7562: result: $ac_cv_lib_bsd_gethostbyname" >&5
   7563 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
   7564 if test $ac_cv_lib_bsd_gethostbyname = yes; then
   7565   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
   7566 fi
   7567 
   7568       fi
   7569     fi
   7570 
   7571     # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
   7572     # socket/setsockopt and other routines are undefined under SCO ODT
   7573     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
   7574     # on later versions), says Simon Leinen: it contains gethostby*
   7575     # variants that don't use the nameserver (or something).  -lsocket
   7576     # must be given before -lnsl if both are needed.  We assume that
   7577     # if connect needs -lnsl, so does gethostbyname.
   7578     echo "$as_me:7578: checking for connect" >&5
   7579 echo $ECHO_N "checking for connect... $ECHO_C" >&6
   7580 if test "${ac_cv_func_connect+set}" = set; then
   7581   echo $ECHO_N "(cached) $ECHO_C" >&6
   7582 else
   7583   cat >conftest.$ac_ext <<_ACEOF
   7584 #line 7584 "configure"
   7585 #include "confdefs.h"
   7586 /* System header to define __stub macros and hopefully few prototypes,
   7587     which can conflict with char connect (); below.  */
   7588 #include <assert.h>
   7589 /* Override any gcc2 internal prototype to avoid an error.  */
   7590 #ifdef __cplusplus
   7591 extern "C"
   7592 #endif
   7593 /* We use char because int might match the return type of a gcc2
   7594    builtin and then its argument prototype would still apply.  */
   7595 char connect ();
   7596 char (*f) ();
   7597 
   7598 int
   7599 main ()
   7600 {
   7601 /* The GNU C library defines this for functions which it implements
   7602     to always fail with ENOSYS.  Some functions are actually named
   7603     something starting with __ and the normal name is an alias.  */
   7604 #if defined (__stub_connect) || defined (__stub___connect)
   7605 choke me
   7606 #else
   7607 f = connect;
   7608 #endif
   7609 
   7610   ;
   7611   return 0;
   7612 }
   7613 _ACEOF
   7614 rm -f conftest.$ac_objext conftest$ac_exeext
   7615 if { (eval echo "$as_me:7615: \"$ac_link\"") >&5
   7616   (eval $ac_link) 2>&5
   7617   ac_status=$?
   7618   echo "$as_me:7618: \$? = $ac_status" >&5
   7619   (exit $ac_status); } &&
   7620          { ac_try='test -s conftest$ac_exeext'
   7621   { (eval echo "$as_me:7621: \"$ac_try\"") >&5
   7622   (eval $ac_try) 2>&5
   7623   ac_status=$?
   7624   echo "$as_me:7624: \$? = $ac_status" >&5
   7625   (exit $ac_status); }; }; then
   7626   ac_cv_func_connect=yes
   7627 else
   7628   echo "$as_me: failed program was:" >&5
   7629 cat conftest.$ac_ext >&5
   7630 ac_cv_func_connect=no
   7631 fi
   7632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7633 fi
   7634 echo "$as_me:7634: result: $ac_cv_func_connect" >&5
   7635 echo "${ECHO_T}$ac_cv_func_connect" >&6
   7636 
   7637     if test $ac_cv_func_connect = no; then
   7638       echo "$as_me:7638: checking for connect in -lsocket" >&5
   7639 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
   7640 if test "${ac_cv_lib_socket_connect+set}" = set; then
   7641   echo $ECHO_N "(cached) $ECHO_C" >&6
   7642 else
   7643   ac_check_lib_save_LIBS=$LIBS
   7644 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
   7645 cat >conftest.$ac_ext <<_ACEOF
   7646 #line 7646 "configure"
   7647 #include "confdefs.h"
   7648 
   7649 /* Override any gcc2 internal prototype to avoid an error.  */
   7650 #ifdef __cplusplus
   7651 extern "C"
   7652 #endif
   7653 /* We use char because int might match the return type of a gcc2
   7654    builtin and then its argument prototype would still apply.  */
   7655 char connect ();
   7656 int
   7657 main ()
   7658 {
   7659 connect ();
   7660   ;
   7661   return 0;
   7662 }
   7663 _ACEOF
   7664 rm -f conftest.$ac_objext conftest$ac_exeext
   7665 if { (eval echo "$as_me:7665: \"$ac_link\"") >&5
   7666   (eval $ac_link) 2>&5
   7667   ac_status=$?
   7668   echo "$as_me:7668: \$? = $ac_status" >&5
   7669   (exit $ac_status); } &&
   7670          { ac_try='test -s conftest$ac_exeext'
   7671   { (eval echo "$as_me:7671: \"$ac_try\"") >&5
   7672   (eval $ac_try) 2>&5
   7673   ac_status=$?
   7674   echo "$as_me:7674: \$? = $ac_status" >&5
   7675   (exit $ac_status); }; }; then
   7676   ac_cv_lib_socket_connect=yes
   7677 else
   7678   echo "$as_me: failed program was:" >&5
   7679 cat conftest.$ac_ext >&5
   7680 ac_cv_lib_socket_connect=no
   7681 fi
   7682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7683 LIBS=$ac_check_lib_save_LIBS
   7684 fi
   7685 echo "$as_me:7685: result: $ac_cv_lib_socket_connect" >&5
   7686 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
   7687 if test $ac_cv_lib_socket_connect = yes; then
   7688   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
   7689 fi
   7690 
   7691     fi
   7692 
   7693     # Guillermo Gomez says -lposix is necessary on A/UX.
   7694     echo "$as_me:7694: checking for remove" >&5
   7695 echo $ECHO_N "checking for remove... $ECHO_C" >&6
   7696 if test "${ac_cv_func_remove+set}" = set; then
   7697   echo $ECHO_N "(cached) $ECHO_C" >&6
   7698 else
   7699   cat >conftest.$ac_ext <<_ACEOF
   7700 #line 7700 "configure"
   7701 #include "confdefs.h"
   7702 /* System header to define __stub macros and hopefully few prototypes,
   7703     which can conflict with char remove (); below.  */
   7704 #include <assert.h>
   7705 /* Override any gcc2 internal prototype to avoid an error.  */
   7706 #ifdef __cplusplus
   7707 extern "C"
   7708 #endif
   7709 /* We use char because int might match the return type of a gcc2
   7710    builtin and then its argument prototype would still apply.  */
   7711 char remove ();
   7712 char (*f) ();
   7713 
   7714 int
   7715 main ()
   7716 {
   7717 /* The GNU C library defines this for functions which it implements
   7718     to always fail with ENOSYS.  Some functions are actually named
   7719     something starting with __ and the normal name is an alias.  */
   7720 #if defined (__stub_remove) || defined (__stub___remove)
   7721 choke me
   7722 #else
   7723 f = remove;
   7724 #endif
   7725 
   7726   ;
   7727   return 0;
   7728 }
   7729 _ACEOF
   7730 rm -f conftest.$ac_objext conftest$ac_exeext
   7731 if { (eval echo "$as_me:7731: \"$ac_link\"") >&5
   7732   (eval $ac_link) 2>&5
   7733   ac_status=$?
   7734   echo "$as_me:7734: \$? = $ac_status" >&5
   7735   (exit $ac_status); } &&
   7736          { ac_try='test -s conftest$ac_exeext'
   7737   { (eval echo "$as_me:7737: \"$ac_try\"") >&5
   7738   (eval $ac_try) 2>&5
   7739   ac_status=$?
   7740   echo "$as_me:7740: \$? = $ac_status" >&5
   7741   (exit $ac_status); }; }; then
   7742   ac_cv_func_remove=yes
   7743 else
   7744   echo "$as_me: failed program was:" >&5
   7745 cat conftest.$ac_ext >&5
   7746 ac_cv_func_remove=no
   7747 fi
   7748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7749 fi
   7750 echo "$as_me:7750: result: $ac_cv_func_remove" >&5
   7751 echo "${ECHO_T}$ac_cv_func_remove" >&6
   7752 
   7753     if test $ac_cv_func_remove = no; then
   7754       echo "$as_me:7754: checking for remove in -lposix" >&5
   7755 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
   7756 if test "${ac_cv_lib_posix_remove+set}" = set; then
   7757   echo $ECHO_N "(cached) $ECHO_C" >&6
   7758 else
   7759   ac_check_lib_save_LIBS=$LIBS
   7760 LIBS="-lposix  $LIBS"
   7761 cat >conftest.$ac_ext <<_ACEOF
   7762 #line 7762 "configure"
   7763 #include "confdefs.h"
   7764 
   7765 /* Override any gcc2 internal prototype to avoid an error.  */
   7766 #ifdef __cplusplus
   7767 extern "C"
   7768 #endif
   7769 /* We use char because int might match the return type of a gcc2
   7770    builtin and then its argument prototype would still apply.  */
   7771 char remove ();
   7772 int
   7773 main ()
   7774 {
   7775 remove ();
   7776   ;
   7777   return 0;
   7778 }
   7779 _ACEOF
   7780 rm -f conftest.$ac_objext conftest$ac_exeext
   7781 if { (eval echo "$as_me:7781: \"$ac_link\"") >&5
   7782   (eval $ac_link) 2>&5
   7783   ac_status=$?
   7784   echo "$as_me:7784: \$? = $ac_status" >&5
   7785   (exit $ac_status); } &&
   7786          { ac_try='test -s conftest$ac_exeext'
   7787   { (eval echo "$as_me:7787: \"$ac_try\"") >&5
   7788   (eval $ac_try) 2>&5
   7789   ac_status=$?
   7790   echo "$as_me:7790: \$? = $ac_status" >&5
   7791   (exit $ac_status); }; }; then
   7792   ac_cv_lib_posix_remove=yes
   7793 else
   7794   echo "$as_me: failed program was:" >&5
   7795 cat conftest.$ac_ext >&5
   7796 ac_cv_lib_posix_remove=no
   7797 fi
   7798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7799 LIBS=$ac_check_lib_save_LIBS
   7800 fi
   7801 echo "$as_me:7801: result: $ac_cv_lib_posix_remove" >&5
   7802 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
   7803 if test $ac_cv_lib_posix_remove = yes; then
   7804   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
   7805 fi
   7806 
   7807     fi
   7808 
   7809     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
   7810     echo "$as_me:7810: checking for shmat" >&5
   7811 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
   7812 if test "${ac_cv_func_shmat+set}" = set; then
   7813   echo $ECHO_N "(cached) $ECHO_C" >&6
   7814 else
   7815   cat >conftest.$ac_ext <<_ACEOF
   7816 #line 7816 "configure"
   7817 #include "confdefs.h"
   7818 /* System header to define __stub macros and hopefully few prototypes,
   7819     which can conflict with char shmat (); below.  */
   7820 #include <assert.h>
   7821 /* Override any gcc2 internal prototype to avoid an error.  */
   7822 #ifdef __cplusplus
   7823 extern "C"
   7824 #endif
   7825 /* We use char because int might match the return type of a gcc2
   7826    builtin and then its argument prototype would still apply.  */
   7827 char shmat ();
   7828 char (*f) ();
   7829 
   7830 int
   7831 main ()
   7832 {
   7833 /* The GNU C library defines this for functions which it implements
   7834     to always fail with ENOSYS.  Some functions are actually named
   7835     something starting with __ and the normal name is an alias.  */
   7836 #if defined (__stub_shmat) || defined (__stub___shmat)
   7837 choke me
   7838 #else
   7839 f = shmat;
   7840 #endif
   7841 
   7842   ;
   7843   return 0;
   7844 }
   7845 _ACEOF
   7846 rm -f conftest.$ac_objext conftest$ac_exeext
   7847 if { (eval echo "$as_me:7847: \"$ac_link\"") >&5
   7848   (eval $ac_link) 2>&5
   7849   ac_status=$?
   7850   echo "$as_me:7850: \$? = $ac_status" >&5
   7851   (exit $ac_status); } &&
   7852          { ac_try='test -s conftest$ac_exeext'
   7853   { (eval echo "$as_me:7853: \"$ac_try\"") >&5
   7854   (eval $ac_try) 2>&5
   7855   ac_status=$?
   7856   echo "$as_me:7856: \$? = $ac_status" >&5
   7857   (exit $ac_status); }; }; then
   7858   ac_cv_func_shmat=yes
   7859 else
   7860   echo "$as_me: failed program was:" >&5
   7861 cat conftest.$ac_ext >&5
   7862 ac_cv_func_shmat=no
   7863 fi
   7864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7865 fi
   7866 echo "$as_me:7866: result: $ac_cv_func_shmat" >&5
   7867 echo "${ECHO_T}$ac_cv_func_shmat" >&6
   7868 
   7869     if test $ac_cv_func_shmat = no; then
   7870       echo "$as_me:7870: checking for shmat in -lipc" >&5
   7871 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
   7872 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
   7873   echo $ECHO_N "(cached) $ECHO_C" >&6
   7874 else
   7875   ac_check_lib_save_LIBS=$LIBS
   7876 LIBS="-lipc  $LIBS"
   7877 cat >conftest.$ac_ext <<_ACEOF
   7878 #line 7878 "configure"
   7879 #include "confdefs.h"
   7880 
   7881 /* Override any gcc2 internal prototype to avoid an error.  */
   7882 #ifdef __cplusplus
   7883 extern "C"
   7884 #endif
   7885 /* We use char because int might match the return type of a gcc2
   7886    builtin and then its argument prototype would still apply.  */
   7887 char shmat ();
   7888 int
   7889 main ()
   7890 {
   7891 shmat ();
   7892   ;
   7893   return 0;
   7894 }
   7895 _ACEOF
   7896 rm -f conftest.$ac_objext conftest$ac_exeext
   7897 if { (eval echo "$as_me:7897: \"$ac_link\"") >&5
   7898   (eval $ac_link) 2>&5
   7899   ac_status=$?
   7900   echo "$as_me:7900: \$? = $ac_status" >&5
   7901   (exit $ac_status); } &&
   7902          { ac_try='test -s conftest$ac_exeext'
   7903   { (eval echo "$as_me:7903: \"$ac_try\"") >&5
   7904   (eval $ac_try) 2>&5
   7905   ac_status=$?
   7906   echo "$as_me:7906: \$? = $ac_status" >&5
   7907   (exit $ac_status); }; }; then
   7908   ac_cv_lib_ipc_shmat=yes
   7909 else
   7910   echo "$as_me: failed program was:" >&5
   7911 cat conftest.$ac_ext >&5
   7912 ac_cv_lib_ipc_shmat=no
   7913 fi
   7914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7915 LIBS=$ac_check_lib_save_LIBS
   7916 fi
   7917 echo "$as_me:7917: result: $ac_cv_lib_ipc_shmat" >&5
   7918 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
   7919 if test $ac_cv_lib_ipc_shmat = yes; then
   7920   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
   7921 fi
   7922 
   7923     fi
   7924   fi
   7925 
   7926   # Check for libraries that X11R6 Xt/Xaw programs need.
   7927   ac_save_LDFLAGS=$LDFLAGS
   7928   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
   7929   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
   7930   # check for ICE first), but we must link in the order -lSM -lICE or
   7931   # we get undefined symbols.  So assume we have SM if we have ICE.
   7932   # These have to be linked with before -lX11, unlike the other
   7933   # libraries we check for below, so use a different variable.
   7934   # John Interrante, Karl Berry
   7935   echo "$as_me:7935: checking for IceConnectionNumber in -lICE" >&5
   7936 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
   7937 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
   7938   echo $ECHO_N "(cached) $ECHO_C" >&6
   7939 else
   7940   ac_check_lib_save_LIBS=$LIBS
   7941 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
   7942 cat >conftest.$ac_ext <<_ACEOF
   7943 #line 7943 "configure"
   7944 #include "confdefs.h"
   7945 
   7946 /* Override any gcc2 internal prototype to avoid an error.  */
   7947 #ifdef __cplusplus
   7948 extern "C"
   7949 #endif
   7950 /* We use char because int might match the return type of a gcc2
   7951    builtin and then its argument prototype would still apply.  */
   7952 char IceConnectionNumber ();
   7953 int
   7954 main ()
   7955 {
   7956 IceConnectionNumber ();
   7957   ;
   7958   return 0;
   7959 }
   7960 _ACEOF
   7961 rm -f conftest.$ac_objext conftest$ac_exeext
   7962 if { (eval echo "$as_me:7962: \"$ac_link\"") >&5
   7963   (eval $ac_link) 2>&5
   7964   ac_status=$?
   7965   echo "$as_me:7965: \$? = $ac_status" >&5
   7966   (exit $ac_status); } &&
   7967          { ac_try='test -s conftest$ac_exeext'
   7968   { (eval echo "$as_me:7968: \"$ac_try\"") >&5
   7969   (eval $ac_try) 2>&5
   7970   ac_status=$?
   7971   echo "$as_me:7971: \$? = $ac_status" >&5
   7972   (exit $ac_status); }; }; then
   7973   ac_cv_lib_ICE_IceConnectionNumber=yes
   7974 else
   7975   echo "$as_me: failed program was:" >&5
   7976 cat conftest.$ac_ext >&5
   7977 ac_cv_lib_ICE_IceConnectionNumber=no
   7978 fi
   7979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7980 LIBS=$ac_check_lib_save_LIBS
   7981 fi
   7982 echo "$as_me:7982: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
   7983 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
   7984 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
   7985   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
   7986 fi
   7987 
   7988   LDFLAGS=$ac_save_LDFLAGS
   7989 
   7990 fi
   7991 
   7992 # SYSTEM_NAME=`echo "$cf_cv_system_name"|tr ' ' -`
   7993 
   7994 cf_have_X_LIBS=no
   7995 
   7996 LDFLAGS="$X_LIBS $LDFLAGS"
   7997 
   7998 test -n "$verbose" && echo "	checking additions to CFLAGS" 1>&6
   7999 
   8000 echo "${as_me-configure}:8000: testing checking additions to CFLAGS ..." 1>&5
   8001 
   8002 cf_check_cflags="$CFLAGS"
   8003 cf_check_cppflags="$CPPFLAGS"
   8004 
   8005 cf_fix_cppflags=no
   8006 cf_new_cflags=
   8007 cf_new_cppflags=
   8008 cf_new_extra_cppflags=
   8009 
   8010 for cf_add_cflags in $X_CFLAGS
   8011 do
   8012 case $cf_fix_cppflags in
   8013 no)
   8014 	case $cf_add_cflags in #(vi
   8015 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   8016 		case $cf_add_cflags in
   8017 		-D*)
   8018 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   8019 
   8020 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   8021 			&& test -z "${cf_tst_cflags}" \
   8022 			&& cf_fix_cppflags=yes
   8023 
   8024 			if test $cf_fix_cppflags = yes ; then
   8025 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8026 				continue
   8027 			elif test "${cf_tst_cflags}" = "\"'" ; then
   8028 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8029 				continue
   8030 			fi
   8031 			;;
   8032 		esac
   8033 		case "$CPPFLAGS" in
   8034 		*$cf_add_cflags) #(vi
   8035 			;;
   8036 		*) #(vi
   8037 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   8038 			;;
   8039 		esac
   8040 		;;
   8041 	*)
   8042 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   8043 		;;
   8044 	esac
   8045 	;;
   8046 yes)
   8047 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8048 
   8049 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   8050 
   8051 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   8052 	&& test -z "${cf_tst_cflags}" \
   8053 	&& cf_fix_cppflags=no
   8054 	;;
   8055 esac
   8056 done
   8057 
   8058 if test -n "$cf_new_cflags" ; then
   8059 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   8060 
   8061 echo "${as_me-configure}:8061: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   8062 
   8063 	CFLAGS="$CFLAGS $cf_new_cflags"
   8064 fi
   8065 
   8066 if test -n "$cf_new_cppflags" ; then
   8067 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   8068 
   8069 echo "${as_me-configure}:8069: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   8070 
   8071 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   8072 fi
   8073 
   8074 if test -n "$cf_new_extra_cppflags" ; then
   8075 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   8076 
   8077 echo "${as_me-configure}:8077: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   8078 
   8079 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   8080 fi
   8081 
   8082 if test "$cf_check_cflags" != "$CFLAGS" ; then
   8083 cat >conftest.$ac_ext <<_ACEOF
   8084 #line 8084 "configure"
   8085 #include "confdefs.h"
   8086 #include <stdio.h>
   8087 int
   8088 main ()
   8089 {
   8090 printf("Hello world");
   8091   ;
   8092   return 0;
   8093 }
   8094 _ACEOF
   8095 rm -f conftest.$ac_objext conftest$ac_exeext
   8096 if { (eval echo "$as_me:8096: \"$ac_link\"") >&5
   8097   (eval $ac_link) 2>&5
   8098   ac_status=$?
   8099   echo "$as_me:8099: \$? = $ac_status" >&5
   8100   (exit $ac_status); } &&
   8101          { ac_try='test -s conftest$ac_exeext'
   8102   { (eval echo "$as_me:8102: \"$ac_try\"") >&5
   8103   (eval $ac_try) 2>&5
   8104   ac_status=$?
   8105   echo "$as_me:8105: \$? = $ac_status" >&5
   8106   (exit $ac_status); }; }; then
   8107   :
   8108 else
   8109   echo "$as_me: failed program was:" >&5
   8110 cat conftest.$ac_ext >&5
   8111 test -n "$verbose" && echo "	test-compile failed.  Undoing change to \$CFLAGS" 1>&6
   8112 
   8113 echo "${as_me-configure}:8113: testing test-compile failed.  Undoing change to \$CFLAGS ..." 1>&5
   8114 
   8115 	 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
   8116 		 test -n "$verbose" && echo "	but keeping change to \$CPPFLAGS" 1>&6
   8117 
   8118 echo "${as_me-configure}:8118: testing but keeping change to \$CPPFLAGS ..." 1>&5
   8119 
   8120 	 fi
   8121 	 CFLAGS="$cf_check_flags"
   8122 fi
   8123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8124 fi
   8125 
   8126 echo "$as_me:8126: checking for XOpenDisplay" >&5
   8127 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
   8128 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
   8129   echo $ECHO_N "(cached) $ECHO_C" >&6
   8130 else
   8131   cat >conftest.$ac_ext <<_ACEOF
   8132 #line 8132 "configure"
   8133 #include "confdefs.h"
   8134 /* System header to define __stub macros and hopefully few prototypes,
   8135     which can conflict with char XOpenDisplay (); below.  */
   8136 #include <assert.h>
   8137 /* Override any gcc2 internal prototype to avoid an error.  */
   8138 #ifdef __cplusplus
   8139 extern "C"
   8140 #endif
   8141 /* We use char because int might match the return type of a gcc2
   8142    builtin and then its argument prototype would still apply.  */
   8143 char XOpenDisplay ();
   8144 char (*f) ();
   8145 
   8146 int
   8147 main ()
   8148 {
   8149 /* The GNU C library defines this for functions which it implements
   8150     to always fail with ENOSYS.  Some functions are actually named
   8151     something starting with __ and the normal name is an alias.  */
   8152 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
   8153 choke me
   8154 #else
   8155 f = XOpenDisplay;
   8156 #endif
   8157 
   8158   ;
   8159   return 0;
   8160 }
   8161 _ACEOF
   8162 rm -f conftest.$ac_objext conftest$ac_exeext
   8163 if { (eval echo "$as_me:8163: \"$ac_link\"") >&5
   8164   (eval $ac_link) 2>&5
   8165   ac_status=$?
   8166   echo "$as_me:8166: \$? = $ac_status" >&5
   8167   (exit $ac_status); } &&
   8168          { ac_try='test -s conftest$ac_exeext'
   8169   { (eval echo "$as_me:8169: \"$ac_try\"") >&5
   8170   (eval $ac_try) 2>&5
   8171   ac_status=$?
   8172   echo "$as_me:8172: \$? = $ac_status" >&5
   8173   (exit $ac_status); }; }; then
   8174   ac_cv_func_XOpenDisplay=yes
   8175 else
   8176   echo "$as_me: failed program was:" >&5
   8177 cat conftest.$ac_ext >&5
   8178 ac_cv_func_XOpenDisplay=no
   8179 fi
   8180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8181 fi
   8182 echo "$as_me:8182: result: $ac_cv_func_XOpenDisplay" >&5
   8183 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
   8184 if test $ac_cv_func_XOpenDisplay = yes; then
   8185   :
   8186 else
   8187 
   8188 echo "$as_me:8188: checking for XOpenDisplay in -lX11" >&5
   8189 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
   8190 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
   8191   echo $ECHO_N "(cached) $ECHO_C" >&6
   8192 else
   8193   ac_check_lib_save_LIBS=$LIBS
   8194 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
   8195 cat >conftest.$ac_ext <<_ACEOF
   8196 #line 8196 "configure"
   8197 #include "confdefs.h"
   8198 
   8199 /* Override any gcc2 internal prototype to avoid an error.  */
   8200 #ifdef __cplusplus
   8201 extern "C"
   8202 #endif
   8203 /* We use char because int might match the return type of a gcc2
   8204    builtin and then its argument prototype would still apply.  */
   8205 char XOpenDisplay ();
   8206 int
   8207 main ()
   8208 {
   8209 XOpenDisplay ();
   8210   ;
   8211   return 0;
   8212 }
   8213 _ACEOF
   8214 rm -f conftest.$ac_objext conftest$ac_exeext
   8215 if { (eval echo "$as_me:8215: \"$ac_link\"") >&5
   8216   (eval $ac_link) 2>&5
   8217   ac_status=$?
   8218   echo "$as_me:8218: \$? = $ac_status" >&5
   8219   (exit $ac_status); } &&
   8220          { ac_try='test -s conftest$ac_exeext'
   8221   { (eval echo "$as_me:8221: \"$ac_try\"") >&5
   8222   (eval $ac_try) 2>&5
   8223   ac_status=$?
   8224   echo "$as_me:8224: \$? = $ac_status" >&5
   8225   (exit $ac_status); }; }; then
   8226   ac_cv_lib_X11_XOpenDisplay=yes
   8227 else
   8228   echo "$as_me: failed program was:" >&5
   8229 cat conftest.$ac_ext >&5
   8230 ac_cv_lib_X11_XOpenDisplay=no
   8231 fi
   8232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8233 LIBS=$ac_check_lib_save_LIBS
   8234 fi
   8235 echo "$as_me:8235: result: $ac_cv_lib_X11_XOpenDisplay" >&5
   8236 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
   8237 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
   8238   LIBS="-lX11 $LIBS"
   8239 fi
   8240 
   8241 fi
   8242 
   8243 echo "$as_me:8243: checking for XtAppInitialize" >&5
   8244 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
   8245 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
   8246   echo $ECHO_N "(cached) $ECHO_C" >&6
   8247 else
   8248   cat >conftest.$ac_ext <<_ACEOF
   8249 #line 8249 "configure"
   8250 #include "confdefs.h"
   8251 /* System header to define __stub macros and hopefully few prototypes,
   8252     which can conflict with char XtAppInitialize (); below.  */
   8253 #include <assert.h>
   8254 /* Override any gcc2 internal prototype to avoid an error.  */
   8255 #ifdef __cplusplus
   8256 extern "C"
   8257 #endif
   8258 /* We use char because int might match the return type of a gcc2
   8259    builtin and then its argument prototype would still apply.  */
   8260 char XtAppInitialize ();
   8261 char (*f) ();
   8262 
   8263 int
   8264 main ()
   8265 {
   8266 /* The GNU C library defines this for functions which it implements
   8267     to always fail with ENOSYS.  Some functions are actually named
   8268     something starting with __ and the normal name is an alias.  */
   8269 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
   8270 choke me
   8271 #else
   8272 f = XtAppInitialize;
   8273 #endif
   8274 
   8275   ;
   8276   return 0;
   8277 }
   8278 _ACEOF
   8279 rm -f conftest.$ac_objext conftest$ac_exeext
   8280 if { (eval echo "$as_me:8280: \"$ac_link\"") >&5
   8281   (eval $ac_link) 2>&5
   8282   ac_status=$?
   8283   echo "$as_me:8283: \$? = $ac_status" >&5
   8284   (exit $ac_status); } &&
   8285          { ac_try='test -s conftest$ac_exeext'
   8286   { (eval echo "$as_me:8286: \"$ac_try\"") >&5
   8287   (eval $ac_try) 2>&5
   8288   ac_status=$?
   8289   echo "$as_me:8289: \$? = $ac_status" >&5
   8290   (exit $ac_status); }; }; then
   8291   ac_cv_func_XtAppInitialize=yes
   8292 else
   8293   echo "$as_me: failed program was:" >&5
   8294 cat conftest.$ac_ext >&5
   8295 ac_cv_func_XtAppInitialize=no
   8296 fi
   8297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8298 fi
   8299 echo "$as_me:8299: result: $ac_cv_func_XtAppInitialize" >&5
   8300 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
   8301 if test $ac_cv_func_XtAppInitialize = yes; then
   8302   :
   8303 else
   8304 
   8305 echo "$as_me:8305: checking for XtAppInitialize in -lXt" >&5
   8306 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
   8307 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
   8308   echo $ECHO_N "(cached) $ECHO_C" >&6
   8309 else
   8310   ac_check_lib_save_LIBS=$LIBS
   8311 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
   8312 cat >conftest.$ac_ext <<_ACEOF
   8313 #line 8313 "configure"
   8314 #include "confdefs.h"
   8315 
   8316 /* Override any gcc2 internal prototype to avoid an error.  */
   8317 #ifdef __cplusplus
   8318 extern "C"
   8319 #endif
   8320 /* We use char because int might match the return type of a gcc2
   8321    builtin and then its argument prototype would still apply.  */
   8322 char XtAppInitialize ();
   8323 int
   8324 main ()
   8325 {
   8326 XtAppInitialize ();
   8327   ;
   8328   return 0;
   8329 }
   8330 _ACEOF
   8331 rm -f conftest.$ac_objext conftest$ac_exeext
   8332 if { (eval echo "$as_me:8332: \"$ac_link\"") >&5
   8333   (eval $ac_link) 2>&5
   8334   ac_status=$?
   8335   echo "$as_me:8335: \$? = $ac_status" >&5
   8336   (exit $ac_status); } &&
   8337          { ac_try='test -s conftest$ac_exeext'
   8338   { (eval echo "$as_me:8338: \"$ac_try\"") >&5
   8339   (eval $ac_try) 2>&5
   8340   ac_status=$?
   8341   echo "$as_me:8341: \$? = $ac_status" >&5
   8342   (exit $ac_status); }; }; then
   8343   ac_cv_lib_Xt_XtAppInitialize=yes
   8344 else
   8345   echo "$as_me: failed program was:" >&5
   8346 cat conftest.$ac_ext >&5
   8347 ac_cv_lib_Xt_XtAppInitialize=no
   8348 fi
   8349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8350 LIBS=$ac_check_lib_save_LIBS
   8351 fi
   8352 echo "$as_me:8352: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
   8353 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
   8354 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
   8355   cat >>confdefs.h <<\EOF
   8356 #define HAVE_LIBXT 1
   8357 EOF
   8358 
   8359 	 cf_have_X_LIBS=Xt
   8360 	 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
   8361 fi
   8362 
   8363 fi
   8364 
   8365 if test $cf_have_X_LIBS = no ; then
   8366 	{ echo "$as_me:8366: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   8367 test program.  You will have to check and add the proper libraries by hand
   8368 to makefile." >&5
   8369 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   8370 test program.  You will have to check and add the proper libraries by hand
   8371 to makefile." >&2;}
   8372 fi
   8373 
   8374 for ac_header in \
   8375 	X11/DECkeysym.h \
   8376 	X11/Sunkeysym.h \
   8377 	X11/XF86keysym.h \
   8378 	X11/Xpoll.h \
   8379 
   8380 do
   8381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8382 echo "$as_me:8382: checking for $ac_header" >&5
   8383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8385   echo $ECHO_N "(cached) $ECHO_C" >&6
   8386 else
   8387   cat >conftest.$ac_ext <<_ACEOF
   8388 #line 8388 "configure"
   8389 #include "confdefs.h"
   8390 #include <$ac_header>
   8391 _ACEOF
   8392 if { (eval echo "$as_me:8392: \"$ac_cpp conftest.$ac_ext\"") >&5
   8393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   8394   ac_status=$?
   8395   egrep -v '^ *\+' conftest.er1 >conftest.err
   8396   rm -f conftest.er1
   8397   cat conftest.err >&5
   8398   echo "$as_me:8398: \$? = $ac_status" >&5
   8399   (exit $ac_status); } >/dev/null; then
   8400   if test -s conftest.err; then
   8401     ac_cpp_err=$ac_c_preproc_warn_flag
   8402   else
   8403     ac_cpp_err=
   8404   fi
   8405 else
   8406   ac_cpp_err=yes
   8407 fi
   8408 if test -z "$ac_cpp_err"; then
   8409   eval "$as_ac_Header=yes"
   8410 else
   8411   echo "$as_me: failed program was:" >&5
   8412   cat conftest.$ac_ext >&5
   8413   eval "$as_ac_Header=no"
   8414 fi
   8415 rm -f conftest.err conftest.$ac_ext
   8416 fi
   8417 echo "$as_me:8417: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8420   cat >>confdefs.h <<EOF
   8421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8422 EOF
   8423 
   8424 fi
   8425 done
   8426 
   8427 cf_x_athena=${cf_x_athena-Xaw}
   8428 
   8429 echo "$as_me:8429: checking if you want to link with Xaw 3d library" >&5
   8430 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
   8431 withval=
   8432 
   8433 # Check whether --with-Xaw3d or --without-Xaw3d was given.
   8434 if test "${with_Xaw3d+set}" = set; then
   8435   withval="$with_Xaw3d"
   8436 
   8437 fi;
   8438 if test "$withval" = yes ; then
   8439 	cf_x_athena=Xaw3d
   8440 	echo "$as_me:8440: result: yes" >&5
   8441 echo "${ECHO_T}yes" >&6
   8442 else
   8443 	echo "$as_me:8443: result: no" >&5
   8444 echo "${ECHO_T}no" >&6
   8445 fi
   8446 
   8447 echo "$as_me:8447: checking if you want to link with neXT Athena library" >&5
   8448 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
   8449 withval=
   8450 
   8451 # Check whether --with-neXtaw or --without-neXtaw was given.
   8452 if test "${with_neXtaw+set}" = set; then
   8453   withval="$with_neXtaw"
   8454 
   8455 fi;
   8456 if test "$withval" = yes ; then
   8457 	cf_x_athena=neXtaw
   8458 	echo "$as_me:8458: result: yes" >&5
   8459 echo "${ECHO_T}yes" >&6
   8460 else
   8461 	echo "$as_me:8461: result: no" >&5
   8462 echo "${ECHO_T}no" >&6
   8463 fi
   8464 
   8465 echo "$as_me:8465: checking if you want to link with Athena-Plus library" >&5
   8466 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
   8467 withval=
   8468 
   8469 # Check whether --with-XawPlus or --without-XawPlus was given.
   8470 if test "${with_XawPlus+set}" = set; then
   8471   withval="$with_XawPlus"
   8472 
   8473 fi;
   8474 if test "$withval" = yes ; then
   8475 	cf_x_athena=XawPlus
   8476 	echo "$as_me:8476: result: yes" >&5
   8477 echo "${ECHO_T}yes" >&6
   8478 else
   8479 	echo "$as_me:8479: result: no" >&5
   8480 echo "${ECHO_T}no" >&6
   8481 fi
   8482 
   8483 echo "$as_me:8483: checking for XextCreateExtension in -lXext" >&5
   8484 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
   8485 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
   8486   echo $ECHO_N "(cached) $ECHO_C" >&6
   8487 else
   8488   ac_check_lib_save_LIBS=$LIBS
   8489 LIBS="-lXext  $LIBS"
   8490 cat >conftest.$ac_ext <<_ACEOF
   8491 #line 8491 "configure"
   8492 #include "confdefs.h"
   8493 
   8494 /* Override any gcc2 internal prototype to avoid an error.  */
   8495 #ifdef __cplusplus
   8496 extern "C"
   8497 #endif
   8498 /* We use char because int might match the return type of a gcc2
   8499    builtin and then its argument prototype would still apply.  */
   8500 char XextCreateExtension ();
   8501 int
   8502 main ()
   8503 {
   8504 XextCreateExtension ();
   8505   ;
   8506   return 0;
   8507 }
   8508 _ACEOF
   8509 rm -f conftest.$ac_objext conftest$ac_exeext
   8510 if { (eval echo "$as_me:8510: \"$ac_link\"") >&5
   8511   (eval $ac_link) 2>&5
   8512   ac_status=$?
   8513   echo "$as_me:8513: \$? = $ac_status" >&5
   8514   (exit $ac_status); } &&
   8515          { ac_try='test -s conftest$ac_exeext'
   8516   { (eval echo "$as_me:8516: \"$ac_try\"") >&5
   8517   (eval $ac_try) 2>&5
   8518   ac_status=$?
   8519   echo "$as_me:8519: \$? = $ac_status" >&5
   8520   (exit $ac_status); }; }; then
   8521   ac_cv_lib_Xext_XextCreateExtension=yes
   8522 else
   8523   echo "$as_me: failed program was:" >&5
   8524 cat conftest.$ac_ext >&5
   8525 ac_cv_lib_Xext_XextCreateExtension=no
   8526 fi
   8527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8528 LIBS=$ac_check_lib_save_LIBS
   8529 fi
   8530 echo "$as_me:8530: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
   8531 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
   8532 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
   8533   LIBS="-lXext $LIBS"
   8534 fi
   8535 
   8536 cf_x_athena_lib=""
   8537 
   8538 cf_x_athena_root=$cf_x_athena
   8539 cf_x_athena_include=""
   8540 
   8541 for cf_path in default \
   8542 	/usr/contrib/X11R6 \
   8543 	/usr/contrib/X11R5 \
   8544 	/usr/lib/X11R5 \
   8545 	/usr/local
   8546 do
   8547 	if test -z "$cf_x_athena_include" ; then
   8548 		cf_save="$CPPFLAGS"
   8549 		cf_test=X11/$cf_x_athena_root/SimpleMenu.h
   8550 		if test $cf_path != default ; then
   8551 			CPPFLAGS="$cf_save -I$cf_path/include"
   8552 			echo "$as_me:8552: checking for $cf_test in $cf_path" >&5
   8553 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
   8554 		else
   8555 			echo "$as_me:8555: checking for $cf_test" >&5
   8556 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
   8557 		fi
   8558 		cat >conftest.$ac_ext <<_ACEOF
   8559 #line 8559 "configure"
   8560 #include "confdefs.h"
   8561 
   8562 #include <X11/Intrinsic.h>
   8563 #include <$cf_test>
   8564 int
   8565 main ()
   8566 {
   8567 
   8568   ;
   8569   return 0;
   8570 }
   8571 _ACEOF
   8572 rm -f conftest.$ac_objext
   8573 if { (eval echo "$as_me:8573: \"$ac_compile\"") >&5
   8574   (eval $ac_compile) 2>&5
   8575   ac_status=$?
   8576   echo "$as_me:8576: \$? = $ac_status" >&5
   8577   (exit $ac_status); } &&
   8578          { ac_try='test -s conftest.$ac_objext'
   8579   { (eval echo "$as_me:8579: \"$ac_try\"") >&5
   8580   (eval $ac_try) 2>&5
   8581   ac_status=$?
   8582   echo "$as_me:8582: \$? = $ac_status" >&5
   8583   (exit $ac_status); }; }; then
   8584   cf_result=yes
   8585 else
   8586   echo "$as_me: failed program was:" >&5
   8587 cat conftest.$ac_ext >&5
   8588 cf_result=no
   8589 fi
   8590 rm -f conftest.$ac_objext conftest.$ac_ext
   8591 		echo "$as_me:8591: result: $cf_result" >&5
   8592 echo "${ECHO_T}$cf_result" >&6
   8593 		if test "$cf_result" = yes ; then
   8594 			cf_x_athena_include=$cf_path
   8595 			break
   8596 		else
   8597 			CPPFLAGS="$cf_save"
   8598 		fi
   8599 	fi
   8600 done
   8601 
   8602 if test -z "$cf_x_athena_include" ; then
   8603 	{ echo "$as_me:8603: WARNING: Unable to successfully find Athena header files with test program" >&5
   8604 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
   8605 elif test "$cf_x_athena_include" != default ; then
   8606 	CPPFLAGS="$CPPFLAGS -I$cf_x_athena_include"
   8607 fi
   8608 
   8609 cf_x_athena_root=$cf_x_athena
   8610 cf_x_athena_lib=""
   8611 
   8612 for cf_path in default \
   8613 	/usr/contrib/X11R6 \
   8614 	/usr/contrib/X11R5 \
   8615 	/usr/lib/X11R5 \
   8616 	/usr/local
   8617 do
   8618 	for cf_lib in \
   8619 		"-l$cf_x_athena_root -lXmu" \
   8620 		"-l$cf_x_athena_root -lXpm -lXmu" \
   8621 		"-l${cf_x_athena_root}_s -lXmu_s"
   8622 	do
   8623 		if test -z "$cf_x_athena_lib" ; then
   8624 			cf_save="$LIBS"
   8625 			cf_test=XawSimpleMenuAddGlobalActions
   8626 			if test $cf_path != default ; then
   8627 				LIBS="-L$cf_path/lib $cf_lib $LIBS"
   8628 				echo "$as_me:8628: checking for $cf_lib in $cf_path" >&5
   8629 echo $ECHO_N "checking for $cf_lib in $cf_path... $ECHO_C" >&6
   8630 			else
   8631 				LIBS="$cf_lib $LIBS"
   8632 				echo "$as_me:8632: checking for $cf_test in $cf_lib" >&5
   8633 echo $ECHO_N "checking for $cf_test in $cf_lib... $ECHO_C" >&6
   8634 			fi
   8635 			cat >conftest.$ac_ext <<_ACEOF
   8636 #line 8636 "configure"
   8637 #include "confdefs.h"
   8638 
   8639 int
   8640 main ()
   8641 {
   8642 $cf_test()
   8643   ;
   8644   return 0;
   8645 }
   8646 _ACEOF
   8647 rm -f conftest.$ac_objext conftest$ac_exeext
   8648 if { (eval echo "$as_me:8648: \"$ac_link\"") >&5
   8649   (eval $ac_link) 2>&5
   8650   ac_status=$?
   8651   echo "$as_me:8651: \$? = $ac_status" >&5
   8652   (exit $ac_status); } &&
   8653          { ac_try='test -s conftest$ac_exeext'
   8654   { (eval echo "$as_me:8654: \"$ac_try\"") >&5
   8655   (eval $ac_try) 2>&5
   8656   ac_status=$?
   8657   echo "$as_me:8657: \$? = $ac_status" >&5
   8658   (exit $ac_status); }; }; then
   8659   cf_result=yes
   8660 else
   8661   echo "$as_me: failed program was:" >&5
   8662 cat conftest.$ac_ext >&5
   8663 cf_result=no
   8664 fi
   8665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8666 			echo "$as_me:8666: result: $cf_result" >&5
   8667 echo "${ECHO_T}$cf_result" >&6
   8668 			if test "$cf_result" = yes ; then
   8669 				cf_x_athena_lib="$cf_lib"
   8670 				break
   8671 			fi
   8672 			LIBS="$cf_save"
   8673 		fi
   8674 	done
   8675 done
   8676 
   8677 if test -z "$cf_x_athena_lib" ; then
   8678 	{ { echo "$as_me:8678: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
   8679 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
   8680    { (exit 1); exit 1; }; }
   8681 fi
   8682 
   8683 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   8684 
   8685 cat >>confdefs.h <<EOF
   8686 #define $cf_x_athena_LIBS 1
   8687 EOF
   8688 
   8689 for ac_header in X11/Xpoll.h
   8690 do
   8691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8692 echo "$as_me:8692: checking for $ac_header" >&5
   8693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8695   echo $ECHO_N "(cached) $ECHO_C" >&6
   8696 else
   8697   cat >conftest.$ac_ext <<_ACEOF
   8698 #line 8698 "configure"
   8699 #include "confdefs.h"
   8700 #include <$ac_header>
   8701 _ACEOF
   8702 if { (eval echo "$as_me:8702: \"$ac_cpp conftest.$ac_ext\"") >&5
   8703   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   8704   ac_status=$?
   8705   egrep -v '^ *\+' conftest.er1 >conftest.err
   8706   rm -f conftest.er1
   8707   cat conftest.err >&5
   8708   echo "$as_me:8708: \$? = $ac_status" >&5
   8709   (exit $ac_status); } >/dev/null; then
   8710   if test -s conftest.err; then
   8711     ac_cpp_err=$ac_c_preproc_warn_flag
   8712   else
   8713     ac_cpp_err=
   8714   fi
   8715 else
   8716   ac_cpp_err=yes
   8717 fi
   8718 if test -z "$ac_cpp_err"; then
   8719   eval "$as_ac_Header=yes"
   8720 else
   8721   echo "$as_me: failed program was:" >&5
   8722   cat conftest.$ac_ext >&5
   8723   eval "$as_ac_Header=no"
   8724 fi
   8725 rm -f conftest.err conftest.$ac_ext
   8726 fi
   8727 echo "$as_me:8727: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8730   cat >>confdefs.h <<EOF
   8731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8732 EOF
   8733 
   8734 fi
   8735 done
   8736 
   8737 echo "$as_me:8737: checking for declaration of fd_set" >&5
   8738 echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6
   8739 if test "${cf_cv_type_fd_set+set}" = set; then
   8740   echo $ECHO_N "(cached) $ECHO_C" >&6
   8741 else
   8742 
   8743 echo "${as_me-configure}:8743: testing sys/types alone ..." 1>&5
   8744 
   8745 cat >conftest.$ac_ext <<_ACEOF
   8746 #line 8746 "configure"
   8747 #include "confdefs.h"
   8748 
   8749 #include <sys/types.h>
   8750 int
   8751 main ()
   8752 {
   8753 fd_set x
   8754   ;
   8755   return 0;
   8756 }
   8757 _ACEOF
   8758 rm -f conftest.$ac_objext
   8759 if { (eval echo "$as_me:8759: \"$ac_compile\"") >&5
   8760   (eval $ac_compile) 2>&5
   8761   ac_status=$?
   8762   echo "$as_me:8762: \$? = $ac_status" >&5
   8763   (exit $ac_status); } &&
   8764          { ac_try='test -s conftest.$ac_objext'
   8765   { (eval echo "$as_me:8765: \"$ac_try\"") >&5
   8766   (eval $ac_try) 2>&5
   8767   ac_status=$?
   8768   echo "$as_me:8768: \$? = $ac_status" >&5
   8769   (exit $ac_status); }; }; then
   8770   cf_cv_type_fd_set=sys/types.h
   8771 else
   8772   echo "$as_me: failed program was:" >&5
   8773 cat conftest.$ac_ext >&5
   8774 
   8775 echo "${as_me-configure}:8775: testing X11/Xpoll.h ..." 1>&5
   8776 
   8777 cat >conftest.$ac_ext <<_ACEOF
   8778 #line 8778 "configure"
   8779 #include "confdefs.h"
   8780 
   8781 #ifdef HAVE_X11_XPOLL_H
   8782 #include <X11/Xpoll.h>
   8783 #endif
   8784 int
   8785 main ()
   8786 {
   8787 fd_set x
   8788   ;
   8789   return 0;
   8790 }
   8791 _ACEOF
   8792 rm -f conftest.$ac_objext
   8793 if { (eval echo "$as_me:8793: \"$ac_compile\"") >&5
   8794   (eval $ac_compile) 2>&5
   8795   ac_status=$?
   8796   echo "$as_me:8796: \$? = $ac_status" >&5
   8797   (exit $ac_status); } &&
   8798          { ac_try='test -s conftest.$ac_objext'
   8799   { (eval echo "$as_me:8799: \"$ac_try\"") >&5
   8800   (eval $ac_try) 2>&5
   8801   ac_status=$?
   8802   echo "$as_me:8802: \$? = $ac_status" >&5
   8803   (exit $ac_status); }; }; then
   8804   cf_cv_type_fd_set=X11/Xpoll.h
   8805 else
   8806   echo "$as_me: failed program was:" >&5
   8807 cat conftest.$ac_ext >&5
   8808 
   8809 echo "${as_me-configure}:8809: testing sys/select.h ..." 1>&5
   8810 
   8811 cat >conftest.$ac_ext <<_ACEOF
   8812 #line 8812 "configure"
   8813 #include "confdefs.h"
   8814 
   8815 #include <sys/types.h>
   8816 #include <sys/select.h>
   8817 int
   8818 main ()
   8819 {
   8820 fd_set x
   8821   ;
   8822   return 0;
   8823 }
   8824 _ACEOF
   8825 rm -f conftest.$ac_objext
   8826 if { (eval echo "$as_me:8826: \"$ac_compile\"") >&5
   8827   (eval $ac_compile) 2>&5
   8828   ac_status=$?
   8829   echo "$as_me:8829: \$? = $ac_status" >&5
   8830   (exit $ac_status); } &&
   8831          { ac_try='test -s conftest.$ac_objext'
   8832   { (eval echo "$as_me:8832: \"$ac_try\"") >&5
   8833   (eval $ac_try) 2>&5
   8834   ac_status=$?
   8835   echo "$as_me:8835: \$? = $ac_status" >&5
   8836   (exit $ac_status); }; }; then
   8837   cf_cv_type_fd_set=sys/select.h
   8838 else
   8839   echo "$as_me: failed program was:" >&5
   8840 cat conftest.$ac_ext >&5
   8841 cf_cv_type_fd_set=unknown
   8842 fi
   8843 rm -f conftest.$ac_objext conftest.$ac_ext
   8844 fi
   8845 rm -f conftest.$ac_objext conftest.$ac_ext
   8846 fi
   8847 rm -f conftest.$ac_objext conftest.$ac_ext
   8848 fi
   8849 echo "$as_me:8849: result: $cf_cv_type_fd_set" >&5
   8850 echo "${ECHO_T}$cf_cv_type_fd_set" >&6
   8851 if test $cf_cv_type_fd_set = sys/select.h ; then
   8852 	cat >>confdefs.h <<\EOF
   8853 #define USE_SYS_SELECT_H 1
   8854 EOF
   8855 
   8856 fi
   8857 
   8858 echo "$as_me:8858: checking for declaration of fd_mask" >&5
   8859 echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6
   8860 if test "${cf_cv_type_fd_mask+set}" = set; then
   8861   echo $ECHO_N "(cached) $ECHO_C" >&6
   8862 else
   8863 
   8864     if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then
   8865         cat >conftest.$ac_ext <<_ACEOF
   8866 #line 8866 "configure"
   8867 #include "confdefs.h"
   8868 
   8869 #include <X11/Xpoll.h>
   8870 int
   8871 main ()
   8872 {
   8873 fd_mask x
   8874   ;
   8875   return 0;
   8876 }
   8877 _ACEOF
   8878 rm -f conftest.$ac_objext
   8879 if { (eval echo "$as_me:8879: \"$ac_compile\"") >&5
   8880   (eval $ac_compile) 2>&5
   8881   ac_status=$?
   8882   echo "$as_me:8882: \$? = $ac_status" >&5
   8883   (exit $ac_status); } &&
   8884          { ac_try='test -s conftest.$ac_objext'
   8885   { (eval echo "$as_me:8885: \"$ac_try\"") >&5
   8886   (eval $ac_try) 2>&5
   8887   ac_status=$?
   8888   echo "$as_me:8888: \$? = $ac_status" >&5
   8889   (exit $ac_status); }; }; then
   8890   :
   8891 else
   8892   echo "$as_me: failed program was:" >&5
   8893 cat conftest.$ac_ext >&5
   8894 
   8895 echo "${as_me-configure}:8895: testing if we must define CSRG_BASED ..." 1>&5
   8896 
   8897 # Xosdefs.h on Mac OS X may not define this (but it should).
   8898             cat >conftest.$ac_ext <<_ACEOF
   8899 #line 8899 "configure"
   8900 #include "confdefs.h"
   8901 
   8902 #define CSRG_BASED
   8903 #include <X11/Xpoll.h>
   8904 int
   8905 main ()
   8906 {
   8907 fd_mask x
   8908   ;
   8909   return 0;
   8910 }
   8911 _ACEOF
   8912 rm -f conftest.$ac_objext
   8913 if { (eval echo "$as_me:8913: \"$ac_compile\"") >&5
   8914   (eval $ac_compile) 2>&5
   8915   ac_status=$?
   8916   echo "$as_me:8916: \$? = $ac_status" >&5
   8917   (exit $ac_status); } &&
   8918          { ac_try='test -s conftest.$ac_objext'
   8919   { (eval echo "$as_me:8919: \"$ac_try\"") >&5
   8920   (eval $ac_try) 2>&5
   8921   ac_status=$?
   8922   echo "$as_me:8922: \$? = $ac_status" >&5
   8923   (exit $ac_status); }; }; then
   8924   cf_cv_type_fd_mask=CSRG_BASED
   8925 else
   8926   echo "$as_me: failed program was:" >&5
   8927 cat conftest.$ac_ext >&5
   8928 fi
   8929 rm -f conftest.$ac_objext conftest.$ac_ext
   8930 fi
   8931 rm -f conftest.$ac_objext conftest.$ac_ext
   8932     else
   8933         cf_cv_type_fd_mask=$cf_cv_type_fd_set
   8934     fi
   8935 
   8936 fi
   8937 echo "$as_me:8937: result: $cf_cv_type_fd_mask" >&5
   8938 echo "${ECHO_T}$cf_cv_type_fd_mask" >&6
   8939 if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then
   8940     cat >>confdefs.h <<\EOF
   8941 #define CSRG_BASED 1
   8942 EOF
   8943 
   8944 fi
   8945 
   8946 echo "$as_me:8946: checking for IRIX 6.5 baud-rate redefinitions" >&5
   8947 echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6
   8948 if test "${cf_cv_termio_c_ispeed+set}" = set; then
   8949   echo $ECHO_N "(cached) $ECHO_C" >&6
   8950 else
   8951 
   8952 cat >conftest.$ac_ext <<_ACEOF
   8953 #line 8953 "configure"
   8954 #include "confdefs.h"
   8955 
   8956 #include <sys/types.h>
   8957 #include <sys/termio.h>
   8958 int
   8959 main ()
   8960 {
   8961 
   8962 struct termio foo;
   8963 foo.c_ispeed = B38400;
   8964 foo.c_ospeed = B9600;
   8965 
   8966   ;
   8967   return 0;
   8968 }
   8969 _ACEOF
   8970 rm -f conftest.$ac_objext
   8971 if { (eval echo "$as_me:8971: \"$ac_compile\"") >&5
   8972   (eval $ac_compile) 2>&5
   8973   ac_status=$?
   8974   echo "$as_me:8974: \$? = $ac_status" >&5
   8975   (exit $ac_status); } &&
   8976          { ac_try='test -s conftest.$ac_objext'
   8977   { (eval echo "$as_me:8977: \"$ac_try\"") >&5
   8978   (eval $ac_try) 2>&5
   8979   ac_status=$?
   8980   echo "$as_me:8980: \$? = $ac_status" >&5
   8981   (exit $ac_status); }; }; then
   8982   cf_cv_termio_c_ispeed=yes
   8983 
   8984 else
   8985   echo "$as_me: failed program was:" >&5
   8986 cat conftest.$ac_ext >&5
   8987 cf_cv_termio_c_ispeed=no
   8988 fi
   8989 rm -f conftest.$ac_objext conftest.$ac_ext
   8990 
   8991 fi
   8992 echo "$as_me:8992: result: $cf_cv_termio_c_ispeed" >&5
   8993 echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6
   8994 test "$cf_cv_termio_c_ispeed" = yes && cat >>confdefs.h <<\EOF
   8995 #define HAVE_TERMIO_C_ISPEED 1
   8996 EOF
   8997 
   8998 LIBS="$LIBS $X_EXTRA_LIBS"
   8999 
   9000 # Check for openpty() in -lutil if the UNIX98-style pty functions are not
   9001 # available. E.g. for GNU libc 2.0.
   9002 case $host_os in #(vi
   9003 freebsd*|netbsd*|dragonfly*) # 2004/8/15 - revisit this if/when grantpt is known to work.
   9004 
   9005 echo "$as_me:9005: checking for openpty in -lutil" >&5
   9006 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
   9007 if test "${ac_cv_lib_util_openpty+set}" = set; then
   9008   echo $ECHO_N "(cached) $ECHO_C" >&6
   9009 else
   9010   ac_check_lib_save_LIBS=$LIBS
   9011 LIBS="-lutil  $LIBS"
   9012 cat >conftest.$ac_ext <<_ACEOF
   9013 #line 9013 "configure"
   9014 #include "confdefs.h"
   9015 
   9016 /* Override any gcc2 internal prototype to avoid an error.  */
   9017 #ifdef __cplusplus
   9018 extern "C"
   9019 #endif
   9020 /* We use char because int might match the return type of a gcc2
   9021    builtin and then its argument prototype would still apply.  */
   9022 char openpty ();
   9023 int
   9024 main ()
   9025 {
   9026 openpty ();
   9027   ;
   9028   return 0;
   9029 }
   9030 _ACEOF
   9031 rm -f conftest.$ac_objext conftest$ac_exeext
   9032 if { (eval echo "$as_me:9032: \"$ac_link\"") >&5
   9033   (eval $ac_link) 2>&5
   9034   ac_status=$?
   9035   echo "$as_me:9035: \$? = $ac_status" >&5
   9036   (exit $ac_status); } &&
   9037          { ac_try='test -s conftest$ac_exeext'
   9038   { (eval echo "$as_me:9038: \"$ac_try\"") >&5
   9039   (eval $ac_try) 2>&5
   9040   ac_status=$?
   9041   echo "$as_me:9041: \$? = $ac_status" >&5
   9042   (exit $ac_status); }; }; then
   9043   ac_cv_lib_util_openpty=yes
   9044 else
   9045   echo "$as_me: failed program was:" >&5
   9046 cat conftest.$ac_ext >&5
   9047 ac_cv_lib_util_openpty=no
   9048 fi
   9049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9050 LIBS=$ac_check_lib_save_LIBS
   9051 fi
   9052 echo "$as_me:9052: result: $ac_cv_lib_util_openpty" >&5
   9053 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
   9054 if test $ac_cv_lib_util_openpty = yes; then
   9055   cat >>confdefs.h <<EOF
   9056 #define HAVE_LIBUTIL 1
   9057 EOF
   9058 
   9059   LIBS="-lutil $LIBS"
   9060 
   9061 fi
   9062 
   9063 	;;
   9064 *)
   9065 
   9066 for ac_func in grantpt
   9067 do
   9068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9069 echo "$as_me:9069: checking for $ac_func" >&5
   9070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9071 if eval "test \"\${$as_ac_var+set}\" = set"; then
   9072   echo $ECHO_N "(cached) $ECHO_C" >&6
   9073 else
   9074   cat >conftest.$ac_ext <<_ACEOF
   9075 #line 9075 "configure"
   9076 #include "confdefs.h"
   9077 /* System header to define __stub macros and hopefully few prototypes,
   9078     which can conflict with char $ac_func (); below.  */
   9079 #include <assert.h>
   9080 /* Override any gcc2 internal prototype to avoid an error.  */
   9081 #ifdef __cplusplus
   9082 extern "C"
   9083 #endif
   9084 /* We use char because int might match the return type of a gcc2
   9085    builtin and then its argument prototype would still apply.  */
   9086 char $ac_func ();
   9087 char (*f) ();
   9088 
   9089 int
   9090 main ()
   9091 {
   9092 /* The GNU C library defines this for functions which it implements
   9093     to always fail with ENOSYS.  Some functions are actually named
   9094     something starting with __ and the normal name is an alias.  */
   9095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9096 choke me
   9097 #else
   9098 f = $ac_func;
   9099 #endif
   9100 
   9101   ;
   9102   return 0;
   9103 }
   9104 _ACEOF
   9105 rm -f conftest.$ac_objext conftest$ac_exeext
   9106 if { (eval echo "$as_me:9106: \"$ac_link\"") >&5
   9107   (eval $ac_link) 2>&5
   9108   ac_status=$?
   9109   echo "$as_me:9109: \$? = $ac_status" >&5
   9110   (exit $ac_status); } &&
   9111          { ac_try='test -s conftest$ac_exeext'
   9112   { (eval echo "$as_me:9112: \"$ac_try\"") >&5
   9113   (eval $ac_try) 2>&5
   9114   ac_status=$?
   9115   echo "$as_me:9115: \$? = $ac_status" >&5
   9116   (exit $ac_status); }; }; then
   9117   eval "$as_ac_var=yes"
   9118 else
   9119   echo "$as_me: failed program was:" >&5
   9120 cat conftest.$ac_ext >&5
   9121 eval "$as_ac_var=no"
   9122 fi
   9123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9124 fi
   9125 echo "$as_me:9125: result: `eval echo '${'$as_ac_var'}'`" >&5
   9126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9127 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9128   cat >>confdefs.h <<EOF
   9129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9130 EOF
   9131 
   9132 else
   9133 
   9134 echo "$as_me:9134: checking for openpty in -lutil" >&5
   9135 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
   9136 if test "${ac_cv_lib_util_openpty+set}" = set; then
   9137   echo $ECHO_N "(cached) $ECHO_C" >&6
   9138 else
   9139   ac_check_lib_save_LIBS=$LIBS
   9140 LIBS="-lutil  $LIBS"
   9141 cat >conftest.$ac_ext <<_ACEOF
   9142 #line 9142 "configure"
   9143 #include "confdefs.h"
   9144 
   9145 /* Override any gcc2 internal prototype to avoid an error.  */
   9146 #ifdef __cplusplus
   9147 extern "C"
   9148 #endif
   9149 /* We use char because int might match the return type of a gcc2
   9150    builtin and then its argument prototype would still apply.  */
   9151 char openpty ();
   9152 int
   9153 main ()
   9154 {
   9155 openpty ();
   9156   ;
   9157   return 0;
   9158 }
   9159 _ACEOF
   9160 rm -f conftest.$ac_objext conftest$ac_exeext
   9161 if { (eval echo "$as_me:9161: \"$ac_link\"") >&5
   9162   (eval $ac_link) 2>&5
   9163   ac_status=$?
   9164   echo "$as_me:9164: \$? = $ac_status" >&5
   9165   (exit $ac_status); } &&
   9166          { ac_try='test -s conftest$ac_exeext'
   9167   { (eval echo "$as_me:9167: \"$ac_try\"") >&5
   9168   (eval $ac_try) 2>&5
   9169   ac_status=$?
   9170   echo "$as_me:9170: \$? = $ac_status" >&5
   9171   (exit $ac_status); }; }; then
   9172   ac_cv_lib_util_openpty=yes
   9173 else
   9174   echo "$as_me: failed program was:" >&5
   9175 cat conftest.$ac_ext >&5
   9176 ac_cv_lib_util_openpty=no
   9177 fi
   9178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9179 LIBS=$ac_check_lib_save_LIBS
   9180 fi
   9181 echo "$as_me:9181: result: $ac_cv_lib_util_openpty" >&5
   9182 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
   9183 if test $ac_cv_lib_util_openpty = yes; then
   9184   cat >>confdefs.h <<EOF
   9185 #define HAVE_LIBUTIL 1
   9186 EOF
   9187 
   9188   LIBS="-lutil $LIBS"
   9189 
   9190 fi
   9191 
   9192 fi
   9193 done
   9194 
   9195 	;;
   9196 esac
   9197 
   9198 echo "$as_me:9198: checking for XKB Bell extension" >&5
   9199 echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6
   9200 if test "${cf_cv_xkb_bell_ext+set}" = set; then
   9201   echo $ECHO_N "(cached) $ECHO_C" >&6
   9202 else
   9203 
   9204 cat >conftest.$ac_ext <<_ACEOF
   9205 #line 9205 "configure"
   9206 #include "confdefs.h"
   9207 
   9208 #include <X11/Intrinsic.h>
   9209 #include <X11/XKBlib.h>		/* has the prototype */
   9210 #include <X11/extensions/XKBbells.h>	/* has the XkbBI_xxx definitions */
   9211 
   9212 int
   9213 main ()
   9214 {
   9215 
   9216 	int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell);
   9217 	Atom y;
   9218 	XkbBell((Display *)0, (Widget)0, 0, y);
   9219 
   9220   ;
   9221   return 0;
   9222 }
   9223 _ACEOF
   9224 rm -f conftest.$ac_objext conftest$ac_exeext
   9225 if { (eval echo "$as_me:9225: \"$ac_link\"") >&5
   9226   (eval $ac_link) 2>&5
   9227   ac_status=$?
   9228   echo "$as_me:9228: \$? = $ac_status" >&5
   9229   (exit $ac_status); } &&
   9230          { ac_try='test -s conftest$ac_exeext'
   9231   { (eval echo "$as_me:9231: \"$ac_try\"") >&5
   9232   (eval $ac_try) 2>&5
   9233   ac_status=$?
   9234   echo "$as_me:9234: \$? = $ac_status" >&5
   9235   (exit $ac_status); }; }; then
   9236   cf_cv_xkb_bell_ext=yes
   9237 else
   9238   echo "$as_me: failed program was:" >&5
   9239 cat conftest.$ac_ext >&5
   9240 cf_cv_xkb_bell_ext=no
   9241 fi
   9242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9243 
   9244 fi
   9245 echo "$as_me:9245: result: $cf_cv_xkb_bell_ext" >&5
   9246 echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6
   9247 test "$cf_cv_xkb_bell_ext" = yes && cat >>confdefs.h <<\EOF
   9248 #define HAVE_XKB_BELL_EXT 1
   9249 EOF
   9250 
   9251 for ac_func in Xutf8LookupString
   9252 do
   9253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9254 echo "$as_me:9254: checking for $ac_func" >&5
   9255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9256 if eval "test \"\${$as_ac_var+set}\" = set"; then
   9257   echo $ECHO_N "(cached) $ECHO_C" >&6
   9258 else
   9259   cat >conftest.$ac_ext <<_ACEOF
   9260 #line 9260 "configure"
   9261 #include "confdefs.h"
   9262 /* System header to define __stub macros and hopefully few prototypes,
   9263     which can conflict with char $ac_func (); below.  */
   9264 #include <assert.h>
   9265 /* Override any gcc2 internal prototype to avoid an error.  */
   9266 #ifdef __cplusplus
   9267 extern "C"
   9268 #endif
   9269 /* We use char because int might match the return type of a gcc2
   9270    builtin and then its argument prototype would still apply.  */
   9271 char $ac_func ();
   9272 char (*f) ();
   9273 
   9274 int
   9275 main ()
   9276 {
   9277 /* The GNU C library defines this for functions which it implements
   9278     to always fail with ENOSYS.  Some functions are actually named
   9279     something starting with __ and the normal name is an alias.  */
   9280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9281 choke me
   9282 #else
   9283 f = $ac_func;
   9284 #endif
   9285 
   9286   ;
   9287   return 0;
   9288 }
   9289 _ACEOF
   9290 rm -f conftest.$ac_objext conftest$ac_exeext
   9291 if { (eval echo "$as_me:9291: \"$ac_link\"") >&5
   9292   (eval $ac_link) 2>&5
   9293   ac_status=$?
   9294   echo "$as_me:9294: \$? = $ac_status" >&5
   9295   (exit $ac_status); } &&
   9296          { ac_try='test -s conftest$ac_exeext'
   9297   { (eval echo "$as_me:9297: \"$ac_try\"") >&5
   9298   (eval $ac_try) 2>&5
   9299   ac_status=$?
   9300   echo "$as_me:9300: \$? = $ac_status" >&5
   9301   (exit $ac_status); }; }; then
   9302   eval "$as_ac_var=yes"
   9303 else
   9304   echo "$as_me: failed program was:" >&5
   9305 cat conftest.$ac_ext >&5
   9306 eval "$as_ac_var=no"
   9307 fi
   9308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9309 fi
   9310 echo "$as_me:9310: result: `eval echo '${'$as_ac_var'}'`" >&5
   9311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9312 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9313   cat >>confdefs.h <<EOF
   9314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9315 EOF
   9316 
   9317 else
   9318 
   9319 	EXTRAHDRS="$EXTRAHDRS xutf8.h"
   9320 	EXTRASRCS="$EXTRASRCS xutf8.c"
   9321 	EXTRAOBJS="$EXTRAOBJS xutf8.o"
   9322 
   9323 fi
   9324 done
   9325 
   9326 echo "$as_me:9326: checking if you want narrow prototypes for X libraries" >&5
   9327 echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6
   9328 
   9329 case `$ac_config_guess` in #(vi
   9330 *cygwin*|*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) #(vi
   9331 	cf_default_narrowproto=yes
   9332 	;;
   9333 *)
   9334 	cf_default_narrowproto=no
   9335 	;;
   9336 esac
   9337 
   9338 # Check whether --enable-narrowproto or --disable-narrowproto was given.
   9339 if test "${enable_narrowproto+set}" = set; then
   9340   enableval="$enable_narrowproto"
   9341   test "$enableval" != no && enableval=yes
   9342   if test "$enableval" != "$cf_default_narrowproto" ; then
   9343     enable_narrowproto=$enableval
   9344   else
   9345     enable_narrowproto=$cf_default_narrowproto
   9346   fi
   9347 else
   9348   enableval=$cf_default_narrowproto
   9349   enable_narrowproto=$cf_default_narrowproto
   9350 
   9351 fi;
   9352 echo "$as_me:9352: result: $enable_narrowproto" >&5
   9353 echo "${ECHO_T}$enable_narrowproto" >&6
   9354 
   9355 echo "$as_me:9355: checking if we should use imake to help" >&5
   9356 echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6
   9357 
   9358 # Check whether --enable-imake or --disable-imake was given.
   9359 if test "${enable_imake+set}" = set; then
   9360   enableval="$enable_imake"
   9361   test "$enableval" != no && enableval=yes
   9362   if test "$enableval" != "yes" ; then
   9363     enable_imake=no
   9364   else
   9365     enable_imake=yes
   9366   fi
   9367 else
   9368   enableval=yes
   9369   enable_imake=yes
   9370 
   9371 fi;
   9372 echo "$as_me:9372: result: $enable_imake" >&5
   9373 echo "${ECHO_T}$enable_imake" >&6
   9374 
   9375 if test "$enable_imake" = yes ; then
   9376 
   9377 for ac_prog in xmkmf imake
   9378 do
   9379   # Extract the first word of "$ac_prog", so it can be a program name with args.
   9380 set dummy $ac_prog; ac_word=$2
   9381 echo "$as_me:9381: checking for $ac_word" >&5
   9382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   9383 if test "${ac_cv_path_IMAKE+set}" = set; then
   9384   echo $ECHO_N "(cached) $ECHO_C" >&6
   9385 else
   9386   case $IMAKE in
   9387   [\\/]* | ?:[\\/]*)
   9388   ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
   9389   ;;
   9390   *)
   9391   ac_save_IFS=$IFS; IFS=$ac_path_separator
   9392 ac_dummy="$PATH"
   9393 for ac_dir in $ac_dummy; do
   9394   IFS=$ac_save_IFS
   9395   test -z "$ac_dir" && ac_dir=.
   9396   if $as_executable_p "$ac_dir/$ac_word"; then
   9397    ac_cv_path_IMAKE="$ac_dir/$ac_word"
   9398    echo "$as_me:9398: found $ac_dir/$ac_word" >&5
   9399    break
   9400 fi
   9401 done
   9402 
   9403   ;;
   9404 esac
   9405 fi
   9406 IMAKE=$ac_cv_path_IMAKE
   9407 
   9408 if test -n "$IMAKE"; then
   9409   echo "$as_me:9409: result: $IMAKE" >&5
   9410 echo "${ECHO_T}$IMAKE" >&6
   9411 else
   9412   echo "$as_me:9412: result: no" >&5
   9413 echo "${ECHO_T}no" >&6
   9414 fi
   9415 
   9416   test -n "$IMAKE" && break
   9417 done
   9418 
   9419 if test -n "$IMAKE" ; then
   9420 
   9421 case $IMAKE in # (vi
   9422 */imake)
   9423 	cf_imake_opts="-DUseInstalled=YES" # (vi
   9424 	;;
   9425 */util/xmkmf)
   9426 	# A single parameter tells xmkmf where the config-files are:
   9427 	cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`" # (vi
   9428 	;;
   9429 *)
   9430 	cf_imake_opts=
   9431 	;;
   9432 esac
   9433 
   9434 # If it's installed properly, imake (or its wrapper, xmkmf) will point to the
   9435 # config directory.
   9436 if mkdir conftestdir; then
   9437 	CDPATH=; export CDPATH
   9438 	cf_makefile=`cd $srcdir;pwd`/Imakefile
   9439 	cd conftestdir
   9440 
   9441 	cat >fix_cflags.sed <<'CF_EOF'
   9442 s/\\//g
   9443 s/[ 	][ 	]*/ /g
   9444 s/"//g
   9445 :pack
   9446 s/\(=[^ ][^ ]*\) \([^-]\)/\1	\2/g
   9447 t pack
   9448 s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g
   9449 s/^IMAKE[ ]/IMAKE_CFLAGS="/
   9450 s/	/ /g
   9451 s/$/"/
   9452 CF_EOF
   9453 
   9454 	cat >fix_lflags.sed <<'CF_EOF'
   9455 s/^IMAKE[ 	]*/IMAKE_LOADFLAGS="/
   9456 s/$/"/
   9457 CF_EOF
   9458 
   9459 	echo >./Imakefile
   9460 	test -f $cf_makefile && cat $cf_makefile >>./Imakefile
   9461 
   9462 	cat >> ./Imakefile <<'CF_EOF'
   9463 findstddefs:
   9464 	@echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS)       | sed -f fix_cflags.sed
   9465 	@echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed
   9466 CF_EOF
   9467 
   9468 	if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile)
   9469 	then
   9470 		test -n "$verbose" && echo "	Using $IMAKE $cf_imake_opts" 1>&6
   9471 
   9472 echo "${as_me-configure}:9472: testing Using $IMAKE $cf_imake_opts ..." 1>&5
   9473 
   9474 	else
   9475 		# sometimes imake doesn't have the config path compiled in.  Find it.
   9476 		cf_config=
   9477 		for cf_libpath in $X_LIBS $LIBS ; do
   9478 			case $cf_libpath in # (vi
   9479 			-L*)
   9480 				cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'`
   9481 				cf_libpath=$cf_libpath/X11/config
   9482 				if test -d $cf_libpath ; then
   9483 					cf_config=$cf_libpath
   9484 					break
   9485 				fi
   9486 				;;
   9487 			esac
   9488 		done
   9489 		if test -z "$cf_config" ; then
   9490 			{ echo "$as_me:9490: WARNING: Could not find imake config-directory" >&5
   9491 echo "$as_me: WARNING: Could not find imake config-directory" >&2;}
   9492 		else
   9493 			cf_imake_opts="$cf_imake_opts -I$cf_config"
   9494 			if ( $IMAKE -v $cf_imake_opts 2>&5)
   9495 			then
   9496 				test -n "$verbose" && echo "	Using $IMAKE $cf_config" 1>&6
   9497 
   9498 echo "${as_me-configure}:9498: testing Using $IMAKE $cf_config ..." 1>&5
   9499 
   9500 			else
   9501 				{ echo "$as_me:9501: WARNING: Cannot run $IMAKE" >&5
   9502 echo "$as_me: WARNING: Cannot run $IMAKE" >&2;}
   9503 			fi
   9504 		fi
   9505 	fi
   9506 
   9507 	# GNU make sometimes prints "make[1]: Entering...", which
   9508 	# would confuse us.
   9509 	eval `make findstddefs 2>/dev/null | grep -v make`
   9510 
   9511 	cd ..
   9512 	rm -rf conftestdir
   9513 
   9514 	# We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former
   9515 	# declares XTFUNCPROTO there.  However, some vendors (e.g., SGI) have
   9516 	# modified it to support site.cf, adding a kludge for the /usr/include
   9517 	# directory.  Try to filter that out, otherwise gcc won't find its
   9518 	# headers.
   9519 	if test -n "$GCC" ; then
   9520 	    if test -n "$IMAKE_CFLAGS" ; then
   9521 		cf_nostdinc=""
   9522 		cf_std_incl=""
   9523 		cf_cpp_opts=""
   9524 		for cf_opt in $IMAKE_CFLAGS
   9525 		do
   9526 		    case "$cf_opt" in
   9527 		    -nostdinc) #(vi
   9528 			cf_nostdinc="$cf_opt"
   9529 			;;
   9530 		    -I/usr/include) #(vi
   9531 			cf_std_incl="$cf_opt"
   9532 			;;
   9533 		    *) #(vi
   9534 			cf_cpp_opts="$cf_cpp_opts $cf_opt"
   9535 			;;
   9536 		    esac
   9537 		done
   9538 		if test -z "$cf_nostdinc" ; then
   9539 		    IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl"
   9540 		elif test -z "$cf_std_incl" ; then
   9541 		    IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc"
   9542 		else
   9543 		    test -n "$verbose" && echo "	suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6
   9544 
   9545 echo "${as_me-configure}:9545: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5
   9546 
   9547 		    IMAKE_CFLAGS="$cf_cpp_opts"
   9548 		fi
   9549 	    fi
   9550 	fi
   9551 fi
   9552 
   9553 # Some imake configurations define PROJECTROOT with an empty value.  Remove
   9554 # the empty definition.
   9555 case $IMAKE_CFLAGS in
   9556 *-DPROJECTROOT=/*)
   9557 	;;
   9558 *)
   9559 	IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ 	], ,"`
   9560 	;;
   9561 esac
   9562 
   9563 fi
   9564 
   9565 test -n "$verbose" && echo "	IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6
   9566 
   9567 echo "${as_me-configure}:9567: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5
   9568 
   9569 test -n "$verbose" && echo "	IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6
   9570 
   9571 echo "${as_me-configure}:9571: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5
   9572 
   9573 fi
   9574 
   9575 if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then
   9576 
   9577 cf_fix_cppflags=no
   9578 cf_new_cflags=
   9579 cf_new_cppflags=
   9580 cf_new_extra_cppflags=
   9581 
   9582 for cf_add_cflags in $IMAKE_CFLAGS
   9583 do
   9584 case $cf_fix_cppflags in
   9585 no)
   9586 	case $cf_add_cflags in #(vi
   9587 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   9588 		case $cf_add_cflags in
   9589 		-D*)
   9590 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   9591 
   9592 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9593 			&& test -z "${cf_tst_cflags}" \
   9594 			&& cf_fix_cppflags=yes
   9595 
   9596 			if test $cf_fix_cppflags = yes ; then
   9597 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9598 				continue
   9599 			elif test "${cf_tst_cflags}" = "\"'" ; then
   9600 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9601 				continue
   9602 			fi
   9603 			;;
   9604 		esac
   9605 		case "$CPPFLAGS" in
   9606 		*$cf_add_cflags) #(vi
   9607 			;;
   9608 		*) #(vi
   9609 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   9610 			;;
   9611 		esac
   9612 		;;
   9613 	*)
   9614 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   9615 		;;
   9616 	esac
   9617 	;;
   9618 yes)
   9619 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9620 
   9621 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9622 
   9623 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9624 	&& test -z "${cf_tst_cflags}" \
   9625 	&& cf_fix_cppflags=no
   9626 	;;
   9627 esac
   9628 done
   9629 
   9630 if test -n "$cf_new_cflags" ; then
   9631 
   9632 	CFLAGS="$CFLAGS $cf_new_cflags"
   9633 fi
   9634 
   9635 if test -n "$cf_new_cppflags" ; then
   9636 
   9637 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   9638 fi
   9639 
   9640 if test -n "$cf_new_extra_cppflags" ; then
   9641 
   9642 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   9643 fi
   9644 
   9645 else
   9646 	IMAKE_CFLAGS=
   9647 	IMAKE_LOADFLAGS=
   9648 	test -n "$verbose" && echo "	make fallback definitions" 1>&6
   9649 
   9650 echo "${as_me-configure}:9650: testing make fallback definitions ..." 1>&5
   9651 
   9652 	# We prefer config.guess' values when we can get them, to avoid
   9653 	# inconsistent results with uname (AIX for instance).  However,
   9654 	# config.guess is not always consistent either.
   9655 	case $host_os in
   9656 	*[0-9].[0-9]*)
   9657 		UNAME_RELEASE="$host_os"
   9658 		;;
   9659 	*)
   9660 		UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
   9661 		;;
   9662 	esac
   9663 
   9664 	case .$UNAME_RELEASE in
   9665 	*[0-9].[0-9]*)
   9666 		OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'`
   9667 		OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' `
   9668 		test -z "$OSMAJORVERSION" && OSMAJORVERSION=1
   9669 		test -z "$OSMINORVERSION" && OSMINORVERSION=0
   9670 		IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS"
   9671 		;;
   9672 	esac
   9673 
   9674 	# FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some
   9675 	# fallback/fragments for NeedPrototypes, etc.
   9676 	IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS"
   9677 
   9678 	# If this is not set properly, Xaw's scrollbars will not work
   9679 	if test "$enable_narrowproto" = yes ; then
   9680 		IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS"
   9681 	fi
   9682 
   9683 	# Other special definitions:
   9684 	case $host_os in
   9685 	aix*)
   9686 		# imake on AIX 5.1 defines AIXV3.  really.
   9687 		IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS"
   9688 		;;
   9689 	irix[56].*) #(vi
   9690 		# these are needed to make SIGWINCH work in xterm
   9691 		IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS"
   9692 		;;
   9693 	esac
   9694 
   9695 cf_fix_cppflags=no
   9696 cf_new_cflags=
   9697 cf_new_cppflags=
   9698 cf_new_extra_cppflags=
   9699 
   9700 for cf_add_cflags in $IMAKE_CFLAGS
   9701 do
   9702 case $cf_fix_cppflags in
   9703 no)
   9704 	case $cf_add_cflags in #(vi
   9705 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   9706 		case $cf_add_cflags in
   9707 		-D*)
   9708 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   9709 
   9710 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9711 			&& test -z "${cf_tst_cflags}" \
   9712 			&& cf_fix_cppflags=yes
   9713 
   9714 			if test $cf_fix_cppflags = yes ; then
   9715 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9716 				continue
   9717 			elif test "${cf_tst_cflags}" = "\"'" ; then
   9718 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9719 				continue
   9720 			fi
   9721 			;;
   9722 		esac
   9723 		case "$CPPFLAGS" in
   9724 		*$cf_add_cflags) #(vi
   9725 			;;
   9726 		*) #(vi
   9727 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   9728 			;;
   9729 		esac
   9730 		;;
   9731 	*)
   9732 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   9733 		;;
   9734 	esac
   9735 	;;
   9736 yes)
   9737 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9738 
   9739 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9740 
   9741 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9742 	&& test -z "${cf_tst_cflags}" \
   9743 	&& cf_fix_cppflags=no
   9744 	;;
   9745 esac
   9746 done
   9747 
   9748 if test -n "$cf_new_cflags" ; then
   9749 
   9750 	CFLAGS="$CFLAGS $cf_new_cflags"
   9751 fi
   9752 
   9753 if test -n "$cf_new_cppflags" ; then
   9754 
   9755 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   9756 fi
   9757 
   9758 if test -n "$cf_new_extra_cppflags" ; then
   9759 
   9760 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   9761 fi
   9762 
   9763 fi
   9764 
   9765 echo "$as_me:9765: checking for default terminal-id" >&5
   9766 echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6
   9767 
   9768 # Check whether --with-terminal-id or --without-terminal-id was given.
   9769 if test "${with_terminal_id+set}" = set; then
   9770   withval="$with_terminal_id"
   9771   default_termid=$withval
   9772 else
   9773   default_termid=vt100
   9774 fi;
   9775 echo "$as_me:9775: result: $default_termid" >&5
   9776 echo "${ECHO_T}$default_termid" >&6
   9777 case $default_termid in
   9778 vt*)	default_termid=`echo $default_termid | sed -e 's/^..//'`
   9779 	;;
   9780 esac
   9781 cat >>confdefs.h <<EOF
   9782 #define DFT_DECID "$default_termid"
   9783 EOF
   9784 
   9785 echo "$as_me:9785: checking for default terminal-type" >&5
   9786 echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6
   9787 
   9788 # Check whether --with-terminal-type or --without-terminal-type was given.
   9789 if test "${with_terminal_type+set}" = set; then
   9790   withval="$with_terminal_type"
   9791   default_TERM=$withval
   9792 else
   9793   default_TERM=xterm
   9794 fi;
   9795 echo "$as_me:9795: result: $default_TERM" >&5
   9796 echo "${ECHO_T}$default_TERM" >&6
   9797 cat >>confdefs.h <<EOF
   9798 #define DFT_TERMTYPE "$default_TERM"
   9799 EOF
   9800 
   9801 echo "$as_me:9801: checking for private terminfo-directory" >&5
   9802 echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
   9803 
   9804 # Check whether --with-own-terminfo or --without-own-terminfo was given.
   9805 if test "${with_own_terminfo+set}" = set; then
   9806   withval="$with_own_terminfo"
   9807   TERMINFO_DIR=$withval
   9808 else
   9809   TERMINFO_DIR=${TERMINFO-none}
   9810 fi;
   9811 echo "$as_me:9811: result: $TERMINFO_DIR" >&5
   9812 echo "${ECHO_T}$TERMINFO_DIR" >&6
   9813 if test "$TERMINFO_DIR" = yes ; then
   9814 	{ echo "$as_me:9814: WARNING: no value given" >&5
   9815 echo "$as_me: WARNING: no value given" >&2;}
   9816 elif test "$TERMINFO_DIR" != none ; then
   9817 	if test -d $TERMINFO_DIR ; then
   9818 		cat >>confdefs.h <<EOF
   9819 #define OWN_TERMINFO_DIR "$TERMINFO_DIR"
   9820 EOF
   9821 
   9822 	else
   9823 		{ echo "$as_me:9823: WARNING: not a directory" >&5
   9824 echo "$as_me: WARNING: not a directory" >&2;}
   9825 	fi
   9826 elif test "$prefix" != NONE ; then
   9827 	TERMINFO_DIR='${prefix}/lib/terminfo'
   9828 elif test -d /usr/lib/terminfo ; then
   9829 	TERMINFO_DIR=/usr/lib/terminfo
   9830 else
   9831 	TERMINFO_DIR=
   9832 fi
   9833 SET_TERMINFO=
   9834 if test -n "$TERMINFO_DIR" ; then
   9835 	TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
   9836 	SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
   9837 fi
   9838 
   9839 ###############################################################################
   9840 
   9841 echo "$as_me:9841: checking if you want active-icons" >&5
   9842 echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
   9843 
   9844 # Check whether --enable-active-icon or --disable-active-icon was given.
   9845 if test "${enable_active_icon+set}" = set; then
   9846   enableval="$enable_active_icon"
   9847   test "$enableval" != no && enableval=yes
   9848   if test "$enableval" != "yes" ; then
   9849     enable_active_icon=no
   9850   else
   9851     enable_active_icon=yes
   9852   fi
   9853 else
   9854   enableval=yes
   9855   enable_active_icon=yes
   9856 
   9857 fi;
   9858 echo "$as_me:9858: result: $enable_active_icon" >&5
   9859 echo "${ECHO_T}$enable_active_icon" >&6
   9860 if test "$enable_active_icon" = no ; then
   9861 	cat >>confdefs.h <<\EOF
   9862 #define NO_ACTIVE_ICON 1
   9863 EOF
   9864 
   9865 fi
   9866 
   9867 echo "$as_me:9867: checking if you want ANSI color" >&5
   9868 echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6
   9869 
   9870 # Check whether --enable-ansi-color or --disable-ansi-color was given.
   9871 if test "${enable_ansi_color+set}" = set; then
   9872   enableval="$enable_ansi_color"
   9873   test "$enableval" != no && enableval=yes
   9874   if test "$enableval" != "yes" ; then
   9875     enable_ansi_color=no
   9876   else
   9877     enable_ansi_color=yes
   9878   fi
   9879 else
   9880   enableval=yes
   9881   enable_ansi_color=yes
   9882 
   9883 fi;
   9884 echo "$as_me:9884: result: $enable_ansi_color" >&5
   9885 echo "${ECHO_T}$enable_ansi_color" >&6
   9886 test "$enable_ansi_color" = no && cat >>confdefs.h <<\EOF
   9887 #define OPT_ISO_COLORS 0
   9888 EOF
   9889 
   9890 if test "$enable_ansi_color" = yes ; then
   9891 
   9892 	echo "$as_me:9892: checking if you want 16 colors like aixterm" >&5
   9893 echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6
   9894 
   9895 # Check whether --enable-16-color or --disable-16-color was given.
   9896 if test "${enable_16_color+set}" = set; then
   9897   enableval="$enable_16_color"
   9898   test "$enableval" != no && enableval=yes
   9899   if test "$enableval" != "yes" ; then
   9900     enable_16_color=no
   9901   else
   9902     enable_16_color=yes
   9903   fi
   9904 else
   9905   enableval=yes
   9906   enable_16_color=yes
   9907 
   9908 fi;
   9909 	echo "$as_me:9909: result: $enable_16_color" >&5
   9910 echo "${ECHO_T}$enable_16_color" >&6
   9911 	test "$enable_16_color" = no && cat >>confdefs.h <<\EOF
   9912 #define OPT_AIX_COLORS 0
   9913 EOF
   9914 
   9915 	echo "$as_me:9915: checking if you want 256 colors" >&5
   9916 echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6
   9917 
   9918 # Check whether --enable-256-color or --disable-256-color was given.
   9919 if test "${enable_256_color+set}" = set; then
   9920   enableval="$enable_256_color"
   9921   test "$enableval" != yes && enableval=no
   9922   if test "$enableval" != "no" ; then
   9923     enable_256_color=yes
   9924   else
   9925     enable_256_color=no
   9926   fi
   9927 else
   9928   enableval=no
   9929   enable_256_color=no
   9930 
   9931 fi;
   9932 	echo "$as_me:9932: result: $enable_256_color" >&5
   9933 echo "${ECHO_T}$enable_256_color" >&6
   9934 	if test "$enable_256_color" = yes ; then
   9935 		CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h"
   9936 		EXTRAHDRS="$EXTRAHDRS 256colres.h"
   9937 		cat >>confdefs.h <<\EOF
   9938 #define OPT_256_COLORS 1
   9939 EOF
   9940 
   9941 	else
   9942 	echo "$as_me:9942: checking if you want 88 colors" >&5
   9943 echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6
   9944 
   9945 # Check whether --enable-88-color or --disable-88-color was given.
   9946 if test "${enable_88_color+set}" = set; then
   9947   enableval="$enable_88_color"
   9948   test "$enableval" != yes && enableval=no
   9949   if test "$enableval" != "no" ; then
   9950     enable_88_color=yes
   9951   else
   9952     enable_88_color=no
   9953   fi
   9954 else
   9955   enableval=no
   9956   enable_88_color=no
   9957 
   9958 fi;
   9959 	echo "$as_me:9959: result: $enable_88_color" >&5
   9960 echo "${ECHO_T}$enable_88_color" >&6
   9961 	if test "$enable_88_color" = yes ; then
   9962 		CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h"
   9963 		EXTRAHDRS="$EXTRAHDRS 88colres.h"
   9964 		cat >>confdefs.h <<\EOF
   9965 #define OPT_88_COLORS 1
   9966 EOF
   9967 
   9968 	fi
   9969 	fi
   9970 
   9971 fi
   9972 
   9973 echo "$as_me:9973: checking if you want blinking cursor" >&5
   9974 echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6
   9975 
   9976 # Check whether --enable-blink-cursor or --disable-blink-cursor was given.
   9977 if test "${enable_blink_cursor+set}" = set; then
   9978   enableval="$enable_blink_cursor"
   9979   test "$enableval" != no && enableval=yes
   9980   if test "$enableval" != "yes" ; then
   9981     enable_blink_curs=no
   9982   else
   9983     enable_blink_curs=yes
   9984   fi
   9985 else
   9986   enableval=yes
   9987   enable_blink_curs=yes
   9988 
   9989 fi;
   9990 echo "$as_me:9990: result: $enable_blink_curs" >&5
   9991 echo "${ECHO_T}$enable_blink_curs" >&6
   9992 test "$enable_blink_curs" = no && cat >>confdefs.h <<\EOF
   9993 #define OPT_BLINK_CURS 0
   9994 EOF
   9995 
   9996 echo "$as_me:9996: checking if you want to ignore Linux's broken palette-strings" >&5
   9997 echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6
   9998 
   9999 case $host_os in #(vi
   10000 linux*)
   10001 	assume_broken_osc=yes ;; #(vi
   10002 *)
   10003 	assume_broken_osc=no ;;
   10004 esac
   10005 
   10006 # Check whether --enable-broken-osc or --disable-broken-osc was given.
   10007 if test "${enable_broken_osc+set}" = set; then
   10008   enableval="$enable_broken_osc"
   10009   test "$enableval" != no && enableval=yes
   10010   if test "$enableval" != "$assume_broken_osc" ; then
   10011     enable_broken_osc=$enableval
   10012   else
   10013     enable_broken_osc=$enableval
   10014   fi
   10015 else
   10016   enableval=$assume_broken_osc
   10017   enable_broken_osc=$enableval
   10018 
   10019 fi;
   10020 echo "$as_me:10020: result: $enable_broken_osc" >&5
   10021 echo "${ECHO_T}$enable_broken_osc" >&6
   10022 if test "$enable_broken_osc" = yes ; then
   10023 	cat >>confdefs.h <<\EOF
   10024 #define OPT_BROKEN_OSC 1
   10025 EOF
   10026 
   10027 else
   10028 	cat >>confdefs.h <<\EOF
   10029 #define OPT_BROKEN_OSC 0
   10030 EOF
   10031 
   10032 fi
   10033 
   10034 echo "$as_me:10034: checking if you want to allow broken string-terminators" >&5
   10035 echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6
   10036 
   10037 # Check whether --enable-broken-st or --disable-broken-st was given.
   10038 if test "${enable_broken_st+set}" = set; then
   10039   enableval="$enable_broken_st"
   10040   test "$enableval" != yes && enableval=no
   10041   if test "$enableval" != "no" ; then
   10042     enable_broken_st=yes
   10043   else
   10044     enable_broken_st=no
   10045   fi
   10046 else
   10047   enableval=no
   10048   enable_broken_st=no
   10049 
   10050 fi;
   10051 echo "$as_me:10051: result: $enable_broken_st" >&5
   10052 echo "${ECHO_T}$enable_broken_st" >&6
   10053 test "$enable_broken_st" = no && cat >>confdefs.h <<\EOF
   10054 #define OPT_BROKEN_ST 0
   10055 EOF
   10056 
   10057 echo "$as_me:10057: checking if you want printable 128-159" >&5
   10058 echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6
   10059 
   10060 # Check whether --enable-c1-print or --disable-c1-print was given.
   10061 if test "${enable_c1_print+set}" = set; then
   10062   enableval="$enable_c1_print"
   10063   test "$enableval" != no && enableval=yes
   10064   if test "$enableval" != "yes" ; then
   10065     enable_c1_print=no
   10066   else
   10067     enable_c1_print=yes
   10068   fi
   10069 else
   10070   enableval=yes
   10071   enable_c1_print=yes
   10072 
   10073 fi;
   10074 echo "$as_me:10074: result: $enable_c1_print" >&5
   10075 echo "${ECHO_T}$enable_c1_print" >&6
   10076 test "$enable_c1_print" = no && cat >>confdefs.h <<\EOF
   10077 #define OPT_C1_PRINT 0
   10078 EOF
   10079 
   10080 if test "$enable_ansi_color" = yes ; then
   10081 
   10082 	echo "$as_me:10082: checking if you want bold colors mapped like IBM PC" >&5
   10083 echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6
   10084 
   10085 # Check whether --enable-bold-color or --disable-bold-color was given.
   10086 if test "${enable_bold_color+set}" = set; then
   10087   enableval="$enable_bold_color"
   10088   test "$enableval" != no && enableval=yes
   10089   if test "$enableval" != "yes" ; then
   10090     enable_pc_color=no
   10091   else
   10092     enable_pc_color=yes
   10093   fi
   10094 else
   10095   enableval=yes
   10096   enable_pc_color=yes
   10097 
   10098 fi;
   10099 	echo "$as_me:10099: result: $enable_pc_color" >&5
   10100 echo "${ECHO_T}$enable_pc_color" >&6
   10101 	test "$enable_pc_color" = no && cat >>confdefs.h <<\EOF
   10102 #define OPT_PC_COLORS 0
   10103 EOF
   10104 
   10105 	echo "$as_me:10105: checking if you want separate color-classes" >&5
   10106 echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6
   10107 
   10108 # Check whether --enable-color-class or --disable-color-class was given.
   10109 if test "${enable_color_class+set}" = set; then
   10110   enableval="$enable_color_class"
   10111   test "$enableval" != no && enableval=yes
   10112   if test "$enableval" != "yes" ; then
   10113     enable_color_class=no
   10114   else
   10115     enable_color_class=yes
   10116   fi
   10117 else
   10118   enableval=yes
   10119   enable_color_class=yes
   10120 
   10121 fi;
   10122 	echo "$as_me:10122: result: $enable_color_class" >&5
   10123 echo "${ECHO_T}$enable_color_class" >&6
   10124 	test "$enable_color_class" = no && cat >>confdefs.h <<\EOF
   10125 #define OPT_COLOR_CLASS FALSE
   10126 EOF
   10127 
   10128 	echo "$as_me:10128: checking if you want color-mode enabled by default" >&5
   10129 echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6
   10130 
   10131 # Check whether --enable-color-mode or --disable-color-mode was given.
   10132 if test "${enable_color_mode+set}" = set; then
   10133   enableval="$enable_color_mode"
   10134   test "$enableval" != no && enableval=yes
   10135   if test "$enableval" != "yes" ; then
   10136     default_colormode=no
   10137   else
   10138     default_colormode=yes
   10139   fi
   10140 else
   10141   enableval=yes
   10142   default_colormode=yes
   10143 
   10144 fi;
   10145 	echo "$as_me:10145: result: $default_colormode" >&5
   10146 echo "${ECHO_T}$default_colormode" >&6
   10147 	test "$default_colormode" = no && cat >>confdefs.h <<\EOF
   10148 #define DFT_COLORMODE FALSE
   10149 EOF
   10150 
   10151 fi
   10152 
   10153 echo "$as_me:10153: checking if you want support for color highlighting" >&5
   10154 echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6
   10155 
   10156 # Check whether --enable-highlighting or --disable-highlighting was given.
   10157 if test "${enable_highlighting+set}" = set; then
   10158   enableval="$enable_highlighting"
   10159   test "$enableval" != no && enableval=yes
   10160   if test "$enableval" != "yes" ; then
   10161     default_highlight=no
   10162   else
   10163     default_highlight=yes
   10164   fi
   10165 else
   10166   enableval=yes
   10167   default_highlight=yes
   10168 
   10169 fi;
   10170 echo "$as_me:10170: result: $default_highlight" >&5
   10171 echo "${ECHO_T}$default_highlight" >&6
   10172 test "$default_highlight" = no && cat >>confdefs.h <<\EOF
   10173 #define OPT_HIGHLIGHT_COLOR 0
   10174 EOF
   10175 
   10176 echo "$as_me:10176: checking if you want support for doublesize characters" >&5
   10177 echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6
   10178 
   10179 # Check whether --enable-doublechars or --disable-doublechars was given.
   10180 if test "${enable_doublechars+set}" = set; then
   10181   enableval="$enable_doublechars"
   10182   test "$enableval" != no && enableval=yes
   10183   if test "$enableval" != "yes" ; then
   10184     enable_doublechars=no
   10185   else
   10186     enable_doublechars=yes
   10187   fi
   10188 else
   10189   enableval=yes
   10190   enable_doublechars=yes
   10191 
   10192 fi;
   10193 echo "$as_me:10193: result: $enable_doublechars" >&5
   10194 echo "${ECHO_T}$enable_doublechars" >&6
   10195 test "$enable_doublechars" = no && cat >>confdefs.h <<\EOF
   10196 #define OPT_DEC_CHRSET 0
   10197 EOF
   10198 
   10199 echo "$as_me:10199: checking if you want fallback-support for box characters" >&5
   10200 echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6
   10201 
   10202 # Check whether --enable-boxchars or --disable-boxchars was given.
   10203 if test "${enable_boxchars+set}" = set; then
   10204   enableval="$enable_boxchars"
   10205   test "$enableval" != no && enableval=yes
   10206   if test "$enableval" != "yes" ; then
   10207     enable_boxchars=no
   10208   else
   10209     enable_boxchars=yes
   10210   fi
   10211 else
   10212   enableval=yes
   10213   enable_boxchars=yes
   10214 
   10215 fi;
   10216 echo "$as_me:10216: result: $enable_boxchars" >&5
   10217 echo "${ECHO_T}$enable_boxchars" >&6
   10218 test "$enable_boxchars" = no && cat >>confdefs.h <<\EOF
   10219 #define OPT_BOX_CHARS 0
   10220 EOF
   10221 
   10222 echo "$as_me:10222: checking if you want to allow spawning new xterms" >&5
   10223 echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6
   10224 
   10225 # Check whether --enable-exec-xterm or --disable-exec-xterm was given.
   10226 if test "${enable_exec_xterm+set}" = set; then
   10227   enableval="$enable_exec_xterm"
   10228   test "$enableval" != yes && enableval=no
   10229   if test "$enableval" != "no" ; then
   10230     enable_exec_xterm=yes
   10231   else
   10232     enable_exec_xterm=no
   10233   fi
   10234 else
   10235   enableval=no
   10236   enable_exec_xterm=no
   10237 
   10238 fi;
   10239 echo "$as_me:10239: result: $enable_exec_xterm" >&5
   10240 echo "${ECHO_T}$enable_exec_xterm" >&6
   10241 if test "$enable_exec_xterm" = yes ; then
   10242 
   10243 echo "$as_me:10243: checking for proc tree with cwd-support" >&5
   10244 echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6
   10245 if test "${cf_cv_procfs_cwd+set}" = set; then
   10246   echo $ECHO_N "(cached) $ECHO_C" >&6
   10247 else
   10248 
   10249 cf_cv_procfs_cwd=no
   10250 for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc
   10251 do
   10252 	if test -d $cf_path && \
   10253 	   test -d $cf_path/$$ && \
   10254 	   ( test -d $cf_path/$$/cwd || \
   10255 	     test -L $cf_path/$$/cwd ); then
   10256 		cf_cv_procfs_cwd=$cf_path
   10257 		break
   10258 	fi
   10259 done
   10260 
   10261 fi
   10262 echo "$as_me:10262: result: $cf_cv_procfs_cwd" >&5
   10263 echo "${ECHO_T}$cf_cv_procfs_cwd" >&6
   10264 
   10265 	if test "$cf_cv_procfs_cwd" = no ; then
   10266 		{ echo "$as_me:10266: WARNING: no suitable proc filesystem found" >&5
   10267 echo "$as_me: WARNING: no suitable proc filesystem found" >&2;}
   10268 	else
   10269 		cat >>confdefs.h <<EOF
   10270 #define PROCFS_ROOT "$cf_cv_procfs_cwd"
   10271 EOF
   10272 
   10273 		cat >>confdefs.h <<\EOF
   10274 #define OPT_EXEC_XTERM 1
   10275 EOF
   10276 
   10277 	fi
   10278 fi
   10279 
   10280 echo "$as_me:10280: checking if you want to use FreeType library" >&5
   10281 echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6
   10282 
   10283 # Check whether --enable-freetype or --disable-freetype was given.
   10284 if test "${enable_freetype+set}" = set; then
   10285   enableval="$enable_freetype"
   10286   test "$enableval" != no && enableval=yes
   10287   if test "$enableval" != "yes" ; then
   10288     enable_freetype=no
   10289   else
   10290     enable_freetype=yes
   10291   fi
   10292 else
   10293   enableval=yes
   10294   enable_freetype=yes
   10295 
   10296 fi;
   10297 echo "$as_me:10297: result: $enable_freetype" >&5
   10298 echo "${ECHO_T}$enable_freetype" >&6
   10299 if test "$enable_freetype" = yes ; then
   10300 
   10301 echo "$as_me:10301: checking if you want to use pkg-config" >&5
   10302 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
   10303 
   10304 # Check whether --with-pkg-config or --without-pkg-config was given.
   10305 if test "${with_pkg_config+set}" = set; then
   10306   withval="$with_pkg_config"
   10307   cf_pkg_config=$withval
   10308 else
   10309   cf_pkg_config=yes
   10310 fi;
   10311 echo "$as_me:10311: result: $cf_pkg_config" >&5
   10312 echo "${ECHO_T}$cf_pkg_config" >&6
   10313 
   10314 case $cf_pkg_config in #(vi
   10315 no) #(vi
   10316 	PKG_CONFIG=none
   10317 	;;
   10318 yes) #(vi
   10319 	# Extract the first word of "pkg-config", so it can be a program name with args.
   10320 set dummy pkg-config; ac_word=$2
   10321 echo "$as_me:10321: checking for $ac_word" >&5
   10322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10323 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
   10324   echo $ECHO_N "(cached) $ECHO_C" >&6
   10325 else
   10326   case $PKG_CONFIG in
   10327   [\\/]* | ?:[\\/]*)
   10328   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   10329   ;;
   10330   *)
   10331   ac_save_IFS=$IFS; IFS=$ac_path_separator
   10332 ac_dummy="$PATH"
   10333 for ac_dir in $ac_dummy; do
   10334   IFS=$ac_save_IFS
   10335   test -z "$ac_dir" && ac_dir=.
   10336   if $as_executable_p "$ac_dir/$ac_word"; then
   10337    ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
   10338    echo "$as_me:10338: found $ac_dir/$ac_word" >&5
   10339    break
   10340 fi
   10341 done
   10342 
   10343   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
   10344   ;;
   10345 esac
   10346 fi
   10347 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   10348 
   10349 if test -n "$PKG_CONFIG"; then
   10350   echo "$as_me:10350: result: $PKG_CONFIG" >&5
   10351 echo "${ECHO_T}$PKG_CONFIG" >&6
   10352 else
   10353   echo "$as_me:10353: result: no" >&5
   10354 echo "${ECHO_T}no" >&6
   10355 fi
   10356 
   10357 	;;
   10358 *)
   10359 	PKG_CONFIG=$withval
   10360 	;;
   10361 esac
   10362 
   10363 test -z "$PKG_CONFIG" && PKG_CONFIG=none
   10364 if test "$PKG_CONFIG" != none ; then
   10365 
   10366 if test "x$prefix" != xNONE; then
   10367   cf_path_syntax="$prefix"
   10368 else
   10369   cf_path_syntax="$ac_default_prefix"
   10370 fi
   10371 
   10372 case ".$PKG_CONFIG" in #(vi
   10373 .\$\(*\)*|.\'*\'*) #(vi
   10374   ;;
   10375 ..|./*|.\\*) #(vi
   10376   ;;
   10377 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
   10378   ;;
   10379 .\${*prefix}*) #(vi
   10380   eval PKG_CONFIG="$PKG_CONFIG"
   10381   case ".$PKG_CONFIG" in #(vi
   10382   .NONE/*)
   10383     PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
   10384     ;;
   10385   esac
   10386   ;; #(vi
   10387 .no|.NONE/*)
   10388   PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
   10389   ;;
   10390 *)
   10391   { { echo "$as_me:10391: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
   10392 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
   10393    { (exit 1); exit 1; }; }
   10394   ;;
   10395 esac
   10396 
   10397 fi
   10398 
   10399 cf_extra_freetype_libs=
   10400 FREETYPE_CONFIG=none
   10401 FREETYPE_PARAMS=
   10402 
   10403 echo "$as_me:10403: checking if you specified -D/-I options for FreeType" >&5
   10404 echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6
   10405 
   10406 # Check whether --with-freetype-cflags or --without-freetype-cflags was given.
   10407 if test "${with_freetype_cflags+set}" = set; then
   10408   withval="$with_freetype_cflags"
   10409   cf_cv_x_freetype_incs="$with_freetype_cflags"
   10410 else
   10411   cf_cv_x_freetype_incs=no
   10412 fi;
   10413 echo "$as_me:10413: result: $cf_cv_x_freetype_incs" >&5
   10414 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
   10415 
   10416 echo "$as_me:10416: checking if you specified -L/-l options for FreeType" >&5
   10417 echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6
   10418 
   10419 # Check whether --with-freetype-libs or --without-freetype-libs was given.
   10420 if test "${with_freetype_libs+set}" = set; then
   10421   withval="$with_freetype_libs"
   10422   cf_cv_x_freetype_libs="$with_freetype_libs"
   10423 else
   10424   cf_cv_x_freetype_libs=no
   10425 fi;
   10426 echo "$as_me:10426: result: $cf_cv_x_freetype_libs" >&5
   10427 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
   10428 
   10429 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
   10430 	FREETYPE_CONFIG=$PKG_CONFIG
   10431 	FREETYPE_PARAMS=xft
   10432 else
   10433 	# Extract the first word of "xft-config", so it can be a program name with args.
   10434 set dummy xft-config; ac_word=$2
   10435 echo "$as_me:10435: checking for $ac_word" >&5
   10436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10437 if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then
   10438   echo $ECHO_N "(cached) $ECHO_C" >&6
   10439 else
   10440   case $FREETYPE_XFT_CONFIG in
   10441   [\\/]* | ?:[\\/]*)
   10442   ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path.
   10443   ;;
   10444   *)
   10445   ac_save_IFS=$IFS; IFS=$ac_path_separator
   10446 ac_dummy="$PATH"
   10447 for ac_dir in $ac_dummy; do
   10448   IFS=$ac_save_IFS
   10449   test -z "$ac_dir" && ac_dir=.
   10450   if $as_executable_p "$ac_dir/$ac_word"; then
   10451    ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word"
   10452    echo "$as_me:10452: found $ac_dir/$ac_word" >&5
   10453    break
   10454 fi
   10455 done
   10456 
   10457   test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none"
   10458   ;;
   10459 esac
   10460 fi
   10461 FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG
   10462 
   10463 if test -n "$FREETYPE_XFT_CONFIG"; then
   10464   echo "$as_me:10464: result: $FREETYPE_XFT_CONFIG" >&5
   10465 echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6
   10466 else
   10467   echo "$as_me:10467: result: no" >&5
   10468 echo "${ECHO_T}no" >&6
   10469 fi
   10470 
   10471 	if test "$FREETYPE_XFT_CONFIG" != none; then
   10472 		FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG
   10473 	else
   10474 		cf_extra_freetype_libs="-lXft"
   10475 		# Extract the first word of "freetype-config", so it can be a program name with args.
   10476 set dummy freetype-config; ac_word=$2
   10477 echo "$as_me:10477: checking for $ac_word" >&5
   10478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10479 if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then
   10480   echo $ECHO_N "(cached) $ECHO_C" >&6
   10481 else
   10482   case $FREETYPE_OLD_CONFIG in
   10483   [\\/]* | ?:[\\/]*)
   10484   ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path.
   10485   ;;
   10486   *)
   10487   ac_save_IFS=$IFS; IFS=$ac_path_separator
   10488 ac_dummy="$PATH"
   10489 for ac_dir in $ac_dummy; do
   10490   IFS=$ac_save_IFS
   10491   test -z "$ac_dir" && ac_dir=.
   10492   if $as_executable_p "$ac_dir/$ac_word"; then
   10493    ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word"
   10494    echo "$as_me:10494: found $ac_dir/$ac_word" >&5
   10495    break
   10496 fi
   10497 done
   10498 
   10499   test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none"
   10500   ;;
   10501 esac
   10502 fi
   10503 FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG
   10504 
   10505 if test -n "$FREETYPE_OLD_CONFIG"; then
   10506   echo "$as_me:10506: result: $FREETYPE_OLD_CONFIG" >&5
   10507 echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6
   10508 else
   10509   echo "$as_me:10509: result: no" >&5
   10510 echo "${ECHO_T}no" >&6
   10511 fi
   10512 
   10513 		if test "$FREETYPE_OLD_CONFIG" != none; then
   10514 			FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG
   10515 		fi
   10516 	fi
   10517 fi
   10518 echo "$as_me:10518: checking for FreeType config" >&5
   10519 echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6
   10520 echo "$as_me:10520: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
   10521 echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6
   10522 
   10523 if test "$FREETYPE_CONFIG" != none ; then
   10524 
   10525 	if test "$cf_cv_x_freetype_incs" = no ; then
   10526 		echo "$as_me:10526: checking for $FREETYPE_CONFIG cflags" >&5
   10527 echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
   10528 		cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
   10529 		echo "$as_me:10529: result: $cf_cv_x_freetype_incs" >&5
   10530 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
   10531 	fi
   10532 
   10533 	if test "$cf_cv_x_freetype_libs" = no ; then
   10534 		echo "$as_me:10534: checking for $FREETYPE_CONFIG libs" >&5
   10535 echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
   10536 		cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
   10537 		echo "$as_me:10537: result: $cf_cv_x_freetype_libs" >&5
   10538 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
   10539 	fi
   10540 
   10541 fi
   10542 
   10543 if test "$cf_cv_x_freetype_incs" = no ; then
   10544 	cf_cv_x_freetype_incs=
   10545 fi
   10546 
   10547 if test "$cf_cv_x_freetype_libs" = no ; then
   10548 	cf_cv_x_freetype_libs=-lXft
   10549 fi
   10550 
   10551 echo "$as_me:10551: checking if we can link with FreeType libraries" >&5
   10552 echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6
   10553 
   10554 cf_save_LIBS="$LIBS"
   10555 cf_save_INCS="$CPPFLAGS"
   10556 
   10557 LIBS="$cf_cv_x_freetype_libs $LIBS"
   10558 CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs"
   10559 
   10560 cat >conftest.$ac_ext <<_ACEOF
   10561 #line 10561 "configure"
   10562 #include "confdefs.h"
   10563 
   10564 #include <X11/Xlib.h>
   10565 #include <X11/extensions/Xrender.h>
   10566 #include <X11/Xft/Xft.h>
   10567 int
   10568 main ()
   10569 {
   10570 
   10571 	XftPattern  *pat = XftNameParse ("name");
   10572   ;
   10573   return 0;
   10574 }
   10575 _ACEOF
   10576 rm -f conftest.$ac_objext conftest$ac_exeext
   10577 if { (eval echo "$as_me:10577: \"$ac_link\"") >&5
   10578   (eval $ac_link) 2>&5
   10579   ac_status=$?
   10580   echo "$as_me:10580: \$? = $ac_status" >&5
   10581   (exit $ac_status); } &&
   10582          { ac_try='test -s conftest$ac_exeext'
   10583   { (eval echo "$as_me:10583: \"$ac_try\"") >&5
   10584   (eval $ac_try) 2>&5
   10585   ac_status=$?
   10586   echo "$as_me:10586: \$? = $ac_status" >&5
   10587   (exit $ac_status); }; }; then
   10588   cf_cv_found_freetype=yes
   10589 else
   10590   echo "$as_me: failed program was:" >&5
   10591 cat conftest.$ac_ext >&5
   10592 cf_cv_found_freetype=no
   10593 fi
   10594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10595 echo "$as_me:10595: result: $cf_cv_found_freetype" >&5
   10596 echo "${ECHO_T}$cf_cv_found_freetype" >&6
   10597 
   10598 LIBS="$cf_save_LIBS"
   10599 CPPFLAGS="$cf_save_INCS"
   10600 
   10601 if test "$cf_cv_found_freetype" = yes ; then
   10602 	LIBS="$cf_cv_x_freetype_libs $LIBS"
   10603 
   10604 cf_fix_cppflags=no
   10605 cf_new_cflags=
   10606 cf_new_cppflags=
   10607 cf_new_extra_cppflags=
   10608 
   10609 for cf_add_cflags in $cf_cv_x_freetype_incs
   10610 do
   10611 case $cf_fix_cppflags in
   10612 no)
   10613 	case $cf_add_cflags in #(vi
   10614 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   10615 		case $cf_add_cflags in
   10616 		-D*)
   10617 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10618 
   10619 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   10620 			&& test -z "${cf_tst_cflags}" \
   10621 			&& cf_fix_cppflags=yes
   10622 
   10623 			if test $cf_fix_cppflags = yes ; then
   10624 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10625 				continue
   10626 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10627 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10628 				continue
   10629 			fi
   10630 			;;
   10631 		esac
   10632 		case "$CPPFLAGS" in
   10633 		*$cf_add_cflags) #(vi
   10634 			;;
   10635 		*) #(vi
   10636 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   10637 			;;
   10638 		esac
   10639 		;;
   10640 	*)
   10641 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   10642 		;;
   10643 	esac
   10644 	;;
   10645 yes)
   10646 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10647 
   10648 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   10649 
   10650 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   10651 	&& test -z "${cf_tst_cflags}" \
   10652 	&& cf_fix_cppflags=no
   10653 	;;
   10654 esac
   10655 done
   10656 
   10657 if test -n "$cf_new_cflags" ; then
   10658 
   10659 	CFLAGS="$CFLAGS $cf_new_cflags"
   10660 fi
   10661 
   10662 if test -n "$cf_new_cppflags" ; then
   10663 
   10664 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   10665 fi
   10666 
   10667 if test -n "$cf_new_extra_cppflags" ; then
   10668 
   10669 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   10670 fi
   10671 
   10672 	cat >>confdefs.h <<\EOF
   10673 #define XRENDERFONT 1
   10674 EOF
   10675 
   10676 for ac_func in \
   10677 	XftDrawCharSpec \
   10678 	XftDrawSetClip \
   10679 	XftDrawSetClipRectangles \
   10680 
   10681 do
   10682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10683 echo "$as_me:10683: checking for $ac_func" >&5
   10684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   10685 if eval "test \"\${$as_ac_var+set}\" = set"; then
   10686   echo $ECHO_N "(cached) $ECHO_C" >&6
   10687 else
   10688   cat >conftest.$ac_ext <<_ACEOF
   10689 #line 10689 "configure"
   10690 #include "confdefs.h"
   10691 /* System header to define __stub macros and hopefully few prototypes,
   10692     which can conflict with char $ac_func (); below.  */
   10693 #include <assert.h>
   10694 /* Override any gcc2 internal prototype to avoid an error.  */
   10695 #ifdef __cplusplus
   10696 extern "C"
   10697 #endif
   10698 /* We use char because int might match the return type of a gcc2
   10699    builtin and then its argument prototype would still apply.  */
   10700 char $ac_func ();
   10701 char (*f) ();
   10702 
   10703 int
   10704 main ()
   10705 {
   10706 /* The GNU C library defines this for functions which it implements
   10707     to always fail with ENOSYS.  Some functions are actually named
   10708     something starting with __ and the normal name is an alias.  */
   10709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   10710 choke me
   10711 #else
   10712 f = $ac_func;
   10713 #endif
   10714 
   10715   ;
   10716   return 0;
   10717 }
   10718 _ACEOF
   10719 rm -f conftest.$ac_objext conftest$ac_exeext
   10720 if { (eval echo "$as_me:10720: \"$ac_link\"") >&5
   10721   (eval $ac_link) 2>&5
   10722   ac_status=$?
   10723   echo "$as_me:10723: \$? = $ac_status" >&5
   10724   (exit $ac_status); } &&
   10725          { ac_try='test -s conftest$ac_exeext'
   10726   { (eval echo "$as_me:10726: \"$ac_try\"") >&5
   10727   (eval $ac_try) 2>&5
   10728   ac_status=$?
   10729   echo "$as_me:10729: \$? = $ac_status" >&5
   10730   (exit $ac_status); }; }; then
   10731   eval "$as_ac_var=yes"
   10732 else
   10733   echo "$as_me: failed program was:" >&5
   10734 cat conftest.$ac_ext >&5
   10735 eval "$as_ac_var=no"
   10736 fi
   10737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10738 fi
   10739 echo "$as_me:10739: result: `eval echo '${'$as_ac_var'}'`" >&5
   10740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   10741 if test `eval echo '${'$as_ac_var'}'` = yes; then
   10742   cat >>confdefs.h <<EOF
   10743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10744 EOF
   10745 
   10746 fi
   10747 done
   10748 
   10749 else
   10750 	{ echo "$as_me:10750: WARNING: No libraries found for FreeType" >&5
   10751 echo "$as_me: WARNING: No libraries found for FreeType" >&2;}
   10752 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
   10753 fi
   10754 
   10755 # FIXME: revisit this if needed
   10756 
   10757 else
   10758 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
   10759 fi
   10760 
   10761 echo "$as_me:10761: checking if you want support for HP-style function keys" >&5
   10762 echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6
   10763 
   10764 # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given.
   10765 if test "${enable_hp_fkeys+set}" = set; then
   10766   enableval="$enable_hp_fkeys"
   10767   test "$enableval" != yes && enableval=no
   10768   if test "$enableval" != "no" ; then
   10769     enable_hp_fkeys=yes
   10770   else
   10771     enable_hp_fkeys=no
   10772   fi
   10773 else
   10774   enableval=no
   10775   enable_hp_fkeys=no
   10776 
   10777 fi;
   10778 echo "$as_me:10778: result: $enable_hp_fkeys" >&5
   10779 echo "${ECHO_T}$enable_hp_fkeys" >&6
   10780 if test "$enable_hp_fkeys" = yes ; then
   10781 	cat >>confdefs.h <<\EOF
   10782 #define OPT_HP_FUNC_KEYS 1
   10783 EOF
   10784 
   10785 fi
   10786 
   10787 echo "$as_me:10787: checking if you want support for SCO-style function keys" >&5
   10788 echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6
   10789 
   10790 # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given.
   10791 if test "${enable_sco_fkeys+set}" = set; then
   10792   enableval="$enable_sco_fkeys"
   10793   test "$enableval" != yes && enableval=no
   10794   if test "$enableval" != "no" ; then
   10795     enable_sco_fkeys=yes
   10796   else
   10797     enable_sco_fkeys=no
   10798   fi
   10799 else
   10800   enableval=no
   10801   enable_sco_fkeys=no
   10802 
   10803 fi;
   10804 echo "$as_me:10804: result: $enable_sco_fkeys" >&5
   10805 echo "${ECHO_T}$enable_sco_fkeys" >&6
   10806 if test "$enable_sco_fkeys" = yes ; then
   10807 	cat >>confdefs.h <<\EOF
   10808 #define OPT_SCO_FUNC_KEYS 1
   10809 EOF
   10810 
   10811 fi
   10812 
   10813 echo "$as_me:10813: checking if you want support for Sun-style function keys" >&5
   10814 echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6
   10815 
   10816 # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given.
   10817 if test "${enable_sun_fkeys+set}" = set; then
   10818   enableval="$enable_sun_fkeys"
   10819   test "$enableval" != no && enableval=yes
   10820   if test "$enableval" != "yes" ; then
   10821     enable_sun_fkeys=no
   10822   else
   10823     enable_sun_fkeys=yes
   10824   fi
   10825 else
   10826   enableval=yes
   10827   enable_sun_fkeys=yes
   10828 
   10829 fi;
   10830 echo "$as_me:10830: result: $enable_sun_fkeys" >&5
   10831 echo "${ECHO_T}$enable_sun_fkeys" >&6
   10832 if test "$enable_sun_fkeys" = no ; then
   10833 	cat >>confdefs.h <<\EOF
   10834 #define OPT_SUN_FUNC_KEYS 0
   10835 EOF
   10836 
   10837 fi
   10838 
   10839 echo "$as_me:10839: checking if you want saved-lines stored as a FIFO" >&5
   10840 echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6
   10841 
   10842 # Check whether --enable-fifo-lines or --disable-fifo-lines was given.
   10843 if test "${enable_fifo_lines+set}" = set; then
   10844   enableval="$enable_fifo_lines"
   10845   test "$enableval" != no && enableval=yes
   10846   if test "$enableval" != "yes" ; then
   10847     enable_fifo_lines=no
   10848   else
   10849     enable_fifo_lines=yes
   10850   fi
   10851 else
   10852   enableval=yes
   10853   enable_fifo_lines=yes
   10854 
   10855 fi;
   10856 echo "$as_me:10856: result: $enable_fifo_lines" >&5
   10857 echo "${ECHO_T}$enable_fifo_lines" >&6
   10858 if test "$enable_fifo_lines" = yes ; then
   10859 	cat >>confdefs.h <<\EOF
   10860 #define OPT_FIFO_LINES 1
   10861 EOF
   10862 
   10863 fi
   10864 
   10865 echo "$as_me:10865: checking if you want support for internationalization" >&5
   10866 echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6
   10867 
   10868 # Check whether --enable-i18n or --disable-i18n was given.
   10869 if test "${enable_i18n+set}" = set; then
   10870   enableval="$enable_i18n"
   10871   test "$enableval" != no && enableval=yes
   10872   if test "$enableval" != "yes" ; then
   10873     enable_i18n=no
   10874   else
   10875     enable_i18n=yes
   10876   fi
   10877 else
   10878   enableval=yes
   10879   enable_i18n=yes
   10880 
   10881 fi;
   10882 echo "$as_me:10882: result: $enable_i18n" >&5
   10883 echo "${ECHO_T}$enable_i18n" >&6
   10884 if test "$enable_i18n" = no ; then
   10885 	cat >>confdefs.h <<\EOF
   10886 #define OPT_I18N_SUPPORT 0
   10887 EOF
   10888 
   10889 fi
   10890 
   10891 echo "$as_me:10891: checking if you want support for initial-erase setup" >&5
   10892 echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6
   10893 
   10894 # Check whether --enable-initial-erase or --disable-initial-erase was given.
   10895 if test "${enable_initial_erase+set}" = set; then
   10896   enableval="$enable_initial_erase"
   10897   test "$enableval" != no && enableval=yes
   10898   if test "$enableval" != "yes" ; then
   10899     enable_ie=no
   10900   else
   10901     enable_ie=yes
   10902   fi
   10903 else
   10904   enableval=yes
   10905   enable_ie=yes
   10906 
   10907 fi;
   10908 echo "$as_me:10908: result: $enable_ie" >&5
   10909 echo "${ECHO_T}$enable_ie" >&6
   10910 if test "$enable_ie" = no ; then
   10911 	cat >>confdefs.h <<\EOF
   10912 #define OPT_INITIAL_ERASE 0
   10913 EOF
   10914 
   10915 fi
   10916 
   10917 echo "$as_me:10917: checking if you want support for input-method" >&5
   10918 echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6
   10919 
   10920 # Check whether --enable-input-method or --disable-input-method was given.
   10921 if test "${enable_input_method+set}" = set; then
   10922   enableval="$enable_input_method"
   10923   test "$enableval" != no && enableval=yes
   10924   if test "$enableval" != "yes" ; then
   10925     enable_ximp=no
   10926   else
   10927     enable_ximp=yes
   10928   fi
   10929 else
   10930   enableval=yes
   10931   enable_ximp=yes
   10932 
   10933 fi;
   10934 echo "$as_me:10934: result: $enable_ximp" >&5
   10935 echo "${ECHO_T}$enable_ximp" >&6
   10936 
   10937 echo "$as_me:10937: checking if X libraries support input-method" >&5
   10938 echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6
   10939 if test "${cf_cv_input_method+set}" = set; then
   10940   echo $ECHO_N "(cached) $ECHO_C" >&6
   10941 else
   10942 
   10943 cat >conftest.$ac_ext <<_ACEOF
   10944 #line 10944 "configure"
   10945 #include "confdefs.h"
   10946 
   10947 #include <X11/IntrinsicP.h>
   10948 #include <X11/Xatom.h>
   10949 #include <X11/Xutil.h>
   10950 #include <X11/Xmu/Atoms.h>
   10951 #include <X11/Xmu/Converters.h>
   10952 #include <X11/Xaw/XawImP.h>
   10953 
   10954 int
   10955 main ()
   10956 {
   10957 
   10958 {
   10959 	XIM xim;
   10960 	XIMStyles *xim_styles = 0;
   10961 	XIMStyle input_style;
   10962 	Widget w = 0;
   10963 
   10964 	XSetLocaleModifiers("@im=none");
   10965 	xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
   10966 	XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
   10967 	XCloseIM(xim);
   10968 	input_style = (XIMPreeditNothing | XIMStatusNothing);
   10969 }
   10970 
   10971   ;
   10972   return 0;
   10973 }
   10974 _ACEOF
   10975 rm -f conftest.$ac_objext conftest$ac_exeext
   10976 if { (eval echo "$as_me:10976: \"$ac_link\"") >&5
   10977   (eval $ac_link) 2>&5
   10978   ac_status=$?
   10979   echo "$as_me:10979: \$? = $ac_status" >&5
   10980   (exit $ac_status); } &&
   10981          { ac_try='test -s conftest$ac_exeext'
   10982   { (eval echo "$as_me:10982: \"$ac_try\"") >&5
   10983   (eval $ac_try) 2>&5
   10984   ac_status=$?
   10985   echo "$as_me:10985: \$? = $ac_status" >&5
   10986   (exit $ac_status); }; }; then
   10987   cf_cv_input_method=yes
   10988 else
   10989   echo "$as_me: failed program was:" >&5
   10990 cat conftest.$ac_ext >&5
   10991 cf_cv_input_method=no
   10992 fi
   10993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10994 fi
   10995 echo "$as_me:10995: result: $cf_cv_input_method" >&5
   10996 echo "${ECHO_T}$cf_cv_input_method" >&6
   10997 
   10998 test "$cf_cv_input_method" = no && enable_ximp=no
   10999 if test "$enable_ximp" = no ; then
   11000 	cat >>confdefs.h <<\EOF
   11001 #define OPT_INPUT_METHOD 0
   11002 EOF
   11003 
   11004 fi
   11005 
   11006 echo "$as_me:11006: checking if you want support for load-vt-fonts" >&5
   11007 echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6
   11008 
   11009 # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given.
   11010 if test "${enable_load_vt_fonts+set}" = set; then
   11011   enableval="$enable_load_vt_fonts"
   11012   test "$enableval" != yes && enableval=no
   11013   if test "$enableval" != "no" ; then
   11014     enable_load_vt_fonts=yes
   11015   else
   11016     enable_load_vt_fonts=no
   11017   fi
   11018 else
   11019   enableval=no
   11020   enable_load_vt_fonts=no
   11021 
   11022 fi;
   11023 echo "$as_me:11023: result: $enable_load_vt_fonts" >&5
   11024 echo "${ECHO_T}$enable_load_vt_fonts" >&6
   11025 if test "$enable_load_vt_fonts" = yes ; then
   11026 	cat >>confdefs.h <<\EOF
   11027 #define OPT_LOAD_VTFONTS 1
   11028 EOF
   11029 
   11030 fi
   11031 
   11032 echo "$as_me:11032: checking if you want support for logging" >&5
   11033 echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6
   11034 
   11035 # Check whether --enable-logging or --disable-logging was given.
   11036 if test "${enable_logging+set}" = set; then
   11037   enableval="$enable_logging"
   11038   test "$enableval" != yes && enableval=no
   11039   if test "$enableval" != "no" ; then
   11040     enable_logging=yes
   11041   else
   11042     enable_logging=no
   11043   fi
   11044 else
   11045   enableval=no
   11046   enable_logging=no
   11047 
   11048 fi;
   11049 echo "$as_me:11049: result: $enable_logging" >&5
   11050 echo "${ECHO_T}$enable_logging" >&6
   11051 if test "$enable_logging" = yes ; then
   11052 	cat >>confdefs.h <<\EOF
   11053 #define ALLOWLOGGING 1
   11054 EOF
   11055 
   11056 	echo "$as_me:11056: checking if you want to allow logging via a pipe" >&5
   11057 echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6
   11058 
   11059 # Check whether --enable-logfile-exec or --disable-logfile-exec was given.
   11060 if test "${enable_logfile_exec+set}" = set; then
   11061   enableval="$enable_logfile_exec"
   11062   test "$enableval" != yes && enableval=no
   11063   if test "$enableval" != "no" ; then
   11064     enable_log_exec=yes
   11065   else
   11066     enable_log_exec=no
   11067   fi
   11068 else
   11069   enableval=no
   11070   enable_log_exec=no
   11071 
   11072 fi;
   11073 	echo "$as_me:11073: result: $enable_log_exec" >&5
   11074 echo "${ECHO_T}$enable_log_exec" >&6
   11075 	if test "$enable_log_exec" = yes ; then
   11076 		cat >>confdefs.h <<\EOF
   11077 #define ALLOWLOGFILEEXEC 1
   11078 EOF
   11079 
   11080 	fi
   11081 fi
   11082 
   11083 echo "$as_me:11083: checking if you want support for iconify/maximize translations" >&5
   11084 echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6
   11085 
   11086 # Check whether --enable-maximize or --disable-maximize was given.
   11087 if test "${enable_maximize+set}" = set; then
   11088   enableval="$enable_maximize"
   11089   test "$enableval" != no && enableval=yes
   11090   if test "$enableval" != "yes" ; then
   11091     enable_maximize=no
   11092   else
   11093     enable_maximize=yes
   11094   fi
   11095 else
   11096   enableval=yes
   11097   enable_maximize=yes
   11098 
   11099 fi;
   11100 echo "$as_me:11100: result: $enable_maximize" >&5
   11101 echo "${ECHO_T}$enable_maximize" >&6
   11102 test "$enable_maximize" = no && cat >>confdefs.h <<\EOF
   11103 #define OPT_MAXIMIZE 0
   11104 EOF
   11105 
   11106 echo "$as_me:11106: checking if you want NumLock to override keyboard tables" >&5
   11107 echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6
   11108 
   11109 # Check whether --enable-num-lock or --disable-num-lock was given.
   11110 if test "${enable_num_lock+set}" = set; then
   11111   enableval="$enable_num_lock"
   11112   test "$enableval" != no && enableval=yes
   11113   if test "$enableval" != "yes" ; then
   11114     enable_numlock=no
   11115   else
   11116     enable_numlock=yes
   11117   fi
   11118 else
   11119   enableval=yes
   11120   enable_numlock=yes
   11121 
   11122 fi;
   11123 echo "$as_me:11123: result: $enable_numlock" >&5
   11124 echo "${ECHO_T}$enable_numlock" >&6
   11125 test "$enable_numlock" = no && cat >>confdefs.h <<\EOF
   11126 #define OPT_NUM_LOCK 0
   11127 EOF
   11128 
   11129 echo "$as_me:11129: checking if you want support for get/set of base64 selection data" >&5
   11130 echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6
   11131 
   11132 # Check whether --enable-paste64 or --disable-paste64 was given.
   11133 if test "${enable_paste64+set}" = set; then
   11134   enableval="$enable_paste64"
   11135   test "$enableval" != no && enableval=yes
   11136   if test "$enableval" != "yes" ; then
   11137     enable_paste64=no
   11138   else
   11139     enable_paste64=yes
   11140   fi
   11141 else
   11142   enableval=yes
   11143   enable_paste64=yes
   11144 
   11145 fi;
   11146 echo "$as_me:11146: result: $enable_paste64" >&5
   11147 echo "${ECHO_T}$enable_paste64" >&6
   11148 if test "$enable_paste64" = yes ; then
   11149 	cat >>confdefs.h <<\EOF
   11150 #define OPT_PASTE64 1
   11151 EOF
   11152 
   11153 else
   11154 	cat >>confdefs.h <<\EOF
   11155 #define OPT_PASTE64 0
   11156 EOF
   11157 
   11158 fi
   11159 
   11160 echo "$as_me:11160: checking if you want support for pty-handshaking" >&5
   11161 echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6
   11162 
   11163 # Check whether --enable-pty-handshake or --disable-pty-handshake was given.
   11164 if test "${enable_pty_handshake+set}" = set; then
   11165   enableval="$enable_pty_handshake"
   11166   test "$enableval" != no && enableval=yes
   11167   if test "$enableval" != "yes" ; then
   11168     enable_pty_handshake=no
   11169   else
   11170     enable_pty_handshake=yes
   11171   fi
   11172 else
   11173   enableval=yes
   11174   enable_pty_handshake=yes
   11175 
   11176 fi;
   11177 echo "$as_me:11177: result: $enable_pty_handshake" >&5
   11178 echo "${ECHO_T}$enable_pty_handshake" >&6
   11179 if test "$enable_pty_handshake" = yes ; then
   11180 	cat >>confdefs.h <<\EOF
   11181 #define OPT_PTY_HANDSHAKE 1
   11182 EOF
   11183 
   11184 else
   11185 	cat >>confdefs.h <<\EOF
   11186 #define OPT_PTY_HANDSHAKE 0
   11187 EOF
   11188 
   11189 fi
   11190 
   11191 echo "$as_me:11191: checking if you want support for mouse in readline applications" >&5
   11192 echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6
   11193 
   11194 # Check whether --enable-readline-mouse or --disable-readline-mouse was given.
   11195 if test "${enable_readline_mouse+set}" = set; then
   11196   enableval="$enable_readline_mouse"
   11197   test "$enableval" != yes && enableval=no
   11198   if test "$enableval" != "no" ; then
   11199     enable_readline_mouse=yes
   11200   else
   11201     enable_readline_mouse=no
   11202   fi
   11203 else
   11204   enableval=no
   11205   enable_readline_mouse=no
   11206 
   11207 fi;
   11208 echo "$as_me:11208: result: $enable_readline_mouse" >&5
   11209 echo "${ECHO_T}$enable_readline_mouse" >&6
   11210 if test "$enable_readline_mouse" = yes ; then
   11211 	cat >>confdefs.h <<\EOF
   11212 #define OPT_READLINE 1
   11213 EOF
   11214 
   11215 fi
   11216 
   11217 echo "$as_me:11217: checking if you want support for regular-expression selections" >&5
   11218 echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6
   11219 
   11220 # Check whether --enable-regex or --disable-regex was given.
   11221 if test "${enable_regex+set}" = set; then
   11222   enableval="$enable_regex"
   11223   test "$enableval" != no && enableval=yes
   11224   if test "$enableval" != "yes" ; then
   11225     enable_regex=no
   11226   else
   11227     enable_regex=yes
   11228   fi
   11229 else
   11230   enableval=yes
   11231   enable_regex=yes
   11232 
   11233 fi;
   11234 echo "$as_me:11234: result: $enable_regex" >&5
   11235 echo "${ECHO_T}$enable_regex" >&6
   11236 if test "$enable_regex" = yes ; then
   11237 
   11238 echo "$as_me:11238: checking if you want to use PCRE for regular-expressions" >&5
   11239 echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6
   11240 
   11241 # Check whether --with-pcre or --without-pcre was given.
   11242 if test "${with_pcre+set}" = set; then
   11243   withval="$with_pcre"
   11244 
   11245 fi;
   11246 test -z "$with_pcre" && with_pcre=no
   11247 echo "$as_me:11247: result: $with_pcre" >&5
   11248 echo "${ECHO_T}$with_pcre" >&6
   11249 
   11250 if test "$with_pcre" != no ; then
   11251 	echo "$as_me:11251: checking for pcre_compile in -lpcre" >&5
   11252 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
   11253 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
   11254   echo $ECHO_N "(cached) $ECHO_C" >&6
   11255 else
   11256   ac_check_lib_save_LIBS=$LIBS
   11257 LIBS="-lpcre  $LIBS"
   11258 cat >conftest.$ac_ext <<_ACEOF
   11259 #line 11259 "configure"
   11260 #include "confdefs.h"
   11261 
   11262 /* Override any gcc2 internal prototype to avoid an error.  */
   11263 #ifdef __cplusplus
   11264 extern "C"
   11265 #endif
   11266 /* We use char because int might match the return type of a gcc2
   11267    builtin and then its argument prototype would still apply.  */
   11268 char pcre_compile ();
   11269 int
   11270 main ()
   11271 {
   11272 pcre_compile ();
   11273   ;
   11274   return 0;
   11275 }
   11276 _ACEOF
   11277 rm -f conftest.$ac_objext conftest$ac_exeext
   11278 if { (eval echo "$as_me:11278: \"$ac_link\"") >&5
   11279   (eval $ac_link) 2>&5
   11280   ac_status=$?
   11281   echo "$as_me:11281: \$? = $ac_status" >&5
   11282   (exit $ac_status); } &&
   11283          { ac_try='test -s conftest$ac_exeext'
   11284   { (eval echo "$as_me:11284: \"$ac_try\"") >&5
   11285   (eval $ac_try) 2>&5
   11286   ac_status=$?
   11287   echo "$as_me:11287: \$? = $ac_status" >&5
   11288   (exit $ac_status); }; }; then
   11289   ac_cv_lib_pcre_pcre_compile=yes
   11290 else
   11291   echo "$as_me: failed program was:" >&5
   11292 cat conftest.$ac_ext >&5
   11293 ac_cv_lib_pcre_pcre_compile=no
   11294 fi
   11295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11296 LIBS=$ac_check_lib_save_LIBS
   11297 fi
   11298 echo "$as_me:11298: result: $ac_cv_lib_pcre_pcre_compile" >&5
   11299 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
   11300 if test $ac_cv_lib_pcre_pcre_compile = yes; then
   11301   echo "$as_me:11301: checking for pcreposix.h" >&5
   11302 echo $ECHO_N "checking for pcreposix.h... $ECHO_C" >&6
   11303 if test "${ac_cv_header_pcreposix_h+set}" = set; then
   11304   echo $ECHO_N "(cached) $ECHO_C" >&6
   11305 else
   11306   cat >conftest.$ac_ext <<_ACEOF
   11307 #line 11307 "configure"
   11308 #include "confdefs.h"
   11309 #include <pcreposix.h>
   11310 _ACEOF
   11311 if { (eval echo "$as_me:11311: \"$ac_cpp conftest.$ac_ext\"") >&5
   11312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   11313   ac_status=$?
   11314   egrep -v '^ *\+' conftest.er1 >conftest.err
   11315   rm -f conftest.er1
   11316   cat conftest.err >&5
   11317   echo "$as_me:11317: \$? = $ac_status" >&5
   11318   (exit $ac_status); } >/dev/null; then
   11319   if test -s conftest.err; then
   11320     ac_cpp_err=$ac_c_preproc_warn_flag
   11321   else
   11322     ac_cpp_err=
   11323   fi
   11324 else
   11325   ac_cpp_err=yes
   11326 fi
   11327 if test -z "$ac_cpp_err"; then
   11328   ac_cv_header_pcreposix_h=yes
   11329 else
   11330   echo "$as_me: failed program was:" >&5
   11331   cat conftest.$ac_ext >&5
   11332   ac_cv_header_pcreposix_h=no
   11333 fi
   11334 rm -f conftest.err conftest.$ac_ext
   11335 fi
   11336 echo "$as_me:11336: result: $ac_cv_header_pcreposix_h" >&5
   11337 echo "${ECHO_T}$ac_cv_header_pcreposix_h" >&6
   11338 if test $ac_cv_header_pcreposix_h = yes; then
   11339   echo "$as_me:11339: checking for pcreposix_regcomp in -lpcreposix" >&5
   11340 echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6
   11341 if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then
   11342   echo $ECHO_N "(cached) $ECHO_C" >&6
   11343 else
   11344   ac_check_lib_save_LIBS=$LIBS
   11345 LIBS="-lpcreposix "-lpcre" $LIBS"
   11346 cat >conftest.$ac_ext <<_ACEOF
   11347 #line 11347 "configure"
   11348 #include "confdefs.h"
   11349 
   11350 /* Override any gcc2 internal prototype to avoid an error.  */
   11351 #ifdef __cplusplus
   11352 extern "C"
   11353 #endif
   11354 /* We use char because int might match the return type of a gcc2
   11355    builtin and then its argument prototype would still apply.  */
   11356 char pcreposix_regcomp ();
   11357 int
   11358 main ()
   11359 {
   11360 pcreposix_regcomp ();
   11361   ;
   11362   return 0;
   11363 }
   11364 _ACEOF
   11365 rm -f conftest.$ac_objext conftest$ac_exeext
   11366 if { (eval echo "$as_me:11366: \"$ac_link\"") >&5
   11367   (eval $ac_link) 2>&5
   11368   ac_status=$?
   11369   echo "$as_me:11369: \$? = $ac_status" >&5
   11370   (exit $ac_status); } &&
   11371          { ac_try='test -s conftest$ac_exeext'
   11372   { (eval echo "$as_me:11372: \"$ac_try\"") >&5
   11373   (eval $ac_try) 2>&5
   11374   ac_status=$?
   11375   echo "$as_me:11375: \$? = $ac_status" >&5
   11376   (exit $ac_status); }; }; then
   11377   ac_cv_lib_pcreposix_pcreposix_regcomp=yes
   11378 else
   11379   echo "$as_me: failed program was:" >&5
   11380 cat conftest.$ac_ext >&5
   11381 ac_cv_lib_pcreposix_pcreposix_regcomp=no
   11382 fi
   11383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11384 LIBS=$ac_check_lib_save_LIBS
   11385 fi
   11386 echo "$as_me:11386: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5
   11387 echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6
   11388 if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then
   11389   cat >>confdefs.h <<\EOF
   11390 #define HAVE_LIB_PCRE 1
   11391 EOF
   11392 
   11393 				 cat >>confdefs.h <<\EOF
   11394 #define HAVE_PCREPOSIX_H 1
   11395 EOF
   11396 
   11397 				 LIBS="-lpcreposix -lpcre $LIBS"
   11398 else
   11399   { { echo "$as_me:11399: error: Cannot find PCRE POSIX library" >&5
   11400 echo "$as_me: error: Cannot find PCRE POSIX library" >&2;}
   11401    { (exit 1); exit 1; }; }
   11402 fi
   11403 
   11404 else
   11405   { { echo "$as_me:11405: error: Cannot find PCRE POSIX header" >&5
   11406 echo "$as_me: error: Cannot find PCRE POSIX header" >&2;}
   11407    { (exit 1); exit 1; }; }
   11408 fi
   11409 
   11410 else
   11411   { { echo "$as_me:11411: error: Cannot find PCRE library" >&5
   11412 echo "$as_me: error: Cannot find PCRE library" >&2;}
   11413    { (exit 1); exit 1; }; }
   11414 fi
   11415 
   11416 fi
   11417 
   11418 	if test "$with_pcre" = no ; then
   11419 
   11420 echo "$as_me:11420: checking for regular-expression headers" >&5
   11421 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
   11422 if test "${cf_cv_regex+set}" = set; then
   11423   echo $ECHO_N "(cached) $ECHO_C" >&6
   11424 else
   11425 
   11426 cat >conftest.$ac_ext <<_ACEOF
   11427 #line 11427 "configure"
   11428 #include "confdefs.h"
   11429 #include <sys/types.h>
   11430 #include <regex.h>
   11431 int
   11432 main ()
   11433 {
   11434 
   11435 	regex_t *p;
   11436 	int x = regcomp(p, "", 0);
   11437 	int y = regexec(p, "", 0, 0, 0);
   11438 	regfree(p);
   11439 
   11440   ;
   11441   return 0;
   11442 }
   11443 _ACEOF
   11444 rm -f conftest.$ac_objext conftest$ac_exeext
   11445 if { (eval echo "$as_me:11445: \"$ac_link\"") >&5
   11446   (eval $ac_link) 2>&5
   11447   ac_status=$?
   11448   echo "$as_me:11448: \$? = $ac_status" >&5
   11449   (exit $ac_status); } &&
   11450          { ac_try='test -s conftest$ac_exeext'
   11451   { (eval echo "$as_me:11451: \"$ac_try\"") >&5
   11452   (eval $ac_try) 2>&5
   11453   ac_status=$?
   11454   echo "$as_me:11454: \$? = $ac_status" >&5
   11455   (exit $ac_status); }; }; then
   11456   cf_cv_regex="regex.h"
   11457 else
   11458   echo "$as_me: failed program was:" >&5
   11459 cat conftest.$ac_ext >&5
   11460 
   11461 	cat >conftest.$ac_ext <<_ACEOF
   11462 #line 11462 "configure"
   11463 #include "confdefs.h"
   11464 #include <regexp.h>
   11465 int
   11466 main ()
   11467 {
   11468 
   11469 		char *p = compile("", "", "", 0);
   11470 		int x = step("", "");
   11471 
   11472   ;
   11473   return 0;
   11474 }
   11475 _ACEOF
   11476 rm -f conftest.$ac_objext conftest$ac_exeext
   11477 if { (eval echo "$as_me:11477: \"$ac_link\"") >&5
   11478   (eval $ac_link) 2>&5
   11479   ac_status=$?
   11480   echo "$as_me:11480: \$? = $ac_status" >&5
   11481   (exit $ac_status); } &&
   11482          { ac_try='test -s conftest$ac_exeext'
   11483   { (eval echo "$as_me:11483: \"$ac_try\"") >&5
   11484   (eval $ac_try) 2>&5
   11485   ac_status=$?
   11486   echo "$as_me:11486: \$? = $ac_status" >&5
   11487   (exit $ac_status); }; }; then
   11488   cf_cv_regex="regexp.h"
   11489 else
   11490   echo "$as_me: failed program was:" >&5
   11491 cat conftest.$ac_ext >&5
   11492 
   11493 		cf_save_LIBS="$LIBS"
   11494 		LIBS="-lgen $LIBS"
   11495 		cat >conftest.$ac_ext <<_ACEOF
   11496 #line 11496 "configure"
   11497 #include "confdefs.h"
   11498 #include <regexpr.h>
   11499 int
   11500 main ()
   11501 {
   11502 
   11503 			char *p = compile("", "", "");
   11504 			int x = step("", "");
   11505 
   11506   ;
   11507   return 0;
   11508 }
   11509 _ACEOF
   11510 rm -f conftest.$ac_objext conftest$ac_exeext
   11511 if { (eval echo "$as_me:11511: \"$ac_link\"") >&5
   11512   (eval $ac_link) 2>&5
   11513   ac_status=$?
   11514   echo "$as_me:11514: \$? = $ac_status" >&5
   11515   (exit $ac_status); } &&
   11516          { ac_try='test -s conftest$ac_exeext'
   11517   { (eval echo "$as_me:11517: \"$ac_try\"") >&5
   11518   (eval $ac_try) 2>&5
   11519   ac_status=$?
   11520   echo "$as_me:11520: \$? = $ac_status" >&5
   11521   (exit $ac_status); }; }; then
   11522   cf_cv_regex="regexpr.h"
   11523 else
   11524   echo "$as_me: failed program was:" >&5
   11525 cat conftest.$ac_ext >&5
   11526 LIBS="$cf_save_LIBS"
   11527 fi
   11528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11529 fi
   11530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11531 fi
   11532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11533 
   11534 fi
   11535 
   11536 echo "$as_me:11536: result: $cf_cv_regex" >&5
   11537 echo "${ECHO_T}$cf_cv_regex" >&6
   11538 case $cf_cv_regex in
   11539 	regex.h)   cat >>confdefs.h <<\EOF
   11540 #define HAVE_REGEX_H_FUNCS 1
   11541 EOF
   11542  ;;
   11543 	regexp.h)  cat >>confdefs.h <<\EOF
   11544 #define HAVE_REGEXP_H_FUNCS 1
   11545 EOF
   11546  ;;
   11547 	regexpr.h) cat >>confdefs.h <<\EOF
   11548 #define HAVE_REGEXPR_H_FUNCS 1
   11549 EOF
   11550  ;;
   11551 esac
   11552 
   11553 		if test "X$cf_cv_regex" != "Xregex.h" ; then
   11554 			{ { echo "$as_me:11554: error: Only POSIX or PCRE regular expressions are supported" >&5
   11555 echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;}
   11556    { (exit 1); exit 1; }; }
   11557 		fi
   11558 	fi
   11559 	cat >>confdefs.h <<\EOF
   11560 #define OPT_SELECT_REGEX 1
   11561 EOF
   11562 
   11563 fi
   11564 
   11565 echo "$as_me:11565: checking if you want support for right-scrollbar" >&5
   11566 echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6
   11567 
   11568 # Check whether --enable-rightbar or --disable-rightbar was given.
   11569 if test "${enable_rightbar+set}" = set; then
   11570   enableval="$enable_rightbar"
   11571   test "$enableval" != no && enableval=yes
   11572   if test "$enableval" != "yes" ; then
   11573     enable_rightbar=no
   11574   else
   11575     enable_rightbar=yes
   11576   fi
   11577 else
   11578   enableval=yes
   11579   enable_rightbar=yes
   11580 
   11581 fi;
   11582 echo "$as_me:11582: result: $enable_rightbar" >&5
   11583 echo "${ECHO_T}$enable_rightbar" >&6
   11584 if test "$enable_rightbar" = yes ; then
   11585 	cat >>confdefs.h <<\EOF
   11586 #define SCROLLBAR_RIGHT 1
   11587 EOF
   11588 
   11589 fi
   11590 
   11591 echo "$as_me:11591: checking if you want check for redundant name-change" >&5
   11592 echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6
   11593 
   11594 # Check whether --enable-samename or --disable-samename was given.
   11595 if test "${enable_samename+set}" = set; then
   11596   enableval="$enable_samename"
   11597   test "$enableval" != no && enableval=yes
   11598   if test "$enableval" != "yes" ; then
   11599     enable_samename=no
   11600   else
   11601     enable_samename=yes
   11602   fi
   11603 else
   11604   enableval=yes
   11605   enable_samename=yes
   11606 
   11607 fi;
   11608 echo "$as_me:11608: result: $enable_samename" >&5
   11609 echo "${ECHO_T}$enable_samename" >&6
   11610 test "$enable_samename" = no && cat >>confdefs.h <<\EOF
   11611 #define OPT_SAME_NAME 0
   11612 EOF
   11613 
   11614 echo "$as_me:11614: checking if you want support for session management" >&5
   11615 echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6
   11616 
   11617 # Check whether --enable-session-mgt or --disable-session-mgt was given.
   11618 if test "${enable_session_mgt+set}" = set; then
   11619   enableval="$enable_session_mgt"
   11620   test "$enableval" != no && enableval=yes
   11621   if test "$enableval" != "yes" ; then
   11622     enable_session_mgt=no
   11623   else
   11624     enable_session_mgt=yes
   11625   fi
   11626 else
   11627   enableval=yes
   11628   enable_session_mgt=yes
   11629 
   11630 fi;
   11631 echo "$as_me:11631: result: $enable_session_mgt" >&5
   11632 echo "${ECHO_T}$enable_session_mgt" >&6
   11633 test "$enable_session_mgt" = no && cat >>confdefs.h <<\EOF
   11634 #define OPT_SESSION_MGT 0
   11635 EOF
   11636 
   11637 echo "$as_me:11637: checking if you want to use termcap function-keys" >&5
   11638 echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6
   11639 
   11640 # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given.
   11641 if test "${enable_tcap_fkeys+set}" = set; then
   11642   enableval="$enable_tcap_fkeys"
   11643   test "$enableval" != no && enableval=yes
   11644   if test "$enableval" != "yes" ; then
   11645     enable_tcap_fkeys=no
   11646   else
   11647     enable_tcap_fkeys=yes
   11648   fi
   11649 else
   11650   enableval=yes
   11651   enable_tcap_fkeys=yes
   11652 
   11653 fi;
   11654 echo "$as_me:11654: result: $enable_tcap_fkeys" >&5
   11655 echo "${ECHO_T}$enable_tcap_fkeys" >&6
   11656 test "$enable_tcap_fkeys" = yes && cat >>confdefs.h <<\EOF
   11657 #define OPT_TCAP_FKEYS 1
   11658 EOF
   11659 
   11660 echo "$as_me:11660: checking if you want to use termcap-query/report" >&5
   11661 echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6
   11662 
   11663 # Check whether --enable-tcap-query or --disable-tcap-query was given.
   11664 if test "${enable_tcap_query+set}" = set; then
   11665   enableval="$enable_tcap_query"
   11666   test "$enableval" != no && enableval=yes
   11667   if test "$enableval" != "yes" ; then
   11668     enable_tcap_query=no
   11669   else
   11670     enable_tcap_query=yes
   11671   fi
   11672 else
   11673   enableval=yes
   11674   enable_tcap_query=yes
   11675 
   11676 fi;
   11677 echo "$as_me:11677: result: $enable_tcap_query" >&5
   11678 echo "${ECHO_T}$enable_tcap_query" >&6
   11679 test "$enable_tcap_query" = yes && cat >>confdefs.h <<\EOF
   11680 #define OPT_TCAP_QUERY 1
   11681 EOF
   11682 
   11683 echo "$as_me:11683: checking if you want support for tek4014" >&5
   11684 echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6
   11685 
   11686 # Check whether --enable-tek4014 or --disable-tek4014 was given.
   11687 if test "${enable_tek4014+set}" = set; then
   11688   enableval="$enable_tek4014"
   11689   test "$enableval" != no && enableval=yes
   11690   if test "$enableval" != "yes" ; then
   11691     enable_tek4014=no
   11692   else
   11693     enable_tek4014=yes
   11694   fi
   11695 else
   11696   enableval=yes
   11697   enable_tek4014=yes
   11698 
   11699 fi;
   11700 echo "$as_me:11700: result: $enable_tek4014" >&5
   11701 echo "${ECHO_T}$enable_tek4014" >&6
   11702 if test "$enable_tek4014" = no ; then
   11703 	cat >>confdefs.h <<\EOF
   11704 #define OPT_TEK4014 0
   11705 EOF
   11706 
   11707 else
   11708 	EXTRAHDRS="$EXTRAHDRS Tekparse.h"
   11709 	EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c"
   11710 	EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o"
   11711 fi
   11712 
   11713 echo "$as_me:11713: checking if you want pulldown menus with a toolbar" >&5
   11714 echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6
   11715 
   11716 # Check whether --enable-toolbar or --disable-toolbar was given.
   11717 if test "${enable_toolbar+set}" = set; then
   11718   enableval="$enable_toolbar"
   11719   test "$enableval" != yes && enableval=no
   11720   if test "$enableval" != "no" ; then
   11721     enable_toolbar=yes
   11722   else
   11723     enable_toolbar=no
   11724   fi
   11725 else
   11726   enableval=no
   11727   enable_toolbar=no
   11728 
   11729 fi;
   11730 echo "$as_me:11730: result: $enable_toolbar" >&5
   11731 echo "${ECHO_T}$enable_toolbar" >&6
   11732 if test "$enable_toolbar" = yes ; then
   11733 	cat >>confdefs.h <<\EOF
   11734 #define OPT_TOOLBAR 1
   11735 EOF
   11736 
   11737 fi
   11738 
   11739 echo "$as_me:11739: checking if you want VT52 emulation" >&5
   11740 echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6
   11741 
   11742 # Check whether --enable-vt52 or --disable-vt52 was given.
   11743 if test "${enable_vt52+set}" = set; then
   11744   enableval="$enable_vt52"
   11745   test "$enableval" != no && enableval=yes
   11746   if test "$enableval" != "yes" ; then
   11747     enable_vt52=no
   11748   else
   11749     enable_vt52=yes
   11750   fi
   11751 else
   11752   enableval=yes
   11753   enable_vt52=yes
   11754 
   11755 fi;
   11756 echo "$as_me:11756: result: $enable_vt52" >&5
   11757 echo "${ECHO_T}$enable_vt52" >&6
   11758 test "$enable_vt52" = no && cat >>confdefs.h <<\EOF
   11759 #define OPT_VT52_MODE 0
   11760 EOF
   11761 
   11762 echo "$as_me:11762: checking if you want to use mini-luit/Latin9 built-in support" >&5
   11763 echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6
   11764 
   11765 # Check whether --enable-mini-luit or --disable-mini-luit was given.
   11766 if test "${enable_mini_luit+set}" = set; then
   11767   enableval="$enable_mini_luit"
   11768   test "$enableval" != yes && enableval=no
   11769   if test "$enableval" != "no" ; then
   11770     enable_mini_luit=yes
   11771   else
   11772     enable_mini_luit=no
   11773   fi
   11774 else
   11775   enableval=no
   11776   enable_mini_luit=no
   11777 
   11778 fi;
   11779 echo "$as_me:11779: result: $enable_mini_luit" >&5
   11780 echo "${ECHO_T}$enable_mini_luit" >&6
   11781 if test "$enable_mini_luit" = yes ; then
   11782 	cat >>confdefs.h <<\EOF
   11783 #define OPT_MINI_LUIT 1
   11784 EOF
   11785 
   11786 fi
   11787 
   11788 echo "$as_me:11788: checking if you want to use luit" >&5
   11789 echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6
   11790 
   11791 # Check whether --enable-luit or --disable-luit was given.
   11792 if test "${enable_luit+set}" = set; then
   11793   enableval="$enable_luit"
   11794   test "$enableval" != yes && enableval=no
   11795   if test "$enableval" != "no" ; then
   11796     enable_luit=yes
   11797   else
   11798     enable_luit=$enable_mini_luit
   11799   fi
   11800 else
   11801   enableval=no
   11802   enable_luit=$enable_mini_luit
   11803 
   11804 fi;
   11805 echo "$as_me:11805: result: $enable_luit" >&5
   11806 echo "${ECHO_T}$enable_luit" >&6
   11807 if test "$enable_luit" = yes ; then
   11808 	cat >>confdefs.h <<\EOF
   11809 #define OPT_LUIT_PROG 1
   11810 EOF
   11811 
   11812 test -z "$LUIT" && LUIT=luit
   11813 for ac_prog in $LUIT luit
   11814 do
   11815   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11816 set dummy $ac_prog; ac_word=$2
   11817 echo "$as_me:11817: checking for $ac_word" >&5
   11818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   11819 if test "${ac_cv_path_LUIT+set}" = set; then
   11820   echo $ECHO_N "(cached) $ECHO_C" >&6
   11821 else
   11822   case $LUIT in
   11823   [\\/]* | ?:[\\/]*)
   11824   ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path.
   11825   ;;
   11826   *)
   11827   ac_save_IFS=$IFS; IFS=$ac_path_separator
   11828 ac_dummy="$PATH"
   11829 for ac_dir in $ac_dummy; do
   11830   IFS=$ac_save_IFS
   11831   test -z "$ac_dir" && ac_dir=.
   11832   if $as_executable_p "$ac_dir/$ac_word"; then
   11833    ac_cv_path_LUIT="$ac_dir/$ac_word"
   11834    echo "$as_me:11834: found $ac_dir/$ac_word" >&5
   11835    break
   11836 fi
   11837 done
   11838 
   11839   ;;
   11840 esac
   11841 fi
   11842 LUIT=$ac_cv_path_LUIT
   11843 
   11844 if test -n "$LUIT"; then
   11845   echo "$as_me:11845: result: $LUIT" >&5
   11846 echo "${ECHO_T}$LUIT" >&6
   11847 else
   11848   echo "$as_me:11848: result: no" >&5
   11849 echo "${ECHO_T}no" >&6
   11850 fi
   11851 
   11852   test -n "$LUIT" && break
   11853 done
   11854 test -n "$LUIT" || LUIT="$LUIT"
   11855 
   11856 cf_path_prog=""
   11857 cf_path_args=""
   11858 IFS="${IFS= 	}"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
   11859 for cf_temp in $ac_cv_path_LUIT
   11860 do
   11861 	if test -z "$cf_path_prog" ; then
   11862 		if test "$with_full_paths" = yes ; then
   11863 
   11864 if test "x$prefix" != xNONE; then
   11865   cf_path_syntax="$prefix"
   11866 else
   11867   cf_path_syntax="$ac_default_prefix"
   11868 fi
   11869 
   11870 case ".$cf_temp" in #(vi
   11871 .\$\(*\)*|.\'*\'*) #(vi
   11872   ;;
   11873 ..|./*|.\\*) #(vi
   11874   ;;
   11875 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
   11876   ;;
   11877 .\${*prefix}*) #(vi
   11878   eval cf_temp="$cf_temp"
   11879   case ".$cf_temp" in #(vi
   11880   .NONE/*)
   11881     cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   11882     ;;
   11883   esac
   11884   ;; #(vi
   11885 .no|.NONE/*)
   11886   cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   11887   ;;
   11888 *)
   11889   break
   11890   ;;
   11891 esac
   11892 
   11893 			cf_path_prog="$cf_temp"
   11894 		else
   11895 			cf_path_prog="`basename $cf_temp`"
   11896 		fi
   11897 	elif test -z "$cf_path_args" ; then
   11898 		cf_path_args="$cf_temp"
   11899 	else
   11900 		cf_path_args="$cf_path_args $cf_temp"
   11901 	fi
   11902 done
   11903 IFS="$cf_save_ifs"
   11904 
   11905 if test -n "$cf_path_prog" ; then
   11906 
   11907 echo "${as_me-configure}:11907: testing defining path for ${cf_path_prog} ..." 1>&5
   11908 
   11909 	cat >>confdefs.h <<EOF
   11910 #define LUIT_PATH "$cf_path_prog"
   11911 EOF
   11912 
   11913 	test -n "$cf_path_args" && cat >>confdefs.h <<EOF
   11914 #define LUIT_ARGS "$cf_path_args"
   11915 EOF
   11916 
   11917 fi
   11918 
   11919 fi
   11920 
   11921 echo "$as_me:11921: checking if you want wide-character support" >&5
   11922 echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6
   11923 
   11924 # Check whether --enable-wide-chars or --disable-wide-chars was given.
   11925 if test "${enable_wide_chars+set}" = set; then
   11926   enableval="$enable_wide_chars"
   11927   test "$enableval" != no && enableval=yes
   11928   if test "$enableval" != "$enable_luit" ; then
   11929     enable_wchar=yes
   11930   else
   11931     enable_wchar=$enable_luit
   11932   fi
   11933 else
   11934   enableval=$enable_luit
   11935   enable_wchar=$enable_luit
   11936 
   11937 fi;
   11938 echo "$as_me:11938: result: $enable_wchar" >&5
   11939 echo "${ECHO_T}$enable_wchar" >&6
   11940 
   11941 echo "$as_me:11941: checking if you want only 16-bit character support" >&5
   11942 echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6
   11943 
   11944 # Check whether --enable-16bit-chars or --disable-16bit-chars was given.
   11945 if test "${enable_16bit_chars+set}" = set; then
   11946   enableval="$enable_16bit_chars"
   11947   test "$enableval" != yes && enableval=no
   11948   if test "$enableval" != "no" ; then
   11949     enable_16bit_chars=yes
   11950   else
   11951     enable_16bit_chars=no
   11952   fi
   11953 else
   11954   enableval=no
   11955   enable_16bit_chars=no
   11956 
   11957 fi;
   11958 echo "$as_me:11958: result: $enable_16bit_chars" >&5
   11959 echo "${ECHO_T}$enable_16bit_chars" >&6
   11960 
   11961 if test "$enable_16bit_chars" = yes ; then
   11962 	cat >>confdefs.h <<\EOF
   11963 #define OPT_WIDER_ICHAR 0
   11964 EOF
   11965 
   11966 	enable_wchar=yes
   11967 fi
   11968 
   11969 if test "$enable_wchar" = yes ; then
   11970 	cat >>confdefs.h <<\EOF
   11971 #define OPT_WIDE_CHARS 1
   11972 EOF
   11973 
   11974 	EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h"
   11975 	EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c"
   11976 	EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o"
   11977 fi
   11978 
   11979 echo "$as_me:11979: checking if you want dynamic-abbreviation support" >&5
   11980 echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6
   11981 
   11982 # Check whether --enable-dabbrev or --disable-dabbrev was given.
   11983 if test "${enable_dabbrev+set}" = set; then
   11984   enableval="$enable_dabbrev"
   11985   test "$enableval" != yes && enableval=no
   11986   if test "$enableval" != "no" ; then
   11987     enable_dabbrev=yes
   11988   else
   11989     enable_dabbrev=no
   11990   fi
   11991 else
   11992   enableval=no
   11993   enable_dabbrev=no
   11994 
   11995 fi;
   11996 echo "$as_me:11996: result: $enable_dabbrev" >&5
   11997 echo "${ECHO_T}$enable_dabbrev" >&6
   11998 if test "$enable_dabbrev" = yes ; then
   11999 	cat >>confdefs.h <<\EOF
   12000 #define OPT_DABBREV 1
   12001 EOF
   12002 
   12003 fi
   12004 
   12005 echo "$as_me:12005: checking if you want DECterm Locator support" >&5
   12006 echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6
   12007 
   12008 # Check whether --enable-dec-locator or --disable-dec-locator was given.
   12009 if test "${enable_dec_locator+set}" = set; then
   12010   enableval="$enable_dec_locator"
   12011   test "$enableval" != yes && enableval=no
   12012   if test "$enableval" != "no" ; then
   12013     enable_dec_locator=yes
   12014   else
   12015     enable_dec_locator=no
   12016   fi
   12017 else
   12018   enableval=no
   12019   enable_dec_locator=no
   12020 
   12021 fi;
   12022 echo "$as_me:12022: result: $enable_dec_locator" >&5
   12023 echo "${ECHO_T}$enable_dec_locator" >&6
   12024 if test "$enable_dec_locator" = yes ; then
   12025 	cat >>confdefs.h <<\EOF
   12026 #define OPT_DEC_LOCATOR 1
   12027 EOF
   12028 
   12029 fi
   12030 
   12031 echo "$as_me:12031: checking if you want VT420 rectangle support" >&5
   12032 echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6
   12033 
   12034 # Check whether --enable-rectangles or --disable-rectangles was given.
   12035 if test "${enable_rectangles+set}" = set; then
   12036   enableval="$enable_rectangles"
   12037   test "$enableval" != no && enableval=yes
   12038   if test "$enableval" != "yes" ; then
   12039     enable_rectangles=no
   12040   else
   12041     enable_rectangles=yes
   12042   fi
   12043 else
   12044   enableval=yes
   12045   enable_rectangles=yes
   12046 
   12047 fi;
   12048 echo "$as_me:12048: result: $enable_rectangles" >&5
   12049 echo "${ECHO_T}$enable_rectangles" >&6
   12050 if test "$enable_rectangles" = yes ; then
   12051 	cat >>confdefs.h <<\EOF
   12052 #define OPT_DEC_RECTOPS 1
   12053 EOF
   12054 
   12055 fi
   12056 
   12057 echo "$as_me:12057: checking if you want -ziconbeep option" >&5
   12058 echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6
   12059 
   12060 # Check whether --enable-ziconbeep or --disable-ziconbeep was given.
   12061 if test "${enable_ziconbeep+set}" = set; then
   12062   enableval="$enable_ziconbeep"
   12063   test "$enableval" != no && enableval=yes
   12064   if test "$enableval" != "yes" ; then
   12065     enable_ziconbeep=no
   12066   else
   12067     enable_ziconbeep=yes
   12068   fi
   12069 else
   12070   enableval=yes
   12071   enable_ziconbeep=yes
   12072 
   12073 fi;
   12074 echo "$as_me:12074: result: $enable_ziconbeep" >&5
   12075 echo "${ECHO_T}$enable_ziconbeep" >&6
   12076 test "$enable_ziconbeep" = no && cat >>confdefs.h <<\EOF
   12077 #define OPT_ZICONBEEP 0
   12078 EOF
   12079 
   12080 ###############################################################################
   12081 
   12082 echo "$as_me:12082: checking if you want debugging traces" >&5
   12083 echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6
   12084 
   12085 # Check whether --enable-trace or --disable-trace was given.
   12086 if test "${enable_trace+set}" = set; then
   12087   enableval="$enable_trace"
   12088   test "$enableval" != yes && enableval=no
   12089   if test "$enableval" != "no" ; then
   12090     enable_trace=yes
   12091   else
   12092     enable_trace=no
   12093   fi
   12094 else
   12095   enableval=no
   12096   enable_trace=no
   12097 
   12098 fi;
   12099 echo "$as_me:12099: result: $enable_trace" >&5
   12100 echo "${ECHO_T}$enable_trace" >&6
   12101 if test "$enable_trace" = yes ; then
   12102 	cat >>confdefs.h <<\EOF
   12103 #define OPT_TRACE 1
   12104 EOF
   12105 
   12106 	EXTRASRCS="$EXTRASRCS trace.c"
   12107 	EXTRAOBJS="$EXTRAOBJS trace.o"
   12108 fi
   12109 
   12110 echo "$as_me:12110: checking if you want to test memory leaks" >&5
   12111 echo $ECHO_N "checking if you want to test memory leaks... $ECHO_C" >&6
   12112 
   12113 # Check whether --enable-leaks or --disable-leaks was given.
   12114 if test "${enable_leaks+set}" = set; then
   12115   enableval="$enable_leaks"
   12116   test "$enableval" != no && enableval=yes
   12117   if test "$enableval" != "yes" ; then
   12118     disable_leaks=yes
   12119   else
   12120     disable_leaks=no
   12121   fi
   12122 else
   12123   enableval=yes
   12124   disable_leaks=no
   12125 
   12126 fi;
   12127 echo "$as_me:12127: result: $disable_leaks" >&5
   12128 echo "${ECHO_T}$disable_leaks" >&6
   12129 if test "$disable_leaks" = yes ; then
   12130 	cat >>confdefs.h <<\EOF
   12131 #define NO_LEAKS 1
   12132 EOF
   12133 
   12134 fi
   12135 
   12136 echo "$as_me:12136: checking if you want to see long compiling messages" >&5
   12137 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
   12138 
   12139 # Check whether --enable-echo or --disable-echo was given.
   12140 if test "${enable_echo+set}" = set; then
   12141   enableval="$enable_echo"
   12142   test "$enableval" != no && enableval=yes
   12143   if test "$enableval" != "yes" ; then
   12144 
   12145     ECHO_LT='--silent'
   12146     ECHO_LD='@echo linking $@;'
   12147     RULE_CC='	@echo compiling $<'
   12148     SHOW_CC='	@echo compiling $@'
   12149     ECHO_CC='@'
   12150 
   12151   else
   12152 
   12153     ECHO_LT=''
   12154     ECHO_LD=''
   12155     RULE_CC='# compiling'
   12156     SHOW_CC='# compiling'
   12157     ECHO_CC=''
   12158 
   12159   fi
   12160 else
   12161   enableval=yes
   12162 
   12163     ECHO_LT=''
   12164     ECHO_LD=''
   12165     RULE_CC='# compiling'
   12166     SHOW_CC='# compiling'
   12167     ECHO_CC=''
   12168 
   12169 fi;
   12170 echo "$as_me:12170: result: $enableval" >&5
   12171 echo "${ECHO_T}$enableval" >&6
   12172 
   12173 echo "$as_me:12173: checking if you want magic cookie emulation" >&5
   12174 echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6
   12175 
   12176 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
   12177 if test "${enable_xmc_glitch+set}" = set; then
   12178   enableval="$enable_xmc_glitch"
   12179   test "$enableval" != yes && enableval=no
   12180   if test "$enableval" != "no" ; then
   12181     enable_xmc=yes
   12182   else
   12183     enable_xmc=no
   12184   fi
   12185 else
   12186   enableval=no
   12187   enable_xmc=no
   12188 
   12189 fi;
   12190 echo "$as_me:12190: result: $enable_xmc" >&5
   12191 echo "${ECHO_T}$enable_xmc" >&6
   12192 if test "$enable_xmc" = yes ; then
   12193 	cat >>confdefs.h <<\EOF
   12194 #define OPT_XMC_GLITCH 1
   12195 EOF
   12196 
   12197 	EXTRASRCS="$EXTRASRCS testxmc.c"
   12198 	EXTRAOBJS="$EXTRAOBJS testxmc.o"
   12199 fi
   12200 
   12201 for ac_func in tigetstr
   12202 do
   12203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12204 echo "$as_me:12204: checking for $ac_func" >&5
   12205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   12206 if eval "test \"\${$as_ac_var+set}\" = set"; then
   12207   echo $ECHO_N "(cached) $ECHO_C" >&6
   12208 else
   12209   cat >conftest.$ac_ext <<_ACEOF
   12210 #line 12210 "configure"
   12211 #include "confdefs.h"
   12212 /* System header to define __stub macros and hopefully few prototypes,
   12213     which can conflict with char $ac_func (); below.  */
   12214 #include <assert.h>
   12215 /* Override any gcc2 internal prototype to avoid an error.  */
   12216 #ifdef __cplusplus
   12217 extern "C"
   12218 #endif
   12219 /* We use char because int might match the return type of a gcc2
   12220    builtin and then its argument prototype would still apply.  */
   12221 char $ac_func ();
   12222 char (*f) ();
   12223 
   12224 int
   12225 main ()
   12226 {
   12227 /* The GNU C library defines this for functions which it implements
   12228     to always fail with ENOSYS.  Some functions are actually named
   12229     something starting with __ and the normal name is an alias.  */
   12230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   12231 choke me
   12232 #else
   12233 f = $ac_func;
   12234 #endif
   12235 
   12236   ;
   12237   return 0;
   12238 }
   12239 _ACEOF
   12240 rm -f conftest.$ac_objext conftest$ac_exeext
   12241 if { (eval echo "$as_me:12241: \"$ac_link\"") >&5
   12242   (eval $ac_link) 2>&5
   12243   ac_status=$?
   12244   echo "$as_me:12244: \$? = $ac_status" >&5
   12245   (exit $ac_status); } &&
   12246          { ac_try='test -s conftest$ac_exeext'
   12247   { (eval echo "$as_me:12247: \"$ac_try\"") >&5
   12248   (eval $ac_try) 2>&5
   12249   ac_status=$?
   12250   echo "$as_me:12250: \$? = $ac_status" >&5
   12251   (exit $ac_status); }; }; then
   12252   eval "$as_ac_var=yes"
   12253 else
   12254   echo "$as_me: failed program was:" >&5
   12255 cat conftest.$ac_ext >&5
   12256 eval "$as_ac_var=no"
   12257 fi
   12258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   12259 fi
   12260 echo "$as_me:12260: result: `eval echo '${'$as_ac_var'}'`" >&5
   12261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   12262 if test `eval echo '${'$as_ac_var'}'` = yes; then
   12263   cat >>confdefs.h <<EOF
   12264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12265 EOF
   12266 
   12267 fi
   12268 done
   12269 
   12270 if test -n "$cf_cv_lib_part_tgetent"; then
   12271 
   12272 for ac_func in use_extended_names
   12273 do
   12274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12275 echo "$as_me:12275: checking for $ac_func" >&5
   12276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   12277 if eval "test \"\${$as_ac_var+set}\" = set"; then
   12278   echo $ECHO_N "(cached) $ECHO_C" >&6
   12279 else
   12280   cat >conftest.$ac_ext <<_ACEOF
   12281 #line 12281 "configure"
   12282 #include "confdefs.h"
   12283 /* System header to define __stub macros and hopefully few prototypes,
   12284     which can conflict with char $ac_func (); below.  */
   12285 #include <assert.h>
   12286 /* Override any gcc2 internal prototype to avoid an error.  */
   12287 #ifdef __cplusplus
   12288 extern "C"
   12289 #endif
   12290 /* We use char because int might match the return type of a gcc2
   12291    builtin and then its argument prototype would still apply.  */
   12292 char $ac_func ();
   12293 char (*f) ();
   12294 
   12295 int
   12296 main ()
   12297 {
   12298 /* The GNU C library defines this for functions which it implements
   12299     to always fail with ENOSYS.  Some functions are actually named
   12300     something starting with __ and the normal name is an alias.  */
   12301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   12302 choke me
   12303 #else
   12304 f = $ac_func;
   12305 #endif
   12306 
   12307   ;
   12308   return 0;
   12309 }
   12310 _ACEOF
   12311 rm -f conftest.$ac_objext conftest$ac_exeext
   12312 if { (eval echo "$as_me:12312: \"$ac_link\"") >&5
   12313   (eval $ac_link) 2>&5
   12314   ac_status=$?
   12315   echo "$as_me:12315: \$? = $ac_status" >&5
   12316   (exit $ac_status); } &&
   12317          { ac_try='test -s conftest$ac_exeext'
   12318   { (eval echo "$as_me:12318: \"$ac_try\"") >&5
   12319   (eval $ac_try) 2>&5
   12320   ac_status=$?
   12321   echo "$as_me:12321: \$? = $ac_status" >&5
   12322   (exit $ac_status); }; }; then
   12323   eval "$as_ac_var=yes"
   12324 else
   12325   echo "$as_me: failed program was:" >&5
   12326 cat conftest.$ac_ext >&5
   12327 eval "$as_ac_var=no"
   12328 fi
   12329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   12330 fi
   12331 echo "$as_me:12331: result: `eval echo '${'$as_ac_var'}'`" >&5
   12332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   12333 if test `eval echo '${'$as_ac_var'}'` = yes; then
   12334   cat >>confdefs.h <<EOF
   12335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12336 EOF
   12337 
   12338 fi
   12339 done
   12340 
   12341 fi
   12342 
   12343 if test -n "$GCC" ; then
   12344 echo "$as_me:12344: checking if you want to turn on gcc warnings" >&5
   12345 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
   12346 
   12347 # Check whether --enable-warnings or --disable-warnings was given.
   12348 if test "${enable_warnings+set}" = set; then
   12349   enableval="$enable_warnings"
   12350   test "$enableval" != yes && enableval=no
   12351   if test "$enableval" != "no" ; then
   12352     with_warnings=yes
   12353   else
   12354     with_warnings=no
   12355   fi
   12356 else
   12357   enableval=no
   12358   with_warnings=no
   12359 
   12360 fi;
   12361 echo "$as_me:12361: result: $with_warnings" >&5
   12362 echo "${ECHO_T}$with_warnings" >&6
   12363 if test "$with_warnings" = yes
   12364 then
   12365 
   12366 if test "$GCC" = yes
   12367 then
   12368 cat > conftest.i <<EOF
   12369 #ifndef GCC_PRINTF
   12370 #define GCC_PRINTF 0
   12371 #endif
   12372 #ifndef GCC_SCANF
   12373 #define GCC_SCANF 0
   12374 #endif
   12375 #ifndef GCC_NORETURN
   12376 #define GCC_NORETURN /* nothing */
   12377 #endif
   12378 #ifndef GCC_UNUSED
   12379 #define GCC_UNUSED /* nothing */
   12380 #endif
   12381 EOF
   12382 if test "$GCC" = yes
   12383 then
   12384 	{ echo "$as_me:12384: checking for $CC __attribute__ directives..." >&5
   12385 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
   12386 cat > conftest.$ac_ext <<EOF
   12387 #line 12387 "${as_me-configure}"
   12388 #include "confdefs.h"
   12389 #include "conftest.h"
   12390 #include "conftest.i"
   12391 #if	GCC_PRINTF
   12392 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
   12393 #else
   12394 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
   12395 #endif
   12396 #if	GCC_SCANF
   12397 #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
   12398 #else
   12399 #define GCC_SCANFLIKE(fmt,var)  /*nothing*/
   12400 #endif
   12401 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
   12402 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
   12403 extern void foo(void) GCC_NORETURN;
   12404 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
   12405 EOF
   12406 	for cf_attribute in scanf printf unused noreturn
   12407 	do
   12408 
   12409 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   12410 
   12411 		cf_directive="__attribute__(($cf_attribute))"
   12412 		echo "checking for $CC $cf_directive" 1>&5
   12413 		case $cf_attribute in
   12414 		scanf|printf)
   12415 		cat >conftest.h <<EOF
   12416 #define GCC_$cf_ATTRIBUTE 1
   12417 EOF
   12418 			;;
   12419 		*)
   12420 		cat >conftest.h <<EOF
   12421 #define GCC_$cf_ATTRIBUTE $cf_directive
   12422 EOF
   12423 			;;
   12424 		esac
   12425 		if { (eval echo "$as_me:12425: \"$ac_compile\"") >&5
   12426   (eval $ac_compile) 2>&5
   12427   ac_status=$?
   12428   echo "$as_me:12428: \$? = $ac_status" >&5
   12429   (exit $ac_status); }; then
   12430 			test -n "$verbose" && echo "$as_me:12430: result: ... $cf_attribute" >&5
   12431 echo "${ECHO_T}... $cf_attribute" >&6
   12432 			cat conftest.h >>confdefs.h
   12433 		fi
   12434 	done
   12435 else
   12436 	fgrep define conftest.i >>confdefs.h
   12437 fi
   12438 rm -rf conftest*
   12439 fi
   12440 
   12441 GCC_VERSION=none
   12442 if test "$GCC" = yes ; then
   12443 	echo "$as_me:12443: checking version of $CC" >&5
   12444 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
   12445 	GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
   12446 	test -z "$GCC_VERSION" && GCC_VERSION=unknown
   12447 	echo "$as_me:12447: result: $GCC_VERSION" >&5
   12448 echo "${ECHO_T}$GCC_VERSION" >&6
   12449 fi
   12450 
   12451 INTEL_COMPILER=no
   12452 
   12453 if test "$GCC" = yes ; then
   12454 	case $host_os in
   12455 	linux*|gnu*)
   12456 		echo "$as_me:12456: checking if this is really Intel C compiler" >&5
   12457 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
   12458 		cf_save_CFLAGS="$CFLAGS"
   12459 		CFLAGS="$CFLAGS -no-gcc"
   12460 		cat >conftest.$ac_ext <<_ACEOF
   12461 #line 12461 "configure"
   12462 #include "confdefs.h"
   12463 
   12464 int
   12465 main ()
   12466 {
   12467 
   12468 #ifdef __INTEL_COMPILER
   12469 #else
   12470 make an error
   12471 #endif
   12472 
   12473   ;
   12474   return 0;
   12475 }
   12476 _ACEOF
   12477 rm -f conftest.$ac_objext
   12478 if { (eval echo "$as_me:12478: \"$ac_compile\"") >&5
   12479   (eval $ac_compile) 2>&5
   12480   ac_status=$?
   12481   echo "$as_me:12481: \$? = $ac_status" >&5
   12482   (exit $ac_status); } &&
   12483          { ac_try='test -s conftest.$ac_objext'
   12484   { (eval echo "$as_me:12484: \"$ac_try\"") >&5
   12485   (eval $ac_try) 2>&5
   12486   ac_status=$?
   12487   echo "$as_me:12487: \$? = $ac_status" >&5
   12488   (exit $ac_status); }; }; then
   12489   INTEL_COMPILER=yes
   12490 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
   12491 
   12492 else
   12493   echo "$as_me: failed program was:" >&5
   12494 cat conftest.$ac_ext >&5
   12495 fi
   12496 rm -f conftest.$ac_objext conftest.$ac_ext
   12497 		CFLAGS="$cf_save_CFLAGS"
   12498 		echo "$as_me:12498: result: $INTEL_COMPILER" >&5
   12499 echo "${ECHO_T}$INTEL_COMPILER" >&6
   12500 		;;
   12501 	esac
   12502 fi
   12503 
   12504 cat > conftest.$ac_ext <<EOF
   12505 #line 12505 "${as_me-configure}"
   12506 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
   12507 EOF
   12508 
   12509 if test "$INTEL_COMPILER" = yes
   12510 then
   12511 # The "-wdXXX" options suppress warnings:
   12512 # remark #1419: external declaration in primary source file
   12513 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
   12514 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
   12515 # remark #193: zero used for undefined preprocessing identifier
   12516 # remark #593: variable "curs_sb_left_arrow" was set but never used
   12517 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
   12518 # remark #869: parameter "tw" was never referenced
   12519 # remark #981: operands are evaluated in unspecified order
   12520 # warning #279: controlling expression is constant
   12521 
   12522 	{ echo "$as_me:12522: checking for $CC warning options..." >&5
   12523 echo "$as_me: checking for $CC warning options..." >&6;}
   12524 	cf_save_CFLAGS="$CFLAGS"
   12525 	EXTRA_CFLAGS="-Wall"
   12526 	for cf_opt in \
   12527 		wd1419 \
   12528 		wd1683 \
   12529 		wd1684 \
   12530 		wd193 \
   12531 		wd593 \
   12532 		wd279 \
   12533 		wd810 \
   12534 		wd869 \
   12535 		wd981
   12536 	do
   12537 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   12538 		if { (eval echo "$as_me:12538: \"$ac_compile\"") >&5
   12539   (eval $ac_compile) 2>&5
   12540   ac_status=$?
   12541   echo "$as_me:12541: \$? = $ac_status" >&5
   12542   (exit $ac_status); }; then
   12543 			test -n "$verbose" && echo "$as_me:12543: result: ... -$cf_opt" >&5
   12544 echo "${ECHO_T}... -$cf_opt" >&6
   12545 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   12546 		fi
   12547 	done
   12548 	CFLAGS="$cf_save_CFLAGS"
   12549 
   12550 elif test "$GCC" = yes
   12551 then
   12552 	{ echo "$as_me:12552: checking for $CC warning options..." >&5
   12553 echo "$as_me: checking for $CC warning options..." >&6;}
   12554 	cf_save_CFLAGS="$CFLAGS"
   12555 	EXTRA_CFLAGS="-W -Wall"
   12556 	cf_warn_CONST=""
   12557 	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
   12558 	for cf_opt in \
   12559 		Wbad-function-cast \
   12560 		Wcast-align \
   12561 		Wcast-qual \
   12562 		Winline \
   12563 		Wmissing-declarations \
   12564 		Wmissing-prototypes \
   12565 		Wnested-externs \
   12566 		Wpointer-arith \
   12567 		Wshadow \
   12568 		Wstrict-prototypes \
   12569 		Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
   12570 	do
   12571 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   12572 		if { (eval echo "$as_me:12572: \"$ac_compile\"") >&5
   12573   (eval $ac_compile) 2>&5
   12574   ac_status=$?
   12575   echo "$as_me:12575: \$? = $ac_status" >&5
   12576   (exit $ac_status); }; then
   12577 			test -n "$verbose" && echo "$as_me:12577: result: ... -$cf_opt" >&5
   12578 echo "${ECHO_T}... -$cf_opt" >&6
   12579 			case $cf_opt in #(vi
   12580 			Wcast-qual) #(vi
   12581 				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
   12582 				;;
   12583 			Winline) #(vi
   12584 				case $GCC_VERSION in
   12585 				[34].*)
   12586 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   12587 
   12588 echo "${as_me-configure}:12588: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   12589 
   12590 					continue;;
   12591 				esac
   12592 				;;
   12593 			esac
   12594 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   12595 		fi
   12596 	done
   12597 	CFLAGS="$cf_save_CFLAGS"
   12598 fi
   12599 rm -f conftest*
   12600 
   12601 fi
   12602 fi
   12603 
   12604 test "$disable_setuid" = yes && cat >>confdefs.h <<\EOF
   12605 #define DISABLE_SETUID 1
   12606 EOF
   12607 
   12608 test "$disable_setgid" = yes && cat >>confdefs.h <<\EOF
   12609 #define DISABLE_SETGID 1
   12610 EOF
   12611 
   12612 if test $disable_setuid = yes ; then
   12613 	MAY_SETUID="#"
   12614 	NOT_SETUID=
   12615 elif test $disable_setgid = yes ; then
   12616 	MAY_SETUID="#"
   12617 	NOT_SETUID=
   12618 else
   12619 	MAY_SETUID=
   12620 	NOT_SETUID="#"
   12621 fi
   12622 
   12623 ###	remove from CPPFLAGS the optional features we define in xtermcfg.h
   12624 ###	or other conflicting symbols that may be defined via imake:
   12625 for cf_def in \
   12626 	__STDC__ \
   12627 	ALLOWLOGGING \
   12628 	ALLOWLOGFILEEXEC \
   12629 	OPT_LUIT_PROG \
   12630 	OPT_WIDE_CHARS \
   12631 	SCROLLBAR_RIGHT \
   12632 	USE_TTY_GROUP \
   12633 	USE_UTEMPTER \
   12634 	XRENDERFONT
   12635 do
   12636 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//`
   12637 done
   12638 
   12639 ###	output Makefile and xtermcfg.h
   12640 ac_config_files="$ac_config_files Makefile"
   12641 cat >confcache <<\_ACEOF
   12642 # This file is a shell script that caches the results of configure
   12643 # tests run on this system so they can be shared between configure
   12644 # scripts and configure runs, see configure's option --config-cache.
   12645 # It is not useful on other systems.  If it contains results you don't
   12646 # want to keep, you may remove or edit it.
   12647 #
   12648 # config.status only pays attention to the cache file if you give it
   12649 # the --recheck option to rerun configure.
   12650 #
   12651 # `ac_cv_env_foo' variables (set or unset) will be overriden when
   12652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   12653 # following values.
   12654 
   12655 _ACEOF
   12656 
   12657 # The following way of writing the cache mishandles newlines in values,
   12658 # but we know of no workaround that is simple, portable, and efficient.
   12659 # So, don't put newlines in cache variables' values.
   12660 # Ultrix sh set writes to stderr and can't be redirected directly,
   12661 # and sets the high bit in the cache file unless we assign to the vars.
   12662 {
   12663   (set) 2>&1 |
   12664     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   12665     *ac_space=\ *)
   12666       # `set' does not quote correctly, so add quotes (double-quote
   12667       # substitution turns \\\\ into \\, and sed turns \\ into \).
   12668       sed -n \
   12669         "s/'/'\\\\''/g;
   12670     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   12671       ;;
   12672     *)
   12673       # `set' quotes correctly as required by POSIX, so do not add quotes.
   12674       sed -n \
   12675         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   12676       ;;
   12677     esac;
   12678 } |
   12679   sed '
   12680      t clear
   12681      : clear
   12682      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   12683      t end
   12684      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   12685      : end' >>confcache
   12686 if cmp -s $cache_file confcache; then :; else
   12687   if test -w $cache_file; then
   12688     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   12689     cat confcache >$cache_file
   12690   else
   12691     echo "not updating unwritable cache $cache_file"
   12692   fi
   12693 fi
   12694 rm -f confcache
   12695 
   12696 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   12697 # Let make expand exec_prefix.
   12698 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   12699 
   12700 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   12701 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   12702 # trailing colons and then remove the whole line if VPATH becomes empty
   12703 # (actually we leave an empty line to preserve line numbers).
   12704 if test "x$srcdir" = x.; then
   12705   ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
   12706 s/:*\$(srcdir):*/:/;
   12707 s/:*\${srcdir}:*/:/;
   12708 s/:*@srcdir@:*/:/;
   12709 s/^\([^=]*=[ 	]*\):*/\1/;
   12710 s/:*$//;
   12711 s/^[^=]*=[ 	]*$//;
   12712 }'
   12713 fi
   12714 
   12715 DEFS=-DHAVE_CONFIG_H
   12716 
   12717 : ${CONFIG_STATUS=./config.status}
   12718 ac_clean_files_save=$ac_clean_files
   12719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   12720 { echo "$as_me:12720: creating $CONFIG_STATUS" >&5
   12721 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   12722 cat >$CONFIG_STATUS <<_ACEOF
   12723 #! $SHELL
   12724 # Generated automatically by configure.
   12725 # Run this file to recreate the current configuration.
   12726 # Compiler output produced by configure, useful for debugging
   12727 # configure, is in config.log if it exists.
   12728 
   12729 debug=false
   12730 SHELL=\${CONFIG_SHELL-$SHELL}
   12731 ac_cs_invocation="\$0 \$@"
   12732 
   12733 _ACEOF
   12734 
   12735 cat >>$CONFIG_STATUS <<\_ACEOF
   12736 # Be Bourne compatible
   12737 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   12738   emulate sh
   12739   NULLCMD=:
   12740 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   12741   set -o posix
   12742 fi
   12743 
   12744 # Name of the executable.
   12745 as_me=`echo "$0" |sed 's,.*[\\/],,'`
   12746 
   12747 if expr a : '\(a\)' >/dev/null 2>&1; then
   12748   as_expr=expr
   12749 else
   12750   as_expr=false
   12751 fi
   12752 
   12753 rm -f conf$$ conf$$.exe conf$$.file
   12754 echo >conf$$.file
   12755 if ln -s conf$$.file conf$$ 2>/dev/null; then
   12756   # We could just check for DJGPP; but this test a) works b) is more generic
   12757   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   12758   if test -f conf$$.exe; then
   12759     # Don't use ln at all; we don't have any links
   12760     as_ln_s='cp -p'
   12761   else
   12762     as_ln_s='ln -s'
   12763   fi
   12764 elif ln conf$$.file conf$$ 2>/dev/null; then
   12765   as_ln_s=ln
   12766 else
   12767   as_ln_s='cp -p'
   12768 fi
   12769 rm -f conf$$ conf$$.exe conf$$.file
   12770 
   12771 as_executable_p="test -f"
   12772 
   12773 # Support unset when possible.
   12774 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
   12775   as_unset=unset
   12776 else
   12777   as_unset=false
   12778 fi
   12779 
   12780 # NLS nuisances.
   12781 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
   12782 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
   12783 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
   12784 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
   12785 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
   12786 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
   12787 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
   12788 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
   12789 
   12790 # IFS
   12791 # We need space, tab and new line, in precisely that order.
   12792 as_nl='
   12793 '
   12794 IFS=" 	$as_nl"
   12795 
   12796 # CDPATH.
   12797 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
   12798 
   12799 exec 6>&1
   12800 
   12801 _ACEOF
   12802 
   12803 # Files that config.status was made for.
   12804 if test -n "$ac_config_files"; then
   12805   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
   12806 fi
   12807 
   12808 if test -n "$ac_config_headers"; then
   12809   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
   12810 fi
   12811 
   12812 if test -n "$ac_config_links"; then
   12813   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
   12814 fi
   12815 
   12816 if test -n "$ac_config_commands"; then
   12817   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
   12818 fi
   12819 
   12820 cat >>$CONFIG_STATUS <<\EOF
   12821 
   12822 ac_cs_usage="\
   12823 \`$as_me' instantiates files from templates according to the
   12824 current configuration.
   12825 
   12826 Usage: $0 [OPTIONS] [FILE]...
   12827 
   12828   -h, --help       print this help, then exit
   12829   -V, --version    print version number, then exit
   12830   -d, --debug      don't remove temporary files
   12831       --recheck    update $as_me by reconfiguring in the same conditions
   12832   --file=FILE[:TEMPLATE]
   12833                    instantiate the configuration file FILE
   12834   --header=FILE[:TEMPLATE]
   12835                    instantiate the configuration header FILE
   12836 
   12837 Configuration files:
   12838 $config_files
   12839 
   12840 Configuration headers:
   12841 $config_headers
   12842 
   12843 Report bugs to <bug-autoconf@gnu.org>."
   12844 EOF
   12845 
   12846 cat >>$CONFIG_STATUS <<EOF
   12847 ac_cs_version="\\
   12848 config.status
   12849 configured by $0, generated by GNU Autoconf 2.52.20081225,
   12850   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   12851 
   12852 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
   12853 Free Software Foundation, Inc.
   12854 This config.status script is free software; the Free Software Foundation
   12855 gives unlimited permission to copy, distribute and modify it."
   12856 srcdir=$srcdir
   12857 INSTALL="$INSTALL"
   12858 EOF
   12859 
   12860 cat >>$CONFIG_STATUS <<\EOF
   12861 # If no file are specified by the user, then we need to provide default
   12862 # value.  By we need to know if files were specified by the user.
   12863 ac_need_defaults=:
   12864 while test $# != 0
   12865 do
   12866   case $1 in
   12867   --*=*)
   12868     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   12869     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   12870     shift
   12871     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
   12872     shift
   12873     ;;
   12874   -*);;
   12875   *) # This is not an option, so the user has probably given explicit
   12876      # arguments.
   12877      ac_need_defaults=false;;
   12878   esac
   12879 
   12880   case $1 in
   12881   # Handling of the options.
   12882 EOF
   12883 cat >>$CONFIG_STATUS <<EOF
   12884   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   12885     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
   12886     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
   12887 EOF
   12888 cat >>$CONFIG_STATUS <<\EOF
   12889   --version | --vers* | -V )
   12890     echo "$ac_cs_version"; exit 0 ;;
   12891   --he | --h)
   12892     # Conflict between --help and --header
   12893     { { echo "$as_me:12893: error: ambiguous option: $1
   12894 Try \`$0 --help' for more information." >&5
   12895 echo "$as_me: error: ambiguous option: $1
   12896 Try \`$0 --help' for more information." >&2;}
   12897    { (exit 1); exit 1; }; };;
   12898   --help | --hel | -h )
   12899     echo "$ac_cs_usage"; exit 0 ;;
   12900   --debug | --d* | -d )
   12901     debug=: ;;
   12902   --file | --fil | --fi | --f )
   12903     shift
   12904     CONFIG_FILES="$CONFIG_FILES $1"
   12905     ac_need_defaults=false;;
   12906   --header | --heade | --head | --hea )
   12907     shift
   12908     CONFIG_HEADERS="$CONFIG_HEADERS $1"
   12909     ac_need_defaults=false;;
   12910 
   12911   # This is an error.
   12912   -*) { { echo "$as_me:12912: error: unrecognized option: $1
   12913 Try \`$0 --help' for more information." >&5
   12914 echo "$as_me: error: unrecognized option: $1
   12915 Try \`$0 --help' for more information." >&2;}
   12916    { (exit 1); exit 1; }; } ;;
   12917 
   12918   *) ac_config_targets="$ac_config_targets $1" ;;
   12919 
   12920   esac
   12921   shift
   12922 done
   12923 
   12924 exec 5>>config.log
   12925 cat >&5 << _ACEOF
   12926 
   12927 ## ----------------------- ##
   12928 ## Running config.status.  ##
   12929 ## ----------------------- ##
   12930 
   12931 This file was extended by $as_me 2.52.20081225, executed with
   12932   CONFIG_FILES    = $CONFIG_FILES
   12933   CONFIG_HEADERS  = $CONFIG_HEADERS
   12934   CONFIG_LINKS    = $CONFIG_LINKS
   12935   CONFIG_COMMANDS = $CONFIG_COMMANDS
   12936   > $ac_cs_invocation
   12937 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   12938 
   12939 _ACEOF
   12940 EOF
   12941 
   12942 cat >>$CONFIG_STATUS <<\EOF
   12943 for ac_config_target in $ac_config_targets
   12944 do
   12945   case "$ac_config_target" in
   12946   # Handling of arguments.
   12947   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   12948   "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
   12949   *) { { echo "$as_me:12949: error: invalid argument: $ac_config_target" >&5
   12950 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   12951    { (exit 1); exit 1; }; };;
   12952   esac
   12953 done
   12954 
   12955 # If the user did not use the arguments to specify the items to instantiate,
   12956 # then the envvar interface is used.  Set only those that are not.
   12957 # We use the long form for the default assignment because of an extremely
   12958 # bizarre bug on SunOS 4.1.3.
   12959 if $ac_need_defaults; then
   12960   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   12961   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   12962 fi
   12963 
   12964 # Create a temporary directory, and hook for its removal unless debugging.
   12965 $debug ||
   12966 {
   12967   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
   12968   trap '{ (exit 1); exit 1; }' 1 2 13 15
   12969 }
   12970 
   12971 # Create a (secure) tmp directory for tmp files.
   12972 : ${TMPDIR=/tmp}
   12973 {
   12974   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
   12975   test -n "$tmp" && test -d "$tmp"
   12976 }  ||
   12977 {
   12978   tmp=$TMPDIR/cs$$-$RANDOM
   12979   (umask 077 && mkdir $tmp)
   12980 } ||
   12981 {
   12982    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   12983    { (exit 1); exit 1; }
   12984 }
   12985 
   12986 EOF
   12987 
   12988 cat >>$CONFIG_STATUS <<EOF
   12989 
   12990 #
   12991 # CONFIG_FILES section.
   12992 #
   12993 
   12994 # No need to generate the scripts if there are no CONFIG_FILES.
   12995 # This happens for instance when ./config.status config.h
   12996 if test -n "\$CONFIG_FILES"; then
   12997   # Protect against being on the right side of a sed subst in config.status.
   12998   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   12999    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   13000 s,@SHELL@,$SHELL,;t t
   13001 s,@exec_prefix@,$exec_prefix,;t t
   13002 s,@prefix@,$prefix,;t t
   13003 s,@program_transform_name@,$program_transform_name,;t t
   13004 s,@bindir@,$bindir,;t t
   13005 s,@sbindir@,$sbindir,;t t
   13006 s,@libexecdir@,$libexecdir,;t t
   13007 s,@datadir@,$datadir,;t t
   13008 s,@sysconfdir@,$sysconfdir,;t t
   13009 s,@sharedstatedir@,$sharedstatedir,;t t
   13010 s,@localstatedir@,$localstatedir,;t t
   13011 s,@libdir@,$libdir,;t t
   13012 s,@includedir@,$includedir,;t t
   13013 s,@oldincludedir@,$oldincludedir,;t t
   13014 s,@infodir@,$infodir,;t t
   13015 s,@mandir@,$mandir,;t t
   13016 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   13017 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   13018 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   13019 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   13020 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   13021 s,@build_alias@,$build_alias,;t t
   13022 s,@host_alias@,$host_alias,;t t
   13023 s,@target_alias@,$target_alias,;t t
   13024 s,@ECHO_C@,$ECHO_C,;t t
   13025 s,@ECHO_N@,$ECHO_N,;t t
   13026 s,@ECHO_T@,$ECHO_T,;t t
   13027 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   13028 s,@DEFS@,$DEFS,;t t
   13029 s,@LIBS@,$LIBS,;t t
   13030 s,@build@,$build,;t t
   13031 s,@build_cpu@,$build_cpu,;t t
   13032 s,@build_vendor@,$build_vendor,;t t
   13033 s,@build_os@,$build_os,;t t
   13034 s,@host@,$host,;t t
   13035 s,@host_cpu@,$host_cpu,;t t
   13036 s,@host_vendor@,$host_vendor,;t t
   13037 s,@host_os@,$host_os,;t t
   13038 s,@CC@,$CC,;t t
   13039 s,@CFLAGS@,$CFLAGS,;t t
   13040 s,@LDFLAGS@,$LDFLAGS,;t t
   13041 s,@CPPFLAGS@,$CPPFLAGS,;t t
   13042 s,@ac_ct_CC@,$ac_ct_CC,;t t
   13043 s,@EXEEXT@,$EXEEXT,;t t
   13044 s,@OBJEXT@,$OBJEXT,;t t
   13045 s,@CPP@,$CPP,;t t
   13046 s,@AWK@,$AWK,;t t
   13047 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   13048 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   13049 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   13050 s,@LN_S@,$LN_S,;t t
   13051 s,@LINT@,$LINT,;t t
   13052 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
   13053 s,@PROG_EXT@,$PROG_EXT,;t t
   13054 s,@appsdir@,$appsdir,;t t
   13055 s,@no_appsdir@,$no_appsdir,;t t
   13056 s,@icondir@,$icondir,;t t
   13057 s,@no_icondir@,$no_icondir,;t t
   13058 s,@desktop_utils@,$desktop_utils,;t t
   13059 s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t
   13060 s,@XTERM_PATH@,$XTERM_PATH,;t t
   13061 s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t
   13062 s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t
   13063 s,@X_CFLAGS@,$X_CFLAGS,;t t
   13064 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
   13065 s,@X_LIBS@,$X_LIBS,;t t
   13066 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
   13067 s,@IMAKE@,$IMAKE,;t t
   13068 s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t
   13069 s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t
   13070 s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t
   13071 s,@SET_TERMINFO@,$SET_TERMINFO,;t t
   13072 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
   13073 s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t
   13074 s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t
   13075 s,@XRENDERFONT@,$XRENDERFONT,;t t
   13076 s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t
   13077 s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t
   13078 s,@LUIT@,$LUIT,;t t
   13079 s,@ECHO_LT@,$ECHO_LT,;t t
   13080 s,@ECHO_LD@,$ECHO_LD,;t t
   13081 s,@RULE_CC@,$RULE_CC,;t t
   13082 s,@SHOW_CC@,$SHOW_CC,;t t
   13083 s,@ECHO_CC@,$ECHO_CC,;t t
   13084 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
   13085 s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t
   13086 s,@EXTRAHDRS@,$EXTRAHDRS,;t t
   13087 s,@EXTRASRCS@,$EXTRASRCS,;t t
   13088 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
   13089 s,@MAY_SETUID@,$MAY_SETUID,;t t
   13090 s,@NOT_SETUID@,$NOT_SETUID,;t t
   13091 CEOF
   13092 
   13093 EOF
   13094 
   13095   cat >>$CONFIG_STATUS <<\EOF
   13096   # Split the substitutions into bite-sized pieces for seds with
   13097   # small command number limits, like on Digital OSF/1 and HP-UX.
   13098   ac_max_sed_lines=48
   13099   ac_sed_frag=1 # Number of current file.
   13100   ac_beg=1 # First line for current file.
   13101   ac_end=$ac_max_sed_lines # Line after last line for current file.
   13102   ac_more_lines=:
   13103   ac_sed_cmds=
   13104   while $ac_more_lines; do
   13105     if test $ac_beg -gt 1; then
   13106       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   13107     else
   13108       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   13109     fi
   13110     if test ! -s $tmp/subs.frag; then
   13111       ac_more_lines=false
   13112     else
   13113       # The purpose of the label and of the branching condition is to
   13114       # speed up the sed processing (if there are no `@' at all, there
   13115       # is no need to browse any of the substitutions).
   13116       # These are the two extra sed commands mentioned above.
   13117       (echo ':t
   13118   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   13119       if test -z "$ac_sed_cmds"; then
   13120   	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   13121       else
   13122   	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   13123       fi
   13124       ac_sed_frag=`expr $ac_sed_frag + 1`
   13125       ac_beg=$ac_end
   13126       ac_end=`expr $ac_end + $ac_max_sed_lines`
   13127     fi
   13128   done
   13129   if test -z "$ac_sed_cmds"; then
   13130     ac_sed_cmds=cat
   13131   fi
   13132 fi # test -n "$CONFIG_FILES"
   13133 
   13134 EOF
   13135 cat >>$CONFIG_STATUS <<\EOF
   13136 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   13137   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   13138   case $ac_file in
   13139   - | *:- | *:-:* ) # input from stdin
   13140         cat >$tmp/stdin
   13141         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   13142         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   13143   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   13144         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   13145   * )   ac_file_in=$ac_file.in ;;
   13146   esac
   13147 
   13148   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   13149   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   13150          X"$ac_file" : 'X\(//\)[^/]' \| \
   13151          X"$ac_file" : 'X\(//\)$' \| \
   13152          X"$ac_file" : 'X\(/\)' \| \
   13153          .     : '\(.\)' 2>/dev/null ||
   13154 echo X"$ac_file" |
   13155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   13156   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   13157   	  /^X\(\/\/\)$/{ s//\1/; q; }
   13158   	  /^X\(\/\).*/{ s//\1/; q; }
   13159   	  s/.*/./; q'`
   13160   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   13161     { case "$ac_dir" in
   13162   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   13163   *)                      as_incr_dir=.;;
   13164 esac
   13165 as_dummy="$ac_dir"
   13166 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   13167   case $as_mkdir_dir in
   13168     # Skip DOS drivespec
   13169     ?:) as_incr_dir=$as_mkdir_dir ;;
   13170     *)
   13171       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   13172       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   13173     ;;
   13174   esac
   13175 done; }
   13176 
   13177     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
   13178     # A "../" for each directory in $ac_dir_suffix.
   13179     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
   13180   else
   13181     ac_dir_suffix= ac_dots=
   13182   fi
   13183 
   13184   case $srcdir in
   13185   .)  ac_srcdir=.
   13186       if test -z "$ac_dots"; then
   13187          ac_top_srcdir=.
   13188       else
   13189          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
   13190       fi ;;
   13191   [\\/]* | ?:[\\/]* )
   13192       ac_srcdir=$srcdir$ac_dir_suffix;
   13193       ac_top_srcdir=$srcdir ;;
   13194   *) # Relative path.
   13195     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
   13196     ac_top_srcdir=$ac_dots$srcdir ;;
   13197   esac
   13198 
   13199   case $INSTALL in
   13200   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   13201   *) ac_INSTALL=$ac_dots$INSTALL ;;
   13202   esac
   13203 
   13204   if test x"$ac_file" != x-; then
   13205     { echo "$as_me:13205: creating $ac_file" >&5
   13206 echo "$as_me: creating $ac_file" >&6;}
   13207     rm -f "$ac_file"
   13208   fi
   13209   # Let's still pretend it is `configure' which instantiates (i.e., don't
   13210   # use $as_me), people would be surprised to read:
   13211   #    /* config.h.  Generated automatically by config.status.  */
   13212   configure_input="Generated automatically from `echo $ac_file_in |
   13213                                                  sed 's,.*/,,'` by configure."
   13214 
   13215   # First look for the input files in the build tree, otherwise in the
   13216   # src tree.
   13217   ac_file_inputs=`IFS=:
   13218     for f in $ac_file_in; do
   13219       case $f in
   13220       -) echo $tmp/stdin ;;
   13221       [\\/$]*)
   13222          # Absolute (can't be DOS-style, as IFS=:)
   13223          test -f "$f" || { { echo "$as_me:13223: error: cannot find input file: $f" >&5
   13224 echo "$as_me: error: cannot find input file: $f" >&2;}
   13225    { (exit 1); exit 1; }; }
   13226          echo $f;;
   13227       *) # Relative
   13228          if test -f "$f"; then
   13229            # Build tree
   13230            echo $f
   13231          elif test -f "$srcdir/$f"; then
   13232            # Source tree
   13233            echo $srcdir/$f
   13234          else
   13235            # /dev/null tree
   13236            { { echo "$as_me:13236: error: cannot find input file: $f" >&5
   13237 echo "$as_me: error: cannot find input file: $f" >&2;}
   13238    { (exit 1); exit 1; }; }
   13239          fi;;
   13240       esac
   13241     done` || { (exit 1); exit 1; }
   13242 EOF
   13243 cat >>$CONFIG_STATUS <<EOF
   13244   sed "$ac_vpsub
   13245 $extrasub
   13246 EOF
   13247 cat >>$CONFIG_STATUS <<\EOF
   13248 :t
   13249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   13250 s,@configure_input@,$configure_input,;t t
   13251 s,@srcdir@,$ac_srcdir,;t t
   13252 s,@top_srcdir@,$ac_top_srcdir,;t t
   13253 s,@INSTALL@,$ac_INSTALL,;t t
   13254 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   13255   rm -f $tmp/stdin
   13256   if test x"$ac_file" != x-; then
   13257     mv $tmp/out $ac_file
   13258   else
   13259     cat $tmp/out
   13260     rm -f $tmp/out
   13261   fi
   13262 
   13263 done
   13264 EOF
   13265 cat >>$CONFIG_STATUS <<\EOF
   13266 
   13267 #
   13268 # CONFIG_HEADER section.
   13269 #
   13270 
   13271 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   13272 # NAME is the cpp macro being defined and VALUE is the value it is being given.
   13273 #
   13274 # ac_d sets the value in "#define NAME VALUE" lines.
   13275 ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
   13276 ac_dB='[ 	].*$,\1#\2'
   13277 ac_dC=' '
   13278 ac_dD=',;t'
   13279 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
   13280 ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   13281 ac_iB='\([ 	]\),\1#\2define\3'
   13282 ac_iC=' '
   13283 ac_iD='\4,;t'
   13284 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   13285 ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   13286 ac_uB='$,\1#\2define\3'
   13287 ac_uC=' '
   13288 ac_uD=',;t'
   13289 
   13290 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   13291   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   13292   case $ac_file in
   13293   - | *:- | *:-:* ) # input from stdin
   13294         cat >$tmp/stdin
   13295         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   13296         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   13297   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   13298         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   13299   * )   ac_file_in=$ac_file.in ;;
   13300   esac
   13301 
   13302   test x"$ac_file" != x- && { echo "$as_me:13302: creating $ac_file" >&5
   13303 echo "$as_me: creating $ac_file" >&6;}
   13304 
   13305   # First look for the input files in the build tree, otherwise in the
   13306   # src tree.
   13307   ac_file_inputs=`IFS=:
   13308     for f in $ac_file_in; do
   13309       case $f in
   13310       -) echo $tmp/stdin ;;
   13311       [\\/$]*)
   13312          # Absolute (can't be DOS-style, as IFS=:)
   13313          test -f "$f" || { { echo "$as_me:13313: error: cannot find input file: $f" >&5
   13314 echo "$as_me: error: cannot find input file: $f" >&2;}
   13315    { (exit 1); exit 1; }; }
   13316          echo $f;;
   13317       *) # Relative
   13318          if test -f "$f"; then
   13319            # Build tree
   13320            echo $f
   13321          elif test -f "$srcdir/$f"; then
   13322            # Source tree
   13323            echo $srcdir/$f
   13324          else
   13325            # /dev/null tree
   13326            { { echo "$as_me:13326: error: cannot find input file: $f" >&5
   13327 echo "$as_me: error: cannot find input file: $f" >&2;}
   13328    { (exit 1); exit 1; }; }
   13329          fi;;
   13330       esac
   13331     done` || { (exit 1); exit 1; }
   13332   # Remove the trailing spaces.
   13333   sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
   13334 
   13335 EOF
   13336 
   13337 # Transform confdefs.h into two sed scripts, `conftest.defines' and
   13338 # `conftest.undefs', that substitutes the proper values into
   13339 # config.h.in to produce config.h.  The first handles `#define'
   13340 # templates, and the second `#undef' templates.
   13341 # And first: Protect against being on the right side of a sed subst in
   13342 # config.status.  Protect against being in an unquoted here document
   13343 # in config.status.
   13344 rm -f conftest.defines conftest.undefs
   13345 # Using a here document instead of a string reduces the quoting nightmare.
   13346 # Putting comments in sed scripts is not portable.
   13347 #
   13348 # `end' is used to avoid that the second main sed command (meant for
   13349 # 0-ary CPP macros) applies to n-ary macro definitions.
   13350 # See the Autoconf documentation for `clear'.
   13351 cat >confdef2sed.sed <<\EOF
   13352 s/[\\&,]/\\&/g
   13353 s,[\\$`],\\&,g
   13354 t clear
   13355 : clear
   13356 s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
   13357 t end
   13358 s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   13359 : end
   13360 EOF
   13361 # If some macros were called several times there might be several times
   13362 # the same #defines, which is useless.  Nevertheless, we may not want to
   13363 # sort them, since we want the *last* AC-DEFINE to be honored.
   13364 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   13365 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   13366 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
   13367 rm -f confdef2sed.sed
   13368 
   13369 # This sed command replaces #undef with comments.  This is necessary, for
   13370 # example, in the case of _POSIX_SOURCE, which is predefined and required
   13371 # on some systems where configure will not decide to define it.
   13372 cat >>conftest.undefs <<\EOF
   13373 s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   13374 EOF
   13375 
   13376 # Break up conftest.defines because some shells have a limit on the size
   13377 # of here documents, and old seds have small limits too (100 cmds).
   13378 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
   13379 echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
   13380 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
   13381 echo '  :' >>$CONFIG_STATUS
   13382 rm -f conftest.tail
   13383 while grep . conftest.defines >/dev/null
   13384 do
   13385   # Write a limited-size here document to $tmp/defines.sed.
   13386   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
   13387   # Speed up: don't consider the non `#define' lines.
   13388   echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
   13389   # Work around the forget-to-reset-the-flag bug.
   13390   echo 't clr' >>$CONFIG_STATUS
   13391   echo ': clr' >>$CONFIG_STATUS
   13392   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   13393   echo 'CEOF
   13394   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   13395   rm -f $tmp/in
   13396   mv $tmp/out $tmp/in
   13397 ' >>$CONFIG_STATUS
   13398   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
   13399   rm -f conftest.defines
   13400   mv conftest.tail conftest.defines
   13401 done
   13402 rm -f conftest.defines
   13403 echo '  fi # egrep' >>$CONFIG_STATUS
   13404 echo >>$CONFIG_STATUS
   13405 
   13406 # Break up conftest.undefs because some shells have a limit on the size
   13407 # of here documents, and old seds have small limits too (100 cmds).
   13408 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
   13409 rm -f conftest.tail
   13410 while grep . conftest.undefs >/dev/null
   13411 do
   13412   # Write a limited-size here document to $tmp/undefs.sed.
   13413   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
   13414   # Speed up: don't consider the non `#undef'
   13415   echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
   13416   # Work around the forget-to-reset-the-flag bug.
   13417   echo 't clr' >>$CONFIG_STATUS
   13418   echo ': clr' >>$CONFIG_STATUS
   13419   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
   13420   echo 'CEOF
   13421   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   13422   rm -f $tmp/in
   13423   mv $tmp/out $tmp/in
   13424 ' >>$CONFIG_STATUS
   13425   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
   13426   rm -f conftest.undefs
   13427   mv conftest.tail conftest.undefs
   13428 done
   13429 rm -f conftest.undefs
   13430 
   13431 cat >>$CONFIG_STATUS <<\EOF
   13432   # Let's still pretend it is `configure' which instantiates (i.e., don't
   13433   # use $as_me), people would be surprised to read:
   13434   #    /* config.h.  Generated automatically by config.status.  */
   13435   if test x"$ac_file" = x-; then
   13436     echo "/* Generated automatically by configure.  */" >$tmp/config.h
   13437   else
   13438     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
   13439   fi
   13440   cat $tmp/in >>$tmp/config.h
   13441   rm -f $tmp/in
   13442   if test x"$ac_file" != x-; then
   13443     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
   13444       { echo "$as_me:13444: $ac_file is unchanged" >&5
   13445 echo "$as_me: $ac_file is unchanged" >&6;}
   13446     else
   13447       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   13448          X"$ac_file" : 'X\(//\)[^/]' \| \
   13449          X"$ac_file" : 'X\(//\)$' \| \
   13450          X"$ac_file" : 'X\(/\)' \| \
   13451          .     : '\(.\)' 2>/dev/null ||
   13452 echo X"$ac_file" |
   13453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   13454   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   13455   	  /^X\(\/\/\)$/{ s//\1/; q; }
   13456   	  /^X\(\/\).*/{ s//\1/; q; }
   13457   	  s/.*/./; q'`
   13458       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   13459         { case "$ac_dir" in
   13460   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   13461   *)                      as_incr_dir=.;;
   13462 esac
   13463 as_dummy="$ac_dir"
   13464 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   13465   case $as_mkdir_dir in
   13466     # Skip DOS drivespec
   13467     ?:) as_incr_dir=$as_mkdir_dir ;;
   13468     *)
   13469       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   13470       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   13471     ;;
   13472   esac
   13473 done; }
   13474 
   13475       fi
   13476       rm -f $ac_file
   13477       mv $tmp/config.h $ac_file
   13478     fi
   13479   else
   13480     cat $tmp/config.h
   13481     rm -f $tmp/config.h
   13482   fi
   13483 done
   13484 EOF
   13485 
   13486 cat >>$CONFIG_STATUS <<\EOF
   13487 
   13488 { (exit 0); exit 0; }
   13489 EOF
   13490 chmod +x $CONFIG_STATUS
   13491 ac_clean_files=$ac_clean_files_save
   13492 
   13493 # configure is writing to config.log, and then calls config.status.
   13494 # config.status does its own redirection, appending to config.log.
   13495 # Unfortunately, on DOS this fails, as config.log is still kept open
   13496 # by configure, so config.status won't be able to write to it; its
   13497 # output is simply discarded.  So we exec the FD to /dev/null,
   13498 # effectively closing config.log, so it can be properly (re)opened and
   13499 # appended to by config.status.  When coming back to configure, we
   13500 # need to make the FD available again.
   13501 if test "$no_create" != yes; then
   13502   ac_cs_success=:
   13503   exec 5>/dev/null
   13504   $SHELL $CONFIG_STATUS || ac_cs_success=false
   13505   exec 5>>config.log
   13506   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   13507   # would make configure fail if this is the last instruction.
   13508   $ac_cs_success || { (exit 1); exit 1; }
   13509 fi
   13510 
   13511