Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.6
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by Autoconf 2.52.20101002.
      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-pkg-config{=path} enable/disable use of pkg-config
    699   --with-Xaw3d            link with Xaw 3d library
    700   --with-neXtaw           link with neXT Athena library
    701   --with-XawPlus          link with Athena-Plus library
    702   --enable-narrowproto    enable narrow prototypes for X libraries
    703   --disable-imake         disable use of imake for definitions
    704 Terminal Configuration:
    705   --with-terminal-id=V    set default decTerminalID (default: vt100)
    706   --with-terminal-type=T  set default $TERM (default: xterm)
    707   --with-own-terminfo=P   set default $TERMINFO (default: from environment)
    708 Optional Features:
    709   --disable-active-icon   disable X11R6.3 active-icon feature
    710   --disable-ansi-color    disable ANSI color
    711   --disable-16-color      disable 16-color support
    712   --enable-256-color      enable 256-color support
    713   --enable-88-color       enable 88-color support
    714   --disable-blink-cursor  disable support for blinking cursor
    715   --enable-broken-osc     allow broken Linux OSC-strings
    716   --disable-broken-st     disallow broken string-terminators
    717   --disable-c1-print      disallow -k8 option for printable 128-159
    718   --disable-bold-color    disable PC-style mapping of bold colors
    719   --disable-color-class   disable separate color class resources
    720   --disable-color-mode    disable default colorMode resource
    721   --disable-highlighting  disable support for color highlighting
    722   --disable-doublechars   disable support for double-size chars
    723   --disable-boxchars      disable fallback-support for box chars
    724   --enable-exec-xterm     enable "spawn-new-terminal" action
    725   --disable-freetype      disable freetype library-support
    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   --disable-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   --disable-rpath-hack    don't add rpath options for additional libraries
    768 
    769 Some influential environment variables:
    770   CC          C compiler command
    771   CFLAGS      C compiler flags
    772   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    773               nonstandard directory <lib dir>
    774   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    775               headers in a nonstandard directory <include dir>
    776   CPP         C preprocessor
    777 
    778 Use these variables to override the choices made by `configure' or to help
    779 it to find libraries and programs with nonstandard names/locations.
    780 
    781 EOF
    782 fi
    783 
    784 if test "$ac_init_help" = "recursive"; then
    785   # If there are subdirs, report their specific --help.
    786   ac_popdir=`pwd`
    787   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
    788     cd $ac_subdir
    789     # A "../" for each directory in /$ac_subdir.
    790     ac_dots=`echo $ac_subdir |
    791              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
    792 
    793     case $srcdir in
    794     .) # No --srcdir option.  We are building in place.
    795       ac_sub_srcdir=$srcdir ;;
    796     [\\/]* | ?:[\\/]* ) # Absolute path.
    797       ac_sub_srcdir=$srcdir/$ac_subdir ;;
    798     *) # Relative path.
    799       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
    800     esac
    801 
    802     # Check for guested configure; otherwise get Cygnus style configure.
    803     if test -f $ac_sub_srcdir/configure.gnu; then
    804       echo
    805       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
    806     elif test -f $ac_sub_srcdir/configure; then
    807       echo
    808       $SHELL $ac_sub_srcdir/configure  --help=recursive
    809     elif test -f $ac_sub_srcdir/configure.ac ||
    810            test -f $ac_sub_srcdir/configure.in; then
    811       echo
    812       $ac_configure --help
    813     else
    814       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
    815     fi
    816     cd $ac_popdir
    817   done
    818 fi
    819 
    820 test -n "$ac_init_help" && exit 0
    821 if $ac_init_version; then
    822   cat <<\EOF
    823 
    824 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
    825 Free Software Foundation, Inc.
    826 This configure script is free software; the Free Software Foundation
    827 gives unlimited permission to copy, distribute and modify it.
    828 EOF
    829   exit 0
    830 fi
    831 exec 5>config.log
    832 cat >&5 <<EOF
    833 This file contains any messages produced by compilers while
    834 running configure, to aid debugging if configure makes a mistake.
    835 
    836 It was created by $as_me, which was
    837 generated by GNU Autoconf 2.52.20101002.  Invocation command line was
    838 
    839   $ $0 $@
    840 
    841 EOF
    842 {
    843 cat <<_ASUNAME
    844 ## ---------- ##
    845 ## Platform.  ##
    846 ## ---------- ##
    847 
    848 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    849 uname -m = `(uname -m) 2>/dev/null || echo unknown`
    850 uname -r = `(uname -r) 2>/dev/null || echo unknown`
    851 uname -s = `(uname -s) 2>/dev/null || echo unknown`
    852 uname -v = `(uname -v) 2>/dev/null || echo unknown`
    853 
    854 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
    855 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
    856 
    857 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
    858 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    859 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    860 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    861 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    862 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    863 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    864 
    865 PATH = $PATH
    866 
    867 _ASUNAME
    868 } >&5
    869 
    870 cat >&5 <<EOF
    871 ## ------------ ##
    872 ## Core tests.  ##
    873 ## ------------ ##
    874 
    875 EOF
    876 
    877 # Keep a trace of the command line.
    878 # Strip out --no-create and --no-recursion so they do not pile up.
    879 # Also quote any args containing shell meta-characters.
    880 ac_configure_args=
    881 ac_sep=
    882 for ac_arg
    883 do
    884   case $ac_arg in
    885   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    886   | --no-cr | --no-c) ;;
    887   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    888   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    889   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    890     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
    891     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    892     ac_sep=" " ;;
    893   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
    894      ac_sep=" " ;;
    895   esac
    896   # Get rid of the leading space.
    897 done
    898 
    899 # When interrupted or exit'd, cleanup temporary files, and complete
    900 # config.log.  We remove comments because anyway the quotes in there
    901 # would cause problems or look ugly.
    902 trap 'exit_status=$?
    903   # Save into config.log some information that might help in debugging.
    904   echo >&5
    905   echo "## ----------------- ##" >&5
    906   echo "## Cache variables.  ##" >&5
    907   echo "## ----------------- ##" >&5
    908   echo >&5
    909   # The following way of writing the cache mishandles newlines in values,
    910 {
    911   (set) 2>&1 |
    912     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    913     *ac_space=\ *)
    914       sed -n \
    915         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    916     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    917       ;;
    918     *)
    919       sed -n \
    920         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    921       ;;
    922     esac;
    923 } >&5
    924   sed "/^$/d" confdefs.h >conftest.log
    925   if test -s conftest.log; then
    926     echo >&5
    927     echo "## ------------ ##" >&5
    928     echo "## confdefs.h.  ##" >&5
    929     echo "## ------------ ##" >&5
    930     echo >&5
    931     cat conftest.log >&5
    932   fi
    933   (echo; echo) >&5
    934   test "$ac_signal" != 0 &&
    935     echo "$as_me: caught signal $ac_signal" >&5
    936   echo "$as_me: exit $exit_status" >&5
    937   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
    938     exit $exit_status
    939      ' 0
    940 for ac_signal in 1 2 13 15; do
    941   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    942 done
    943 ac_signal=0
    944 
    945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    946 rm -rf conftest* confdefs.h
    947 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    948 echo >confdefs.h
    949 
    950 # Let the site file select an alternate cache file if it wants to.
    951 # Prefer explicitly selected file to automatically selected ones.
    952 if test -z "$CONFIG_SITE"; then
    953   if test "x$prefix" != xNONE; then
    954     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    955   else
    956     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    957   fi
    958 fi
    959 for ac_site_file in $CONFIG_SITE; do
    960   if test -r "$ac_site_file"; then
    961     { echo "$as_me:961: loading site script $ac_site_file" >&5
    962 echo "$as_me: loading site script $ac_site_file" >&6;}
    963     cat "$ac_site_file" >&5
    964     . "$ac_site_file"
    965   fi
    966 done
    967 
    968 if test -r "$cache_file"; then
    969   # Some versions of bash will fail to source /dev/null (special
    970   # files actually), so we avoid doing that.
    971   if test -f "$cache_file"; then
    972     { echo "$as_me:972: loading cache $cache_file" >&5
    973 echo "$as_me: loading cache $cache_file" >&6;}
    974     case $cache_file in
    975       [\\/]* | ?:[\\/]* ) . $cache_file;;
    976       *)                      . ./$cache_file;;
    977     esac
    978   fi
    979 else
    980   { echo "$as_me:980: creating cache $cache_file" >&5
    981 echo "$as_me: creating cache $cache_file" >&6;}
    982   >$cache_file
    983 fi
    984 
    985 # Check that the precious variables saved in the cache have kept the same
    986 # value.
    987 ac_cache_corrupted=false
    988 for ac_var in `(set) 2>&1 |
    989                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    990   eval ac_old_set=\$ac_cv_env_${ac_var}_set
    991   eval ac_new_set=\$ac_env_${ac_var}_set
    992   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    993   eval ac_new_val="\$ac_env_${ac_var}_value"
    994   case $ac_old_set,$ac_new_set in
    995     set,)
    996       { echo "$as_me:996: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    997 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    998       ac_cache_corrupted=: ;;
    999     ,set)
   1000       { echo "$as_me:1000: error: \`$ac_var' was not set in the previous run" >&5
   1001 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1002       ac_cache_corrupted=: ;;
   1003     ,);;
   1004     *)
   1005       if test "x$ac_old_val" != "x$ac_new_val"; then
   1006         { echo "$as_me:1006: error: \`$ac_var' has changed since the previous run:" >&5
   1007 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1008         { echo "$as_me:1008:   former value:  $ac_old_val" >&5
   1009 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1010         { echo "$as_me:1010:   current value: $ac_new_val" >&5
   1011 echo "$as_me:   current value: $ac_new_val" >&2;}
   1012         ac_cache_corrupted=:
   1013       fi;;
   1014   esac
   1015   # Pass precious variables to config.status.  It doesn't matter if
   1016   # we pass some twice (in addition to the command line arguments).
   1017   if test "$ac_new_set" = set; then
   1018     case $ac_new_val in
   1019     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1020       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
   1021       ac_configure_args="$ac_configure_args '$ac_arg'"
   1022       ;;
   1023     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
   1024        ;;
   1025     esac
   1026   fi
   1027 done
   1028 if $ac_cache_corrupted; then
   1029   { echo "$as_me:1029: error: changes in the environment can compromise the build" >&5
   1030 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1031   { { echo "$as_me:1031: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1032 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1033    { (exit 1); exit 1; }; }
   1034 fi
   1035 
   1036 ac_ext=c
   1037 ac_cpp='$CPP $CPPFLAGS'
   1038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1041 ac_main_return=return
   1042 
   1043 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
   1044   *c*,-n*) ECHO_N= ECHO_C='
   1045 ' ECHO_T='	' ;;
   1046   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
   1047   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
   1048 esac
   1049 echo "#! $SHELL" >conftest.sh
   1050 echo  "exit 0"   >>conftest.sh
   1051 chmod +x conftest.sh
   1052 if { (echo "$as_me:1052: PATH=\".;.\"; conftest.sh") >&5
   1053   (PATH=".;."; conftest.sh) 2>&5
   1054   ac_status=$?
   1055   echo "$as_me:1055: \$? = $ac_status" >&5
   1056   (exit $ac_status); }; then
   1057   ac_path_separator=';'
   1058 else
   1059   ac_path_separator=:
   1060 fi
   1061 PATH_SEPARATOR="$ac_path_separator"
   1062 rm -f conftest.sh
   1063 
   1064 ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
   1065 
   1066 ac_aux_dir=
   1067 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   1068   if test -f $ac_dir/install-sh; then
   1069     ac_aux_dir=$ac_dir
   1070     ac_install_sh="$ac_aux_dir/install-sh -c"
   1071     break
   1072   elif test -f $ac_dir/install.sh; then
   1073     ac_aux_dir=$ac_dir
   1074     ac_install_sh="$ac_aux_dir/install.sh -c"
   1075     break
   1076   elif test -f $ac_dir/shtool; then
   1077     ac_aux_dir=$ac_dir
   1078     ac_install_sh="$ac_aux_dir/shtool install -c"
   1079     break
   1080   fi
   1081 done
   1082 if test -z "$ac_aux_dir"; then
   1083   { { echo "$as_me:1083: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
   1084 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   1085    { (exit 1); exit 1; }; }
   1086 fi
   1087 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
   1088 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
   1089 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
   1090 
   1091 # Make sure we can run config.sub.
   1092 $ac_config_sub sun4 >/dev/null 2>&1 ||
   1093   { { echo "$as_me:1093: error: cannot run $ac_config_sub" >&5
   1094 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   1095    { (exit 1); exit 1; }; }
   1096 
   1097 echo "$as_me:1097: checking build system type" >&5
   1098 echo $ECHO_N "checking build system type... $ECHO_C" >&6
   1099 if test "${ac_cv_build+set}" = set; then
   1100   echo $ECHO_N "(cached) $ECHO_C" >&6
   1101 else
   1102   ac_cv_build_alias=$build_alias
   1103 test -z "$ac_cv_build_alias" &&
   1104   ac_cv_build_alias=`$ac_config_guess`
   1105 test -z "$ac_cv_build_alias" &&
   1106   { { echo "$as_me:1106: error: cannot guess build type; you must specify one" >&5
   1107 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   1108    { (exit 1); exit 1; }; }
   1109 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
   1110   { { echo "$as_me:1110: error: $ac_config_sub $ac_cv_build_alias failed." >&5
   1111 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
   1112    { (exit 1); exit 1; }; }
   1113 
   1114 fi
   1115 echo "$as_me:1115: result: $ac_cv_build" >&5
   1116 echo "${ECHO_T}$ac_cv_build" >&6
   1117 build=$ac_cv_build
   1118 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1119 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1120 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1121 
   1122 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
   1123 	echo "$as_me:1123: checking host system type" >&5
   1124 echo $ECHO_N "checking host system type... $ECHO_C" >&6
   1125 if test "${ac_cv_host+set}" = set; then
   1126   echo $ECHO_N "(cached) $ECHO_C" >&6
   1127 else
   1128   ac_cv_host_alias=$host_alias
   1129 test -z "$ac_cv_host_alias" &&
   1130   ac_cv_host_alias=$ac_cv_build_alias
   1131 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
   1132   { { echo "$as_me:1132: error: $ac_config_sub $ac_cv_host_alias failed" >&5
   1133 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   1134    { (exit 1); exit 1; }; }
   1135 
   1136 fi
   1137 echo "$as_me:1137: result: $ac_cv_host" >&5
   1138 echo "${ECHO_T}$ac_cv_host" >&6
   1139 host=$ac_cv_host
   1140 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1141 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1142 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1143 
   1144 	system_name="$host_os"
   1145 else
   1146 	system_name="`(uname -s -r) 2>/dev/null`"
   1147 	if test -z "$system_name" ; then
   1148 		system_name="`(hostname) 2>/dev/null`"
   1149 	fi
   1150 fi
   1151 test -n "$system_name" && cat >>confdefs.h <<EOF
   1152 #define SYSTEM_NAME "$system_name"
   1153 EOF
   1154 
   1155 if test "${cf_cv_system_name+set}" = set; then
   1156   echo $ECHO_N "(cached) $ECHO_C" >&6
   1157 else
   1158   cf_cv_system_name="$system_name"
   1159 fi
   1160 
   1161 test -z "$system_name" && system_name="$cf_cv_system_name"
   1162 test -n "$cf_cv_system_name" && echo "$as_me:1162: result: Configuring for $cf_cv_system_name" >&5
   1163 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
   1164 
   1165 if test ".$system_name" != ".$cf_cv_system_name" ; then
   1166 	echo "$as_me:1166: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
   1167 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
   1168 	{ { echo "$as_me:1168: error: \"Please remove config.cache and try again.\"" >&5
   1169 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
   1170    { (exit 1); exit 1; }; }
   1171 fi
   1172 
   1173 ###	checks for alternative programs
   1174 
   1175 case "$host_os" in
   1176 openedition)	: ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"}
   1177 		: ${CPPFLAGS="-D_ALL_SOURCE"}
   1178 		: ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"}
   1179 		: ${CC=c89};;
   1180 darwin*)
   1181 		: ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";;
   1182 esac
   1183 
   1184 ac_ext=c
   1185 ac_cpp='$CPP $CPPFLAGS'
   1186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1189 ac_main_return=return
   1190 if test -n "$ac_tool_prefix"; then
   1191   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1192 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1193 echo "$as_me:1193: checking for $ac_word" >&5
   1194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1195 if test "${ac_cv_prog_CC+set}" = set; then
   1196   echo $ECHO_N "(cached) $ECHO_C" >&6
   1197 else
   1198   if test -n "$CC"; then
   1199   ac_cv_prog_CC="$CC" # Let the user override the test.
   1200 else
   1201   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1202 ac_dummy="$PATH"
   1203 for ac_dir in $ac_dummy; do
   1204   IFS=$ac_save_IFS
   1205   test -z "$ac_dir" && ac_dir=.
   1206   $as_executable_p "$ac_dir/$ac_word" || continue
   1207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1208 echo "$as_me:1208: found $ac_dir/$ac_word" >&5
   1209 break
   1210 done
   1211 
   1212 fi
   1213 fi
   1214 CC=$ac_cv_prog_CC
   1215 if test -n "$CC"; then
   1216   echo "$as_me:1216: result: $CC" >&5
   1217 echo "${ECHO_T}$CC" >&6
   1218 else
   1219   echo "$as_me:1219: result: no" >&5
   1220 echo "${ECHO_T}no" >&6
   1221 fi
   1222 
   1223 fi
   1224 if test -z "$ac_cv_prog_CC"; then
   1225   ac_ct_CC=$CC
   1226   # Extract the first word of "gcc", so it can be a program name with args.
   1227 set dummy gcc; ac_word=$2
   1228 echo "$as_me:1228: checking for $ac_word" >&5
   1229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1231   echo $ECHO_N "(cached) $ECHO_C" >&6
   1232 else
   1233   if test -n "$ac_ct_CC"; then
   1234   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1235 else
   1236   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1237 ac_dummy="$PATH"
   1238 for ac_dir in $ac_dummy; do
   1239   IFS=$ac_save_IFS
   1240   test -z "$ac_dir" && ac_dir=.
   1241   $as_executable_p "$ac_dir/$ac_word" || continue
   1242 ac_cv_prog_ac_ct_CC="gcc"
   1243 echo "$as_me:1243: found $ac_dir/$ac_word" >&5
   1244 break
   1245 done
   1246 
   1247 fi
   1248 fi
   1249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1250 if test -n "$ac_ct_CC"; then
   1251   echo "$as_me:1251: result: $ac_ct_CC" >&5
   1252 echo "${ECHO_T}$ac_ct_CC" >&6
   1253 else
   1254   echo "$as_me:1254: result: no" >&5
   1255 echo "${ECHO_T}no" >&6
   1256 fi
   1257 
   1258   CC=$ac_ct_CC
   1259 else
   1260   CC="$ac_cv_prog_CC"
   1261 fi
   1262 
   1263 if test -z "$CC"; then
   1264   if test -n "$ac_tool_prefix"; then
   1265   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1266 set dummy ${ac_tool_prefix}cc; ac_word=$2
   1267 echo "$as_me:1267: checking for $ac_word" >&5
   1268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1269 if test "${ac_cv_prog_CC+set}" = set; then
   1270   echo $ECHO_N "(cached) $ECHO_C" >&6
   1271 else
   1272   if test -n "$CC"; then
   1273   ac_cv_prog_CC="$CC" # Let the user override the test.
   1274 else
   1275   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1276 ac_dummy="$PATH"
   1277 for ac_dir in $ac_dummy; do
   1278   IFS=$ac_save_IFS
   1279   test -z "$ac_dir" && ac_dir=.
   1280   $as_executable_p "$ac_dir/$ac_word" || continue
   1281 ac_cv_prog_CC="${ac_tool_prefix}cc"
   1282 echo "$as_me:1282: found $ac_dir/$ac_word" >&5
   1283 break
   1284 done
   1285 
   1286 fi
   1287 fi
   1288 CC=$ac_cv_prog_CC
   1289 if test -n "$CC"; then
   1290   echo "$as_me:1290: result: $CC" >&5
   1291 echo "${ECHO_T}$CC" >&6
   1292 else
   1293   echo "$as_me:1293: result: no" >&5
   1294 echo "${ECHO_T}no" >&6
   1295 fi
   1296 
   1297 fi
   1298 if test -z "$ac_cv_prog_CC"; then
   1299   ac_ct_CC=$CC
   1300   # Extract the first word of "cc", so it can be a program name with args.
   1301 set dummy cc; ac_word=$2
   1302 echo "$as_me:1302: checking for $ac_word" >&5
   1303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1304 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1305   echo $ECHO_N "(cached) $ECHO_C" >&6
   1306 else
   1307   if test -n "$ac_ct_CC"; then
   1308   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1309 else
   1310   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1311 ac_dummy="$PATH"
   1312 for ac_dir in $ac_dummy; do
   1313   IFS=$ac_save_IFS
   1314   test -z "$ac_dir" && ac_dir=.
   1315   $as_executable_p "$ac_dir/$ac_word" || continue
   1316 ac_cv_prog_ac_ct_CC="cc"
   1317 echo "$as_me:1317: found $ac_dir/$ac_word" >&5
   1318 break
   1319 done
   1320 
   1321 fi
   1322 fi
   1323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1324 if test -n "$ac_ct_CC"; then
   1325   echo "$as_me:1325: result: $ac_ct_CC" >&5
   1326 echo "${ECHO_T}$ac_ct_CC" >&6
   1327 else
   1328   echo "$as_me:1328: result: no" >&5
   1329 echo "${ECHO_T}no" >&6
   1330 fi
   1331 
   1332   CC=$ac_ct_CC
   1333 else
   1334   CC="$ac_cv_prog_CC"
   1335 fi
   1336 
   1337 fi
   1338 if test -z "$CC"; then
   1339   # Extract the first word of "cc", so it can be a program name with args.
   1340 set dummy cc; ac_word=$2
   1341 echo "$as_me:1341: checking for $ac_word" >&5
   1342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1343 if test "${ac_cv_prog_CC+set}" = set; then
   1344   echo $ECHO_N "(cached) $ECHO_C" >&6
   1345 else
   1346   if test -n "$CC"; then
   1347   ac_cv_prog_CC="$CC" # Let the user override the test.
   1348 else
   1349   ac_prog_rejected=no
   1350   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1351 ac_dummy="$PATH"
   1352 for ac_dir in $ac_dummy; do
   1353   IFS=$ac_save_IFS
   1354   test -z "$ac_dir" && ac_dir=.
   1355   $as_executable_p "$ac_dir/$ac_word" || continue
   1356 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
   1357   ac_prog_rejected=yes
   1358   continue
   1359 fi
   1360 ac_cv_prog_CC="cc"
   1361 echo "$as_me:1361: found $ac_dir/$ac_word" >&5
   1362 break
   1363 done
   1364 
   1365 if test $ac_prog_rejected = yes; then
   1366   # We found a bogon in the path, so make sure we never use it.
   1367   set dummy $ac_cv_prog_CC
   1368   shift
   1369   if test $# != 0; then
   1370     # We chose a different compiler from the bogus one.
   1371     # However, it has the same basename, so the bogon will be chosen
   1372     # first if we set CC to just the basename; use the full file name.
   1373     shift
   1374     set dummy "$ac_dir/$ac_word" ${1+"$@"}
   1375     shift
   1376     ac_cv_prog_CC="$@"
   1377   fi
   1378 fi
   1379 fi
   1380 fi
   1381 CC=$ac_cv_prog_CC
   1382 if test -n "$CC"; then
   1383   echo "$as_me:1383: result: $CC" >&5
   1384 echo "${ECHO_T}$CC" >&6
   1385 else
   1386   echo "$as_me:1386: result: no" >&5
   1387 echo "${ECHO_T}no" >&6
   1388 fi
   1389 
   1390 fi
   1391 if test -z "$CC"; then
   1392   if test -n "$ac_tool_prefix"; then
   1393   for ac_prog in cl
   1394   do
   1395     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1397 echo "$as_me:1397: checking for $ac_word" >&5
   1398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1399 if test "${ac_cv_prog_CC+set}" = set; then
   1400   echo $ECHO_N "(cached) $ECHO_C" >&6
   1401 else
   1402   if test -n "$CC"; then
   1403   ac_cv_prog_CC="$CC" # Let the user override the test.
   1404 else
   1405   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1406 ac_dummy="$PATH"
   1407 for ac_dir in $ac_dummy; do
   1408   IFS=$ac_save_IFS
   1409   test -z "$ac_dir" && ac_dir=.
   1410   $as_executable_p "$ac_dir/$ac_word" || continue
   1411 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1412 echo "$as_me:1412: found $ac_dir/$ac_word" >&5
   1413 break
   1414 done
   1415 
   1416 fi
   1417 fi
   1418 CC=$ac_cv_prog_CC
   1419 if test -n "$CC"; then
   1420   echo "$as_me:1420: result: $CC" >&5
   1421 echo "${ECHO_T}$CC" >&6
   1422 else
   1423   echo "$as_me:1423: result: no" >&5
   1424 echo "${ECHO_T}no" >&6
   1425 fi
   1426 
   1427     test -n "$CC" && break
   1428   done
   1429 fi
   1430 if test -z "$CC"; then
   1431   ac_ct_CC=$CC
   1432   for ac_prog in cl
   1433 do
   1434   # Extract the first word of "$ac_prog", so it can be a program name with args.
   1435 set dummy $ac_prog; ac_word=$2
   1436 echo "$as_me:1436: checking for $ac_word" >&5
   1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1439   echo $ECHO_N "(cached) $ECHO_C" >&6
   1440 else
   1441   if test -n "$ac_ct_CC"; then
   1442   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1443 else
   1444   ac_save_IFS=$IFS; IFS=$ac_path_separator
   1445 ac_dummy="$PATH"
   1446 for ac_dir in $ac_dummy; do
   1447   IFS=$ac_save_IFS
   1448   test -z "$ac_dir" && ac_dir=.
   1449   $as_executable_p "$ac_dir/$ac_word" || continue
   1450 ac_cv_prog_ac_ct_CC="$ac_prog"
   1451 echo "$as_me:1451: found $ac_dir/$ac_word" >&5
   1452 break
   1453 done
   1454 
   1455 fi
   1456 fi
   1457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1458 if test -n "$ac_ct_CC"; then
   1459   echo "$as_me:1459: result: $ac_ct_CC" >&5
   1460 echo "${ECHO_T}$ac_ct_CC" >&6
   1461 else
   1462   echo "$as_me:1462: result: no" >&5
   1463 echo "${ECHO_T}no" >&6
   1464 fi
   1465 
   1466   test -n "$ac_ct_CC" && break
   1467 done
   1468 
   1469   CC=$ac_ct_CC
   1470 fi
   1471 
   1472 fi
   1473 
   1474 test -z "$CC" && { { echo "$as_me:1474: error: no acceptable cc found in \$PATH" >&5
   1475 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
   1476    { (exit 1); exit 1; }; }
   1477 
   1478 # Provide some information about the compiler.
   1479 echo "$as_me:1479:" \
   1480      "checking for C compiler version" >&5
   1481 ac_compiler=`set X $ac_compile; echo $2`
   1482 { (eval echo "$as_me:1482: \"$ac_compiler --version </dev/null >&5\"") >&5
   1483   (eval $ac_compiler --version </dev/null >&5) 2>&5
   1484   ac_status=$?
   1485   echo "$as_me:1485: \$? = $ac_status" >&5
   1486   (exit $ac_status); }
   1487 { (eval echo "$as_me:1487: \"$ac_compiler -v </dev/null >&5\"") >&5
   1488   (eval $ac_compiler -v </dev/null >&5) 2>&5
   1489   ac_status=$?
   1490   echo "$as_me:1490: \$? = $ac_status" >&5
   1491   (exit $ac_status); }
   1492 { (eval echo "$as_me:1492: \"$ac_compiler -V </dev/null >&5\"") >&5
   1493   (eval $ac_compiler -V </dev/null >&5) 2>&5
   1494   ac_status=$?
   1495   echo "$as_me:1495: \$? = $ac_status" >&5
   1496   (exit $ac_status); }
   1497 
   1498 cat >conftest.$ac_ext <<_ACEOF
   1499 #line 1499 "configure"
   1500 #include "confdefs.h"
   1501 
   1502 int
   1503 main ()
   1504 {
   1505 
   1506   ;
   1507   return 0;
   1508 }
   1509 _ACEOF
   1510 ac_clean_files_save=$ac_clean_files
   1511 ac_clean_files="$ac_clean_files a.out a.exe"
   1512 # Try to create an executable without -o first, disregard a.out.
   1513 # It will help us diagnose broken compilers, and finding out an intuition
   1514 # of exeext.
   1515 echo "$as_me:1515: checking for C compiler default output" >&5
   1516 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
   1517 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   1518 if { (eval echo "$as_me:1518: \"$ac_link_default\"") >&5
   1519   (eval $ac_link_default) 2>&5
   1520   ac_status=$?
   1521   echo "$as_me:1521: \$? = $ac_status" >&5
   1522   (exit $ac_status); }; then
   1523   # Find the output, starting from the most likely.  This scheme is
   1524 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
   1525 # resort.
   1526 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
   1527                 ls a.out conftest 2>/dev/null;
   1528                 ls a.* conftest.* 2>/dev/null`; do
   1529   case $ac_file in
   1530     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1531     a.out ) # We found the default executable, but exeext='' is most
   1532             # certainly right.
   1533             break;;
   1534     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1535           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
   1536           export ac_cv_exeext
   1537           break;;
   1538     * ) break;;
   1539   esac
   1540 done
   1541 else
   1542   echo "$as_me: failed program was:" >&5
   1543 cat conftest.$ac_ext >&5
   1544 { { echo "$as_me:1544: error: C compiler cannot create executables" >&5
   1545 echo "$as_me: error: C compiler cannot create executables" >&2;}
   1546    { (exit 77); exit 77; }; }
   1547 fi
   1548 
   1549 ac_exeext=$ac_cv_exeext
   1550 echo "$as_me:1550: result: $ac_file" >&5
   1551 echo "${ECHO_T}$ac_file" >&6
   1552 
   1553 # Check the compiler produces executables we can run.  If not, either
   1554 # the compiler is broken, or we cross compile.
   1555 echo "$as_me:1555: checking whether the C compiler works" >&5
   1556 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
   1557 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   1558 # If not cross compiling, check that we can run a simple program.
   1559 if test "$cross_compiling" != yes; then
   1560   if { ac_try='./$ac_file'
   1561   { (eval echo "$as_me:1561: \"$ac_try\"") >&5
   1562   (eval $ac_try) 2>&5
   1563   ac_status=$?
   1564   echo "$as_me:1564: \$? = $ac_status" >&5
   1565   (exit $ac_status); }; }; then
   1566     cross_compiling=no
   1567   else
   1568     if test "$cross_compiling" = maybe; then
   1569 	cross_compiling=yes
   1570     else
   1571 	{ { echo "$as_me:1571: error: cannot run C compiled programs.
   1572 If you meant to cross compile, use \`--host'." >&5
   1573 echo "$as_me: error: cannot run C compiled programs.
   1574 If you meant to cross compile, use \`--host'." >&2;}
   1575    { (exit 1); exit 1; }; }
   1576     fi
   1577   fi
   1578 fi
   1579 echo "$as_me:1579: result: yes" >&5
   1580 echo "${ECHO_T}yes" >&6
   1581 
   1582 rm -f a.out a.exe conftest$ac_cv_exeext
   1583 ac_clean_files=$ac_clean_files_save
   1584 # Check the compiler produces executables we can run.  If not, either
   1585 # the compiler is broken, or we cross compile.
   1586 echo "$as_me:1586: checking whether we are cross compiling" >&5
   1587 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
   1588 echo "$as_me:1588: result: $cross_compiling" >&5
   1589 echo "${ECHO_T}$cross_compiling" >&6
   1590 
   1591 echo "$as_me:1591: checking for executable suffix" >&5
   1592 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
   1593 if { (eval echo "$as_me:1593: \"$ac_link\"") >&5
   1594   (eval $ac_link) 2>&5
   1595   ac_status=$?
   1596   echo "$as_me:1596: \$? = $ac_status" >&5
   1597   (exit $ac_status); }; then
   1598   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   1599 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   1600 # work properly (i.e., refer to `conftest.exe'), while it won't with
   1601 # `rm'.
   1602 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
   1603   case $ac_file in
   1604     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   1605     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1606           export ac_cv_exeext
   1607           break;;
   1608     * ) break;;
   1609   esac
   1610 done
   1611 else
   1612   { { echo "$as_me:1612: error: cannot compute EXEEXT: cannot compile and link" >&5
   1613 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
   1614    { (exit 1); exit 1; }; }
   1615 fi
   1616 
   1617 rm -f conftest$ac_cv_exeext
   1618 echo "$as_me:1618: result: $ac_cv_exeext" >&5
   1619 echo "${ECHO_T}$ac_cv_exeext" >&6
   1620 
   1621 rm -f conftest.$ac_ext
   1622 EXEEXT=$ac_cv_exeext
   1623 ac_exeext=$EXEEXT
   1624 echo "$as_me:1624: checking for object suffix" >&5
   1625 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
   1626 if test "${ac_cv_objext+set}" = set; then
   1627   echo $ECHO_N "(cached) $ECHO_C" >&6
   1628 else
   1629   cat >conftest.$ac_ext <<_ACEOF
   1630 #line 1630 "configure"
   1631 #include "confdefs.h"
   1632 
   1633 int
   1634 main ()
   1635 {
   1636 
   1637   ;
   1638   return 0;
   1639 }
   1640 _ACEOF
   1641 rm -f conftest.o conftest.obj
   1642 if { (eval echo "$as_me:1642: \"$ac_compile\"") >&5
   1643   (eval $ac_compile) 2>&5
   1644   ac_status=$?
   1645   echo "$as_me:1645: \$? = $ac_status" >&5
   1646   (exit $ac_status); }; then
   1647   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   1648   case $ac_file in
   1649     *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
   1650     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   1651        break;;
   1652   esac
   1653 done
   1654 else
   1655   echo "$as_me: failed program was:" >&5
   1656 cat conftest.$ac_ext >&5
   1657 { { echo "$as_me:1657: error: cannot compute OBJEXT: cannot compile" >&5
   1658 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
   1659    { (exit 1); exit 1; }; }
   1660 fi
   1661 
   1662 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   1663 fi
   1664 echo "$as_me:1664: result: $ac_cv_objext" >&5
   1665 echo "${ECHO_T}$ac_cv_objext" >&6
   1666 OBJEXT=$ac_cv_objext
   1667 ac_objext=$OBJEXT
   1668 echo "$as_me:1668: checking whether we are using the GNU C compiler" >&5
   1669 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
   1670 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   1671   echo $ECHO_N "(cached) $ECHO_C" >&6
   1672 else
   1673   cat >conftest.$ac_ext <<_ACEOF
   1674 #line 1674 "configure"
   1675 #include "confdefs.h"
   1676 
   1677 int
   1678 main ()
   1679 {
   1680 #ifndef __GNUC__
   1681        choke me
   1682 #endif
   1683 
   1684   ;
   1685   return 0;
   1686 }
   1687 _ACEOF
   1688 rm -f conftest.$ac_objext
   1689 if { (eval echo "$as_me:1689: \"$ac_compile\"") >&5
   1690   (eval $ac_compile) 2>&5
   1691   ac_status=$?
   1692   echo "$as_me:1692: \$? = $ac_status" >&5
   1693   (exit $ac_status); } &&
   1694          { ac_try='test -s conftest.$ac_objext'
   1695   { (eval echo "$as_me:1695: \"$ac_try\"") >&5
   1696   (eval $ac_try) 2>&5
   1697   ac_status=$?
   1698   echo "$as_me:1698: \$? = $ac_status" >&5
   1699   (exit $ac_status); }; }; then
   1700   ac_compiler_gnu=yes
   1701 else
   1702   echo "$as_me: failed program was:" >&5
   1703 cat conftest.$ac_ext >&5
   1704 ac_compiler_gnu=no
   1705 fi
   1706 rm -f conftest.$ac_objext conftest.$ac_ext
   1707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   1708 
   1709 fi
   1710 echo "$as_me:1710: result: $ac_cv_c_compiler_gnu" >&5
   1711 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
   1712 GCC=`test $ac_compiler_gnu = yes && echo yes`
   1713 ac_test_CFLAGS=${CFLAGS+set}
   1714 ac_save_CFLAGS=$CFLAGS
   1715 CFLAGS="-g"
   1716 echo "$as_me:1716: checking whether $CC accepts -g" >&5
   1717 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
   1718 if test "${ac_cv_prog_cc_g+set}" = set; then
   1719   echo $ECHO_N "(cached) $ECHO_C" >&6
   1720 else
   1721   cat >conftest.$ac_ext <<_ACEOF
   1722 #line 1722 "configure"
   1723 #include "confdefs.h"
   1724 
   1725 int
   1726 main ()
   1727 {
   1728 
   1729   ;
   1730   return 0;
   1731 }
   1732 _ACEOF
   1733 rm -f conftest.$ac_objext
   1734 if { (eval echo "$as_me:1734: \"$ac_compile\"") >&5
   1735   (eval $ac_compile) 2>&5
   1736   ac_status=$?
   1737   echo "$as_me:1737: \$? = $ac_status" >&5
   1738   (exit $ac_status); } &&
   1739          { ac_try='test -s conftest.$ac_objext'
   1740   { (eval echo "$as_me:1740: \"$ac_try\"") >&5
   1741   (eval $ac_try) 2>&5
   1742   ac_status=$?
   1743   echo "$as_me:1743: \$? = $ac_status" >&5
   1744   (exit $ac_status); }; }; then
   1745   ac_cv_prog_cc_g=yes
   1746 else
   1747   echo "$as_me: failed program was:" >&5
   1748 cat conftest.$ac_ext >&5
   1749 ac_cv_prog_cc_g=no
   1750 fi
   1751 rm -f conftest.$ac_objext conftest.$ac_ext
   1752 fi
   1753 echo "$as_me:1753: result: $ac_cv_prog_cc_g" >&5
   1754 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
   1755 if test "$ac_test_CFLAGS" = set; then
   1756   CFLAGS=$ac_save_CFLAGS
   1757 elif test $ac_cv_prog_cc_g = yes; then
   1758   if test "$GCC" = yes; then
   1759     CFLAGS="-g -O2"
   1760   else
   1761     CFLAGS="-g"
   1762   fi
   1763 else
   1764   if test "$GCC" = yes; then
   1765     CFLAGS="-O2"
   1766   else
   1767     CFLAGS=
   1768   fi
   1769 fi
   1770 # Some people use a C++ compiler to compile C.  Since we use `exit',
   1771 # in C++ we need to declare it.  In case someone uses the same compiler
   1772 # for both compiling C and C++ we need to have the C++ compiler decide
   1773 # the declaration of exit, since it's the most demanding environment.
   1774 cat >conftest.$ac_ext <<_ACEOF
   1775 #ifndef __cplusplus
   1776   choke me
   1777 #endif
   1778 _ACEOF
   1779 rm -f conftest.$ac_objext
   1780 if { (eval echo "$as_me:1780: \"$ac_compile\"") >&5
   1781   (eval $ac_compile) 2>&5
   1782   ac_status=$?
   1783   echo "$as_me:1783: \$? = $ac_status" >&5
   1784   (exit $ac_status); } &&
   1785          { ac_try='test -s conftest.$ac_objext'
   1786   { (eval echo "$as_me:1786: \"$ac_try\"") >&5
   1787   (eval $ac_try) 2>&5
   1788   ac_status=$?
   1789   echo "$as_me:1789: \$? = $ac_status" >&5
   1790   (exit $ac_status); }; }; then
   1791   for ac_declaration in \
   1792    ''\
   1793    '#include <stdlib.h>' \
   1794    'extern "C" void std::exit (int) throw (); using std::exit;' \
   1795    'extern "C" void std::exit (int); using std::exit;' \
   1796    'extern "C" void exit (int) throw ();' \
   1797    'extern "C" void exit (int);' \
   1798    'void exit (int);'
   1799 do
   1800   cat >conftest.$ac_ext <<_ACEOF
   1801 #line 1801 "configure"
   1802 #include "confdefs.h"
   1803 #include <stdlib.h>
   1804 $ac_declaration
   1805 int
   1806 main ()
   1807 {
   1808 exit (42);
   1809   ;
   1810   return 0;
   1811 }
   1812 _ACEOF
   1813 rm -f conftest.$ac_objext
   1814 if { (eval echo "$as_me:1814: \"$ac_compile\"") >&5
   1815   (eval $ac_compile) 2>&5
   1816   ac_status=$?
   1817   echo "$as_me:1817: \$? = $ac_status" >&5
   1818   (exit $ac_status); } &&
   1819          { ac_try='test -s conftest.$ac_objext'
   1820   { (eval echo "$as_me:1820: \"$ac_try\"") >&5
   1821   (eval $ac_try) 2>&5
   1822   ac_status=$?
   1823   echo "$as_me:1823: \$? = $ac_status" >&5
   1824   (exit $ac_status); }; }; then
   1825   :
   1826 else
   1827   echo "$as_me: failed program was:" >&5
   1828 cat conftest.$ac_ext >&5
   1829 continue
   1830 fi
   1831 rm -f conftest.$ac_objext conftest.$ac_ext
   1832   cat >conftest.$ac_ext <<_ACEOF
   1833 #line 1833 "configure"
   1834 #include "confdefs.h"
   1835 $ac_declaration
   1836 int
   1837 main ()
   1838 {
   1839 exit (42);
   1840   ;
   1841   return 0;
   1842 }
   1843 _ACEOF
   1844 rm -f conftest.$ac_objext
   1845 if { (eval echo "$as_me:1845: \"$ac_compile\"") >&5
   1846   (eval $ac_compile) 2>&5
   1847   ac_status=$?
   1848   echo "$as_me:1848: \$? = $ac_status" >&5
   1849   (exit $ac_status); } &&
   1850          { ac_try='test -s conftest.$ac_objext'
   1851   { (eval echo "$as_me:1851: \"$ac_try\"") >&5
   1852   (eval $ac_try) 2>&5
   1853   ac_status=$?
   1854   echo "$as_me:1854: \$? = $ac_status" >&5
   1855   (exit $ac_status); }; }; then
   1856   break
   1857 else
   1858   echo "$as_me: failed program was:" >&5
   1859 cat conftest.$ac_ext >&5
   1860 fi
   1861 rm -f conftest.$ac_objext conftest.$ac_ext
   1862 done
   1863 rm -rf conftest*
   1864 if test -n "$ac_declaration"; then
   1865   echo '#ifdef __cplusplus' >>confdefs.h
   1866   echo $ac_declaration      >>confdefs.h
   1867   echo '#endif'             >>confdefs.h
   1868 fi
   1869 
   1870 else
   1871   echo "$as_me: failed program was:" >&5
   1872 cat conftest.$ac_ext >&5
   1873 fi
   1874 rm -f conftest.$ac_objext conftest.$ac_ext
   1875 ac_ext=c
   1876 ac_cpp='$CPP $CPPFLAGS'
   1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1880 ac_main_return=return
   1881 
   1882 ac_ext=c
   1883 ac_cpp='$CPP $CPPFLAGS'
   1884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1887 ac_main_return=return
   1888 echo "$as_me:1888: checking how to run the C preprocessor" >&5
   1889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   1890 # On Suns, sometimes $CPP names a directory.
   1891 if test -n "$CPP" && test -d "$CPP"; then
   1892   CPP=
   1893 fi
   1894 if test -z "$CPP"; then
   1895   if test "${ac_cv_prog_CPP+set}" = set; then
   1896   echo $ECHO_N "(cached) $ECHO_C" >&6
   1897 else
   1898       # Double quotes because CPP needs to be expanded
   1899     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   1900     do
   1901       ac_preproc_ok=false
   1902 for ac_c_preproc_warn_flag in '' yes
   1903 do
   1904   # Use a header file that comes with gcc, so configuring glibc
   1905   # with a fresh cross-compiler works.
   1906   # On the NeXT, cc -E runs the code through the compiler's parser,
   1907   # not just through cpp. "Syntax error" is here to catch this case.
   1908   cat >conftest.$ac_ext <<_ACEOF
   1909 #line 1909 "configure"
   1910 #include "confdefs.h"
   1911 #include <assert.h>
   1912                      Syntax error
   1913 _ACEOF
   1914 if { (eval echo "$as_me:1914: \"$ac_cpp conftest.$ac_ext\"") >&5
   1915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   1916   ac_status=$?
   1917   egrep -v '^ *\+' conftest.er1 >conftest.err
   1918   rm -f conftest.er1
   1919   cat conftest.err >&5
   1920   echo "$as_me:1920: \$? = $ac_status" >&5
   1921   (exit $ac_status); } >/dev/null; then
   1922   if test -s conftest.err; then
   1923     ac_cpp_err=$ac_c_preproc_warn_flag
   1924   else
   1925     ac_cpp_err=
   1926   fi
   1927 else
   1928   ac_cpp_err=yes
   1929 fi
   1930 if test -z "$ac_cpp_err"; then
   1931   :
   1932 else
   1933   echo "$as_me: failed program was:" >&5
   1934   cat conftest.$ac_ext >&5
   1935   # Broken: fails on valid input.
   1936 continue
   1937 fi
   1938 rm -f conftest.err conftest.$ac_ext
   1939 
   1940   # OK, works on sane cases.  Now check whether non-existent headers
   1941   # can be detected and how.
   1942   cat >conftest.$ac_ext <<_ACEOF
   1943 #line 1943 "configure"
   1944 #include "confdefs.h"
   1945 #include <ac_nonexistent.h>
   1946 _ACEOF
   1947 if { (eval echo "$as_me:1947: \"$ac_cpp conftest.$ac_ext\"") >&5
   1948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   1949   ac_status=$?
   1950   egrep -v '^ *\+' conftest.er1 >conftest.err
   1951   rm -f conftest.er1
   1952   cat conftest.err >&5
   1953   echo "$as_me:1953: \$? = $ac_status" >&5
   1954   (exit $ac_status); } >/dev/null; then
   1955   if test -s conftest.err; then
   1956     ac_cpp_err=$ac_c_preproc_warn_flag
   1957   else
   1958     ac_cpp_err=
   1959   fi
   1960 else
   1961   ac_cpp_err=yes
   1962 fi
   1963 if test -z "$ac_cpp_err"; then
   1964   # Broken: success on invalid input.
   1965 continue
   1966 else
   1967   echo "$as_me: failed program was:" >&5
   1968   cat conftest.$ac_ext >&5
   1969   # Passes both tests.
   1970 ac_preproc_ok=:
   1971 break
   1972 fi
   1973 rm -f conftest.err conftest.$ac_ext
   1974 
   1975 done
   1976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   1977 rm -f conftest.err conftest.$ac_ext
   1978 if $ac_preproc_ok; then
   1979   break
   1980 fi
   1981 
   1982     done
   1983     ac_cv_prog_CPP=$CPP
   1984 
   1985 fi
   1986   CPP=$ac_cv_prog_CPP
   1987 else
   1988   ac_cv_prog_CPP=$CPP
   1989 fi
   1990 echo "$as_me:1990: result: $CPP" >&5
   1991 echo "${ECHO_T}$CPP" >&6
   1992 ac_preproc_ok=false
   1993 for ac_c_preproc_warn_flag in '' yes
   1994 do
   1995   # Use a header file that comes with gcc, so configuring glibc
   1996   # with a fresh cross-compiler works.
   1997   # On the NeXT, cc -E runs the code through the compiler's parser,
   1998   # not just through cpp. "Syntax error" is here to catch this case.
   1999   cat >conftest.$ac_ext <<_ACEOF
   2000 #line 2000 "configure"
   2001 #include "confdefs.h"
   2002 #include <assert.h>
   2003                      Syntax error
   2004 _ACEOF
   2005 if { (eval echo "$as_me:2005: \"$ac_cpp conftest.$ac_ext\"") >&5
   2006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2007   ac_status=$?
   2008   egrep -v '^ *\+' conftest.er1 >conftest.err
   2009   rm -f conftest.er1
   2010   cat conftest.err >&5
   2011   echo "$as_me:2011: \$? = $ac_status" >&5
   2012   (exit $ac_status); } >/dev/null; then
   2013   if test -s conftest.err; then
   2014     ac_cpp_err=$ac_c_preproc_warn_flag
   2015   else
   2016     ac_cpp_err=
   2017   fi
   2018 else
   2019   ac_cpp_err=yes
   2020 fi
   2021 if test -z "$ac_cpp_err"; then
   2022   :
   2023 else
   2024   echo "$as_me: failed program was:" >&5
   2025   cat conftest.$ac_ext >&5
   2026   # Broken: fails on valid input.
   2027 continue
   2028 fi
   2029 rm -f conftest.err conftest.$ac_ext
   2030 
   2031   # OK, works on sane cases.  Now check whether non-existent headers
   2032   # can be detected and how.
   2033   cat >conftest.$ac_ext <<_ACEOF
   2034 #line 2034 "configure"
   2035 #include "confdefs.h"
   2036 #include <ac_nonexistent.h>
   2037 _ACEOF
   2038 if { (eval echo "$as_me:2038: \"$ac_cpp conftest.$ac_ext\"") >&5
   2039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2040   ac_status=$?
   2041   egrep -v '^ *\+' conftest.er1 >conftest.err
   2042   rm -f conftest.er1
   2043   cat conftest.err >&5
   2044   echo "$as_me:2044: \$? = $ac_status" >&5
   2045   (exit $ac_status); } >/dev/null; then
   2046   if test -s conftest.err; then
   2047     ac_cpp_err=$ac_c_preproc_warn_flag
   2048   else
   2049     ac_cpp_err=
   2050   fi
   2051 else
   2052   ac_cpp_err=yes
   2053 fi
   2054 if test -z "$ac_cpp_err"; then
   2055   # Broken: success on invalid input.
   2056 continue
   2057 else
   2058   echo "$as_me: failed program was:" >&5
   2059   cat conftest.$ac_ext >&5
   2060   # Passes both tests.
   2061 ac_preproc_ok=:
   2062 break
   2063 fi
   2064 rm -f conftest.err conftest.$ac_ext
   2065 
   2066 done
   2067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   2068 rm -f conftest.err conftest.$ac_ext
   2069 if $ac_preproc_ok; then
   2070   :
   2071 else
   2072   { { echo "$as_me:2072: error: C preprocessor \"$CPP\" fails sanity check" >&5
   2073 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
   2074    { (exit 1); exit 1; }; }
   2075 fi
   2076 
   2077 ac_ext=c
   2078 ac_cpp='$CPP $CPPFLAGS'
   2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2082 ac_main_return=return
   2083 
   2084 if test $ac_cv_c_compiler_gnu = yes; then
   2085     echo "$as_me:2085: checking whether $CC needs -traditional" >&5
   2086 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
   2087 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
   2088   echo $ECHO_N "(cached) $ECHO_C" >&6
   2089 else
   2090     ac_pattern="Autoconf.*'x'"
   2091   cat >conftest.$ac_ext <<_ACEOF
   2092 #line 2092 "configure"
   2093 #include "confdefs.h"
   2094 #include <sgtty.h>
   2095 int Autoconf = TIOCGETP;
   2096 _ACEOF
   2097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   2098   egrep "$ac_pattern" >/dev/null 2>&1; then
   2099   ac_cv_prog_gcc_traditional=yes
   2100 else
   2101   ac_cv_prog_gcc_traditional=no
   2102 fi
   2103 rm -rf conftest*
   2104 
   2105   if test $ac_cv_prog_gcc_traditional = no; then
   2106     cat >conftest.$ac_ext <<_ACEOF
   2107 #line 2107 "configure"
   2108 #include "confdefs.h"
   2109 #include <termio.h>
   2110 int Autoconf = TCGETA;
   2111 _ACEOF
   2112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   2113   egrep "$ac_pattern" >/dev/null 2>&1; then
   2114   ac_cv_prog_gcc_traditional=yes
   2115 fi
   2116 rm -rf conftest*
   2117 
   2118   fi
   2119 fi
   2120 echo "$as_me:2120: result: $ac_cv_prog_gcc_traditional" >&5
   2121 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
   2122   if test $ac_cv_prog_gcc_traditional = yes; then
   2123     CC="$CC -traditional"
   2124   fi
   2125 fi
   2126 
   2127 for ac_prog in mawk gawk nawk awk
   2128 do
   2129   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2130 set dummy $ac_prog; ac_word=$2
   2131 echo "$as_me:2131: checking for $ac_word" >&5
   2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2133 if test "${ac_cv_prog_AWK+set}" = set; then
   2134   echo $ECHO_N "(cached) $ECHO_C" >&6
   2135 else
   2136   if test -n "$AWK"; then
   2137   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2138 else
   2139   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2140 ac_dummy="$PATH"
   2141 for ac_dir in $ac_dummy; do
   2142   IFS=$ac_save_IFS
   2143   test -z "$ac_dir" && ac_dir=.
   2144   $as_executable_p "$ac_dir/$ac_word" || continue
   2145 ac_cv_prog_AWK="$ac_prog"
   2146 echo "$as_me:2146: found $ac_dir/$ac_word" >&5
   2147 break
   2148 done
   2149 
   2150 fi
   2151 fi
   2152 AWK=$ac_cv_prog_AWK
   2153 if test -n "$AWK"; then
   2154   echo "$as_me:2154: result: $AWK" >&5
   2155 echo "${ECHO_T}$AWK" >&6
   2156 else
   2157   echo "$as_me:2157: result: no" >&5
   2158 echo "${ECHO_T}no" >&6
   2159 fi
   2160 
   2161   test -n "$AWK" && break
   2162 done
   2163 
   2164 # Find a good install program.  We prefer a C program (faster),
   2165 # so one script is as good as another.  But avoid the broken or
   2166 # incompatible versions:
   2167 # SysV /etc/install, /usr/sbin/install
   2168 # SunOS /usr/etc/install
   2169 # IRIX /sbin/install
   2170 # AIX /bin/install
   2171 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2172 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2173 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2174 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2175 # ./install, which can be erroneously created by make from ./install.sh.
   2176 echo "$as_me:2176: checking for a BSD compatible install" >&5
   2177 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
   2178 if test -z "$INSTALL"; then
   2179 if test "${ac_cv_path_install+set}" = set; then
   2180   echo $ECHO_N "(cached) $ECHO_C" >&6
   2181 else
   2182     ac_save_IFS=$IFS; IFS=$ac_path_separator
   2183   for ac_dir in $PATH; do
   2184     IFS=$ac_save_IFS
   2185     # Account for people who put trailing slashes in PATH elements.
   2186     case $ac_dir/ in
   2187     / | ./ | .// | /cC/* \
   2188     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
   2189     | /usr/ucb/* ) ;;
   2190     *)
   2191       # OSF1 and SCO ODT 3.0 have their own names for install.
   2192       # Don't use installbsd from OSF since it installs stuff as root
   2193       # by default.
   2194       for ac_prog in ginstall scoinst install; do
   2195         if $as_executable_p "$ac_dir/$ac_prog"; then
   2196 	  if test $ac_prog = install &&
   2197             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2198 	    # AIX install.  It has an incompatible calling convention.
   2199 	    :
   2200 	  elif test $ac_prog = install &&
   2201 	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
   2202 	    # program-specific install script used by HP pwplus--don't use.
   2203 	    :
   2204 	  else
   2205 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   2206 	    break 2
   2207 	  fi
   2208 	fi
   2209       done
   2210       ;;
   2211     esac
   2212   done
   2213 
   2214 fi
   2215   if test "${ac_cv_path_install+set}" = set; then
   2216     INSTALL=$ac_cv_path_install
   2217   else
   2218     # As a last resort, use the slow shell script.  We don't cache a
   2219     # path for INSTALL within a source directory, because that will
   2220     # break other packages using the cache if that directory is
   2221     # removed, or if the path is relative.
   2222     INSTALL=$ac_install_sh
   2223   fi
   2224 fi
   2225 echo "$as_me:2225: result: $INSTALL" >&5
   2226 echo "${ECHO_T}$INSTALL" >&6
   2227 
   2228 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2229 # It thinks the first close brace ends the variable substitution.
   2230 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2231 
   2232 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2233 
   2234 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2235 
   2236 echo "$as_me:2236: checking whether ln -s works" >&5
   2237 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
   2238 LN_S=$as_ln_s
   2239 if test "$LN_S" = "ln -s"; then
   2240   echo "$as_me:2240: result: yes" >&5
   2241 echo "${ECHO_T}yes" >&6
   2242 else
   2243   echo "$as_me:2243: result: no, using $LN_S" >&5
   2244 echo "${ECHO_T}no, using $LN_S" >&6
   2245 fi
   2246 
   2247 test "$program_prefix" != NONE &&
   2248   program_transform_name="s,^,$program_prefix,;$program_transform_name"
   2249 # Use a double $ so make ignores it.
   2250 test "$program_suffix" != NONE &&
   2251   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
   2252 # Double any \ or $.  echo might interpret backslashes.
   2253 # By default was `s,x,x', remove it if useless.
   2254 cat <<\_ACEOF >conftest.sed
   2255 s/[\\$]/&&/g;s/;s,x,x,$//
   2256 _ACEOF
   2257 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
   2258 rm conftest.sed
   2259 
   2260 for ac_prog in tdlint lint alint
   2261 do
   2262   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2263 set dummy $ac_prog; ac_word=$2
   2264 echo "$as_me:2264: checking for $ac_word" >&5
   2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2266 if test "${ac_cv_prog_LINT+set}" = set; then
   2267   echo $ECHO_N "(cached) $ECHO_C" >&6
   2268 else
   2269   if test -n "$LINT"; then
   2270   ac_cv_prog_LINT="$LINT" # Let the user override the test.
   2271 else
   2272   ac_save_IFS=$IFS; IFS=$ac_path_separator
   2273 ac_dummy="$PATH"
   2274 for ac_dir in $ac_dummy; do
   2275   IFS=$ac_save_IFS
   2276   test -z "$ac_dir" && ac_dir=.
   2277   $as_executable_p "$ac_dir/$ac_word" || continue
   2278 ac_cv_prog_LINT="$ac_prog"
   2279 echo "$as_me:2279: found $ac_dir/$ac_word" >&5
   2280 break
   2281 done
   2282 
   2283 fi
   2284 fi
   2285 LINT=$ac_cv_prog_LINT
   2286 if test -n "$LINT"; then
   2287   echo "$as_me:2287: result: $LINT" >&5
   2288 echo "${ECHO_T}$LINT" >&6
   2289 else
   2290   echo "$as_me:2290: result: no" >&5
   2291 echo "${ECHO_T}no" >&6
   2292 fi
   2293 
   2294   test -n "$LINT" && break
   2295 done
   2296 
   2297 ###	checks for UNIX variants that set C preprocessor variables
   2298 
   2299 echo "$as_me:2299: checking for AIX" >&5
   2300 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
   2301 cat >conftest.$ac_ext <<_ACEOF
   2302 #line 2302 "configure"
   2303 #include "confdefs.h"
   2304 #ifdef _AIX
   2305   yes
   2306 #endif
   2307 
   2308 _ACEOF
   2309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   2310   egrep "yes" >/dev/null 2>&1; then
   2311   echo "$as_me:2311: result: yes" >&5
   2312 echo "${ECHO_T}yes" >&6
   2313 cat >>confdefs.h <<\EOF
   2314 #define _ALL_SOURCE 1
   2315 EOF
   2316 
   2317 else
   2318   echo "$as_me:2318: result: no" >&5
   2319 echo "${ECHO_T}no" >&6
   2320 fi
   2321 rm -rf conftest*
   2322 
   2323 echo "$as_me:2323: checking for POSIXized ISC" >&5
   2324 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
   2325 if test -d /etc/conf/kconfig.d &&
   2326    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
   2327 then
   2328   echo "$as_me:2328: result: yes" >&5
   2329 echo "${ECHO_T}yes" >&6
   2330   ISC=yes # If later tests want to check for ISC.
   2331 
   2332 cat >>confdefs.h <<\EOF
   2333 #define _POSIX_SOURCE 1
   2334 EOF
   2335 
   2336   if test "$GCC" = yes; then
   2337     CC="$CC -posix"
   2338   else
   2339     CC="$CC -Xp"
   2340   fi
   2341 else
   2342   echo "$as_me:2342: result: no" >&5
   2343 echo "${ECHO_T}no" >&6
   2344   ISC=
   2345 fi
   2346 
   2347 ###	checks for compiler characteristics
   2348 
   2349 echo "$as_me:2349: checking for ${CC:-cc} option to accept ANSI C" >&5
   2350 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
   2351 if test "${cf_cv_ansi_cc+set}" = set; then
   2352   echo $ECHO_N "(cached) $ECHO_C" >&6
   2353 else
   2354 
   2355 cf_cv_ansi_cc=no
   2356 cf_save_CFLAGS="$CFLAGS"
   2357 cf_save_CPPFLAGS="$CPPFLAGS"
   2358 # Don't try gcc -ansi; that turns off useful extensions and
   2359 # breaks some systems' header files.
   2360 # AIX			-qlanglvl=ansi
   2361 # Ultrix and OSF/1	-std1
   2362 # HP-UX			-Aa -D_HPUX_SOURCE
   2363 # SVR4			-Xc
   2364 # UnixWare 1.2		(cannot use -Xc, since ANSI/POSIX clashes)
   2365 for cf_arg in "-DCC_HAS_PROTOS" \
   2366 	"" \
   2367 	-qlanglvl=ansi \
   2368 	-std1 \
   2369 	-Ae \
   2370 	"-Aa -D_HPUX_SOURCE" \
   2371 	-Xc
   2372 do
   2373 
   2374 cf_fix_cppflags=no
   2375 cf_new_cflags=
   2376 cf_new_cppflags=
   2377 cf_new_extra_cppflags=
   2378 
   2379 for cf_add_cflags in $cf_arg
   2380 do
   2381 case $cf_fix_cppflags in
   2382 no)
   2383 	case $cf_add_cflags in #(vi
   2384 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   2385 		case $cf_add_cflags in
   2386 		-D*)
   2387 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2388 
   2389 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   2390 				&& test -z "${cf_tst_cflags}" \
   2391 				&& cf_fix_cppflags=yes
   2392 
   2393 			if test $cf_fix_cppflags = yes ; then
   2394 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2395 				continue
   2396 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2397 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2398 				continue
   2399 			fi
   2400 			;;
   2401 		esac
   2402 		case "$CPPFLAGS" in
   2403 		*$cf_add_cflags) #(vi
   2404 			;;
   2405 		*) #(vi
   2406 			case $cf_add_cflags in #(vi
   2407 			-D*)
   2408 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2409 
   2410 CPPFLAGS=`echo "$CPPFLAGS" | \
   2411 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2412 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2413 
   2414 				;;
   2415 			esac
   2416 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   2417 			;;
   2418 		esac
   2419 		;;
   2420 	*)
   2421 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   2422 		;;
   2423 	esac
   2424 	;;
   2425 yes)
   2426 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2427 
   2428 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2429 
   2430 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   2431 		&& test -z "${cf_tst_cflags}" \
   2432 		&& cf_fix_cppflags=no
   2433 	;;
   2434 esac
   2435 done
   2436 
   2437 if test -n "$cf_new_cflags" ; then
   2438 
   2439 	CFLAGS="$CFLAGS $cf_new_cflags"
   2440 fi
   2441 
   2442 if test -n "$cf_new_cppflags" ; then
   2443 
   2444 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   2445 fi
   2446 
   2447 if test -n "$cf_new_extra_cppflags" ; then
   2448 
   2449 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   2450 fi
   2451 
   2452 	cat >conftest.$ac_ext <<_ACEOF
   2453 #line 2453 "configure"
   2454 #include "confdefs.h"
   2455 
   2456 #ifndef CC_HAS_PROTOS
   2457 #if !defined(__STDC__) || (__STDC__ != 1)
   2458 choke me
   2459 #endif
   2460 #endif
   2461 
   2462 int
   2463 main ()
   2464 {
   2465 
   2466 	int test (int i, double x);
   2467 	struct s1 {int (*f) (int a);};
   2468 	struct s2 {int (*f) (double a);};
   2469   ;
   2470   return 0;
   2471 }
   2472 _ACEOF
   2473 rm -f conftest.$ac_objext
   2474 if { (eval echo "$as_me:2474: \"$ac_compile\"") >&5
   2475   (eval $ac_compile) 2>&5
   2476   ac_status=$?
   2477   echo "$as_me:2477: \$? = $ac_status" >&5
   2478   (exit $ac_status); } &&
   2479          { ac_try='test -s conftest.$ac_objext'
   2480   { (eval echo "$as_me:2480: \"$ac_try\"") >&5
   2481   (eval $ac_try) 2>&5
   2482   ac_status=$?
   2483   echo "$as_me:2483: \$? = $ac_status" >&5
   2484   (exit $ac_status); }; }; then
   2485   cf_cv_ansi_cc="$cf_arg"; break
   2486 else
   2487   echo "$as_me: failed program was:" >&5
   2488 cat conftest.$ac_ext >&5
   2489 fi
   2490 rm -f conftest.$ac_objext conftest.$ac_ext
   2491 done
   2492 CFLAGS="$cf_save_CFLAGS"
   2493 CPPFLAGS="$cf_save_CPPFLAGS"
   2494 
   2495 fi
   2496 echo "$as_me:2496: result: $cf_cv_ansi_cc" >&5
   2497 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
   2498 
   2499 if test "$cf_cv_ansi_cc" != "no"; then
   2500 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
   2501 
   2502 cf_fix_cppflags=no
   2503 cf_new_cflags=
   2504 cf_new_cppflags=
   2505 cf_new_extra_cppflags=
   2506 
   2507 for cf_add_cflags in $cf_cv_ansi_cc
   2508 do
   2509 case $cf_fix_cppflags in
   2510 no)
   2511 	case $cf_add_cflags in #(vi
   2512 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   2513 		case $cf_add_cflags in
   2514 		-D*)
   2515 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   2516 
   2517 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   2518 				&& test -z "${cf_tst_cflags}" \
   2519 				&& cf_fix_cppflags=yes
   2520 
   2521 			if test $cf_fix_cppflags = yes ; then
   2522 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2523 				continue
   2524 			elif test "${cf_tst_cflags}" = "\"'" ; then
   2525 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2526 				continue
   2527 			fi
   2528 			;;
   2529 		esac
   2530 		case "$CPPFLAGS" in
   2531 		*$cf_add_cflags) #(vi
   2532 			;;
   2533 		*) #(vi
   2534 			case $cf_add_cflags in #(vi
   2535 			-D*)
   2536 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   2537 
   2538 CPPFLAGS=`echo "$CPPFLAGS" | \
   2539 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   2540 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   2541 
   2542 				;;
   2543 			esac
   2544 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   2545 			;;
   2546 		esac
   2547 		;;
   2548 	*)
   2549 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   2550 		;;
   2551 	esac
   2552 	;;
   2553 yes)
   2554 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   2555 
   2556 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   2557 
   2558 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   2559 		&& test -z "${cf_tst_cflags}" \
   2560 		&& cf_fix_cppflags=no
   2561 	;;
   2562 esac
   2563 done
   2564 
   2565 if test -n "$cf_new_cflags" ; then
   2566 
   2567 	CFLAGS="$CFLAGS $cf_new_cflags"
   2568 fi
   2569 
   2570 if test -n "$cf_new_cppflags" ; then
   2571 
   2572 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   2573 fi
   2574 
   2575 if test -n "$cf_new_extra_cppflags" ; then
   2576 
   2577 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   2578 fi
   2579 
   2580 else
   2581 	cat >>confdefs.h <<\EOF
   2582 #define CC_HAS_PROTOS 1
   2583 EOF
   2584 
   2585 fi
   2586 fi
   2587 
   2588 echo "$as_me:2588: checking for $CC option to accept ANSI C" >&5
   2589 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
   2590 if test "${ac_cv_prog_cc_stdc+set}" = set; then
   2591   echo $ECHO_N "(cached) $ECHO_C" >&6
   2592 else
   2593   ac_cv_prog_cc_stdc=no
   2594 ac_save_CC=$CC
   2595 cat >conftest.$ac_ext <<_ACEOF
   2596 #line 2596 "configure"
   2597 #include "confdefs.h"
   2598 #include <stdarg.h>
   2599 #include <stdio.h>
   2600 #include <sys/types.h>
   2601 #include <sys/stat.h>
   2602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2603 struct buf { int x; };
   2604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2605 static char *e (p, i)
   2606      char **p;
   2607      int i;
   2608 {
   2609   return p[i];
   2610 }
   2611 static char *f (char * (*g) (char **, int), char **p, ...)
   2612 {
   2613   char *s;
   2614   va_list v;
   2615   va_start (v,p);
   2616   s = g (p, va_arg (v,int));
   2617   va_end (v);
   2618   return s;
   2619 }
   2620 int test (int i, double x);
   2621 struct s1 {int (*f) (int a);};
   2622 struct s2 {int (*f) (double a);};
   2623 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2624 int argc;
   2625 char **argv;
   2626 int
   2627 main ()
   2628 {
   2629 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2630   ;
   2631   return 0;
   2632 }
   2633 _ACEOF
   2634 # Don't try gcc -ansi; that turns off useful extensions and
   2635 # breaks some systems' header files.
   2636 # AIX			-qlanglvl=ansi
   2637 # Ultrix and OSF/1	-std1
   2638 # HP-UX 10.20 and later	-Ae
   2639 # HP-UX older versions	-Aa -D_HPUX_SOURCE
   2640 # SVR4			-Xc -D__EXTENSIONS__
   2641 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2642 do
   2643   CC="$ac_save_CC $ac_arg"
   2644   rm -f conftest.$ac_objext
   2645 if { (eval echo "$as_me:2645: \"$ac_compile\"") >&5
   2646   (eval $ac_compile) 2>&5
   2647   ac_status=$?
   2648   echo "$as_me:2648: \$? = $ac_status" >&5
   2649   (exit $ac_status); } &&
   2650          { ac_try='test -s conftest.$ac_objext'
   2651   { (eval echo "$as_me:2651: \"$ac_try\"") >&5
   2652   (eval $ac_try) 2>&5
   2653   ac_status=$?
   2654   echo "$as_me:2654: \$? = $ac_status" >&5
   2655   (exit $ac_status); }; }; then
   2656   ac_cv_prog_cc_stdc=$ac_arg
   2657 break
   2658 else
   2659   echo "$as_me: failed program was:" >&5
   2660 cat conftest.$ac_ext >&5
   2661 fi
   2662 rm -f conftest.$ac_objext
   2663 done
   2664 rm -f conftest.$ac_ext conftest.$ac_objext
   2665 CC=$ac_save_CC
   2666 
   2667 fi
   2668 
   2669 case "x$ac_cv_prog_cc_stdc" in
   2670   x|xno)
   2671     echo "$as_me:2671: result: none needed" >&5
   2672 echo "${ECHO_T}none needed" >&6 ;;
   2673   *)
   2674     echo "$as_me:2674: result: $ac_cv_prog_cc_stdc" >&5
   2675 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
   2676     CC="$CC $ac_cv_prog_cc_stdc" ;;
   2677 esac
   2678 
   2679 echo "$as_me:2679: checking for an ANSI C-conforming const" >&5
   2680 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
   2681 if test "${ac_cv_c_const+set}" = set; then
   2682   echo $ECHO_N "(cached) $ECHO_C" >&6
   2683 else
   2684   cat >conftest.$ac_ext <<_ACEOF
   2685 #line 2685 "configure"
   2686 #include "confdefs.h"
   2687 
   2688 int
   2689 main ()
   2690 {
   2691 /* FIXME: Include the comments suggested by Paul. */
   2692 #ifndef __cplusplus
   2693   /* Ultrix mips cc rejects this.  */
   2694   typedef int charset[2];
   2695   const charset x;
   2696   /* SunOS 4.1.1 cc rejects this.  */
   2697   char const *const *ccp;
   2698   char **p;
   2699   /* NEC SVR4.0.2 mips cc rejects this.  */
   2700   struct point {int x, y;};
   2701   static struct point const zero = {0,0};
   2702   /* AIX XL C 1.02.0.0 rejects this.
   2703      It does not let you subtract one const X* pointer from another in
   2704      an arm of an if-expression whose if-part is not a constant
   2705      expression */
   2706   const char *g = "string";
   2707   ccp = &g + (g ? g-g : 0);
   2708   /* HPUX 7.0 cc rejects these. */
   2709   ++ccp;
   2710   p = (char**) ccp;
   2711   ccp = (char const *const *) p;
   2712   { /* SCO 3.2v4 cc rejects this.  */
   2713     char *t;
   2714     char const *s = 0 ? (char *) 0 : (char const *) 0;
   2715 
   2716     *t++ = 0;
   2717   }
   2718   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   2719     int x[] = {25, 17};
   2720     const int *foo = &x[0];
   2721     ++foo;
   2722   }
   2723   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   2724     typedef const int *iptr;
   2725     iptr p = 0;
   2726     ++p;
   2727   }
   2728   { /* AIX XL C 1.02.0.0 rejects this saying
   2729        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   2730     struct s { int j; const int *ap[3]; };
   2731     struct s *b; b->j = 5;
   2732   }
   2733   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   2734     const int foo = 10;
   2735   }
   2736 #endif
   2737 
   2738   ;
   2739   return 0;
   2740 }
   2741 _ACEOF
   2742 rm -f conftest.$ac_objext
   2743 if { (eval echo "$as_me:2743: \"$ac_compile\"") >&5
   2744   (eval $ac_compile) 2>&5
   2745   ac_status=$?
   2746   echo "$as_me:2746: \$? = $ac_status" >&5
   2747   (exit $ac_status); } &&
   2748          { ac_try='test -s conftest.$ac_objext'
   2749   { (eval echo "$as_me:2749: \"$ac_try\"") >&5
   2750   (eval $ac_try) 2>&5
   2751   ac_status=$?
   2752   echo "$as_me:2752: \$? = $ac_status" >&5
   2753   (exit $ac_status); }; }; then
   2754   ac_cv_c_const=yes
   2755 else
   2756   echo "$as_me: failed program was:" >&5
   2757 cat conftest.$ac_ext >&5
   2758 ac_cv_c_const=no
   2759 fi
   2760 rm -f conftest.$ac_objext conftest.$ac_ext
   2761 fi
   2762 echo "$as_me:2762: result: $ac_cv_c_const" >&5
   2763 echo "${ECHO_T}$ac_cv_c_const" >&6
   2764 if test $ac_cv_c_const = no; then
   2765 
   2766 cat >>confdefs.h <<\EOF
   2767 #define const
   2768 EOF
   2769 
   2770 fi
   2771 
   2772 case $cf_cv_system_name in
   2773 os2*)
   2774     CFLAGS="$CFLAGS -Zmt"
   2775     CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
   2776     CXXFLAGS="$CXXFLAGS -Zmt"
   2777     # autoconf's macro sets -Zexe and suffix both, which conflict:w
   2778     LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
   2779     ac_cv_exeext=.exe
   2780     ;;
   2781 esac
   2782 
   2783 PROG_EXT="$EXEEXT"
   2784 
   2785 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
   2786 #define PROG_EXT "$PROG_EXT"
   2787 EOF
   2788 
   2789 cf_XOPEN_SOURCE=500
   2790 cf_POSIX_C_SOURCE=199506L
   2791 cf_xopen_source=
   2792 
   2793 case $host_os in #(vi
   2794 aix[456]*) #(vi
   2795 	cf_xopen_source="-D_ALL_SOURCE"
   2796 	;;
   2797 darwin[0-8].*) #(vi
   2798 	cf_xopen_source="-D_APPLE_C_SOURCE"
   2799 	;;
   2800 darwin*) #(vi
   2801 	cf_xopen_source="-D_DARWIN_C_SOURCE"
   2802 	;;
   2803 freebsd*|dragonfly*) #(vi
   2804 	# 5.x headers associate
   2805 	#	_XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
   2806 	#	_XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
   2807 	cf_POSIX_C_SOURCE=200112L
   2808 	cf_XOPEN_SOURCE=600
   2809 	cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   2810 	;;
   2811 hpux11*) #(vi
   2812 	cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
   2813 	;;
   2814 hpux*) #(vi
   2815 	cf_xopen_source="-D_HPUX_SOURCE"
   2816 	;;
   2817 irix[56].*) #(vi
   2818 	cf_xopen_source="-D_SGI_SOURCE"
   2819 	;;
   2820 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
   2821 
   2822 echo "$as_me:2822: checking if we must define _GNU_SOURCE" >&5
   2823 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
   2824 if test "${cf_cv_gnu_source+set}" = set; then
   2825   echo $ECHO_N "(cached) $ECHO_C" >&6
   2826 else
   2827 
   2828 cat >conftest.$ac_ext <<_ACEOF
   2829 #line 2829 "configure"
   2830 #include "confdefs.h"
   2831 #include <sys/types.h>
   2832 int
   2833 main ()
   2834 {
   2835 
   2836 #ifndef _XOPEN_SOURCE
   2837 make an error
   2838 #endif
   2839   ;
   2840   return 0;
   2841 }
   2842 _ACEOF
   2843 rm -f conftest.$ac_objext
   2844 if { (eval echo "$as_me:2844: \"$ac_compile\"") >&5
   2845   (eval $ac_compile) 2>&5
   2846   ac_status=$?
   2847   echo "$as_me:2847: \$? = $ac_status" >&5
   2848   (exit $ac_status); } &&
   2849          { ac_try='test -s conftest.$ac_objext'
   2850   { (eval echo "$as_me:2850: \"$ac_try\"") >&5
   2851   (eval $ac_try) 2>&5
   2852   ac_status=$?
   2853   echo "$as_me:2853: \$? = $ac_status" >&5
   2854   (exit $ac_status); }; }; then
   2855   cf_cv_gnu_source=no
   2856 else
   2857   echo "$as_me: failed program was:" >&5
   2858 cat conftest.$ac_ext >&5
   2859 cf_save="$CPPFLAGS"
   2860 	 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   2861 	 cat >conftest.$ac_ext <<_ACEOF
   2862 #line 2862 "configure"
   2863 #include "confdefs.h"
   2864 #include <sys/types.h>
   2865 int
   2866 main ()
   2867 {
   2868 
   2869 #ifdef _XOPEN_SOURCE
   2870 make an error
   2871 #endif
   2872   ;
   2873   return 0;
   2874 }
   2875 _ACEOF
   2876 rm -f conftest.$ac_objext
   2877 if { (eval echo "$as_me:2877: \"$ac_compile\"") >&5
   2878   (eval $ac_compile) 2>&5
   2879   ac_status=$?
   2880   echo "$as_me:2880: \$? = $ac_status" >&5
   2881   (exit $ac_status); } &&
   2882          { ac_try='test -s conftest.$ac_objext'
   2883   { (eval echo "$as_me:2883: \"$ac_try\"") >&5
   2884   (eval $ac_try) 2>&5
   2885   ac_status=$?
   2886   echo "$as_me:2886: \$? = $ac_status" >&5
   2887   (exit $ac_status); }; }; then
   2888   cf_cv_gnu_source=no
   2889 else
   2890   echo "$as_me: failed program was:" >&5
   2891 cat conftest.$ac_ext >&5
   2892 cf_cv_gnu_source=yes
   2893 fi
   2894 rm -f conftest.$ac_objext conftest.$ac_ext
   2895 	CPPFLAGS="$cf_save"
   2896 
   2897 fi
   2898 rm -f conftest.$ac_objext conftest.$ac_ext
   2899 
   2900 fi
   2901 echo "$as_me:2901: result: $cf_cv_gnu_source" >&5
   2902 echo "${ECHO_T}$cf_cv_gnu_source" >&6
   2903 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
   2904 
   2905 	;;
   2906 mirbsd*) #(vi
   2907 	# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
   2908 	;;
   2909 netbsd*) #(vi
   2910 	# setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
   2911 	;;
   2912 openbsd*) #(vi
   2913 	# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
   2914 	;;
   2915 osf[45]*) #(vi
   2916 	cf_xopen_source="-D_OSF_SOURCE"
   2917 	;;
   2918 nto-qnx*) #(vi
   2919 	cf_xopen_source="-D_QNX_SOURCE"
   2920 	;;
   2921 sco*) #(vi
   2922 	# setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
   2923 	;;
   2924 solaris2.1[0-9]) #(vi
   2925 	cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   2926 	;;
   2927 solaris2.[1-9]) #(vi
   2928 	cf_xopen_source="-D__EXTENSIONS__"
   2929 	;;
   2930 *)
   2931 	echo "$as_me:2931: checking if we should define _XOPEN_SOURCE" >&5
   2932 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
   2933 if test "${cf_cv_xopen_source+set}" = set; then
   2934   echo $ECHO_N "(cached) $ECHO_C" >&6
   2935 else
   2936 
   2937 	cat >conftest.$ac_ext <<_ACEOF
   2938 #line 2938 "configure"
   2939 #include "confdefs.h"
   2940 #include <sys/types.h>
   2941 int
   2942 main ()
   2943 {
   2944 
   2945 #ifndef _XOPEN_SOURCE
   2946 make an error
   2947 #endif
   2948   ;
   2949   return 0;
   2950 }
   2951 _ACEOF
   2952 rm -f conftest.$ac_objext
   2953 if { (eval echo "$as_me:2953: \"$ac_compile\"") >&5
   2954   (eval $ac_compile) 2>&5
   2955   ac_status=$?
   2956   echo "$as_me:2956: \$? = $ac_status" >&5
   2957   (exit $ac_status); } &&
   2958          { ac_try='test -s conftest.$ac_objext'
   2959   { (eval echo "$as_me:2959: \"$ac_try\"") >&5
   2960   (eval $ac_try) 2>&5
   2961   ac_status=$?
   2962   echo "$as_me:2962: \$? = $ac_status" >&5
   2963   (exit $ac_status); }; }; then
   2964   cf_cv_xopen_source=no
   2965 else
   2966   echo "$as_me: failed program was:" >&5
   2967 cat conftest.$ac_ext >&5
   2968 cf_save="$CPPFLAGS"
   2969 	 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
   2970 	 cat >conftest.$ac_ext <<_ACEOF
   2971 #line 2971 "configure"
   2972 #include "confdefs.h"
   2973 #include <sys/types.h>
   2974 int
   2975 main ()
   2976 {
   2977 
   2978 #ifdef _XOPEN_SOURCE
   2979 make an error
   2980 #endif
   2981   ;
   2982   return 0;
   2983 }
   2984 _ACEOF
   2985 rm -f conftest.$ac_objext
   2986 if { (eval echo "$as_me:2986: \"$ac_compile\"") >&5
   2987   (eval $ac_compile) 2>&5
   2988   ac_status=$?
   2989   echo "$as_me:2989: \$? = $ac_status" >&5
   2990   (exit $ac_status); } &&
   2991          { ac_try='test -s conftest.$ac_objext'
   2992   { (eval echo "$as_me:2992: \"$ac_try\"") >&5
   2993   (eval $ac_try) 2>&5
   2994   ac_status=$?
   2995   echo "$as_me:2995: \$? = $ac_status" >&5
   2996   (exit $ac_status); }; }; then
   2997   cf_cv_xopen_source=no
   2998 else
   2999   echo "$as_me: failed program was:" >&5
   3000 cat conftest.$ac_ext >&5
   3001 cf_cv_xopen_source=$cf_XOPEN_SOURCE
   3002 fi
   3003 rm -f conftest.$ac_objext conftest.$ac_ext
   3004 	CPPFLAGS="$cf_save"
   3005 
   3006 fi
   3007 rm -f conftest.$ac_objext conftest.$ac_ext
   3008 
   3009 fi
   3010 echo "$as_me:3010: result: $cf_cv_xopen_source" >&5
   3011 echo "${ECHO_T}$cf_cv_xopen_source" >&6
   3012 	if test "$cf_cv_xopen_source" != no ; then
   3013 
   3014 CFLAGS=`echo "$CFLAGS" | \
   3015 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3016 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3017 
   3018 CPPFLAGS=`echo "$CPPFLAGS" | \
   3019 	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3020 		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3021 
   3022 		cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
   3023 
   3024 cf_fix_cppflags=no
   3025 cf_new_cflags=
   3026 cf_new_cppflags=
   3027 cf_new_extra_cppflags=
   3028 
   3029 for cf_add_cflags in $cf_temp_xopen_source
   3030 do
   3031 case $cf_fix_cppflags in
   3032 no)
   3033 	case $cf_add_cflags in #(vi
   3034 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   3035 		case $cf_add_cflags in
   3036 		-D*)
   3037 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3038 
   3039 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   3040 				&& test -z "${cf_tst_cflags}" \
   3041 				&& cf_fix_cppflags=yes
   3042 
   3043 			if test $cf_fix_cppflags = yes ; then
   3044 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3045 				continue
   3046 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3047 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3048 				continue
   3049 			fi
   3050 			;;
   3051 		esac
   3052 		case "$CPPFLAGS" in
   3053 		*$cf_add_cflags) #(vi
   3054 			;;
   3055 		*) #(vi
   3056 			case $cf_add_cflags in #(vi
   3057 			-D*)
   3058 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3059 
   3060 CPPFLAGS=`echo "$CPPFLAGS" | \
   3061 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3062 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3063 
   3064 				;;
   3065 			esac
   3066 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   3067 			;;
   3068 		esac
   3069 		;;
   3070 	*)
   3071 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   3072 		;;
   3073 	esac
   3074 	;;
   3075 yes)
   3076 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3077 
   3078 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3079 
   3080 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   3081 		&& test -z "${cf_tst_cflags}" \
   3082 		&& cf_fix_cppflags=no
   3083 	;;
   3084 esac
   3085 done
   3086 
   3087 if test -n "$cf_new_cflags" ; then
   3088 
   3089 	CFLAGS="$CFLAGS $cf_new_cflags"
   3090 fi
   3091 
   3092 if test -n "$cf_new_cppflags" ; then
   3093 
   3094 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   3095 fi
   3096 
   3097 if test -n "$cf_new_extra_cppflags" ; then
   3098 
   3099 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   3100 fi
   3101 
   3102 	fi
   3103 
   3104 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
   3105 
   3106 cf_save_CFLAGS="$CFLAGS"
   3107 cf_save_CPPFLAGS="$CPPFLAGS"
   3108 
   3109 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
   3110 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3111 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3112 
   3113 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
   3114 	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3115 		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
   3116 
   3117 echo "$as_me:3117: checking if we should define _POSIX_C_SOURCE" >&5
   3118 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
   3119 if test "${cf_cv_posix_c_source+set}" = set; then
   3120   echo $ECHO_N "(cached) $ECHO_C" >&6
   3121 else
   3122 
   3123 echo "${as_me:-configure}:3123: testing if the symbol is already defined go no further ..." 1>&5
   3124 
   3125 	cat >conftest.$ac_ext <<_ACEOF
   3126 #line 3126 "configure"
   3127 #include "confdefs.h"
   3128 #include <sys/types.h>
   3129 int
   3130 main ()
   3131 {
   3132 
   3133 #ifndef _POSIX_C_SOURCE
   3134 make an error
   3135 #endif
   3136   ;
   3137   return 0;
   3138 }
   3139 _ACEOF
   3140 rm -f conftest.$ac_objext
   3141 if { (eval echo "$as_me:3141: \"$ac_compile\"") >&5
   3142   (eval $ac_compile) 2>&5
   3143   ac_status=$?
   3144   echo "$as_me:3144: \$? = $ac_status" >&5
   3145   (exit $ac_status); } &&
   3146          { ac_try='test -s conftest.$ac_objext'
   3147   { (eval echo "$as_me:3147: \"$ac_try\"") >&5
   3148   (eval $ac_try) 2>&5
   3149   ac_status=$?
   3150   echo "$as_me:3150: \$? = $ac_status" >&5
   3151   (exit $ac_status); }; }; then
   3152   cf_cv_posix_c_source=no
   3153 else
   3154   echo "$as_me: failed program was:" >&5
   3155 cat conftest.$ac_ext >&5
   3156 cf_want_posix_source=no
   3157 	 case .$cf_POSIX_C_SOURCE in #(vi
   3158 	 .[12]??*) #(vi
   3159 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3160 		;;
   3161 	 .2) #(vi
   3162 		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
   3163 		cf_want_posix_source=yes
   3164 		;;
   3165 	 .*)
   3166 		cf_want_posix_source=yes
   3167 		;;
   3168 	 esac
   3169 	 if test "$cf_want_posix_source" = yes ; then
   3170 		cat >conftest.$ac_ext <<_ACEOF
   3171 #line 3171 "configure"
   3172 #include "confdefs.h"
   3173 #include <sys/types.h>
   3174 int
   3175 main ()
   3176 {
   3177 
   3178 #ifdef _POSIX_SOURCE
   3179 make an error
   3180 #endif
   3181   ;
   3182   return 0;
   3183 }
   3184 _ACEOF
   3185 rm -f conftest.$ac_objext
   3186 if { (eval echo "$as_me:3186: \"$ac_compile\"") >&5
   3187   (eval $ac_compile) 2>&5
   3188   ac_status=$?
   3189   echo "$as_me:3189: \$? = $ac_status" >&5
   3190   (exit $ac_status); } &&
   3191          { ac_try='test -s conftest.$ac_objext'
   3192   { (eval echo "$as_me:3192: \"$ac_try\"") >&5
   3193   (eval $ac_try) 2>&5
   3194   ac_status=$?
   3195   echo "$as_me:3195: \$? = $ac_status" >&5
   3196   (exit $ac_status); }; }; then
   3197   :
   3198 else
   3199   echo "$as_me: failed program was:" >&5
   3200 cat conftest.$ac_ext >&5
   3201 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
   3202 fi
   3203 rm -f conftest.$ac_objext conftest.$ac_ext
   3204 	 fi
   3205 
   3206 echo "${as_me:-configure}:3206: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
   3207 
   3208 	 CFLAGS="$cf_trim_CFLAGS"
   3209 	 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
   3210 
   3211 echo "${as_me:-configure}:3211: testing if the second compile does not leave our definition intact error ..." 1>&5
   3212 
   3213 	 cat >conftest.$ac_ext <<_ACEOF
   3214 #line 3214 "configure"
   3215 #include "confdefs.h"
   3216 #include <sys/types.h>
   3217 int
   3218 main ()
   3219 {
   3220 
   3221 #ifndef _POSIX_C_SOURCE
   3222 make an error
   3223 #endif
   3224   ;
   3225   return 0;
   3226 }
   3227 _ACEOF
   3228 rm -f conftest.$ac_objext
   3229 if { (eval echo "$as_me:3229: \"$ac_compile\"") >&5
   3230   (eval $ac_compile) 2>&5
   3231   ac_status=$?
   3232   echo "$as_me:3232: \$? = $ac_status" >&5
   3233   (exit $ac_status); } &&
   3234          { ac_try='test -s conftest.$ac_objext'
   3235   { (eval echo "$as_me:3235: \"$ac_try\"") >&5
   3236   (eval $ac_try) 2>&5
   3237   ac_status=$?
   3238   echo "$as_me:3238: \$? = $ac_status" >&5
   3239   (exit $ac_status); }; }; then
   3240   :
   3241 else
   3242   echo "$as_me: failed program was:" >&5
   3243 cat conftest.$ac_ext >&5
   3244 cf_cv_posix_c_source=no
   3245 fi
   3246 rm -f conftest.$ac_objext conftest.$ac_ext
   3247 	 CFLAGS="$cf_save_CFLAGS"
   3248 	 CPPFLAGS="$cf_save_CPPFLAGS"
   3249 
   3250 fi
   3251 rm -f conftest.$ac_objext conftest.$ac_ext
   3252 
   3253 fi
   3254 echo "$as_me:3254: result: $cf_cv_posix_c_source" >&5
   3255 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
   3256 
   3257 if test "$cf_cv_posix_c_source" != no ; then
   3258 	CFLAGS="$cf_trim_CFLAGS"
   3259 	CPPFLAGS="$cf_trim_CPPFLAGS"
   3260 
   3261 cf_fix_cppflags=no
   3262 cf_new_cflags=
   3263 cf_new_cppflags=
   3264 cf_new_extra_cppflags=
   3265 
   3266 for cf_add_cflags in $cf_cv_posix_c_source
   3267 do
   3268 case $cf_fix_cppflags in
   3269 no)
   3270 	case $cf_add_cflags in #(vi
   3271 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   3272 		case $cf_add_cflags in
   3273 		-D*)
   3274 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3275 
   3276 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   3277 				&& test -z "${cf_tst_cflags}" \
   3278 				&& cf_fix_cppflags=yes
   3279 
   3280 			if test $cf_fix_cppflags = yes ; then
   3281 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3282 				continue
   3283 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3284 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3285 				continue
   3286 			fi
   3287 			;;
   3288 		esac
   3289 		case "$CPPFLAGS" in
   3290 		*$cf_add_cflags) #(vi
   3291 			;;
   3292 		*) #(vi
   3293 			case $cf_add_cflags in #(vi
   3294 			-D*)
   3295 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3296 
   3297 CPPFLAGS=`echo "$CPPFLAGS" | \
   3298 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3299 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3300 
   3301 				;;
   3302 			esac
   3303 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   3304 			;;
   3305 		esac
   3306 		;;
   3307 	*)
   3308 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   3309 		;;
   3310 	esac
   3311 	;;
   3312 yes)
   3313 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3314 
   3315 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3316 
   3317 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   3318 		&& test -z "${cf_tst_cflags}" \
   3319 		&& cf_fix_cppflags=no
   3320 	;;
   3321 esac
   3322 done
   3323 
   3324 if test -n "$cf_new_cflags" ; then
   3325 
   3326 	CFLAGS="$CFLAGS $cf_new_cflags"
   3327 fi
   3328 
   3329 if test -n "$cf_new_cppflags" ; then
   3330 
   3331 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   3332 fi
   3333 
   3334 if test -n "$cf_new_extra_cppflags" ; then
   3335 
   3336 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   3337 fi
   3338 
   3339 fi
   3340 
   3341 	;;
   3342 esac
   3343 
   3344 if test -n "$cf_xopen_source" ; then
   3345 
   3346 cf_fix_cppflags=no
   3347 cf_new_cflags=
   3348 cf_new_cppflags=
   3349 cf_new_extra_cppflags=
   3350 
   3351 for cf_add_cflags in $cf_xopen_source
   3352 do
   3353 case $cf_fix_cppflags in
   3354 no)
   3355 	case $cf_add_cflags in #(vi
   3356 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   3357 		case $cf_add_cflags in
   3358 		-D*)
   3359 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   3360 
   3361 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   3362 				&& test -z "${cf_tst_cflags}" \
   3363 				&& cf_fix_cppflags=yes
   3364 
   3365 			if test $cf_fix_cppflags = yes ; then
   3366 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3367 				continue
   3368 			elif test "${cf_tst_cflags}" = "\"'" ; then
   3369 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3370 				continue
   3371 			fi
   3372 			;;
   3373 		esac
   3374 		case "$CPPFLAGS" in
   3375 		*$cf_add_cflags) #(vi
   3376 			;;
   3377 		*) #(vi
   3378 			case $cf_add_cflags in #(vi
   3379 			-D*)
   3380 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   3381 
   3382 CPPFLAGS=`echo "$CPPFLAGS" | \
   3383 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   3384 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   3385 
   3386 				;;
   3387 			esac
   3388 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   3389 			;;
   3390 		esac
   3391 		;;
   3392 	*)
   3393 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   3394 		;;
   3395 	esac
   3396 	;;
   3397 yes)
   3398 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   3399 
   3400 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   3401 
   3402 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   3403 		&& test -z "${cf_tst_cflags}" \
   3404 		&& cf_fix_cppflags=no
   3405 	;;
   3406 esac
   3407 done
   3408 
   3409 if test -n "$cf_new_cflags" ; then
   3410 
   3411 	CFLAGS="$CFLAGS $cf_new_cflags"
   3412 fi
   3413 
   3414 if test -n "$cf_new_cppflags" ; then
   3415 
   3416 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   3417 fi
   3418 
   3419 if test -n "$cf_new_extra_cppflags" ; then
   3420 
   3421 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   3422 fi
   3423 
   3424 fi
   3425 
   3426 echo "$as_me:3426: checking if SIGWINCH is defined" >&5
   3427 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
   3428 if test "${cf_cv_define_sigwinch+set}" = set; then
   3429   echo $ECHO_N "(cached) $ECHO_C" >&6
   3430 else
   3431 
   3432 	cat >conftest.$ac_ext <<_ACEOF
   3433 #line 3433 "configure"
   3434 #include "confdefs.h"
   3435 
   3436 #include <sys/types.h>
   3437 #include <sys/signal.h>
   3438 
   3439 int
   3440 main ()
   3441 {
   3442 int x = SIGWINCH
   3443   ;
   3444   return 0;
   3445 }
   3446 _ACEOF
   3447 rm -f conftest.$ac_objext
   3448 if { (eval echo "$as_me:3448: \"$ac_compile\"") >&5
   3449   (eval $ac_compile) 2>&5
   3450   ac_status=$?
   3451   echo "$as_me:3451: \$? = $ac_status" >&5
   3452   (exit $ac_status); } &&
   3453          { ac_try='test -s conftest.$ac_objext'
   3454   { (eval echo "$as_me:3454: \"$ac_try\"") >&5
   3455   (eval $ac_try) 2>&5
   3456   ac_status=$?
   3457   echo "$as_me:3457: \$? = $ac_status" >&5
   3458   (exit $ac_status); }; }; then
   3459   cf_cv_define_sigwinch=yes
   3460 else
   3461   echo "$as_me: failed program was:" >&5
   3462 cat conftest.$ac_ext >&5
   3463 cat >conftest.$ac_ext <<_ACEOF
   3464 #line 3464 "configure"
   3465 #include "confdefs.h"
   3466 
   3467 #undef _XOPEN_SOURCE
   3468 #undef _POSIX_SOURCE
   3469 #undef _POSIX_C_SOURCE
   3470 #include <sys/types.h>
   3471 #include <sys/signal.h>
   3472 
   3473 int
   3474 main ()
   3475 {
   3476 int x = SIGWINCH
   3477   ;
   3478   return 0;
   3479 }
   3480 _ACEOF
   3481 rm -f conftest.$ac_objext
   3482 if { (eval echo "$as_me:3482: \"$ac_compile\"") >&5
   3483   (eval $ac_compile) 2>&5
   3484   ac_status=$?
   3485   echo "$as_me:3485: \$? = $ac_status" >&5
   3486   (exit $ac_status); } &&
   3487          { ac_try='test -s conftest.$ac_objext'
   3488   { (eval echo "$as_me:3488: \"$ac_try\"") >&5
   3489   (eval $ac_try) 2>&5
   3490   ac_status=$?
   3491   echo "$as_me:3491: \$? = $ac_status" >&5
   3492   (exit $ac_status); }; }; then
   3493   cf_cv_define_sigwinch=maybe
   3494 else
   3495   echo "$as_me: failed program was:" >&5
   3496 cat conftest.$ac_ext >&5
   3497 cf_cv_define_sigwinch=no
   3498 fi
   3499 rm -f conftest.$ac_objext conftest.$ac_ext
   3500 
   3501 fi
   3502 rm -f conftest.$ac_objext conftest.$ac_ext
   3503 
   3504 fi
   3505 echo "$as_me:3505: result: $cf_cv_define_sigwinch" >&5
   3506 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
   3507 
   3508 if test "$cf_cv_define_sigwinch" = maybe ; then
   3509 echo "$as_me:3509: checking for actual SIGWINCH definition" >&5
   3510 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
   3511 if test "${cf_cv_fixup_sigwinch+set}" = set; then
   3512   echo $ECHO_N "(cached) $ECHO_C" >&6
   3513 else
   3514 
   3515 cf_cv_fixup_sigwinch=unknown
   3516 cf_sigwinch=32
   3517 while test $cf_sigwinch != 1
   3518 do
   3519 	cat >conftest.$ac_ext <<_ACEOF
   3520 #line 3520 "configure"
   3521 #include "confdefs.h"
   3522 
   3523 #undef _XOPEN_SOURCE
   3524 #undef _POSIX_SOURCE
   3525 #undef _POSIX_C_SOURCE
   3526 #include <sys/types.h>
   3527 #include <sys/signal.h>
   3528 
   3529 int
   3530 main ()
   3531 {
   3532 
   3533 #if SIGWINCH != $cf_sigwinch
   3534 make an error
   3535 #endif
   3536 int x = SIGWINCH
   3537   ;
   3538   return 0;
   3539 }
   3540 _ACEOF
   3541 rm -f conftest.$ac_objext
   3542 if { (eval echo "$as_me:3542: \"$ac_compile\"") >&5
   3543   (eval $ac_compile) 2>&5
   3544   ac_status=$?
   3545   echo "$as_me:3545: \$? = $ac_status" >&5
   3546   (exit $ac_status); } &&
   3547          { ac_try='test -s conftest.$ac_objext'
   3548   { (eval echo "$as_me:3548: \"$ac_try\"") >&5
   3549   (eval $ac_try) 2>&5
   3550   ac_status=$?
   3551   echo "$as_me:3551: \$? = $ac_status" >&5
   3552   (exit $ac_status); }; }; then
   3553   cf_cv_fixup_sigwinch=$cf_sigwinch
   3554 	 break
   3555 else
   3556   echo "$as_me: failed program was:" >&5
   3557 cat conftest.$ac_ext >&5
   3558 fi
   3559 rm -f conftest.$ac_objext conftest.$ac_ext
   3560 
   3561 cf_sigwinch=`expr $cf_sigwinch - 1`
   3562 done
   3563 
   3564 fi
   3565 echo "$as_me:3565: result: $cf_cv_fixup_sigwinch" >&5
   3566 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
   3567 
   3568 	if test "$cf_cv_fixup_sigwinch" != unknown ; then
   3569 		CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
   3570 	fi
   3571 fi
   3572 
   3573 ###	checks for header files
   3574 
   3575 for ac_header in \
   3576 ncurses/term.h \
   3577 stdlib.h \
   3578 sys/ttydefaults.h \
   3579 term.h \
   3580 termios.h \
   3581 unistd.h \
   3582 wchar.h \
   3583 
   3584 do
   3585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3586 echo "$as_me:3586: checking for $ac_header" >&5
   3587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   3588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   3589   echo $ECHO_N "(cached) $ECHO_C" >&6
   3590 else
   3591   cat >conftest.$ac_ext <<_ACEOF
   3592 #line 3592 "configure"
   3593 #include "confdefs.h"
   3594 #include <$ac_header>
   3595 _ACEOF
   3596 if { (eval echo "$as_me:3596: \"$ac_cpp conftest.$ac_ext\"") >&5
   3597   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3598   ac_status=$?
   3599   egrep -v '^ *\+' conftest.er1 >conftest.err
   3600   rm -f conftest.er1
   3601   cat conftest.err >&5
   3602   echo "$as_me:3602: \$? = $ac_status" >&5
   3603   (exit $ac_status); } >/dev/null; then
   3604   if test -s conftest.err; then
   3605     ac_cpp_err=$ac_c_preproc_warn_flag
   3606   else
   3607     ac_cpp_err=
   3608   fi
   3609 else
   3610   ac_cpp_err=yes
   3611 fi
   3612 if test -z "$ac_cpp_err"; then
   3613   eval "$as_ac_Header=yes"
   3614 else
   3615   echo "$as_me: failed program was:" >&5
   3616   cat conftest.$ac_ext >&5
   3617   eval "$as_ac_Header=no"
   3618 fi
   3619 rm -f conftest.err conftest.$ac_ext
   3620 fi
   3621 echo "$as_me:3621: result: `eval echo '${'$as_ac_Header'}'`" >&5
   3622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   3623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   3624   cat >>confdefs.h <<EOF
   3625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3626 EOF
   3627 
   3628 fi
   3629 done
   3630 
   3631 echo "$as_me:3631: checking whether time.h and sys/time.h may both be included" >&5
   3632 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
   3633 if test "${ac_cv_header_time+set}" = set; then
   3634   echo $ECHO_N "(cached) $ECHO_C" >&6
   3635 else
   3636   cat >conftest.$ac_ext <<_ACEOF
   3637 #line 3637 "configure"
   3638 #include "confdefs.h"
   3639 #include <sys/types.h>
   3640 #include <sys/time.h>
   3641 #include <time.h>
   3642 
   3643 int
   3644 main ()
   3645 {
   3646 if ((struct tm *) 0)
   3647 return 0;
   3648   ;
   3649   return 0;
   3650 }
   3651 _ACEOF
   3652 rm -f conftest.$ac_objext
   3653 if { (eval echo "$as_me:3653: \"$ac_compile\"") >&5
   3654   (eval $ac_compile) 2>&5
   3655   ac_status=$?
   3656   echo "$as_me:3656: \$? = $ac_status" >&5
   3657   (exit $ac_status); } &&
   3658          { ac_try='test -s conftest.$ac_objext'
   3659   { (eval echo "$as_me:3659: \"$ac_try\"") >&5
   3660   (eval $ac_try) 2>&5
   3661   ac_status=$?
   3662   echo "$as_me:3662: \$? = $ac_status" >&5
   3663   (exit $ac_status); }; }; then
   3664   ac_cv_header_time=yes
   3665 else
   3666   echo "$as_me: failed program was:" >&5
   3667 cat conftest.$ac_ext >&5
   3668 ac_cv_header_time=no
   3669 fi
   3670 rm -f conftest.$ac_objext conftest.$ac_ext
   3671 fi
   3672 echo "$as_me:3672: result: $ac_cv_header_time" >&5
   3673 echo "${ECHO_T}$ac_cv_header_time" >&6
   3674 if test $ac_cv_header_time = yes; then
   3675 
   3676 cat >>confdefs.h <<\EOF
   3677 #define TIME_WITH_SYS_TIME 1
   3678 EOF
   3679 
   3680 fi
   3681 
   3682   echo "$as_me:3682: checking for nl_langinfo and CODESET" >&5
   3683 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
   3684 if test "${am_cv_langinfo_codeset+set}" = set; then
   3685   echo $ECHO_N "(cached) $ECHO_C" >&6
   3686 else
   3687   cat >conftest.$ac_ext <<_ACEOF
   3688 #line 3688 "configure"
   3689 #include "confdefs.h"
   3690 #include <langinfo.h>
   3691 int
   3692 main ()
   3693 {
   3694 char* cs = nl_langinfo(CODESET);
   3695   ;
   3696   return 0;
   3697 }
   3698 _ACEOF
   3699 rm -f conftest.$ac_objext conftest$ac_exeext
   3700 if { (eval echo "$as_me:3700: \"$ac_link\"") >&5
   3701   (eval $ac_link) 2>&5
   3702   ac_status=$?
   3703   echo "$as_me:3703: \$? = $ac_status" >&5
   3704   (exit $ac_status); } &&
   3705          { ac_try='test -s conftest$ac_exeext'
   3706   { (eval echo "$as_me:3706: \"$ac_try\"") >&5
   3707   (eval $ac_try) 2>&5
   3708   ac_status=$?
   3709   echo "$as_me:3709: \$? = $ac_status" >&5
   3710   (exit $ac_status); }; }; then
   3711   am_cv_langinfo_codeset=yes
   3712 else
   3713   echo "$as_me: failed program was:" >&5
   3714 cat conftest.$ac_ext >&5
   3715 am_cv_langinfo_codeset=no
   3716 fi
   3717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   3718 
   3719 fi
   3720 echo "$as_me:3720: result: $am_cv_langinfo_codeset" >&5
   3721 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
   3722   if test $am_cv_langinfo_codeset = yes; then
   3723 
   3724 cat >>confdefs.h <<\EOF
   3725 #define HAVE_LANGINFO_CODESET 1
   3726 EOF
   3727 
   3728   fi
   3729 
   3730 ###	checks for typedefs
   3731 
   3732 echo "$as_me:3732: checking for signal global datatype" >&5
   3733 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
   3734 if test "${cf_cv_sig_atomic_t+set}" = set; then
   3735   echo $ECHO_N "(cached) $ECHO_C" >&6
   3736 else
   3737 
   3738 	for cf_type in \
   3739 		"volatile sig_atomic_t" \
   3740 		"sig_atomic_t" \
   3741 		"int"
   3742 	do
   3743 	cat >conftest.$ac_ext <<_ACEOF
   3744 #line 3744 "configure"
   3745 #include "confdefs.h"
   3746 
   3747 #include <sys/types.h>
   3748 #include <signal.h>
   3749 #include <stdio.h>
   3750 
   3751 extern $cf_type x;
   3752 $cf_type x;
   3753 static void handler(int sig)
   3754 {
   3755 	x = 5;
   3756 }
   3757 int
   3758 main ()
   3759 {
   3760 signal(SIGINT, handler);
   3761 		 x = 1
   3762   ;
   3763   return 0;
   3764 }
   3765 _ACEOF
   3766 rm -f conftest.$ac_objext
   3767 if { (eval echo "$as_me:3767: \"$ac_compile\"") >&5
   3768   (eval $ac_compile) 2>&5
   3769   ac_status=$?
   3770   echo "$as_me:3770: \$? = $ac_status" >&5
   3771   (exit $ac_status); } &&
   3772          { ac_try='test -s conftest.$ac_objext'
   3773   { (eval echo "$as_me:3773: \"$ac_try\"") >&5
   3774   (eval $ac_try) 2>&5
   3775   ac_status=$?
   3776   echo "$as_me:3776: \$? = $ac_status" >&5
   3777   (exit $ac_status); }; }; then
   3778   cf_cv_sig_atomic_t=$cf_type
   3779 else
   3780   echo "$as_me: failed program was:" >&5
   3781 cat conftest.$ac_ext >&5
   3782 cf_cv_sig_atomic_t=no
   3783 fi
   3784 rm -f conftest.$ac_objext conftest.$ac_ext
   3785 		test "$cf_cv_sig_atomic_t" != no && break
   3786 	done
   3787 
   3788 fi
   3789 
   3790 echo "$as_me:3790: result: $cf_cv_sig_atomic_t" >&5
   3791 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
   3792 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
   3793 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
   3794 EOF
   3795 
   3796 echo "$as_me:3796: checking for size_t in <sys/types.h> or <stdio.h>" >&5
   3797 echo $ECHO_N "checking for size_t in <sys/types.h> or <stdio.h>... $ECHO_C" >&6
   3798 if test "${cf_cv_type_size_t+set}" = set; then
   3799   echo $ECHO_N "(cached) $ECHO_C" >&6
   3800 else
   3801 
   3802 	cat >conftest.$ac_ext <<_ACEOF
   3803 #line 3803 "configure"
   3804 #include "confdefs.h"
   3805 
   3806 #include <sys/types.h>
   3807 #ifdef STDC_HEADERS
   3808 #include <stdlib.h>
   3809 #include <stddef.h>
   3810 #endif
   3811 #include <stdio.h>
   3812 int
   3813 main ()
   3814 {
   3815 size_t x
   3816   ;
   3817   return 0;
   3818 }
   3819 _ACEOF
   3820 rm -f conftest.$ac_objext
   3821 if { (eval echo "$as_me:3821: \"$ac_compile\"") >&5
   3822   (eval $ac_compile) 2>&5
   3823   ac_status=$?
   3824   echo "$as_me:3824: \$? = $ac_status" >&5
   3825   (exit $ac_status); } &&
   3826          { ac_try='test -s conftest.$ac_objext'
   3827   { (eval echo "$as_me:3827: \"$ac_try\"") >&5
   3828   (eval $ac_try) 2>&5
   3829   ac_status=$?
   3830   echo "$as_me:3830: \$? = $ac_status" >&5
   3831   (exit $ac_status); }; }; then
   3832   cf_cv_type_size_t=yes
   3833 else
   3834   echo "$as_me: failed program was:" >&5
   3835 cat conftest.$ac_ext >&5
   3836 cf_cv_type_size_t=no
   3837 fi
   3838 rm -f conftest.$ac_objext conftest.$ac_ext
   3839 
   3840 fi
   3841 
   3842 echo "$as_me:3842: result: $cf_cv_type_size_t" >&5
   3843 echo "${ECHO_T}$cf_cv_type_size_t" >&6
   3844 test $cf_cv_type_size_t = no && cat >>confdefs.h <<\EOF
   3845 #define size_t unsigned
   3846 EOF
   3847 
   3848 echo "$as_me:3848: checking for ANSI C header files" >&5
   3849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   3850 if test "${ac_cv_header_stdc+set}" = set; then
   3851   echo $ECHO_N "(cached) $ECHO_C" >&6
   3852 else
   3853   cat >conftest.$ac_ext <<_ACEOF
   3854 #line 3854 "configure"
   3855 #include "confdefs.h"
   3856 #include <stdlib.h>
   3857 #include <stdarg.h>
   3858 #include <string.h>
   3859 #include <float.h>
   3860 
   3861 _ACEOF
   3862 if { (eval echo "$as_me:3862: \"$ac_cpp conftest.$ac_ext\"") >&5
   3863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3864   ac_status=$?
   3865   egrep -v '^ *\+' conftest.er1 >conftest.err
   3866   rm -f conftest.er1
   3867   cat conftest.err >&5
   3868   echo "$as_me:3868: \$? = $ac_status" >&5
   3869   (exit $ac_status); } >/dev/null; then
   3870   if test -s conftest.err; then
   3871     ac_cpp_err=$ac_c_preproc_warn_flag
   3872   else
   3873     ac_cpp_err=
   3874   fi
   3875 else
   3876   ac_cpp_err=yes
   3877 fi
   3878 if test -z "$ac_cpp_err"; then
   3879   ac_cv_header_stdc=yes
   3880 else
   3881   echo "$as_me: failed program was:" >&5
   3882   cat conftest.$ac_ext >&5
   3883   ac_cv_header_stdc=no
   3884 fi
   3885 rm -f conftest.err conftest.$ac_ext
   3886 
   3887 if test $ac_cv_header_stdc = yes; then
   3888   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3889   cat >conftest.$ac_ext <<_ACEOF
   3890 #line 3890 "configure"
   3891 #include "confdefs.h"
   3892 #include <string.h>
   3893 
   3894 _ACEOF
   3895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3896   egrep "memchr" >/dev/null 2>&1; then
   3897   :
   3898 else
   3899   ac_cv_header_stdc=no
   3900 fi
   3901 rm -rf conftest*
   3902 
   3903 fi
   3904 
   3905 if test $ac_cv_header_stdc = yes; then
   3906   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3907   cat >conftest.$ac_ext <<_ACEOF
   3908 #line 3908 "configure"
   3909 #include "confdefs.h"
   3910 #include <stdlib.h>
   3911 
   3912 _ACEOF
   3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3914   egrep "free" >/dev/null 2>&1; then
   3915   :
   3916 else
   3917   ac_cv_header_stdc=no
   3918 fi
   3919 rm -rf conftest*
   3920 
   3921 fi
   3922 
   3923 if test $ac_cv_header_stdc = yes; then
   3924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3925   if test "$cross_compiling" = yes; then
   3926   :
   3927 else
   3928   cat >conftest.$ac_ext <<_ACEOF
   3929 #line 3929 "configure"
   3930 #include "confdefs.h"
   3931 #include <ctype.h>
   3932 #if ((' ' & 0x0FF) == 0x020)
   3933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3935 #else
   3936 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
   3937                      || ('j' <= (c) && (c) <= 'r') \
   3938                      || ('s' <= (c) && (c) <= 'z'))
   3939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3940 #endif
   3941 
   3942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3943 int
   3944 main ()
   3945 {
   3946   int i;
   3947   for (i = 0; i < 256; i++)
   3948     if (XOR (islower (i), ISLOWER (i))
   3949         || toupper (i) != TOUPPER (i))
   3950       $ac_main_return(2);
   3951   $ac_main_return (0);
   3952 }
   3953 _ACEOF
   3954 rm -f conftest$ac_exeext
   3955 if { (eval echo "$as_me:3955: \"$ac_link\"") >&5
   3956   (eval $ac_link) 2>&5
   3957   ac_status=$?
   3958   echo "$as_me:3958: \$? = $ac_status" >&5
   3959   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3960   { (eval echo "$as_me:3960: \"$ac_try\"") >&5
   3961   (eval $ac_try) 2>&5
   3962   ac_status=$?
   3963   echo "$as_me:3963: \$? = $ac_status" >&5
   3964   (exit $ac_status); }; }; then
   3965   :
   3966 else
   3967   echo "$as_me: program exited with status $ac_status" >&5
   3968 echo "$as_me: failed program was:" >&5
   3969 cat conftest.$ac_ext >&5
   3970 ac_cv_header_stdc=no
   3971 fi
   3972 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3973 fi
   3974 fi
   3975 fi
   3976 echo "$as_me:3976: result: $ac_cv_header_stdc" >&5
   3977 echo "${ECHO_T}$ac_cv_header_stdc" >&6
   3978 if test $ac_cv_header_stdc = yes; then
   3979 
   3980 cat >>confdefs.h <<\EOF
   3981 #define STDC_HEADERS 1
   3982 EOF
   3983 
   3984 fi
   3985 
   3986 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3987 
   3988 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3989                   inttypes.h stdint.h unistd.h
   3990 do
   3991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3992 echo "$as_me:3992: checking for $ac_header" >&5
   3993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   3994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   3995   echo $ECHO_N "(cached) $ECHO_C" >&6
   3996 else
   3997   cat >conftest.$ac_ext <<_ACEOF
   3998 #line 3998 "configure"
   3999 #include "confdefs.h"
   4000 $ac_includes_default
   4001 #include <$ac_header>
   4002 _ACEOF
   4003 rm -f conftest.$ac_objext
   4004 if { (eval echo "$as_me:4004: \"$ac_compile\"") >&5
   4005   (eval $ac_compile) 2>&5
   4006   ac_status=$?
   4007   echo "$as_me:4007: \$? = $ac_status" >&5
   4008   (exit $ac_status); } &&
   4009          { ac_try='test -s conftest.$ac_objext'
   4010   { (eval echo "$as_me:4010: \"$ac_try\"") >&5
   4011   (eval $ac_try) 2>&5
   4012   ac_status=$?
   4013   echo "$as_me:4013: \$? = $ac_status" >&5
   4014   (exit $ac_status); }; }; then
   4015   eval "$as_ac_Header=yes"
   4016 else
   4017   echo "$as_me: failed program was:" >&5
   4018 cat conftest.$ac_ext >&5
   4019 eval "$as_ac_Header=no"
   4020 fi
   4021 rm -f conftest.$ac_objext conftest.$ac_ext
   4022 fi
   4023 echo "$as_me:4023: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4026   cat >>confdefs.h <<EOF
   4027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4028 EOF
   4029 
   4030 fi
   4031 done
   4032 
   4033 echo "$as_me:4033: checking for time_t" >&5
   4034 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
   4035 if test "${ac_cv_type_time_t+set}" = set; then
   4036   echo $ECHO_N "(cached) $ECHO_C" >&6
   4037 else
   4038   cat >conftest.$ac_ext <<_ACEOF
   4039 #line 4039 "configure"
   4040 #include "confdefs.h"
   4041 $ac_includes_default
   4042 int
   4043 main ()
   4044 {
   4045 if ((time_t *) 0)
   4046   return 0;
   4047 if (sizeof (time_t))
   4048   return 0;
   4049   ;
   4050   return 0;
   4051 }
   4052 _ACEOF
   4053 rm -f conftest.$ac_objext
   4054 if { (eval echo "$as_me:4054: \"$ac_compile\"") >&5
   4055   (eval $ac_compile) 2>&5
   4056   ac_status=$?
   4057   echo "$as_me:4057: \$? = $ac_status" >&5
   4058   (exit $ac_status); } &&
   4059          { ac_try='test -s conftest.$ac_objext'
   4060   { (eval echo "$as_me:4060: \"$ac_try\"") >&5
   4061   (eval $ac_try) 2>&5
   4062   ac_status=$?
   4063   echo "$as_me:4063: \$? = $ac_status" >&5
   4064   (exit $ac_status); }; }; then
   4065   ac_cv_type_time_t=yes
   4066 else
   4067   echo "$as_me: failed program was:" >&5
   4068 cat conftest.$ac_ext >&5
   4069 ac_cv_type_time_t=no
   4070 fi
   4071 rm -f conftest.$ac_objext conftest.$ac_ext
   4072 fi
   4073 echo "$as_me:4073: result: $ac_cv_type_time_t" >&5
   4074 echo "${ECHO_T}$ac_cv_type_time_t" >&6
   4075 if test $ac_cv_type_time_t = yes; then
   4076   :
   4077 else
   4078 
   4079 cat >>confdefs.h <<EOF
   4080 #define time_t long
   4081 EOF
   4082 
   4083 fi
   4084 
   4085 echo "$as_me:4085: checking for mode_t" >&5
   4086 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
   4087 if test "${ac_cv_type_mode_t+set}" = set; then
   4088   echo $ECHO_N "(cached) $ECHO_C" >&6
   4089 else
   4090   cat >conftest.$ac_ext <<_ACEOF
   4091 #line 4091 "configure"
   4092 #include "confdefs.h"
   4093 $ac_includes_default
   4094 int
   4095 main ()
   4096 {
   4097 if ((mode_t *) 0)
   4098   return 0;
   4099 if (sizeof (mode_t))
   4100   return 0;
   4101   ;
   4102   return 0;
   4103 }
   4104 _ACEOF
   4105 rm -f conftest.$ac_objext
   4106 if { (eval echo "$as_me:4106: \"$ac_compile\"") >&5
   4107   (eval $ac_compile) 2>&5
   4108   ac_status=$?
   4109   echo "$as_me:4109: \$? = $ac_status" >&5
   4110   (exit $ac_status); } &&
   4111          { ac_try='test -s conftest.$ac_objext'
   4112   { (eval echo "$as_me:4112: \"$ac_try\"") >&5
   4113   (eval $ac_try) 2>&5
   4114   ac_status=$?
   4115   echo "$as_me:4115: \$? = $ac_status" >&5
   4116   (exit $ac_status); }; }; then
   4117   ac_cv_type_mode_t=yes
   4118 else
   4119   echo "$as_me: failed program was:" >&5
   4120 cat conftest.$ac_ext >&5
   4121 ac_cv_type_mode_t=no
   4122 fi
   4123 rm -f conftest.$ac_objext conftest.$ac_ext
   4124 fi
   4125 echo "$as_me:4125: result: $ac_cv_type_mode_t" >&5
   4126 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
   4127 if test $ac_cv_type_mode_t = yes; then
   4128   :
   4129 else
   4130 
   4131 cat >>confdefs.h <<EOF
   4132 #define mode_t int
   4133 EOF
   4134 
   4135 fi
   4136 
   4137 echo "$as_me:4137: checking for pid_t" >&5
   4138 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
   4139 if test "${ac_cv_type_pid_t+set}" = set; then
   4140   echo $ECHO_N "(cached) $ECHO_C" >&6
   4141 else
   4142   cat >conftest.$ac_ext <<_ACEOF
   4143 #line 4143 "configure"
   4144 #include "confdefs.h"
   4145 $ac_includes_default
   4146 int
   4147 main ()
   4148 {
   4149 if ((pid_t *) 0)
   4150   return 0;
   4151 if (sizeof (pid_t))
   4152   return 0;
   4153   ;
   4154   return 0;
   4155 }
   4156 _ACEOF
   4157 rm -f conftest.$ac_objext
   4158 if { (eval echo "$as_me:4158: \"$ac_compile\"") >&5
   4159   (eval $ac_compile) 2>&5
   4160   ac_status=$?
   4161   echo "$as_me:4161: \$? = $ac_status" >&5
   4162   (exit $ac_status); } &&
   4163          { ac_try='test -s conftest.$ac_objext'
   4164   { (eval echo "$as_me:4164: \"$ac_try\"") >&5
   4165   (eval $ac_try) 2>&5
   4166   ac_status=$?
   4167   echo "$as_me:4167: \$? = $ac_status" >&5
   4168   (exit $ac_status); }; }; then
   4169   ac_cv_type_pid_t=yes
   4170 else
   4171   echo "$as_me: failed program was:" >&5
   4172 cat conftest.$ac_ext >&5
   4173 ac_cv_type_pid_t=no
   4174 fi
   4175 rm -f conftest.$ac_objext conftest.$ac_ext
   4176 fi
   4177 echo "$as_me:4177: result: $ac_cv_type_pid_t" >&5
   4178 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
   4179 if test $ac_cv_type_pid_t = yes; then
   4180   :
   4181 else
   4182 
   4183 cat >>confdefs.h <<EOF
   4184 #define pid_t int
   4185 EOF
   4186 
   4187 fi
   4188 
   4189 echo "$as_me:4189: checking for uid_t in sys/types.h" >&5
   4190 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
   4191 if test "${ac_cv_type_uid_t+set}" = set; then
   4192   echo $ECHO_N "(cached) $ECHO_C" >&6
   4193 else
   4194   cat >conftest.$ac_ext <<_ACEOF
   4195 #line 4195 "configure"
   4196 #include "confdefs.h"
   4197 #include <sys/types.h>
   4198 
   4199 _ACEOF
   4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4201   egrep "uid_t" >/dev/null 2>&1; then
   4202   ac_cv_type_uid_t=yes
   4203 else
   4204   ac_cv_type_uid_t=no
   4205 fi
   4206 rm -rf conftest*
   4207 
   4208 fi
   4209 echo "$as_me:4209: result: $ac_cv_type_uid_t" >&5
   4210 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
   4211 if test $ac_cv_type_uid_t = no; then
   4212 
   4213 cat >>confdefs.h <<\EOF
   4214 #define uid_t int
   4215 EOF
   4216 
   4217 cat >>confdefs.h <<\EOF
   4218 #define gid_t int
   4219 EOF
   4220 
   4221 fi
   4222 
   4223 echo "$as_me:4223: checking for off_t" >&5
   4224 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
   4225 if test "${ac_cv_type_off_t+set}" = set; then
   4226   echo $ECHO_N "(cached) $ECHO_C" >&6
   4227 else
   4228   cat >conftest.$ac_ext <<_ACEOF
   4229 #line 4229 "configure"
   4230 #include "confdefs.h"
   4231 $ac_includes_default
   4232 int
   4233 main ()
   4234 {
   4235 if ((off_t *) 0)
   4236   return 0;
   4237 if (sizeof (off_t))
   4238   return 0;
   4239   ;
   4240   return 0;
   4241 }
   4242 _ACEOF
   4243 rm -f conftest.$ac_objext
   4244 if { (eval echo "$as_me:4244: \"$ac_compile\"") >&5
   4245   (eval $ac_compile) 2>&5
   4246   ac_status=$?
   4247   echo "$as_me:4247: \$? = $ac_status" >&5
   4248   (exit $ac_status); } &&
   4249          { ac_try='test -s conftest.$ac_objext'
   4250   { (eval echo "$as_me:4250: \"$ac_try\"") >&5
   4251   (eval $ac_try) 2>&5
   4252   ac_status=$?
   4253   echo "$as_me:4253: \$? = $ac_status" >&5
   4254   (exit $ac_status); }; }; then
   4255   ac_cv_type_off_t=yes
   4256 else
   4257   echo "$as_me: failed program was:" >&5
   4258 cat conftest.$ac_ext >&5
   4259 ac_cv_type_off_t=no
   4260 fi
   4261 rm -f conftest.$ac_objext conftest.$ac_ext
   4262 fi
   4263 echo "$as_me:4263: result: $ac_cv_type_off_t" >&5
   4264 echo "${ECHO_T}$ac_cv_type_off_t" >&6
   4265 if test $ac_cv_type_off_t = yes; then
   4266   :
   4267 else
   4268 
   4269 cat >>confdefs.h <<EOF
   4270 #define off_t long
   4271 EOF
   4272 
   4273 fi
   4274 
   4275 ###	checks for library functions
   4276 
   4277 for ac_func in \
   4278 	bcopy \
   4279 	gethostname \
   4280 	getlogin \
   4281 	memmove \
   4282 	putenv \
   4283 	sched_yield \
   4284 	strerror \
   4285 	strftime \
   4286 	tcgetattr \
   4287 	waitpid \
   4288 	wcswidth \
   4289 	wcwidth
   4290 do
   4291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   4292 echo "$as_me:4292: checking for $ac_func" >&5
   4293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   4294 if eval "test \"\${$as_ac_var+set}\" = set"; then
   4295   echo $ECHO_N "(cached) $ECHO_C" >&6
   4296 else
   4297   cat >conftest.$ac_ext <<_ACEOF
   4298 #line 4298 "configure"
   4299 #include "confdefs.h"
   4300 /* System header to define __stub macros and hopefully few prototypes,
   4301     which can conflict with char $ac_func (); below.  */
   4302 #include <assert.h>
   4303 /* Override any gcc2 internal prototype to avoid an error.  */
   4304 #ifdef __cplusplus
   4305 extern "C"
   4306 #endif
   4307 /* We use char because int might match the return type of a gcc2
   4308    builtin and then its argument prototype would still apply.  */
   4309 char $ac_func ();
   4310 char (*f) ();
   4311 
   4312 int
   4313 main ()
   4314 {
   4315 /* The GNU C library defines this for functions which it implements
   4316     to always fail with ENOSYS.  Some functions are actually named
   4317     something starting with __ and the normal name is an alias.  */
   4318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   4319 choke me
   4320 #else
   4321 f = $ac_func;
   4322 #endif
   4323 
   4324   ;
   4325   return 0;
   4326 }
   4327 _ACEOF
   4328 rm -f conftest.$ac_objext conftest$ac_exeext
   4329 if { (eval echo "$as_me:4329: \"$ac_link\"") >&5
   4330   (eval $ac_link) 2>&5
   4331   ac_status=$?
   4332   echo "$as_me:4332: \$? = $ac_status" >&5
   4333   (exit $ac_status); } &&
   4334          { ac_try='test -s conftest$ac_exeext'
   4335   { (eval echo "$as_me:4335: \"$ac_try\"") >&5
   4336   (eval $ac_try) 2>&5
   4337   ac_status=$?
   4338   echo "$as_me:4338: \$? = $ac_status" >&5
   4339   (exit $ac_status); }; }; then
   4340   eval "$as_ac_var=yes"
   4341 else
   4342   echo "$as_me: failed program was:" >&5
   4343 cat conftest.$ac_ext >&5
   4344 eval "$as_ac_var=no"
   4345 fi
   4346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4347 fi
   4348 echo "$as_me:4348: result: `eval echo '${'$as_ac_var'}'`" >&5
   4349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   4350 if test `eval echo '${'$as_ac_var'}'` = yes; then
   4351   cat >>confdefs.h <<EOF
   4352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   4353 EOF
   4354 
   4355 fi
   4356 done
   4357 
   4358 echo "$as_me:4358: checking for memmove" >&5
   4359 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
   4360 if test "${ac_cv_func_memmove+set}" = set; then
   4361   echo $ECHO_N "(cached) $ECHO_C" >&6
   4362 else
   4363   cat >conftest.$ac_ext <<_ACEOF
   4364 #line 4364 "configure"
   4365 #include "confdefs.h"
   4366 /* System header to define __stub macros and hopefully few prototypes,
   4367     which can conflict with char memmove (); below.  */
   4368 #include <assert.h>
   4369 /* Override any gcc2 internal prototype to avoid an error.  */
   4370 #ifdef __cplusplus
   4371 extern "C"
   4372 #endif
   4373 /* We use char because int might match the return type of a gcc2
   4374    builtin and then its argument prototype would still apply.  */
   4375 char memmove ();
   4376 char (*f) ();
   4377 
   4378 int
   4379 main ()
   4380 {
   4381 /* The GNU C library defines this for functions which it implements
   4382     to always fail with ENOSYS.  Some functions are actually named
   4383     something starting with __ and the normal name is an alias.  */
   4384 #if defined (__stub_memmove) || defined (__stub___memmove)
   4385 choke me
   4386 #else
   4387 f = memmove;
   4388 #endif
   4389 
   4390   ;
   4391   return 0;
   4392 }
   4393 _ACEOF
   4394 rm -f conftest.$ac_objext conftest$ac_exeext
   4395 if { (eval echo "$as_me:4395: \"$ac_link\"") >&5
   4396   (eval $ac_link) 2>&5
   4397   ac_status=$?
   4398   echo "$as_me:4398: \$? = $ac_status" >&5
   4399   (exit $ac_status); } &&
   4400          { ac_try='test -s conftest$ac_exeext'
   4401   { (eval echo "$as_me:4401: \"$ac_try\"") >&5
   4402   (eval $ac_try) 2>&5
   4403   ac_status=$?
   4404   echo "$as_me:4404: \$? = $ac_status" >&5
   4405   (exit $ac_status); }; }; then
   4406   ac_cv_func_memmove=yes
   4407 else
   4408   echo "$as_me: failed program was:" >&5
   4409 cat conftest.$ac_ext >&5
   4410 ac_cv_func_memmove=no
   4411 fi
   4412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4413 fi
   4414 echo "$as_me:4414: result: $ac_cv_func_memmove" >&5
   4415 echo "${ECHO_T}$ac_cv_func_memmove" >&6
   4416 if test $ac_cv_func_memmove = yes; then
   4417   :
   4418 else
   4419 
   4420 echo "$as_me:4420: checking for bcopy" >&5
   4421 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
   4422 if test "${ac_cv_func_bcopy+set}" = set; then
   4423   echo $ECHO_N "(cached) $ECHO_C" >&6
   4424 else
   4425   cat >conftest.$ac_ext <<_ACEOF
   4426 #line 4426 "configure"
   4427 #include "confdefs.h"
   4428 /* System header to define __stub macros and hopefully few prototypes,
   4429     which can conflict with char bcopy (); below.  */
   4430 #include <assert.h>
   4431 /* Override any gcc2 internal prototype to avoid an error.  */
   4432 #ifdef __cplusplus
   4433 extern "C"
   4434 #endif
   4435 /* We use char because int might match the return type of a gcc2
   4436    builtin and then its argument prototype would still apply.  */
   4437 char bcopy ();
   4438 char (*f) ();
   4439 
   4440 int
   4441 main ()
   4442 {
   4443 /* The GNU C library defines this for functions which it implements
   4444     to always fail with ENOSYS.  Some functions are actually named
   4445     something starting with __ and the normal name is an alias.  */
   4446 #if defined (__stub_bcopy) || defined (__stub___bcopy)
   4447 choke me
   4448 #else
   4449 f = bcopy;
   4450 #endif
   4451 
   4452   ;
   4453   return 0;
   4454 }
   4455 _ACEOF
   4456 rm -f conftest.$ac_objext conftest$ac_exeext
   4457 if { (eval echo "$as_me:4457: \"$ac_link\"") >&5
   4458   (eval $ac_link) 2>&5
   4459   ac_status=$?
   4460   echo "$as_me:4460: \$? = $ac_status" >&5
   4461   (exit $ac_status); } &&
   4462          { ac_try='test -s conftest$ac_exeext'
   4463   { (eval echo "$as_me:4463: \"$ac_try\"") >&5
   4464   (eval $ac_try) 2>&5
   4465   ac_status=$?
   4466   echo "$as_me:4466: \$? = $ac_status" >&5
   4467   (exit $ac_status); }; }; then
   4468   ac_cv_func_bcopy=yes
   4469 else
   4470   echo "$as_me: failed program was:" >&5
   4471 cat conftest.$ac_ext >&5
   4472 ac_cv_func_bcopy=no
   4473 fi
   4474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   4475 fi
   4476 echo "$as_me:4476: result: $ac_cv_func_bcopy" >&5
   4477 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
   4478 if test $ac_cv_func_bcopy = yes; then
   4479 
   4480 	echo "$as_me:4480: checking if bcopy does overlapping moves" >&5
   4481 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
   4482 if test "${cf_cv_good_bcopy+set}" = set; then
   4483   echo $ECHO_N "(cached) $ECHO_C" >&6
   4484 else
   4485 
   4486 		if test "$cross_compiling" = yes; then
   4487   cf_cv_good_bcopy=unknown
   4488 else
   4489   cat >conftest.$ac_ext <<_ACEOF
   4490 #line 4490 "configure"
   4491 #include "confdefs.h"
   4492 
   4493 int main() {
   4494 	static char data[] = "abcdefghijklmnopqrstuwwxyz";
   4495 	char temp[40];
   4496 	bcopy(data, temp, sizeof(data));
   4497 	bcopy(temp+10, temp, 15);
   4498 	bcopy(temp+5, temp+15, 10);
   4499 	${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
   4500 }
   4501 
   4502 _ACEOF
   4503 rm -f conftest$ac_exeext
   4504 if { (eval echo "$as_me:4504: \"$ac_link\"") >&5
   4505   (eval $ac_link) 2>&5
   4506   ac_status=$?
   4507   echo "$as_me:4507: \$? = $ac_status" >&5
   4508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4509   { (eval echo "$as_me:4509: \"$ac_try\"") >&5
   4510   (eval $ac_try) 2>&5
   4511   ac_status=$?
   4512   echo "$as_me:4512: \$? = $ac_status" >&5
   4513   (exit $ac_status); }; }; then
   4514   cf_cv_good_bcopy=yes
   4515 else
   4516   echo "$as_me: program exited with status $ac_status" >&5
   4517 echo "$as_me: failed program was:" >&5
   4518 cat conftest.$ac_ext >&5
   4519 cf_cv_good_bcopy=no
   4520 fi
   4521 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4522 fi
   4523 
   4524 fi
   4525 echo "$as_me:4525: result: $cf_cv_good_bcopy" >&5
   4526 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
   4527 
   4528 else
   4529   cf_cv_good_bcopy=no
   4530 fi
   4531 
   4532 	if test "$cf_cv_good_bcopy" = yes ; then
   4533 		cat >>confdefs.h <<\EOF
   4534 #define USE_OK_BCOPY 1
   4535 EOF
   4536 
   4537 	else
   4538 		cat >>confdefs.h <<\EOF
   4539 #define USE_MY_MEMMOVE 1
   4540 EOF
   4541 
   4542 	fi
   4543 
   4544 fi
   4545 
   4546 for ac_header in lastlog.h paths.h
   4547 do
   4548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4549 echo "$as_me:4549: checking for $ac_header" >&5
   4550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4552   echo $ECHO_N "(cached) $ECHO_C" >&6
   4553 else
   4554   cat >conftest.$ac_ext <<_ACEOF
   4555 #line 4555 "configure"
   4556 #include "confdefs.h"
   4557 #include <$ac_header>
   4558 _ACEOF
   4559 if { (eval echo "$as_me:4559: \"$ac_cpp conftest.$ac_ext\"") >&5
   4560   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4561   ac_status=$?
   4562   egrep -v '^ *\+' conftest.er1 >conftest.err
   4563   rm -f conftest.er1
   4564   cat conftest.err >&5
   4565   echo "$as_me:4565: \$? = $ac_status" >&5
   4566   (exit $ac_status); } >/dev/null; then
   4567   if test -s conftest.err; then
   4568     ac_cpp_err=$ac_c_preproc_warn_flag
   4569   else
   4570     ac_cpp_err=
   4571   fi
   4572 else
   4573   ac_cpp_err=yes
   4574 fi
   4575 if test -z "$ac_cpp_err"; then
   4576   eval "$as_ac_Header=yes"
   4577 else
   4578   echo "$as_me: failed program was:" >&5
   4579   cat conftest.$ac_ext >&5
   4580   eval "$as_ac_Header=no"
   4581 fi
   4582 rm -f conftest.err conftest.$ac_ext
   4583 fi
   4584 echo "$as_me:4584: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4587   cat >>confdefs.h <<EOF
   4588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4589 EOF
   4590 
   4591 fi
   4592 done
   4593 
   4594 echo "$as_me:4594: checking for lastlog path" >&5
   4595 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
   4596 if test "${cf_cv_path_lastlog+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 #ifdef HAVE_LASTLOG_H
   4606 #include <lastlog.h>
   4607 #else
   4608 #ifdef HAVE_PATHS_H
   4609 #include <paths.h>
   4610 #endif
   4611 #endif
   4612 int
   4613 main ()
   4614 {
   4615 char *path = _PATH_LASTLOG
   4616   ;
   4617   return 0;
   4618 }
   4619 _ACEOF
   4620 rm -f conftest.$ac_objext
   4621 if { (eval echo "$as_me:4621: \"$ac_compile\"") >&5
   4622   (eval $ac_compile) 2>&5
   4623   ac_status=$?
   4624   echo "$as_me:4624: \$? = $ac_status" >&5
   4625   (exit $ac_status); } &&
   4626          { ac_try='test -s conftest.$ac_objext'
   4627   { (eval echo "$as_me:4627: \"$ac_try\"") >&5
   4628   (eval $ac_try) 2>&5
   4629   ac_status=$?
   4630   echo "$as_me:4630: \$? = $ac_status" >&5
   4631   (exit $ac_status); }; }; then
   4632   cf_cv_path_lastlog="_PATH_LASTLOG"
   4633 else
   4634   echo "$as_me: failed program was:" >&5
   4635 cat conftest.$ac_ext >&5
   4636 if test -f /usr/adm/lastlog ; then
   4637 	 	cf_cv_path_lastlog=/usr/adm/lastlog
   4638 	else
   4639 		cf_cv_path_lastlog=no
   4640 	fi
   4641 fi
   4642 rm -f conftest.$ac_objext conftest.$ac_ext
   4643 
   4644 fi
   4645 echo "$as_me:4645: result: $cf_cv_path_lastlog" >&5
   4646 echo "${ECHO_T}$cf_cv_path_lastlog" >&6
   4647 test $cf_cv_path_lastlog != no && cat >>confdefs.h <<\EOF
   4648 #define USE_LASTLOG 1
   4649 EOF
   4650 
   4651 echo "$as_me:4651: checking for utmp implementation" >&5
   4652 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
   4653 if test "${cf_cv_have_utmp+set}" = set; then
   4654   echo $ECHO_N "(cached) $ECHO_C" >&6
   4655 else
   4656 
   4657 	cf_cv_have_utmp=no
   4658 for cf_header in utmpx utmp ; do
   4659 cf_utmp_includes="
   4660 #include <sys/types.h>
   4661 #include <${cf_header}.h>
   4662 #define getutent getutxent
   4663 #ifdef USE_LASTLOG
   4664 #include <lastlog.h>	/* may conflict with utmpx.h on Linux */
   4665 #endif
   4666 "
   4667 	cat >conftest.$ac_ext <<_ACEOF
   4668 #line 4668 "configure"
   4669 #include "confdefs.h"
   4670 $cf_utmp_includes
   4671 int
   4672 main ()
   4673 {
   4674 struct $cf_header x;
   4675 	 char *name = x.ut_name; /* utmp.h and compatible definitions */
   4676 
   4677   ;
   4678   return 0;
   4679 }
   4680 _ACEOF
   4681 rm -f conftest.$ac_objext
   4682 if { (eval echo "$as_me:4682: \"$ac_compile\"") >&5
   4683   (eval $ac_compile) 2>&5
   4684   ac_status=$?
   4685   echo "$as_me:4685: \$? = $ac_status" >&5
   4686   (exit $ac_status); } &&
   4687          { ac_try='test -s conftest.$ac_objext'
   4688   { (eval echo "$as_me:4688: \"$ac_try\"") >&5
   4689   (eval $ac_try) 2>&5
   4690   ac_status=$?
   4691   echo "$as_me:4691: \$? = $ac_status" >&5
   4692   (exit $ac_status); }; }; then
   4693   cf_cv_have_utmp=$cf_header
   4694 	 break
   4695 else
   4696   echo "$as_me: failed program was:" >&5
   4697 cat conftest.$ac_ext >&5
   4698 
   4699 	cat >conftest.$ac_ext <<_ACEOF
   4700 #line 4700 "configure"
   4701 #include "confdefs.h"
   4702 $cf_utmp_includes
   4703 int
   4704 main ()
   4705 {
   4706 struct $cf_header x;
   4707 	 char *name = x.ut_user; /* utmpx.h must declare this */
   4708 
   4709   ;
   4710   return 0;
   4711 }
   4712 _ACEOF
   4713 rm -f conftest.$ac_objext
   4714 if { (eval echo "$as_me:4714: \"$ac_compile\"") >&5
   4715   (eval $ac_compile) 2>&5
   4716   ac_status=$?
   4717   echo "$as_me:4717: \$? = $ac_status" >&5
   4718   (exit $ac_status); } &&
   4719          { ac_try='test -s conftest.$ac_objext'
   4720   { (eval echo "$as_me:4720: \"$ac_try\"") >&5
   4721   (eval $ac_try) 2>&5
   4722   ac_status=$?
   4723   echo "$as_me:4723: \$? = $ac_status" >&5
   4724   (exit $ac_status); }; }; then
   4725   cf_cv_have_utmp=$cf_header
   4726 	 break
   4727 
   4728 else
   4729   echo "$as_me: failed program was:" >&5
   4730 cat conftest.$ac_ext >&5
   4731 fi
   4732 rm -f conftest.$ac_objext conftest.$ac_ext
   4733 fi
   4734 rm -f conftest.$ac_objext conftest.$ac_ext
   4735 done
   4736 
   4737 fi
   4738 echo "$as_me:4738: result: $cf_cv_have_utmp" >&5
   4739 echo "${ECHO_T}$cf_cv_have_utmp" >&6
   4740 
   4741 if test $cf_cv_have_utmp != no ; then
   4742 	cat >>confdefs.h <<\EOF
   4743 #define HAVE_UTMP 1
   4744 EOF
   4745 
   4746 	test $cf_cv_have_utmp = utmpx && cat >>confdefs.h <<\EOF
   4747 #define UTMPX_FOR_UTMP 1
   4748 EOF
   4749 
   4750 if test $cf_cv_have_utmp != no ; then
   4751 echo "$as_me:4751: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
   4752 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
   4753 if test "${cf_cv_have_utmp_ut_host+set}" = set; then
   4754   echo $ECHO_N "(cached) $ECHO_C" >&6
   4755 else
   4756 
   4757 	cat >conftest.$ac_ext <<_ACEOF
   4758 #line 4758 "configure"
   4759 #include "confdefs.h"
   4760 
   4761 #include <sys/types.h>
   4762 #include <${cf_cv_have_utmp}.h>
   4763 int
   4764 main ()
   4765 {
   4766 struct $cf_cv_have_utmp x; char *y = &x.ut_host[0]
   4767   ;
   4768   return 0;
   4769 }
   4770 _ACEOF
   4771 rm -f conftest.$ac_objext
   4772 if { (eval echo "$as_me:4772: \"$ac_compile\"") >&5
   4773   (eval $ac_compile) 2>&5
   4774   ac_status=$?
   4775   echo "$as_me:4775: \$? = $ac_status" >&5
   4776   (exit $ac_status); } &&
   4777          { ac_try='test -s conftest.$ac_objext'
   4778   { (eval echo "$as_me:4778: \"$ac_try\"") >&5
   4779   (eval $ac_try) 2>&5
   4780   ac_status=$?
   4781   echo "$as_me:4781: \$? = $ac_status" >&5
   4782   (exit $ac_status); }; }; then
   4783   cf_cv_have_utmp_ut_host=yes
   4784 else
   4785   echo "$as_me: failed program was:" >&5
   4786 cat conftest.$ac_ext >&5
   4787 cf_cv_have_utmp_ut_host=no
   4788 fi
   4789 rm -f conftest.$ac_objext conftest.$ac_ext
   4790 
   4791 fi
   4792 
   4793 echo "$as_me:4793: result: $cf_cv_have_utmp_ut_host" >&5
   4794 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
   4795 test $cf_cv_have_utmp_ut_host != no && cat >>confdefs.h <<\EOF
   4796 #define HAVE_UTMP_UT_HOST 1
   4797 EOF
   4798 
   4799 fi
   4800 
   4801 if test $cf_cv_have_utmp != no ; then
   4802 echo "$as_me:4802: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
   4803 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6
   4804 if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
   4805   echo $ECHO_N "(cached) $ECHO_C" >&6
   4806 else
   4807 
   4808 	cat >conftest.$ac_ext <<_ACEOF
   4809 #line 4809 "configure"
   4810 #include "confdefs.h"
   4811 
   4812 #include <sys/types.h>
   4813 #include <${cf_cv_have_utmp}.h>
   4814 int
   4815 main ()
   4816 {
   4817 struct $cf_cv_have_utmp x; int y = x.ut_syslen
   4818   ;
   4819   return 0;
   4820 }
   4821 _ACEOF
   4822 rm -f conftest.$ac_objext
   4823 if { (eval echo "$as_me:4823: \"$ac_compile\"") >&5
   4824   (eval $ac_compile) 2>&5
   4825   ac_status=$?
   4826   echo "$as_me:4826: \$? = $ac_status" >&5
   4827   (exit $ac_status); } &&
   4828          { ac_try='test -s conftest.$ac_objext'
   4829   { (eval echo "$as_me:4829: \"$ac_try\"") >&5
   4830   (eval $ac_try) 2>&5
   4831   ac_status=$?
   4832   echo "$as_me:4832: \$? = $ac_status" >&5
   4833   (exit $ac_status); }; }; then
   4834   cf_cv_have_utmp_ut_syslen=yes
   4835 else
   4836   echo "$as_me: failed program was:" >&5
   4837 cat conftest.$ac_ext >&5
   4838 cf_cv_have_utmp_ut_syslen=no
   4839 fi
   4840 rm -f conftest.$ac_objext conftest.$ac_ext
   4841 
   4842 fi
   4843 
   4844 echo "$as_me:4844: result: $cf_cv_have_utmp_ut_syslen" >&5
   4845 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
   4846 test $cf_cv_have_utmp_ut_syslen != no && cat >>confdefs.h <<\EOF
   4847 #define HAVE_UTMP_UT_SYSLEN 1
   4848 EOF
   4849 
   4850 fi
   4851 
   4852 if test $cf_cv_have_utmp != no ; then
   4853 echo "$as_me:4853: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
   4854 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
   4855 if test "${cf_cv_have_utmp_ut_name+set}" = set; then
   4856   echo $ECHO_N "(cached) $ECHO_C" >&6
   4857 else
   4858 
   4859 	cf_cv_have_utmp_ut_name=no
   4860 cf_utmp_includes="
   4861 #include <sys/types.h>
   4862 #include <${cf_cv_have_utmp}.h>
   4863 #define getutent getutxent
   4864 #ifdef USE_LASTLOG
   4865 #include <lastlog.h>		/* may conflict with utmpx.h on Linux */
   4866 #endif
   4867 "
   4868 for cf_header in ut_name ut_user ; do
   4869 	cat >conftest.$ac_ext <<_ACEOF
   4870 #line 4870 "configure"
   4871 #include "confdefs.h"
   4872 $cf_utmp_includes
   4873 int
   4874 main ()
   4875 {
   4876 struct $cf_cv_have_utmp x;
   4877 	 char *name = x.$cf_header;
   4878 
   4879   ;
   4880   return 0;
   4881 }
   4882 _ACEOF
   4883 rm -f conftest.$ac_objext
   4884 if { (eval echo "$as_me:4884: \"$ac_compile\"") >&5
   4885   (eval $ac_compile) 2>&5
   4886   ac_status=$?
   4887   echo "$as_me:4887: \$? = $ac_status" >&5
   4888   (exit $ac_status); } &&
   4889          { ac_try='test -s conftest.$ac_objext'
   4890   { (eval echo "$as_me:4890: \"$ac_try\"") >&5
   4891   (eval $ac_try) 2>&5
   4892   ac_status=$?
   4893   echo "$as_me:4893: \$? = $ac_status" >&5
   4894   (exit $ac_status); }; }; then
   4895   cf_cv_have_utmp_ut_name=$cf_header
   4896 	 break
   4897 else
   4898   echo "$as_me: failed program was:" >&5
   4899 cat conftest.$ac_ext >&5
   4900 fi
   4901 rm -f conftest.$ac_objext conftest.$ac_ext
   4902 done
   4903 
   4904 fi
   4905 echo "$as_me:4905: result: $cf_cv_have_utmp_ut_name" >&5
   4906 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
   4907 
   4908 case $cf_cv_have_utmp_ut_name in #(vi
   4909 no) #(vi
   4910 	{ { echo "$as_me:4910: error: Cannot find declaration for ut.ut_name" >&5
   4911 echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
   4912    { (exit 1); exit 1; }; }
   4913 	;;
   4914 ut_user)
   4915 	cat >>confdefs.h <<\EOF
   4916 #define ut_name ut_user
   4917 EOF
   4918 
   4919 	;;
   4920 esac
   4921 fi
   4922 
   4923 if test $cf_cv_have_utmp != no ; then
   4924 echo "$as_me:4924: checking for exit-status in $cf_cv_have_utmp" >&5
   4925 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
   4926 if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
   4927   echo $ECHO_N "(cached) $ECHO_C" >&6
   4928 else
   4929 
   4930 for cf_result in \
   4931 	ut_exit.__e_exit \
   4932 	ut_exit.e_exit \
   4933 	ut_exit.ut_e_exit \
   4934 	ut_exit.ut_exit
   4935 do
   4936 cat >conftest.$ac_ext <<_ACEOF
   4937 #line 4937 "configure"
   4938 #include "confdefs.h"
   4939 
   4940 #include <sys/types.h>
   4941 #include <${cf_cv_have_utmp}.h>
   4942 int
   4943 main ()
   4944 {
   4945 struct $cf_cv_have_utmp x; long y = x.$cf_result = 0
   4946   ;
   4947   return 0;
   4948 }
   4949 _ACEOF
   4950 rm -f conftest.$ac_objext
   4951 if { (eval echo "$as_me:4951: \"$ac_compile\"") >&5
   4952   (eval $ac_compile) 2>&5
   4953   ac_status=$?
   4954   echo "$as_me:4954: \$? = $ac_status" >&5
   4955   (exit $ac_status); } &&
   4956          { ac_try='test -s conftest.$ac_objext'
   4957   { (eval echo "$as_me:4957: \"$ac_try\"") >&5
   4958   (eval $ac_try) 2>&5
   4959   ac_status=$?
   4960   echo "$as_me:4960: \$? = $ac_status" >&5
   4961   (exit $ac_status); }; }; then
   4962   cf_cv_have_utmp_ut_xstatus=$cf_result
   4963 	 break
   4964 else
   4965   echo "$as_me: failed program was:" >&5
   4966 cat conftest.$ac_ext >&5
   4967 cf_cv_have_utmp_ut_xstatus=no
   4968 fi
   4969 rm -f conftest.$ac_objext conftest.$ac_ext
   4970 done
   4971 
   4972 fi
   4973 echo "$as_me:4973: result: $cf_cv_have_utmp_ut_xstatus" >&5
   4974 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
   4975 if test $cf_cv_have_utmp_ut_xstatus != no ; then
   4976 	cat >>confdefs.h <<\EOF
   4977 #define HAVE_UTMP_UT_XSTATUS 1
   4978 EOF
   4979 
   4980 	cat >>confdefs.h <<EOF
   4981 #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
   4982 EOF
   4983 
   4984 fi
   4985 fi
   4986 
   4987 if test $cf_cv_have_utmp != no ; then
   4988 echo "$as_me:4988: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
   4989 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6
   4990 if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
   4991   echo $ECHO_N "(cached) $ECHO_C" >&6
   4992 else
   4993 
   4994 	cat >conftest.$ac_ext <<_ACEOF
   4995 #line 4995 "configure"
   4996 #include "confdefs.h"
   4997 
   4998 #include <sys/types.h>
   4999 #include <${cf_cv_have_utmp}.h>
   5000 int
   5001 main ()
   5002 {
   5003 struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0
   5004   ;
   5005   return 0;
   5006 }
   5007 _ACEOF
   5008 rm -f conftest.$ac_objext
   5009 if { (eval echo "$as_me:5009: \"$ac_compile\"") >&5
   5010   (eval $ac_compile) 2>&5
   5011   ac_status=$?
   5012   echo "$as_me:5012: \$? = $ac_status" >&5
   5013   (exit $ac_status); } &&
   5014          { ac_try='test -s conftest.$ac_objext'
   5015   { (eval echo "$as_me:5015: \"$ac_try\"") >&5
   5016   (eval $ac_try) 2>&5
   5017   ac_status=$?
   5018   echo "$as_me:5018: \$? = $ac_status" >&5
   5019   (exit $ac_status); }; }; then
   5020   cf_cv_have_utmp_ut_xtime=yes
   5021 else
   5022   echo "$as_me: failed program was:" >&5
   5023 cat conftest.$ac_ext >&5
   5024 cat >conftest.$ac_ext <<_ACEOF
   5025 #line 5025 "configure"
   5026 #include "confdefs.h"
   5027 
   5028 #include <sys/types.h>
   5029 #include <${cf_cv_have_utmp}.h>
   5030 int
   5031 main ()
   5032 {
   5033 struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec
   5034   ;
   5035   return 0;
   5036 }
   5037 _ACEOF
   5038 rm -f conftest.$ac_objext
   5039 if { (eval echo "$as_me:5039: \"$ac_compile\"") >&5
   5040   (eval $ac_compile) 2>&5
   5041   ac_status=$?
   5042   echo "$as_me:5042: \$? = $ac_status" >&5
   5043   (exit $ac_status); } &&
   5044          { ac_try='test -s conftest.$ac_objext'
   5045   { (eval echo "$as_me:5045: \"$ac_try\"") >&5
   5046   (eval $ac_try) 2>&5
   5047   ac_status=$?
   5048   echo "$as_me:5048: \$? = $ac_status" >&5
   5049   (exit $ac_status); }; }; then
   5050   cf_cv_have_utmp_ut_xtime=define
   5051 else
   5052   echo "$as_me: failed program was:" >&5
   5053 cat conftest.$ac_ext >&5
   5054 cf_cv_have_utmp_ut_xtime=no
   5055 fi
   5056 rm -f conftest.$ac_objext conftest.$ac_ext
   5057 
   5058 fi
   5059 rm -f conftest.$ac_objext conftest.$ac_ext
   5060 
   5061 fi
   5062 echo "$as_me:5062: result: $cf_cv_have_utmp_ut_xtime" >&5
   5063 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
   5064 if test $cf_cv_have_utmp_ut_xtime != no ; then
   5065 	cat >>confdefs.h <<\EOF
   5066 #define HAVE_UTMP_UT_XTIME 1
   5067 EOF
   5068 
   5069 	if test $cf_cv_have_utmp_ut_xtime = define ; then
   5070 		cat >>confdefs.h <<\EOF
   5071 #define ut_xtime ut_tv.tv_sec
   5072 EOF
   5073 
   5074 	fi
   5075 fi
   5076 fi
   5077 
   5078 if test $cf_cv_have_utmp != no ; then
   5079 echo "$as_me:5079: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
   5080 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
   5081 if test "${cf_cv_have_utmp_ut_session+set}" = set; then
   5082   echo $ECHO_N "(cached) $ECHO_C" >&6
   5083 else
   5084 
   5085 	cat >conftest.$ac_ext <<_ACEOF
   5086 #line 5086 "configure"
   5087 #include "confdefs.h"
   5088 
   5089 #include <sys/types.h>
   5090 #include <${cf_cv_have_utmp}.h>
   5091 int
   5092 main ()
   5093 {
   5094 struct $cf_cv_have_utmp x; long y = x.ut_session
   5095   ;
   5096   return 0;
   5097 }
   5098 _ACEOF
   5099 rm -f conftest.$ac_objext
   5100 if { (eval echo "$as_me:5100: \"$ac_compile\"") >&5
   5101   (eval $ac_compile) 2>&5
   5102   ac_status=$?
   5103   echo "$as_me:5103: \$? = $ac_status" >&5
   5104   (exit $ac_status); } &&
   5105          { ac_try='test -s conftest.$ac_objext'
   5106   { (eval echo "$as_me:5106: \"$ac_try\"") >&5
   5107   (eval $ac_try) 2>&5
   5108   ac_status=$?
   5109   echo "$as_me:5109: \$? = $ac_status" >&5
   5110   (exit $ac_status); }; }; then
   5111   cf_cv_have_utmp_ut_session=yes
   5112 else
   5113   echo "$as_me: failed program was:" >&5
   5114 cat conftest.$ac_ext >&5
   5115 cf_cv_have_utmp_ut_session=no
   5116 fi
   5117 rm -f conftest.$ac_objext conftest.$ac_ext
   5118 
   5119 fi
   5120 echo "$as_me:5120: result: $cf_cv_have_utmp_ut_session" >&5
   5121 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
   5122 if test $cf_cv_have_utmp_ut_session != no ; then
   5123 	cat >>confdefs.h <<\EOF
   5124 #define HAVE_UTMP_UT_SESSION 1
   5125 EOF
   5126 
   5127 fi
   5128 fi
   5129 
   5130 echo "$as_me:5130: checking if $cf_cv_have_utmp is SYSV flavor" >&5
   5131 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
   5132 if test "${cf_cv_sysv_utmp+set}" = set; then
   5133   echo $ECHO_N "(cached) $ECHO_C" >&6
   5134 else
   5135 
   5136 test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
   5137 cat >conftest.$ac_ext <<_ACEOF
   5138 #line 5138 "configure"
   5139 #include "confdefs.h"
   5140 
   5141 #include <sys/types.h>
   5142 #include <${cf_cv_have_utmp}.h>
   5143 int
   5144 main ()
   5145 {
   5146 
   5147 struct $cf_cv_have_utmp x;
   5148 	set${cf_prefix}ent ();
   5149 	get${cf_prefix}id(&x);
   5150 	put${cf_prefix}line(&x);
   5151 	end${cf_prefix}ent();
   5152   ;
   5153   return 0;
   5154 }
   5155 _ACEOF
   5156 rm -f conftest.$ac_objext conftest$ac_exeext
   5157 if { (eval echo "$as_me:5157: \"$ac_link\"") >&5
   5158   (eval $ac_link) 2>&5
   5159   ac_status=$?
   5160   echo "$as_me:5160: \$? = $ac_status" >&5
   5161   (exit $ac_status); } &&
   5162          { ac_try='test -s conftest$ac_exeext'
   5163   { (eval echo "$as_me:5163: \"$ac_try\"") >&5
   5164   (eval $ac_try) 2>&5
   5165   ac_status=$?
   5166   echo "$as_me:5166: \$? = $ac_status" >&5
   5167   (exit $ac_status); }; }; then
   5168   cf_cv_sysv_utmp=yes
   5169 else
   5170   echo "$as_me: failed program was:" >&5
   5171 cat conftest.$ac_ext >&5
   5172 cf_cv_sysv_utmp=no
   5173 fi
   5174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5175 
   5176 fi
   5177 echo "$as_me:5177: result: $cf_cv_sysv_utmp" >&5
   5178 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
   5179 test $cf_cv_sysv_utmp = yes && cat >>confdefs.h <<\EOF
   5180 #define USE_SYSV_UTMP 1
   5181 EOF
   5182 
   5183 fi
   5184 
   5185 for ac_header in lastlog.h
   5186 do
   5187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5188 echo "$as_me:5188: checking for $ac_header" >&5
   5189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5191   echo $ECHO_N "(cached) $ECHO_C" >&6
   5192 else
   5193   cat >conftest.$ac_ext <<_ACEOF
   5194 #line 5194 "configure"
   5195 #include "confdefs.h"
   5196 #include <$ac_header>
   5197 _ACEOF
   5198 if { (eval echo "$as_me:5198: \"$ac_cpp conftest.$ac_ext\"") >&5
   5199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5200   ac_status=$?
   5201   egrep -v '^ *\+' conftest.er1 >conftest.err
   5202   rm -f conftest.er1
   5203   cat conftest.err >&5
   5204   echo "$as_me:5204: \$? = $ac_status" >&5
   5205   (exit $ac_status); } >/dev/null; then
   5206   if test -s conftest.err; then
   5207     ac_cpp_err=$ac_c_preproc_warn_flag
   5208   else
   5209     ac_cpp_err=
   5210   fi
   5211 else
   5212   ac_cpp_err=yes
   5213 fi
   5214 if test -z "$ac_cpp_err"; then
   5215   eval "$as_ac_Header=yes"
   5216 else
   5217   echo "$as_me: failed program was:" >&5
   5218   cat conftest.$ac_ext >&5
   5219   eval "$as_ac_Header=no"
   5220 fi
   5221 rm -f conftest.err conftest.$ac_ext
   5222 fi
   5223 echo "$as_me:5223: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5226   cat >>confdefs.h <<EOF
   5227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5228 EOF
   5229 
   5230 fi
   5231 done
   5232 
   5233 echo "$as_me:5233: checking for struct lastlog" >&5
   5234 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
   5235 if test "${cf_cv_struct_lastlog+set}" = set; then
   5236   echo $ECHO_N "(cached) $ECHO_C" >&6
   5237 else
   5238 
   5239 if test "$cross_compiling" = yes; then
   5240 
   5241 cf_cv_struct_lastlog=unknown
   5242 else
   5243   cat >conftest.$ac_ext <<_ACEOF
   5244 #line 5244 "configure"
   5245 #include "confdefs.h"
   5246 
   5247 #include <sys/types.h>
   5248 #include <time.h>
   5249 #include <lastlog.h>
   5250 
   5251 int main()
   5252 {
   5253 	struct lastlog data;
   5254 	return (sizeof(data.ll_time) != sizeof(time_t));
   5255 }
   5256 _ACEOF
   5257 rm -f conftest$ac_exeext
   5258 if { (eval echo "$as_me:5258: \"$ac_link\"") >&5
   5259   (eval $ac_link) 2>&5
   5260   ac_status=$?
   5261   echo "$as_me:5261: \$? = $ac_status" >&5
   5262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5263   { (eval echo "$as_me:5263: \"$ac_try\"") >&5
   5264   (eval $ac_try) 2>&5
   5265   ac_status=$?
   5266   echo "$as_me:5266: \$? = $ac_status" >&5
   5267   (exit $ac_status); }; }; then
   5268 
   5269 cf_cv_struct_lastlog=yes
   5270 else
   5271   echo "$as_me: program exited with status $ac_status" >&5
   5272 echo "$as_me: failed program was:" >&5
   5273 cat conftest.$ac_ext >&5
   5274 
   5275 cf_cv_struct_lastlog=no
   5276 fi
   5277 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5278 fi
   5279 fi
   5280 echo "$as_me:5280: result: $cf_cv_struct_lastlog" >&5
   5281 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
   5282 
   5283 test $cf_cv_struct_lastlog != no && cat >>confdefs.h <<\EOF
   5284 #define USE_STRUCT_LASTLOG 1
   5285 EOF
   5286 
   5287 for ac_header in \
   5288 sys/param.h \
   5289 
   5290 do
   5291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5292 echo "$as_me:5292: checking for $ac_header" >&5
   5293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5295   echo $ECHO_N "(cached) $ECHO_C" >&6
   5296 else
   5297   cat >conftest.$ac_ext <<_ACEOF
   5298 #line 5298 "configure"
   5299 #include "confdefs.h"
   5300 #include <$ac_header>
   5301 _ACEOF
   5302 if { (eval echo "$as_me:5302: \"$ac_cpp conftest.$ac_ext\"") >&5
   5303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5304   ac_status=$?
   5305   egrep -v '^ *\+' conftest.er1 >conftest.err
   5306   rm -f conftest.er1
   5307   cat conftest.err >&5
   5308   echo "$as_me:5308: \$? = $ac_status" >&5
   5309   (exit $ac_status); } >/dev/null; then
   5310   if test -s conftest.err; then
   5311     ac_cpp_err=$ac_c_preproc_warn_flag
   5312   else
   5313     ac_cpp_err=
   5314   fi
   5315 else
   5316   ac_cpp_err=yes
   5317 fi
   5318 if test -z "$ac_cpp_err"; then
   5319   eval "$as_ac_Header=yes"
   5320 else
   5321   echo "$as_me: failed program was:" >&5
   5322   cat conftest.$ac_ext >&5
   5323   eval "$as_ac_Header=no"
   5324 fi
   5325 rm -f conftest.err conftest.$ac_ext
   5326 fi
   5327 echo "$as_me:5327: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5330   cat >>confdefs.h <<EOF
   5331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5332 EOF
   5333 
   5334 fi
   5335 done
   5336 
   5337 echo "$as_me:5337: checking if POSIX saved-ids are supported" >&5
   5338 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
   5339 if test "${cf_cv_posix_saved_ids+set}" = set; then
   5340   echo $ECHO_N "(cached) $ECHO_C" >&6
   5341 else
   5342 
   5343 cat >conftest.$ac_ext <<_ACEOF
   5344 #line 5344 "configure"
   5345 #include "confdefs.h"
   5346 
   5347 #include <unistd.h>
   5348 #ifdef HAVE_SYS_PARAM_H
   5349 #include <sys/param.h>		/* this may define "BSD" */
   5350 #endif
   5351 
   5352 int
   5353 main ()
   5354 {
   5355 
   5356 #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0)
   5357 	void *p = (void *) seteuid;
   5358 	int x = seteuid(geteuid());
   5359 #elif defined(BSD) && (BSD >= 199103)
   5360 /* The BSD's may implement the runtime check - and it fails.
   5361  * However, saved-ids work almost like POSIX (close enough for most uses).
   5362  */
   5363 #else
   5364 make an error
   5365 #endif
   5366 
   5367   ;
   5368   return 0;
   5369 }
   5370 _ACEOF
   5371 rm -f conftest.$ac_objext conftest$ac_exeext
   5372 if { (eval echo "$as_me:5372: \"$ac_link\"") >&5
   5373   (eval $ac_link) 2>&5
   5374   ac_status=$?
   5375   echo "$as_me:5375: \$? = $ac_status" >&5
   5376   (exit $ac_status); } &&
   5377          { ac_try='test -s conftest$ac_exeext'
   5378   { (eval echo "$as_me:5378: \"$ac_try\"") >&5
   5379   (eval $ac_try) 2>&5
   5380   ac_status=$?
   5381   echo "$as_me:5381: \$? = $ac_status" >&5
   5382   (exit $ac_status); }; }; then
   5383   cf_cv_posix_saved_ids=yes
   5384 
   5385 else
   5386   echo "$as_me: failed program was:" >&5
   5387 cat conftest.$ac_ext >&5
   5388 
   5389 if test "$cross_compiling" = yes; then
   5390   cf_cv_posix_saved_ids=unknown
   5391 else
   5392   cat >conftest.$ac_ext <<_ACEOF
   5393 #line 5393 "configure"
   5394 #include "confdefs.h"
   5395 
   5396 #ifdef HAVE_STDLIB_H
   5397 #include <stdlib.h>
   5398 #endif
   5399 #include <unistd.h>
   5400 int main()
   5401 {
   5402 	void *p = (void *) seteuid;
   5403 	long code = sysconf(_SC_SAVED_IDS);
   5404 	${cf_cv_main_return:-return}  ((code > 0) ? 0 : 1);
   5405 }
   5406 _ACEOF
   5407 rm -f conftest$ac_exeext
   5408 if { (eval echo "$as_me:5408: \"$ac_link\"") >&5
   5409   (eval $ac_link) 2>&5
   5410   ac_status=$?
   5411   echo "$as_me:5411: \$? = $ac_status" >&5
   5412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5413   { (eval echo "$as_me:5413: \"$ac_try\"") >&5
   5414   (eval $ac_try) 2>&5
   5415   ac_status=$?
   5416   echo "$as_me:5416: \$? = $ac_status" >&5
   5417   (exit $ac_status); }; }; then
   5418   cf_cv_posix_saved_ids=yes
   5419 else
   5420   echo "$as_me: program exited with status $ac_status" >&5
   5421 echo "$as_me: failed program was:" >&5
   5422 cat conftest.$ac_ext >&5
   5423 cf_cv_posix_saved_ids=no
   5424 fi
   5425 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5426 fi
   5427 
   5428 fi
   5429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5430 
   5431 fi
   5432 echo "$as_me:5432: result: $cf_cv_posix_saved_ids" >&5
   5433 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
   5434 
   5435 test "$cf_cv_posix_saved_ids" = yes && cat >>confdefs.h <<\EOF
   5436 #define HAVE_POSIX_SAVED_IDS 1
   5437 EOF
   5438 
   5439 # compute a reasonable value for $TERM to give tgetent(), since we may be
   5440 # running in 'screen', which sets $TERMCAP to a specific entry that is not
   5441 # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
   5442 # discard $TERMCAP.
   5443 cf_TERMVAR=vt100
   5444 test -n "$TERMCAP" && cf_TERMVAR="$TERM"
   5445 test -z "$cf_TERMVAR" && cf_TERMVAR=vt100
   5446 
   5447 echo "$as_me:5447: checking if we want full tgetent function" >&5
   5448 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
   5449 
   5450 # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
   5451 if test "${enable_full_tgetent+set}" = set; then
   5452   enableval="$enable_full_tgetent"
   5453   test "$enableval" != no && enableval=yes
   5454   if test "$enableval" != "yes" ; then
   5455     cf_full_tgetent=no
   5456   else
   5457     cf_full_tgetent=yes
   5458   fi
   5459 else
   5460   enableval=yes
   5461   cf_full_tgetent=yes
   5462 
   5463 fi;
   5464 echo "$as_me:5464: result: $cf_full_tgetent" >&5
   5465 echo "${ECHO_T}$cf_full_tgetent" >&6
   5466 
   5467 if test "$cf_full_tgetent" = yes ; then
   5468 	cf_test_message="full tgetent"
   5469 else
   5470 	cf_test_message="tgetent"
   5471 fi
   5472 
   5473 echo "$as_me:5473: checking for $cf_test_message function" >&5
   5474 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
   5475 if test "${cf_cv_lib_tgetent+set}" = set; then
   5476   echo $ECHO_N "(cached) $ECHO_C" >&6
   5477 else
   5478 
   5479 cf_save_LIBS="$LIBS"
   5480 cf_cv_lib_tgetent=no
   5481 if test "$cf_full_tgetent" = yes ; then
   5482 	cf_TERMLIB="termcap termlib ncurses curses"
   5483 	cf_TERMTST="buffer[0] == 0"
   5484 else
   5485 	cf_TERMLIB="termlib ncurses curses"
   5486 	cf_TERMTST="0"
   5487 fi
   5488 for cf_termlib in '' $cf_TERMLIB ; do
   5489 	LIBS="$cf_save_LIBS"
   5490 	test -n "$cf_termlib" && LIBS="-l$cf_termlib $LIBS"
   5491 	if test "$cross_compiling" = yes; then
   5492   echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5
   5493 else
   5494   cat >conftest.$ac_ext <<_ACEOF
   5495 #line 5495 "configure"
   5496 #include "confdefs.h"
   5497 
   5498 /* terminfo implementations ignore the buffer argument, making it useless for
   5499  * the xterm application, which uses this information to make a new TERMCAP
   5500  * environment variable.
   5501  */
   5502 int main()
   5503 {
   5504 	char buffer[1024];
   5505 	buffer[0] = 0;
   5506 	tgetent(buffer, "$cf_TERMVAR");
   5507 	${cf_cv_main_return:-return} ($cf_TERMTST); }
   5508 _ACEOF
   5509 rm -f conftest$ac_exeext
   5510 if { (eval echo "$as_me:5510: \"$ac_link\"") >&5
   5511   (eval $ac_link) 2>&5
   5512   ac_status=$?
   5513   echo "$as_me:5513: \$? = $ac_status" >&5
   5514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   5515   { (eval echo "$as_me:5515: \"$ac_try\"") >&5
   5516   (eval $ac_try) 2>&5
   5517   ac_status=$?
   5518   echo "$as_me:5518: \$? = $ac_status" >&5
   5519   (exit $ac_status); }; }; then
   5520   echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
   5521 	 if test -n "$cf_termlib" ; then
   5522 	 	cf_cv_lib_tgetent="-l$cf_termlib"
   5523 	 else
   5524 	 	cf_cv_lib_tgetent=yes
   5525 	 fi
   5526 	 break
   5527 else
   5528   echo "$as_me: program exited with status $ac_status" >&5
   5529 echo "$as_me: failed program was:" >&5
   5530 cat conftest.$ac_ext >&5
   5531 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
   5532 fi
   5533 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   5534 fi
   5535 done
   5536 LIBS="$cf_save_LIBS"
   5537 
   5538 fi
   5539 echo "$as_me:5539: result: $cf_cv_lib_tgetent" >&5
   5540 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
   5541 
   5542 # If we found a working tgetent(), set LIBS and check for termcap.h.
   5543 # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
   5544 # not have side effects other than setting the cache variable, because
   5545 # they are not executed when a cached value exists.)
   5546 if test "$cf_cv_lib_tgetent" != no ; then
   5547 	test "$cf_cv_lib_tgetent" != yes && LIBS="$cf_cv_lib_tgetent $LIBS"
   5548 	cat >>confdefs.h <<\EOF
   5549 #define USE_TERMCAP 1
   5550 EOF
   5551 
   5552 	if test "$cf_full_tgetent" = no ; then
   5553 		cat >conftest.$ac_ext <<_ACEOF
   5554 #line 5554 "configure"
   5555 #include "confdefs.h"
   5556 
   5557 #include <termcap.h>
   5558 int
   5559 main ()
   5560 {
   5561 
   5562 #ifdef NCURSES_VERSION
   5563 make an error
   5564 #endif
   5565   ;
   5566   return 0;
   5567 }
   5568 _ACEOF
   5569 rm -f conftest.$ac_objext
   5570 if { (eval echo "$as_me:5570: \"$ac_compile\"") >&5
   5571   (eval $ac_compile) 2>&5
   5572   ac_status=$?
   5573   echo "$as_me:5573: \$? = $ac_status" >&5
   5574   (exit $ac_status); } &&
   5575          { ac_try='test -s conftest.$ac_objext'
   5576   { (eval echo "$as_me:5576: \"$ac_try\"") >&5
   5577   (eval $ac_try) 2>&5
   5578   ac_status=$?
   5579   echo "$as_me:5579: \$? = $ac_status" >&5
   5580   (exit $ac_status); }; }; then
   5581   cat >>confdefs.h <<\EOF
   5582 #define HAVE_TERMCAP_H 1
   5583 EOF
   5584 
   5585 else
   5586   echo "$as_me: failed program was:" >&5
   5587 cat conftest.$ac_ext >&5
   5588 fi
   5589 rm -f conftest.$ac_objext conftest.$ac_ext
   5590 	else
   5591 
   5592 for ac_header in termcap.h
   5593 do
   5594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5595 echo "$as_me:5595: checking for $ac_header" >&5
   5596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5598   echo $ECHO_N "(cached) $ECHO_C" >&6
   5599 else
   5600   cat >conftest.$ac_ext <<_ACEOF
   5601 #line 5601 "configure"
   5602 #include "confdefs.h"
   5603 #include <$ac_header>
   5604 _ACEOF
   5605 if { (eval echo "$as_me:5605: \"$ac_cpp conftest.$ac_ext\"") >&5
   5606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5607   ac_status=$?
   5608   egrep -v '^ *\+' conftest.er1 >conftest.err
   5609   rm -f conftest.er1
   5610   cat conftest.err >&5
   5611   echo "$as_me:5611: \$? = $ac_status" >&5
   5612   (exit $ac_status); } >/dev/null; then
   5613   if test -s conftest.err; then
   5614     ac_cpp_err=$ac_c_preproc_warn_flag
   5615   else
   5616     ac_cpp_err=
   5617   fi
   5618 else
   5619   ac_cpp_err=yes
   5620 fi
   5621 if test -z "$ac_cpp_err"; then
   5622   eval "$as_ac_Header=yes"
   5623 else
   5624   echo "$as_me: failed program was:" >&5
   5625   cat conftest.$ac_ext >&5
   5626   eval "$as_ac_Header=no"
   5627 fi
   5628 rm -f conftest.err conftest.$ac_ext
   5629 fi
   5630 echo "$as_me:5630: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5633   cat >>confdefs.h <<EOF
   5634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5635 EOF
   5636 
   5637 fi
   5638 done
   5639 
   5640 	fi
   5641 else
   5642         # If we didn't find a tgetent() that supports the buffer
   5643         # argument, look again to see whether we can find even
   5644         # a crippled one.  A crippled tgetent() is still useful to
   5645         # validate values for the TERM environment variable given to
   5646         # child processes.
   5647 	echo "$as_me:5647: checking for partial tgetent function" >&5
   5648 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
   5649 if test "${cf_cv_lib_part_tgetent+set}" = set; then
   5650   echo $ECHO_N "(cached) $ECHO_C" >&6
   5651 else
   5652 
   5653 	cf_cv_lib_part_tgetent=no
   5654 	for cf_termlib in $cf_TERMLIB ; do
   5655 		LIBS="$cf_save_LIBS -l$cf_termlib"
   5656 		cat >conftest.$ac_ext <<_ACEOF
   5657 #line 5657 "configure"
   5658 #include "confdefs.h"
   5659 
   5660 int
   5661 main ()
   5662 {
   5663 tgetent(0, "$cf_TERMVAR")
   5664   ;
   5665   return 0;
   5666 }
   5667 _ACEOF
   5668 rm -f conftest.$ac_objext conftest$ac_exeext
   5669 if { (eval echo "$as_me:5669: \"$ac_link\"") >&5
   5670   (eval $ac_link) 2>&5
   5671   ac_status=$?
   5672   echo "$as_me:5672: \$? = $ac_status" >&5
   5673   (exit $ac_status); } &&
   5674          { ac_try='test -s conftest$ac_exeext'
   5675   { (eval echo "$as_me:5675: \"$ac_try\"") >&5
   5676   (eval $ac_try) 2>&5
   5677   ac_status=$?
   5678   echo "$as_me:5678: \$? = $ac_status" >&5
   5679   (exit $ac_status); }; }; then
   5680   echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
   5681 			 cf_cv_lib_part_tgetent="-l$cf_termlib"
   5682 			 break
   5683 else
   5684   echo "$as_me: failed program was:" >&5
   5685 cat conftest.$ac_ext >&5
   5686 fi
   5687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   5688 	done
   5689 	LIBS="$cf_save_LIBS"
   5690 
   5691 fi
   5692 echo "$as_me:5692: result: $cf_cv_lib_part_tgetent" >&5
   5693 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
   5694 
   5695 	if test "$cf_cv_lib_part_tgetent" != no ; then
   5696 		LIBS="$cf_cv_lib_part_tgetent $LIBS"
   5697 
   5698 for ac_header in termcap.h
   5699 do
   5700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5701 echo "$as_me:5701: checking for $ac_header" >&5
   5702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   5703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   5704   echo $ECHO_N "(cached) $ECHO_C" >&6
   5705 else
   5706   cat >conftest.$ac_ext <<_ACEOF
   5707 #line 5707 "configure"
   5708 #include "confdefs.h"
   5709 #include <$ac_header>
   5710 _ACEOF
   5711 if { (eval echo "$as_me:5711: \"$ac_cpp conftest.$ac_ext\"") >&5
   5712   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   5713   ac_status=$?
   5714   egrep -v '^ *\+' conftest.er1 >conftest.err
   5715   rm -f conftest.er1
   5716   cat conftest.err >&5
   5717   echo "$as_me:5717: \$? = $ac_status" >&5
   5718   (exit $ac_status); } >/dev/null; then
   5719   if test -s conftest.err; then
   5720     ac_cpp_err=$ac_c_preproc_warn_flag
   5721   else
   5722     ac_cpp_err=
   5723   fi
   5724 else
   5725   ac_cpp_err=yes
   5726 fi
   5727 if test -z "$ac_cpp_err"; then
   5728   eval "$as_ac_Header=yes"
   5729 else
   5730   echo "$as_me: failed program was:" >&5
   5731   cat conftest.$ac_ext >&5
   5732   eval "$as_ac_Header=no"
   5733 fi
   5734 rm -f conftest.err conftest.$ac_ext
   5735 fi
   5736 echo "$as_me:5736: result: `eval echo '${'$as_ac_Header'}'`" >&5
   5737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   5738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5739   cat >>confdefs.h <<EOF
   5740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5741 EOF
   5742 
   5743 fi
   5744 done
   5745 
   5746                 # If this is linking against ncurses, we'll trigger the
   5747                 # ifdef in resize.c that turns the termcap stuff back off.
   5748 		cat >>confdefs.h <<\EOF
   5749 #define USE_TERMINFO 1
   5750 EOF
   5751 
   5752 	fi
   5753 fi
   5754 
   5755 echo "$as_me:5755: checking for directory to install resource files" >&5
   5756 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
   5757 
   5758 # Check whether --with-app-defaults or --without-app-defaults was given.
   5759 if test "${with_app_defaults+set}" = set; then
   5760   withval="$with_app_defaults"
   5761 
   5762 else
   5763   withval="${appsdir:-'\$(exec_prefix)/lib/X11/app-defaults'}"
   5764 fi; if test -n "'\$(exec_prefix)/lib/X11/app-defaults'" ; then
   5765 
   5766 if test "x$prefix" != xNONE; then
   5767   cf_path_syntax="$prefix"
   5768 else
   5769   cf_path_syntax="$ac_default_prefix"
   5770 fi
   5771 
   5772 case ".$withval" in #(vi
   5773 .\$\(*\)*|.\'*\'*) #(vi
   5774   ;;
   5775 ..|./*|.\\*) #(vi
   5776   ;;
   5777 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
   5778   ;;
   5779 .\${*prefix}*) #(vi
   5780   eval withval="$withval"
   5781   case ".$withval" in #(vi
   5782   .NONE/*)
   5783     withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
   5784     ;;
   5785   esac
   5786   ;; #(vi
   5787 .no|.NONE/*)
   5788   withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
   5789   ;;
   5790 *)
   5791   { { echo "$as_me:5791: error: expected a pathname, not \"$withval\"" >&5
   5792 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   5793    { (exit 1); exit 1; }; }
   5794   ;;
   5795 esac
   5796 
   5797 fi
   5798 appsdir="$withval"
   5799 
   5800 echo "$as_me:5800: result: $appsdir" >&5
   5801 echo "${ECHO_T}$appsdir" >&6
   5802 
   5803 no_appsdir=
   5804 test "$appsdir" = no && no_appsdir="#"
   5805 
   5806 echo "$as_me:5806: checking for directory to install icons" >&5
   5807 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
   5808 
   5809 # Check whether --with-icondir or --without-icondir was given.
   5810 if test "${with_icondir+set}" = set; then
   5811   withval="$with_icondir"
   5812 
   5813 else
   5814   withval="${icondir:-'\$(exec_prefix)/share/pixmaps'}"
   5815 fi; if test -n "'\$(exec_prefix)/share/pixmaps'" ; then
   5816 
   5817 if test "x$prefix" != xNONE; then
   5818   cf_path_syntax="$prefix"
   5819 else
   5820   cf_path_syntax="$ac_default_prefix"
   5821 fi
   5822 
   5823 case ".$withval" in #(vi
   5824 .\$\(*\)*|.\'*\'*) #(vi
   5825   ;;
   5826 ..|./*|.\\*) #(vi
   5827   ;;
   5828 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
   5829   ;;
   5830 .\${*prefix}*) #(vi
   5831   eval withval="$withval"
   5832   case ".$withval" in #(vi
   5833   .NONE/*)
   5834     withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
   5835     ;;
   5836   esac
   5837   ;; #(vi
   5838 .no|.NONE/*)
   5839   withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
   5840   ;;
   5841 *)
   5842   { { echo "$as_me:5842: error: expected a pathname, not \"$withval\"" >&5
   5843 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
   5844    { (exit 1); exit 1; }; }
   5845   ;;
   5846 esac
   5847 
   5848 fi
   5849 icondir="$withval"
   5850 
   5851 echo "$as_me:5851: result: $icondir" >&5
   5852 echo "${ECHO_T}$icondir" >&6
   5853 
   5854 no_icondir=
   5855 test "$icondir" = no && no_icondir="#"
   5856 
   5857 # Comment-out the install-desktop rule if the desktop-utils are not found.
   5858 echo "$as_me:5858: checking if you want to install desktop files" >&5
   5859 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
   5860 
   5861 # Check whether --enable-desktop or --disable-desktop was given.
   5862 if test "${enable_desktop+set}" = set; then
   5863   enableval="$enable_desktop"
   5864   test "$enableval" != no && enableval=yes
   5865   if test "$enableval" != "yes" ; then
   5866     enable_desktop=$enableval
   5867   else
   5868     enable_desktop=$enableval
   5869   fi
   5870 else
   5871   enableval=yes
   5872   enable_desktop=$enableval
   5873 
   5874 fi;
   5875 echo "$as_me:5875: result: $enable_desktop" >&5
   5876 echo "${ECHO_T}$enable_desktop" >&6
   5877 
   5878 desktop_utils=
   5879 if test "$enable_desktop" = yes ; then
   5880 # Extract the first word of "desktop-file-install", so it can be a program name with args.
   5881 set dummy desktop-file-install; ac_word=$2
   5882 echo "$as_me:5882: checking for $ac_word" >&5
   5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5884 if test "${ac_cv_prog_desktop_utils+set}" = set; then
   5885   echo $ECHO_N "(cached) $ECHO_C" >&6
   5886 else
   5887   if test -n "$desktop_utils"; then
   5888   ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
   5889 else
   5890   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5891 ac_dummy="$PATH"
   5892 for ac_dir in $ac_dummy; do
   5893   IFS=$ac_save_IFS
   5894   test -z "$ac_dir" && ac_dir=.
   5895   $as_executable_p "$ac_dir/$ac_word" || continue
   5896 ac_cv_prog_desktop_utils="yes"
   5897 echo "$as_me:5897: found $ac_dir/$ac_word" >&5
   5898 break
   5899 done
   5900 
   5901   test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
   5902 fi
   5903 fi
   5904 desktop_utils=$ac_cv_prog_desktop_utils
   5905 if test -n "$desktop_utils"; then
   5906   echo "$as_me:5906: result: $desktop_utils" >&5
   5907 echo "${ECHO_T}$desktop_utils" >&6
   5908 else
   5909   echo "$as_me:5909: result: no" >&5
   5910 echo "${ECHO_T}no" >&6
   5911 fi
   5912 
   5913 fi
   5914 
   5915 test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
   5916 
   5917 # inherit SINSTALL_OPTS from environment to allow packager to customize it.
   5918 
   5919 echo "$as_me:5919: checking for install-permissions reference" >&5
   5920 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
   5921 
   5922 # Check whether --with-reference or --without-reference was given.
   5923 if test "${with_reference+set}" = set; then
   5924   withval="$with_reference"
   5925   with_reference=$withval
   5926 else
   5927   with_reference=xterm
   5928 fi;
   5929 echo "$as_me:5929: result: $with_reference" >&5
   5930 echo "${ECHO_T}$with_reference" >&6
   5931 
   5932 with_full_paths=yes
   5933 
   5934 	case $cf_cv_system_name in
   5935 	os2*)	PATH_SEPARATOR=';'  ;;
   5936 	*)	PATH_SEPARATOR=':'  ;;
   5937 	esac
   5938 
   5939 test -z "$XTERM_PATH" && XTERM_PATH=$with_reference
   5940 for ac_prog in $XTERM_PATH $with_reference
   5941 do
   5942   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5943 set dummy $ac_prog; ac_word=$2
   5944 echo "$as_me:5944: checking for $ac_word" >&5
   5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5946 if test "${ac_cv_path_XTERM_PATH+set}" = set; then
   5947   echo $ECHO_N "(cached) $ECHO_C" >&6
   5948 else
   5949   case $XTERM_PATH in
   5950   [\\/]* | ?:[\\/]*)
   5951   ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path.
   5952   ;;
   5953   *)
   5954   ac_save_IFS=$IFS; IFS=$ac_path_separator
   5955 ac_dummy="$PATH"
   5956 for ac_dir in $ac_dummy; do
   5957   IFS=$ac_save_IFS
   5958   test -z "$ac_dir" && ac_dir=.
   5959   if $as_executable_p "$ac_dir/$ac_word"; then
   5960    ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
   5961    echo "$as_me:5961: found $ac_dir/$ac_word" >&5
   5962    break
   5963 fi
   5964 done
   5965 
   5966   ;;
   5967 esac
   5968 fi
   5969 XTERM_PATH=$ac_cv_path_XTERM_PATH
   5970 
   5971 if test -n "$XTERM_PATH"; then
   5972   echo "$as_me:5972: result: $XTERM_PATH" >&5
   5973 echo "${ECHO_T}$XTERM_PATH" >&6
   5974 else
   5975   echo "$as_me:5975: result: no" >&5
   5976 echo "${ECHO_T}no" >&6
   5977 fi
   5978 
   5979   test -n "$XTERM_PATH" && break
   5980 done
   5981 test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
   5982 
   5983 cf_path_prog=""
   5984 cf_path_args=""
   5985 IFS="${IFS:- 	}"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
   5986 for cf_temp in $ac_cv_path_XTERM_PATH
   5987 do
   5988 	if test -z "$cf_path_prog" ; then
   5989 		if test "$with_full_paths" = yes ; then
   5990 
   5991 if test "x$prefix" != xNONE; then
   5992   cf_path_syntax="$prefix"
   5993 else
   5994   cf_path_syntax="$ac_default_prefix"
   5995 fi
   5996 
   5997 case ".$cf_temp" in #(vi
   5998 .\$\(*\)*|.\'*\'*) #(vi
   5999   ;;
   6000 ..|./*|.\\*) #(vi
   6001   ;;
   6002 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
   6003   ;;
   6004 .\${*prefix}*) #(vi
   6005   eval cf_temp="$cf_temp"
   6006   case ".$cf_temp" in #(vi
   6007   .NONE/*)
   6008     cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   6009     ;;
   6010   esac
   6011   ;; #(vi
   6012 .no|.NONE/*)
   6013   cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   6014   ;;
   6015 *)
   6016   break
   6017   ;;
   6018 esac
   6019 
   6020 			cf_path_prog="$cf_temp"
   6021 		else
   6022 			cf_path_prog="`basename $cf_temp`"
   6023 		fi
   6024 	elif test -z "$cf_path_args" ; then
   6025 		cf_path_args="$cf_temp"
   6026 	else
   6027 		cf_path_args="$cf_path_args $cf_temp"
   6028 	fi
   6029 done
   6030 IFS="$cf_save_ifs"
   6031 
   6032 if test -n "$cf_path_prog" ; then
   6033 
   6034 echo "${as_me:-configure}:6034: testing defining path for ${cf_path_prog} ..." 1>&5
   6035 
   6036 	cat >>confdefs.h <<EOF
   6037 #define XTERM_PATH_PATH "$cf_path_prog"
   6038 EOF
   6039 
   6040 	test -n "$cf_path_args" && cat >>confdefs.h <<EOF
   6041 #define XTERM_PATH_ARGS "$cf_path_args"
   6042 EOF
   6043 
   6044 fi
   6045 
   6046 # If any of --program-prefix, --program-suffix or --program-transform-name is
   6047 # given, accept an option tell the makefile to create a symbolic link, e.g.,
   6048 # to "xterm" on install.
   6049 XTERM_SYMLINK=NONE
   6050 
   6051 if test "$program_transform_name" != "'s,,,'" ; then
   6052 cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
   6053 cf_name=`echo xterm |sed -e "$cf_name"`
   6054 echo "$as_me:6054: checking for symbolic link to create to $cf_name" >&5
   6055 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
   6056 
   6057 # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
   6058 if test "${with_xterm_symlink+set}" = set; then
   6059   withval="$with_xterm_symlink"
   6060   with_symlink=$withval
   6061 else
   6062   with_symlink=xterm
   6063 fi;
   6064 echo "$as_me:6064: result: $with_symlink" >&5
   6065 echo "${ECHO_T}$with_symlink" >&6
   6066 test "$with_symlink" = yes && with_symlink=xterm
   6067 test -n "$with_symlink" && \
   6068 	test "$with_symlink" != no && \
   6069 	test "$with_symlink" != $cf_name && \
   6070 	XTERM_SYMLINK="$with_symlink"
   6071 fi
   6072 
   6073 echo "$as_me:6073: checking if you want to disable setuid" >&5
   6074 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
   6075 
   6076 # Check whether --enable-setuid or --disable-setuid was given.
   6077 if test "${enable_setuid+set}" = set; then
   6078   enableval="$enable_setuid"
   6079   test "$enableval" != no && enableval=yes
   6080   if test "$enableval" != "yes" ; then
   6081     disable_setuid=yes
   6082   else
   6083     disable_setuid=no
   6084   fi
   6085 else
   6086   enableval=yes
   6087   disable_setuid=no
   6088 
   6089 fi;
   6090 echo "$as_me:6090: result: $disable_setuid" >&5
   6091 echo "${ECHO_T}$disable_setuid" >&6
   6092 
   6093 echo "$as_me:6093: checking if you want to disable setgid" >&5
   6094 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
   6095 
   6096 # Check whether --enable-setgid or --disable-setgid was given.
   6097 if test "${enable_setgid+set}" = set; then
   6098   enableval="$enable_setgid"
   6099   test "$enableval" != no && enableval=yes
   6100   if test "$enableval" != "yes" ; then
   6101     disable_setgid=yes
   6102   else
   6103     disable_setgid=no
   6104   fi
   6105 else
   6106   enableval=yes
   6107   disable_setgid=no
   6108 
   6109 fi;
   6110 echo "$as_me:6110: result: $disable_setgid" >&5
   6111 echo "${ECHO_T}$disable_setgid" >&6
   6112 
   6113 echo "$as_me:6113: checking if you want to run xterm setuid to a given user" >&5
   6114 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6
   6115 
   6116 # Check whether --with-setuid or --without-setuid was given.
   6117 if test "${with_setuid+set}" = set; then
   6118   withval="$with_setuid"
   6119   use_given_setuid=$withval
   6120 else
   6121   use_given_setuid=no
   6122 fi;
   6123 echo "$as_me:6123: result: $use_given_setuid" >&5
   6124 echo "${ECHO_T}$use_given_setuid" >&6
   6125 
   6126 if test "$use_given_setuid" != no ; then
   6127 	if test "$use_given_setuid" = yes ; then
   6128 		cf_cv_given_setuid=root
   6129 	else
   6130 		cf_cv_given_setuid=$use_given_setuid
   6131 	fi
   6132 	SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
   6133 fi
   6134 
   6135 echo "$as_me:6135: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
   6136 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6
   6137 
   6138 # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
   6139 if test "${with_utmp_setgid+set}" = set; then
   6140   withval="$with_utmp_setgid"
   6141   use_utmp_setgid=$withval
   6142 else
   6143   use_utmp_setgid=no
   6144 fi;
   6145 echo "$as_me:6145: result: $use_utmp_setgid" >&5
   6146 echo "${ECHO_T}$use_utmp_setgid" >&6
   6147 
   6148 if test "$use_utmp_setgid" != no ; then
   6149 	if test "$use_utmp_setgid" = yes ; then
   6150 
   6151 if test $cf_cv_have_utmp != no ; then
   6152 echo "$as_me:6152: checking for utmp/utmpx group" >&5
   6153 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
   6154 if test "${cf_cv_utmp_group+set}" = set; then
   6155   echo $ECHO_N "(cached) $ECHO_C" >&6
   6156 else
   6157 
   6158 for cf_utmp_path in /var/adm /var/run
   6159 do
   6160 	for cf_utmp_file in utmpx utmp
   6161 	do
   6162 		if test -f $cf_utmp_path/$cf_utmp_file
   6163 		then
   6164 			cf_cv_utmp_group=root
   6165 
   6166 			cf_option="-l -L"
   6167 
   6168 			# Expect listing to have fields like this:
   6169 			#-r--r--r--   1 user      group       34293 Jul 18 16:29 pathname
   6170 			ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
   6171 			read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
   6172 			if test -z "$cf_rest" ; then
   6173 				cf_option="$cf_option -g"
   6174 				ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
   6175 				read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
   6176 			fi
   6177 			rm -f conftest
   6178 
   6179 			# If we have a pathname, and the date fields look right, assume we've
   6180 			# captured the group as well.
   6181 			if test -n "$cf_rest" ; then
   6182 				cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'`
   6183 				if test -z "$cf_test" ; then
   6184 					cf_cv_utmp_group=$cf_grp;
   6185 				fi
   6186 			fi
   6187 			break
   6188 		fi
   6189 	done
   6190 	test -n "$cf_cv_utmp_group" && break
   6191 done
   6192 
   6193 fi
   6194 echo "$as_me:6194: result: $cf_cv_utmp_group" >&5
   6195 echo "${ECHO_T}$cf_cv_utmp_group" >&6
   6196 else
   6197 	{ { echo "$as_me:6197: error: cannot find utmp group" >&5
   6198 echo "$as_me: error: cannot find utmp group" >&2;}
   6199    { (exit 1); exit 1; }; }
   6200 fi
   6201 
   6202 	else
   6203 		cf_cv_utmp_group=$use_utmp_setgid
   6204 	fi
   6205 	if test "$cf_cv_posix_saved_ids" != yes ; then
   6206 		{ { echo "$as_me:6206: error: Your system does not support POSIX saved-ids" >&5
   6207 echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
   6208    { (exit 1); exit 1; }; }
   6209 	fi
   6210 	cat >>confdefs.h <<\EOF
   6211 #define USE_UTMP_SETGID 1
   6212 EOF
   6213 
   6214 	SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
   6215 fi
   6216 
   6217 echo "$as_me:6217: checking if you want to link with utempter" >&5
   6218 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
   6219 
   6220 # Check whether --with-utempter or --without-utempter was given.
   6221 if test "${with_utempter+set}" = set; then
   6222   withval="$with_utempter"
   6223   use_utempter=$withval
   6224 else
   6225   use_utempter=no
   6226 fi;
   6227 echo "$as_me:6227: result: $use_utempter" >&5
   6228 echo "${ECHO_T}$use_utempter" >&6
   6229 
   6230 if test "$use_utempter" = yes ; then
   6231 
   6232 echo "$as_me:6232: checking if we can link with utempter library" >&5
   6233 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
   6234 if test "${cf_cv_have_utempter+set}" = set; then
   6235   echo $ECHO_N "(cached) $ECHO_C" >&6
   6236 else
   6237 
   6238 cf_save_LIBS="$LIBS"
   6239 LIBS="-lutempter $LIBS"
   6240 cat >conftest.$ac_ext <<_ACEOF
   6241 #line 6241 "configure"
   6242 #include "confdefs.h"
   6243 
   6244 #include <utempter.h>
   6245 
   6246 int
   6247 main ()
   6248 {
   6249 
   6250 	addToUtmp("/dev/tty", 0, 1);
   6251 	removeFromUtmp();
   6252 
   6253   ;
   6254   return 0;
   6255 }
   6256 _ACEOF
   6257 rm -f conftest.$ac_objext conftest$ac_exeext
   6258 if { (eval echo "$as_me:6258: \"$ac_link\"") >&5
   6259   (eval $ac_link) 2>&5
   6260   ac_status=$?
   6261   echo "$as_me:6261: \$? = $ac_status" >&5
   6262   (exit $ac_status); } &&
   6263          { ac_try='test -s conftest$ac_exeext'
   6264   { (eval echo "$as_me:6264: \"$ac_try\"") >&5
   6265   (eval $ac_try) 2>&5
   6266   ac_status=$?
   6267   echo "$as_me:6267: \$? = $ac_status" >&5
   6268   (exit $ac_status); }; }; then
   6269 
   6270 	cf_cv_have_utempter=yes
   6271 else
   6272   echo "$as_me: failed program was:" >&5
   6273 cat conftest.$ac_ext >&5
   6274 
   6275 	cf_cv_have_utempter=no
   6276 fi
   6277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6278 LIBS="$cf_save_LIBS"
   6279 
   6280 fi
   6281 echo "$as_me:6281: result: $cf_cv_have_utempter" >&5
   6282 echo "${ECHO_T}$cf_cv_have_utempter" >&6
   6283 if test "$cf_cv_have_utempter" = yes ; then
   6284 	cat >>confdefs.h <<\EOF
   6285 #define USE_UTEMPTER 1
   6286 EOF
   6287 
   6288 	LIBS="-lutempter $LIBS"
   6289 fi
   6290 
   6291 	test "$cf_cv_have_utempter" != yes && use_utempter=no
   6292 else
   6293 	use_utempter=no
   6294 fi
   6295 
   6296 # Some configurations permit (or require) either setuid or setgid mode.
   6297 # Let the user decide.
   6298 if test "$use_utempter" = yes ; then
   6299 	if test "${enable_setuid+set}" != set ; then
   6300 		disable_setuid=yes
   6301 		test -n "$verbose" && echo "	No --disable-setuid option given, force to yes" 1>&6
   6302 
   6303 echo "${as_me:-configure}:6303: testing No --disable-setuid option given, force to yes ..." 1>&5
   6304 
   6305 	fi
   6306 fi
   6307 
   6308 ###	checks for external data
   6309 
   6310 echo "$as_me:6310: checking if external errno is declared" >&5
   6311 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
   6312 if test "${cf_cv_dcl_errno+set}" = set; then
   6313   echo $ECHO_N "(cached) $ECHO_C" >&6
   6314 else
   6315 
   6316     cat >conftest.$ac_ext <<_ACEOF
   6317 #line 6317 "configure"
   6318 #include "confdefs.h"
   6319 
   6320 #ifdef HAVE_STDLIB_H
   6321 #include <stdlib.h>
   6322 #endif
   6323 #include <stdio.h>
   6324 #include <sys/types.h>
   6325 #include <errno.h>
   6326 int
   6327 main ()
   6328 {
   6329 int x = (int) errno
   6330   ;
   6331   return 0;
   6332 }
   6333 _ACEOF
   6334 rm -f conftest.$ac_objext
   6335 if { (eval echo "$as_me:6335: \"$ac_compile\"") >&5
   6336   (eval $ac_compile) 2>&5
   6337   ac_status=$?
   6338   echo "$as_me:6338: \$? = $ac_status" >&5
   6339   (exit $ac_status); } &&
   6340          { ac_try='test -s conftest.$ac_objext'
   6341   { (eval echo "$as_me:6341: \"$ac_try\"") >&5
   6342   (eval $ac_try) 2>&5
   6343   ac_status=$?
   6344   echo "$as_me:6344: \$? = $ac_status" >&5
   6345   (exit $ac_status); }; }; then
   6346   cf_cv_dcl_errno=yes
   6347 else
   6348   echo "$as_me: failed program was:" >&5
   6349 cat conftest.$ac_ext >&5
   6350 cf_cv_dcl_errno=no
   6351 fi
   6352 rm -f conftest.$ac_objext conftest.$ac_ext
   6353 
   6354 fi
   6355 echo "$as_me:6355: result: $cf_cv_dcl_errno" >&5
   6356 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
   6357 
   6358 if test "$cf_cv_dcl_errno" = no ; then
   6359 
   6360 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6361 
   6362     cat >>confdefs.h <<EOF
   6363 #define $cf_result 1
   6364 EOF
   6365 
   6366 fi
   6367 
   6368 # It's possible (for near-UNIX clones) that the data doesn't exist
   6369 
   6370 echo "$as_me:6370: checking if external errno exists" >&5
   6371 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
   6372 if test "${cf_cv_have_errno+set}" = set; then
   6373   echo $ECHO_N "(cached) $ECHO_C" >&6
   6374 else
   6375 
   6376     cat >conftest.$ac_ext <<_ACEOF
   6377 #line 6377 "configure"
   6378 #include "confdefs.h"
   6379 
   6380 #undef errno
   6381 extern int errno;
   6382 
   6383 int
   6384 main ()
   6385 {
   6386 errno = 2
   6387   ;
   6388   return 0;
   6389 }
   6390 _ACEOF
   6391 rm -f conftest.$ac_objext conftest$ac_exeext
   6392 if { (eval echo "$as_me:6392: \"$ac_link\"") >&5
   6393   (eval $ac_link) 2>&5
   6394   ac_status=$?
   6395   echo "$as_me:6395: \$? = $ac_status" >&5
   6396   (exit $ac_status); } &&
   6397          { ac_try='test -s conftest$ac_exeext'
   6398   { (eval echo "$as_me:6398: \"$ac_try\"") >&5
   6399   (eval $ac_try) 2>&5
   6400   ac_status=$?
   6401   echo "$as_me:6401: \$? = $ac_status" >&5
   6402   (exit $ac_status); }; }; then
   6403   cf_cv_have_errno=yes
   6404 else
   6405   echo "$as_me: failed program was:" >&5
   6406 cat conftest.$ac_ext >&5
   6407 cf_cv_have_errno=no
   6408 fi
   6409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6410 
   6411 fi
   6412 echo "$as_me:6412: result: $cf_cv_have_errno" >&5
   6413 echo "${ECHO_T}$cf_cv_have_errno" >&6
   6414 
   6415 if test "$cf_cv_have_errno" = yes ; then
   6416 
   6417 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6418 
   6419     cat >>confdefs.h <<EOF
   6420 #define $cf_result 1
   6421 EOF
   6422 
   6423 fi
   6424 
   6425 echo "$as_me:6425: checking for explicit tty group name" >&5
   6426 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
   6427 
   6428 # Check whether --with-tty-group or --without-tty-group was given.
   6429 if test "${with_tty_group+set}" = set; then
   6430   withval="$with_tty_group"
   6431   cf_tty_group=$withval
   6432 else
   6433   cf_tty_group=auto...
   6434 fi;
   6435 test -z "$cf_tty_group"    && cf_tty_group=auto...
   6436 test "$cf_tty_group" = yes && cf_tty_group=auto...
   6437 echo "$as_me:6437: result: $cf_tty_group" >&5
   6438 echo "${ECHO_T}$cf_tty_group" >&6
   6439 
   6440 if test "$cf_tty_group" = "auto..." ; then
   6441 echo "$as_me:6441: checking for tty group name" >&5
   6442 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
   6443 if test "${cf_cv_tty_group_name+set}" = set; then
   6444   echo $ECHO_N "(cached) $ECHO_C" >&6
   6445 else
   6446 
   6447 # If we are configuring as root, it is hard to get a clue about the tty group.
   6448 # But we'll guess based on how our connection is set up - assuming it is done
   6449 # properly.
   6450 
   6451 cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'`
   6452 # )vi
   6453 if test "$cf_uid" != 0 ; then
   6454 cf_cv_tty_group_name=
   6455 cf_tty_name=`tty`
   6456 test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty
   6457 test -z "$cf_tty_name" && cf_tty_name=/dev/tty
   6458 if test -c "$cf_tty_name"
   6459 then
   6460 	cf_option="-l -L"
   6461 
   6462 	# Expect listing to have fields like this:
   6463 	#-rwxrwxrwx   1 user      group       34293 Jul 18 16:29 pathname
   6464 	ls $cf_option $cf_tty_name >conftest.out
   6465 	read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
   6466 	if test -z "$cf_rest" ; then
   6467 		cf_option="$cf_option -g"
   6468 		ls $cf_option $cf_tty_name >conftest.out
   6469 		read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
   6470 	fi
   6471 	rm -f conftest.out
   6472 	cf_cv_tty_group_name=$cf_grp
   6473 fi
   6474 fi
   6475 
   6476 # If we cannot deduce the tty group, fall back on hardcoded cases
   6477 
   6478 if test -z "$cf_cv_tty_group_name"
   6479 then
   6480 case $host_os in #(vi
   6481 osf*) #(vi
   6482 	cf_cv_tty_group_name="terminal"
   6483 	;;
   6484 *)
   6485 	cf_cv_tty_group_name="unknown"
   6486 	if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
   6487 		cf_cv_tty_group_name="tty"
   6488 	fi
   6489 	;;
   6490 esac
   6491 fi
   6492 
   6493 fi
   6494 echo "$as_me:6494: result: $cf_cv_tty_group_name" >&5
   6495 echo "${ECHO_T}$cf_cv_tty_group_name" >&6
   6496 cf_tty_group="$cf_cv_tty_group_name"
   6497 else
   6498 	# if configure option, always do this
   6499 	cat >>confdefs.h <<\EOF
   6500 #define USE_TTY_GROUP 1
   6501 EOF
   6502 
   6503 fi
   6504 
   6505 cat >>confdefs.h <<EOF
   6506 #define TTY_GROUP_NAME "$cf_tty_group"
   6507 EOF
   6508 
   6509 # This is only a double-check that the group-name we obtained above really
   6510 # does apply to the device.  We cannot perform this test if we are in batch
   6511 # mode, or if we are cross-compiling.
   6512 
   6513 echo "$as_me:6513: checking if we may use the $cf_tty_group group" >&5
   6514 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
   6515 if test "${cf_cv_tty_group+set}" = set; then
   6516   echo $ECHO_N "(cached) $ECHO_C" >&6
   6517 else
   6518 
   6519 cf_tty_name=`tty`
   6520 if test "$cf_tty_name" != "not a tty"
   6521 then
   6522 if test "$cross_compiling" = yes; then
   6523   cf_cv_tty_group=unknown
   6524 else
   6525   cat >conftest.$ac_ext <<_ACEOF
   6526 #line 6526 "configure"
   6527 #include "confdefs.h"
   6528 
   6529 #include <unistd.h>
   6530 #include <sys/types.h>
   6531 #include <sys/stat.h>
   6532 #include <grp.h>
   6533 int main()
   6534 {
   6535 	struct stat sb;
   6536 	struct group *ttygrp = getgrnam(TTY_GROUP_NAME);
   6537 	char *name = ttyname(0);
   6538 
   6539 	endgrent();
   6540 	if (ttygrp != 0
   6541 	 && name != 0
   6542 	 && stat(name, &sb) == 0
   6543 	 && sb.st_gid != getgid()
   6544 	 && sb.st_gid == ttygrp->gr_gid) {
   6545 		${cf_cv_main_return:-return} (0);
   6546 	}
   6547 	${cf_cv_main_return:-return} (1);
   6548 }
   6549 
   6550 _ACEOF
   6551 rm -f conftest$ac_exeext
   6552 if { (eval echo "$as_me:6552: \"$ac_link\"") >&5
   6553   (eval $ac_link) 2>&5
   6554   ac_status=$?
   6555   echo "$as_me:6555: \$? = $ac_status" >&5
   6556   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6557   { (eval echo "$as_me:6557: \"$ac_try\"") >&5
   6558   (eval $ac_try) 2>&5
   6559   ac_status=$?
   6560   echo "$as_me:6560: \$? = $ac_status" >&5
   6561   (exit $ac_status); }; }; then
   6562   cf_cv_tty_group=yes
   6563 else
   6564   echo "$as_me: program exited with status $ac_status" >&5
   6565 echo "$as_me: failed program was:" >&5
   6566 cat conftest.$ac_ext >&5
   6567 cf_cv_tty_group=no
   6568 fi
   6569 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6570 fi
   6571 elif test "$cross_compiling" = yes; then
   6572 	cf_cv_tty_group=unknown
   6573 else
   6574 	cf_cv_tty_group=yes
   6575 fi
   6576 
   6577 fi
   6578 echo "$as_me:6578: result: $cf_cv_tty_group" >&5
   6579 echo "${ECHO_T}$cf_cv_tty_group" >&6
   6580 
   6581 if test $cf_cv_tty_group = no ; then
   6582 	{ echo "$as_me:6582: WARNING: Cannot use $cf_tty_group group" >&5
   6583 echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
   6584 else
   6585 	cat >>confdefs.h <<\EOF
   6586 #define USE_TTY_GROUP 1
   6587 EOF
   6588 
   6589 fi
   6590 
   6591 ###	checks for system services and user specified options
   6592 
   6593 echo "$as_me:6593: checking for sys/wait.h that is POSIX.1 compatible" >&5
   6594 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
   6595 if test "${ac_cv_header_sys_wait_h+set}" = set; then
   6596   echo $ECHO_N "(cached) $ECHO_C" >&6
   6597 else
   6598   cat >conftest.$ac_ext <<_ACEOF
   6599 #line 6599 "configure"
   6600 #include "confdefs.h"
   6601 #include <sys/types.h>
   6602 #include <sys/wait.h>
   6603 #ifndef WEXITSTATUS
   6604 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
   6605 #endif
   6606 #ifndef WIFEXITED
   6607 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   6608 #endif
   6609 
   6610 int
   6611 main ()
   6612 {
   6613   int s;
   6614   wait (&s);
   6615   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   6616   ;
   6617   return 0;
   6618 }
   6619 _ACEOF
   6620 rm -f conftest.$ac_objext
   6621 if { (eval echo "$as_me:6621: \"$ac_compile\"") >&5
   6622   (eval $ac_compile) 2>&5
   6623   ac_status=$?
   6624   echo "$as_me:6624: \$? = $ac_status" >&5
   6625   (exit $ac_status); } &&
   6626          { ac_try='test -s conftest.$ac_objext'
   6627   { (eval echo "$as_me:6627: \"$ac_try\"") >&5
   6628   (eval $ac_try) 2>&5
   6629   ac_status=$?
   6630   echo "$as_me:6630: \$? = $ac_status" >&5
   6631   (exit $ac_status); }; }; then
   6632   ac_cv_header_sys_wait_h=yes
   6633 else
   6634   echo "$as_me: failed program was:" >&5
   6635 cat conftest.$ac_ext >&5
   6636 ac_cv_header_sys_wait_h=no
   6637 fi
   6638 rm -f conftest.$ac_objext conftest.$ac_ext
   6639 fi
   6640 echo "$as_me:6640: result: $ac_cv_header_sys_wait_h" >&5
   6641 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
   6642 if test $ac_cv_header_sys_wait_h = yes; then
   6643 
   6644 cat >>confdefs.h <<\EOF
   6645 #define HAVE_SYS_WAIT_H 1
   6646 EOF
   6647 
   6648 fi
   6649 
   6650 echo "$as_me:6650: checking for POSIX wait functions" >&5
   6651 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
   6652 if test "${cf_cv_posix_wait+set}" = set; then
   6653   echo $ECHO_N "(cached) $ECHO_C" >&6
   6654 else
   6655 
   6656 cat >conftest.$ac_ext <<_ACEOF
   6657 #line 6657 "configure"
   6658 #include "confdefs.h"
   6659 
   6660 #include <stdlib.h>
   6661 #include <stdio.h>
   6662 #include <sys/types.h>
   6663 #ifdef HAVE_SYS_WAIT_H
   6664 #include <sys/wait.h>
   6665 #endif
   6666 
   6667 int
   6668 main ()
   6669 {
   6670 
   6671 	int stat_loc;
   6672 	pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
   6673 	pid_t pid2 = wait(&stat_loc);
   6674 
   6675   ;
   6676   return 0;
   6677 }
   6678 _ACEOF
   6679 rm -f conftest.$ac_objext conftest$ac_exeext
   6680 if { (eval echo "$as_me:6680: \"$ac_link\"") >&5
   6681   (eval $ac_link) 2>&5
   6682   ac_status=$?
   6683   echo "$as_me:6683: \$? = $ac_status" >&5
   6684   (exit $ac_status); } &&
   6685          { ac_try='test -s conftest$ac_exeext'
   6686   { (eval echo "$as_me:6686: \"$ac_try\"") >&5
   6687   (eval $ac_try) 2>&5
   6688   ac_status=$?
   6689   echo "$as_me:6689: \$? = $ac_status" >&5
   6690   (exit $ac_status); }; }; then
   6691   cf_cv_posix_wait=yes
   6692 else
   6693   echo "$as_me: failed program was:" >&5
   6694 cat conftest.$ac_ext >&5
   6695 cf_cv_posix_wait=no
   6696 fi
   6697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6698 
   6699 fi
   6700 echo "$as_me:6700: result: $cf_cv_posix_wait" >&5
   6701 echo "${ECHO_T}$cf_cv_posix_wait" >&6
   6702 test "$cf_cv_posix_wait" = yes && cat >>confdefs.h <<\EOF
   6703 #define USE_POSIX_WAIT 1
   6704 EOF
   6705 
   6706 echo "$as_me:6706: checking if external sys_nerr is declared" >&5
   6707 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
   6708 if test "${cf_cv_dcl_sys_nerr+set}" = set; then
   6709   echo $ECHO_N "(cached) $ECHO_C" >&6
   6710 else
   6711 
   6712     cat >conftest.$ac_ext <<_ACEOF
   6713 #line 6713 "configure"
   6714 #include "confdefs.h"
   6715 
   6716 #ifdef HAVE_STDLIB_H
   6717 #include <stdlib.h>
   6718 #endif
   6719 #include <stdio.h>
   6720 #include <sys/types.h>
   6721 #include <errno.h>
   6722 int
   6723 main ()
   6724 {
   6725 int x = (int) sys_nerr
   6726   ;
   6727   return 0;
   6728 }
   6729 _ACEOF
   6730 rm -f conftest.$ac_objext
   6731 if { (eval echo "$as_me:6731: \"$ac_compile\"") >&5
   6732   (eval $ac_compile) 2>&5
   6733   ac_status=$?
   6734   echo "$as_me:6734: \$? = $ac_status" >&5
   6735   (exit $ac_status); } &&
   6736          { ac_try='test -s conftest.$ac_objext'
   6737   { (eval echo "$as_me:6737: \"$ac_try\"") >&5
   6738   (eval $ac_try) 2>&5
   6739   ac_status=$?
   6740   echo "$as_me:6740: \$? = $ac_status" >&5
   6741   (exit $ac_status); }; }; then
   6742   cf_cv_dcl_sys_nerr=yes
   6743 else
   6744   echo "$as_me: failed program was:" >&5
   6745 cat conftest.$ac_ext >&5
   6746 cf_cv_dcl_sys_nerr=no
   6747 fi
   6748 rm -f conftest.$ac_objext conftest.$ac_ext
   6749 
   6750 fi
   6751 echo "$as_me:6751: result: $cf_cv_dcl_sys_nerr" >&5
   6752 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
   6753 
   6754 if test "$cf_cv_dcl_sys_nerr" = no ; then
   6755 
   6756 cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6757 
   6758     cat >>confdefs.h <<EOF
   6759 #define $cf_result 1
   6760 EOF
   6761 
   6762 fi
   6763 
   6764 # It's possible (for near-UNIX clones) that the data doesn't exist
   6765 
   6766 echo "$as_me:6766: checking if external sys_nerr exists" >&5
   6767 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
   6768 if test "${cf_cv_have_sys_nerr+set}" = set; then
   6769   echo $ECHO_N "(cached) $ECHO_C" >&6
   6770 else
   6771 
   6772     cat >conftest.$ac_ext <<_ACEOF
   6773 #line 6773 "configure"
   6774 #include "confdefs.h"
   6775 
   6776 #undef sys_nerr
   6777 extern int sys_nerr;
   6778 
   6779 int
   6780 main ()
   6781 {
   6782 sys_nerr = 2
   6783   ;
   6784   return 0;
   6785 }
   6786 _ACEOF
   6787 rm -f conftest.$ac_objext conftest$ac_exeext
   6788 if { (eval echo "$as_me:6788: \"$ac_link\"") >&5
   6789   (eval $ac_link) 2>&5
   6790   ac_status=$?
   6791   echo "$as_me:6791: \$? = $ac_status" >&5
   6792   (exit $ac_status); } &&
   6793          { ac_try='test -s conftest$ac_exeext'
   6794   { (eval echo "$as_me:6794: \"$ac_try\"") >&5
   6795   (eval $ac_try) 2>&5
   6796   ac_status=$?
   6797   echo "$as_me:6797: \$? = $ac_status" >&5
   6798   (exit $ac_status); }; }; then
   6799   cf_cv_have_sys_nerr=yes
   6800 else
   6801   echo "$as_me: failed program was:" >&5
   6802 cat conftest.$ac_ext >&5
   6803 cf_cv_have_sys_nerr=no
   6804 fi
   6805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6806 
   6807 fi
   6808 echo "$as_me:6808: result: $cf_cv_have_sys_nerr" >&5
   6809 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
   6810 
   6811 if test "$cf_cv_have_sys_nerr" = yes ; then
   6812 
   6813 cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6814 
   6815     cat >>confdefs.h <<EOF
   6816 #define $cf_result 1
   6817 EOF
   6818 
   6819 fi
   6820 
   6821 echo "$as_me:6821: checking if external sys_errlist is declared" >&5
   6822 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
   6823 if test "${cf_cv_dcl_sys_errlist+set}" = set; then
   6824   echo $ECHO_N "(cached) $ECHO_C" >&6
   6825 else
   6826 
   6827     cat >conftest.$ac_ext <<_ACEOF
   6828 #line 6828 "configure"
   6829 #include "confdefs.h"
   6830 
   6831 #ifdef HAVE_STDLIB_H
   6832 #include <stdlib.h>
   6833 #endif
   6834 #include <stdio.h>
   6835 #include <sys/types.h>
   6836 #include <errno.h>
   6837 int
   6838 main ()
   6839 {
   6840 int x = (int) sys_errlist
   6841   ;
   6842   return 0;
   6843 }
   6844 _ACEOF
   6845 rm -f conftest.$ac_objext
   6846 if { (eval echo "$as_me:6846: \"$ac_compile\"") >&5
   6847   (eval $ac_compile) 2>&5
   6848   ac_status=$?
   6849   echo "$as_me:6849: \$? = $ac_status" >&5
   6850   (exit $ac_status); } &&
   6851          { ac_try='test -s conftest.$ac_objext'
   6852   { (eval echo "$as_me:6852: \"$ac_try\"") >&5
   6853   (eval $ac_try) 2>&5
   6854   ac_status=$?
   6855   echo "$as_me:6855: \$? = $ac_status" >&5
   6856   (exit $ac_status); }; }; then
   6857   cf_cv_dcl_sys_errlist=yes
   6858 else
   6859   echo "$as_me: failed program was:" >&5
   6860 cat conftest.$ac_ext >&5
   6861 cf_cv_dcl_sys_errlist=no
   6862 fi
   6863 rm -f conftest.$ac_objext conftest.$ac_ext
   6864 
   6865 fi
   6866 echo "$as_me:6866: result: $cf_cv_dcl_sys_errlist" >&5
   6867 echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
   6868 
   6869 if test "$cf_cv_dcl_sys_errlist" = no ; then
   6870 
   6871 cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6872 
   6873     cat >>confdefs.h <<EOF
   6874 #define $cf_result 1
   6875 EOF
   6876 
   6877 fi
   6878 
   6879 # It's possible (for near-UNIX clones) that the data doesn't exist
   6880 
   6881 echo "$as_me:6881: checking if external sys_errlist exists" >&5
   6882 echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
   6883 if test "${cf_cv_have_sys_errlist+set}" = set; then
   6884   echo $ECHO_N "(cached) $ECHO_C" >&6
   6885 else
   6886 
   6887     cat >conftest.$ac_ext <<_ACEOF
   6888 #line 6888 "configure"
   6889 #include "confdefs.h"
   6890 
   6891 #undef sys_errlist
   6892 extern int sys_errlist;
   6893 
   6894 int
   6895 main ()
   6896 {
   6897 sys_errlist = 2
   6898   ;
   6899   return 0;
   6900 }
   6901 _ACEOF
   6902 rm -f conftest.$ac_objext conftest$ac_exeext
   6903 if { (eval echo "$as_me:6903: \"$ac_link\"") >&5
   6904   (eval $ac_link) 2>&5
   6905   ac_status=$?
   6906   echo "$as_me:6906: \$? = $ac_status" >&5
   6907   (exit $ac_status); } &&
   6908          { ac_try='test -s conftest$ac_exeext'
   6909   { (eval echo "$as_me:6909: \"$ac_try\"") >&5
   6910   (eval $ac_try) 2>&5
   6911   ac_status=$?
   6912   echo "$as_me:6912: \$? = $ac_status" >&5
   6913   (exit $ac_status); }; }; then
   6914   cf_cv_have_sys_errlist=yes
   6915 else
   6916   echo "$as_me: failed program was:" >&5
   6917 cat conftest.$ac_ext >&5
   6918 cf_cv_have_sys_errlist=no
   6919 fi
   6920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   6921 
   6922 fi
   6923 echo "$as_me:6923: result: $cf_cv_have_sys_errlist" >&5
   6924 echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
   6925 
   6926 if test "$cf_cv_have_sys_errlist" = yes ; then
   6927 
   6928 cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   6929 
   6930     cat >>confdefs.h <<EOF
   6931 #define $cf_result 1
   6932 EOF
   6933 
   6934 fi
   6935 
   6936 for ac_header in \
   6937 termios.h \
   6938 stdlib.h \
   6939 X11/Intrinsic.h \
   6940 
   6941 do
   6942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6943 echo "$as_me:6943: checking for $ac_header" >&5
   6944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6946   echo $ECHO_N "(cached) $ECHO_C" >&6
   6947 else
   6948   cat >conftest.$ac_ext <<_ACEOF
   6949 #line 6949 "configure"
   6950 #include "confdefs.h"
   6951 #include <$ac_header>
   6952 _ACEOF
   6953 if { (eval echo "$as_me:6953: \"$ac_cpp conftest.$ac_ext\"") >&5
   6954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   6955   ac_status=$?
   6956   egrep -v '^ *\+' conftest.er1 >conftest.err
   6957   rm -f conftest.er1
   6958   cat conftest.err >&5
   6959   echo "$as_me:6959: \$? = $ac_status" >&5
   6960   (exit $ac_status); } >/dev/null; then
   6961   if test -s conftest.err; then
   6962     ac_cpp_err=$ac_c_preproc_warn_flag
   6963   else
   6964     ac_cpp_err=
   6965   fi
   6966 else
   6967   ac_cpp_err=yes
   6968 fi
   6969 if test -z "$ac_cpp_err"; then
   6970   eval "$as_ac_Header=yes"
   6971 else
   6972   echo "$as_me: failed program was:" >&5
   6973   cat conftest.$ac_ext >&5
   6974   eval "$as_ac_Header=no"
   6975 fi
   6976 rm -f conftest.err conftest.$ac_ext
   6977 fi
   6978 echo "$as_me:6978: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6981   cat >>confdefs.h <<EOF
   6982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6983 EOF
   6984 
   6985 fi
   6986 done
   6987 
   6988 echo "$as_me:6988: checking if we should define SYSV" >&5
   6989 echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
   6990 if test "${cf_cv_sysv+set}" = set; then
   6991   echo $ECHO_N "(cached) $ECHO_C" >&6
   6992 else
   6993 
   6994 cat >conftest.$ac_ext <<_ACEOF
   6995 #line 6995 "configure"
   6996 #include "confdefs.h"
   6997 
   6998 #undef  SYSV
   6999 #define SYSV 1			/* get Xos.h to declare sys_errlist[] */
   7000 #ifdef HAVE_STDLIB_H
   7001 #include <stdlib.h>		/* look for wchar_t */
   7002 #endif
   7003 #ifdef HAVE_X11_INTRINSIC_H
   7004 #include <X11/Intrinsic.h>	/* Intrinsic.h has other traps... */
   7005 #endif
   7006 #ifdef HAVE_TERMIOS_H		/* needed for HPUX 10.20 */
   7007 #include <termios.h>
   7008 #define STRUCT_TERMIOS struct termios
   7009 #else
   7010 #define STRUCT_TERMIOS struct termio
   7011 #endif
   7012 #include <curses.h>
   7013 #include <term.h>		/* eliminate most BSD hacks */
   7014 #include <errno.h>		/* declare sys_errlist on older systems */
   7015 #include <sys/termio.h>		/* eliminate most of the remaining ones */
   7016 
   7017 int
   7018 main ()
   7019 {
   7020 
   7021 static STRUCT_TERMIOS d_tio;
   7022 	d_tio.c_cc[VINTR] = 0;
   7023 	d_tio.c_cc[VQUIT] = 0;
   7024 	d_tio.c_cc[VERASE] = 0;
   7025 	d_tio.c_cc[VKILL] = 0;
   7026 	d_tio.c_cc[VEOF] = 0;
   7027 	d_tio.c_cc[VEOL] = 0;
   7028 	d_tio.c_cc[VMIN] = 0;
   7029 	d_tio.c_cc[VTIME] = 0;
   7030 #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
   7031 sys_errlist[0] = "";		/* Cygwin mis-declares this */
   7032 #endif
   7033 
   7034   ;
   7035   return 0;
   7036 }
   7037 _ACEOF
   7038 rm -f conftest.$ac_objext
   7039 if { (eval echo "$as_me:7039: \"$ac_compile\"") >&5
   7040   (eval $ac_compile) 2>&5
   7041   ac_status=$?
   7042   echo "$as_me:7042: \$? = $ac_status" >&5
   7043   (exit $ac_status); } &&
   7044          { ac_try='test -s conftest.$ac_objext'
   7045   { (eval echo "$as_me:7045: \"$ac_try\"") >&5
   7046   (eval $ac_try) 2>&5
   7047   ac_status=$?
   7048   echo "$as_me:7048: \$? = $ac_status" >&5
   7049   (exit $ac_status); }; }; then
   7050   cf_cv_sysv=yes
   7051 else
   7052   echo "$as_me: failed program was:" >&5
   7053 cat conftest.$ac_ext >&5
   7054 cf_cv_sysv=no
   7055 fi
   7056 rm -f conftest.$ac_objext conftest.$ac_ext
   7057 
   7058 fi
   7059 echo "$as_me:7059: result: $cf_cv_sysv" >&5
   7060 echo "${ECHO_T}$cf_cv_sysv" >&6
   7061 test "$cf_cv_sysv" = yes && cat >>confdefs.h <<\EOF
   7062 #define SYSV 1
   7063 EOF
   7064 
   7065 echo "$as_me:7065: checking for elf_begin in -lelf" >&5
   7066 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
   7067 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
   7068   echo $ECHO_N "(cached) $ECHO_C" >&6
   7069 else
   7070   ac_check_lib_save_LIBS=$LIBS
   7071 LIBS="-lelf  $LIBS"
   7072 cat >conftest.$ac_ext <<_ACEOF
   7073 #line 7073 "configure"
   7074 #include "confdefs.h"
   7075 
   7076 /* Override any gcc2 internal prototype to avoid an error.  */
   7077 #ifdef __cplusplus
   7078 extern "C"
   7079 #endif
   7080 /* We use char because int might match the return type of a gcc2
   7081    builtin and then its argument prototype would still apply.  */
   7082 char elf_begin ();
   7083 int
   7084 main ()
   7085 {
   7086 elf_begin ();
   7087   ;
   7088   return 0;
   7089 }
   7090 _ACEOF
   7091 rm -f conftest.$ac_objext conftest$ac_exeext
   7092 if { (eval echo "$as_me:7092: \"$ac_link\"") >&5
   7093   (eval $ac_link) 2>&5
   7094   ac_status=$?
   7095   echo "$as_me:7095: \$? = $ac_status" >&5
   7096   (exit $ac_status); } &&
   7097          { ac_try='test -s conftest$ac_exeext'
   7098   { (eval echo "$as_me:7098: \"$ac_try\"") >&5
   7099   (eval $ac_try) 2>&5
   7100   ac_status=$?
   7101   echo "$as_me:7101: \$? = $ac_status" >&5
   7102   (exit $ac_status); }; }; then
   7103   ac_cv_lib_elf_elf_begin=yes
   7104 else
   7105   echo "$as_me: failed program was:" >&5
   7106 cat conftest.$ac_ext >&5
   7107 ac_cv_lib_elf_elf_begin=no
   7108 fi
   7109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7110 LIBS=$ac_check_lib_save_LIBS
   7111 fi
   7112 echo "$as_me:7112: result: $ac_cv_lib_elf_elf_begin" >&5
   7113 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
   7114 if test $ac_cv_lib_elf_elf_begin = yes; then
   7115 
   7116 echo "$as_me:7116: checking if this is an SVR4 system" >&5
   7117 echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
   7118 if test "${cf_cv_svr4+set}" = set; then
   7119   echo $ECHO_N "(cached) $ECHO_C" >&6
   7120 else
   7121 
   7122 cat >conftest.$ac_ext <<_ACEOF
   7123 #line 7123 "configure"
   7124 #include "confdefs.h"
   7125 
   7126 #include <elf.h>
   7127 #include <sys/termio.h>
   7128 
   7129 int
   7130 main ()
   7131 {
   7132 
   7133 static struct termio d_tio;
   7134 	d_tio.c_cc[VINTR] = 0;
   7135 	d_tio.c_cc[VQUIT] = 0;
   7136 	d_tio.c_cc[VERASE] = 0;
   7137 	d_tio.c_cc[VKILL] = 0;
   7138 	d_tio.c_cc[VEOF] = 0;
   7139 	d_tio.c_cc[VEOL] = 0;
   7140 	d_tio.c_cc[VMIN] = 0;
   7141 	d_tio.c_cc[VTIME] = 0;
   7142 	d_tio.c_cc[VLNEXT] = 0;
   7143 
   7144   ;
   7145   return 0;
   7146 }
   7147 _ACEOF
   7148 rm -f conftest.$ac_objext
   7149 if { (eval echo "$as_me:7149: \"$ac_compile\"") >&5
   7150   (eval $ac_compile) 2>&5
   7151   ac_status=$?
   7152   echo "$as_me:7152: \$? = $ac_status" >&5
   7153   (exit $ac_status); } &&
   7154          { ac_try='test -s conftest.$ac_objext'
   7155   { (eval echo "$as_me:7155: \"$ac_try\"") >&5
   7156   (eval $ac_try) 2>&5
   7157   ac_status=$?
   7158   echo "$as_me:7158: \$? = $ac_status" >&5
   7159   (exit $ac_status); }; }; then
   7160   cf_cv_svr4=yes
   7161 else
   7162   echo "$as_me: failed program was:" >&5
   7163 cat conftest.$ac_ext >&5
   7164 cf_cv_svr4=no
   7165 fi
   7166 rm -f conftest.$ac_objext conftest.$ac_ext
   7167 
   7168 fi
   7169 echo "$as_me:7169: result: $cf_cv_svr4" >&5
   7170 echo "${ECHO_T}$cf_cv_svr4" >&6
   7171 
   7172 fi
   7173 
   7174 test "$cf_cv_svr4" = yes && cat >>confdefs.h <<\EOF
   7175 #define SVR4 1
   7176 EOF
   7177 
   7178 echo "$as_me:7178: checking for X" >&5
   7179 echo $ECHO_N "checking for X... $ECHO_C" >&6
   7180 
   7181 # Check whether --with-x or --without-x was given.
   7182 if test "${with_x+set}" = set; then
   7183   withval="$with_x"
   7184 
   7185 fi;
   7186 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   7187 if test "x$with_x" = xno; then
   7188   # The user explicitly disabled X.
   7189   have_x=disabled
   7190 else
   7191   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
   7192     # Both variables are already set.
   7193     have_x=yes
   7194   else
   7195     if test "${ac_cv_have_x+set}" = set; then
   7196   echo $ECHO_N "(cached) $ECHO_C" >&6
   7197 else
   7198   # One or both of the vars are not set, and there is no cached value.
   7199 ac_x_includes=no ac_x_libraries=no
   7200 rm -fr conftest.dir
   7201 if mkdir conftest.dir; then
   7202   cd conftest.dir
   7203   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
   7204   cat >Imakefile <<'EOF'
   7205 acfindx:
   7206 	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
   7207 EOF
   7208   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
   7209     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   7210     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
   7211     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   7212     for ac_extension in a so sl dylib dll; do
   7213       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
   7214          test -f $ac_im_libdir/libX11.$ac_extension; then
   7215         ac_im_usrlibdir=$ac_im_libdir; break
   7216       fi
   7217     done
   7218     # Screen out bogus values from the imake configuration.  They are
   7219     # bogus both because they are the default anyway, and because
   7220     # using them would break gcc on systems where it needs fixed includes.
   7221     case $ac_im_incroot in
   7222 	/usr/include) ;;
   7223 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   7224     esac
   7225     case $ac_im_usrlibdir in
   7226 	/usr/lib | /lib) ;;
   7227 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   7228     esac
   7229   fi
   7230   cd ..
   7231   rm -fr conftest.dir
   7232 fi
   7233 
   7234 # Standard set of common directories for X headers.
   7235 # Check X11 before X11Rn because it is often a symlink to the current release.
   7236 ac_x_header_dirs='
   7237 /usr/X11/include
   7238 /usr/X11R6/include
   7239 /usr/X11R5/include
   7240 /usr/X11R4/include
   7241 
   7242 /usr/include/X11
   7243 /usr/include/X11R6
   7244 /usr/include/X11R5
   7245 /usr/include/X11R4
   7246 
   7247 /usr/local/X11/include
   7248 /usr/local/X11R6/include
   7249 /usr/local/X11R5/include
   7250 /usr/local/X11R4/include
   7251 
   7252 /usr/local/include/X11
   7253 /usr/local/include/X11R6
   7254 /usr/local/include/X11R5
   7255 /usr/local/include/X11R4
   7256 
   7257 /usr/X386/include
   7258 /usr/x386/include
   7259 /usr/XFree86/include/X11
   7260 
   7261 /usr/include
   7262 /usr/local/include
   7263 /usr/unsupported/include
   7264 /usr/athena/include
   7265 /usr/local/x11r5/include
   7266 /usr/lpp/Xamples/include
   7267 
   7268 /usr/openwin/include
   7269 /usr/openwin/share/include'
   7270 
   7271 if test "$ac_x_includes" = no; then
   7272   # Guess where to find include files, by looking for Intrinsic.h.
   7273   # First, try using that file with no special directory specified.
   7274   cat >conftest.$ac_ext <<_ACEOF
   7275 #line 7275 "configure"
   7276 #include "confdefs.h"
   7277 #include <X11/Intrinsic.h>
   7278 _ACEOF
   7279 if { (eval echo "$as_me:7279: \"$ac_cpp conftest.$ac_ext\"") >&5
   7280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   7281   ac_status=$?
   7282   egrep -v '^ *\+' conftest.er1 >conftest.err
   7283   rm -f conftest.er1
   7284   cat conftest.err >&5
   7285   echo "$as_me:7285: \$? = $ac_status" >&5
   7286   (exit $ac_status); } >/dev/null; then
   7287   if test -s conftest.err; then
   7288     ac_cpp_err=$ac_c_preproc_warn_flag
   7289   else
   7290     ac_cpp_err=
   7291   fi
   7292 else
   7293   ac_cpp_err=yes
   7294 fi
   7295 if test -z "$ac_cpp_err"; then
   7296   # We can compile using X headers with no special include directory.
   7297 ac_x_includes=
   7298 else
   7299   echo "$as_me: failed program was:" >&5
   7300   cat conftest.$ac_ext >&5
   7301   for ac_dir in $ac_x_header_dirs; do
   7302   if test -r "$ac_dir/X11/Intrinsic.h"; then
   7303     ac_x_includes=$ac_dir
   7304     break
   7305   fi
   7306 done
   7307 fi
   7308 rm -f conftest.err conftest.$ac_ext
   7309 fi # $ac_x_includes = no
   7310 
   7311 if test "$ac_x_libraries" = no; then
   7312   # Check for the libraries.
   7313   # See if we find them without any special options.
   7314   # Don't add to $LIBS permanently.
   7315   ac_save_LIBS=$LIBS
   7316   LIBS="-lXt $LIBS"
   7317   cat >conftest.$ac_ext <<_ACEOF
   7318 #line 7318 "configure"
   7319 #include "confdefs.h"
   7320 #include <X11/Intrinsic.h>
   7321 int
   7322 main ()
   7323 {
   7324 XtMalloc (0)
   7325   ;
   7326   return 0;
   7327 }
   7328 _ACEOF
   7329 rm -f conftest.$ac_objext conftest$ac_exeext
   7330 if { (eval echo "$as_me:7330: \"$ac_link\"") >&5
   7331   (eval $ac_link) 2>&5
   7332   ac_status=$?
   7333   echo "$as_me:7333: \$? = $ac_status" >&5
   7334   (exit $ac_status); } &&
   7335          { ac_try='test -s conftest$ac_exeext'
   7336   { (eval echo "$as_me:7336: \"$ac_try\"") >&5
   7337   (eval $ac_try) 2>&5
   7338   ac_status=$?
   7339   echo "$as_me:7339: \$? = $ac_status" >&5
   7340   (exit $ac_status); }; }; then
   7341   LIBS=$ac_save_LIBS
   7342 # We can link X programs with no special library path.
   7343 ac_x_libraries=
   7344 else
   7345   echo "$as_me: failed program was:" >&5
   7346 cat conftest.$ac_ext >&5
   7347 LIBS=$ac_save_LIBS
   7348 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   7349 do
   7350   # Don't even attempt the hair of trying to link an X program!
   7351   for ac_extension in a so sl dylib dll; do
   7352     if test -r $ac_dir/libXt.$ac_extension; then
   7353       ac_x_libraries=$ac_dir
   7354       break 2
   7355     fi
   7356   done
   7357 done
   7358 fi
   7359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7360 fi # $ac_x_libraries = no
   7361 
   7362 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
   7363   # Didn't find X anywhere.  Cache the known absence of X.
   7364   ac_cv_have_x="have_x=no"
   7365 else
   7366   # Record where we found X for the cache.
   7367   ac_cv_have_x="have_x=yes \
   7368 	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
   7369 fi
   7370 fi
   7371 
   7372   fi
   7373   eval "$ac_cv_have_x"
   7374 fi # $with_x != no
   7375 
   7376 if test "$have_x" != yes; then
   7377   echo "$as_me:7377: result: $have_x" >&5
   7378 echo "${ECHO_T}$have_x" >&6
   7379   no_x=yes
   7380 else
   7381   # If each of the values was on the command line, it overrides each guess.
   7382   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   7383   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   7384   # Update the cache value to reflect the command line values.
   7385   ac_cv_have_x="have_x=yes \
   7386 		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
   7387   echo "$as_me:7387: result: libraries $x_libraries, headers $x_includes" >&5
   7388 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
   7389 fi
   7390 
   7391 if test "$no_x" = yes; then
   7392   # Not all programs may use this symbol, but it does not hurt to define it.
   7393 
   7394 cat >>confdefs.h <<\EOF
   7395 #define X_DISPLAY_MISSING 1
   7396 EOF
   7397 
   7398   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
   7399 else
   7400   if test -n "$x_includes"; then
   7401     X_CFLAGS="$X_CFLAGS -I$x_includes"
   7402   fi
   7403 
   7404   # It would also be nice to do this for all -L options, not just this one.
   7405   if test -n "$x_libraries"; then
   7406     X_LIBS="$X_LIBS -L$x_libraries"
   7407     # For Solaris; some versions of Sun CC require a space after -R and
   7408     # others require no space.  Words are not sufficient . . . .
   7409     case `(uname -sr) 2>/dev/null` in
   7410     "SunOS 5"*)
   7411       echo "$as_me:7411: checking whether -R must be followed by a space" >&5
   7412 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
   7413       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
   7414       cat >conftest.$ac_ext <<_ACEOF
   7415 #line 7415 "configure"
   7416 #include "confdefs.h"
   7417 
   7418 int
   7419 main ()
   7420 {
   7421 
   7422   ;
   7423   return 0;
   7424 }
   7425 _ACEOF
   7426 rm -f conftest.$ac_objext conftest$ac_exeext
   7427 if { (eval echo "$as_me:7427: \"$ac_link\"") >&5
   7428   (eval $ac_link) 2>&5
   7429   ac_status=$?
   7430   echo "$as_me:7430: \$? = $ac_status" >&5
   7431   (exit $ac_status); } &&
   7432          { ac_try='test -s conftest$ac_exeext'
   7433   { (eval echo "$as_me:7433: \"$ac_try\"") >&5
   7434   (eval $ac_try) 2>&5
   7435   ac_status=$?
   7436   echo "$as_me:7436: \$? = $ac_status" >&5
   7437   (exit $ac_status); }; }; then
   7438   ac_R_nospace=yes
   7439 else
   7440   echo "$as_me: failed program was:" >&5
   7441 cat conftest.$ac_ext >&5
   7442 ac_R_nospace=no
   7443 fi
   7444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7445       if test $ac_R_nospace = yes; then
   7446 	echo "$as_me:7446: result: no" >&5
   7447 echo "${ECHO_T}no" >&6
   7448 	X_LIBS="$X_LIBS -R$x_libraries"
   7449       else
   7450 	LIBS="$ac_xsave_LIBS -R $x_libraries"
   7451 	cat >conftest.$ac_ext <<_ACEOF
   7452 #line 7452 "configure"
   7453 #include "confdefs.h"
   7454 
   7455 int
   7456 main ()
   7457 {
   7458 
   7459   ;
   7460   return 0;
   7461 }
   7462 _ACEOF
   7463 rm -f conftest.$ac_objext conftest$ac_exeext
   7464 if { (eval echo "$as_me:7464: \"$ac_link\"") >&5
   7465   (eval $ac_link) 2>&5
   7466   ac_status=$?
   7467   echo "$as_me:7467: \$? = $ac_status" >&5
   7468   (exit $ac_status); } &&
   7469          { ac_try='test -s conftest$ac_exeext'
   7470   { (eval echo "$as_me:7470: \"$ac_try\"") >&5
   7471   (eval $ac_try) 2>&5
   7472   ac_status=$?
   7473   echo "$as_me:7473: \$? = $ac_status" >&5
   7474   (exit $ac_status); }; }; then
   7475   ac_R_space=yes
   7476 else
   7477   echo "$as_me: failed program was:" >&5
   7478 cat conftest.$ac_ext >&5
   7479 ac_R_space=no
   7480 fi
   7481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7482 	if test $ac_R_space = yes; then
   7483 	  echo "$as_me:7483: result: yes" >&5
   7484 echo "${ECHO_T}yes" >&6
   7485 	  X_LIBS="$X_LIBS -R $x_libraries"
   7486 	else
   7487 	  echo "$as_me:7487: result: neither works" >&5
   7488 echo "${ECHO_T}neither works" >&6
   7489 	fi
   7490       fi
   7491       LIBS=$ac_xsave_LIBS
   7492     esac
   7493   fi
   7494 
   7495   # Check for system-dependent libraries X programs must link with.
   7496   # Do this before checking for the system-independent R6 libraries
   7497   # (-lICE), since we may need -lsocket or whatever for X linking.
   7498 
   7499   if test "$ISC" = yes; then
   7500     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
   7501   else
   7502     # Martyn Johnson says this is needed for Ultrix, if the X
   7503     # libraries were built with DECnet support.  And Karl Berry says
   7504     # the Alpha needs dnet_stub (dnet does not exist).
   7505     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
   7506     cat >conftest.$ac_ext <<_ACEOF
   7507 #line 7507 "configure"
   7508 #include "confdefs.h"
   7509 
   7510 /* Override any gcc2 internal prototype to avoid an error.  */
   7511 #ifdef __cplusplus
   7512 extern "C"
   7513 #endif
   7514 /* We use char because int might match the return type of a gcc2
   7515    builtin and then its argument prototype would still apply.  */
   7516 char XOpenDisplay ();
   7517 int
   7518 main ()
   7519 {
   7520 XOpenDisplay ();
   7521   ;
   7522   return 0;
   7523 }
   7524 _ACEOF
   7525 rm -f conftest.$ac_objext conftest$ac_exeext
   7526 if { (eval echo "$as_me:7526: \"$ac_link\"") >&5
   7527   (eval $ac_link) 2>&5
   7528   ac_status=$?
   7529   echo "$as_me:7529: \$? = $ac_status" >&5
   7530   (exit $ac_status); } &&
   7531          { ac_try='test -s conftest$ac_exeext'
   7532   { (eval echo "$as_me:7532: \"$ac_try\"") >&5
   7533   (eval $ac_try) 2>&5
   7534   ac_status=$?
   7535   echo "$as_me:7535: \$? = $ac_status" >&5
   7536   (exit $ac_status); }; }; then
   7537   :
   7538 else
   7539   echo "$as_me: failed program was:" >&5
   7540 cat conftest.$ac_ext >&5
   7541 echo "$as_me:7541: checking for dnet_ntoa in -ldnet" >&5
   7542 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
   7543 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
   7544   echo $ECHO_N "(cached) $ECHO_C" >&6
   7545 else
   7546   ac_check_lib_save_LIBS=$LIBS
   7547 LIBS="-ldnet  $LIBS"
   7548 cat >conftest.$ac_ext <<_ACEOF
   7549 #line 7549 "configure"
   7550 #include "confdefs.h"
   7551 
   7552 /* Override any gcc2 internal prototype to avoid an error.  */
   7553 #ifdef __cplusplus
   7554 extern "C"
   7555 #endif
   7556 /* We use char because int might match the return type of a gcc2
   7557    builtin and then its argument prototype would still apply.  */
   7558 char dnet_ntoa ();
   7559 int
   7560 main ()
   7561 {
   7562 dnet_ntoa ();
   7563   ;
   7564   return 0;
   7565 }
   7566 _ACEOF
   7567 rm -f conftest.$ac_objext conftest$ac_exeext
   7568 if { (eval echo "$as_me:7568: \"$ac_link\"") >&5
   7569   (eval $ac_link) 2>&5
   7570   ac_status=$?
   7571   echo "$as_me:7571: \$? = $ac_status" >&5
   7572   (exit $ac_status); } &&
   7573          { ac_try='test -s conftest$ac_exeext'
   7574   { (eval echo "$as_me:7574: \"$ac_try\"") >&5
   7575   (eval $ac_try) 2>&5
   7576   ac_status=$?
   7577   echo "$as_me:7577: \$? = $ac_status" >&5
   7578   (exit $ac_status); }; }; then
   7579   ac_cv_lib_dnet_dnet_ntoa=yes
   7580 else
   7581   echo "$as_me: failed program was:" >&5
   7582 cat conftest.$ac_ext >&5
   7583 ac_cv_lib_dnet_dnet_ntoa=no
   7584 fi
   7585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7586 LIBS=$ac_check_lib_save_LIBS
   7587 fi
   7588 echo "$as_me:7588: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
   7589 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
   7590 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
   7591   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
   7592 fi
   7593 
   7594     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
   7595       echo "$as_me:7595: checking for dnet_ntoa in -ldnet_stub" >&5
   7596 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
   7597 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
   7598   echo $ECHO_N "(cached) $ECHO_C" >&6
   7599 else
   7600   ac_check_lib_save_LIBS=$LIBS
   7601 LIBS="-ldnet_stub  $LIBS"
   7602 cat >conftest.$ac_ext <<_ACEOF
   7603 #line 7603 "configure"
   7604 #include "confdefs.h"
   7605 
   7606 /* Override any gcc2 internal prototype to avoid an error.  */
   7607 #ifdef __cplusplus
   7608 extern "C"
   7609 #endif
   7610 /* We use char because int might match the return type of a gcc2
   7611    builtin and then its argument prototype would still apply.  */
   7612 char dnet_ntoa ();
   7613 int
   7614 main ()
   7615 {
   7616 dnet_ntoa ();
   7617   ;
   7618   return 0;
   7619 }
   7620 _ACEOF
   7621 rm -f conftest.$ac_objext conftest$ac_exeext
   7622 if { (eval echo "$as_me:7622: \"$ac_link\"") >&5
   7623   (eval $ac_link) 2>&5
   7624   ac_status=$?
   7625   echo "$as_me:7625: \$? = $ac_status" >&5
   7626   (exit $ac_status); } &&
   7627          { ac_try='test -s conftest$ac_exeext'
   7628   { (eval echo "$as_me:7628: \"$ac_try\"") >&5
   7629   (eval $ac_try) 2>&5
   7630   ac_status=$?
   7631   echo "$as_me:7631: \$? = $ac_status" >&5
   7632   (exit $ac_status); }; }; then
   7633   ac_cv_lib_dnet_stub_dnet_ntoa=yes
   7634 else
   7635   echo "$as_me: failed program was:" >&5
   7636 cat conftest.$ac_ext >&5
   7637 ac_cv_lib_dnet_stub_dnet_ntoa=no
   7638 fi
   7639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7640 LIBS=$ac_check_lib_save_LIBS
   7641 fi
   7642 echo "$as_me:7642: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
   7643 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
   7644 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
   7645   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
   7646 fi
   7647 
   7648     fi
   7649 fi
   7650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7651     LIBS="$ac_xsave_LIBS"
   7652 
   7653     # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
   7654     # to get the SysV transport functions.
   7655     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
   7656     # needs -lnsl.
   7657     # The nsl library prevents programs from opening the X display
   7658     # on Irix 5.2, according to T.E. Dickey.
   7659     # The functions gethostbyname, getservbyname, and inet_addr are
   7660     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
   7661     echo "$as_me:7661: checking for gethostbyname" >&5
   7662 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
   7663 if test "${ac_cv_func_gethostbyname+set}" = set; then
   7664   echo $ECHO_N "(cached) $ECHO_C" >&6
   7665 else
   7666   cat >conftest.$ac_ext <<_ACEOF
   7667 #line 7667 "configure"
   7668 #include "confdefs.h"
   7669 /* System header to define __stub macros and hopefully few prototypes,
   7670     which can conflict with char gethostbyname (); below.  */
   7671 #include <assert.h>
   7672 /* Override any gcc2 internal prototype to avoid an error.  */
   7673 #ifdef __cplusplus
   7674 extern "C"
   7675 #endif
   7676 /* We use char because int might match the return type of a gcc2
   7677    builtin and then its argument prototype would still apply.  */
   7678 char gethostbyname ();
   7679 char (*f) ();
   7680 
   7681 int
   7682 main ()
   7683 {
   7684 /* The GNU C library defines this for functions which it implements
   7685     to always fail with ENOSYS.  Some functions are actually named
   7686     something starting with __ and the normal name is an alias.  */
   7687 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
   7688 choke me
   7689 #else
   7690 f = gethostbyname;
   7691 #endif
   7692 
   7693   ;
   7694   return 0;
   7695 }
   7696 _ACEOF
   7697 rm -f conftest.$ac_objext conftest$ac_exeext
   7698 if { (eval echo "$as_me:7698: \"$ac_link\"") >&5
   7699   (eval $ac_link) 2>&5
   7700   ac_status=$?
   7701   echo "$as_me:7701: \$? = $ac_status" >&5
   7702   (exit $ac_status); } &&
   7703          { ac_try='test -s conftest$ac_exeext'
   7704   { (eval echo "$as_me:7704: \"$ac_try\"") >&5
   7705   (eval $ac_try) 2>&5
   7706   ac_status=$?
   7707   echo "$as_me:7707: \$? = $ac_status" >&5
   7708   (exit $ac_status); }; }; then
   7709   ac_cv_func_gethostbyname=yes
   7710 else
   7711   echo "$as_me: failed program was:" >&5
   7712 cat conftest.$ac_ext >&5
   7713 ac_cv_func_gethostbyname=no
   7714 fi
   7715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7716 fi
   7717 echo "$as_me:7717: result: $ac_cv_func_gethostbyname" >&5
   7718 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
   7719 
   7720     if test $ac_cv_func_gethostbyname = no; then
   7721       echo "$as_me:7721: checking for gethostbyname in -lnsl" >&5
   7722 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
   7723 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
   7724   echo $ECHO_N "(cached) $ECHO_C" >&6
   7725 else
   7726   ac_check_lib_save_LIBS=$LIBS
   7727 LIBS="-lnsl  $LIBS"
   7728 cat >conftest.$ac_ext <<_ACEOF
   7729 #line 7729 "configure"
   7730 #include "confdefs.h"
   7731 
   7732 /* Override any gcc2 internal prototype to avoid an error.  */
   7733 #ifdef __cplusplus
   7734 extern "C"
   7735 #endif
   7736 /* We use char because int might match the return type of a gcc2
   7737    builtin and then its argument prototype would still apply.  */
   7738 char gethostbyname ();
   7739 int
   7740 main ()
   7741 {
   7742 gethostbyname ();
   7743   ;
   7744   return 0;
   7745 }
   7746 _ACEOF
   7747 rm -f conftest.$ac_objext conftest$ac_exeext
   7748 if { (eval echo "$as_me:7748: \"$ac_link\"") >&5
   7749   (eval $ac_link) 2>&5
   7750   ac_status=$?
   7751   echo "$as_me:7751: \$? = $ac_status" >&5
   7752   (exit $ac_status); } &&
   7753          { ac_try='test -s conftest$ac_exeext'
   7754   { (eval echo "$as_me:7754: \"$ac_try\"") >&5
   7755   (eval $ac_try) 2>&5
   7756   ac_status=$?
   7757   echo "$as_me:7757: \$? = $ac_status" >&5
   7758   (exit $ac_status); }; }; then
   7759   ac_cv_lib_nsl_gethostbyname=yes
   7760 else
   7761   echo "$as_me: failed program was:" >&5
   7762 cat conftest.$ac_ext >&5
   7763 ac_cv_lib_nsl_gethostbyname=no
   7764 fi
   7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7766 LIBS=$ac_check_lib_save_LIBS
   7767 fi
   7768 echo "$as_me:7768: result: $ac_cv_lib_nsl_gethostbyname" >&5
   7769 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
   7770 if test $ac_cv_lib_nsl_gethostbyname = yes; then
   7771   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
   7772 fi
   7773 
   7774       if test $ac_cv_lib_nsl_gethostbyname = no; then
   7775         echo "$as_me:7775: checking for gethostbyname in -lbsd" >&5
   7776 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
   7777 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
   7778   echo $ECHO_N "(cached) $ECHO_C" >&6
   7779 else
   7780   ac_check_lib_save_LIBS=$LIBS
   7781 LIBS="-lbsd  $LIBS"
   7782 cat >conftest.$ac_ext <<_ACEOF
   7783 #line 7783 "configure"
   7784 #include "confdefs.h"
   7785 
   7786 /* Override any gcc2 internal prototype to avoid an error.  */
   7787 #ifdef __cplusplus
   7788 extern "C"
   7789 #endif
   7790 /* We use char because int might match the return type of a gcc2
   7791    builtin and then its argument prototype would still apply.  */
   7792 char gethostbyname ();
   7793 int
   7794 main ()
   7795 {
   7796 gethostbyname ();
   7797   ;
   7798   return 0;
   7799 }
   7800 _ACEOF
   7801 rm -f conftest.$ac_objext conftest$ac_exeext
   7802 if { (eval echo "$as_me:7802: \"$ac_link\"") >&5
   7803   (eval $ac_link) 2>&5
   7804   ac_status=$?
   7805   echo "$as_me:7805: \$? = $ac_status" >&5
   7806   (exit $ac_status); } &&
   7807          { ac_try='test -s conftest$ac_exeext'
   7808   { (eval echo "$as_me:7808: \"$ac_try\"") >&5
   7809   (eval $ac_try) 2>&5
   7810   ac_status=$?
   7811   echo "$as_me:7811: \$? = $ac_status" >&5
   7812   (exit $ac_status); }; }; then
   7813   ac_cv_lib_bsd_gethostbyname=yes
   7814 else
   7815   echo "$as_me: failed program was:" >&5
   7816 cat conftest.$ac_ext >&5
   7817 ac_cv_lib_bsd_gethostbyname=no
   7818 fi
   7819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7820 LIBS=$ac_check_lib_save_LIBS
   7821 fi
   7822 echo "$as_me:7822: result: $ac_cv_lib_bsd_gethostbyname" >&5
   7823 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
   7824 if test $ac_cv_lib_bsd_gethostbyname = yes; then
   7825   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
   7826 fi
   7827 
   7828       fi
   7829     fi
   7830 
   7831     # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
   7832     # socket/setsockopt and other routines are undefined under SCO ODT
   7833     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
   7834     # on later versions), says Simon Leinen: it contains gethostby*
   7835     # variants that don't use the nameserver (or something).  -lsocket
   7836     # must be given before -lnsl if both are needed.  We assume that
   7837     # if connect needs -lnsl, so does gethostbyname.
   7838     echo "$as_me:7838: checking for connect" >&5
   7839 echo $ECHO_N "checking for connect... $ECHO_C" >&6
   7840 if test "${ac_cv_func_connect+set}" = set; then
   7841   echo $ECHO_N "(cached) $ECHO_C" >&6
   7842 else
   7843   cat >conftest.$ac_ext <<_ACEOF
   7844 #line 7844 "configure"
   7845 #include "confdefs.h"
   7846 /* System header to define __stub macros and hopefully few prototypes,
   7847     which can conflict with char connect (); below.  */
   7848 #include <assert.h>
   7849 /* Override any gcc2 internal prototype to avoid an error.  */
   7850 #ifdef __cplusplus
   7851 extern "C"
   7852 #endif
   7853 /* We use char because int might match the return type of a gcc2
   7854    builtin and then its argument prototype would still apply.  */
   7855 char connect ();
   7856 char (*f) ();
   7857 
   7858 int
   7859 main ()
   7860 {
   7861 /* The GNU C library defines this for functions which it implements
   7862     to always fail with ENOSYS.  Some functions are actually named
   7863     something starting with __ and the normal name is an alias.  */
   7864 #if defined (__stub_connect) || defined (__stub___connect)
   7865 choke me
   7866 #else
   7867 f = connect;
   7868 #endif
   7869 
   7870   ;
   7871   return 0;
   7872 }
   7873 _ACEOF
   7874 rm -f conftest.$ac_objext conftest$ac_exeext
   7875 if { (eval echo "$as_me:7875: \"$ac_link\"") >&5
   7876   (eval $ac_link) 2>&5
   7877   ac_status=$?
   7878   echo "$as_me:7878: \$? = $ac_status" >&5
   7879   (exit $ac_status); } &&
   7880          { ac_try='test -s conftest$ac_exeext'
   7881   { (eval echo "$as_me:7881: \"$ac_try\"") >&5
   7882   (eval $ac_try) 2>&5
   7883   ac_status=$?
   7884   echo "$as_me:7884: \$? = $ac_status" >&5
   7885   (exit $ac_status); }; }; then
   7886   ac_cv_func_connect=yes
   7887 else
   7888   echo "$as_me: failed program was:" >&5
   7889 cat conftest.$ac_ext >&5
   7890 ac_cv_func_connect=no
   7891 fi
   7892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7893 fi
   7894 echo "$as_me:7894: result: $ac_cv_func_connect" >&5
   7895 echo "${ECHO_T}$ac_cv_func_connect" >&6
   7896 
   7897     if test $ac_cv_func_connect = no; then
   7898       echo "$as_me:7898: checking for connect in -lsocket" >&5
   7899 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
   7900 if test "${ac_cv_lib_socket_connect+set}" = set; then
   7901   echo $ECHO_N "(cached) $ECHO_C" >&6
   7902 else
   7903   ac_check_lib_save_LIBS=$LIBS
   7904 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
   7905 cat >conftest.$ac_ext <<_ACEOF
   7906 #line 7906 "configure"
   7907 #include "confdefs.h"
   7908 
   7909 /* Override any gcc2 internal prototype to avoid an error.  */
   7910 #ifdef __cplusplus
   7911 extern "C"
   7912 #endif
   7913 /* We use char because int might match the return type of a gcc2
   7914    builtin and then its argument prototype would still apply.  */
   7915 char connect ();
   7916 int
   7917 main ()
   7918 {
   7919 connect ();
   7920   ;
   7921   return 0;
   7922 }
   7923 _ACEOF
   7924 rm -f conftest.$ac_objext conftest$ac_exeext
   7925 if { (eval echo "$as_me:7925: \"$ac_link\"") >&5
   7926   (eval $ac_link) 2>&5
   7927   ac_status=$?
   7928   echo "$as_me:7928: \$? = $ac_status" >&5
   7929   (exit $ac_status); } &&
   7930          { ac_try='test -s conftest$ac_exeext'
   7931   { (eval echo "$as_me:7931: \"$ac_try\"") >&5
   7932   (eval $ac_try) 2>&5
   7933   ac_status=$?
   7934   echo "$as_me:7934: \$? = $ac_status" >&5
   7935   (exit $ac_status); }; }; then
   7936   ac_cv_lib_socket_connect=yes
   7937 else
   7938   echo "$as_me: failed program was:" >&5
   7939 cat conftest.$ac_ext >&5
   7940 ac_cv_lib_socket_connect=no
   7941 fi
   7942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   7943 LIBS=$ac_check_lib_save_LIBS
   7944 fi
   7945 echo "$as_me:7945: result: $ac_cv_lib_socket_connect" >&5
   7946 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
   7947 if test $ac_cv_lib_socket_connect = yes; then
   7948   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
   7949 fi
   7950 
   7951     fi
   7952 
   7953     # Guillermo Gomez says -lposix is necessary on A/UX.
   7954     echo "$as_me:7954: checking for remove" >&5
   7955 echo $ECHO_N "checking for remove... $ECHO_C" >&6
   7956 if test "${ac_cv_func_remove+set}" = set; then
   7957   echo $ECHO_N "(cached) $ECHO_C" >&6
   7958 else
   7959   cat >conftest.$ac_ext <<_ACEOF
   7960 #line 7960 "configure"
   7961 #include "confdefs.h"
   7962 /* System header to define __stub macros and hopefully few prototypes,
   7963     which can conflict with char remove (); below.  */
   7964 #include <assert.h>
   7965 /* Override any gcc2 internal prototype to avoid an error.  */
   7966 #ifdef __cplusplus
   7967 extern "C"
   7968 #endif
   7969 /* We use char because int might match the return type of a gcc2
   7970    builtin and then its argument prototype would still apply.  */
   7971 char remove ();
   7972 char (*f) ();
   7973 
   7974 int
   7975 main ()
   7976 {
   7977 /* The GNU C library defines this for functions which it implements
   7978     to always fail with ENOSYS.  Some functions are actually named
   7979     something starting with __ and the normal name is an alias.  */
   7980 #if defined (__stub_remove) || defined (__stub___remove)
   7981 choke me
   7982 #else
   7983 f = remove;
   7984 #endif
   7985 
   7986   ;
   7987   return 0;
   7988 }
   7989 _ACEOF
   7990 rm -f conftest.$ac_objext conftest$ac_exeext
   7991 if { (eval echo "$as_me:7991: \"$ac_link\"") >&5
   7992   (eval $ac_link) 2>&5
   7993   ac_status=$?
   7994   echo "$as_me:7994: \$? = $ac_status" >&5
   7995   (exit $ac_status); } &&
   7996          { ac_try='test -s conftest$ac_exeext'
   7997   { (eval echo "$as_me:7997: \"$ac_try\"") >&5
   7998   (eval $ac_try) 2>&5
   7999   ac_status=$?
   8000   echo "$as_me:8000: \$? = $ac_status" >&5
   8001   (exit $ac_status); }; }; then
   8002   ac_cv_func_remove=yes
   8003 else
   8004   echo "$as_me: failed program was:" >&5
   8005 cat conftest.$ac_ext >&5
   8006 ac_cv_func_remove=no
   8007 fi
   8008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8009 fi
   8010 echo "$as_me:8010: result: $ac_cv_func_remove" >&5
   8011 echo "${ECHO_T}$ac_cv_func_remove" >&6
   8012 
   8013     if test $ac_cv_func_remove = no; then
   8014       echo "$as_me:8014: checking for remove in -lposix" >&5
   8015 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
   8016 if test "${ac_cv_lib_posix_remove+set}" = set; then
   8017   echo $ECHO_N "(cached) $ECHO_C" >&6
   8018 else
   8019   ac_check_lib_save_LIBS=$LIBS
   8020 LIBS="-lposix  $LIBS"
   8021 cat >conftest.$ac_ext <<_ACEOF
   8022 #line 8022 "configure"
   8023 #include "confdefs.h"
   8024 
   8025 /* Override any gcc2 internal prototype to avoid an error.  */
   8026 #ifdef __cplusplus
   8027 extern "C"
   8028 #endif
   8029 /* We use char because int might match the return type of a gcc2
   8030    builtin and then its argument prototype would still apply.  */
   8031 char remove ();
   8032 int
   8033 main ()
   8034 {
   8035 remove ();
   8036   ;
   8037   return 0;
   8038 }
   8039 _ACEOF
   8040 rm -f conftest.$ac_objext conftest$ac_exeext
   8041 if { (eval echo "$as_me:8041: \"$ac_link\"") >&5
   8042   (eval $ac_link) 2>&5
   8043   ac_status=$?
   8044   echo "$as_me:8044: \$? = $ac_status" >&5
   8045   (exit $ac_status); } &&
   8046          { ac_try='test -s conftest$ac_exeext'
   8047   { (eval echo "$as_me:8047: \"$ac_try\"") >&5
   8048   (eval $ac_try) 2>&5
   8049   ac_status=$?
   8050   echo "$as_me:8050: \$? = $ac_status" >&5
   8051   (exit $ac_status); }; }; then
   8052   ac_cv_lib_posix_remove=yes
   8053 else
   8054   echo "$as_me: failed program was:" >&5
   8055 cat conftest.$ac_ext >&5
   8056 ac_cv_lib_posix_remove=no
   8057 fi
   8058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8059 LIBS=$ac_check_lib_save_LIBS
   8060 fi
   8061 echo "$as_me:8061: result: $ac_cv_lib_posix_remove" >&5
   8062 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
   8063 if test $ac_cv_lib_posix_remove = yes; then
   8064   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
   8065 fi
   8066 
   8067     fi
   8068 
   8069     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
   8070     echo "$as_me:8070: checking for shmat" >&5
   8071 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
   8072 if test "${ac_cv_func_shmat+set}" = set; then
   8073   echo $ECHO_N "(cached) $ECHO_C" >&6
   8074 else
   8075   cat >conftest.$ac_ext <<_ACEOF
   8076 #line 8076 "configure"
   8077 #include "confdefs.h"
   8078 /* System header to define __stub macros and hopefully few prototypes,
   8079     which can conflict with char shmat (); below.  */
   8080 #include <assert.h>
   8081 /* Override any gcc2 internal prototype to avoid an error.  */
   8082 #ifdef __cplusplus
   8083 extern "C"
   8084 #endif
   8085 /* We use char because int might match the return type of a gcc2
   8086    builtin and then its argument prototype would still apply.  */
   8087 char shmat ();
   8088 char (*f) ();
   8089 
   8090 int
   8091 main ()
   8092 {
   8093 /* The GNU C library defines this for functions which it implements
   8094     to always fail with ENOSYS.  Some functions are actually named
   8095     something starting with __ and the normal name is an alias.  */
   8096 #if defined (__stub_shmat) || defined (__stub___shmat)
   8097 choke me
   8098 #else
   8099 f = shmat;
   8100 #endif
   8101 
   8102   ;
   8103   return 0;
   8104 }
   8105 _ACEOF
   8106 rm -f conftest.$ac_objext conftest$ac_exeext
   8107 if { (eval echo "$as_me:8107: \"$ac_link\"") >&5
   8108   (eval $ac_link) 2>&5
   8109   ac_status=$?
   8110   echo "$as_me:8110: \$? = $ac_status" >&5
   8111   (exit $ac_status); } &&
   8112          { ac_try='test -s conftest$ac_exeext'
   8113   { (eval echo "$as_me:8113: \"$ac_try\"") >&5
   8114   (eval $ac_try) 2>&5
   8115   ac_status=$?
   8116   echo "$as_me:8116: \$? = $ac_status" >&5
   8117   (exit $ac_status); }; }; then
   8118   ac_cv_func_shmat=yes
   8119 else
   8120   echo "$as_me: failed program was:" >&5
   8121 cat conftest.$ac_ext >&5
   8122 ac_cv_func_shmat=no
   8123 fi
   8124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8125 fi
   8126 echo "$as_me:8126: result: $ac_cv_func_shmat" >&5
   8127 echo "${ECHO_T}$ac_cv_func_shmat" >&6
   8128 
   8129     if test $ac_cv_func_shmat = no; then
   8130       echo "$as_me:8130: checking for shmat in -lipc" >&5
   8131 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
   8132 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
   8133   echo $ECHO_N "(cached) $ECHO_C" >&6
   8134 else
   8135   ac_check_lib_save_LIBS=$LIBS
   8136 LIBS="-lipc  $LIBS"
   8137 cat >conftest.$ac_ext <<_ACEOF
   8138 #line 8138 "configure"
   8139 #include "confdefs.h"
   8140 
   8141 /* Override any gcc2 internal prototype to avoid an error.  */
   8142 #ifdef __cplusplus
   8143 extern "C"
   8144 #endif
   8145 /* We use char because int might match the return type of a gcc2
   8146    builtin and then its argument prototype would still apply.  */
   8147 char shmat ();
   8148 int
   8149 main ()
   8150 {
   8151 shmat ();
   8152   ;
   8153   return 0;
   8154 }
   8155 _ACEOF
   8156 rm -f conftest.$ac_objext conftest$ac_exeext
   8157 if { (eval echo "$as_me:8157: \"$ac_link\"") >&5
   8158   (eval $ac_link) 2>&5
   8159   ac_status=$?
   8160   echo "$as_me:8160: \$? = $ac_status" >&5
   8161   (exit $ac_status); } &&
   8162          { ac_try='test -s conftest$ac_exeext'
   8163   { (eval echo "$as_me:8163: \"$ac_try\"") >&5
   8164   (eval $ac_try) 2>&5
   8165   ac_status=$?
   8166   echo "$as_me:8166: \$? = $ac_status" >&5
   8167   (exit $ac_status); }; }; then
   8168   ac_cv_lib_ipc_shmat=yes
   8169 else
   8170   echo "$as_me: failed program was:" >&5
   8171 cat conftest.$ac_ext >&5
   8172 ac_cv_lib_ipc_shmat=no
   8173 fi
   8174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8175 LIBS=$ac_check_lib_save_LIBS
   8176 fi
   8177 echo "$as_me:8177: result: $ac_cv_lib_ipc_shmat" >&5
   8178 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
   8179 if test $ac_cv_lib_ipc_shmat = yes; then
   8180   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
   8181 fi
   8182 
   8183     fi
   8184   fi
   8185 
   8186   # Check for libraries that X11R6 Xt/Xaw programs need.
   8187   ac_save_LDFLAGS=$LDFLAGS
   8188   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
   8189   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
   8190   # check for ICE first), but we must link in the order -lSM -lICE or
   8191   # we get undefined symbols.  So assume we have SM if we have ICE.
   8192   # These have to be linked with before -lX11, unlike the other
   8193   # libraries we check for below, so use a different variable.
   8194   # John Interrante, Karl Berry
   8195   echo "$as_me:8195: checking for IceConnectionNumber in -lICE" >&5
   8196 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
   8197 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
   8198   echo $ECHO_N "(cached) $ECHO_C" >&6
   8199 else
   8200   ac_check_lib_save_LIBS=$LIBS
   8201 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
   8202 cat >conftest.$ac_ext <<_ACEOF
   8203 #line 8203 "configure"
   8204 #include "confdefs.h"
   8205 
   8206 /* Override any gcc2 internal prototype to avoid an error.  */
   8207 #ifdef __cplusplus
   8208 extern "C"
   8209 #endif
   8210 /* We use char because int might match the return type of a gcc2
   8211    builtin and then its argument prototype would still apply.  */
   8212 char IceConnectionNumber ();
   8213 int
   8214 main ()
   8215 {
   8216 IceConnectionNumber ();
   8217   ;
   8218   return 0;
   8219 }
   8220 _ACEOF
   8221 rm -f conftest.$ac_objext conftest$ac_exeext
   8222 if { (eval echo "$as_me:8222: \"$ac_link\"") >&5
   8223   (eval $ac_link) 2>&5
   8224   ac_status=$?
   8225   echo "$as_me:8225: \$? = $ac_status" >&5
   8226   (exit $ac_status); } &&
   8227          { ac_try='test -s conftest$ac_exeext'
   8228   { (eval echo "$as_me:8228: \"$ac_try\"") >&5
   8229   (eval $ac_try) 2>&5
   8230   ac_status=$?
   8231   echo "$as_me:8231: \$? = $ac_status" >&5
   8232   (exit $ac_status); }; }; then
   8233   ac_cv_lib_ICE_IceConnectionNumber=yes
   8234 else
   8235   echo "$as_me: failed program was:" >&5
   8236 cat conftest.$ac_ext >&5
   8237 ac_cv_lib_ICE_IceConnectionNumber=no
   8238 fi
   8239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8240 LIBS=$ac_check_lib_save_LIBS
   8241 fi
   8242 echo "$as_me:8242: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
   8243 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
   8244 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
   8245   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
   8246 fi
   8247 
   8248   LDFLAGS=$ac_save_LDFLAGS
   8249 
   8250 fi
   8251 
   8252 echo "$as_me:8252: checking if you want to use pkg-config" >&5
   8253 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
   8254 
   8255 # Check whether --with-pkg-config or --without-pkg-config was given.
   8256 if test "${with_pkg_config+set}" = set; then
   8257   withval="$with_pkg_config"
   8258   cf_pkg_config=$withval
   8259 else
   8260   cf_pkg_config=yes
   8261 fi;
   8262 echo "$as_me:8262: result: $cf_pkg_config" >&5
   8263 echo "${ECHO_T}$cf_pkg_config" >&6
   8264 
   8265 case $cf_pkg_config in #(vi
   8266 no) #(vi
   8267 	PKG_CONFIG=none
   8268 	;;
   8269 yes) #(vi
   8270 	if test -n "$ac_tool_prefix"; then
   8271   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   8272 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   8273 echo "$as_me:8273: checking for $ac_word" >&5
   8274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   8275 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
   8276   echo $ECHO_N "(cached) $ECHO_C" >&6
   8277 else
   8278   case $PKG_CONFIG in
   8279   [\\/]* | ?:[\\/]*)
   8280   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   8281   ;;
   8282   *)
   8283   ac_save_IFS=$IFS; IFS=$ac_path_separator
   8284 ac_dummy="$PATH"
   8285 for ac_dir in $ac_dummy; do
   8286   IFS=$ac_save_IFS
   8287   test -z "$ac_dir" && ac_dir=.
   8288   if $as_executable_p "$ac_dir/$ac_word"; then
   8289    ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
   8290    echo "$as_me:8290: found $ac_dir/$ac_word" >&5
   8291    break
   8292 fi
   8293 done
   8294 
   8295   ;;
   8296 esac
   8297 fi
   8298 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   8299 
   8300 if test -n "$PKG_CONFIG"; then
   8301   echo "$as_me:8301: result: $PKG_CONFIG" >&5
   8302 echo "${ECHO_T}$PKG_CONFIG" >&6
   8303 else
   8304   echo "$as_me:8304: result: no" >&5
   8305 echo "${ECHO_T}no" >&6
   8306 fi
   8307 
   8308 fi
   8309 if test -z "$ac_cv_path_PKG_CONFIG"; then
   8310   ac_pt_PKG_CONFIG=$PKG_CONFIG
   8311   # Extract the first word of "pkg-config", so it can be a program name with args.
   8312 set dummy pkg-config; ac_word=$2
   8313 echo "$as_me:8313: checking for $ac_word" >&5
   8314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   8315 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
   8316   echo $ECHO_N "(cached) $ECHO_C" >&6
   8317 else
   8318   case $ac_pt_PKG_CONFIG in
   8319   [\\/]* | ?:[\\/]*)
   8320   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   8321   ;;
   8322   *)
   8323   ac_save_IFS=$IFS; IFS=$ac_path_separator
   8324 ac_dummy="$PATH"
   8325 for ac_dir in $ac_dummy; do
   8326   IFS=$ac_save_IFS
   8327   test -z "$ac_dir" && ac_dir=.
   8328   if $as_executable_p "$ac_dir/$ac_word"; then
   8329    ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
   8330    echo "$as_me:8330: found $ac_dir/$ac_word" >&5
   8331    break
   8332 fi
   8333 done
   8334 
   8335   test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
   8336   ;;
   8337 esac
   8338 fi
   8339 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   8340 
   8341 if test -n "$ac_pt_PKG_CONFIG"; then
   8342   echo "$as_me:8342: result: $ac_pt_PKG_CONFIG" >&5
   8343 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
   8344 else
   8345   echo "$as_me:8345: result: no" >&5
   8346 echo "${ECHO_T}no" >&6
   8347 fi
   8348 
   8349   PKG_CONFIG=$ac_pt_PKG_CONFIG
   8350 else
   8351   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   8352 fi
   8353 
   8354 	;;
   8355 *)
   8356 	PKG_CONFIG=$withval
   8357 	;;
   8358 esac
   8359 
   8360 test -z "$PKG_CONFIG" && PKG_CONFIG=none
   8361 if test "$PKG_CONFIG" != none ; then
   8362 
   8363 if test "x$prefix" != xNONE; then
   8364   cf_path_syntax="$prefix"
   8365 else
   8366   cf_path_syntax="$ac_default_prefix"
   8367 fi
   8368 
   8369 case ".$PKG_CONFIG" in #(vi
   8370 .\$\(*\)*|.\'*\'*) #(vi
   8371   ;;
   8372 ..|./*|.\\*) #(vi
   8373   ;;
   8374 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
   8375   ;;
   8376 .\${*prefix}*) #(vi
   8377   eval PKG_CONFIG="$PKG_CONFIG"
   8378   case ".$PKG_CONFIG" in #(vi
   8379   .NONE/*)
   8380     PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
   8381     ;;
   8382   esac
   8383   ;; #(vi
   8384 .no|.NONE/*)
   8385   PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
   8386   ;;
   8387 *)
   8388   { { echo "$as_me:8388: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
   8389 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
   8390    { (exit 1); exit 1; }; }
   8391   ;;
   8392 esac
   8393 
   8394 fi
   8395 
   8396 cf_have_X_LIBS=no
   8397 
   8398 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
   8399 	test -n "$verbose" && echo "	found package xt" 1>&6
   8400 
   8401 echo "${as_me:-configure}:8401: testing found package xt ..." 1>&5
   8402 
   8403 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
   8404 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   xt 2>/dev/null`"
   8405 	test -n "$verbose" && echo "	package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
   8406 
   8407 echo "${as_me:-configure}:8407: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   8408 
   8409 	test -n "$verbose" && echo "	package xt LIBS: $cf_pkgconfig_libs" 1>&6
   8410 
   8411 echo "${as_me:-configure}:8411: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
   8412 
   8413 cf_fix_cppflags=no
   8414 cf_new_cflags=
   8415 cf_new_cppflags=
   8416 cf_new_extra_cppflags=
   8417 
   8418 for cf_add_cflags in $cf_pkgconfig_incs
   8419 do
   8420 case $cf_fix_cppflags in
   8421 no)
   8422 	case $cf_add_cflags in #(vi
   8423 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   8424 		case $cf_add_cflags in
   8425 		-D*)
   8426 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   8427 
   8428 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   8429 				&& test -z "${cf_tst_cflags}" \
   8430 				&& cf_fix_cppflags=yes
   8431 
   8432 			if test $cf_fix_cppflags = yes ; then
   8433 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8434 				continue
   8435 			elif test "${cf_tst_cflags}" = "\"'" ; then
   8436 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8437 				continue
   8438 			fi
   8439 			;;
   8440 		esac
   8441 		case "$CPPFLAGS" in
   8442 		*$cf_add_cflags) #(vi
   8443 			;;
   8444 		*) #(vi
   8445 			case $cf_add_cflags in #(vi
   8446 			-D*)
   8447 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   8448 
   8449 CPPFLAGS=`echo "$CPPFLAGS" | \
   8450 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   8451 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   8452 
   8453 				;;
   8454 			esac
   8455 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   8456 			;;
   8457 		esac
   8458 		;;
   8459 	*)
   8460 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   8461 		;;
   8462 	esac
   8463 	;;
   8464 yes)
   8465 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8466 
   8467 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   8468 
   8469 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   8470 		&& test -z "${cf_tst_cflags}" \
   8471 		&& cf_fix_cppflags=no
   8472 	;;
   8473 esac
   8474 done
   8475 
   8476 if test -n "$cf_new_cflags" ; then
   8477 
   8478 	CFLAGS="$CFLAGS $cf_new_cflags"
   8479 fi
   8480 
   8481 if test -n "$cf_new_cppflags" ; then
   8482 
   8483 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   8484 fi
   8485 
   8486 if test -n "$cf_new_extra_cppflags" ; then
   8487 
   8488 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   8489 fi
   8490 
   8491 	LIBS="$cf_pkgconfig_libs $LIBS"
   8492 
   8493 	case "x$LIBS" in #(vi
   8494 	*-lX11*) #(vi
   8495 		;;
   8496 	*)
   8497 # we have an "xt" package, but it may omit Xt's dependency on X11
   8498 echo "$as_me:8498: checking for usable X dependency" >&5
   8499 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
   8500 if test "${cf_cv_xt_x11_compat+set}" = set; then
   8501   echo $ECHO_N "(cached) $ECHO_C" >&6
   8502 else
   8503 
   8504 cat >conftest.$ac_ext <<_ACEOF
   8505 #line 8505 "configure"
   8506 #include "confdefs.h"
   8507 
   8508 #include <X11/Xlib.h>
   8509 
   8510 int
   8511 main ()
   8512 {
   8513 
   8514 	int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
   8515 	int rc2 = XClearWindow((Display*) 0, (Window) 0);
   8516 	int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
   8517 	int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
   8518 
   8519   ;
   8520   return 0;
   8521 }
   8522 _ACEOF
   8523 rm -f conftest.$ac_objext conftest$ac_exeext
   8524 if { (eval echo "$as_me:8524: \"$ac_link\"") >&5
   8525   (eval $ac_link) 2>&5
   8526   ac_status=$?
   8527   echo "$as_me:8527: \$? = $ac_status" >&5
   8528   (exit $ac_status); } &&
   8529          { ac_try='test -s conftest$ac_exeext'
   8530   { (eval echo "$as_me:8530: \"$ac_try\"") >&5
   8531   (eval $ac_try) 2>&5
   8532   ac_status=$?
   8533   echo "$as_me:8533: \$? = $ac_status" >&5
   8534   (exit $ac_status); }; }; then
   8535   cf_cv_xt_x11_compat=yes
   8536 else
   8537   echo "$as_me: failed program was:" >&5
   8538 cat conftest.$ac_ext >&5
   8539 cf_cv_xt_x11_compat=no
   8540 fi
   8541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8542 fi
   8543 echo "$as_me:8543: result: $cf_cv_xt_x11_compat" >&5
   8544 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
   8545 		if test "$cf_cv_xt_x11_compat" = no
   8546 		then
   8547 			test -n "$verbose" && echo "	work around broken X11 dependency" 1>&6
   8548 
   8549 echo "${as_me:-configure}:8549: testing work around broken X11 dependency ..." 1>&5
   8550 
   8551 			# 2010/11/19 - good enough until a working Xt on Xcb is delivered.
   8552 
   8553 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
   8554 	test -n "$verbose" && echo "	found package x11" 1>&6
   8555 
   8556 echo "${as_me:-configure}:8556: testing found package x11 ..." 1>&5
   8557 
   8558 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
   8559 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   x11 2>/dev/null`"
   8560 	test -n "$verbose" && echo "	package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
   8561 
   8562 echo "${as_me:-configure}:8562: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   8563 
   8564 	test -n "$verbose" && echo "	package x11 LIBS: $cf_pkgconfig_libs" 1>&6
   8565 
   8566 echo "${as_me:-configure}:8566: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
   8567 
   8568 cf_fix_cppflags=no
   8569 cf_new_cflags=
   8570 cf_new_cppflags=
   8571 cf_new_extra_cppflags=
   8572 
   8573 for cf_add_cflags in $cf_pkgconfig_incs
   8574 do
   8575 case $cf_fix_cppflags in
   8576 no)
   8577 	case $cf_add_cflags in #(vi
   8578 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   8579 		case $cf_add_cflags in
   8580 		-D*)
   8581 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   8582 
   8583 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   8584 				&& test -z "${cf_tst_cflags}" \
   8585 				&& cf_fix_cppflags=yes
   8586 
   8587 			if test $cf_fix_cppflags = yes ; then
   8588 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8589 				continue
   8590 			elif test "${cf_tst_cflags}" = "\"'" ; then
   8591 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8592 				continue
   8593 			fi
   8594 			;;
   8595 		esac
   8596 		case "$CPPFLAGS" in
   8597 		*$cf_add_cflags) #(vi
   8598 			;;
   8599 		*) #(vi
   8600 			case $cf_add_cflags in #(vi
   8601 			-D*)
   8602 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   8603 
   8604 CPPFLAGS=`echo "$CPPFLAGS" | \
   8605 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   8606 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   8607 
   8608 				;;
   8609 			esac
   8610 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   8611 			;;
   8612 		esac
   8613 		;;
   8614 	*)
   8615 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   8616 		;;
   8617 	esac
   8618 	;;
   8619 yes)
   8620 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8621 
   8622 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   8623 
   8624 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   8625 		&& test -z "${cf_tst_cflags}" \
   8626 		&& cf_fix_cppflags=no
   8627 	;;
   8628 esac
   8629 done
   8630 
   8631 if test -n "$cf_new_cflags" ; then
   8632 
   8633 	CFLAGS="$CFLAGS $cf_new_cflags"
   8634 fi
   8635 
   8636 if test -n "$cf_new_cppflags" ; then
   8637 
   8638 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   8639 fi
   8640 
   8641 if test -n "$cf_new_extra_cppflags" ; then
   8642 
   8643 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   8644 fi
   8645 
   8646 	LIBS="$cf_pkgconfig_libs $LIBS"
   8647 	:
   8648 else
   8649 
   8650 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   8651 
   8652 echo "${as_me:-configure}:8652: testing ...before $LIBS ..." 1>&5
   8653 
   8654 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s,-lXt ,-lXt -lX11 ," -e 's/  / /g'`
   8655 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   8656 
   8657 echo "${as_me:-configure}:8657: testing ...after  $LIBS ..." 1>&5
   8658 
   8659 fi
   8660 
   8661 		fi
   8662 		;;
   8663 	esac
   8664 
   8665 echo "$as_me:8665: checking for usable X Toolkit package" >&5
   8666 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
   8667 if test "${cf_cv_xt_ice_compat+set}" = set; then
   8668   echo $ECHO_N "(cached) $ECHO_C" >&6
   8669 else
   8670 
   8671 cat >conftest.$ac_ext <<_ACEOF
   8672 #line 8672 "configure"
   8673 #include "confdefs.h"
   8674 
   8675 #include <X11/Shell.h>
   8676 
   8677 int
   8678 main ()
   8679 {
   8680 int num = IceConnectionNumber(0)
   8681 
   8682   ;
   8683   return 0;
   8684 }
   8685 _ACEOF
   8686 rm -f conftest.$ac_objext conftest$ac_exeext
   8687 if { (eval echo "$as_me:8687: \"$ac_link\"") >&5
   8688   (eval $ac_link) 2>&5
   8689   ac_status=$?
   8690   echo "$as_me:8690: \$? = $ac_status" >&5
   8691   (exit $ac_status); } &&
   8692          { ac_try='test -s conftest$ac_exeext'
   8693   { (eval echo "$as_me:8693: \"$ac_try\"") >&5
   8694   (eval $ac_try) 2>&5
   8695   ac_status=$?
   8696   echo "$as_me:8696: \$? = $ac_status" >&5
   8697   (exit $ac_status); }; }; then
   8698   cf_cv_xt_ice_compat=yes
   8699 else
   8700   echo "$as_me: failed program was:" >&5
   8701 cat conftest.$ac_ext >&5
   8702 cf_cv_xt_ice_compat=no
   8703 fi
   8704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   8705 fi
   8706 echo "$as_me:8706: result: $cf_cv_xt_ice_compat" >&5
   8707 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
   8708 
   8709 	if test "$cf_cv_xt_ice_compat" = no
   8710 	then
   8711 		# workaround for broken ".pc" files used for X Toolkit.
   8712 		case "x$X_PRE_LIBS" in #(vi
   8713 		*-lICE*)
   8714 			case "x$LIBS" in #(vi
   8715 			*-lICE*) #(vi
   8716 				;;
   8717 			*)
   8718 				test -n "$verbose" && echo "	work around broken ICE dependency" 1>&6
   8719 
   8720 echo "${as_me:-configure}:8720: testing work around broken ICE dependency ..." 1>&5
   8721 
   8722 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
   8723 	test -n "$verbose" && echo "	found package ice" 1>&6
   8724 
   8725 echo "${as_me:-configure}:8725: testing found package ice ..." 1>&5
   8726 
   8727 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
   8728 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   ice 2>/dev/null`"
   8729 	test -n "$verbose" && echo "	package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
   8730 
   8731 echo "${as_me:-configure}:8731: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   8732 
   8733 	test -n "$verbose" && echo "	package ice LIBS: $cf_pkgconfig_libs" 1>&6
   8734 
   8735 echo "${as_me:-configure}:8735: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
   8736 
   8737 cf_fix_cppflags=no
   8738 cf_new_cflags=
   8739 cf_new_cppflags=
   8740 cf_new_extra_cppflags=
   8741 
   8742 for cf_add_cflags in $cf_pkgconfig_incs
   8743 do
   8744 case $cf_fix_cppflags in
   8745 no)
   8746 	case $cf_add_cflags in #(vi
   8747 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   8748 		case $cf_add_cflags in
   8749 		-D*)
   8750 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   8751 
   8752 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   8753 				&& test -z "${cf_tst_cflags}" \
   8754 				&& cf_fix_cppflags=yes
   8755 
   8756 			if test $cf_fix_cppflags = yes ; then
   8757 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8758 				continue
   8759 			elif test "${cf_tst_cflags}" = "\"'" ; then
   8760 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8761 				continue
   8762 			fi
   8763 			;;
   8764 		esac
   8765 		case "$CPPFLAGS" in
   8766 		*$cf_add_cflags) #(vi
   8767 			;;
   8768 		*) #(vi
   8769 			case $cf_add_cflags in #(vi
   8770 			-D*)
   8771 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   8772 
   8773 CPPFLAGS=`echo "$CPPFLAGS" | \
   8774 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   8775 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   8776 
   8777 				;;
   8778 			esac
   8779 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   8780 			;;
   8781 		esac
   8782 		;;
   8783 	*)
   8784 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   8785 		;;
   8786 	esac
   8787 	;;
   8788 yes)
   8789 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8790 
   8791 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   8792 
   8793 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   8794 		&& test -z "${cf_tst_cflags}" \
   8795 		&& cf_fix_cppflags=no
   8796 	;;
   8797 esac
   8798 done
   8799 
   8800 if test -n "$cf_new_cflags" ; then
   8801 
   8802 	CFLAGS="$CFLAGS $cf_new_cflags"
   8803 fi
   8804 
   8805 if test -n "$cf_new_cppflags" ; then
   8806 
   8807 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   8808 fi
   8809 
   8810 if test -n "$cf_new_extra_cppflags" ; then
   8811 
   8812 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   8813 fi
   8814 
   8815 	LIBS="$cf_pkgconfig_libs $LIBS"
   8816 
   8817 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
   8818 	test -n "$verbose" && echo "	found package sm" 1>&6
   8819 
   8820 echo "${as_me:-configure}:8820: testing found package sm ..." 1>&5
   8821 
   8822 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
   8823 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   sm 2>/dev/null`"
   8824 	test -n "$verbose" && echo "	package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
   8825 
   8826 echo "${as_me:-configure}:8826: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   8827 
   8828 	test -n "$verbose" && echo "	package sm LIBS: $cf_pkgconfig_libs" 1>&6
   8829 
   8830 echo "${as_me:-configure}:8830: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
   8831 
   8832 cf_fix_cppflags=no
   8833 cf_new_cflags=
   8834 cf_new_cppflags=
   8835 cf_new_extra_cppflags=
   8836 
   8837 for cf_add_cflags in $cf_pkgconfig_incs
   8838 do
   8839 case $cf_fix_cppflags in
   8840 no)
   8841 	case $cf_add_cflags in #(vi
   8842 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   8843 		case $cf_add_cflags in
   8844 		-D*)
   8845 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   8846 
   8847 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   8848 				&& test -z "${cf_tst_cflags}" \
   8849 				&& cf_fix_cppflags=yes
   8850 
   8851 			if test $cf_fix_cppflags = yes ; then
   8852 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8853 				continue
   8854 			elif test "${cf_tst_cflags}" = "\"'" ; then
   8855 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8856 				continue
   8857 			fi
   8858 			;;
   8859 		esac
   8860 		case "$CPPFLAGS" in
   8861 		*$cf_add_cflags) #(vi
   8862 			;;
   8863 		*) #(vi
   8864 			case $cf_add_cflags in #(vi
   8865 			-D*)
   8866 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   8867 
   8868 CPPFLAGS=`echo "$CPPFLAGS" | \
   8869 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   8870 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   8871 
   8872 				;;
   8873 			esac
   8874 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   8875 			;;
   8876 		esac
   8877 		;;
   8878 	*)
   8879 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   8880 		;;
   8881 	esac
   8882 	;;
   8883 yes)
   8884 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8885 
   8886 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   8887 
   8888 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   8889 		&& test -z "${cf_tst_cflags}" \
   8890 		&& cf_fix_cppflags=no
   8891 	;;
   8892 esac
   8893 done
   8894 
   8895 if test -n "$cf_new_cflags" ; then
   8896 
   8897 	CFLAGS="$CFLAGS $cf_new_cflags"
   8898 fi
   8899 
   8900 if test -n "$cf_new_cppflags" ; then
   8901 
   8902 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   8903 fi
   8904 
   8905 if test -n "$cf_new_extra_cppflags" ; then
   8906 
   8907 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   8908 fi
   8909 
   8910 	LIBS="$cf_pkgconfig_libs $LIBS"
   8911 	:
   8912 else
   8913 	:
   8914 fi
   8915 
   8916 else
   8917 
   8918 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   8919 
   8920 echo "${as_me:-configure}:8920: testing ...before $LIBS ..." 1>&5
   8921 
   8922 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s,-lXt ,-lXt $X_PRE_LIBS ," -e 's/  / /g'`
   8923 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   8924 
   8925 echo "${as_me:-configure}:8925: testing ...after  $LIBS ..." 1>&5
   8926 
   8927 fi
   8928 
   8929 				;;
   8930 			esac
   8931 			;;
   8932 		esac
   8933 	fi
   8934 
   8935 	cf_have_X_LIBS=yes
   8936 
   8937 else
   8938 
   8939 	LDFLAGS="$X_LIBS $LDFLAGS"
   8940 
   8941 test -n "$verbose" && echo "	checking additions to CFLAGS" 1>&6
   8942 
   8943 echo "${as_me:-configure}:8943: testing checking additions to CFLAGS ..." 1>&5
   8944 
   8945 cf_check_cflags="$CFLAGS"
   8946 cf_check_cppflags="$CPPFLAGS"
   8947 
   8948 cf_fix_cppflags=no
   8949 cf_new_cflags=
   8950 cf_new_cppflags=
   8951 cf_new_extra_cppflags=
   8952 
   8953 for cf_add_cflags in $X_CFLAGS
   8954 do
   8955 case $cf_fix_cppflags in
   8956 no)
   8957 	case $cf_add_cflags in #(vi
   8958 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   8959 		case $cf_add_cflags in
   8960 		-D*)
   8961 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   8962 
   8963 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   8964 				&& test -z "${cf_tst_cflags}" \
   8965 				&& cf_fix_cppflags=yes
   8966 
   8967 			if test $cf_fix_cppflags = yes ; then
   8968 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8969 				continue
   8970 			elif test "${cf_tst_cflags}" = "\"'" ; then
   8971 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   8972 				continue
   8973 			fi
   8974 			;;
   8975 		esac
   8976 		case "$CPPFLAGS" in
   8977 		*$cf_add_cflags) #(vi
   8978 			;;
   8979 		*) #(vi
   8980 			case $cf_add_cflags in #(vi
   8981 			-D*)
   8982 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   8983 
   8984 CPPFLAGS=`echo "$CPPFLAGS" | \
   8985 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   8986 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   8987 
   8988 				;;
   8989 			esac
   8990 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   8991 			;;
   8992 		esac
   8993 		;;
   8994 	*)
   8995 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   8996 		;;
   8997 	esac
   8998 	;;
   8999 yes)
   9000 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9001 
   9002 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9003 
   9004 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9005 		&& test -z "${cf_tst_cflags}" \
   9006 		&& cf_fix_cppflags=no
   9007 	;;
   9008 esac
   9009 done
   9010 
   9011 if test -n "$cf_new_cflags" ; then
   9012 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   9013 
   9014 echo "${as_me:-configure}:9014: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   9015 
   9016 	CFLAGS="$CFLAGS $cf_new_cflags"
   9017 fi
   9018 
   9019 if test -n "$cf_new_cppflags" ; then
   9020 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   9021 
   9022 echo "${as_me:-configure}:9022: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   9023 
   9024 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   9025 fi
   9026 
   9027 if test -n "$cf_new_extra_cppflags" ; then
   9028 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   9029 
   9030 echo "${as_me:-configure}:9030: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   9031 
   9032 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   9033 fi
   9034 
   9035 if test "$cf_check_cflags" != "$CFLAGS" ; then
   9036 cat >conftest.$ac_ext <<_ACEOF
   9037 #line 9037 "configure"
   9038 #include "confdefs.h"
   9039 #include <stdio.h>
   9040 int
   9041 main ()
   9042 {
   9043 printf("Hello world");
   9044   ;
   9045   return 0;
   9046 }
   9047 _ACEOF
   9048 rm -f conftest.$ac_objext conftest$ac_exeext
   9049 if { (eval echo "$as_me:9049: \"$ac_link\"") >&5
   9050   (eval $ac_link) 2>&5
   9051   ac_status=$?
   9052   echo "$as_me:9052: \$? = $ac_status" >&5
   9053   (exit $ac_status); } &&
   9054          { ac_try='test -s conftest$ac_exeext'
   9055   { (eval echo "$as_me:9055: \"$ac_try\"") >&5
   9056   (eval $ac_try) 2>&5
   9057   ac_status=$?
   9058   echo "$as_me:9058: \$? = $ac_status" >&5
   9059   (exit $ac_status); }; }; then
   9060   :
   9061 else
   9062   echo "$as_me: failed program was:" >&5
   9063 cat conftest.$ac_ext >&5
   9064 test -n "$verbose" && echo "	test-compile failed.  Undoing change to \$CFLAGS" 1>&6
   9065 
   9066 echo "${as_me:-configure}:9066: testing test-compile failed.  Undoing change to \$CFLAGS ..." 1>&5
   9067 
   9068 	 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
   9069 		 test -n "$verbose" && echo "	but keeping change to \$CPPFLAGS" 1>&6
   9070 
   9071 echo "${as_me:-configure}:9071: testing but keeping change to \$CPPFLAGS ..." 1>&5
   9072 
   9073 	 fi
   9074 	 CFLAGS="$cf_check_flags"
   9075 fi
   9076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9077 fi
   9078 
   9079 	echo "$as_me:9079: checking for XOpenDisplay" >&5
   9080 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
   9081 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
   9082   echo $ECHO_N "(cached) $ECHO_C" >&6
   9083 else
   9084   cat >conftest.$ac_ext <<_ACEOF
   9085 #line 9085 "configure"
   9086 #include "confdefs.h"
   9087 /* System header to define __stub macros and hopefully few prototypes,
   9088     which can conflict with char XOpenDisplay (); below.  */
   9089 #include <assert.h>
   9090 /* Override any gcc2 internal prototype to avoid an error.  */
   9091 #ifdef __cplusplus
   9092 extern "C"
   9093 #endif
   9094 /* We use char because int might match the return type of a gcc2
   9095    builtin and then its argument prototype would still apply.  */
   9096 char XOpenDisplay ();
   9097 char (*f) ();
   9098 
   9099 int
   9100 main ()
   9101 {
   9102 /* The GNU C library defines this for functions which it implements
   9103     to always fail with ENOSYS.  Some functions are actually named
   9104     something starting with __ and the normal name is an alias.  */
   9105 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
   9106 choke me
   9107 #else
   9108 f = XOpenDisplay;
   9109 #endif
   9110 
   9111   ;
   9112   return 0;
   9113 }
   9114 _ACEOF
   9115 rm -f conftest.$ac_objext conftest$ac_exeext
   9116 if { (eval echo "$as_me:9116: \"$ac_link\"") >&5
   9117   (eval $ac_link) 2>&5
   9118   ac_status=$?
   9119   echo "$as_me:9119: \$? = $ac_status" >&5
   9120   (exit $ac_status); } &&
   9121          { ac_try='test -s conftest$ac_exeext'
   9122   { (eval echo "$as_me:9122: \"$ac_try\"") >&5
   9123   (eval $ac_try) 2>&5
   9124   ac_status=$?
   9125   echo "$as_me:9125: \$? = $ac_status" >&5
   9126   (exit $ac_status); }; }; then
   9127   ac_cv_func_XOpenDisplay=yes
   9128 else
   9129   echo "$as_me: failed program was:" >&5
   9130 cat conftest.$ac_ext >&5
   9131 ac_cv_func_XOpenDisplay=no
   9132 fi
   9133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9134 fi
   9135 echo "$as_me:9135: result: $ac_cv_func_XOpenDisplay" >&5
   9136 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
   9137 if test $ac_cv_func_XOpenDisplay = yes; then
   9138   :
   9139 else
   9140 
   9141 	echo "$as_me:9141: checking for XOpenDisplay in -lX11" >&5
   9142 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
   9143 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
   9144   echo $ECHO_N "(cached) $ECHO_C" >&6
   9145 else
   9146   ac_check_lib_save_LIBS=$LIBS
   9147 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
   9148 cat >conftest.$ac_ext <<_ACEOF
   9149 #line 9149 "configure"
   9150 #include "confdefs.h"
   9151 
   9152 /* Override any gcc2 internal prototype to avoid an error.  */
   9153 #ifdef __cplusplus
   9154 extern "C"
   9155 #endif
   9156 /* We use char because int might match the return type of a gcc2
   9157    builtin and then its argument prototype would still apply.  */
   9158 char XOpenDisplay ();
   9159 int
   9160 main ()
   9161 {
   9162 XOpenDisplay ();
   9163   ;
   9164   return 0;
   9165 }
   9166 _ACEOF
   9167 rm -f conftest.$ac_objext conftest$ac_exeext
   9168 if { (eval echo "$as_me:9168: \"$ac_link\"") >&5
   9169   (eval $ac_link) 2>&5
   9170   ac_status=$?
   9171   echo "$as_me:9171: \$? = $ac_status" >&5
   9172   (exit $ac_status); } &&
   9173          { ac_try='test -s conftest$ac_exeext'
   9174   { (eval echo "$as_me:9174: \"$ac_try\"") >&5
   9175   (eval $ac_try) 2>&5
   9176   ac_status=$?
   9177   echo "$as_me:9177: \$? = $ac_status" >&5
   9178   (exit $ac_status); }; }; then
   9179   ac_cv_lib_X11_XOpenDisplay=yes
   9180 else
   9181   echo "$as_me: failed program was:" >&5
   9182 cat conftest.$ac_ext >&5
   9183 ac_cv_lib_X11_XOpenDisplay=no
   9184 fi
   9185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9186 LIBS=$ac_check_lib_save_LIBS
   9187 fi
   9188 echo "$as_me:9188: result: $ac_cv_lib_X11_XOpenDisplay" >&5
   9189 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
   9190 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
   9191   LIBS="-lX11 $LIBS"
   9192 fi
   9193 
   9194 fi
   9195 
   9196 	echo "$as_me:9196: checking for XtAppInitialize" >&5
   9197 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
   9198 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
   9199   echo $ECHO_N "(cached) $ECHO_C" >&6
   9200 else
   9201   cat >conftest.$ac_ext <<_ACEOF
   9202 #line 9202 "configure"
   9203 #include "confdefs.h"
   9204 /* System header to define __stub macros and hopefully few prototypes,
   9205     which can conflict with char XtAppInitialize (); below.  */
   9206 #include <assert.h>
   9207 /* Override any gcc2 internal prototype to avoid an error.  */
   9208 #ifdef __cplusplus
   9209 extern "C"
   9210 #endif
   9211 /* We use char because int might match the return type of a gcc2
   9212    builtin and then its argument prototype would still apply.  */
   9213 char XtAppInitialize ();
   9214 char (*f) ();
   9215 
   9216 int
   9217 main ()
   9218 {
   9219 /* The GNU C library defines this for functions which it implements
   9220     to always fail with ENOSYS.  Some functions are actually named
   9221     something starting with __ and the normal name is an alias.  */
   9222 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
   9223 choke me
   9224 #else
   9225 f = XtAppInitialize;
   9226 #endif
   9227 
   9228   ;
   9229   return 0;
   9230 }
   9231 _ACEOF
   9232 rm -f conftest.$ac_objext conftest$ac_exeext
   9233 if { (eval echo "$as_me:9233: \"$ac_link\"") >&5
   9234   (eval $ac_link) 2>&5
   9235   ac_status=$?
   9236   echo "$as_me:9236: \$? = $ac_status" >&5
   9237   (exit $ac_status); } &&
   9238          { ac_try='test -s conftest$ac_exeext'
   9239   { (eval echo "$as_me:9239: \"$ac_try\"") >&5
   9240   (eval $ac_try) 2>&5
   9241   ac_status=$?
   9242   echo "$as_me:9242: \$? = $ac_status" >&5
   9243   (exit $ac_status); }; }; then
   9244   ac_cv_func_XtAppInitialize=yes
   9245 else
   9246   echo "$as_me: failed program was:" >&5
   9247 cat conftest.$ac_ext >&5
   9248 ac_cv_func_XtAppInitialize=no
   9249 fi
   9250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9251 fi
   9252 echo "$as_me:9252: result: $ac_cv_func_XtAppInitialize" >&5
   9253 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
   9254 if test $ac_cv_func_XtAppInitialize = yes; then
   9255   :
   9256 else
   9257 
   9258 	echo "$as_me:9258: checking for XtAppInitialize in -lXt" >&5
   9259 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
   9260 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
   9261   echo $ECHO_N "(cached) $ECHO_C" >&6
   9262 else
   9263   ac_check_lib_save_LIBS=$LIBS
   9264 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
   9265 cat >conftest.$ac_ext <<_ACEOF
   9266 #line 9266 "configure"
   9267 #include "confdefs.h"
   9268 
   9269 /* Override any gcc2 internal prototype to avoid an error.  */
   9270 #ifdef __cplusplus
   9271 extern "C"
   9272 #endif
   9273 /* We use char because int might match the return type of a gcc2
   9274    builtin and then its argument prototype would still apply.  */
   9275 char XtAppInitialize ();
   9276 int
   9277 main ()
   9278 {
   9279 XtAppInitialize ();
   9280   ;
   9281   return 0;
   9282 }
   9283 _ACEOF
   9284 rm -f conftest.$ac_objext conftest$ac_exeext
   9285 if { (eval echo "$as_me:9285: \"$ac_link\"") >&5
   9286   (eval $ac_link) 2>&5
   9287   ac_status=$?
   9288   echo "$as_me:9288: \$? = $ac_status" >&5
   9289   (exit $ac_status); } &&
   9290          { ac_try='test -s conftest$ac_exeext'
   9291   { (eval echo "$as_me:9291: \"$ac_try\"") >&5
   9292   (eval $ac_try) 2>&5
   9293   ac_status=$?
   9294   echo "$as_me:9294: \$? = $ac_status" >&5
   9295   (exit $ac_status); }; }; then
   9296   ac_cv_lib_Xt_XtAppInitialize=yes
   9297 else
   9298   echo "$as_me: failed program was:" >&5
   9299 cat conftest.$ac_ext >&5
   9300 ac_cv_lib_Xt_XtAppInitialize=no
   9301 fi
   9302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9303 LIBS=$ac_check_lib_save_LIBS
   9304 fi
   9305 echo "$as_me:9305: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
   9306 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
   9307 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
   9308   cat >>confdefs.h <<\EOF
   9309 #define HAVE_LIBXT 1
   9310 EOF
   9311 
   9312 		 cf_have_X_LIBS=Xt
   9313 		 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
   9314 fi
   9315 
   9316 fi
   9317 
   9318 fi
   9319 
   9320 if test $cf_have_X_LIBS = no ; then
   9321 	{ echo "$as_me:9321: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   9322 test program.  You will have to check and add the proper libraries by hand
   9323 to makefile." >&5
   9324 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   9325 test program.  You will have to check and add the proper libraries by hand
   9326 to makefile." >&2;}
   9327 fi
   9328 
   9329 for ac_header in \
   9330 	X11/DECkeysym.h \
   9331 	X11/Sunkeysym.h \
   9332 	X11/XF86keysym.h \
   9333 	X11/XKBlib.h \
   9334 	X11/Xpoll.h \
   9335 	X11/extensions/XKB.h \
   9336 
   9337 do
   9338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   9339 echo "$as_me:9339: checking for $ac_header" >&5
   9340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   9341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   9342   echo $ECHO_N "(cached) $ECHO_C" >&6
   9343 else
   9344   cat >conftest.$ac_ext <<_ACEOF
   9345 #line 9345 "configure"
   9346 #include "confdefs.h"
   9347 #include <$ac_header>
   9348 _ACEOF
   9349 if { (eval echo "$as_me:9349: \"$ac_cpp conftest.$ac_ext\"") >&5
   9350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   9351   ac_status=$?
   9352   egrep -v '^ *\+' conftest.er1 >conftest.err
   9353   rm -f conftest.er1
   9354   cat conftest.err >&5
   9355   echo "$as_me:9355: \$? = $ac_status" >&5
   9356   (exit $ac_status); } >/dev/null; then
   9357   if test -s conftest.err; then
   9358     ac_cpp_err=$ac_c_preproc_warn_flag
   9359   else
   9360     ac_cpp_err=
   9361   fi
   9362 else
   9363   ac_cpp_err=yes
   9364 fi
   9365 if test -z "$ac_cpp_err"; then
   9366   eval "$as_ac_Header=yes"
   9367 else
   9368   echo "$as_me: failed program was:" >&5
   9369   cat conftest.$ac_ext >&5
   9370   eval "$as_ac_Header=no"
   9371 fi
   9372 rm -f conftest.err conftest.$ac_ext
   9373 fi
   9374 echo "$as_me:9374: result: `eval echo '${'$as_ac_Header'}'`" >&5
   9375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   9376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   9377   cat >>confdefs.h <<EOF
   9378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   9379 EOF
   9380 
   9381 fi
   9382 done
   9383 
   9384 cf_x_athena=${cf_x_athena:-Xaw}
   9385 
   9386 echo "$as_me:9386: checking if you want to link with Xaw 3d library" >&5
   9387 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
   9388 withval=
   9389 
   9390 # Check whether --with-Xaw3d or --without-Xaw3d was given.
   9391 if test "${with_Xaw3d+set}" = set; then
   9392   withval="$with_Xaw3d"
   9393 
   9394 fi;
   9395 if test "$withval" = yes ; then
   9396 	cf_x_athena=Xaw3d
   9397 	echo "$as_me:9397: result: yes" >&5
   9398 echo "${ECHO_T}yes" >&6
   9399 else
   9400 	echo "$as_me:9400: result: no" >&5
   9401 echo "${ECHO_T}no" >&6
   9402 fi
   9403 
   9404 echo "$as_me:9404: checking if you want to link with neXT Athena library" >&5
   9405 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
   9406 withval=
   9407 
   9408 # Check whether --with-neXtaw or --without-neXtaw was given.
   9409 if test "${with_neXtaw+set}" = set; then
   9410   withval="$with_neXtaw"
   9411 
   9412 fi;
   9413 if test "$withval" = yes ; then
   9414 	cf_x_athena=neXtaw
   9415 	echo "$as_me:9415: result: yes" >&5
   9416 echo "${ECHO_T}yes" >&6
   9417 else
   9418 	echo "$as_me:9418: result: no" >&5
   9419 echo "${ECHO_T}no" >&6
   9420 fi
   9421 
   9422 echo "$as_me:9422: checking if you want to link with Athena-Plus library" >&5
   9423 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
   9424 withval=
   9425 
   9426 # Check whether --with-XawPlus or --without-XawPlus was given.
   9427 if test "${with_XawPlus+set}" = set; then
   9428   withval="$with_XawPlus"
   9429 
   9430 fi;
   9431 if test "$withval" = yes ; then
   9432 	cf_x_athena=XawPlus
   9433 	echo "$as_me:9433: result: yes" >&5
   9434 echo "${ECHO_T}yes" >&6
   9435 else
   9436 	echo "$as_me:9436: result: no" >&5
   9437 echo "${ECHO_T}no" >&6
   9438 fi
   9439 
   9440 cf_x_athena_lib=""
   9441 
   9442 if test "$PKG_CONFIG" != none ; then
   9443 	cf_athena_list=
   9444 	test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
   9445 	for cf_athena_pkg in \
   9446 		$cf_athena_list \
   9447 		${cf_x_athena} \
   9448 		${cf_x_athena}-devel \
   9449 		lib${cf_x_athena} \
   9450 		lib${cf_x_athena}-devel
   9451 	do
   9452 
   9453 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
   9454 	test -n "$verbose" && echo "	found package $cf_athena_pkg" 1>&6
   9455 
   9456 echo "${as_me:-configure}:9456: testing found package $cf_athena_pkg ..." 1>&5
   9457 
   9458 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
   9459 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   $cf_athena_pkg 2>/dev/null`"
   9460 	test -n "$verbose" && echo "	package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
   9461 
   9462 echo "${as_me:-configure}:9462: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   9463 
   9464 	test -n "$verbose" && echo "	package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
   9465 
   9466 echo "${as_me:-configure}:9466: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
   9467 
   9468 cf_fix_cppflags=no
   9469 cf_new_cflags=
   9470 cf_new_cppflags=
   9471 cf_new_extra_cppflags=
   9472 
   9473 for cf_add_cflags in $cf_pkgconfig_incs
   9474 do
   9475 case $cf_fix_cppflags in
   9476 no)
   9477 	case $cf_add_cflags in #(vi
   9478 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   9479 		case $cf_add_cflags in
   9480 		-D*)
   9481 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   9482 
   9483 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9484 				&& test -z "${cf_tst_cflags}" \
   9485 				&& cf_fix_cppflags=yes
   9486 
   9487 			if test $cf_fix_cppflags = yes ; then
   9488 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9489 				continue
   9490 			elif test "${cf_tst_cflags}" = "\"'" ; then
   9491 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9492 				continue
   9493 			fi
   9494 			;;
   9495 		esac
   9496 		case "$CPPFLAGS" in
   9497 		*$cf_add_cflags) #(vi
   9498 			;;
   9499 		*) #(vi
   9500 			case $cf_add_cflags in #(vi
   9501 			-D*)
   9502 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   9503 
   9504 CPPFLAGS=`echo "$CPPFLAGS" | \
   9505 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   9506 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   9507 
   9508 				;;
   9509 			esac
   9510 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   9511 			;;
   9512 		esac
   9513 		;;
   9514 	*)
   9515 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   9516 		;;
   9517 	esac
   9518 	;;
   9519 yes)
   9520 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9521 
   9522 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9523 
   9524 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9525 		&& test -z "${cf_tst_cflags}" \
   9526 		&& cf_fix_cppflags=no
   9527 	;;
   9528 esac
   9529 done
   9530 
   9531 if test -n "$cf_new_cflags" ; then
   9532 
   9533 	CFLAGS="$CFLAGS $cf_new_cflags"
   9534 fi
   9535 
   9536 if test -n "$cf_new_cppflags" ; then
   9537 
   9538 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   9539 fi
   9540 
   9541 if test -n "$cf_new_extra_cppflags" ; then
   9542 
   9543 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   9544 fi
   9545 
   9546 	LIBS="$cf_pkgconfig_libs $LIBS"
   9547 
   9548 			cf_x_athena_lib="$cf_pkgconfig_libs"
   9549 
   9550 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   9551 
   9552 			cat >>confdefs.h <<EOF
   9553 #define $cf_x_athena_LIBS 1
   9554 EOF
   9555 
   9556 echo "$as_me:9556: checking for usable $cf_x_athena/Xmu package" >&5
   9557 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
   9558 if test "${cf_cv_xaw_compat+set}" = set; then
   9559   echo $ECHO_N "(cached) $ECHO_C" >&6
   9560 else
   9561 
   9562 cat >conftest.$ac_ext <<_ACEOF
   9563 #line 9563 "configure"
   9564 #include "confdefs.h"
   9565 
   9566 #include <X11/Xmu/CharSet.h>
   9567 
   9568 int
   9569 main ()
   9570 {
   9571 
   9572 int check = XmuCompareISOLatin1("big", "small")
   9573 
   9574   ;
   9575   return 0;
   9576 }
   9577 _ACEOF
   9578 rm -f conftest.$ac_objext conftest$ac_exeext
   9579 if { (eval echo "$as_me:9579: \"$ac_link\"") >&5
   9580   (eval $ac_link) 2>&5
   9581   ac_status=$?
   9582   echo "$as_me:9582: \$? = $ac_status" >&5
   9583   (exit $ac_status); } &&
   9584          { ac_try='test -s conftest$ac_exeext'
   9585   { (eval echo "$as_me:9585: \"$ac_try\"") >&5
   9586   (eval $ac_try) 2>&5
   9587   ac_status=$?
   9588   echo "$as_me:9588: \$? = $ac_status" >&5
   9589   (exit $ac_status); }; }; then
   9590   cf_cv_xaw_compat=yes
   9591 else
   9592   echo "$as_me: failed program was:" >&5
   9593 cat conftest.$ac_ext >&5
   9594 cf_cv_xaw_compat=no
   9595 fi
   9596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9597 fi
   9598 echo "$as_me:9598: result: $cf_cv_xaw_compat" >&5
   9599 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
   9600 
   9601 			if test "$cf_cv_xaw_compat" = no
   9602 			then
   9603 				# workaround for broken ".pc" files...
   9604 				case "$cf_x_athena_lib" in #(vi
   9605 				*-lXmu*) #(vi
   9606 					;;
   9607 				*)
   9608 					test -n "$verbose" && echo "	work around broken package" 1>&6
   9609 
   9610 echo "${as_me:-configure}:9610: testing work around broken package ..." 1>&5
   9611 
   9612 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
   9613 	test -n "$verbose" && echo "	found package xmu" 1>&6
   9614 
   9615 echo "${as_me:-configure}:9615: testing found package xmu ..." 1>&5
   9616 
   9617 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
   9618 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   xmu 2>/dev/null`"
   9619 	test -n "$verbose" && echo "	package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
   9620 
   9621 echo "${as_me:-configure}:9621: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   9622 
   9623 	test -n "$verbose" && echo "	package xmu LIBS: $cf_pkgconfig_libs" 1>&6
   9624 
   9625 echo "${as_me:-configure}:9625: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
   9626 
   9627 cf_fix_cppflags=no
   9628 cf_new_cflags=
   9629 cf_new_cppflags=
   9630 cf_new_extra_cppflags=
   9631 
   9632 for cf_add_cflags in $cf_pkgconfig_incs
   9633 do
   9634 case $cf_fix_cppflags in
   9635 no)
   9636 	case $cf_add_cflags in #(vi
   9637 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   9638 		case $cf_add_cflags in
   9639 		-D*)
   9640 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   9641 
   9642 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9643 				&& test -z "${cf_tst_cflags}" \
   9644 				&& cf_fix_cppflags=yes
   9645 
   9646 			if test $cf_fix_cppflags = yes ; then
   9647 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9648 				continue
   9649 			elif test "${cf_tst_cflags}" = "\"'" ; then
   9650 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9651 				continue
   9652 			fi
   9653 			;;
   9654 		esac
   9655 		case "$CPPFLAGS" in
   9656 		*$cf_add_cflags) #(vi
   9657 			;;
   9658 		*) #(vi
   9659 			case $cf_add_cflags in #(vi
   9660 			-D*)
   9661 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   9662 
   9663 CPPFLAGS=`echo "$CPPFLAGS" | \
   9664 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   9665 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   9666 
   9667 				;;
   9668 			esac
   9669 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   9670 			;;
   9671 		esac
   9672 		;;
   9673 	*)
   9674 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   9675 		;;
   9676 	esac
   9677 	;;
   9678 yes)
   9679 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9680 
   9681 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9682 
   9683 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9684 		&& test -z "${cf_tst_cflags}" \
   9685 		&& cf_fix_cppflags=no
   9686 	;;
   9687 esac
   9688 done
   9689 
   9690 if test -n "$cf_new_cflags" ; then
   9691 
   9692 	CFLAGS="$CFLAGS $cf_new_cflags"
   9693 fi
   9694 
   9695 if test -n "$cf_new_cppflags" ; then
   9696 
   9697 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   9698 fi
   9699 
   9700 if test -n "$cf_new_extra_cppflags" ; then
   9701 
   9702 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   9703 fi
   9704 
   9705 	LIBS="$cf_pkgconfig_libs $LIBS"
   9706 	:
   9707 else
   9708 
   9709 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   9710 
   9711 echo "${as_me:-configure}:9711: testing ...before $LIBS ..." 1>&5
   9712 
   9713 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s,-lXt ,-lXt -lXmu ," -e 's/  / /g'`
   9714 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   9715 
   9716 echo "${as_me:-configure}:9716: testing ...after  $LIBS ..." 1>&5
   9717 
   9718 fi
   9719 
   9720 					;;
   9721 				esac
   9722 			fi
   9723 
   9724 			break
   9725 else
   9726 	:
   9727 fi
   9728 
   9729 	done
   9730 fi
   9731 
   9732 if test -z "$cf_x_athena_lib" ; then
   9733 
   9734 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
   9735 	test -n "$verbose" && echo "	found package Xext" 1>&6
   9736 
   9737 echo "${as_me:-configure}:9737: testing found package Xext ..." 1>&5
   9738 
   9739 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
   9740 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   Xext 2>/dev/null`"
   9741 	test -n "$verbose" && echo "	package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
   9742 
   9743 echo "${as_me:-configure}:9743: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   9744 
   9745 	test -n "$verbose" && echo "	package Xext LIBS: $cf_pkgconfig_libs" 1>&6
   9746 
   9747 echo "${as_me:-configure}:9747: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
   9748 
   9749 cf_fix_cppflags=no
   9750 cf_new_cflags=
   9751 cf_new_cppflags=
   9752 cf_new_extra_cppflags=
   9753 
   9754 for cf_add_cflags in $cf_pkgconfig_incs
   9755 do
   9756 case $cf_fix_cppflags in
   9757 no)
   9758 	case $cf_add_cflags in #(vi
   9759 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   9760 		case $cf_add_cflags in
   9761 		-D*)
   9762 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   9763 
   9764 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9765 				&& test -z "${cf_tst_cflags}" \
   9766 				&& cf_fix_cppflags=yes
   9767 
   9768 			if test $cf_fix_cppflags = yes ; then
   9769 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9770 				continue
   9771 			elif test "${cf_tst_cflags}" = "\"'" ; then
   9772 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9773 				continue
   9774 			fi
   9775 			;;
   9776 		esac
   9777 		case "$CPPFLAGS" in
   9778 		*$cf_add_cflags) #(vi
   9779 			;;
   9780 		*) #(vi
   9781 			case $cf_add_cflags in #(vi
   9782 			-D*)
   9783 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   9784 
   9785 CPPFLAGS=`echo "$CPPFLAGS" | \
   9786 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   9787 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   9788 
   9789 				;;
   9790 			esac
   9791 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   9792 			;;
   9793 		esac
   9794 		;;
   9795 	*)
   9796 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   9797 		;;
   9798 	esac
   9799 	;;
   9800 yes)
   9801 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9802 
   9803 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9804 
   9805 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9806 		&& test -z "${cf_tst_cflags}" \
   9807 		&& cf_fix_cppflags=no
   9808 	;;
   9809 esac
   9810 done
   9811 
   9812 if test -n "$cf_new_cflags" ; then
   9813 
   9814 	CFLAGS="$CFLAGS $cf_new_cflags"
   9815 fi
   9816 
   9817 if test -n "$cf_new_cppflags" ; then
   9818 
   9819 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   9820 fi
   9821 
   9822 if test -n "$cf_new_extra_cppflags" ; then
   9823 
   9824 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   9825 fi
   9826 
   9827 	LIBS="$cf_pkgconfig_libs $LIBS"
   9828 	:
   9829 else
   9830 
   9831 	echo "$as_me:9831: checking for XextCreateExtension in -lXext" >&5
   9832 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
   9833 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
   9834   echo $ECHO_N "(cached) $ECHO_C" >&6
   9835 else
   9836   ac_check_lib_save_LIBS=$LIBS
   9837 LIBS="-lXext  $LIBS"
   9838 cat >conftest.$ac_ext <<_ACEOF
   9839 #line 9839 "configure"
   9840 #include "confdefs.h"
   9841 
   9842 /* Override any gcc2 internal prototype to avoid an error.  */
   9843 #ifdef __cplusplus
   9844 extern "C"
   9845 #endif
   9846 /* We use char because int might match the return type of a gcc2
   9847    builtin and then its argument prototype would still apply.  */
   9848 char XextCreateExtension ();
   9849 int
   9850 main ()
   9851 {
   9852 XextCreateExtension ();
   9853   ;
   9854   return 0;
   9855 }
   9856 _ACEOF
   9857 rm -f conftest.$ac_objext conftest$ac_exeext
   9858 if { (eval echo "$as_me:9858: \"$ac_link\"") >&5
   9859   (eval $ac_link) 2>&5
   9860   ac_status=$?
   9861   echo "$as_me:9861: \$? = $ac_status" >&5
   9862   (exit $ac_status); } &&
   9863          { ac_try='test -s conftest$ac_exeext'
   9864   { (eval echo "$as_me:9864: \"$ac_try\"") >&5
   9865   (eval $ac_try) 2>&5
   9866   ac_status=$?
   9867   echo "$as_me:9867: \$? = $ac_status" >&5
   9868   (exit $ac_status); }; }; then
   9869   ac_cv_lib_Xext_XextCreateExtension=yes
   9870 else
   9871   echo "$as_me: failed program was:" >&5
   9872 cat conftest.$ac_ext >&5
   9873 ac_cv_lib_Xext_XextCreateExtension=no
   9874 fi
   9875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   9876 LIBS=$ac_check_lib_save_LIBS
   9877 fi
   9878 echo "$as_me:9878: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
   9879 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
   9880 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
   9881   LIBS="-lXext $LIBS"
   9882 fi
   9883 
   9884 fi
   9885 
   9886 cf_have_X_LIBS=no
   9887 
   9888 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
   9889 	test -n "$verbose" && echo "	found package xt" 1>&6
   9890 
   9891 echo "${as_me:-configure}:9891: testing found package xt ..." 1>&5
   9892 
   9893 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
   9894 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   xt 2>/dev/null`"
   9895 	test -n "$verbose" && echo "	package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
   9896 
   9897 echo "${as_me:-configure}:9897: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   9898 
   9899 	test -n "$verbose" && echo "	package xt LIBS: $cf_pkgconfig_libs" 1>&6
   9900 
   9901 echo "${as_me:-configure}:9901: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
   9902 
   9903 cf_fix_cppflags=no
   9904 cf_new_cflags=
   9905 cf_new_cppflags=
   9906 cf_new_extra_cppflags=
   9907 
   9908 for cf_add_cflags in $cf_pkgconfig_incs
   9909 do
   9910 case $cf_fix_cppflags in
   9911 no)
   9912 	case $cf_add_cflags in #(vi
   9913 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   9914 		case $cf_add_cflags in
   9915 		-D*)
   9916 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   9917 
   9918 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9919 				&& test -z "${cf_tst_cflags}" \
   9920 				&& cf_fix_cppflags=yes
   9921 
   9922 			if test $cf_fix_cppflags = yes ; then
   9923 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9924 				continue
   9925 			elif test "${cf_tst_cflags}" = "\"'" ; then
   9926 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9927 				continue
   9928 			fi
   9929 			;;
   9930 		esac
   9931 		case "$CPPFLAGS" in
   9932 		*$cf_add_cflags) #(vi
   9933 			;;
   9934 		*) #(vi
   9935 			case $cf_add_cflags in #(vi
   9936 			-D*)
   9937 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   9938 
   9939 CPPFLAGS=`echo "$CPPFLAGS" | \
   9940 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   9941 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   9942 
   9943 				;;
   9944 			esac
   9945 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   9946 			;;
   9947 		esac
   9948 		;;
   9949 	*)
   9950 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   9951 		;;
   9952 	esac
   9953 	;;
   9954 yes)
   9955 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   9956 
   9957 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   9958 
   9959 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   9960 		&& test -z "${cf_tst_cflags}" \
   9961 		&& cf_fix_cppflags=no
   9962 	;;
   9963 esac
   9964 done
   9965 
   9966 if test -n "$cf_new_cflags" ; then
   9967 
   9968 	CFLAGS="$CFLAGS $cf_new_cflags"
   9969 fi
   9970 
   9971 if test -n "$cf_new_cppflags" ; then
   9972 
   9973 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   9974 fi
   9975 
   9976 if test -n "$cf_new_extra_cppflags" ; then
   9977 
   9978 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   9979 fi
   9980 
   9981 	LIBS="$cf_pkgconfig_libs $LIBS"
   9982 
   9983 	case "x$LIBS" in #(vi
   9984 	*-lX11*) #(vi
   9985 		;;
   9986 	*)
   9987 # we have an "xt" package, but it may omit Xt's dependency on X11
   9988 echo "$as_me:9988: checking for usable X dependency" >&5
   9989 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
   9990 if test "${cf_cv_xt_x11_compat+set}" = set; then
   9991   echo $ECHO_N "(cached) $ECHO_C" >&6
   9992 else
   9993 
   9994 cat >conftest.$ac_ext <<_ACEOF
   9995 #line 9995 "configure"
   9996 #include "confdefs.h"
   9997 
   9998 #include <X11/Xlib.h>
   9999 
   10000 int
   10001 main ()
   10002 {
   10003 
   10004 	int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
   10005 	int rc2 = XClearWindow((Display*) 0, (Window) 0);
   10006 	int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
   10007 	int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
   10008 
   10009   ;
   10010   return 0;
   10011 }
   10012 _ACEOF
   10013 rm -f conftest.$ac_objext conftest$ac_exeext
   10014 if { (eval echo "$as_me:10014: \"$ac_link\"") >&5
   10015   (eval $ac_link) 2>&5
   10016   ac_status=$?
   10017   echo "$as_me:10017: \$? = $ac_status" >&5
   10018   (exit $ac_status); } &&
   10019          { ac_try='test -s conftest$ac_exeext'
   10020   { (eval echo "$as_me:10020: \"$ac_try\"") >&5
   10021   (eval $ac_try) 2>&5
   10022   ac_status=$?
   10023   echo "$as_me:10023: \$? = $ac_status" >&5
   10024   (exit $ac_status); }; }; then
   10025   cf_cv_xt_x11_compat=yes
   10026 else
   10027   echo "$as_me: failed program was:" >&5
   10028 cat conftest.$ac_ext >&5
   10029 cf_cv_xt_x11_compat=no
   10030 fi
   10031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10032 fi
   10033 echo "$as_me:10033: result: $cf_cv_xt_x11_compat" >&5
   10034 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
   10035 		if test "$cf_cv_xt_x11_compat" = no
   10036 		then
   10037 			test -n "$verbose" && echo "	work around broken X11 dependency" 1>&6
   10038 
   10039 echo "${as_me:-configure}:10039: testing work around broken X11 dependency ..." 1>&5
   10040 
   10041 			# 2010/11/19 - good enough until a working Xt on Xcb is delivered.
   10042 
   10043 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
   10044 	test -n "$verbose" && echo "	found package x11" 1>&6
   10045 
   10046 echo "${as_me:-configure}:10046: testing found package x11 ..." 1>&5
   10047 
   10048 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
   10049 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   x11 2>/dev/null`"
   10050 	test -n "$verbose" && echo "	package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
   10051 
   10052 echo "${as_me:-configure}:10052: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   10053 
   10054 	test -n "$verbose" && echo "	package x11 LIBS: $cf_pkgconfig_libs" 1>&6
   10055 
   10056 echo "${as_me:-configure}:10056: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
   10057 
   10058 cf_fix_cppflags=no
   10059 cf_new_cflags=
   10060 cf_new_cppflags=
   10061 cf_new_extra_cppflags=
   10062 
   10063 for cf_add_cflags in $cf_pkgconfig_incs
   10064 do
   10065 case $cf_fix_cppflags in
   10066 no)
   10067 	case $cf_add_cflags in #(vi
   10068 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   10069 		case $cf_add_cflags in
   10070 		-D*)
   10071 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10072 
   10073 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   10074 				&& test -z "${cf_tst_cflags}" \
   10075 				&& cf_fix_cppflags=yes
   10076 
   10077 			if test $cf_fix_cppflags = yes ; then
   10078 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10079 				continue
   10080 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10081 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10082 				continue
   10083 			fi
   10084 			;;
   10085 		esac
   10086 		case "$CPPFLAGS" in
   10087 		*$cf_add_cflags) #(vi
   10088 			;;
   10089 		*) #(vi
   10090 			case $cf_add_cflags in #(vi
   10091 			-D*)
   10092 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10093 
   10094 CPPFLAGS=`echo "$CPPFLAGS" | \
   10095 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10096 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10097 
   10098 				;;
   10099 			esac
   10100 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   10101 			;;
   10102 		esac
   10103 		;;
   10104 	*)
   10105 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   10106 		;;
   10107 	esac
   10108 	;;
   10109 yes)
   10110 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10111 
   10112 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   10113 
   10114 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   10115 		&& test -z "${cf_tst_cflags}" \
   10116 		&& cf_fix_cppflags=no
   10117 	;;
   10118 esac
   10119 done
   10120 
   10121 if test -n "$cf_new_cflags" ; then
   10122 
   10123 	CFLAGS="$CFLAGS $cf_new_cflags"
   10124 fi
   10125 
   10126 if test -n "$cf_new_cppflags" ; then
   10127 
   10128 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   10129 fi
   10130 
   10131 if test -n "$cf_new_extra_cppflags" ; then
   10132 
   10133 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   10134 fi
   10135 
   10136 	LIBS="$cf_pkgconfig_libs $LIBS"
   10137 	:
   10138 else
   10139 
   10140 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   10141 
   10142 echo "${as_me:-configure}:10142: testing ...before $LIBS ..." 1>&5
   10143 
   10144 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s,-lXt ,-lXt -lX11 ," -e 's/  / /g'`
   10145 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   10146 
   10147 echo "${as_me:-configure}:10147: testing ...after  $LIBS ..." 1>&5
   10148 
   10149 fi
   10150 
   10151 		fi
   10152 		;;
   10153 	esac
   10154 
   10155 echo "$as_me:10155: checking for usable X Toolkit package" >&5
   10156 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
   10157 if test "${cf_cv_xt_ice_compat+set}" = set; then
   10158   echo $ECHO_N "(cached) $ECHO_C" >&6
   10159 else
   10160 
   10161 cat >conftest.$ac_ext <<_ACEOF
   10162 #line 10162 "configure"
   10163 #include "confdefs.h"
   10164 
   10165 #include <X11/Shell.h>
   10166 
   10167 int
   10168 main ()
   10169 {
   10170 int num = IceConnectionNumber(0)
   10171 
   10172   ;
   10173   return 0;
   10174 }
   10175 _ACEOF
   10176 rm -f conftest.$ac_objext conftest$ac_exeext
   10177 if { (eval echo "$as_me:10177: \"$ac_link\"") >&5
   10178   (eval $ac_link) 2>&5
   10179   ac_status=$?
   10180   echo "$as_me:10180: \$? = $ac_status" >&5
   10181   (exit $ac_status); } &&
   10182          { ac_try='test -s conftest$ac_exeext'
   10183   { (eval echo "$as_me:10183: \"$ac_try\"") >&5
   10184   (eval $ac_try) 2>&5
   10185   ac_status=$?
   10186   echo "$as_me:10186: \$? = $ac_status" >&5
   10187   (exit $ac_status); }; }; then
   10188   cf_cv_xt_ice_compat=yes
   10189 else
   10190   echo "$as_me: failed program was:" >&5
   10191 cat conftest.$ac_ext >&5
   10192 cf_cv_xt_ice_compat=no
   10193 fi
   10194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10195 fi
   10196 echo "$as_me:10196: result: $cf_cv_xt_ice_compat" >&5
   10197 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
   10198 
   10199 	if test "$cf_cv_xt_ice_compat" = no
   10200 	then
   10201 		# workaround for broken ".pc" files used for X Toolkit.
   10202 		case "x$X_PRE_LIBS" in #(vi
   10203 		*-lICE*)
   10204 			case "x$LIBS" in #(vi
   10205 			*-lICE*) #(vi
   10206 				;;
   10207 			*)
   10208 				test -n "$verbose" && echo "	work around broken ICE dependency" 1>&6
   10209 
   10210 echo "${as_me:-configure}:10210: testing work around broken ICE dependency ..." 1>&5
   10211 
   10212 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
   10213 	test -n "$verbose" && echo "	found package ice" 1>&6
   10214 
   10215 echo "${as_me:-configure}:10215: testing found package ice ..." 1>&5
   10216 
   10217 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
   10218 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   ice 2>/dev/null`"
   10219 	test -n "$verbose" && echo "	package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
   10220 
   10221 echo "${as_me:-configure}:10221: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   10222 
   10223 	test -n "$verbose" && echo "	package ice LIBS: $cf_pkgconfig_libs" 1>&6
   10224 
   10225 echo "${as_me:-configure}:10225: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
   10226 
   10227 cf_fix_cppflags=no
   10228 cf_new_cflags=
   10229 cf_new_cppflags=
   10230 cf_new_extra_cppflags=
   10231 
   10232 for cf_add_cflags in $cf_pkgconfig_incs
   10233 do
   10234 case $cf_fix_cppflags in
   10235 no)
   10236 	case $cf_add_cflags in #(vi
   10237 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   10238 		case $cf_add_cflags in
   10239 		-D*)
   10240 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10241 
   10242 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   10243 				&& test -z "${cf_tst_cflags}" \
   10244 				&& cf_fix_cppflags=yes
   10245 
   10246 			if test $cf_fix_cppflags = yes ; then
   10247 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10248 				continue
   10249 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10250 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10251 				continue
   10252 			fi
   10253 			;;
   10254 		esac
   10255 		case "$CPPFLAGS" in
   10256 		*$cf_add_cflags) #(vi
   10257 			;;
   10258 		*) #(vi
   10259 			case $cf_add_cflags in #(vi
   10260 			-D*)
   10261 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10262 
   10263 CPPFLAGS=`echo "$CPPFLAGS" | \
   10264 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10265 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10266 
   10267 				;;
   10268 			esac
   10269 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   10270 			;;
   10271 		esac
   10272 		;;
   10273 	*)
   10274 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   10275 		;;
   10276 	esac
   10277 	;;
   10278 yes)
   10279 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10280 
   10281 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   10282 
   10283 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   10284 		&& test -z "${cf_tst_cflags}" \
   10285 		&& cf_fix_cppflags=no
   10286 	;;
   10287 esac
   10288 done
   10289 
   10290 if test -n "$cf_new_cflags" ; then
   10291 
   10292 	CFLAGS="$CFLAGS $cf_new_cflags"
   10293 fi
   10294 
   10295 if test -n "$cf_new_cppflags" ; then
   10296 
   10297 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   10298 fi
   10299 
   10300 if test -n "$cf_new_extra_cppflags" ; then
   10301 
   10302 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   10303 fi
   10304 
   10305 	LIBS="$cf_pkgconfig_libs $LIBS"
   10306 
   10307 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
   10308 	test -n "$verbose" && echo "	found package sm" 1>&6
   10309 
   10310 echo "${as_me:-configure}:10310: testing found package sm ..." 1>&5
   10311 
   10312 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
   10313 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   sm 2>/dev/null`"
   10314 	test -n "$verbose" && echo "	package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
   10315 
   10316 echo "${as_me:-configure}:10316: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   10317 
   10318 	test -n "$verbose" && echo "	package sm LIBS: $cf_pkgconfig_libs" 1>&6
   10319 
   10320 echo "${as_me:-configure}:10320: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
   10321 
   10322 cf_fix_cppflags=no
   10323 cf_new_cflags=
   10324 cf_new_cppflags=
   10325 cf_new_extra_cppflags=
   10326 
   10327 for cf_add_cflags in $cf_pkgconfig_incs
   10328 do
   10329 case $cf_fix_cppflags in
   10330 no)
   10331 	case $cf_add_cflags in #(vi
   10332 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   10333 		case $cf_add_cflags in
   10334 		-D*)
   10335 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10336 
   10337 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   10338 				&& test -z "${cf_tst_cflags}" \
   10339 				&& cf_fix_cppflags=yes
   10340 
   10341 			if test $cf_fix_cppflags = yes ; then
   10342 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10343 				continue
   10344 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10345 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10346 				continue
   10347 			fi
   10348 			;;
   10349 		esac
   10350 		case "$CPPFLAGS" in
   10351 		*$cf_add_cflags) #(vi
   10352 			;;
   10353 		*) #(vi
   10354 			case $cf_add_cflags in #(vi
   10355 			-D*)
   10356 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10357 
   10358 CPPFLAGS=`echo "$CPPFLAGS" | \
   10359 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10360 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10361 
   10362 				;;
   10363 			esac
   10364 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   10365 			;;
   10366 		esac
   10367 		;;
   10368 	*)
   10369 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   10370 		;;
   10371 	esac
   10372 	;;
   10373 yes)
   10374 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10375 
   10376 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   10377 
   10378 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   10379 		&& test -z "${cf_tst_cflags}" \
   10380 		&& cf_fix_cppflags=no
   10381 	;;
   10382 esac
   10383 done
   10384 
   10385 if test -n "$cf_new_cflags" ; then
   10386 
   10387 	CFLAGS="$CFLAGS $cf_new_cflags"
   10388 fi
   10389 
   10390 if test -n "$cf_new_cppflags" ; then
   10391 
   10392 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   10393 fi
   10394 
   10395 if test -n "$cf_new_extra_cppflags" ; then
   10396 
   10397 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   10398 fi
   10399 
   10400 	LIBS="$cf_pkgconfig_libs $LIBS"
   10401 	:
   10402 else
   10403 	:
   10404 fi
   10405 
   10406 else
   10407 
   10408 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   10409 
   10410 echo "${as_me:-configure}:10410: testing ...before $LIBS ..." 1>&5
   10411 
   10412 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s,-lXt ,-lXt $X_PRE_LIBS ," -e 's/  / /g'`
   10413 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   10414 
   10415 echo "${as_me:-configure}:10415: testing ...after  $LIBS ..." 1>&5
   10416 
   10417 fi
   10418 
   10419 				;;
   10420 			esac
   10421 			;;
   10422 		esac
   10423 	fi
   10424 
   10425 	cf_have_X_LIBS=yes
   10426 
   10427 else
   10428 
   10429 	LDFLAGS="$X_LIBS $LDFLAGS"
   10430 
   10431 test -n "$verbose" && echo "	checking additions to CFLAGS" 1>&6
   10432 
   10433 echo "${as_me:-configure}:10433: testing checking additions to CFLAGS ..." 1>&5
   10434 
   10435 cf_check_cflags="$CFLAGS"
   10436 cf_check_cppflags="$CPPFLAGS"
   10437 
   10438 cf_fix_cppflags=no
   10439 cf_new_cflags=
   10440 cf_new_cppflags=
   10441 cf_new_extra_cppflags=
   10442 
   10443 for cf_add_cflags in $X_CFLAGS
   10444 do
   10445 case $cf_fix_cppflags in
   10446 no)
   10447 	case $cf_add_cflags in #(vi
   10448 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   10449 		case $cf_add_cflags in
   10450 		-D*)
   10451 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   10452 
   10453 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   10454 				&& test -z "${cf_tst_cflags}" \
   10455 				&& cf_fix_cppflags=yes
   10456 
   10457 			if test $cf_fix_cppflags = yes ; then
   10458 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10459 				continue
   10460 			elif test "${cf_tst_cflags}" = "\"'" ; then
   10461 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10462 				continue
   10463 			fi
   10464 			;;
   10465 		esac
   10466 		case "$CPPFLAGS" in
   10467 		*$cf_add_cflags) #(vi
   10468 			;;
   10469 		*) #(vi
   10470 			case $cf_add_cflags in #(vi
   10471 			-D*)
   10472 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   10473 
   10474 CPPFLAGS=`echo "$CPPFLAGS" | \
   10475 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   10476 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   10477 
   10478 				;;
   10479 			esac
   10480 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   10481 			;;
   10482 		esac
   10483 		;;
   10484 	*)
   10485 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   10486 		;;
   10487 	esac
   10488 	;;
   10489 yes)
   10490 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   10491 
   10492 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   10493 
   10494 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   10495 		&& test -z "${cf_tst_cflags}" \
   10496 		&& cf_fix_cppflags=no
   10497 	;;
   10498 esac
   10499 done
   10500 
   10501 if test -n "$cf_new_cflags" ; then
   10502 	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
   10503 
   10504 echo "${as_me:-configure}:10504: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
   10505 
   10506 	CFLAGS="$CFLAGS $cf_new_cflags"
   10507 fi
   10508 
   10509 if test -n "$cf_new_cppflags" ; then
   10510 	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
   10511 
   10512 echo "${as_me:-configure}:10512: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
   10513 
   10514 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   10515 fi
   10516 
   10517 if test -n "$cf_new_extra_cppflags" ; then
   10518 	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
   10519 
   10520 echo "${as_me:-configure}:10520: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
   10521 
   10522 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   10523 fi
   10524 
   10525 if test "$cf_check_cflags" != "$CFLAGS" ; then
   10526 cat >conftest.$ac_ext <<_ACEOF
   10527 #line 10527 "configure"
   10528 #include "confdefs.h"
   10529 #include <stdio.h>
   10530 int
   10531 main ()
   10532 {
   10533 printf("Hello world");
   10534   ;
   10535   return 0;
   10536 }
   10537 _ACEOF
   10538 rm -f conftest.$ac_objext conftest$ac_exeext
   10539 if { (eval echo "$as_me:10539: \"$ac_link\"") >&5
   10540   (eval $ac_link) 2>&5
   10541   ac_status=$?
   10542   echo "$as_me:10542: \$? = $ac_status" >&5
   10543   (exit $ac_status); } &&
   10544          { ac_try='test -s conftest$ac_exeext'
   10545   { (eval echo "$as_me:10545: \"$ac_try\"") >&5
   10546   (eval $ac_try) 2>&5
   10547   ac_status=$?
   10548   echo "$as_me:10548: \$? = $ac_status" >&5
   10549   (exit $ac_status); }; }; then
   10550   :
   10551 else
   10552   echo "$as_me: failed program was:" >&5
   10553 cat conftest.$ac_ext >&5
   10554 test -n "$verbose" && echo "	test-compile failed.  Undoing change to \$CFLAGS" 1>&6
   10555 
   10556 echo "${as_me:-configure}:10556: testing test-compile failed.  Undoing change to \$CFLAGS ..." 1>&5
   10557 
   10558 	 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
   10559 		 test -n "$verbose" && echo "	but keeping change to \$CPPFLAGS" 1>&6
   10560 
   10561 echo "${as_me:-configure}:10561: testing but keeping change to \$CPPFLAGS ..." 1>&5
   10562 
   10563 	 fi
   10564 	 CFLAGS="$cf_check_flags"
   10565 fi
   10566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10567 fi
   10568 
   10569 	echo "$as_me:10569: checking for XOpenDisplay" >&5
   10570 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
   10571 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
   10572   echo $ECHO_N "(cached) $ECHO_C" >&6
   10573 else
   10574   cat >conftest.$ac_ext <<_ACEOF
   10575 #line 10575 "configure"
   10576 #include "confdefs.h"
   10577 /* System header to define __stub macros and hopefully few prototypes,
   10578     which can conflict with char XOpenDisplay (); below.  */
   10579 #include <assert.h>
   10580 /* Override any gcc2 internal prototype to avoid an error.  */
   10581 #ifdef __cplusplus
   10582 extern "C"
   10583 #endif
   10584 /* We use char because int might match the return type of a gcc2
   10585    builtin and then its argument prototype would still apply.  */
   10586 char XOpenDisplay ();
   10587 char (*f) ();
   10588 
   10589 int
   10590 main ()
   10591 {
   10592 /* The GNU C library defines this for functions which it implements
   10593     to always fail with ENOSYS.  Some functions are actually named
   10594     something starting with __ and the normal name is an alias.  */
   10595 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
   10596 choke me
   10597 #else
   10598 f = XOpenDisplay;
   10599 #endif
   10600 
   10601   ;
   10602   return 0;
   10603 }
   10604 _ACEOF
   10605 rm -f conftest.$ac_objext conftest$ac_exeext
   10606 if { (eval echo "$as_me:10606: \"$ac_link\"") >&5
   10607   (eval $ac_link) 2>&5
   10608   ac_status=$?
   10609   echo "$as_me:10609: \$? = $ac_status" >&5
   10610   (exit $ac_status); } &&
   10611          { ac_try='test -s conftest$ac_exeext'
   10612   { (eval echo "$as_me:10612: \"$ac_try\"") >&5
   10613   (eval $ac_try) 2>&5
   10614   ac_status=$?
   10615   echo "$as_me:10615: \$? = $ac_status" >&5
   10616   (exit $ac_status); }; }; then
   10617   ac_cv_func_XOpenDisplay=yes
   10618 else
   10619   echo "$as_me: failed program was:" >&5
   10620 cat conftest.$ac_ext >&5
   10621 ac_cv_func_XOpenDisplay=no
   10622 fi
   10623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10624 fi
   10625 echo "$as_me:10625: result: $ac_cv_func_XOpenDisplay" >&5
   10626 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
   10627 if test $ac_cv_func_XOpenDisplay = yes; then
   10628   :
   10629 else
   10630 
   10631 	echo "$as_me:10631: checking for XOpenDisplay in -lX11" >&5
   10632 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
   10633 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
   10634   echo $ECHO_N "(cached) $ECHO_C" >&6
   10635 else
   10636   ac_check_lib_save_LIBS=$LIBS
   10637 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
   10638 cat >conftest.$ac_ext <<_ACEOF
   10639 #line 10639 "configure"
   10640 #include "confdefs.h"
   10641 
   10642 /* Override any gcc2 internal prototype to avoid an error.  */
   10643 #ifdef __cplusplus
   10644 extern "C"
   10645 #endif
   10646 /* We use char because int might match the return type of a gcc2
   10647    builtin and then its argument prototype would still apply.  */
   10648 char XOpenDisplay ();
   10649 int
   10650 main ()
   10651 {
   10652 XOpenDisplay ();
   10653   ;
   10654   return 0;
   10655 }
   10656 _ACEOF
   10657 rm -f conftest.$ac_objext conftest$ac_exeext
   10658 if { (eval echo "$as_me:10658: \"$ac_link\"") >&5
   10659   (eval $ac_link) 2>&5
   10660   ac_status=$?
   10661   echo "$as_me:10661: \$? = $ac_status" >&5
   10662   (exit $ac_status); } &&
   10663          { ac_try='test -s conftest$ac_exeext'
   10664   { (eval echo "$as_me:10664: \"$ac_try\"") >&5
   10665   (eval $ac_try) 2>&5
   10666   ac_status=$?
   10667   echo "$as_me:10667: \$? = $ac_status" >&5
   10668   (exit $ac_status); }; }; then
   10669   ac_cv_lib_X11_XOpenDisplay=yes
   10670 else
   10671   echo "$as_me: failed program was:" >&5
   10672 cat conftest.$ac_ext >&5
   10673 ac_cv_lib_X11_XOpenDisplay=no
   10674 fi
   10675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10676 LIBS=$ac_check_lib_save_LIBS
   10677 fi
   10678 echo "$as_me:10678: result: $ac_cv_lib_X11_XOpenDisplay" >&5
   10679 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
   10680 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
   10681   LIBS="-lX11 $LIBS"
   10682 fi
   10683 
   10684 fi
   10685 
   10686 	echo "$as_me:10686: checking for XtAppInitialize" >&5
   10687 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
   10688 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
   10689   echo $ECHO_N "(cached) $ECHO_C" >&6
   10690 else
   10691   cat >conftest.$ac_ext <<_ACEOF
   10692 #line 10692 "configure"
   10693 #include "confdefs.h"
   10694 /* System header to define __stub macros and hopefully few prototypes,
   10695     which can conflict with char XtAppInitialize (); below.  */
   10696 #include <assert.h>
   10697 /* Override any gcc2 internal prototype to avoid an error.  */
   10698 #ifdef __cplusplus
   10699 extern "C"
   10700 #endif
   10701 /* We use char because int might match the return type of a gcc2
   10702    builtin and then its argument prototype would still apply.  */
   10703 char XtAppInitialize ();
   10704 char (*f) ();
   10705 
   10706 int
   10707 main ()
   10708 {
   10709 /* The GNU C library defines this for functions which it implements
   10710     to always fail with ENOSYS.  Some functions are actually named
   10711     something starting with __ and the normal name is an alias.  */
   10712 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
   10713 choke me
   10714 #else
   10715 f = XtAppInitialize;
   10716 #endif
   10717 
   10718   ;
   10719   return 0;
   10720 }
   10721 _ACEOF
   10722 rm -f conftest.$ac_objext conftest$ac_exeext
   10723 if { (eval echo "$as_me:10723: \"$ac_link\"") >&5
   10724   (eval $ac_link) 2>&5
   10725   ac_status=$?
   10726   echo "$as_me:10726: \$? = $ac_status" >&5
   10727   (exit $ac_status); } &&
   10728          { ac_try='test -s conftest$ac_exeext'
   10729   { (eval echo "$as_me:10729: \"$ac_try\"") >&5
   10730   (eval $ac_try) 2>&5
   10731   ac_status=$?
   10732   echo "$as_me:10732: \$? = $ac_status" >&5
   10733   (exit $ac_status); }; }; then
   10734   ac_cv_func_XtAppInitialize=yes
   10735 else
   10736   echo "$as_me: failed program was:" >&5
   10737 cat conftest.$ac_ext >&5
   10738 ac_cv_func_XtAppInitialize=no
   10739 fi
   10740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10741 fi
   10742 echo "$as_me:10742: result: $ac_cv_func_XtAppInitialize" >&5
   10743 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
   10744 if test $ac_cv_func_XtAppInitialize = yes; then
   10745   :
   10746 else
   10747 
   10748 	echo "$as_me:10748: checking for XtAppInitialize in -lXt" >&5
   10749 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
   10750 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
   10751   echo $ECHO_N "(cached) $ECHO_C" >&6
   10752 else
   10753   ac_check_lib_save_LIBS=$LIBS
   10754 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
   10755 cat >conftest.$ac_ext <<_ACEOF
   10756 #line 10756 "configure"
   10757 #include "confdefs.h"
   10758 
   10759 /* Override any gcc2 internal prototype to avoid an error.  */
   10760 #ifdef __cplusplus
   10761 extern "C"
   10762 #endif
   10763 /* We use char because int might match the return type of a gcc2
   10764    builtin and then its argument prototype would still apply.  */
   10765 char XtAppInitialize ();
   10766 int
   10767 main ()
   10768 {
   10769 XtAppInitialize ();
   10770   ;
   10771   return 0;
   10772 }
   10773 _ACEOF
   10774 rm -f conftest.$ac_objext conftest$ac_exeext
   10775 if { (eval echo "$as_me:10775: \"$ac_link\"") >&5
   10776   (eval $ac_link) 2>&5
   10777   ac_status=$?
   10778   echo "$as_me:10778: \$? = $ac_status" >&5
   10779   (exit $ac_status); } &&
   10780          { ac_try='test -s conftest$ac_exeext'
   10781   { (eval echo "$as_me:10781: \"$ac_try\"") >&5
   10782   (eval $ac_try) 2>&5
   10783   ac_status=$?
   10784   echo "$as_me:10784: \$? = $ac_status" >&5
   10785   (exit $ac_status); }; }; then
   10786   ac_cv_lib_Xt_XtAppInitialize=yes
   10787 else
   10788   echo "$as_me: failed program was:" >&5
   10789 cat conftest.$ac_ext >&5
   10790 ac_cv_lib_Xt_XtAppInitialize=no
   10791 fi
   10792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10793 LIBS=$ac_check_lib_save_LIBS
   10794 fi
   10795 echo "$as_me:10795: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
   10796 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
   10797 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
   10798   cat >>confdefs.h <<\EOF
   10799 #define HAVE_LIBXT 1
   10800 EOF
   10801 
   10802 		 cf_have_X_LIBS=Xt
   10803 		 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
   10804 fi
   10805 
   10806 fi
   10807 
   10808 fi
   10809 
   10810 if test $cf_have_X_LIBS = no ; then
   10811 	{ echo "$as_me:10811: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   10812 test program.  You will have to check and add the proper libraries by hand
   10813 to makefile." >&5
   10814 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
   10815 test program.  You will have to check and add the proper libraries by hand
   10816 to makefile." >&2;}
   10817 fi
   10818 
   10819 cf_x_athena_root=$cf_x_athena
   10820 cf_x_athena_inc=""
   10821 
   10822 for cf_path in default \
   10823 	/usr/contrib/X11R6 \
   10824 	/usr/contrib/X11R5 \
   10825 	/usr/lib/X11R5 \
   10826 	/usr/local
   10827 do
   10828 	if test -z "$cf_x_athena_inc" ; then
   10829 		cf_save="$CPPFLAGS"
   10830 		cf_test=X11/$cf_x_athena_root/SimpleMenu.h
   10831 		if test $cf_path != default ; then
   10832 			CPPFLAGS="$cf_save -I$cf_path/include"
   10833 			echo "$as_me:10833: checking for $cf_test in $cf_path" >&5
   10834 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
   10835 		else
   10836 			echo "$as_me:10836: checking for $cf_test" >&5
   10837 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
   10838 		fi
   10839 		cat >conftest.$ac_ext <<_ACEOF
   10840 #line 10840 "configure"
   10841 #include "confdefs.h"
   10842 
   10843 #include <X11/Intrinsic.h>
   10844 #include <$cf_test>
   10845 int
   10846 main ()
   10847 {
   10848 
   10849   ;
   10850   return 0;
   10851 }
   10852 _ACEOF
   10853 rm -f conftest.$ac_objext
   10854 if { (eval echo "$as_me:10854: \"$ac_compile\"") >&5
   10855   (eval $ac_compile) 2>&5
   10856   ac_status=$?
   10857   echo "$as_me:10857: \$? = $ac_status" >&5
   10858   (exit $ac_status); } &&
   10859          { ac_try='test -s conftest.$ac_objext'
   10860   { (eval echo "$as_me:10860: \"$ac_try\"") >&5
   10861   (eval $ac_try) 2>&5
   10862   ac_status=$?
   10863   echo "$as_me:10863: \$? = $ac_status" >&5
   10864   (exit $ac_status); }; }; then
   10865   cf_result=yes
   10866 else
   10867   echo "$as_me: failed program was:" >&5
   10868 cat conftest.$ac_ext >&5
   10869 cf_result=no
   10870 fi
   10871 rm -f conftest.$ac_objext conftest.$ac_ext
   10872 		echo "$as_me:10872: result: $cf_result" >&5
   10873 echo "${ECHO_T}$cf_result" >&6
   10874 		if test "$cf_result" = yes ; then
   10875 			cf_x_athena_inc=$cf_path
   10876 			break
   10877 		else
   10878 			CPPFLAGS="$cf_save"
   10879 		fi
   10880 	fi
   10881 done
   10882 
   10883 if test -z "$cf_x_athena_inc" ; then
   10884 	{ echo "$as_me:10884: WARNING: Unable to successfully find Athena header files with test program" >&5
   10885 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
   10886 elif test "$cf_x_athena_inc" != default ; then
   10887 	CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
   10888 fi
   10889 
   10890 cf_x_athena_root=$cf_x_athena
   10891 cf_x_athena_lib=""
   10892 
   10893 for cf_path in default \
   10894 	/usr/contrib/X11R6 \
   10895 	/usr/contrib/X11R5 \
   10896 	/usr/lib/X11R5 \
   10897 	/usr/local
   10898 do
   10899 	for cf_lib in \
   10900 		"-l$cf_x_athena_root -lXmu" \
   10901 		"-l$cf_x_athena_root -lXpm -lXmu" \
   10902 		"-l${cf_x_athena_root}_s -lXmu_s"
   10903 	do
   10904 		if test -z "$cf_x_athena_lib" ; then
   10905 			cf_save="$LIBS"
   10906 			cf_test=XawSimpleMenuAddGlobalActions
   10907 			if test $cf_path != default ; then
   10908 				LIBS="-L$cf_path/lib $cf_lib $LIBS"
   10909 				echo "$as_me:10909: checking for $cf_lib in $cf_path" >&5
   10910 echo $ECHO_N "checking for $cf_lib in $cf_path... $ECHO_C" >&6
   10911 			else
   10912 				LIBS="$cf_lib $LIBS"
   10913 				echo "$as_me:10913: checking for $cf_test in $cf_lib" >&5
   10914 echo $ECHO_N "checking for $cf_test in $cf_lib... $ECHO_C" >&6
   10915 			fi
   10916 			cat >conftest.$ac_ext <<_ACEOF
   10917 #line 10917 "configure"
   10918 #include "confdefs.h"
   10919 
   10920 #include <X11/Intrinsic.h>
   10921 #include <X11/$cf_x_athena_root/SimpleMenu.h>
   10922 
   10923 int
   10924 main ()
   10925 {
   10926 
   10927 $cf_test((XtAppContext) 0)
   10928   ;
   10929   return 0;
   10930 }
   10931 _ACEOF
   10932 rm -f conftest.$ac_objext conftest$ac_exeext
   10933 if { (eval echo "$as_me:10933: \"$ac_link\"") >&5
   10934   (eval $ac_link) 2>&5
   10935   ac_status=$?
   10936   echo "$as_me:10936: \$? = $ac_status" >&5
   10937   (exit $ac_status); } &&
   10938          { ac_try='test -s conftest$ac_exeext'
   10939   { (eval echo "$as_me:10939: \"$ac_try\"") >&5
   10940   (eval $ac_try) 2>&5
   10941   ac_status=$?
   10942   echo "$as_me:10942: \$? = $ac_status" >&5
   10943   (exit $ac_status); }; }; then
   10944   cf_result=yes
   10945 else
   10946   echo "$as_me: failed program was:" >&5
   10947 cat conftest.$ac_ext >&5
   10948 cf_result=no
   10949 fi
   10950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   10951 			echo "$as_me:10951: result: $cf_result" >&5
   10952 echo "${ECHO_T}$cf_result" >&6
   10953 			if test "$cf_result" = yes ; then
   10954 				cf_x_athena_lib="$cf_lib"
   10955 				break
   10956 			fi
   10957 			LIBS="$cf_save"
   10958 		fi
   10959 	done
   10960 done
   10961 
   10962 if test -z "$cf_x_athena_lib" ; then
   10963 	{ { echo "$as_me:10963: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
   10964 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
   10965    { (exit 1); exit 1; }; }
   10966 fi
   10967 
   10968 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   10969 
   10970 cat >>confdefs.h <<EOF
   10971 #define $cf_x_athena_LIBS 1
   10972 EOF
   10973 
   10974 fi
   10975 
   10976 for ac_header in X11/Xpoll.h
   10977 do
   10978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10979 echo "$as_me:10979: checking for $ac_header" >&5
   10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   10981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   10982   echo $ECHO_N "(cached) $ECHO_C" >&6
   10983 else
   10984   cat >conftest.$ac_ext <<_ACEOF
   10985 #line 10985 "configure"
   10986 #include "confdefs.h"
   10987 #include <$ac_header>
   10988 _ACEOF
   10989 if { (eval echo "$as_me:10989: \"$ac_cpp conftest.$ac_ext\"") >&5
   10990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   10991   ac_status=$?
   10992   egrep -v '^ *\+' conftest.er1 >conftest.err
   10993   rm -f conftest.er1
   10994   cat conftest.err >&5
   10995   echo "$as_me:10995: \$? = $ac_status" >&5
   10996   (exit $ac_status); } >/dev/null; then
   10997   if test -s conftest.err; then
   10998     ac_cpp_err=$ac_c_preproc_warn_flag
   10999   else
   11000     ac_cpp_err=
   11001   fi
   11002 else
   11003   ac_cpp_err=yes
   11004 fi
   11005 if test -z "$ac_cpp_err"; then
   11006   eval "$as_ac_Header=yes"
   11007 else
   11008   echo "$as_me: failed program was:" >&5
   11009   cat conftest.$ac_ext >&5
   11010   eval "$as_ac_Header=no"
   11011 fi
   11012 rm -f conftest.err conftest.$ac_ext
   11013 fi
   11014 echo "$as_me:11014: result: `eval echo '${'$as_ac_Header'}'`" >&5
   11015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   11016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   11017   cat >>confdefs.h <<EOF
   11018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11019 EOF
   11020 
   11021 fi
   11022 done
   11023 
   11024 echo "$as_me:11024: checking for declaration of fd_set" >&5
   11025 echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6
   11026 if test "${cf_cv_type_fd_set+set}" = set; then
   11027   echo $ECHO_N "(cached) $ECHO_C" >&6
   11028 else
   11029 
   11030 echo "${as_me:-configure}:11030: testing sys/types alone ..." 1>&5
   11031 
   11032 cat >conftest.$ac_ext <<_ACEOF
   11033 #line 11033 "configure"
   11034 #include "confdefs.h"
   11035 
   11036 #include <sys/types.h>
   11037 int
   11038 main ()
   11039 {
   11040 fd_set x
   11041   ;
   11042   return 0;
   11043 }
   11044 _ACEOF
   11045 rm -f conftest.$ac_objext
   11046 if { (eval echo "$as_me:11046: \"$ac_compile\"") >&5
   11047   (eval $ac_compile) 2>&5
   11048   ac_status=$?
   11049   echo "$as_me:11049: \$? = $ac_status" >&5
   11050   (exit $ac_status); } &&
   11051          { ac_try='test -s conftest.$ac_objext'
   11052   { (eval echo "$as_me:11052: \"$ac_try\"") >&5
   11053   (eval $ac_try) 2>&5
   11054   ac_status=$?
   11055   echo "$as_me:11055: \$? = $ac_status" >&5
   11056   (exit $ac_status); }; }; then
   11057   cf_cv_type_fd_set=sys/types.h
   11058 else
   11059   echo "$as_me: failed program was:" >&5
   11060 cat conftest.$ac_ext >&5
   11061 
   11062 echo "${as_me:-configure}:11062: testing X11/Xpoll.h ..." 1>&5
   11063 
   11064 cat >conftest.$ac_ext <<_ACEOF
   11065 #line 11065 "configure"
   11066 #include "confdefs.h"
   11067 
   11068 #ifdef HAVE_X11_XPOLL_H
   11069 #include <X11/Xpoll.h>
   11070 #endif
   11071 int
   11072 main ()
   11073 {
   11074 fd_set x
   11075   ;
   11076   return 0;
   11077 }
   11078 _ACEOF
   11079 rm -f conftest.$ac_objext
   11080 if { (eval echo "$as_me:11080: \"$ac_compile\"") >&5
   11081   (eval $ac_compile) 2>&5
   11082   ac_status=$?
   11083   echo "$as_me:11083: \$? = $ac_status" >&5
   11084   (exit $ac_status); } &&
   11085          { ac_try='test -s conftest.$ac_objext'
   11086   { (eval echo "$as_me:11086: \"$ac_try\"") >&5
   11087   (eval $ac_try) 2>&5
   11088   ac_status=$?
   11089   echo "$as_me:11089: \$? = $ac_status" >&5
   11090   (exit $ac_status); }; }; then
   11091   cf_cv_type_fd_set=X11/Xpoll.h
   11092 else
   11093   echo "$as_me: failed program was:" >&5
   11094 cat conftest.$ac_ext >&5
   11095 
   11096 echo "${as_me:-configure}:11096: testing sys/select.h ..." 1>&5
   11097 
   11098 cat >conftest.$ac_ext <<_ACEOF
   11099 #line 11099 "configure"
   11100 #include "confdefs.h"
   11101 
   11102 #include <sys/types.h>
   11103 #include <sys/select.h>
   11104 int
   11105 main ()
   11106 {
   11107 fd_set x
   11108   ;
   11109   return 0;
   11110 }
   11111 _ACEOF
   11112 rm -f conftest.$ac_objext
   11113 if { (eval echo "$as_me:11113: \"$ac_compile\"") >&5
   11114   (eval $ac_compile) 2>&5
   11115   ac_status=$?
   11116   echo "$as_me:11116: \$? = $ac_status" >&5
   11117   (exit $ac_status); } &&
   11118          { ac_try='test -s conftest.$ac_objext'
   11119   { (eval echo "$as_me:11119: \"$ac_try\"") >&5
   11120   (eval $ac_try) 2>&5
   11121   ac_status=$?
   11122   echo "$as_me:11122: \$? = $ac_status" >&5
   11123   (exit $ac_status); }; }; then
   11124   cf_cv_type_fd_set=sys/select.h
   11125 else
   11126   echo "$as_me: failed program was:" >&5
   11127 cat conftest.$ac_ext >&5
   11128 cf_cv_type_fd_set=unknown
   11129 fi
   11130 rm -f conftest.$ac_objext conftest.$ac_ext
   11131 fi
   11132 rm -f conftest.$ac_objext conftest.$ac_ext
   11133 fi
   11134 rm -f conftest.$ac_objext conftest.$ac_ext
   11135 fi
   11136 echo "$as_me:11136: result: $cf_cv_type_fd_set" >&5
   11137 echo "${ECHO_T}$cf_cv_type_fd_set" >&6
   11138 if test $cf_cv_type_fd_set = sys/select.h ; then
   11139 	cat >>confdefs.h <<\EOF
   11140 #define USE_SYS_SELECT_H 1
   11141 EOF
   11142 
   11143 fi
   11144 
   11145 echo "$as_me:11145: checking for declaration of fd_mask" >&5
   11146 echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6
   11147 if test "${cf_cv_type_fd_mask+set}" = set; then
   11148   echo $ECHO_N "(cached) $ECHO_C" >&6
   11149 else
   11150 
   11151     if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then
   11152         cat >conftest.$ac_ext <<_ACEOF
   11153 #line 11153 "configure"
   11154 #include "confdefs.h"
   11155 
   11156 #include <X11/Xpoll.h>
   11157 int
   11158 main ()
   11159 {
   11160 fd_mask x
   11161   ;
   11162   return 0;
   11163 }
   11164 _ACEOF
   11165 rm -f conftest.$ac_objext
   11166 if { (eval echo "$as_me:11166: \"$ac_compile\"") >&5
   11167   (eval $ac_compile) 2>&5
   11168   ac_status=$?
   11169   echo "$as_me:11169: \$? = $ac_status" >&5
   11170   (exit $ac_status); } &&
   11171          { ac_try='test -s conftest.$ac_objext'
   11172   { (eval echo "$as_me:11172: \"$ac_try\"") >&5
   11173   (eval $ac_try) 2>&5
   11174   ac_status=$?
   11175   echo "$as_me:11175: \$? = $ac_status" >&5
   11176   (exit $ac_status); }; }; then
   11177   :
   11178 else
   11179   echo "$as_me: failed program was:" >&5
   11180 cat conftest.$ac_ext >&5
   11181 
   11182 echo "${as_me:-configure}:11182: testing if we must define CSRG_BASED ..." 1>&5
   11183 
   11184 # Xosdefs.h on Mac OS X may not define this (but it should).
   11185             cat >conftest.$ac_ext <<_ACEOF
   11186 #line 11186 "configure"
   11187 #include "confdefs.h"
   11188 
   11189 #define CSRG_BASED
   11190 #include <X11/Xpoll.h>
   11191 int
   11192 main ()
   11193 {
   11194 fd_mask x
   11195   ;
   11196   return 0;
   11197 }
   11198 _ACEOF
   11199 rm -f conftest.$ac_objext
   11200 if { (eval echo "$as_me:11200: \"$ac_compile\"") >&5
   11201   (eval $ac_compile) 2>&5
   11202   ac_status=$?
   11203   echo "$as_me:11203: \$? = $ac_status" >&5
   11204   (exit $ac_status); } &&
   11205          { ac_try='test -s conftest.$ac_objext'
   11206   { (eval echo "$as_me:11206: \"$ac_try\"") >&5
   11207   (eval $ac_try) 2>&5
   11208   ac_status=$?
   11209   echo "$as_me:11209: \$? = $ac_status" >&5
   11210   (exit $ac_status); }; }; then
   11211   cf_cv_type_fd_mask=CSRG_BASED
   11212 else
   11213   echo "$as_me: failed program was:" >&5
   11214 cat conftest.$ac_ext >&5
   11215 fi
   11216 rm -f conftest.$ac_objext conftest.$ac_ext
   11217 fi
   11218 rm -f conftest.$ac_objext conftest.$ac_ext
   11219     else
   11220         cf_cv_type_fd_mask=$cf_cv_type_fd_set
   11221     fi
   11222 
   11223 fi
   11224 echo "$as_me:11224: result: $cf_cv_type_fd_mask" >&5
   11225 echo "${ECHO_T}$cf_cv_type_fd_mask" >&6
   11226 if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then
   11227     cat >>confdefs.h <<\EOF
   11228 #define CSRG_BASED 1
   11229 EOF
   11230 
   11231 fi
   11232 
   11233 echo "$as_me:11233: checking for IRIX 6.5 baud-rate redefinitions" >&5
   11234 echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6
   11235 if test "${cf_cv_termio_c_ispeed+set}" = set; then
   11236   echo $ECHO_N "(cached) $ECHO_C" >&6
   11237 else
   11238 
   11239 cat >conftest.$ac_ext <<_ACEOF
   11240 #line 11240 "configure"
   11241 #include "confdefs.h"
   11242 
   11243 #include <sys/types.h>
   11244 #include <sys/termio.h>
   11245 int
   11246 main ()
   11247 {
   11248 
   11249 struct termio foo;
   11250 foo.c_ispeed = B38400;
   11251 foo.c_ospeed = B9600;
   11252 
   11253   ;
   11254   return 0;
   11255 }
   11256 _ACEOF
   11257 rm -f conftest.$ac_objext
   11258 if { (eval echo "$as_me:11258: \"$ac_compile\"") >&5
   11259   (eval $ac_compile) 2>&5
   11260   ac_status=$?
   11261   echo "$as_me:11261: \$? = $ac_status" >&5
   11262   (exit $ac_status); } &&
   11263          { ac_try='test -s conftest.$ac_objext'
   11264   { (eval echo "$as_me:11264: \"$ac_try\"") >&5
   11265   (eval $ac_try) 2>&5
   11266   ac_status=$?
   11267   echo "$as_me:11267: \$? = $ac_status" >&5
   11268   (exit $ac_status); }; }; then
   11269   cf_cv_termio_c_ispeed=yes
   11270 
   11271 else
   11272   echo "$as_me: failed program was:" >&5
   11273 cat conftest.$ac_ext >&5
   11274 cf_cv_termio_c_ispeed=no
   11275 fi
   11276 rm -f conftest.$ac_objext conftest.$ac_ext
   11277 
   11278 fi
   11279 echo "$as_me:11279: result: $cf_cv_termio_c_ispeed" >&5
   11280 echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6
   11281 test "$cf_cv_termio_c_ispeed" = yes && cat >>confdefs.h <<\EOF
   11282 #define HAVE_TERMIO_C_ISPEED 1
   11283 EOF
   11284 
   11285 LIBS="$LIBS $X_EXTRA_LIBS"
   11286 
   11287 # Check for openpty() in -lutil if the UNIX98-style pty functions are not
   11288 # available. E.g. for GNU libc 2.0.
   11289 case $host_os in #(vi
   11290 freebsd*|netbsd*|dragonfly*) # 2004/8/15 - revisit this if/when grantpt is known to work.
   11291 
   11292 echo "$as_me:11292: checking for openpty in -lutil" >&5
   11293 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
   11294 if test "${ac_cv_lib_util_openpty+set}" = set; then
   11295   echo $ECHO_N "(cached) $ECHO_C" >&6
   11296 else
   11297   ac_check_lib_save_LIBS=$LIBS
   11298 LIBS="-lutil  $LIBS"
   11299 cat >conftest.$ac_ext <<_ACEOF
   11300 #line 11300 "configure"
   11301 #include "confdefs.h"
   11302 
   11303 /* Override any gcc2 internal prototype to avoid an error.  */
   11304 #ifdef __cplusplus
   11305 extern "C"
   11306 #endif
   11307 /* We use char because int might match the return type of a gcc2
   11308    builtin and then its argument prototype would still apply.  */
   11309 char openpty ();
   11310 int
   11311 main ()
   11312 {
   11313 openpty ();
   11314   ;
   11315   return 0;
   11316 }
   11317 _ACEOF
   11318 rm -f conftest.$ac_objext conftest$ac_exeext
   11319 if { (eval echo "$as_me:11319: \"$ac_link\"") >&5
   11320   (eval $ac_link) 2>&5
   11321   ac_status=$?
   11322   echo "$as_me:11322: \$? = $ac_status" >&5
   11323   (exit $ac_status); } &&
   11324          { ac_try='test -s conftest$ac_exeext'
   11325   { (eval echo "$as_me:11325: \"$ac_try\"") >&5
   11326   (eval $ac_try) 2>&5
   11327   ac_status=$?
   11328   echo "$as_me:11328: \$? = $ac_status" >&5
   11329   (exit $ac_status); }; }; then
   11330   ac_cv_lib_util_openpty=yes
   11331 else
   11332   echo "$as_me: failed program was:" >&5
   11333 cat conftest.$ac_ext >&5
   11334 ac_cv_lib_util_openpty=no
   11335 fi
   11336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11337 LIBS=$ac_check_lib_save_LIBS
   11338 fi
   11339 echo "$as_me:11339: result: $ac_cv_lib_util_openpty" >&5
   11340 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
   11341 if test $ac_cv_lib_util_openpty = yes; then
   11342   cat >>confdefs.h <<EOF
   11343 #define HAVE_LIBUTIL 1
   11344 EOF
   11345 
   11346   LIBS="-lutil $LIBS"
   11347 
   11348 fi
   11349 
   11350 	;;
   11351 *)
   11352 
   11353 for ac_func in grantpt
   11354 do
   11355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11356 echo "$as_me:11356: checking for $ac_func" >&5
   11357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   11358 if eval "test \"\${$as_ac_var+set}\" = set"; then
   11359   echo $ECHO_N "(cached) $ECHO_C" >&6
   11360 else
   11361   cat >conftest.$ac_ext <<_ACEOF
   11362 #line 11362 "configure"
   11363 #include "confdefs.h"
   11364 /* System header to define __stub macros and hopefully few prototypes,
   11365     which can conflict with char $ac_func (); below.  */
   11366 #include <assert.h>
   11367 /* Override any gcc2 internal prototype to avoid an error.  */
   11368 #ifdef __cplusplus
   11369 extern "C"
   11370 #endif
   11371 /* We use char because int might match the return type of a gcc2
   11372    builtin and then its argument prototype would still apply.  */
   11373 char $ac_func ();
   11374 char (*f) ();
   11375 
   11376 int
   11377 main ()
   11378 {
   11379 /* The GNU C library defines this for functions which it implements
   11380     to always fail with ENOSYS.  Some functions are actually named
   11381     something starting with __ and the normal name is an alias.  */
   11382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   11383 choke me
   11384 #else
   11385 f = $ac_func;
   11386 #endif
   11387 
   11388   ;
   11389   return 0;
   11390 }
   11391 _ACEOF
   11392 rm -f conftest.$ac_objext conftest$ac_exeext
   11393 if { (eval echo "$as_me:11393: \"$ac_link\"") >&5
   11394   (eval $ac_link) 2>&5
   11395   ac_status=$?
   11396   echo "$as_me:11396: \$? = $ac_status" >&5
   11397   (exit $ac_status); } &&
   11398          { ac_try='test -s conftest$ac_exeext'
   11399   { (eval echo "$as_me:11399: \"$ac_try\"") >&5
   11400   (eval $ac_try) 2>&5
   11401   ac_status=$?
   11402   echo "$as_me:11402: \$? = $ac_status" >&5
   11403   (exit $ac_status); }; }; then
   11404   eval "$as_ac_var=yes"
   11405 else
   11406   echo "$as_me: failed program was:" >&5
   11407 cat conftest.$ac_ext >&5
   11408 eval "$as_ac_var=no"
   11409 fi
   11410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11411 fi
   11412 echo "$as_me:11412: result: `eval echo '${'$as_ac_var'}'`" >&5
   11413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   11414 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11415   cat >>confdefs.h <<EOF
   11416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11417 EOF
   11418 
   11419 else
   11420 
   11421 echo "$as_me:11421: checking for openpty in -lutil" >&5
   11422 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
   11423 if test "${ac_cv_lib_util_openpty+set}" = set; then
   11424   echo $ECHO_N "(cached) $ECHO_C" >&6
   11425 else
   11426   ac_check_lib_save_LIBS=$LIBS
   11427 LIBS="-lutil  $LIBS"
   11428 cat >conftest.$ac_ext <<_ACEOF
   11429 #line 11429 "configure"
   11430 #include "confdefs.h"
   11431 
   11432 /* Override any gcc2 internal prototype to avoid an error.  */
   11433 #ifdef __cplusplus
   11434 extern "C"
   11435 #endif
   11436 /* We use char because int might match the return type of a gcc2
   11437    builtin and then its argument prototype would still apply.  */
   11438 char openpty ();
   11439 int
   11440 main ()
   11441 {
   11442 openpty ();
   11443   ;
   11444   return 0;
   11445 }
   11446 _ACEOF
   11447 rm -f conftest.$ac_objext conftest$ac_exeext
   11448 if { (eval echo "$as_me:11448: \"$ac_link\"") >&5
   11449   (eval $ac_link) 2>&5
   11450   ac_status=$?
   11451   echo "$as_me:11451: \$? = $ac_status" >&5
   11452   (exit $ac_status); } &&
   11453          { ac_try='test -s conftest$ac_exeext'
   11454   { (eval echo "$as_me:11454: \"$ac_try\"") >&5
   11455   (eval $ac_try) 2>&5
   11456   ac_status=$?
   11457   echo "$as_me:11457: \$? = $ac_status" >&5
   11458   (exit $ac_status); }; }; then
   11459   ac_cv_lib_util_openpty=yes
   11460 else
   11461   echo "$as_me: failed program was:" >&5
   11462 cat conftest.$ac_ext >&5
   11463 ac_cv_lib_util_openpty=no
   11464 fi
   11465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11466 LIBS=$ac_check_lib_save_LIBS
   11467 fi
   11468 echo "$as_me:11468: result: $ac_cv_lib_util_openpty" >&5
   11469 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
   11470 if test $ac_cv_lib_util_openpty = yes; then
   11471   cat >>confdefs.h <<EOF
   11472 #define HAVE_LIBUTIL 1
   11473 EOF
   11474 
   11475   LIBS="-lutil $LIBS"
   11476 
   11477 fi
   11478 
   11479 fi
   11480 done
   11481 
   11482 	;;
   11483 esac
   11484 
   11485 for ac_func in XkbQueryExtension
   11486 do
   11487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11488 echo "$as_me:11488: checking for $ac_func" >&5
   11489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   11490 if eval "test \"\${$as_ac_var+set}\" = set"; then
   11491   echo $ECHO_N "(cached) $ECHO_C" >&6
   11492 else
   11493   cat >conftest.$ac_ext <<_ACEOF
   11494 #line 11494 "configure"
   11495 #include "confdefs.h"
   11496 /* System header to define __stub macros and hopefully few prototypes,
   11497     which can conflict with char $ac_func (); below.  */
   11498 #include <assert.h>
   11499 /* Override any gcc2 internal prototype to avoid an error.  */
   11500 #ifdef __cplusplus
   11501 extern "C"
   11502 #endif
   11503 /* We use char because int might match the return type of a gcc2
   11504    builtin and then its argument prototype would still apply.  */
   11505 char $ac_func ();
   11506 char (*f) ();
   11507 
   11508 int
   11509 main ()
   11510 {
   11511 /* The GNU C library defines this for functions which it implements
   11512     to always fail with ENOSYS.  Some functions are actually named
   11513     something starting with __ and the normal name is an alias.  */
   11514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   11515 choke me
   11516 #else
   11517 f = $ac_func;
   11518 #endif
   11519 
   11520   ;
   11521   return 0;
   11522 }
   11523 _ACEOF
   11524 rm -f conftest.$ac_objext conftest$ac_exeext
   11525 if { (eval echo "$as_me:11525: \"$ac_link\"") >&5
   11526   (eval $ac_link) 2>&5
   11527   ac_status=$?
   11528   echo "$as_me:11528: \$? = $ac_status" >&5
   11529   (exit $ac_status); } &&
   11530          { ac_try='test -s conftest$ac_exeext'
   11531   { (eval echo "$as_me:11531: \"$ac_try\"") >&5
   11532   (eval $ac_try) 2>&5
   11533   ac_status=$?
   11534   echo "$as_me:11534: \$? = $ac_status" >&5
   11535   (exit $ac_status); }; }; then
   11536   eval "$as_ac_var=yes"
   11537 else
   11538   echo "$as_me: failed program was:" >&5
   11539 cat conftest.$ac_ext >&5
   11540 eval "$as_ac_var=no"
   11541 fi
   11542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11543 fi
   11544 echo "$as_me:11544: result: `eval echo '${'$as_ac_var'}'`" >&5
   11545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   11546 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11547   cat >>confdefs.h <<EOF
   11548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11549 EOF
   11550 
   11551 fi
   11552 done
   11553 
   11554 echo "$as_me:11554: checking for XKB Bell extension" >&5
   11555 echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6
   11556 if test "${cf_cv_xkb_bell_ext+set}" = set; then
   11557   echo $ECHO_N "(cached) $ECHO_C" >&6
   11558 else
   11559 
   11560 cat >conftest.$ac_ext <<_ACEOF
   11561 #line 11561 "configure"
   11562 #include "confdefs.h"
   11563 
   11564 #include <X11/Intrinsic.h>
   11565 #include <X11/XKBlib.h>		/* has the prototype */
   11566 #include <X11/extensions/XKBbells.h>	/* has the XkbBI_xxx definitions */
   11567 
   11568 int
   11569 main ()
   11570 {
   11571 
   11572 	int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell);
   11573 	Atom y;
   11574 	XkbBell((Display *)0, (Widget)0, 0, y);
   11575 
   11576   ;
   11577   return 0;
   11578 }
   11579 _ACEOF
   11580 rm -f conftest.$ac_objext conftest$ac_exeext
   11581 if { (eval echo "$as_me:11581: \"$ac_link\"") >&5
   11582   (eval $ac_link) 2>&5
   11583   ac_status=$?
   11584   echo "$as_me:11584: \$? = $ac_status" >&5
   11585   (exit $ac_status); } &&
   11586          { ac_try='test -s conftest$ac_exeext'
   11587   { (eval echo "$as_me:11587: \"$ac_try\"") >&5
   11588   (eval $ac_try) 2>&5
   11589   ac_status=$?
   11590   echo "$as_me:11590: \$? = $ac_status" >&5
   11591   (exit $ac_status); }; }; then
   11592   cf_cv_xkb_bell_ext=yes
   11593 else
   11594   echo "$as_me: failed program was:" >&5
   11595 cat conftest.$ac_ext >&5
   11596 cf_cv_xkb_bell_ext=no
   11597 fi
   11598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11599 
   11600 fi
   11601 echo "$as_me:11601: result: $cf_cv_xkb_bell_ext" >&5
   11602 echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6
   11603 test "$cf_cv_xkb_bell_ext" = yes && cat >>confdefs.h <<\EOF
   11604 #define HAVE_XKB_BELL_EXT 1
   11605 EOF
   11606 
   11607 for ac_func in Xutf8LookupString
   11608 do
   11609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11610 echo "$as_me:11610: checking for $ac_func" >&5
   11611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   11612 if eval "test \"\${$as_ac_var+set}\" = set"; then
   11613   echo $ECHO_N "(cached) $ECHO_C" >&6
   11614 else
   11615   cat >conftest.$ac_ext <<_ACEOF
   11616 #line 11616 "configure"
   11617 #include "confdefs.h"
   11618 /* System header to define __stub macros and hopefully few prototypes,
   11619     which can conflict with char $ac_func (); below.  */
   11620 #include <assert.h>
   11621 /* Override any gcc2 internal prototype to avoid an error.  */
   11622 #ifdef __cplusplus
   11623 extern "C"
   11624 #endif
   11625 /* We use char because int might match the return type of a gcc2
   11626    builtin and then its argument prototype would still apply.  */
   11627 char $ac_func ();
   11628 char (*f) ();
   11629 
   11630 int
   11631 main ()
   11632 {
   11633 /* The GNU C library defines this for functions which it implements
   11634     to always fail with ENOSYS.  Some functions are actually named
   11635     something starting with __ and the normal name is an alias.  */
   11636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   11637 choke me
   11638 #else
   11639 f = $ac_func;
   11640 #endif
   11641 
   11642   ;
   11643   return 0;
   11644 }
   11645 _ACEOF
   11646 rm -f conftest.$ac_objext conftest$ac_exeext
   11647 if { (eval echo "$as_me:11647: \"$ac_link\"") >&5
   11648   (eval $ac_link) 2>&5
   11649   ac_status=$?
   11650   echo "$as_me:11650: \$? = $ac_status" >&5
   11651   (exit $ac_status); } &&
   11652          { ac_try='test -s conftest$ac_exeext'
   11653   { (eval echo "$as_me:11653: \"$ac_try\"") >&5
   11654   (eval $ac_try) 2>&5
   11655   ac_status=$?
   11656   echo "$as_me:11656: \$? = $ac_status" >&5
   11657   (exit $ac_status); }; }; then
   11658   eval "$as_ac_var=yes"
   11659 else
   11660   echo "$as_me: failed program was:" >&5
   11661 cat conftest.$ac_ext >&5
   11662 eval "$as_ac_var=no"
   11663 fi
   11664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   11665 fi
   11666 echo "$as_me:11666: result: `eval echo '${'$as_ac_var'}'`" >&5
   11667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
   11669   cat >>confdefs.h <<EOF
   11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11671 EOF
   11672 
   11673 else
   11674 
   11675 	EXTRAHDRS="$EXTRAHDRS xutf8.h"
   11676 	EXTRASRCS="$EXTRASRCS xutf8.c"
   11677 	EXTRAOBJS="$EXTRAOBJS xutf8.o"
   11678 
   11679 fi
   11680 done
   11681 
   11682 echo "$as_me:11682: checking if you want narrow prototypes for X libraries" >&5
   11683 echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6
   11684 
   11685 case `$ac_config_guess` in #(vi
   11686 *cygwin*|*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) #(vi
   11687 	cf_default_narrowproto=yes
   11688 	;;
   11689 *)
   11690 	cf_default_narrowproto=no
   11691 	;;
   11692 esac
   11693 
   11694 # Check whether --enable-narrowproto or --disable-narrowproto was given.
   11695 if test "${enable_narrowproto+set}" = set; then
   11696   enableval="$enable_narrowproto"
   11697   test "$enableval" != no && enableval=yes
   11698   if test "$enableval" != "$cf_default_narrowproto" ; then
   11699     enable_narrowproto=$enableval
   11700   else
   11701     enable_narrowproto=$cf_default_narrowproto
   11702   fi
   11703 else
   11704   enableval=$cf_default_narrowproto
   11705   enable_narrowproto=$cf_default_narrowproto
   11706 
   11707 fi;
   11708 echo "$as_me:11708: result: $enable_narrowproto" >&5
   11709 echo "${ECHO_T}$enable_narrowproto" >&6
   11710 
   11711 echo "$as_me:11711: checking if we should use imake to help" >&5
   11712 echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6
   11713 
   11714 # Check whether --enable-imake or --disable-imake was given.
   11715 if test "${enable_imake+set}" = set; then
   11716   enableval="$enable_imake"
   11717   test "$enableval" != no && enableval=yes
   11718   if test "$enableval" != "yes" ; then
   11719     enable_imake=no
   11720   else
   11721     enable_imake=yes
   11722   fi
   11723 else
   11724   enableval=yes
   11725   enable_imake=yes
   11726 
   11727 fi;
   11728 echo "$as_me:11728: result: $enable_imake" >&5
   11729 echo "${ECHO_T}$enable_imake" >&6
   11730 
   11731 if test "$enable_imake" = yes ; then
   11732 
   11733 for ac_prog in xmkmf imake
   11734 do
   11735   # Extract the first word of "$ac_prog", so it can be a program name with args.
   11736 set dummy $ac_prog; ac_word=$2
   11737 echo "$as_me:11737: checking for $ac_word" >&5
   11738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   11739 if test "${ac_cv_path_IMAKE+set}" = set; then
   11740   echo $ECHO_N "(cached) $ECHO_C" >&6
   11741 else
   11742   case $IMAKE in
   11743   [\\/]* | ?:[\\/]*)
   11744   ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
   11745   ;;
   11746   *)
   11747   ac_save_IFS=$IFS; IFS=$ac_path_separator
   11748 ac_dummy="$PATH"
   11749 for ac_dir in $ac_dummy; do
   11750   IFS=$ac_save_IFS
   11751   test -z "$ac_dir" && ac_dir=.
   11752   if $as_executable_p "$ac_dir/$ac_word"; then
   11753    ac_cv_path_IMAKE="$ac_dir/$ac_word"
   11754    echo "$as_me:11754: found $ac_dir/$ac_word" >&5
   11755    break
   11756 fi
   11757 done
   11758 
   11759   ;;
   11760 esac
   11761 fi
   11762 IMAKE=$ac_cv_path_IMAKE
   11763 
   11764 if test -n "$IMAKE"; then
   11765   echo "$as_me:11765: result: $IMAKE" >&5
   11766 echo "${ECHO_T}$IMAKE" >&6
   11767 else
   11768   echo "$as_me:11768: result: no" >&5
   11769 echo "${ECHO_T}no" >&6
   11770 fi
   11771 
   11772   test -n "$IMAKE" && break
   11773 done
   11774 
   11775 if test -n "$IMAKE" ; then
   11776 
   11777 case $IMAKE in # (vi
   11778 */imake)
   11779 	cf_imake_opts="-DUseInstalled=YES" # (vi
   11780 	;;
   11781 */util/xmkmf)
   11782 	# A single parameter tells xmkmf where the config-files are:
   11783 	cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`" # (vi
   11784 	;;
   11785 *)
   11786 	cf_imake_opts=
   11787 	;;
   11788 esac
   11789 
   11790 # If it's installed properly, imake (or its wrapper, xmkmf) will point to the
   11791 # config directory.
   11792 if mkdir conftestdir; then
   11793 	CDPATH=; export CDPATH
   11794 	cf_makefile=`cd $srcdir;pwd`/Imakefile
   11795 	cd conftestdir
   11796 
   11797 	cat >fix_cflags.sed <<'CF_EOF'
   11798 s/\\//g
   11799 s/[ 	][ 	]*/ /g
   11800 s/"//g
   11801 :pack
   11802 s/\(=[^ ][^ ]*\) \([^-]\)/\1	\2/g
   11803 t pack
   11804 s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g
   11805 s/^IMAKE[ ]/IMAKE_CFLAGS="/
   11806 s/	/ /g
   11807 s/$/"/
   11808 CF_EOF
   11809 
   11810 	cat >fix_lflags.sed <<'CF_EOF'
   11811 s/^IMAKE[ 	]*/IMAKE_LOADFLAGS="/
   11812 s/$/"/
   11813 CF_EOF
   11814 
   11815 	echo >./Imakefile
   11816 	test -f $cf_makefile && cat $cf_makefile >>./Imakefile
   11817 
   11818 	cat >> ./Imakefile <<'CF_EOF'
   11819 findstddefs:
   11820 	@echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS)       | sed -f fix_cflags.sed
   11821 	@echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed
   11822 CF_EOF
   11823 
   11824 	if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile)
   11825 	then
   11826 		test -n "$verbose" && echo "	Using $IMAKE $cf_imake_opts" 1>&6
   11827 
   11828 echo "${as_me:-configure}:11828: testing Using $IMAKE $cf_imake_opts ..." 1>&5
   11829 
   11830 	else
   11831 		# sometimes imake doesn't have the config path compiled in.  Find it.
   11832 		cf_config=
   11833 		for cf_libpath in $X_LIBS $LIBS ; do
   11834 			case $cf_libpath in # (vi
   11835 			-L*)
   11836 				cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'`
   11837 				cf_libpath=$cf_libpath/X11/config
   11838 				if test -d $cf_libpath ; then
   11839 					cf_config=$cf_libpath
   11840 					break
   11841 				fi
   11842 				;;
   11843 			esac
   11844 		done
   11845 		if test -z "$cf_config" ; then
   11846 			{ echo "$as_me:11846: WARNING: Could not find imake config-directory" >&5
   11847 echo "$as_me: WARNING: Could not find imake config-directory" >&2;}
   11848 		else
   11849 			cf_imake_opts="$cf_imake_opts -I$cf_config"
   11850 			if ( $IMAKE -v $cf_imake_opts 2>&5)
   11851 			then
   11852 				test -n "$verbose" && echo "	Using $IMAKE $cf_config" 1>&6
   11853 
   11854 echo "${as_me:-configure}:11854: testing Using $IMAKE $cf_config ..." 1>&5
   11855 
   11856 			else
   11857 				{ echo "$as_me:11857: WARNING: Cannot run $IMAKE" >&5
   11858 echo "$as_me: WARNING: Cannot run $IMAKE" >&2;}
   11859 			fi
   11860 		fi
   11861 	fi
   11862 
   11863 	# GNU make sometimes prints "make[1]: Entering...", which
   11864 	# would confuse us.
   11865 	eval `make findstddefs 2>/dev/null | grep -v make`
   11866 
   11867 	cd ..
   11868 	rm -rf conftestdir
   11869 
   11870 	# We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former
   11871 	# declares XTFUNCPROTO there.  However, some vendors (e.g., SGI) have
   11872 	# modified it to support site.cf, adding a kludge for the /usr/include
   11873 	# directory.  Try to filter that out, otherwise gcc won't find its
   11874 	# headers.
   11875 	if test -n "$GCC" ; then
   11876 	    if test -n "$IMAKE_CFLAGS" ; then
   11877 		cf_nostdinc=""
   11878 		cf_std_incl=""
   11879 		cf_cpp_opts=""
   11880 		for cf_opt in $IMAKE_CFLAGS
   11881 		do
   11882 		    case "$cf_opt" in
   11883 		    -nostdinc) #(vi
   11884 			cf_nostdinc="$cf_opt"
   11885 			;;
   11886 		    -I/usr/include) #(vi
   11887 			cf_std_incl="$cf_opt"
   11888 			;;
   11889 		    *) #(vi
   11890 			cf_cpp_opts="$cf_cpp_opts $cf_opt"
   11891 			;;
   11892 		    esac
   11893 		done
   11894 		if test -z "$cf_nostdinc" ; then
   11895 		    IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl"
   11896 		elif test -z "$cf_std_incl" ; then
   11897 		    IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc"
   11898 		else
   11899 		    test -n "$verbose" && echo "	suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6
   11900 
   11901 echo "${as_me:-configure}:11901: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5
   11902 
   11903 		    IMAKE_CFLAGS="$cf_cpp_opts"
   11904 		fi
   11905 	    fi
   11906 	fi
   11907 fi
   11908 
   11909 # Some imake configurations define PROJECTROOT with an empty value.  Remove
   11910 # the empty definition.
   11911 case $IMAKE_CFLAGS in
   11912 *-DPROJECTROOT=/*)
   11913 	;;
   11914 *)
   11915 	IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ 	], ,"`
   11916 	;;
   11917 esac
   11918 
   11919 fi
   11920 
   11921 test -n "$verbose" && echo "	IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6
   11922 
   11923 echo "${as_me:-configure}:11923: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5
   11924 
   11925 test -n "$verbose" && echo "	IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6
   11926 
   11927 echo "${as_me:-configure}:11927: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5
   11928 
   11929 fi
   11930 
   11931 if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then
   11932 
   11933 cf_fix_cppflags=no
   11934 cf_new_cflags=
   11935 cf_new_cppflags=
   11936 cf_new_extra_cppflags=
   11937 
   11938 for cf_add_cflags in $IMAKE_CFLAGS
   11939 do
   11940 case $cf_fix_cppflags in
   11941 no)
   11942 	case $cf_add_cflags in #(vi
   11943 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   11944 		case $cf_add_cflags in
   11945 		-D*)
   11946 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   11947 
   11948 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   11949 				&& test -z "${cf_tst_cflags}" \
   11950 				&& cf_fix_cppflags=yes
   11951 
   11952 			if test $cf_fix_cppflags = yes ; then
   11953 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   11954 				continue
   11955 			elif test "${cf_tst_cflags}" = "\"'" ; then
   11956 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   11957 				continue
   11958 			fi
   11959 			;;
   11960 		esac
   11961 		case "$CPPFLAGS" in
   11962 		*$cf_add_cflags) #(vi
   11963 			;;
   11964 		*) #(vi
   11965 			case $cf_add_cflags in #(vi
   11966 			-D*)
   11967 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   11968 
   11969 CPPFLAGS=`echo "$CPPFLAGS" | \
   11970 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   11971 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   11972 
   11973 				;;
   11974 			esac
   11975 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   11976 			;;
   11977 		esac
   11978 		;;
   11979 	*)
   11980 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   11981 		;;
   11982 	esac
   11983 	;;
   11984 yes)
   11985 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   11986 
   11987 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   11988 
   11989 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   11990 		&& test -z "${cf_tst_cflags}" \
   11991 		&& cf_fix_cppflags=no
   11992 	;;
   11993 esac
   11994 done
   11995 
   11996 if test -n "$cf_new_cflags" ; then
   11997 
   11998 	CFLAGS="$CFLAGS $cf_new_cflags"
   11999 fi
   12000 
   12001 if test -n "$cf_new_cppflags" ; then
   12002 
   12003 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   12004 fi
   12005 
   12006 if test -n "$cf_new_extra_cppflags" ; then
   12007 
   12008 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   12009 fi
   12010 
   12011 else
   12012 	IMAKE_CFLAGS=
   12013 	IMAKE_LOADFLAGS=
   12014 	test -n "$verbose" && echo "	make fallback definitions" 1>&6
   12015 
   12016 echo "${as_me:-configure}:12016: testing make fallback definitions ..." 1>&5
   12017 
   12018 	# We prefer config.guess' values when we can get them, to avoid
   12019 	# inconsistent results with uname (AIX for instance).  However,
   12020 	# config.guess is not always consistent either.
   12021 	case $host_os in
   12022 	*[0-9].[0-9]*)
   12023 		UNAME_RELEASE="$host_os"
   12024 		;;
   12025 	*)
   12026 		UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
   12027 		;;
   12028 	esac
   12029 
   12030 	case .$UNAME_RELEASE in
   12031 	*[0-9].[0-9]*)
   12032 		OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'`
   12033 		OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' `
   12034 		test -z "$OSMAJORVERSION" && OSMAJORVERSION=1
   12035 		test -z "$OSMINORVERSION" && OSMINORVERSION=0
   12036 		IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS"
   12037 		;;
   12038 	esac
   12039 
   12040 	# FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some
   12041 	# fallback/fragments for NeedPrototypes, etc.
   12042 	IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS"
   12043 
   12044 	# If this is not set properly, Xaw's scrollbars will not work
   12045 	if test "$enable_narrowproto" = yes ; then
   12046 		IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS"
   12047 	fi
   12048 
   12049 	# Other special definitions:
   12050 	case $host_os in
   12051 	aix*)
   12052 		# imake on AIX 5.1 defines AIXV3.  really.
   12053 		IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS"
   12054 		;;
   12055 	irix[56].*) #(vi
   12056 		# these are needed to make SIGWINCH work in xterm
   12057 		IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS"
   12058 		;;
   12059 	esac
   12060 
   12061 cf_fix_cppflags=no
   12062 cf_new_cflags=
   12063 cf_new_cppflags=
   12064 cf_new_extra_cppflags=
   12065 
   12066 for cf_add_cflags in $IMAKE_CFLAGS
   12067 do
   12068 case $cf_fix_cppflags in
   12069 no)
   12070 	case $cf_add_cflags in #(vi
   12071 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   12072 		case $cf_add_cflags in
   12073 		-D*)
   12074 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12075 
   12076 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   12077 				&& test -z "${cf_tst_cflags}" \
   12078 				&& cf_fix_cppflags=yes
   12079 
   12080 			if test $cf_fix_cppflags = yes ; then
   12081 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   12082 				continue
   12083 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12084 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   12085 				continue
   12086 			fi
   12087 			;;
   12088 		esac
   12089 		case "$CPPFLAGS" in
   12090 		*$cf_add_cflags) #(vi
   12091 			;;
   12092 		*) #(vi
   12093 			case $cf_add_cflags in #(vi
   12094 			-D*)
   12095 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12096 
   12097 CPPFLAGS=`echo "$CPPFLAGS" | \
   12098 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12099 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12100 
   12101 				;;
   12102 			esac
   12103 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   12104 			;;
   12105 		esac
   12106 		;;
   12107 	*)
   12108 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   12109 		;;
   12110 	esac
   12111 	;;
   12112 yes)
   12113 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   12114 
   12115 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   12116 
   12117 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   12118 		&& test -z "${cf_tst_cflags}" \
   12119 		&& cf_fix_cppflags=no
   12120 	;;
   12121 esac
   12122 done
   12123 
   12124 if test -n "$cf_new_cflags" ; then
   12125 
   12126 	CFLAGS="$CFLAGS $cf_new_cflags"
   12127 fi
   12128 
   12129 if test -n "$cf_new_cppflags" ; then
   12130 
   12131 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   12132 fi
   12133 
   12134 if test -n "$cf_new_extra_cppflags" ; then
   12135 
   12136 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   12137 fi
   12138 
   12139 fi
   12140 
   12141 echo "$as_me:12141: checking for default terminal-id" >&5
   12142 echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6
   12143 
   12144 # Check whether --with-terminal-id or --without-terminal-id was given.
   12145 if test "${with_terminal_id+set}" = set; then
   12146   withval="$with_terminal_id"
   12147   default_termid=$withval
   12148 else
   12149   default_termid=vt100
   12150 fi;
   12151 echo "$as_me:12151: result: $default_termid" >&5
   12152 echo "${ECHO_T}$default_termid" >&6
   12153 case $default_termid in
   12154 vt*)	default_termid=`echo $default_termid | sed -e 's/^..//'`
   12155 	;;
   12156 esac
   12157 cat >>confdefs.h <<EOF
   12158 #define DFT_DECID "$default_termid"
   12159 EOF
   12160 
   12161 echo "$as_me:12161: checking for default terminal-type" >&5
   12162 echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6
   12163 
   12164 # Check whether --with-terminal-type or --without-terminal-type was given.
   12165 if test "${with_terminal_type+set}" = set; then
   12166   withval="$with_terminal_type"
   12167   default_TERM=$withval
   12168 else
   12169   default_TERM=xterm
   12170 fi;
   12171 echo "$as_me:12171: result: $default_TERM" >&5
   12172 echo "${ECHO_T}$default_TERM" >&6
   12173 cat >>confdefs.h <<EOF
   12174 #define DFT_TERMTYPE "$default_TERM"
   12175 EOF
   12176 
   12177 # Extract the first word of "tic", so it can be a program name with args.
   12178 set dummy tic; ac_word=$2
   12179 echo "$as_me:12179: checking for $ac_word" >&5
   12180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   12181 if test "${ac_cv_prog_cf_tic_prog+set}" = set; then
   12182   echo $ECHO_N "(cached) $ECHO_C" >&6
   12183 else
   12184   if test -n "$cf_tic_prog"; then
   12185   ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test.
   12186 else
   12187   ac_save_IFS=$IFS; IFS=$ac_path_separator
   12188 ac_dummy="$PATH"
   12189 for ac_dir in $ac_dummy; do
   12190   IFS=$ac_save_IFS
   12191   test -z "$ac_dir" && ac_dir=.
   12192   $as_executable_p "$ac_dir/$ac_word" || continue
   12193 ac_cv_prog_cf_tic_prog="yes"
   12194 echo "$as_me:12194: found $ac_dir/$ac_word" >&5
   12195 break
   12196 done
   12197 
   12198   test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no"
   12199 fi
   12200 fi
   12201 cf_tic_prog=$ac_cv_prog_cf_tic_prog
   12202 if test -n "$cf_tic_prog"; then
   12203   echo "$as_me:12203: result: $cf_tic_prog" >&5
   12204 echo "${ECHO_T}$cf_tic_prog" >&6
   12205 else
   12206   echo "$as_me:12206: result: no" >&5
   12207 echo "${ECHO_T}no" >&6
   12208 fi
   12209 
   12210 if test "$cf_tic_prog" = yes ; then
   12211 	echo "$as_me:12211: checking for private terminfo-directory" >&5
   12212 echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
   12213 
   12214 # Check whether --with-own-terminfo or --without-own-terminfo was given.
   12215 if test "${with_own_terminfo+set}" = set; then
   12216   withval="$with_own_terminfo"
   12217   TERMINFO_DIR=$withval
   12218 else
   12219   TERMINFO_DIR=${TERMINFO-none}
   12220 fi;
   12221 	echo "$as_me:12221: result: $TERMINFO_DIR" >&5
   12222 echo "${ECHO_T}$TERMINFO_DIR" >&6
   12223 	if test "$TERMINFO_DIR" = yes ; then
   12224 		{ echo "$as_me:12224: WARNING: no value given" >&5
   12225 echo "$as_me: WARNING: no value given" >&2;}
   12226 	elif test "$TERMINFO_DIR" != none ; then
   12227 		if test -d $TERMINFO_DIR ; then
   12228 			cat >>confdefs.h <<EOF
   12229 #define OWN_TERMINFO_DIR "$TERMINFO_DIR"
   12230 EOF
   12231 
   12232 		else
   12233 			{ echo "$as_me:12233: WARNING: not a directory" >&5
   12234 echo "$as_me: WARNING: not a directory" >&2;}
   12235 		fi
   12236 	elif test "$prefix" != NONE ; then
   12237 		TERMINFO_DIR='${prefix}/lib/terminfo'
   12238 	elif test -d /usr/lib/terminfo ; then
   12239 		TERMINFO_DIR=/usr/lib/terminfo
   12240 	else
   12241 		TERMINFO_DIR=
   12242 	fi
   12243 	SET_TERMINFO=
   12244 	if test -n "$TERMINFO_DIR" ; then
   12245 		TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
   12246 		SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
   12247 	fi
   12248 	no_ticprog=
   12249 else
   12250 	no_ticprog="#"
   12251 	TERMINFO_DIR=
   12252 	SET_TERMINFO=
   12253 fi
   12254 
   12255 ###############################################################################
   12256 
   12257 echo "$as_me:12257: checking if you want active-icons" >&5
   12258 echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
   12259 
   12260 # Check whether --enable-active-icon or --disable-active-icon was given.
   12261 if test "${enable_active_icon+set}" = set; then
   12262   enableval="$enable_active_icon"
   12263   test "$enableval" != no && enableval=yes
   12264   if test "$enableval" != "yes" ; then
   12265     enable_active_icon=no
   12266   else
   12267     enable_active_icon=yes
   12268   fi
   12269 else
   12270   enableval=yes
   12271   enable_active_icon=yes
   12272 
   12273 fi;
   12274 echo "$as_me:12274: result: $enable_active_icon" >&5
   12275 echo "${ECHO_T}$enable_active_icon" >&6
   12276 if test "$enable_active_icon" = no ; then
   12277 	cat >>confdefs.h <<\EOF
   12278 #define NO_ACTIVE_ICON 1
   12279 EOF
   12280 
   12281 fi
   12282 
   12283 echo "$as_me:12283: checking if you want ANSI color" >&5
   12284 echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6
   12285 
   12286 # Check whether --enable-ansi-color or --disable-ansi-color was given.
   12287 if test "${enable_ansi_color+set}" = set; then
   12288   enableval="$enable_ansi_color"
   12289   test "$enableval" != no && enableval=yes
   12290   if test "$enableval" != "yes" ; then
   12291     enable_ansi_color=no
   12292   else
   12293     enable_ansi_color=yes
   12294   fi
   12295 else
   12296   enableval=yes
   12297   enable_ansi_color=yes
   12298 
   12299 fi;
   12300 echo "$as_me:12300: result: $enable_ansi_color" >&5
   12301 echo "${ECHO_T}$enable_ansi_color" >&6
   12302 test "$enable_ansi_color" = no && cat >>confdefs.h <<\EOF
   12303 #define OPT_ISO_COLORS 0
   12304 EOF
   12305 
   12306 if test "$enable_ansi_color" = yes ; then
   12307 
   12308 	echo "$as_me:12308: checking if you want 16 colors like aixterm" >&5
   12309 echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6
   12310 
   12311 # Check whether --enable-16-color or --disable-16-color was given.
   12312 if test "${enable_16_color+set}" = set; then
   12313   enableval="$enable_16_color"
   12314   test "$enableval" != no && enableval=yes
   12315   if test "$enableval" != "yes" ; then
   12316     enable_16_color=no
   12317   else
   12318     enable_16_color=yes
   12319   fi
   12320 else
   12321   enableval=yes
   12322   enable_16_color=yes
   12323 
   12324 fi;
   12325 	echo "$as_me:12325: result: $enable_16_color" >&5
   12326 echo "${ECHO_T}$enable_16_color" >&6
   12327 	test "$enable_16_color" = no && cat >>confdefs.h <<\EOF
   12328 #define OPT_AIX_COLORS 0
   12329 EOF
   12330 
   12331 	echo "$as_me:12331: checking if you want 256 colors" >&5
   12332 echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6
   12333 
   12334 # Check whether --enable-256-color or --disable-256-color was given.
   12335 if test "${enable_256_color+set}" = set; then
   12336   enableval="$enable_256_color"
   12337   test "$enableval" != yes && enableval=no
   12338   if test "$enableval" != "no" ; then
   12339     enable_256_color=yes
   12340   else
   12341     enable_256_color=no
   12342   fi
   12343 else
   12344   enableval=no
   12345   enable_256_color=no
   12346 
   12347 fi;
   12348 	echo "$as_me:12348: result: $enable_256_color" >&5
   12349 echo "${ECHO_T}$enable_256_color" >&6
   12350 	if test "$enable_256_color" = yes ; then
   12351 		CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h"
   12352 		EXTRAHDRS="$EXTRAHDRS 256colres.h"
   12353 		cat >>confdefs.h <<\EOF
   12354 #define OPT_256_COLORS 1
   12355 EOF
   12356 
   12357 	else
   12358 	echo "$as_me:12358: checking if you want 88 colors" >&5
   12359 echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6
   12360 
   12361 # Check whether --enable-88-color or --disable-88-color was given.
   12362 if test "${enable_88_color+set}" = set; then
   12363   enableval="$enable_88_color"
   12364   test "$enableval" != yes && enableval=no
   12365   if test "$enableval" != "no" ; then
   12366     enable_88_color=yes
   12367   else
   12368     enable_88_color=no
   12369   fi
   12370 else
   12371   enableval=no
   12372   enable_88_color=no
   12373 
   12374 fi;
   12375 	echo "$as_me:12375: result: $enable_88_color" >&5
   12376 echo "${ECHO_T}$enable_88_color" >&6
   12377 	if test "$enable_88_color" = yes ; then
   12378 		CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h"
   12379 		EXTRAHDRS="$EXTRAHDRS 88colres.h"
   12380 		cat >>confdefs.h <<\EOF
   12381 #define OPT_88_COLORS 1
   12382 EOF
   12383 
   12384 	fi
   12385 	fi
   12386 
   12387 fi
   12388 
   12389 echo "$as_me:12389: checking if you want blinking cursor" >&5
   12390 echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6
   12391 
   12392 # Check whether --enable-blink-cursor or --disable-blink-cursor was given.
   12393 if test "${enable_blink_cursor+set}" = set; then
   12394   enableval="$enable_blink_cursor"
   12395   test "$enableval" != no && enableval=yes
   12396   if test "$enableval" != "yes" ; then
   12397     enable_blink_curs=no
   12398   else
   12399     enable_blink_curs=yes
   12400   fi
   12401 else
   12402   enableval=yes
   12403   enable_blink_curs=yes
   12404 
   12405 fi;
   12406 echo "$as_me:12406: result: $enable_blink_curs" >&5
   12407 echo "${ECHO_T}$enable_blink_curs" >&6
   12408 test "$enable_blink_curs" = no && cat >>confdefs.h <<\EOF
   12409 #define OPT_BLINK_CURS 0
   12410 EOF
   12411 
   12412 echo "$as_me:12412: checking if you want to ignore Linux's broken palette-strings" >&5
   12413 echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6
   12414 
   12415 case $host_os in #(vi
   12416 linux*)
   12417 	assume_broken_osc=yes ;; #(vi
   12418 *)
   12419 	assume_broken_osc=no ;;
   12420 esac
   12421 
   12422 # Check whether --enable-broken-osc or --disable-broken-osc was given.
   12423 if test "${enable_broken_osc+set}" = set; then
   12424   enableval="$enable_broken_osc"
   12425   test "$enableval" != no && enableval=yes
   12426   if test "$enableval" != "$assume_broken_osc" ; then
   12427     enable_broken_osc=$enableval
   12428   else
   12429     enable_broken_osc=$enableval
   12430   fi
   12431 else
   12432   enableval=$assume_broken_osc
   12433   enable_broken_osc=$enableval
   12434 
   12435 fi;
   12436 echo "$as_me:12436: result: $enable_broken_osc" >&5
   12437 echo "${ECHO_T}$enable_broken_osc" >&6
   12438 if test "$enable_broken_osc" = yes ; then
   12439 	cat >>confdefs.h <<\EOF
   12440 #define OPT_BROKEN_OSC 1
   12441 EOF
   12442 
   12443 else
   12444 	cat >>confdefs.h <<\EOF
   12445 #define OPT_BROKEN_OSC 0
   12446 EOF
   12447 
   12448 fi
   12449 
   12450 echo "$as_me:12450: checking if you want to allow broken string-terminators" >&5
   12451 echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6
   12452 
   12453 # Check whether --enable-broken-st or --disable-broken-st was given.
   12454 if test "${enable_broken_st+set}" = set; then
   12455   enableval="$enable_broken_st"
   12456   test "$enableval" != yes && enableval=no
   12457   if test "$enableval" != "no" ; then
   12458     enable_broken_st=no
   12459   else
   12460     enable_broken_st=yes
   12461   fi
   12462 else
   12463   enableval=no
   12464   enable_broken_st=yes
   12465 
   12466 fi;
   12467 echo "$as_me:12467: result: $enable_broken_st" >&5
   12468 echo "${ECHO_T}$enable_broken_st" >&6
   12469 test "$enable_broken_st" = no && cat >>confdefs.h <<\EOF
   12470 #define OPT_BROKEN_ST 0
   12471 EOF
   12472 
   12473 echo "$as_me:12473: checking if you want printable 128-159" >&5
   12474 echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6
   12475 
   12476 # Check whether --enable-c1-print or --disable-c1-print was given.
   12477 if test "${enable_c1_print+set}" = set; then
   12478   enableval="$enable_c1_print"
   12479   test "$enableval" != no && enableval=yes
   12480   if test "$enableval" != "yes" ; then
   12481     enable_c1_print=no
   12482   else
   12483     enable_c1_print=yes
   12484   fi
   12485 else
   12486   enableval=yes
   12487   enable_c1_print=yes
   12488 
   12489 fi;
   12490 echo "$as_me:12490: result: $enable_c1_print" >&5
   12491 echo "${ECHO_T}$enable_c1_print" >&6
   12492 test "$enable_c1_print" = no && cat >>confdefs.h <<\EOF
   12493 #define OPT_C1_PRINT 0
   12494 EOF
   12495 
   12496 if test "$enable_ansi_color" = yes ; then
   12497 
   12498 	echo "$as_me:12498: checking if you want bold colors mapped like IBM PC" >&5
   12499 echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6
   12500 
   12501 # Check whether --enable-bold-color or --disable-bold-color was given.
   12502 if test "${enable_bold_color+set}" = set; then
   12503   enableval="$enable_bold_color"
   12504   test "$enableval" != no && enableval=yes
   12505   if test "$enableval" != "yes" ; then
   12506     enable_pc_color=no
   12507   else
   12508     enable_pc_color=yes
   12509   fi
   12510 else
   12511   enableval=yes
   12512   enable_pc_color=yes
   12513 
   12514 fi;
   12515 	echo "$as_me:12515: result: $enable_pc_color" >&5
   12516 echo "${ECHO_T}$enable_pc_color" >&6
   12517 	test "$enable_pc_color" = no && cat >>confdefs.h <<\EOF
   12518 #define OPT_PC_COLORS 0
   12519 EOF
   12520 
   12521 	echo "$as_me:12521: checking if you want separate color-classes" >&5
   12522 echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6
   12523 
   12524 # Check whether --enable-color-class or --disable-color-class was given.
   12525 if test "${enable_color_class+set}" = set; then
   12526   enableval="$enable_color_class"
   12527   test "$enableval" != no && enableval=yes
   12528   if test "$enableval" != "yes" ; then
   12529     enable_color_class=no
   12530   else
   12531     enable_color_class=yes
   12532   fi
   12533 else
   12534   enableval=yes
   12535   enable_color_class=yes
   12536 
   12537 fi;
   12538 	echo "$as_me:12538: result: $enable_color_class" >&5
   12539 echo "${ECHO_T}$enable_color_class" >&6
   12540 	test "$enable_color_class" = no && cat >>confdefs.h <<\EOF
   12541 #define OPT_COLOR_CLASS FALSE
   12542 EOF
   12543 
   12544 	echo "$as_me:12544: checking if you want color-mode enabled by default" >&5
   12545 echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6
   12546 
   12547 # Check whether --enable-color-mode or --disable-color-mode was given.
   12548 if test "${enable_color_mode+set}" = set; then
   12549   enableval="$enable_color_mode"
   12550   test "$enableval" != no && enableval=yes
   12551   if test "$enableval" != "yes" ; then
   12552     default_colormode=no
   12553   else
   12554     default_colormode=yes
   12555   fi
   12556 else
   12557   enableval=yes
   12558   default_colormode=yes
   12559 
   12560 fi;
   12561 	echo "$as_me:12561: result: $default_colormode" >&5
   12562 echo "${ECHO_T}$default_colormode" >&6
   12563 	test "$default_colormode" = no && cat >>confdefs.h <<\EOF
   12564 #define DFT_COLORMODE FALSE
   12565 EOF
   12566 
   12567 fi
   12568 
   12569 echo "$as_me:12569: checking if you want support for color highlighting" >&5
   12570 echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6
   12571 
   12572 # Check whether --enable-highlighting or --disable-highlighting was given.
   12573 if test "${enable_highlighting+set}" = set; then
   12574   enableval="$enable_highlighting"
   12575   test "$enableval" != no && enableval=yes
   12576   if test "$enableval" != "yes" ; then
   12577     default_highlight=no
   12578   else
   12579     default_highlight=yes
   12580   fi
   12581 else
   12582   enableval=yes
   12583   default_highlight=yes
   12584 
   12585 fi;
   12586 echo "$as_me:12586: result: $default_highlight" >&5
   12587 echo "${ECHO_T}$default_highlight" >&6
   12588 test "$default_highlight" = no && cat >>confdefs.h <<\EOF
   12589 #define OPT_HIGHLIGHT_COLOR 0
   12590 EOF
   12591 
   12592 echo "$as_me:12592: checking if you want support for doublesize characters" >&5
   12593 echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6
   12594 
   12595 # Check whether --enable-doublechars or --disable-doublechars was given.
   12596 if test "${enable_doublechars+set}" = set; then
   12597   enableval="$enable_doublechars"
   12598   test "$enableval" != no && enableval=yes
   12599   if test "$enableval" != "yes" ; then
   12600     enable_doublechars=no
   12601   else
   12602     enable_doublechars=yes
   12603   fi
   12604 else
   12605   enableval=yes
   12606   enable_doublechars=yes
   12607 
   12608 fi;
   12609 echo "$as_me:12609: result: $enable_doublechars" >&5
   12610 echo "${ECHO_T}$enable_doublechars" >&6
   12611 test "$enable_doublechars" = no && cat >>confdefs.h <<\EOF
   12612 #define OPT_DEC_CHRSET 0
   12613 EOF
   12614 
   12615 echo "$as_me:12615: checking if you want fallback-support for box characters" >&5
   12616 echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6
   12617 
   12618 # Check whether --enable-boxchars or --disable-boxchars was given.
   12619 if test "${enable_boxchars+set}" = set; then
   12620   enableval="$enable_boxchars"
   12621   test "$enableval" != no && enableval=yes
   12622   if test "$enableval" != "yes" ; then
   12623     enable_boxchars=no
   12624   else
   12625     enable_boxchars=yes
   12626   fi
   12627 else
   12628   enableval=yes
   12629   enable_boxchars=yes
   12630 
   12631 fi;
   12632 echo "$as_me:12632: result: $enable_boxchars" >&5
   12633 echo "${ECHO_T}$enable_boxchars" >&6
   12634 test "$enable_boxchars" = no && cat >>confdefs.h <<\EOF
   12635 #define OPT_BOX_CHARS 0
   12636 EOF
   12637 
   12638 echo "$as_me:12638: checking if you want to allow spawning new xterms" >&5
   12639 echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6
   12640 
   12641 # Check whether --enable-exec-xterm or --disable-exec-xterm was given.
   12642 if test "${enable_exec_xterm+set}" = set; then
   12643   enableval="$enable_exec_xterm"
   12644   test "$enableval" != yes && enableval=no
   12645   if test "$enableval" != "no" ; then
   12646     enable_exec_xterm=yes
   12647   else
   12648     enable_exec_xterm=no
   12649   fi
   12650 else
   12651   enableval=no
   12652   enable_exec_xterm=no
   12653 
   12654 fi;
   12655 echo "$as_me:12655: result: $enable_exec_xterm" >&5
   12656 echo "${ECHO_T}$enable_exec_xterm" >&6
   12657 if test "$enable_exec_xterm" = yes ; then
   12658 
   12659 echo "$as_me:12659: checking for proc tree with cwd-support" >&5
   12660 echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6
   12661 if test "${cf_cv_procfs_cwd+set}" = set; then
   12662   echo $ECHO_N "(cached) $ECHO_C" >&6
   12663 else
   12664 
   12665 cf_cv_procfs_cwd=no
   12666 for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc
   12667 do
   12668 	if test -d $cf_path && \
   12669 	   test -d $cf_path/$$ && \
   12670 	   ( test -d $cf_path/$$/cwd || \
   12671 	     test -L $cf_path/$$/cwd ); then
   12672 		cf_cv_procfs_cwd=$cf_path
   12673 		break
   12674 	fi
   12675 done
   12676 
   12677 fi
   12678 echo "$as_me:12678: result: $cf_cv_procfs_cwd" >&5
   12679 echo "${ECHO_T}$cf_cv_procfs_cwd" >&6
   12680 
   12681 	if test "$cf_cv_procfs_cwd" = no ; then
   12682 		{ echo "$as_me:12682: WARNING: no suitable proc filesystem found" >&5
   12683 echo "$as_me: WARNING: no suitable proc filesystem found" >&2;}
   12684 	else
   12685 		cat >>confdefs.h <<EOF
   12686 #define PROCFS_ROOT "$cf_cv_procfs_cwd"
   12687 EOF
   12688 
   12689 		cat >>confdefs.h <<\EOF
   12690 #define OPT_EXEC_XTERM 1
   12691 EOF
   12692 
   12693 	fi
   12694 fi
   12695 
   12696 echo "$as_me:12696: checking if you want to use FreeType library" >&5
   12697 echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6
   12698 
   12699 # Check whether --enable-freetype or --disable-freetype was given.
   12700 if test "${enable_freetype+set}" = set; then
   12701   enableval="$enable_freetype"
   12702   test "$enableval" != no && enableval=yes
   12703   if test "$enableval" != "yes" ; then
   12704     enable_freetype=no
   12705   else
   12706     enable_freetype=yes
   12707   fi
   12708 else
   12709   enableval=yes
   12710   enable_freetype=yes
   12711 
   12712 fi;
   12713 echo "$as_me:12713: result: $enable_freetype" >&5
   12714 echo "${ECHO_T}$enable_freetype" >&6
   12715 if test "$enable_freetype" = yes ; then
   12716 
   12717 cf_extra_freetype_libs=
   12718 FREETYPE_CONFIG=none
   12719 FREETYPE_PARAMS=
   12720 
   12721 echo "$as_me:12721: checking if you specified -D/-I options for FreeType" >&5
   12722 echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6
   12723 
   12724 # Check whether --with-freetype-cflags or --without-freetype-cflags was given.
   12725 if test "${with_freetype_cflags+set}" = set; then
   12726   withval="$with_freetype_cflags"
   12727   cf_cv_x_freetype_incs="$with_freetype_cflags"
   12728 else
   12729   cf_cv_x_freetype_incs=no
   12730 fi;
   12731 echo "$as_me:12731: result: $cf_cv_x_freetype_incs" >&5
   12732 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
   12733 
   12734 echo "$as_me:12734: checking if you specified -L/-l options for FreeType" >&5
   12735 echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6
   12736 
   12737 # Check whether --with-freetype-libs or --without-freetype-libs was given.
   12738 if test "${with_freetype_libs+set}" = set; then
   12739   withval="$with_freetype_libs"
   12740   cf_cv_x_freetype_libs="$with_freetype_libs"
   12741 else
   12742   cf_cv_x_freetype_libs=no
   12743 fi;
   12744 echo "$as_me:12744: result: $cf_cv_x_freetype_libs" >&5
   12745 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
   12746 
   12747 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
   12748 	FREETYPE_CONFIG=$PKG_CONFIG
   12749 	FREETYPE_PARAMS=xft
   12750 else
   12751 	# Extract the first word of "xft-config", so it can be a program name with args.
   12752 set dummy xft-config; ac_word=$2
   12753 echo "$as_me:12753: checking for $ac_word" >&5
   12754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   12755 if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then
   12756   echo $ECHO_N "(cached) $ECHO_C" >&6
   12757 else
   12758   case $FREETYPE_XFT_CONFIG in
   12759   [\\/]* | ?:[\\/]*)
   12760   ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path.
   12761   ;;
   12762   *)
   12763   ac_save_IFS=$IFS; IFS=$ac_path_separator
   12764 ac_dummy="$PATH"
   12765 for ac_dir in $ac_dummy; do
   12766   IFS=$ac_save_IFS
   12767   test -z "$ac_dir" && ac_dir=.
   12768   if $as_executable_p "$ac_dir/$ac_word"; then
   12769    ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word"
   12770    echo "$as_me:12770: found $ac_dir/$ac_word" >&5
   12771    break
   12772 fi
   12773 done
   12774 
   12775   test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none"
   12776   ;;
   12777 esac
   12778 fi
   12779 FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG
   12780 
   12781 if test -n "$FREETYPE_XFT_CONFIG"; then
   12782   echo "$as_me:12782: result: $FREETYPE_XFT_CONFIG" >&5
   12783 echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6
   12784 else
   12785   echo "$as_me:12785: result: no" >&5
   12786 echo "${ECHO_T}no" >&6
   12787 fi
   12788 
   12789 	if test "$FREETYPE_XFT_CONFIG" != none; then
   12790 		FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG
   12791 	else
   12792 		cf_extra_freetype_libs="-lXft"
   12793 		# Extract the first word of "freetype-config", so it can be a program name with args.
   12794 set dummy freetype-config; ac_word=$2
   12795 echo "$as_me:12795: checking for $ac_word" >&5
   12796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   12797 if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then
   12798   echo $ECHO_N "(cached) $ECHO_C" >&6
   12799 else
   12800   case $FREETYPE_OLD_CONFIG in
   12801   [\\/]* | ?:[\\/]*)
   12802   ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path.
   12803   ;;
   12804   *)
   12805   ac_save_IFS=$IFS; IFS=$ac_path_separator
   12806 ac_dummy="$PATH"
   12807 for ac_dir in $ac_dummy; do
   12808   IFS=$ac_save_IFS
   12809   test -z "$ac_dir" && ac_dir=.
   12810   if $as_executable_p "$ac_dir/$ac_word"; then
   12811    ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word"
   12812    echo "$as_me:12812: found $ac_dir/$ac_word" >&5
   12813    break
   12814 fi
   12815 done
   12816 
   12817   test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none"
   12818   ;;
   12819 esac
   12820 fi
   12821 FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG
   12822 
   12823 if test -n "$FREETYPE_OLD_CONFIG"; then
   12824   echo "$as_me:12824: result: $FREETYPE_OLD_CONFIG" >&5
   12825 echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6
   12826 else
   12827   echo "$as_me:12827: result: no" >&5
   12828 echo "${ECHO_T}no" >&6
   12829 fi
   12830 
   12831 		if test "$FREETYPE_OLD_CONFIG" != none; then
   12832 			FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG
   12833 		fi
   12834 	fi
   12835 fi
   12836 echo "$as_me:12836: checking for FreeType config" >&5
   12837 echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6
   12838 echo "$as_me:12838: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
   12839 echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6
   12840 
   12841 if test "$FREETYPE_CONFIG" != none ; then
   12842 
   12843 	if test "$cf_cv_x_freetype_incs" = no ; then
   12844 		echo "$as_me:12844: checking for $FREETYPE_CONFIG cflags" >&5
   12845 echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
   12846 		cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
   12847 		echo "$as_me:12847: result: $cf_cv_x_freetype_incs" >&5
   12848 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
   12849 	fi
   12850 
   12851 	if test "$cf_cv_x_freetype_libs" = no ; then
   12852 		echo "$as_me:12852: checking for $FREETYPE_CONFIG libs" >&5
   12853 echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
   12854 		cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
   12855 		echo "$as_me:12855: result: $cf_cv_x_freetype_libs" >&5
   12856 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
   12857 	fi
   12858 
   12859 fi
   12860 
   12861 if test "$cf_cv_x_freetype_incs" = no ; then
   12862 	cf_cv_x_freetype_incs=
   12863 fi
   12864 
   12865 if test "$cf_cv_x_freetype_libs" = no ; then
   12866 	cf_cv_x_freetype_libs=-lXft
   12867 fi
   12868 
   12869 echo "$as_me:12869: checking if we can link with FreeType libraries" >&5
   12870 echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6
   12871 
   12872 cf_save_LIBS="$LIBS"
   12873 cf_save_INCS="$CPPFLAGS"
   12874 
   12875 LIBS="$cf_cv_x_freetype_libs $LIBS"
   12876 CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs"
   12877 
   12878 cat >conftest.$ac_ext <<_ACEOF
   12879 #line 12879 "configure"
   12880 #include "confdefs.h"
   12881 
   12882 #include <X11/Xlib.h>
   12883 #include <X11/extensions/Xrender.h>
   12884 #include <X11/Xft/Xft.h>
   12885 int
   12886 main ()
   12887 {
   12888 
   12889 	XftPattern  *pat = XftNameParse ("name");
   12890   ;
   12891   return 0;
   12892 }
   12893 _ACEOF
   12894 rm -f conftest.$ac_objext conftest$ac_exeext
   12895 if { (eval echo "$as_me:12895: \"$ac_link\"") >&5
   12896   (eval $ac_link) 2>&5
   12897   ac_status=$?
   12898   echo "$as_me:12898: \$? = $ac_status" >&5
   12899   (exit $ac_status); } &&
   12900          { ac_try='test -s conftest$ac_exeext'
   12901   { (eval echo "$as_me:12901: \"$ac_try\"") >&5
   12902   (eval $ac_try) 2>&5
   12903   ac_status=$?
   12904   echo "$as_me:12904: \$? = $ac_status" >&5
   12905   (exit $ac_status); }; }; then
   12906   cf_cv_found_freetype=yes
   12907 else
   12908   echo "$as_me: failed program was:" >&5
   12909 cat conftest.$ac_ext >&5
   12910 cf_cv_found_freetype=no
   12911 fi
   12912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   12913 echo "$as_me:12913: result: $cf_cv_found_freetype" >&5
   12914 echo "${ECHO_T}$cf_cv_found_freetype" >&6
   12915 
   12916 LIBS="$cf_save_LIBS"
   12917 CPPFLAGS="$cf_save_INCS"
   12918 
   12919 if test "$cf_cv_found_freetype" = yes ; then
   12920 	LIBS="$cf_cv_x_freetype_libs $LIBS"
   12921 
   12922 cf_fix_cppflags=no
   12923 cf_new_cflags=
   12924 cf_new_cppflags=
   12925 cf_new_extra_cppflags=
   12926 
   12927 for cf_add_cflags in $cf_cv_x_freetype_incs
   12928 do
   12929 case $cf_fix_cppflags in
   12930 no)
   12931 	case $cf_add_cflags in #(vi
   12932 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   12933 		case $cf_add_cflags in
   12934 		-D*)
   12935 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   12936 
   12937 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   12938 				&& test -z "${cf_tst_cflags}" \
   12939 				&& cf_fix_cppflags=yes
   12940 
   12941 			if test $cf_fix_cppflags = yes ; then
   12942 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   12943 				continue
   12944 			elif test "${cf_tst_cflags}" = "\"'" ; then
   12945 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   12946 				continue
   12947 			fi
   12948 			;;
   12949 		esac
   12950 		case "$CPPFLAGS" in
   12951 		*$cf_add_cflags) #(vi
   12952 			;;
   12953 		*) #(vi
   12954 			case $cf_add_cflags in #(vi
   12955 			-D*)
   12956 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   12957 
   12958 CPPFLAGS=`echo "$CPPFLAGS" | \
   12959 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   12960 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   12961 
   12962 				;;
   12963 			esac
   12964 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   12965 			;;
   12966 		esac
   12967 		;;
   12968 	*)
   12969 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   12970 		;;
   12971 	esac
   12972 	;;
   12973 yes)
   12974 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   12975 
   12976 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   12977 
   12978 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   12979 		&& test -z "${cf_tst_cflags}" \
   12980 		&& cf_fix_cppflags=no
   12981 	;;
   12982 esac
   12983 done
   12984 
   12985 if test -n "$cf_new_cflags" ; then
   12986 
   12987 	CFLAGS="$CFLAGS $cf_new_cflags"
   12988 fi
   12989 
   12990 if test -n "$cf_new_cppflags" ; then
   12991 
   12992 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   12993 fi
   12994 
   12995 if test -n "$cf_new_extra_cppflags" ; then
   12996 
   12997 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   12998 fi
   12999 
   13000 	cat >>confdefs.h <<\EOF
   13001 #define XRENDERFONT 1
   13002 EOF
   13003 
   13004 for ac_func in \
   13005 	XftDrawCharSpec \
   13006 	XftDrawSetClip \
   13007 	XftDrawSetClipRectangles \
   13008 
   13009 do
   13010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13011 echo "$as_me:13011: checking for $ac_func" >&5
   13012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   13013 if eval "test \"\${$as_ac_var+set}\" = set"; then
   13014   echo $ECHO_N "(cached) $ECHO_C" >&6
   13015 else
   13016   cat >conftest.$ac_ext <<_ACEOF
   13017 #line 13017 "configure"
   13018 #include "confdefs.h"
   13019 /* System header to define __stub macros and hopefully few prototypes,
   13020     which can conflict with char $ac_func (); below.  */
   13021 #include <assert.h>
   13022 /* Override any gcc2 internal prototype to avoid an error.  */
   13023 #ifdef __cplusplus
   13024 extern "C"
   13025 #endif
   13026 /* We use char because int might match the return type of a gcc2
   13027    builtin and then its argument prototype would still apply.  */
   13028 char $ac_func ();
   13029 char (*f) ();
   13030 
   13031 int
   13032 main ()
   13033 {
   13034 /* The GNU C library defines this for functions which it implements
   13035     to always fail with ENOSYS.  Some functions are actually named
   13036     something starting with __ and the normal name is an alias.  */
   13037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   13038 choke me
   13039 #else
   13040 f = $ac_func;
   13041 #endif
   13042 
   13043   ;
   13044   return 0;
   13045 }
   13046 _ACEOF
   13047 rm -f conftest.$ac_objext conftest$ac_exeext
   13048 if { (eval echo "$as_me:13048: \"$ac_link\"") >&5
   13049   (eval $ac_link) 2>&5
   13050   ac_status=$?
   13051   echo "$as_me:13051: \$? = $ac_status" >&5
   13052   (exit $ac_status); } &&
   13053          { ac_try='test -s conftest$ac_exeext'
   13054   { (eval echo "$as_me:13054: \"$ac_try\"") >&5
   13055   (eval $ac_try) 2>&5
   13056   ac_status=$?
   13057   echo "$as_me:13057: \$? = $ac_status" >&5
   13058   (exit $ac_status); }; }; then
   13059   eval "$as_ac_var=yes"
   13060 else
   13061   echo "$as_me: failed program was:" >&5
   13062 cat conftest.$ac_ext >&5
   13063 eval "$as_ac_var=no"
   13064 fi
   13065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13066 fi
   13067 echo "$as_me:13067: result: `eval echo '${'$as_ac_var'}'`" >&5
   13068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   13069 if test `eval echo '${'$as_ac_var'}'` = yes; then
   13070   cat >>confdefs.h <<EOF
   13071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13072 EOF
   13073 
   13074 fi
   13075 done
   13076 
   13077 else
   13078 	{ echo "$as_me:13078: WARNING: No libraries found for FreeType" >&5
   13079 echo "$as_me: WARNING: No libraries found for FreeType" >&2;}
   13080 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
   13081 fi
   13082 
   13083 # FIXME: revisit this if needed
   13084 
   13085 echo "$as_me:13085: checking for usable Xft/fontconfig package" >&5
   13086 echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6
   13087 if test "${cf_cv_xft_compat+set}" = set; then
   13088   echo $ECHO_N "(cached) $ECHO_C" >&6
   13089 else
   13090 
   13091 cat >conftest.$ac_ext <<_ACEOF
   13092 #line 13092 "configure"
   13093 #include "confdefs.h"
   13094 
   13095 #include <X11/Xft/Xft.h>
   13096 
   13097 int
   13098 main ()
   13099 {
   13100 
   13101 	XftPattern *pat;
   13102 	XftPatternBuild(pat,
   13103 					XFT_FAMILY, XftTypeString, "mono",
   13104 					(void *) 0);
   13105 
   13106   ;
   13107   return 0;
   13108 }
   13109 _ACEOF
   13110 rm -f conftest.$ac_objext conftest$ac_exeext
   13111 if { (eval echo "$as_me:13111: \"$ac_link\"") >&5
   13112   (eval $ac_link) 2>&5
   13113   ac_status=$?
   13114   echo "$as_me:13114: \$? = $ac_status" >&5
   13115   (exit $ac_status); } &&
   13116          { ac_try='test -s conftest$ac_exeext'
   13117   { (eval echo "$as_me:13117: \"$ac_try\"") >&5
   13118   (eval $ac_try) 2>&5
   13119   ac_status=$?
   13120   echo "$as_me:13120: \$? = $ac_status" >&5
   13121   (exit $ac_status); }; }; then
   13122   cf_cv_xft_compat=yes
   13123 else
   13124   echo "$as_me: failed program was:" >&5
   13125 cat conftest.$ac_ext >&5
   13126 cf_cv_xft_compat=no
   13127 fi
   13128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13129 
   13130 fi
   13131 echo "$as_me:13131: result: $cf_cv_xft_compat" >&5
   13132 echo "${ECHO_T}$cf_cv_xft_compat" >&6
   13133 
   13134 if test "$cf_cv_xft_compat" = no
   13135 then
   13136 	# workaround for broken ".pc" files used for Xft.
   13137 	case "$cf_cv_x_freetype_libs" in #(vi
   13138 	*-lfontconfig*) #(vi
   13139 		;;
   13140 	*)
   13141 		test -n "$verbose" && echo "	work around broken package" 1>&6
   13142 
   13143 echo "${as_me:-configure}:13143: testing work around broken package ..." 1>&5
   13144 
   13145 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists fontconfig; then
   13146 	test -n "$verbose" && echo "	found package fontconfig" 1>&6
   13147 
   13148 echo "${as_me:-configure}:13148: testing found package fontconfig ..." 1>&5
   13149 
   13150 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags fontconfig 2>/dev/null`"
   13151 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   fontconfig 2>/dev/null`"
   13152 	test -n "$verbose" && echo "	package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6
   13153 
   13154 echo "${as_me:-configure}:13154: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   13155 
   13156 	test -n "$verbose" && echo "	package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6
   13157 
   13158 echo "${as_me:-configure}:13158: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5
   13159 
   13160 cf_fix_cppflags=no
   13161 cf_new_cflags=
   13162 cf_new_cppflags=
   13163 cf_new_extra_cppflags=
   13164 
   13165 for cf_add_cflags in $cf_pkgconfig_incs
   13166 do
   13167 case $cf_fix_cppflags in
   13168 no)
   13169 	case $cf_add_cflags in #(vi
   13170 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   13171 		case $cf_add_cflags in
   13172 		-D*)
   13173 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   13174 
   13175 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   13176 				&& test -z "${cf_tst_cflags}" \
   13177 				&& cf_fix_cppflags=yes
   13178 
   13179 			if test $cf_fix_cppflags = yes ; then
   13180 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   13181 				continue
   13182 			elif test "${cf_tst_cflags}" = "\"'" ; then
   13183 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   13184 				continue
   13185 			fi
   13186 			;;
   13187 		esac
   13188 		case "$CPPFLAGS" in
   13189 		*$cf_add_cflags) #(vi
   13190 			;;
   13191 		*) #(vi
   13192 			case $cf_add_cflags in #(vi
   13193 			-D*)
   13194 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   13195 
   13196 CPPFLAGS=`echo "$CPPFLAGS" | \
   13197 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   13198 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   13199 
   13200 				;;
   13201 			esac
   13202 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   13203 			;;
   13204 		esac
   13205 		;;
   13206 	*)
   13207 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   13208 		;;
   13209 	esac
   13210 	;;
   13211 yes)
   13212 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   13213 
   13214 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   13215 
   13216 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   13217 		&& test -z "${cf_tst_cflags}" \
   13218 		&& cf_fix_cppflags=no
   13219 	;;
   13220 esac
   13221 done
   13222 
   13223 if test -n "$cf_new_cflags" ; then
   13224 
   13225 	CFLAGS="$CFLAGS $cf_new_cflags"
   13226 fi
   13227 
   13228 if test -n "$cf_new_cppflags" ; then
   13229 
   13230 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   13231 fi
   13232 
   13233 if test -n "$cf_new_extra_cppflags" ; then
   13234 
   13235 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   13236 fi
   13237 
   13238 	LIBS="$cf_pkgconfig_libs $LIBS"
   13239 	:
   13240 else
   13241 
   13242 test -n "$verbose" && echo "	...before $LIBS" 1>&6
   13243 
   13244 echo "${as_me:-configure}:13244: testing ...before $LIBS ..." 1>&5
   13245 
   13246 LIBS=`echo "$LIBS" | sed -e "s/[ 	][ 	]*/ /g" -e "s,-lXft ,-lXft -lfontconfig ," -e 's/  / /g'`
   13247 test -n "$verbose" && echo "	...after  $LIBS" 1>&6
   13248 
   13249 echo "${as_me:-configure}:13249: testing ...after  $LIBS ..." 1>&5
   13250 
   13251 fi
   13252 
   13253 		;;
   13254 	esac
   13255 fi
   13256 
   13257 else
   13258 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
   13259 fi
   13260 
   13261 echo "$as_me:13261: checking if you want support for HP-style function keys" >&5
   13262 echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6
   13263 
   13264 # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given.
   13265 if test "${enable_hp_fkeys+set}" = set; then
   13266   enableval="$enable_hp_fkeys"
   13267   test "$enableval" != yes && enableval=no
   13268   if test "$enableval" != "no" ; then
   13269     enable_hp_fkeys=yes
   13270   else
   13271     enable_hp_fkeys=no
   13272   fi
   13273 else
   13274   enableval=no
   13275   enable_hp_fkeys=no
   13276 
   13277 fi;
   13278 echo "$as_me:13278: result: $enable_hp_fkeys" >&5
   13279 echo "${ECHO_T}$enable_hp_fkeys" >&6
   13280 if test "$enable_hp_fkeys" = yes ; then
   13281 	cat >>confdefs.h <<\EOF
   13282 #define OPT_HP_FUNC_KEYS 1
   13283 EOF
   13284 
   13285 fi
   13286 
   13287 echo "$as_me:13287: checking if you want support for SCO-style function keys" >&5
   13288 echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6
   13289 
   13290 # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given.
   13291 if test "${enable_sco_fkeys+set}" = set; then
   13292   enableval="$enable_sco_fkeys"
   13293   test "$enableval" != yes && enableval=no
   13294   if test "$enableval" != "no" ; then
   13295     enable_sco_fkeys=yes
   13296   else
   13297     enable_sco_fkeys=no
   13298   fi
   13299 else
   13300   enableval=no
   13301   enable_sco_fkeys=no
   13302 
   13303 fi;
   13304 echo "$as_me:13304: result: $enable_sco_fkeys" >&5
   13305 echo "${ECHO_T}$enable_sco_fkeys" >&6
   13306 if test "$enable_sco_fkeys" = yes ; then
   13307 	cat >>confdefs.h <<\EOF
   13308 #define OPT_SCO_FUNC_KEYS 1
   13309 EOF
   13310 
   13311 fi
   13312 
   13313 echo "$as_me:13313: checking if you want support for Sun-style function keys" >&5
   13314 echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6
   13315 
   13316 # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given.
   13317 if test "${enable_sun_fkeys+set}" = set; then
   13318   enableval="$enable_sun_fkeys"
   13319   test "$enableval" != no && enableval=yes
   13320   if test "$enableval" != "yes" ; then
   13321     enable_sun_fkeys=no
   13322   else
   13323     enable_sun_fkeys=yes
   13324   fi
   13325 else
   13326   enableval=yes
   13327   enable_sun_fkeys=yes
   13328 
   13329 fi;
   13330 echo "$as_me:13330: result: $enable_sun_fkeys" >&5
   13331 echo "${ECHO_T}$enable_sun_fkeys" >&6
   13332 if test "$enable_sun_fkeys" = no ; then
   13333 	cat >>confdefs.h <<\EOF
   13334 #define OPT_SUN_FUNC_KEYS 0
   13335 EOF
   13336 
   13337 fi
   13338 
   13339 echo "$as_me:13339: checking if you want saved-lines stored as a FIFO" >&5
   13340 echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6
   13341 
   13342 # Check whether --enable-fifo-lines or --disable-fifo-lines was given.
   13343 if test "${enable_fifo_lines+set}" = set; then
   13344   enableval="$enable_fifo_lines"
   13345   test "$enableval" != no && enableval=yes
   13346   if test "$enableval" != "yes" ; then
   13347     enable_fifo_lines=no
   13348   else
   13349     enable_fifo_lines=yes
   13350   fi
   13351 else
   13352   enableval=yes
   13353   enable_fifo_lines=yes
   13354 
   13355 fi;
   13356 echo "$as_me:13356: result: $enable_fifo_lines" >&5
   13357 echo "${ECHO_T}$enable_fifo_lines" >&6
   13358 if test "$enable_fifo_lines" = yes ; then
   13359 	cat >>confdefs.h <<\EOF
   13360 #define OPT_FIFO_LINES 1
   13361 EOF
   13362 
   13363 fi
   13364 
   13365 echo "$as_me:13365: checking if you want support for internationalization" >&5
   13366 echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6
   13367 
   13368 # Check whether --enable-i18n or --disable-i18n was given.
   13369 if test "${enable_i18n+set}" = set; then
   13370   enableval="$enable_i18n"
   13371   test "$enableval" != no && enableval=yes
   13372   if test "$enableval" != "yes" ; then
   13373     enable_i18n=no
   13374   else
   13375     enable_i18n=yes
   13376   fi
   13377 else
   13378   enableval=yes
   13379   enable_i18n=yes
   13380 
   13381 fi;
   13382 echo "$as_me:13382: result: $enable_i18n" >&5
   13383 echo "${ECHO_T}$enable_i18n" >&6
   13384 if test "$enable_i18n" = no ; then
   13385 	cat >>confdefs.h <<\EOF
   13386 #define OPT_I18N_SUPPORT 0
   13387 EOF
   13388 
   13389 fi
   13390 
   13391 echo "$as_me:13391: checking if you want support for initial-erase setup" >&5
   13392 echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6
   13393 
   13394 # Check whether --enable-initial-erase or --disable-initial-erase was given.
   13395 if test "${enable_initial_erase+set}" = set; then
   13396   enableval="$enable_initial_erase"
   13397   test "$enableval" != no && enableval=yes
   13398   if test "$enableval" != "yes" ; then
   13399     enable_ie=no
   13400   else
   13401     enable_ie=yes
   13402   fi
   13403 else
   13404   enableval=yes
   13405   enable_ie=yes
   13406 
   13407 fi;
   13408 echo "$as_me:13408: result: $enable_ie" >&5
   13409 echo "${ECHO_T}$enable_ie" >&6
   13410 if test "$enable_ie" = no ; then
   13411 	cat >>confdefs.h <<\EOF
   13412 #define OPT_INITIAL_ERASE 0
   13413 EOF
   13414 
   13415 fi
   13416 
   13417 echo "$as_me:13417: checking if you want support for input-method" >&5
   13418 echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6
   13419 
   13420 # Check whether --enable-input-method or --disable-input-method was given.
   13421 if test "${enable_input_method+set}" = set; then
   13422   enableval="$enable_input_method"
   13423   test "$enableval" != no && enableval=yes
   13424   if test "$enableval" != "yes" ; then
   13425     enable_ximp=no
   13426   else
   13427     enable_ximp=yes
   13428   fi
   13429 else
   13430   enableval=yes
   13431   enable_ximp=yes
   13432 
   13433 fi;
   13434 echo "$as_me:13434: result: $enable_ximp" >&5
   13435 echo "${ECHO_T}$enable_ximp" >&6
   13436 
   13437 echo "$as_me:13437: checking if X libraries support input-method" >&5
   13438 echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6
   13439 if test "${cf_cv_input_method+set}" = set; then
   13440   echo $ECHO_N "(cached) $ECHO_C" >&6
   13441 else
   13442 
   13443 cat >conftest.$ac_ext <<_ACEOF
   13444 #line 13444 "configure"
   13445 #include "confdefs.h"
   13446 
   13447 #include <X11/IntrinsicP.h>
   13448 #include <X11/Xatom.h>
   13449 #include <X11/Xutil.h>
   13450 #include <X11/Xmu/Atoms.h>
   13451 #include <X11/Xmu/Converters.h>
   13452 #include <X11/Xaw/XawImP.h>
   13453 
   13454 int
   13455 main ()
   13456 {
   13457 
   13458 {
   13459 	XIM xim;
   13460 	XIMStyles *xim_styles = 0;
   13461 	XIMStyle input_style;
   13462 	Widget w = 0;
   13463 
   13464 	XSetLocaleModifiers("@im=none");
   13465 	xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
   13466 	XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
   13467 	XCloseIM(xim);
   13468 	input_style = (XIMPreeditNothing | XIMStatusNothing);
   13469 }
   13470 
   13471   ;
   13472   return 0;
   13473 }
   13474 _ACEOF
   13475 rm -f conftest.$ac_objext conftest$ac_exeext
   13476 if { (eval echo "$as_me:13476: \"$ac_link\"") >&5
   13477   (eval $ac_link) 2>&5
   13478   ac_status=$?
   13479   echo "$as_me:13479: \$? = $ac_status" >&5
   13480   (exit $ac_status); } &&
   13481          { ac_try='test -s conftest$ac_exeext'
   13482   { (eval echo "$as_me:13482: \"$ac_try\"") >&5
   13483   (eval $ac_try) 2>&5
   13484   ac_status=$?
   13485   echo "$as_me:13485: \$? = $ac_status" >&5
   13486   (exit $ac_status); }; }; then
   13487   cf_cv_input_method=yes
   13488 else
   13489   echo "$as_me: failed program was:" >&5
   13490 cat conftest.$ac_ext >&5
   13491 cf_cv_input_method=no
   13492 fi
   13493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13494 fi
   13495 echo "$as_me:13495: result: $cf_cv_input_method" >&5
   13496 echo "${ECHO_T}$cf_cv_input_method" >&6
   13497 
   13498 test "$cf_cv_input_method" = no && enable_ximp=no
   13499 if test "$enable_ximp" = no ; then
   13500 	cat >>confdefs.h <<\EOF
   13501 #define OPT_INPUT_METHOD 0
   13502 EOF
   13503 
   13504 fi
   13505 
   13506 echo "$as_me:13506: checking if you want support for load-vt-fonts" >&5
   13507 echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6
   13508 
   13509 # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given.
   13510 if test "${enable_load_vt_fonts+set}" = set; then
   13511   enableval="$enable_load_vt_fonts"
   13512   test "$enableval" != yes && enableval=no
   13513   if test "$enableval" != "no" ; then
   13514     enable_load_vt_fonts=yes
   13515   else
   13516     enable_load_vt_fonts=no
   13517   fi
   13518 else
   13519   enableval=no
   13520   enable_load_vt_fonts=no
   13521 
   13522 fi;
   13523 echo "$as_me:13523: result: $enable_load_vt_fonts" >&5
   13524 echo "${ECHO_T}$enable_load_vt_fonts" >&6
   13525 if test "$enable_load_vt_fonts" = yes ; then
   13526 	cat >>confdefs.h <<\EOF
   13527 #define OPT_LOAD_VTFONTS 1
   13528 EOF
   13529 
   13530 fi
   13531 
   13532 echo "$as_me:13532: checking if you want support for logging" >&5
   13533 echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6
   13534 
   13535 # Check whether --enable-logging or --disable-logging was given.
   13536 if test "${enable_logging+set}" = set; then
   13537   enableval="$enable_logging"
   13538   test "$enableval" != yes && enableval=no
   13539   if test "$enableval" != "no" ; then
   13540     enable_logging=yes
   13541   else
   13542     enable_logging=no
   13543   fi
   13544 else
   13545   enableval=no
   13546   enable_logging=no
   13547 
   13548 fi;
   13549 echo "$as_me:13549: result: $enable_logging" >&5
   13550 echo "${ECHO_T}$enable_logging" >&6
   13551 if test "$enable_logging" = yes ; then
   13552 	cat >>confdefs.h <<\EOF
   13553 #define ALLOWLOGGING 1
   13554 EOF
   13555 
   13556 	echo "$as_me:13556: checking if you want to allow logging via a pipe" >&5
   13557 echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6
   13558 
   13559 # Check whether --enable-logfile-exec or --disable-logfile-exec was given.
   13560 if test "${enable_logfile_exec+set}" = set; then
   13561   enableval="$enable_logfile_exec"
   13562   test "$enableval" != yes && enableval=no
   13563   if test "$enableval" != "no" ; then
   13564     enable_log_exec=yes
   13565   else
   13566     enable_log_exec=no
   13567   fi
   13568 else
   13569   enableval=no
   13570   enable_log_exec=no
   13571 
   13572 fi;
   13573 	echo "$as_me:13573: result: $enable_log_exec" >&5
   13574 echo "${ECHO_T}$enable_log_exec" >&6
   13575 	if test "$enable_log_exec" = yes ; then
   13576 		cat >>confdefs.h <<\EOF
   13577 #define ALLOWLOGFILEEXEC 1
   13578 EOF
   13579 
   13580 	fi
   13581 fi
   13582 
   13583 echo "$as_me:13583: checking if you want support for iconify/maximize translations" >&5
   13584 echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6
   13585 
   13586 # Check whether --enable-maximize or --disable-maximize was given.
   13587 if test "${enable_maximize+set}" = set; then
   13588   enableval="$enable_maximize"
   13589   test "$enableval" != no && enableval=yes
   13590   if test "$enableval" != "yes" ; then
   13591     enable_maximize=no
   13592   else
   13593     enable_maximize=yes
   13594   fi
   13595 else
   13596   enableval=yes
   13597   enable_maximize=yes
   13598 
   13599 fi;
   13600 echo "$as_me:13600: result: $enable_maximize" >&5
   13601 echo "${ECHO_T}$enable_maximize" >&6
   13602 test "$enable_maximize" = no && cat >>confdefs.h <<\EOF
   13603 #define OPT_MAXIMIZE 0
   13604 EOF
   13605 
   13606 echo "$as_me:13606: checking if you want NumLock to override keyboard tables" >&5
   13607 echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6
   13608 
   13609 # Check whether --enable-num-lock or --disable-num-lock was given.
   13610 if test "${enable_num_lock+set}" = set; then
   13611   enableval="$enable_num_lock"
   13612   test "$enableval" != no && enableval=yes
   13613   if test "$enableval" != "yes" ; then
   13614     enable_numlock=no
   13615   else
   13616     enable_numlock=yes
   13617   fi
   13618 else
   13619   enableval=yes
   13620   enable_numlock=yes
   13621 
   13622 fi;
   13623 echo "$as_me:13623: result: $enable_numlock" >&5
   13624 echo "${ECHO_T}$enable_numlock" >&6
   13625 test "$enable_numlock" = no && cat >>confdefs.h <<\EOF
   13626 #define OPT_NUM_LOCK 0
   13627 EOF
   13628 
   13629 echo "$as_me:13629: checking if you want support for get/set of base64 selection data" >&5
   13630 echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6
   13631 
   13632 # Check whether --enable-paste64 or --disable-paste64 was given.
   13633 if test "${enable_paste64+set}" = set; then
   13634   enableval="$enable_paste64"
   13635   test "$enableval" != no && enableval=yes
   13636   if test "$enableval" != "yes" ; then
   13637     enable_paste64=no
   13638   else
   13639     enable_paste64=yes
   13640   fi
   13641 else
   13642   enableval=yes
   13643   enable_paste64=yes
   13644 
   13645 fi;
   13646 echo "$as_me:13646: result: $enable_paste64" >&5
   13647 echo "${ECHO_T}$enable_paste64" >&6
   13648 if test "$enable_paste64" = yes ; then
   13649 	cat >>confdefs.h <<\EOF
   13650 #define OPT_PASTE64 1
   13651 EOF
   13652 
   13653 else
   13654 	cat >>confdefs.h <<\EOF
   13655 #define OPT_PASTE64 0
   13656 EOF
   13657 
   13658 fi
   13659 
   13660 echo "$as_me:13660: checking if you want support for pty-handshaking" >&5
   13661 echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6
   13662 
   13663 # Check whether --enable-pty-handshake or --disable-pty-handshake was given.
   13664 if test "${enable_pty_handshake+set}" = set; then
   13665   enableval="$enable_pty_handshake"
   13666   test "$enableval" != no && enableval=yes
   13667   if test "$enableval" != "yes" ; then
   13668     enable_pty_handshake=no
   13669   else
   13670     enable_pty_handshake=yes
   13671   fi
   13672 else
   13673   enableval=yes
   13674   enable_pty_handshake=yes
   13675 
   13676 fi;
   13677 echo "$as_me:13677: result: $enable_pty_handshake" >&5
   13678 echo "${ECHO_T}$enable_pty_handshake" >&6
   13679 if test "$enable_pty_handshake" = yes ; then
   13680 	cat >>confdefs.h <<\EOF
   13681 #define OPT_PTY_HANDSHAKE 1
   13682 EOF
   13683 
   13684 else
   13685 	cat >>confdefs.h <<\EOF
   13686 #define OPT_PTY_HANDSHAKE 0
   13687 EOF
   13688 
   13689 fi
   13690 
   13691 echo "$as_me:13691: checking if you want support for mouse in readline applications" >&5
   13692 echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6
   13693 
   13694 # Check whether --enable-readline-mouse or --disable-readline-mouse was given.
   13695 if test "${enable_readline_mouse+set}" = set; then
   13696   enableval="$enable_readline_mouse"
   13697   test "$enableval" != yes && enableval=no
   13698   if test "$enableval" != "no" ; then
   13699     enable_readline_mouse=yes
   13700   else
   13701     enable_readline_mouse=no
   13702   fi
   13703 else
   13704   enableval=no
   13705   enable_readline_mouse=no
   13706 
   13707 fi;
   13708 echo "$as_me:13708: result: $enable_readline_mouse" >&5
   13709 echo "${ECHO_T}$enable_readline_mouse" >&6
   13710 if test "$enable_readline_mouse" = yes ; then
   13711 	cat >>confdefs.h <<\EOF
   13712 #define OPT_READLINE 1
   13713 EOF
   13714 
   13715 fi
   13716 
   13717 echo "$as_me:13717: checking if you want support for regular-expression selections" >&5
   13718 echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6
   13719 
   13720 # Check whether --enable-regex or --disable-regex was given.
   13721 if test "${enable_regex+set}" = set; then
   13722   enableval="$enable_regex"
   13723   test "$enableval" != no && enableval=yes
   13724   if test "$enableval" != "yes" ; then
   13725     enable_regex=no
   13726   else
   13727     enable_regex=yes
   13728   fi
   13729 else
   13730   enableval=yes
   13731   enable_regex=yes
   13732 
   13733 fi;
   13734 echo "$as_me:13734: result: $enable_regex" >&5
   13735 echo "${ECHO_T}$enable_regex" >&6
   13736 if test "$enable_regex" = yes ; then
   13737 
   13738 echo "$as_me:13738: checking if you want to use PCRE for regular-expressions" >&5
   13739 echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6
   13740 
   13741 # Check whether --with-pcre or --without-pcre was given.
   13742 if test "${with_pcre+set}" = set; then
   13743   withval="$with_pcre"
   13744 
   13745 fi;
   13746 test -z "$with_pcre" && with_pcre=no
   13747 echo "$as_me:13747: result: $with_pcre" >&5
   13748 echo "${ECHO_T}$with_pcre" >&6
   13749 
   13750 if test "$with_pcre" != no ; then
   13751 
   13752 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
   13753 	test -n "$verbose" && echo "	found package libpcre" 1>&6
   13754 
   13755 echo "${as_me:-configure}:13755: testing found package libpcre ..." 1>&5
   13756 
   13757 	cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
   13758 	cf_pkgconfig_libs="`$PKG_CONFIG --libs   libpcre 2>/dev/null`"
   13759 	test -n "$verbose" && echo "	package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
   13760 
   13761 echo "${as_me:-configure}:13761: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
   13762 
   13763 	test -n "$verbose" && echo "	package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
   13764 
   13765 echo "${as_me:-configure}:13765: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
   13766 
   13767 cf_fix_cppflags=no
   13768 cf_new_cflags=
   13769 cf_new_cppflags=
   13770 cf_new_extra_cppflags=
   13771 
   13772 for cf_add_cflags in $cf_pkgconfig_incs
   13773 do
   13774 case $cf_fix_cppflags in
   13775 no)
   13776 	case $cf_add_cflags in #(vi
   13777 	-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
   13778 		case $cf_add_cflags in
   13779 		-D*)
   13780 			cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
   13781 
   13782 			test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   13783 				&& test -z "${cf_tst_cflags}" \
   13784 				&& cf_fix_cppflags=yes
   13785 
   13786 			if test $cf_fix_cppflags = yes ; then
   13787 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   13788 				continue
   13789 			elif test "${cf_tst_cflags}" = "\"'" ; then
   13790 				cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   13791 				continue
   13792 			fi
   13793 			;;
   13794 		esac
   13795 		case "$CPPFLAGS" in
   13796 		*$cf_add_cflags) #(vi
   13797 			;;
   13798 		*) #(vi
   13799 			case $cf_add_cflags in #(vi
   13800 			-D*)
   13801 				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
   13802 
   13803 CPPFLAGS=`echo "$CPPFLAGS" | \
   13804 	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
   13805 		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
   13806 
   13807 				;;
   13808 			esac
   13809 			cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
   13810 			;;
   13811 		esac
   13812 		;;
   13813 	*)
   13814 		cf_new_cflags="$cf_new_cflags $cf_add_cflags"
   13815 		;;
   13816 	esac
   13817 	;;
   13818 yes)
   13819 	cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
   13820 
   13821 	cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
   13822 
   13823 	test "${cf_add_cflags}" != "${cf_tst_cflags}" \
   13824 		&& test -z "${cf_tst_cflags}" \
   13825 		&& cf_fix_cppflags=no
   13826 	;;
   13827 esac
   13828 done
   13829 
   13830 if test -n "$cf_new_cflags" ; then
   13831 
   13832 	CFLAGS="$CFLAGS $cf_new_cflags"
   13833 fi
   13834 
   13835 if test -n "$cf_new_cppflags" ; then
   13836 
   13837 	CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
   13838 fi
   13839 
   13840 if test -n "$cf_new_extra_cppflags" ; then
   13841 
   13842 	EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
   13843 fi
   13844 
   13845 	LIBS="$cf_pkgconfig_libs $LIBS"
   13846 	:
   13847 else
   13848 
   13849 echo "$as_me:13849: checking for pcre_compile in -lpcre" >&5
   13850 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
   13851 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
   13852   echo $ECHO_N "(cached) $ECHO_C" >&6
   13853 else
   13854   ac_check_lib_save_LIBS=$LIBS
   13855 LIBS="-lpcre  $LIBS"
   13856 cat >conftest.$ac_ext <<_ACEOF
   13857 #line 13857 "configure"
   13858 #include "confdefs.h"
   13859 
   13860 /* Override any gcc2 internal prototype to avoid an error.  */
   13861 #ifdef __cplusplus
   13862 extern "C"
   13863 #endif
   13864 /* We use char because int might match the return type of a gcc2
   13865    builtin and then its argument prototype would still apply.  */
   13866 char pcre_compile ();
   13867 int
   13868 main ()
   13869 {
   13870 pcre_compile ();
   13871   ;
   13872   return 0;
   13873 }
   13874 _ACEOF
   13875 rm -f conftest.$ac_objext conftest$ac_exeext
   13876 if { (eval echo "$as_me:13876: \"$ac_link\"") >&5
   13877   (eval $ac_link) 2>&5
   13878   ac_status=$?
   13879   echo "$as_me:13879: \$? = $ac_status" >&5
   13880   (exit $ac_status); } &&
   13881          { ac_try='test -s conftest$ac_exeext'
   13882   { (eval echo "$as_me:13882: \"$ac_try\"") >&5
   13883   (eval $ac_try) 2>&5
   13884   ac_status=$?
   13885   echo "$as_me:13885: \$? = $ac_status" >&5
   13886   (exit $ac_status); }; }; then
   13887   ac_cv_lib_pcre_pcre_compile=yes
   13888 else
   13889   echo "$as_me: failed program was:" >&5
   13890 cat conftest.$ac_ext >&5
   13891 ac_cv_lib_pcre_pcre_compile=no
   13892 fi
   13893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13894 LIBS=$ac_check_lib_save_LIBS
   13895 fi
   13896 echo "$as_me:13896: result: $ac_cv_lib_pcre_pcre_compile" >&5
   13897 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
   13898 if test $ac_cv_lib_pcre_pcre_compile = yes; then
   13899   cat >>confdefs.h <<EOF
   13900 #define HAVE_LIBPCRE 1
   13901 EOF
   13902 
   13903   LIBS="-lpcre $LIBS"
   13904 
   13905 else
   13906   { { echo "$as_me:13906: error: Cannot find PCRE library" >&5
   13907 echo "$as_me: error: Cannot find PCRE library" >&2;}
   13908    { (exit 1); exit 1; }; }
   13909 fi
   13910 
   13911 fi
   13912 
   13913 		cat >>confdefs.h <<\EOF
   13914 #define HAVE_LIB_PCRE 1
   13915 EOF
   13916 
   13917 		case $LIBS in #(vi
   13918 		*pcreposix*) #(vi
   13919 			;;
   13920 		*)
   13921 			echo "$as_me:13921: checking for pcreposix_regcomp in -lpcreposix" >&5
   13922 echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6
   13923 if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then
   13924   echo $ECHO_N "(cached) $ECHO_C" >&6
   13925 else
   13926   ac_check_lib_save_LIBS=$LIBS
   13927 LIBS="-lpcreposix  $LIBS"
   13928 cat >conftest.$ac_ext <<_ACEOF
   13929 #line 13929 "configure"
   13930 #include "confdefs.h"
   13931 
   13932 /* Override any gcc2 internal prototype to avoid an error.  */
   13933 #ifdef __cplusplus
   13934 extern "C"
   13935 #endif
   13936 /* We use char because int might match the return type of a gcc2
   13937    builtin and then its argument prototype would still apply.  */
   13938 char pcreposix_regcomp ();
   13939 int
   13940 main ()
   13941 {
   13942 pcreposix_regcomp ();
   13943   ;
   13944   return 0;
   13945 }
   13946 _ACEOF
   13947 rm -f conftest.$ac_objext conftest$ac_exeext
   13948 if { (eval echo "$as_me:13948: \"$ac_link\"") >&5
   13949   (eval $ac_link) 2>&5
   13950   ac_status=$?
   13951   echo "$as_me:13951: \$? = $ac_status" >&5
   13952   (exit $ac_status); } &&
   13953          { ac_try='test -s conftest$ac_exeext'
   13954   { (eval echo "$as_me:13954: \"$ac_try\"") >&5
   13955   (eval $ac_try) 2>&5
   13956   ac_status=$?
   13957   echo "$as_me:13957: \$? = $ac_status" >&5
   13958   (exit $ac_status); }; }; then
   13959   ac_cv_lib_pcreposix_pcreposix_regcomp=yes
   13960 else
   13961   echo "$as_me: failed program was:" >&5
   13962 cat conftest.$ac_ext >&5
   13963 ac_cv_lib_pcreposix_pcreposix_regcomp=no
   13964 fi
   13965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   13966 LIBS=$ac_check_lib_save_LIBS
   13967 fi
   13968 echo "$as_me:13968: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5
   13969 echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6
   13970 if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then
   13971   cat >>confdefs.h <<\EOF
   13972 #define HAVE_PCREPOSIX_H 1
   13973 EOF
   13974 
   13975 				 LIBS="-lpcreposix $LIBS"
   13976 else
   13977   echo "$as_me:13977: checking for regcomp in -lpcreposix" >&5
   13978 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
   13979 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
   13980   echo $ECHO_N "(cached) $ECHO_C" >&6
   13981 else
   13982   ac_check_lib_save_LIBS=$LIBS
   13983 LIBS="-lpcreposix  $LIBS"
   13984 cat >conftest.$ac_ext <<_ACEOF
   13985 #line 13985 "configure"
   13986 #include "confdefs.h"
   13987 
   13988 /* Override any gcc2 internal prototype to avoid an error.  */
   13989 #ifdef __cplusplus
   13990 extern "C"
   13991 #endif
   13992 /* We use char because int might match the return type of a gcc2
   13993    builtin and then its argument prototype would still apply.  */
   13994 char regcomp ();
   13995 int
   13996 main ()
   13997 {
   13998 regcomp ();
   13999   ;
   14000   return 0;
   14001 }
   14002 _ACEOF
   14003 rm -f conftest.$ac_objext conftest$ac_exeext
   14004 if { (eval echo "$as_me:14004: \"$ac_link\"") >&5
   14005   (eval $ac_link) 2>&5
   14006   ac_status=$?
   14007   echo "$as_me:14007: \$? = $ac_status" >&5
   14008   (exit $ac_status); } &&
   14009          { ac_try='test -s conftest$ac_exeext'
   14010   { (eval echo "$as_me:14010: \"$ac_try\"") >&5
   14011   (eval $ac_try) 2>&5
   14012   ac_status=$?
   14013   echo "$as_me:14013: \$? = $ac_status" >&5
   14014   (exit $ac_status); }; }; then
   14015   ac_cv_lib_pcreposix_regcomp=yes
   14016 else
   14017   echo "$as_me: failed program was:" >&5
   14018 cat conftest.$ac_ext >&5
   14019 ac_cv_lib_pcreposix_regcomp=no
   14020 fi
   14021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14022 LIBS=$ac_check_lib_save_LIBS
   14023 fi
   14024 echo "$as_me:14024: result: $ac_cv_lib_pcreposix_regcomp" >&5
   14025 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
   14026 if test $ac_cv_lib_pcreposix_regcomp = yes; then
   14027 
   14028 					cat >>confdefs.h <<\EOF
   14029 #define HAVE_PCREPOSIX_H 1
   14030 EOF
   14031 
   14032 					LIBS="-lpcreposix $LIBS"
   14033 else
   14034   { { echo "$as_me:14034: error: Cannot find PCRE POSIX library" >&5
   14035 echo "$as_me: error: Cannot find PCRE POSIX library" >&2;}
   14036    { (exit 1); exit 1; }; }
   14037 fi
   14038 
   14039 fi
   14040 
   14041 			;;
   14042 		esac
   14043 fi
   14044 
   14045 	if test "$with_pcre" = no ; then
   14046 
   14047 cf_regex_func=no
   14048 
   14049 cf_regex_libs="regex re"
   14050 case $host_os in #(vi
   14051 mingw*)
   14052 	cf_regex_libs="regex.dll $cf_regex_libs"
   14053 	;;
   14054 esac
   14055 
   14056 echo "$as_me:14056: checking for regcomp" >&5
   14057 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
   14058 if test "${ac_cv_func_regcomp+set}" = set; then
   14059   echo $ECHO_N "(cached) $ECHO_C" >&6
   14060 else
   14061   cat >conftest.$ac_ext <<_ACEOF
   14062 #line 14062 "configure"
   14063 #include "confdefs.h"
   14064 /* System header to define __stub macros and hopefully few prototypes,
   14065     which can conflict with char regcomp (); below.  */
   14066 #include <assert.h>
   14067 /* Override any gcc2 internal prototype to avoid an error.  */
   14068 #ifdef __cplusplus
   14069 extern "C"
   14070 #endif
   14071 /* We use char because int might match the return type of a gcc2
   14072    builtin and then its argument prototype would still apply.  */
   14073 char regcomp ();
   14074 char (*f) ();
   14075 
   14076 int
   14077 main ()
   14078 {
   14079 /* The GNU C library defines this for functions which it implements
   14080     to always fail with ENOSYS.  Some functions are actually named
   14081     something starting with __ and the normal name is an alias.  */
   14082 #if defined (__stub_regcomp) || defined (__stub___regcomp)
   14083 choke me
   14084 #else
   14085 f = regcomp;
   14086 #endif
   14087 
   14088   ;
   14089   return 0;
   14090 }
   14091 _ACEOF
   14092 rm -f conftest.$ac_objext conftest$ac_exeext
   14093 if { (eval echo "$as_me:14093: \"$ac_link\"") >&5
   14094   (eval $ac_link) 2>&5
   14095   ac_status=$?
   14096   echo "$as_me:14096: \$? = $ac_status" >&5
   14097   (exit $ac_status); } &&
   14098          { ac_try='test -s conftest$ac_exeext'
   14099   { (eval echo "$as_me:14099: \"$ac_try\"") >&5
   14100   (eval $ac_try) 2>&5
   14101   ac_status=$?
   14102   echo "$as_me:14102: \$? = $ac_status" >&5
   14103   (exit $ac_status); }; }; then
   14104   ac_cv_func_regcomp=yes
   14105 else
   14106   echo "$as_me: failed program was:" >&5
   14107 cat conftest.$ac_ext >&5
   14108 ac_cv_func_regcomp=no
   14109 fi
   14110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14111 fi
   14112 echo "$as_me:14112: result: $ac_cv_func_regcomp" >&5
   14113 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
   14114 if test $ac_cv_func_regcomp = yes; then
   14115   cf_regex_func=regcomp
   14116 else
   14117 
   14118 	for cf_regex_lib in $cf_regex_libs
   14119 	do
   14120 		as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
   14121 echo "$as_me:14121: checking for regcomp in -l$cf_regex_lib" >&5
   14122 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
   14123 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
   14124   echo $ECHO_N "(cached) $ECHO_C" >&6
   14125 else
   14126   ac_check_lib_save_LIBS=$LIBS
   14127 LIBS="-l$cf_regex_lib  $LIBS"
   14128 cat >conftest.$ac_ext <<_ACEOF
   14129 #line 14129 "configure"
   14130 #include "confdefs.h"
   14131 
   14132 /* Override any gcc2 internal prototype to avoid an error.  */
   14133 #ifdef __cplusplus
   14134 extern "C"
   14135 #endif
   14136 /* We use char because int might match the return type of a gcc2
   14137    builtin and then its argument prototype would still apply.  */
   14138 char regcomp ();
   14139 int
   14140 main ()
   14141 {
   14142 regcomp ();
   14143   ;
   14144   return 0;
   14145 }
   14146 _ACEOF
   14147 rm -f conftest.$ac_objext conftest$ac_exeext
   14148 if { (eval echo "$as_me:14148: \"$ac_link\"") >&5
   14149   (eval $ac_link) 2>&5
   14150   ac_status=$?
   14151   echo "$as_me:14151: \$? = $ac_status" >&5
   14152   (exit $ac_status); } &&
   14153          { ac_try='test -s conftest$ac_exeext'
   14154   { (eval echo "$as_me:14154: \"$ac_try\"") >&5
   14155   (eval $ac_try) 2>&5
   14156   ac_status=$?
   14157   echo "$as_me:14157: \$? = $ac_status" >&5
   14158   (exit $ac_status); }; }; then
   14159   eval "$as_ac_Lib=yes"
   14160 else
   14161   echo "$as_me: failed program was:" >&5
   14162 cat conftest.$ac_ext >&5
   14163 eval "$as_ac_Lib=no"
   14164 fi
   14165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14166 LIBS=$ac_check_lib_save_LIBS
   14167 fi
   14168 echo "$as_me:14168: result: `eval echo '${'$as_ac_Lib'}'`" >&5
   14169 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
   14170 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
   14171 
   14172 				LIBS="-l$cf_regex_lib $LIBS"
   14173 				cf_regex_func=regcomp
   14174 				break
   14175 fi
   14176 
   14177 	done
   14178 
   14179 fi
   14180 
   14181 if test "$cf_regex_func" = no ; then
   14182 	echo "$as_me:14182: checking for compile" >&5
   14183 echo $ECHO_N "checking for compile... $ECHO_C" >&6
   14184 if test "${ac_cv_func_compile+set}" = set; then
   14185   echo $ECHO_N "(cached) $ECHO_C" >&6
   14186 else
   14187   cat >conftest.$ac_ext <<_ACEOF
   14188 #line 14188 "configure"
   14189 #include "confdefs.h"
   14190 /* System header to define __stub macros and hopefully few prototypes,
   14191     which can conflict with char compile (); below.  */
   14192 #include <assert.h>
   14193 /* Override any gcc2 internal prototype to avoid an error.  */
   14194 #ifdef __cplusplus
   14195 extern "C"
   14196 #endif
   14197 /* We use char because int might match the return type of a gcc2
   14198    builtin and then its argument prototype would still apply.  */
   14199 char compile ();
   14200 char (*f) ();
   14201 
   14202 int
   14203 main ()
   14204 {
   14205 /* The GNU C library defines this for functions which it implements
   14206     to always fail with ENOSYS.  Some functions are actually named
   14207     something starting with __ and the normal name is an alias.  */
   14208 #if defined (__stub_compile) || defined (__stub___compile)
   14209 choke me
   14210 #else
   14211 f = compile;
   14212 #endif
   14213 
   14214   ;
   14215   return 0;
   14216 }
   14217 _ACEOF
   14218 rm -f conftest.$ac_objext conftest$ac_exeext
   14219 if { (eval echo "$as_me:14219: \"$ac_link\"") >&5
   14220   (eval $ac_link) 2>&5
   14221   ac_status=$?
   14222   echo "$as_me:14222: \$? = $ac_status" >&5
   14223   (exit $ac_status); } &&
   14224          { ac_try='test -s conftest$ac_exeext'
   14225   { (eval echo "$as_me:14225: \"$ac_try\"") >&5
   14226   (eval $ac_try) 2>&5
   14227   ac_status=$?
   14228   echo "$as_me:14228: \$? = $ac_status" >&5
   14229   (exit $ac_status); }; }; then
   14230   ac_cv_func_compile=yes
   14231 else
   14232   echo "$as_me: failed program was:" >&5
   14233 cat conftest.$ac_ext >&5
   14234 ac_cv_func_compile=no
   14235 fi
   14236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14237 fi
   14238 echo "$as_me:14238: result: $ac_cv_func_compile" >&5
   14239 echo "${ECHO_T}$ac_cv_func_compile" >&6
   14240 if test $ac_cv_func_compile = yes; then
   14241   cf_regex_func=compile
   14242 else
   14243 
   14244 		echo "$as_me:14244: checking for compile in -lgen" >&5
   14245 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
   14246 if test "${ac_cv_lib_gen_compile+set}" = set; then
   14247   echo $ECHO_N "(cached) $ECHO_C" >&6
   14248 else
   14249   ac_check_lib_save_LIBS=$LIBS
   14250 LIBS="-lgen  $LIBS"
   14251 cat >conftest.$ac_ext <<_ACEOF
   14252 #line 14252 "configure"
   14253 #include "confdefs.h"
   14254 
   14255 /* Override any gcc2 internal prototype to avoid an error.  */
   14256 #ifdef __cplusplus
   14257 extern "C"
   14258 #endif
   14259 /* We use char because int might match the return type of a gcc2
   14260    builtin and then its argument prototype would still apply.  */
   14261 char compile ();
   14262 int
   14263 main ()
   14264 {
   14265 compile ();
   14266   ;
   14267   return 0;
   14268 }
   14269 _ACEOF
   14270 rm -f conftest.$ac_objext conftest$ac_exeext
   14271 if { (eval echo "$as_me:14271: \"$ac_link\"") >&5
   14272   (eval $ac_link) 2>&5
   14273   ac_status=$?
   14274   echo "$as_me:14274: \$? = $ac_status" >&5
   14275   (exit $ac_status); } &&
   14276          { ac_try='test -s conftest$ac_exeext'
   14277   { (eval echo "$as_me:14277: \"$ac_try\"") >&5
   14278   (eval $ac_try) 2>&5
   14279   ac_status=$?
   14280   echo "$as_me:14280: \$? = $ac_status" >&5
   14281   (exit $ac_status); }; }; then
   14282   ac_cv_lib_gen_compile=yes
   14283 else
   14284   echo "$as_me: failed program was:" >&5
   14285 cat conftest.$ac_ext >&5
   14286 ac_cv_lib_gen_compile=no
   14287 fi
   14288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14289 LIBS=$ac_check_lib_save_LIBS
   14290 fi
   14291 echo "$as_me:14291: result: $ac_cv_lib_gen_compile" >&5
   14292 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
   14293 if test $ac_cv_lib_gen_compile = yes; then
   14294 
   14295 				LIBS="-lgen $LIBS"
   14296 				cf_regex_func=compile
   14297 fi
   14298 
   14299 fi
   14300 
   14301 fi
   14302 
   14303 if test "$cf_regex_func" = no ; then
   14304 	{ echo "$as_me:14304: WARNING: cannot find regular expression library" >&5
   14305 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
   14306 fi
   14307 
   14308 echo "$as_me:14308: checking for regular-expression headers" >&5
   14309 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
   14310 if test "${cf_cv_regex_hdrs+set}" = set; then
   14311   echo $ECHO_N "(cached) $ECHO_C" >&6
   14312 else
   14313 
   14314 cf_cv_regex_hdrs=no
   14315 case $cf_regex_func in #(vi
   14316 compile) #(vi
   14317 	for cf_regex_hdr in regexp.h regexpr.h
   14318 	do
   14319 		cat >conftest.$ac_ext <<_ACEOF
   14320 #line 14320 "configure"
   14321 #include "confdefs.h"
   14322 #include <$cf_regex_hdr>
   14323 int
   14324 main ()
   14325 {
   14326 
   14327 			char *p = compile("", "", "", 0);
   14328 			int x = step("", "");
   14329 
   14330   ;
   14331   return 0;
   14332 }
   14333 _ACEOF
   14334 rm -f conftest.$ac_objext conftest$ac_exeext
   14335 if { (eval echo "$as_me:14335: \"$ac_link\"") >&5
   14336   (eval $ac_link) 2>&5
   14337   ac_status=$?
   14338   echo "$as_me:14338: \$? = $ac_status" >&5
   14339   (exit $ac_status); } &&
   14340          { ac_try='test -s conftest$ac_exeext'
   14341   { (eval echo "$as_me:14341: \"$ac_try\"") >&5
   14342   (eval $ac_try) 2>&5
   14343   ac_status=$?
   14344   echo "$as_me:14344: \$? = $ac_status" >&5
   14345   (exit $ac_status); }; }; then
   14346 
   14347 			cf_cv_regex_hdrs=$cf_regex_hdr
   14348 			break
   14349 
   14350 else
   14351   echo "$as_me: failed program was:" >&5
   14352 cat conftest.$ac_ext >&5
   14353 fi
   14354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14355 	done
   14356 	;;
   14357 *)
   14358 	for cf_regex_hdr in regex.h
   14359 	do
   14360 		cat >conftest.$ac_ext <<_ACEOF
   14361 #line 14361 "configure"
   14362 #include "confdefs.h"
   14363 #include <sys/types.h>
   14364 #include <$cf_regex_hdr>
   14365 int
   14366 main ()
   14367 {
   14368 
   14369 			regex_t *p;
   14370 			int x = regcomp(p, "", 0);
   14371 			int y = regexec(p, "", 0, 0, 0);
   14372 			regfree(p);
   14373 
   14374   ;
   14375   return 0;
   14376 }
   14377 _ACEOF
   14378 rm -f conftest.$ac_objext conftest$ac_exeext
   14379 if { (eval echo "$as_me:14379: \"$ac_link\"") >&5
   14380   (eval $ac_link) 2>&5
   14381   ac_status=$?
   14382   echo "$as_me:14382: \$? = $ac_status" >&5
   14383   (exit $ac_status); } &&
   14384          { ac_try='test -s conftest$ac_exeext'
   14385   { (eval echo "$as_me:14385: \"$ac_try\"") >&5
   14386   (eval $ac_try) 2>&5
   14387   ac_status=$?
   14388   echo "$as_me:14388: \$? = $ac_status" >&5
   14389   (exit $ac_status); }; }; then
   14390 
   14391 			cf_cv_regex_hdrs=$cf_regex_hdr
   14392 			break
   14393 
   14394 else
   14395   echo "$as_me: failed program was:" >&5
   14396 cat conftest.$ac_ext >&5
   14397 fi
   14398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   14399 	done
   14400 	;;
   14401 esac
   14402 
   14403 fi
   14404 echo "$as_me:14404: result: $cf_cv_regex_hdrs" >&5
   14405 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
   14406 
   14407 case $cf_cv_regex_hdrs in #(vi
   14408     no)	       { echo "$as_me:14408: WARNING: no regular expression header found" >&5
   14409 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
   14410     regex.h)   cat >>confdefs.h <<\EOF
   14411 #define HAVE_REGEX_H_FUNCS 1
   14412 EOF
   14413  ;; #(vi
   14414     regexp.h)  cat >>confdefs.h <<\EOF
   14415 #define HAVE_REGEXP_H_FUNCS 1
   14416 EOF
   14417  ;; #(vi
   14418     regexpr.h) cat >>confdefs.h <<\EOF
   14419 #define HAVE_REGEXPR_H_FUNCS 1
   14420 EOF
   14421  ;;
   14422 esac
   14423 
   14424 		if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then
   14425 			{ { echo "$as_me:14425: error: Only POSIX or PCRE regular expressions are supported" >&5
   14426 echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;}
   14427    { (exit 1); exit 1; }; }
   14428 		fi
   14429 	fi
   14430 	cat >>confdefs.h <<\EOF
   14431 #define OPT_SELECT_REGEX 1
   14432 EOF
   14433 
   14434 fi
   14435 
   14436 echo "$as_me:14436: checking if you want support for right-scrollbar" >&5
   14437 echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6
   14438 
   14439 # Check whether --enable-rightbar or --disable-rightbar was given.
   14440 if test "${enable_rightbar+set}" = set; then
   14441   enableval="$enable_rightbar"
   14442   test "$enableval" != no && enableval=yes
   14443   if test "$enableval" != "yes" ; then
   14444     enable_rightbar=no
   14445   else
   14446     enable_rightbar=yes
   14447   fi
   14448 else
   14449   enableval=yes
   14450   enable_rightbar=yes
   14451 
   14452 fi;
   14453 echo "$as_me:14453: result: $enable_rightbar" >&5
   14454 echo "${ECHO_T}$enable_rightbar" >&6
   14455 if test "$enable_rightbar" = yes ; then
   14456 	cat >>confdefs.h <<\EOF
   14457 #define SCROLLBAR_RIGHT 1
   14458 EOF
   14459 
   14460 fi
   14461 
   14462 echo "$as_me:14462: checking if you want check for redundant name-change" >&5
   14463 echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6
   14464 
   14465 # Check whether --enable-samename or --disable-samename was given.
   14466 if test "${enable_samename+set}" = set; then
   14467   enableval="$enable_samename"
   14468   test "$enableval" != no && enableval=yes
   14469   if test "$enableval" != "yes" ; then
   14470     enable_samename=no
   14471   else
   14472     enable_samename=yes
   14473   fi
   14474 else
   14475   enableval=yes
   14476   enable_samename=yes
   14477 
   14478 fi;
   14479 echo "$as_me:14479: result: $enable_samename" >&5
   14480 echo "${ECHO_T}$enable_samename" >&6
   14481 test "$enable_samename" = no && cat >>confdefs.h <<\EOF
   14482 #define OPT_SAME_NAME 0
   14483 EOF
   14484 
   14485 echo "$as_me:14485: checking if you want support for session management" >&5
   14486 echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6
   14487 
   14488 # Check whether --enable-session-mgt or --disable-session-mgt was given.
   14489 if test "${enable_session_mgt+set}" = set; then
   14490   enableval="$enable_session_mgt"
   14491   test "$enableval" != no && enableval=yes
   14492   if test "$enableval" != "yes" ; then
   14493     enable_session_mgt=no
   14494   else
   14495     enable_session_mgt=yes
   14496   fi
   14497 else
   14498   enableval=yes
   14499   enable_session_mgt=yes
   14500 
   14501 fi;
   14502 echo "$as_me:14502: result: $enable_session_mgt" >&5
   14503 echo "${ECHO_T}$enable_session_mgt" >&6
   14504 test "$enable_session_mgt" = no && cat >>confdefs.h <<\EOF
   14505 #define OPT_SESSION_MGT 0
   14506 EOF
   14507 
   14508 echo "$as_me:14508: checking if you want to use termcap function-keys" >&5
   14509 echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6
   14510 
   14511 # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given.
   14512 if test "${enable_tcap_fkeys+set}" = set; then
   14513   enableval="$enable_tcap_fkeys"
   14514   test "$enableval" != no && enableval=yes
   14515   if test "$enableval" != "yes" ; then
   14516     enable_tcap_fkeys=no
   14517   else
   14518     enable_tcap_fkeys=yes
   14519   fi
   14520 else
   14521   enableval=yes
   14522   enable_tcap_fkeys=yes
   14523 
   14524 fi;
   14525 echo "$as_me:14525: result: $enable_tcap_fkeys" >&5
   14526 echo "${ECHO_T}$enable_tcap_fkeys" >&6
   14527 test "$enable_tcap_fkeys" = yes && cat >>confdefs.h <<\EOF
   14528 #define OPT_TCAP_FKEYS 1
   14529 EOF
   14530 
   14531 echo "$as_me:14531: checking if you want to use termcap-query/report" >&5
   14532 echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6
   14533 
   14534 # Check whether --enable-tcap-query or --disable-tcap-query was given.
   14535 if test "${enable_tcap_query+set}" = set; then
   14536   enableval="$enable_tcap_query"
   14537   test "$enableval" != no && enableval=yes
   14538   if test "$enableval" != "yes" ; then
   14539     enable_tcap_query=no
   14540   else
   14541     enable_tcap_query=yes
   14542   fi
   14543 else
   14544   enableval=yes
   14545   enable_tcap_query=yes
   14546 
   14547 fi;
   14548 echo "$as_me:14548: result: $enable_tcap_query" >&5
   14549 echo "${ECHO_T}$enable_tcap_query" >&6
   14550 test "$enable_tcap_query" = yes && cat >>confdefs.h <<\EOF
   14551 #define OPT_TCAP_QUERY 1
   14552 EOF
   14553 
   14554 echo "$as_me:14554: checking if you want support for tek4014" >&5
   14555 echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6
   14556 
   14557 # Check whether --enable-tek4014 or --disable-tek4014 was given.
   14558 if test "${enable_tek4014+set}" = set; then
   14559   enableval="$enable_tek4014"
   14560   test "$enableval" != no && enableval=yes
   14561   if test "$enableval" != "yes" ; then
   14562     enable_tek4014=no
   14563   else
   14564     enable_tek4014=yes
   14565   fi
   14566 else
   14567   enableval=yes
   14568   enable_tek4014=yes
   14569 
   14570 fi;
   14571 echo "$as_me:14571: result: $enable_tek4014" >&5
   14572 echo "${ECHO_T}$enable_tek4014" >&6
   14573 if test "$enable_tek4014" = no ; then
   14574 	cat >>confdefs.h <<\EOF
   14575 #define OPT_TEK4014 0
   14576 EOF
   14577 
   14578 else
   14579 	EXTRAHDRS="$EXTRAHDRS Tekparse.h"
   14580 	EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c"
   14581 	EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o"
   14582 fi
   14583 
   14584 echo "$as_me:14584: checking if you want pulldown menus with a toolbar" >&5
   14585 echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6
   14586 
   14587 # Check whether --enable-toolbar or --disable-toolbar was given.
   14588 if test "${enable_toolbar+set}" = set; then
   14589   enableval="$enable_toolbar"
   14590   test "$enableval" != yes && enableval=no
   14591   if test "$enableval" != "no" ; then
   14592     enable_toolbar=yes
   14593   else
   14594     enable_toolbar=no
   14595   fi
   14596 else
   14597   enableval=no
   14598   enable_toolbar=no
   14599 
   14600 fi;
   14601 echo "$as_me:14601: result: $enable_toolbar" >&5
   14602 echo "${ECHO_T}$enable_toolbar" >&6
   14603 if test "$enable_toolbar" = yes ; then
   14604 	cat >>confdefs.h <<\EOF
   14605 #define OPT_TOOLBAR 1
   14606 EOF
   14607 
   14608 fi
   14609 
   14610 echo "$as_me:14610: checking if you want VT52 emulation" >&5
   14611 echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6
   14612 
   14613 # Check whether --enable-vt52 or --disable-vt52 was given.
   14614 if test "${enable_vt52+set}" = set; then
   14615   enableval="$enable_vt52"
   14616   test "$enableval" != no && enableval=yes
   14617   if test "$enableval" != "yes" ; then
   14618     enable_vt52=no
   14619   else
   14620     enable_vt52=yes
   14621   fi
   14622 else
   14623   enableval=yes
   14624   enable_vt52=yes
   14625 
   14626 fi;
   14627 echo "$as_me:14627: result: $enable_vt52" >&5
   14628 echo "${ECHO_T}$enable_vt52" >&6
   14629 test "$enable_vt52" = no && cat >>confdefs.h <<\EOF
   14630 #define OPT_VT52_MODE 0
   14631 EOF
   14632 
   14633 echo "$as_me:14633: checking if you want to use mini-luit/Latin9 built-in support" >&5
   14634 echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6
   14635 
   14636 # Check whether --enable-mini-luit or --disable-mini-luit was given.
   14637 if test "${enable_mini_luit+set}" = set; then
   14638   enableval="$enable_mini_luit"
   14639   test "$enableval" != yes && enableval=no
   14640   if test "$enableval" != "no" ; then
   14641     enable_mini_luit=yes
   14642   else
   14643     enable_mini_luit=no
   14644   fi
   14645 else
   14646   enableval=no
   14647   enable_mini_luit=no
   14648 
   14649 fi;
   14650 echo "$as_me:14650: result: $enable_mini_luit" >&5
   14651 echo "${ECHO_T}$enable_mini_luit" >&6
   14652 if test "$enable_mini_luit" = yes ; then
   14653 	cat >>confdefs.h <<\EOF
   14654 #define OPT_MINI_LUIT 1
   14655 EOF
   14656 
   14657 fi
   14658 
   14659 echo "$as_me:14659: checking if you want to use luit" >&5
   14660 echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6
   14661 
   14662 # Check whether --enable-luit or --disable-luit was given.
   14663 if test "${enable_luit+set}" = set; then
   14664   enableval="$enable_luit"
   14665   test "$enableval" != yes && enableval=no
   14666   if test "$enableval" != "no" ; then
   14667     enable_luit=yes
   14668   else
   14669     enable_luit=$enable_mini_luit
   14670   fi
   14671 else
   14672   enableval=no
   14673   enable_luit=$enable_mini_luit
   14674 
   14675 fi;
   14676 echo "$as_me:14676: result: $enable_luit" >&5
   14677 echo "${ECHO_T}$enable_luit" >&6
   14678 if test "$enable_luit" = yes ; then
   14679 	cat >>confdefs.h <<\EOF
   14680 #define OPT_LUIT_PROG 1
   14681 EOF
   14682 
   14683 test -z "$LUIT" && LUIT=xterm-filter
   14684 for ac_prog in $LUIT xterm-filter bluit luit
   14685 do
   14686   # Extract the first word of "$ac_prog", so it can be a program name with args.
   14687 set dummy $ac_prog; ac_word=$2
   14688 echo "$as_me:14688: checking for $ac_word" >&5
   14689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   14690 if test "${ac_cv_path_LUIT+set}" = set; then
   14691   echo $ECHO_N "(cached) $ECHO_C" >&6
   14692 else
   14693   case $LUIT in
   14694   [\\/]* | ?:[\\/]*)
   14695   ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path.
   14696   ;;
   14697   *)
   14698   ac_save_IFS=$IFS; IFS=$ac_path_separator
   14699 ac_dummy="$PATH"
   14700 for ac_dir in $ac_dummy; do
   14701   IFS=$ac_save_IFS
   14702   test -z "$ac_dir" && ac_dir=.
   14703   if $as_executable_p "$ac_dir/$ac_word"; then
   14704    ac_cv_path_LUIT="$ac_dir/$ac_word"
   14705    echo "$as_me:14705: found $ac_dir/$ac_word" >&5
   14706    break
   14707 fi
   14708 done
   14709 
   14710   ;;
   14711 esac
   14712 fi
   14713 LUIT=$ac_cv_path_LUIT
   14714 
   14715 if test -n "$LUIT"; then
   14716   echo "$as_me:14716: result: $LUIT" >&5
   14717 echo "${ECHO_T}$LUIT" >&6
   14718 else
   14719   echo "$as_me:14719: result: no" >&5
   14720 echo "${ECHO_T}no" >&6
   14721 fi
   14722 
   14723   test -n "$LUIT" && break
   14724 done
   14725 test -n "$LUIT" || LUIT="$LUIT"
   14726 
   14727 cf_path_prog=""
   14728 cf_path_args=""
   14729 IFS="${IFS:- 	}"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
   14730 for cf_temp in $ac_cv_path_LUIT
   14731 do
   14732 	if test -z "$cf_path_prog" ; then
   14733 		if test "$with_full_paths" = yes ; then
   14734 
   14735 if test "x$prefix" != xNONE; then
   14736   cf_path_syntax="$prefix"
   14737 else
   14738   cf_path_syntax="$ac_default_prefix"
   14739 fi
   14740 
   14741 case ".$cf_temp" in #(vi
   14742 .\$\(*\)*|.\'*\'*) #(vi
   14743   ;;
   14744 ..|./*|.\\*) #(vi
   14745   ;;
   14746 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
   14747   ;;
   14748 .\${*prefix}*) #(vi
   14749   eval cf_temp="$cf_temp"
   14750   case ".$cf_temp" in #(vi
   14751   .NONE/*)
   14752     cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   14753     ;;
   14754   esac
   14755   ;; #(vi
   14756 .no|.NONE/*)
   14757   cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
   14758   ;;
   14759 *)
   14760   break
   14761   ;;
   14762 esac
   14763 
   14764 			cf_path_prog="$cf_temp"
   14765 		else
   14766 			cf_path_prog="`basename $cf_temp`"
   14767 		fi
   14768 	elif test -z "$cf_path_args" ; then
   14769 		cf_path_args="$cf_temp"
   14770 	else
   14771 		cf_path_args="$cf_path_args $cf_temp"
   14772 	fi
   14773 done
   14774 IFS="$cf_save_ifs"
   14775 
   14776 if test -n "$cf_path_prog" ; then
   14777 
   14778 echo "${as_me:-configure}:14778: testing defining path for ${cf_path_prog} ..." 1>&5
   14779 
   14780 	cat >>confdefs.h <<EOF
   14781 #define LUIT_PATH "$cf_path_prog"
   14782 EOF
   14783 
   14784 	test -n "$cf_path_args" && cat >>confdefs.h <<EOF
   14785 #define LUIT_ARGS "$cf_path_args"
   14786 EOF
   14787 
   14788 fi
   14789 
   14790 fi
   14791 
   14792 echo "$as_me:14792: checking if you want wide-character support" >&5
   14793 echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6
   14794 
   14795 # Check whether --enable-wide-chars or --disable-wide-chars was given.
   14796 if test "${enable_wide_chars+set}" = set; then
   14797   enableval="$enable_wide_chars"
   14798   test "$enableval" != no && enableval=yes
   14799   if test "$enableval" != "$enable_luit" ; then
   14800     enable_wchar=yes
   14801   else
   14802     enable_wchar=$enable_luit
   14803   fi
   14804 else
   14805   enableval=$enable_luit
   14806   enable_wchar=$enable_luit
   14807 
   14808 fi;
   14809 echo "$as_me:14809: result: $enable_wchar" >&5
   14810 echo "${ECHO_T}$enable_wchar" >&6
   14811 
   14812 echo "$as_me:14812: checking if you want only 16-bit character support" >&5
   14813 echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6
   14814 
   14815 # Check whether --enable-16bit-chars or --disable-16bit-chars was given.
   14816 if test "${enable_16bit_chars+set}" = set; then
   14817   enableval="$enable_16bit_chars"
   14818   test "$enableval" != yes && enableval=no
   14819   if test "$enableval" != "no" ; then
   14820     enable_16bit_chars=yes
   14821   else
   14822     enable_16bit_chars=no
   14823   fi
   14824 else
   14825   enableval=no
   14826   enable_16bit_chars=no
   14827 
   14828 fi;
   14829 echo "$as_me:14829: result: $enable_16bit_chars" >&5
   14830 echo "${ECHO_T}$enable_16bit_chars" >&6
   14831 
   14832 if test "$enable_16bit_chars" = yes ; then
   14833 	cat >>confdefs.h <<\EOF
   14834 #define OPT_WIDER_ICHAR 0
   14835 EOF
   14836 
   14837 	enable_wchar=yes
   14838 fi
   14839 
   14840 if test "$enable_wchar" = yes ; then
   14841 	cat >>confdefs.h <<\EOF
   14842 #define OPT_WIDE_CHARS 1
   14843 EOF
   14844 
   14845 	EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h"
   14846 	EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c"
   14847 	EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o"
   14848 fi
   14849 
   14850 echo "$as_me:14850: checking if you want dynamic-abbreviation support" >&5
   14851 echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6
   14852 
   14853 # Check whether --enable-dabbrev or --disable-dabbrev was given.
   14854 if test "${enable_dabbrev+set}" = set; then
   14855   enableval="$enable_dabbrev"
   14856   test "$enableval" != yes && enableval=no
   14857   if test "$enableval" != "no" ; then
   14858     enable_dabbrev=yes
   14859   else
   14860     enable_dabbrev=no
   14861   fi
   14862 else
   14863   enableval=no
   14864   enable_dabbrev=no
   14865 
   14866 fi;
   14867 echo "$as_me:14867: result: $enable_dabbrev" >&5
   14868 echo "${ECHO_T}$enable_dabbrev" >&6
   14869 if test "$enable_dabbrev" = yes ; then
   14870 	cat >>confdefs.h <<\EOF
   14871 #define OPT_DABBREV 1
   14872 EOF
   14873 
   14874 fi
   14875 
   14876 echo "$as_me:14876: checking if you want DECterm Locator support" >&5
   14877 echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6
   14878 
   14879 # Check whether --enable-dec-locator or --disable-dec-locator was given.
   14880 if test "${enable_dec_locator+set}" = set; then
   14881   enableval="$enable_dec_locator"
   14882   test "$enableval" != yes && enableval=no
   14883   if test "$enableval" != "no" ; then
   14884     enable_dec_locator=yes
   14885   else
   14886     enable_dec_locator=no
   14887   fi
   14888 else
   14889   enableval=no
   14890   enable_dec_locator=no
   14891 
   14892 fi;
   14893 echo "$as_me:14893: result: $enable_dec_locator" >&5
   14894 echo "${ECHO_T}$enable_dec_locator" >&6
   14895 if test "$enable_dec_locator" = yes ; then
   14896 	cat >>confdefs.h <<\EOF
   14897 #define OPT_DEC_LOCATOR 1
   14898 EOF
   14899 
   14900 fi
   14901 
   14902 echo "$as_me:14902: checking if you want VT420 rectangle support" >&5
   14903 echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6
   14904 
   14905 # Check whether --enable-rectangles or --disable-rectangles was given.
   14906 if test "${enable_rectangles+set}" = set; then
   14907   enableval="$enable_rectangles"
   14908   test "$enableval" != no && enableval=yes
   14909   if test "$enableval" != "yes" ; then
   14910     enable_rectangles=no
   14911   else
   14912     enable_rectangles=yes
   14913   fi
   14914 else
   14915   enableval=yes
   14916   enable_rectangles=yes
   14917 
   14918 fi;
   14919 echo "$as_me:14919: result: $enable_rectangles" >&5
   14920 echo "${ECHO_T}$enable_rectangles" >&6
   14921 if test "$enable_rectangles" = yes ; then
   14922 	cat >>confdefs.h <<\EOF
   14923 #define OPT_DEC_RECTOPS 1
   14924 EOF
   14925 
   14926 fi
   14927 
   14928 echo "$as_me:14928: checking if you want -ziconbeep option" >&5
   14929 echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6
   14930 
   14931 # Check whether --enable-ziconbeep or --disable-ziconbeep was given.
   14932 if test "${enable_ziconbeep+set}" = set; then
   14933   enableval="$enable_ziconbeep"
   14934   test "$enableval" != no && enableval=yes
   14935   if test "$enableval" != "yes" ; then
   14936     enable_ziconbeep=no
   14937   else
   14938     enable_ziconbeep=yes
   14939   fi
   14940 else
   14941   enableval=yes
   14942   enable_ziconbeep=yes
   14943 
   14944 fi;
   14945 echo "$as_me:14945: result: $enable_ziconbeep" >&5
   14946 echo "${ECHO_T}$enable_ziconbeep" >&6
   14947 test "$enable_ziconbeep" = no && cat >>confdefs.h <<\EOF
   14948 #define OPT_ZICONBEEP 0
   14949 EOF
   14950 
   14951 ###############################################################################
   14952 
   14953 echo "$as_me:14953: checking if you want debugging traces" >&5
   14954 echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6
   14955 
   14956 # Check whether --enable-trace or --disable-trace was given.
   14957 if test "${enable_trace+set}" = set; then
   14958   enableval="$enable_trace"
   14959   test "$enableval" != yes && enableval=no
   14960   if test "$enableval" != "no" ; then
   14961     enable_trace=yes
   14962   else
   14963     enable_trace=no
   14964   fi
   14965 else
   14966   enableval=no
   14967   enable_trace=no
   14968 
   14969 fi;
   14970 echo "$as_me:14970: result: $enable_trace" >&5
   14971 echo "${ECHO_T}$enable_trace" >&6
   14972 if test "$enable_trace" = yes ; then
   14973 	cat >>confdefs.h <<\EOF
   14974 #define OPT_TRACE 1
   14975 EOF
   14976 
   14977 	EXTRASRCS="$EXTRASRCS trace.c"
   14978 	EXTRAOBJS="$EXTRAOBJS trace.o"
   14979 fi
   14980 
   14981 echo "$as_me:14981: checking if you want to test memory leaks" >&5
   14982 echo $ECHO_N "checking if you want to test memory leaks... $ECHO_C" >&6
   14983 
   14984 # Check whether --enable-leaks or --disable-leaks was given.
   14985 if test "${enable_leaks+set}" = set; then
   14986   enableval="$enable_leaks"
   14987   test "$enableval" != no && enableval=yes
   14988   if test "$enableval" != "yes" ; then
   14989     disable_leaks=yes
   14990   else
   14991     disable_leaks=no
   14992   fi
   14993 else
   14994   enableval=yes
   14995   disable_leaks=no
   14996 
   14997 fi;
   14998 echo "$as_me:14998: result: $disable_leaks" >&5
   14999 echo "${ECHO_T}$disable_leaks" >&6
   15000 if test "$disable_leaks" = yes ; then
   15001 	cat >>confdefs.h <<\EOF
   15002 #define NO_LEAKS 1
   15003 EOF
   15004 
   15005 fi
   15006 
   15007 echo "$as_me:15007: checking if you want to see long compiling messages" >&5
   15008 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
   15009 
   15010 # Check whether --enable-echo or --disable-echo was given.
   15011 if test "${enable_echo+set}" = set; then
   15012   enableval="$enable_echo"
   15013   test "$enableval" != no && enableval=yes
   15014   if test "$enableval" != "yes" ; then
   15015 
   15016     ECHO_LT='--silent'
   15017     ECHO_LD='@echo linking $@;'
   15018     RULE_CC='@echo compiling $<'
   15019     SHOW_CC='@echo compiling $@'
   15020     ECHO_CC='@'
   15021 
   15022   else
   15023 
   15024     ECHO_LT=''
   15025     ECHO_LD=''
   15026     RULE_CC=''
   15027     SHOW_CC=''
   15028     ECHO_CC=''
   15029 
   15030   fi
   15031 else
   15032   enableval=yes
   15033 
   15034     ECHO_LT=''
   15035     ECHO_LD=''
   15036     RULE_CC=''
   15037     SHOW_CC=''
   15038     ECHO_CC=''
   15039 
   15040 fi;
   15041 echo "$as_me:15041: result: $enableval" >&5
   15042 echo "${ECHO_T}$enableval" >&6
   15043 
   15044 echo "$as_me:15044: checking if you want magic cookie emulation" >&5
   15045 echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6
   15046 
   15047 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
   15048 if test "${enable_xmc_glitch+set}" = set; then
   15049   enableval="$enable_xmc_glitch"
   15050   test "$enableval" != yes && enableval=no
   15051   if test "$enableval" != "no" ; then
   15052     enable_xmc=yes
   15053   else
   15054     enable_xmc=no
   15055   fi
   15056 else
   15057   enableval=no
   15058   enable_xmc=no
   15059 
   15060 fi;
   15061 echo "$as_me:15061: result: $enable_xmc" >&5
   15062 echo "${ECHO_T}$enable_xmc" >&6
   15063 if test "$enable_xmc" = yes ; then
   15064 	cat >>confdefs.h <<\EOF
   15065 #define OPT_XMC_GLITCH 1
   15066 EOF
   15067 
   15068 	EXTRASRCS="$EXTRASRCS testxmc.c"
   15069 	EXTRAOBJS="$EXTRAOBJS testxmc.o"
   15070 fi
   15071 
   15072 for ac_func in tigetstr
   15073 do
   15074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15075 echo "$as_me:15075: checking for $ac_func" >&5
   15076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   15077 if eval "test \"\${$as_ac_var+set}\" = set"; then
   15078   echo $ECHO_N "(cached) $ECHO_C" >&6
   15079 else
   15080   cat >conftest.$ac_ext <<_ACEOF
   15081 #line 15081 "configure"
   15082 #include "confdefs.h"
   15083 /* System header to define __stub macros and hopefully few prototypes,
   15084     which can conflict with char $ac_func (); below.  */
   15085 #include <assert.h>
   15086 /* Override any gcc2 internal prototype to avoid an error.  */
   15087 #ifdef __cplusplus
   15088 extern "C"
   15089 #endif
   15090 /* We use char because int might match the return type of a gcc2
   15091    builtin and then its argument prototype would still apply.  */
   15092 char $ac_func ();
   15093 char (*f) ();
   15094 
   15095 int
   15096 main ()
   15097 {
   15098 /* The GNU C library defines this for functions which it implements
   15099     to always fail with ENOSYS.  Some functions are actually named
   15100     something starting with __ and the normal name is an alias.  */
   15101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   15102 choke me
   15103 #else
   15104 f = $ac_func;
   15105 #endif
   15106 
   15107   ;
   15108   return 0;
   15109 }
   15110 _ACEOF
   15111 rm -f conftest.$ac_objext conftest$ac_exeext
   15112 if { (eval echo "$as_me:15112: \"$ac_link\"") >&5
   15113   (eval $ac_link) 2>&5
   15114   ac_status=$?
   15115   echo "$as_me:15115: \$? = $ac_status" >&5
   15116   (exit $ac_status); } &&
   15117          { ac_try='test -s conftest$ac_exeext'
   15118   { (eval echo "$as_me:15118: \"$ac_try\"") >&5
   15119   (eval $ac_try) 2>&5
   15120   ac_status=$?
   15121   echo "$as_me:15121: \$? = $ac_status" >&5
   15122   (exit $ac_status); }; }; then
   15123   eval "$as_ac_var=yes"
   15124 else
   15125   echo "$as_me: failed program was:" >&5
   15126 cat conftest.$ac_ext >&5
   15127 eval "$as_ac_var=no"
   15128 fi
   15129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   15130 fi
   15131 echo "$as_me:15131: result: `eval echo '${'$as_ac_var'}'`" >&5
   15132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   15133 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15134   cat >>confdefs.h <<EOF
   15135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15136 EOF
   15137 
   15138 fi
   15139 done
   15140 
   15141 if test -n "$cf_cv_lib_part_tgetent"; then
   15142 
   15143 for ac_func in use_extended_names
   15144 do
   15145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15146 echo "$as_me:15146: checking for $ac_func" >&5
   15147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   15148 if eval "test \"\${$as_ac_var+set}\" = set"; then
   15149   echo $ECHO_N "(cached) $ECHO_C" >&6
   15150 else
   15151   cat >conftest.$ac_ext <<_ACEOF
   15152 #line 15152 "configure"
   15153 #include "confdefs.h"
   15154 /* System header to define __stub macros and hopefully few prototypes,
   15155     which can conflict with char $ac_func (); below.  */
   15156 #include <assert.h>
   15157 /* Override any gcc2 internal prototype to avoid an error.  */
   15158 #ifdef __cplusplus
   15159 extern "C"
   15160 #endif
   15161 /* We use char because int might match the return type of a gcc2
   15162    builtin and then its argument prototype would still apply.  */
   15163 char $ac_func ();
   15164 char (*f) ();
   15165 
   15166 int
   15167 main ()
   15168 {
   15169 /* The GNU C library defines this for functions which it implements
   15170     to always fail with ENOSYS.  Some functions are actually named
   15171     something starting with __ and the normal name is an alias.  */
   15172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   15173 choke me
   15174 #else
   15175 f = $ac_func;
   15176 #endif
   15177 
   15178   ;
   15179   return 0;
   15180 }
   15181 _ACEOF
   15182 rm -f conftest.$ac_objext conftest$ac_exeext
   15183 if { (eval echo "$as_me:15183: \"$ac_link\"") >&5
   15184   (eval $ac_link) 2>&5
   15185   ac_status=$?
   15186   echo "$as_me:15186: \$? = $ac_status" >&5
   15187   (exit $ac_status); } &&
   15188          { ac_try='test -s conftest$ac_exeext'
   15189   { (eval echo "$as_me:15189: \"$ac_try\"") >&5
   15190   (eval $ac_try) 2>&5
   15191   ac_status=$?
   15192   echo "$as_me:15192: \$? = $ac_status" >&5
   15193   (exit $ac_status); }; }; then
   15194   eval "$as_ac_var=yes"
   15195 else
   15196   echo "$as_me: failed program was:" >&5
   15197 cat conftest.$ac_ext >&5
   15198 eval "$as_ac_var=no"
   15199 fi
   15200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   15201 fi
   15202 echo "$as_me:15202: result: `eval echo '${'$as_ac_var'}'`" >&5
   15203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   15204 if test `eval echo '${'$as_ac_var'}'` = yes; then
   15205   cat >>confdefs.h <<EOF
   15206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15207 EOF
   15208 
   15209 fi
   15210 done
   15211 
   15212 fi
   15213 
   15214 if test -n "$GCC" ; then
   15215 echo "$as_me:15215: checking if you want to turn on gcc warnings" >&5
   15216 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
   15217 
   15218 # Check whether --enable-warnings or --disable-warnings was given.
   15219 if test "${enable_warnings+set}" = set; then
   15220   enableval="$enable_warnings"
   15221   test "$enableval" != yes && enableval=no
   15222   if test "$enableval" != "no" ; then
   15223     with_warnings=yes
   15224   else
   15225     with_warnings=no
   15226   fi
   15227 else
   15228   enableval=no
   15229   with_warnings=no
   15230 
   15231 fi;
   15232 echo "$as_me:15232: result: $with_warnings" >&5
   15233 echo "${ECHO_T}$with_warnings" >&6
   15234 if test "$with_warnings" = yes
   15235 then
   15236 
   15237 if test "$GCC" = yes
   15238 then
   15239 cat > conftest.i <<EOF
   15240 #ifndef GCC_PRINTF
   15241 #define GCC_PRINTF 0
   15242 #endif
   15243 #ifndef GCC_SCANF
   15244 #define GCC_SCANF 0
   15245 #endif
   15246 #ifndef GCC_NORETURN
   15247 #define GCC_NORETURN /* nothing */
   15248 #endif
   15249 #ifndef GCC_UNUSED
   15250 #define GCC_UNUSED /* nothing */
   15251 #endif
   15252 EOF
   15253 if test "$GCC" = yes
   15254 then
   15255 	{ echo "$as_me:15255: checking for $CC __attribute__ directives..." >&5
   15256 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
   15257 cat > conftest.$ac_ext <<EOF
   15258 #line 15258 "${as_me:-configure}"
   15259 #include "confdefs.h"
   15260 #include "conftest.h"
   15261 #include "conftest.i"
   15262 #if	GCC_PRINTF
   15263 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
   15264 #else
   15265 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
   15266 #endif
   15267 #if	GCC_SCANF
   15268 #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
   15269 #else
   15270 #define GCC_SCANFLIKE(fmt,var)  /*nothing*/
   15271 #endif
   15272 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
   15273 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
   15274 extern void foo(void) GCC_NORETURN;
   15275 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
   15276 EOF
   15277 	cf_printf_attribute=no
   15278 	cf_scanf_attribute=no
   15279 	for cf_attribute in scanf printf unused noreturn
   15280 	do
   15281 
   15282 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
   15283 
   15284 		cf_directive="__attribute__(($cf_attribute))"
   15285 		echo "checking for $CC $cf_directive" 1>&5
   15286 
   15287 		case $cf_attribute in #(vi
   15288 		printf) #(vi
   15289 			cf_printf_attribute=yes
   15290 			cat >conftest.h <<EOF
   15291 #define GCC_$cf_ATTRIBUTE 1
   15292 EOF
   15293 			;;
   15294 		scanf) #(vi
   15295 			cf_scanf_attribute=yes
   15296 			cat >conftest.h <<EOF
   15297 #define GCC_$cf_ATTRIBUTE 1
   15298 EOF
   15299 			;;
   15300 		*) #(vi
   15301 			cat >conftest.h <<EOF
   15302 #define GCC_$cf_ATTRIBUTE $cf_directive
   15303 EOF
   15304 			;;
   15305 		esac
   15306 
   15307 		if { (eval echo "$as_me:15307: \"$ac_compile\"") >&5
   15308   (eval $ac_compile) 2>&5
   15309   ac_status=$?
   15310   echo "$as_me:15310: \$? = $ac_status" >&5
   15311   (exit $ac_status); }; then
   15312 			test -n "$verbose" && echo "$as_me:15312: result: ... $cf_attribute" >&5
   15313 echo "${ECHO_T}... $cf_attribute" >&6
   15314 			cat conftest.h >>confdefs.h
   15315 			case $cf_attribute in #(vi
   15316 			printf) #(vi
   15317 				if test "$cf_printf_attribute" = no ; then
   15318 					cat >>confdefs.h <<EOF
   15319 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
   15320 EOF
   15321 				else
   15322 					cat >>confdefs.h <<EOF
   15323 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
   15324 EOF
   15325 				fi
   15326 				;;
   15327 			scanf) #(vi
   15328 				if test "$cf_scanf_attribute" = no ; then
   15329 					cat >>confdefs.h <<EOF
   15330 #define GCC_SCANFLIKE(fmt,var) /* nothing */
   15331 EOF
   15332 				else
   15333 					cat >>confdefs.h <<EOF
   15334 #define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
   15335 EOF
   15336 				fi
   15337 				;;
   15338 			esac
   15339 		fi
   15340 	done
   15341 else
   15342 	fgrep define conftest.i >>confdefs.h
   15343 fi
   15344 rm -rf conftest*
   15345 fi
   15346 
   15347 GCC_VERSION=none
   15348 if test "$GCC" = yes ; then
   15349 	echo "$as_me:15349: checking version of $CC" >&5
   15350 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
   15351 	GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
   15352 	test -z "$GCC_VERSION" && GCC_VERSION=unknown
   15353 	echo "$as_me:15353: result: $GCC_VERSION" >&5
   15354 echo "${ECHO_T}$GCC_VERSION" >&6
   15355 fi
   15356 
   15357 INTEL_COMPILER=no
   15358 
   15359 if test "$GCC" = yes ; then
   15360 	case $host_os in
   15361 	linux*|gnu*)
   15362 		echo "$as_me:15362: checking if this is really Intel C compiler" >&5
   15363 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
   15364 		cf_save_CFLAGS="$CFLAGS"
   15365 		CFLAGS="$CFLAGS -no-gcc"
   15366 		cat >conftest.$ac_ext <<_ACEOF
   15367 #line 15367 "configure"
   15368 #include "confdefs.h"
   15369 
   15370 int
   15371 main ()
   15372 {
   15373 
   15374 #ifdef __INTEL_COMPILER
   15375 #else
   15376 make an error
   15377 #endif
   15378 
   15379   ;
   15380   return 0;
   15381 }
   15382 _ACEOF
   15383 rm -f conftest.$ac_objext
   15384 if { (eval echo "$as_me:15384: \"$ac_compile\"") >&5
   15385   (eval $ac_compile) 2>&5
   15386   ac_status=$?
   15387   echo "$as_me:15387: \$? = $ac_status" >&5
   15388   (exit $ac_status); } &&
   15389          { ac_try='test -s conftest.$ac_objext'
   15390   { (eval echo "$as_me:15390: \"$ac_try\"") >&5
   15391   (eval $ac_try) 2>&5
   15392   ac_status=$?
   15393   echo "$as_me:15393: \$? = $ac_status" >&5
   15394   (exit $ac_status); }; }; then
   15395   INTEL_COMPILER=yes
   15396 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
   15397 
   15398 else
   15399   echo "$as_me: failed program was:" >&5
   15400 cat conftest.$ac_ext >&5
   15401 fi
   15402 rm -f conftest.$ac_objext conftest.$ac_ext
   15403 		CFLAGS="$cf_save_CFLAGS"
   15404 		echo "$as_me:15404: result: $INTEL_COMPILER" >&5
   15405 echo "${ECHO_T}$INTEL_COMPILER" >&6
   15406 		;;
   15407 	esac
   15408 fi
   15409 
   15410 cat > conftest.$ac_ext <<EOF
   15411 #line 15411 "${as_me:-configure}"
   15412 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
   15413 EOF
   15414 
   15415 if test "$INTEL_COMPILER" = yes
   15416 then
   15417 # The "-wdXXX" options suppress warnings:
   15418 # remark #1419: external declaration in primary source file
   15419 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
   15420 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
   15421 # remark #193: zero used for undefined preprocessing identifier
   15422 # remark #593: variable "curs_sb_left_arrow" was set but never used
   15423 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
   15424 # remark #869: parameter "tw" was never referenced
   15425 # remark #981: operands are evaluated in unspecified order
   15426 # warning #279: controlling expression is constant
   15427 
   15428 	{ echo "$as_me:15428: checking for $CC warning options..." >&5
   15429 echo "$as_me: checking for $CC warning options..." >&6;}
   15430 	cf_save_CFLAGS="$CFLAGS"
   15431 	EXTRA_CFLAGS="-Wall"
   15432 	for cf_opt in \
   15433 		wd1419 \
   15434 		wd1683 \
   15435 		wd1684 \
   15436 		wd193 \
   15437 		wd593 \
   15438 		wd279 \
   15439 		wd810 \
   15440 		wd869 \
   15441 		wd981
   15442 	do
   15443 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   15444 		if { (eval echo "$as_me:15444: \"$ac_compile\"") >&5
   15445   (eval $ac_compile) 2>&5
   15446   ac_status=$?
   15447   echo "$as_me:15447: \$? = $ac_status" >&5
   15448   (exit $ac_status); }; then
   15449 			test -n "$verbose" && echo "$as_me:15449: result: ... -$cf_opt" >&5
   15450 echo "${ECHO_T}... -$cf_opt" >&6
   15451 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   15452 		fi
   15453 	done
   15454 	CFLAGS="$cf_save_CFLAGS"
   15455 
   15456 elif test "$GCC" = yes
   15457 then
   15458 	{ echo "$as_me:15458: checking for $CC warning options..." >&5
   15459 echo "$as_me: checking for $CC warning options..." >&6;}
   15460 	cf_save_CFLAGS="$CFLAGS"
   15461 	EXTRA_CFLAGS=
   15462 	cf_warn_CONST=""
   15463 	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
   15464 	for cf_opt in W Wall \
   15465 		Wbad-function-cast \
   15466 		Wcast-align \
   15467 		Wcast-qual \
   15468 		Winline \
   15469 		Wmissing-declarations \
   15470 		Wmissing-prototypes \
   15471 		Wnested-externs \
   15472 		Wpointer-arith \
   15473 		Wshadow \
   15474 		Wstrict-prototypes \
   15475 		Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
   15476 	do
   15477 		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
   15478 		if { (eval echo "$as_me:15478: \"$ac_compile\"") >&5
   15479   (eval $ac_compile) 2>&5
   15480   ac_status=$?
   15481   echo "$as_me:15481: \$? = $ac_status" >&5
   15482   (exit $ac_status); }; then
   15483 			test -n "$verbose" && echo "$as_me:15483: result: ... -$cf_opt" >&5
   15484 echo "${ECHO_T}... -$cf_opt" >&6
   15485 			case $cf_opt in #(vi
   15486 			Wcast-qual) #(vi
   15487 				CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
   15488 				;;
   15489 			Winline) #(vi
   15490 				case $GCC_VERSION in
   15491 				[34].*)
   15492 					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
   15493 
   15494 echo "${as_me:-configure}:15494: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
   15495 
   15496 					continue;;
   15497 				esac
   15498 				;;
   15499 			esac
   15500 			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
   15501 		fi
   15502 	done
   15503 	CFLAGS="$cf_save_CFLAGS"
   15504 fi
   15505 rm -rf conftest*
   15506 
   15507 fi
   15508 fi
   15509 
   15510 test "$disable_setuid" = yes && cat >>confdefs.h <<\EOF
   15511 #define DISABLE_SETUID 1
   15512 EOF
   15513 
   15514 test "$disable_setgid" = yes && cat >>confdefs.h <<\EOF
   15515 #define DISABLE_SETGID 1
   15516 EOF
   15517 
   15518 if test $disable_setuid = yes ; then
   15519 	MAY_SETUID="#"
   15520 	NOT_SETUID=
   15521 elif test $disable_setgid = yes ; then
   15522 	MAY_SETUID="#"
   15523 	NOT_SETUID=
   15524 else
   15525 	MAY_SETUID=
   15526 	NOT_SETUID="#"
   15527 fi
   15528 
   15529 ###	remove from CPPFLAGS the optional features we define in xtermcfg.h
   15530 ###	or other conflicting symbols that may be defined via imake:
   15531 for cf_def in \
   15532 	__STDC__ \
   15533 	ALLOWLOGGING \
   15534 	ALLOWLOGFILEEXEC \
   15535 	OPT_LUIT_PROG \
   15536 	OPT_WIDE_CHARS \
   15537 	SCROLLBAR_RIGHT \
   15538 	USE_TTY_GROUP \
   15539 	USE_UTEMPTER \
   15540 	XRENDERFONT
   15541 do
   15542 	CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//`
   15543 done
   15544 
   15545 echo "$as_me:15545: checking if filesystem supports mixed-case filenames" >&5
   15546 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
   15547 if test "${cf_cv_mixedcase+set}" = set; then
   15548   echo $ECHO_N "(cached) $ECHO_C" >&6
   15549 else
   15550 
   15551 if test "$cross_compiling" = yes ; then
   15552 	case $target_alias in #(vi
   15553 	*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
   15554 		cf_cv_mixedcase=no
   15555 		;;
   15556 	*)
   15557 		cf_cv_mixedcase=yes
   15558 		;;
   15559 	esac
   15560 else
   15561 	rm -f conftest CONFTEST
   15562 	echo test >conftest
   15563 	if test -f CONFTEST ; then
   15564 		cf_cv_mixedcase=no
   15565 	else
   15566 		cf_cv_mixedcase=yes
   15567 	fi
   15568 	rm -f conftest CONFTEST
   15569 fi
   15570 
   15571 fi
   15572 echo "$as_me:15572: result: $cf_cv_mixedcase" >&5
   15573 echo "${ECHO_T}$cf_cv_mixedcase" >&6
   15574 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
   15575 #define MIXEDCASE_FILENAMES 1
   15576 EOF
   15577 
   15578 for ac_prog in exctags ctags
   15579 do
   15580   # Extract the first word of "$ac_prog", so it can be a program name with args.
   15581 set dummy $ac_prog; ac_word=$2
   15582 echo "$as_me:15582: checking for $ac_word" >&5
   15583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   15584 if test "${ac_cv_prog_CTAGS+set}" = set; then
   15585   echo $ECHO_N "(cached) $ECHO_C" >&6
   15586 else
   15587   if test -n "$CTAGS"; then
   15588   ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
   15589 else
   15590   ac_save_IFS=$IFS; IFS=$ac_path_separator
   15591 ac_dummy="$PATH"
   15592 for ac_dir in $ac_dummy; do
   15593   IFS=$ac_save_IFS
   15594   test -z "$ac_dir" && ac_dir=.
   15595   $as_executable_p "$ac_dir/$ac_word" || continue
   15596 ac_cv_prog_CTAGS="$ac_prog"
   15597 echo "$as_me:15597: found $ac_dir/$ac_word" >&5
   15598 break
   15599 done
   15600 
   15601 fi
   15602 fi
   15603 CTAGS=$ac_cv_prog_CTAGS
   15604 if test -n "$CTAGS"; then
   15605   echo "$as_me:15605: result: $CTAGS" >&5
   15606 echo "${ECHO_T}$CTAGS" >&6
   15607 else
   15608   echo "$as_me:15608: result: no" >&5
   15609 echo "${ECHO_T}no" >&6
   15610 fi
   15611 
   15612   test -n "$CTAGS" && break
   15613 done
   15614 
   15615 for ac_prog in exetags etags
   15616 do
   15617   # Extract the first word of "$ac_prog", so it can be a program name with args.
   15618 set dummy $ac_prog; ac_word=$2
   15619 echo "$as_me:15619: checking for $ac_word" >&5
   15620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   15621 if test "${ac_cv_prog_ETAGS+set}" = set; then
   15622   echo $ECHO_N "(cached) $ECHO_C" >&6
   15623 else
   15624   if test -n "$ETAGS"; then
   15625   ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
   15626 else
   15627   ac_save_IFS=$IFS; IFS=$ac_path_separator
   15628 ac_dummy="$PATH"
   15629 for ac_dir in $ac_dummy; do
   15630   IFS=$ac_save_IFS
   15631   test -z "$ac_dir" && ac_dir=.
   15632   $as_executable_p "$ac_dir/$ac_word" || continue
   15633 ac_cv_prog_ETAGS="$ac_prog"
   15634 echo "$as_me:15634: found $ac_dir/$ac_word" >&5
   15635 break
   15636 done
   15637 
   15638 fi
   15639 fi
   15640 ETAGS=$ac_cv_prog_ETAGS
   15641 if test -n "$ETAGS"; then
   15642   echo "$as_me:15642: result: $ETAGS" >&5
   15643 echo "${ECHO_T}$ETAGS" >&6
   15644 else
   15645   echo "$as_me:15645: result: no" >&5
   15646 echo "${ECHO_T}no" >&6
   15647 fi
   15648 
   15649   test -n "$ETAGS" && break
   15650 done
   15651 
   15652 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
   15653 set dummy ${CTAGS:-ctags}; ac_word=$2
   15654 echo "$as_me:15654: checking for $ac_word" >&5
   15655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   15656 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
   15657   echo $ECHO_N "(cached) $ECHO_C" >&6
   15658 else
   15659   if test -n "$MAKE_LOWER_TAGS"; then
   15660   ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
   15661 else
   15662   ac_save_IFS=$IFS; IFS=$ac_path_separator
   15663 ac_dummy="$PATH"
   15664 for ac_dir in $ac_dummy; do
   15665   IFS=$ac_save_IFS
   15666   test -z "$ac_dir" && ac_dir=.
   15667   $as_executable_p "$ac_dir/$ac_word" || continue
   15668 ac_cv_prog_MAKE_LOWER_TAGS="yes"
   15669 echo "$as_me:15669: found $ac_dir/$ac_word" >&5
   15670 break
   15671 done
   15672 
   15673   test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
   15674 fi
   15675 fi
   15676 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
   15677 if test -n "$MAKE_LOWER_TAGS"; then
   15678   echo "$as_me:15678: result: $MAKE_LOWER_TAGS" >&5
   15679 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
   15680 else
   15681   echo "$as_me:15681: result: no" >&5
   15682 echo "${ECHO_T}no" >&6
   15683 fi
   15684 
   15685 if test "$cf_cv_mixedcase" = yes ; then
   15686 	# Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
   15687 set dummy ${ETAGS:-etags}; ac_word=$2
   15688 echo "$as_me:15688: checking for $ac_word" >&5
   15689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   15690 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
   15691   echo $ECHO_N "(cached) $ECHO_C" >&6
   15692 else
   15693   if test -n "$MAKE_UPPER_TAGS"; then
   15694   ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
   15695 else
   15696   ac_save_IFS=$IFS; IFS=$ac_path_separator
   15697 ac_dummy="$PATH"
   15698 for ac_dir in $ac_dummy; do
   15699   IFS=$ac_save_IFS
   15700   test -z "$ac_dir" && ac_dir=.
   15701   $as_executable_p "$ac_dir/$ac_word" || continue
   15702 ac_cv_prog_MAKE_UPPER_TAGS="yes"
   15703 echo "$as_me:15703: found $ac_dir/$ac_word" >&5
   15704 break
   15705 done
   15706 
   15707   test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
   15708 fi
   15709 fi
   15710 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
   15711 if test -n "$MAKE_UPPER_TAGS"; then
   15712   echo "$as_me:15712: result: $MAKE_UPPER_TAGS" >&5
   15713 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
   15714 else
   15715   echo "$as_me:15715: result: no" >&5
   15716 echo "${ECHO_T}no" >&6
   15717 fi
   15718 
   15719 else
   15720 	MAKE_UPPER_TAGS=no
   15721 fi
   15722 
   15723 if test "$MAKE_UPPER_TAGS" = yes ; then
   15724 	MAKE_UPPER_TAGS=
   15725 else
   15726 	MAKE_UPPER_TAGS="#"
   15727 fi
   15728 
   15729 if test "$MAKE_LOWER_TAGS" = yes ; then
   15730 	MAKE_LOWER_TAGS=
   15731 else
   15732 	MAKE_LOWER_TAGS="#"
   15733 fi
   15734 
   15735 LD_RPATH_OPT=
   15736 echo "$as_me:15736: checking for an rpath option" >&5
   15737 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
   15738 case $cf_cv_system_name in #(vi
   15739 irix*) #(vi
   15740 	if test "$GCC" = yes; then
   15741 		LD_RPATH_OPT="-Wl,-rpath,"
   15742 	else
   15743 		LD_RPATH_OPT="-rpath "
   15744 	fi
   15745 	;;
   15746 linux*|gnu*|k*bsd*-gnu) #(vi
   15747 	LD_RPATH_OPT="-Wl,-rpath,"
   15748 	;;
   15749 openbsd[2-9].*) #(vi
   15750 	LD_RPATH_OPT="-Wl,-rpath,"
   15751 	;;
   15752 freebsd*) #(vi
   15753 	LD_RPATH_OPT="-rpath "
   15754 	;;
   15755 netbsd*) #(vi
   15756 	LD_RPATH_OPT="-Wl,-rpath,"
   15757 	;;
   15758 osf*|mls+*) #(vi
   15759 	LD_RPATH_OPT="-rpath "
   15760 	;;
   15761 solaris2*) #(vi
   15762 	LD_RPATH_OPT="-R"
   15763 	;;
   15764 *)
   15765 	;;
   15766 esac
   15767 echo "$as_me:15767: result: $LD_RPATH_OPT" >&5
   15768 echo "${ECHO_T}$LD_RPATH_OPT" >&6
   15769 
   15770 case "x$LD_RPATH_OPT" in #(vi
   15771 x-R*)
   15772 	echo "$as_me:15772: checking if we need a space after rpath option" >&5
   15773 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
   15774 	cf_save_LIBS="$LIBS"
   15775 	LIBS="${LD_RPATH_OPT}$libdir $LIBS"
   15776 	cat >conftest.$ac_ext <<_ACEOF
   15777 #line 15777 "configure"
   15778 #include "confdefs.h"
   15779 
   15780 int
   15781 main ()
   15782 {
   15783 
   15784   ;
   15785   return 0;
   15786 }
   15787 _ACEOF
   15788 rm -f conftest.$ac_objext conftest$ac_exeext
   15789 if { (eval echo "$as_me:15789: \"$ac_link\"") >&5
   15790   (eval $ac_link) 2>&5
   15791   ac_status=$?
   15792   echo "$as_me:15792: \$? = $ac_status" >&5
   15793   (exit $ac_status); } &&
   15794          { ac_try='test -s conftest$ac_exeext'
   15795   { (eval echo "$as_me:15795: \"$ac_try\"") >&5
   15796   (eval $ac_try) 2>&5
   15797   ac_status=$?
   15798   echo "$as_me:15798: \$? = $ac_status" >&5
   15799   (exit $ac_status); }; }; then
   15800   cf_rpath_space=no
   15801 else
   15802   echo "$as_me: failed program was:" >&5
   15803 cat conftest.$ac_ext >&5
   15804 cf_rpath_space=yes
   15805 fi
   15806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   15807 	LIBS="$cf_save_LIBS"
   15808 	echo "$as_me:15808: result: $cf_rpath_space" >&5
   15809 echo "${ECHO_T}$cf_rpath_space" >&6
   15810 	test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
   15811 	;;
   15812 esac
   15813 
   15814 echo "$as_me:15814: checking if rpath-hack should be disabled" >&5
   15815 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
   15816 
   15817 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
   15818 if test "${enable_rpath_hack+set}" = set; then
   15819   enableval="$enable_rpath_hack"
   15820   test "$enableval" != no && enableval=yes
   15821   if test "$enableval" != "yes" ; then
   15822     cf_disable_rpath_hack=yes
   15823   else
   15824     cf_disable_rpath_hack=no
   15825   fi
   15826 else
   15827   enableval=yes
   15828   cf_disable_rpath_hack=no
   15829 
   15830 fi;
   15831 echo "$as_me:15831: result: $cf_disable_rpath_hack" >&5
   15832 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
   15833 if test "$cf_disable_rpath_hack" = no ; then
   15834 
   15835 echo "$as_me:15835: checking for updated LDFLAGS" >&5
   15836 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
   15837 if test -n "$LD_RPATH_OPT" ; then
   15838 	echo "$as_me:15838: result: maybe" >&5
   15839 echo "${ECHO_T}maybe" >&6
   15840 
   15841 	for ac_prog in ldd
   15842 do
   15843   # Extract the first word of "$ac_prog", so it can be a program name with args.
   15844 set dummy $ac_prog; ac_word=$2
   15845 echo "$as_me:15845: checking for $ac_word" >&5
   15846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   15847 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
   15848   echo $ECHO_N "(cached) $ECHO_C" >&6
   15849 else
   15850   if test -n "$cf_ldd_prog"; then
   15851   ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
   15852 else
   15853   ac_save_IFS=$IFS; IFS=$ac_path_separator
   15854 ac_dummy="$PATH"
   15855 for ac_dir in $ac_dummy; do
   15856   IFS=$ac_save_IFS
   15857   test -z "$ac_dir" && ac_dir=.
   15858   $as_executable_p "$ac_dir/$ac_word" || continue
   15859 ac_cv_prog_cf_ldd_prog="$ac_prog"
   15860 echo "$as_me:15860: found $ac_dir/$ac_word" >&5
   15861 break
   15862 done
   15863 
   15864 fi
   15865 fi
   15866 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
   15867 if test -n "$cf_ldd_prog"; then
   15868   echo "$as_me:15868: result: $cf_ldd_prog" >&5
   15869 echo "${ECHO_T}$cf_ldd_prog" >&6
   15870 else
   15871   echo "$as_me:15871: result: no" >&5
   15872 echo "${ECHO_T}no" >&6
   15873 fi
   15874 
   15875   test -n "$cf_ldd_prog" && break
   15876 done
   15877 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
   15878 
   15879 	cf_rpath_list="/usr/lib /lib"
   15880 	if test "$cf_ldd_prog" != no
   15881 	then
   15882 		cf_rpath_oops=
   15883 
   15884 cat >conftest.$ac_ext <<_ACEOF
   15885 #line 15885 "configure"
   15886 #include "confdefs.h"
   15887 #include <stdio.h>
   15888 int
   15889 main ()
   15890 {
   15891 printf("Hello");
   15892   ;
   15893   return 0;
   15894 }
   15895 _ACEOF
   15896 rm -f conftest.$ac_objext conftest$ac_exeext
   15897 if { (eval echo "$as_me:15897: \"$ac_link\"") >&5
   15898   (eval $ac_link) 2>&5
   15899   ac_status=$?
   15900   echo "$as_me:15900: \$? = $ac_status" >&5
   15901   (exit $ac_status); } &&
   15902          { ac_try='test -s conftest$ac_exeext'
   15903   { (eval echo "$as_me:15903: \"$ac_try\"") >&5
   15904   (eval $ac_try) 2>&5
   15905   ac_status=$?
   15906   echo "$as_me:15906: \$? = $ac_status" >&5
   15907   (exit $ac_status); }; }; then
   15908   cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
   15909 		 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ 	]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
   15910 else
   15911   echo "$as_me: failed program was:" >&5
   15912 cat conftest.$ac_ext >&5
   15913 fi
   15914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
   15915 
   15916 		# If we passed the link-test, but get a "not found" on a given library,
   15917 		# this could be due to inept reconfiguration of gcc to make it only
   15918 		# partly honor /usr/local/lib (or whatever).  Sometimes this behavior
   15919 		# is intentional, e.g., installing gcc in /usr/bin and suppressing the
   15920 		# /usr/local libraries.
   15921 		if test -n "$cf_rpath_oops"
   15922 		then
   15923 			for cf_rpath_src in $cf_rpath_oops
   15924 			do
   15925 				for cf_rpath_dir in \
   15926 					/usr/local \
   15927 					/usr/pkg \
   15928 					/opt/sfw
   15929 				do
   15930 					if test -f $cf_rpath_dir/lib/$cf_rpath_src
   15931 					then
   15932 						test -n "$verbose" && echo "	...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
   15933 
   15934 echo "${as_me:-configure}:15934: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
   15935 
   15936 						LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
   15937 						break
   15938 					fi
   15939 				done
   15940 			done
   15941 		fi
   15942 	fi
   15943 
   15944 	test -n "$verbose" && echo "	...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
   15945 
   15946 echo "${as_me:-configure}:15946: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
   15947 
   15948 test -n "$verbose" && echo "	...checking LDFLAGS $LDFLAGS" 1>&6
   15949 
   15950 echo "${as_me:-configure}:15950: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
   15951 
   15952 cf_rpath_dst=
   15953 for cf_rpath_src in $LDFLAGS
   15954 do
   15955 	case $cf_rpath_src in #(vi
   15956 	-L*) #(vi
   15957 
   15958 		# check if this refers to a directory which we will ignore
   15959 		cf_rpath_skip=no
   15960 		if test -n "$cf_rpath_list"
   15961 		then
   15962 			for cf_rpath_item in $cf_rpath_list
   15963 			do
   15964 				if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
   15965 				then
   15966 					cf_rpath_skip=yes
   15967 					break
   15968 				fi
   15969 			done
   15970 		fi
   15971 
   15972 		if test "$cf_rpath_skip" = no
   15973 		then
   15974 			# transform the option
   15975 			if test "$LD_RPATH_OPT" = "-R " ; then
   15976 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
   15977 			else
   15978 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
   15979 			fi
   15980 
   15981 			# if we have not already added this, add it now
   15982 			cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
   15983 			if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
   15984 			then
   15985 				test -n "$verbose" && echo "	...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
   15986 
   15987 echo "${as_me:-configure}:15987: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
   15988 
   15989 				EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
   15990 			fi
   15991 		fi
   15992 		;;
   15993 	esac
   15994 	cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
   15995 done
   15996 LDFLAGS=$cf_rpath_dst
   15997 
   15998 test -n "$verbose" && echo "	...checked LDFLAGS $LDFLAGS" 1>&6
   15999 
   16000 echo "${as_me:-configure}:16000: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
   16001 
   16002 test -n "$verbose" && echo "	...checking LIBS $LIBS" 1>&6
   16003 
   16004 echo "${as_me:-configure}:16004: testing ...checking LIBS $LIBS ..." 1>&5
   16005 
   16006 cf_rpath_dst=
   16007 for cf_rpath_src in $LIBS
   16008 do
   16009 	case $cf_rpath_src in #(vi
   16010 	-L*) #(vi
   16011 
   16012 		# check if this refers to a directory which we will ignore
   16013 		cf_rpath_skip=no
   16014 		if test -n "$cf_rpath_list"
   16015 		then
   16016 			for cf_rpath_item in $cf_rpath_list
   16017 			do
   16018 				if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
   16019 				then
   16020 					cf_rpath_skip=yes
   16021 					break
   16022 				fi
   16023 			done
   16024 		fi
   16025 
   16026 		if test "$cf_rpath_skip" = no
   16027 		then
   16028 			# transform the option
   16029 			if test "$LD_RPATH_OPT" = "-R " ; then
   16030 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
   16031 			else
   16032 				cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
   16033 			fi
   16034 
   16035 			# if we have not already added this, add it now
   16036 			cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
   16037 			if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
   16038 			then
   16039 				test -n "$verbose" && echo "	...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
   16040 
   16041 echo "${as_me:-configure}:16041: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
   16042 
   16043 				EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
   16044 			fi
   16045 		fi
   16046 		;;
   16047 	esac
   16048 	cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
   16049 done
   16050 LIBS=$cf_rpath_dst
   16051 
   16052 test -n "$verbose" && echo "	...checked LIBS $LIBS" 1>&6
   16053 
   16054 echo "${as_me:-configure}:16054: testing ...checked LIBS $LIBS ..." 1>&5
   16055 
   16056 	test -n "$verbose" && echo "	...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
   16057 
   16058 echo "${as_me:-configure}:16058: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
   16059 
   16060 fi
   16061 
   16062 fi
   16063 
   16064 # Force plink.sh to not trim pcre's libraries, which have the same symbol
   16065 # names as the system regexp.
   16066 if test "$with_pcre" != no
   16067 then
   16068 	LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'`
   16069 fi
   16070 
   16071 ###	output Makefile and xtermcfg.h
   16072 ac_config_files="$ac_config_files Makefile"
   16073 cat >confcache <<\_ACEOF
   16074 # This file is a shell script that caches the results of configure
   16075 # tests run on this system so they can be shared between configure
   16076 # scripts and configure runs, see configure's option --config-cache.
   16077 # It is not useful on other systems.  If it contains results you don't
   16078 # want to keep, you may remove or edit it.
   16079 #
   16080 # config.status only pays attention to the cache file if you give it
   16081 # the --recheck option to rerun configure.
   16082 #
   16083 # `ac_cv_env_foo' variables (set or unset) will be overriden when
   16084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   16085 # following values.
   16086 
   16087 _ACEOF
   16088 
   16089 # The following way of writing the cache mishandles newlines in values,
   16090 # but we know of no workaround that is simple, portable, and efficient.
   16091 # So, don't put newlines in cache variables' values.
   16092 # Ultrix sh set writes to stderr and can't be redirected directly,
   16093 # and sets the high bit in the cache file unless we assign to the vars.
   16094 {
   16095   (set) 2>&1 |
   16096     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   16097     *ac_space=\ *)
   16098       # `set' does not quote correctly, so add quotes (double-quote
   16099       # substitution turns \\\\ into \\, and sed turns \\ into \).
   16100       sed -n \
   16101         "s/'/'\\\\''/g;
   16102     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   16103       ;;
   16104     *)
   16105       # `set' quotes correctly as required by POSIX, so do not add quotes.
   16106       sed -n \
   16107         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   16108       ;;
   16109     esac;
   16110 } |
   16111   sed '
   16112      t clear
   16113      : clear
   16114      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   16115      t end
   16116      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   16117      : end' >>confcache
   16118 if cmp -s $cache_file confcache; then :; else
   16119   if test -w $cache_file; then
   16120     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   16121     cat confcache >$cache_file
   16122   else
   16123     echo "not updating unwritable cache $cache_file"
   16124   fi
   16125 fi
   16126 rm -f confcache
   16127 
   16128 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   16129 # Let make expand exec_prefix.
   16130 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   16131 
   16132 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   16133 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   16134 # trailing colons and then remove the whole line if VPATH becomes empty
   16135 # (actually we leave an empty line to preserve line numbers).
   16136 if test "x$srcdir" = x.; then
   16137   ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
   16138 s/:*\$(srcdir):*/:/;
   16139 s/:*\${srcdir}:*/:/;
   16140 s/:*@srcdir@:*/:/;
   16141 s/^\([^=]*=[ 	]*\):*/\1/;
   16142 s/:*$//;
   16143 s/^[^=]*=[ 	]*$//;
   16144 }'
   16145 fi
   16146 
   16147 DEFS=-DHAVE_CONFIG_H
   16148 
   16149 : ${CONFIG_STATUS=./config.status}
   16150 ac_clean_files_save=$ac_clean_files
   16151 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   16152 { echo "$as_me:16152: creating $CONFIG_STATUS" >&5
   16153 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   16154 cat >$CONFIG_STATUS <<_ACEOF
   16155 #! $SHELL
   16156 # Generated automatically by configure.
   16157 # Run this file to recreate the current configuration.
   16158 # Compiler output produced by configure, useful for debugging
   16159 # configure, is in config.log if it exists.
   16160 
   16161 debug=false
   16162 SHELL=\${CONFIG_SHELL-$SHELL}
   16163 ac_cs_invocation="\$0 \$@"
   16164 
   16165 _ACEOF
   16166 
   16167 cat >>$CONFIG_STATUS <<\_ACEOF
   16168 # Be Bourne compatible
   16169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   16170   emulate sh
   16171   NULLCMD=:
   16172 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   16173   set -o posix
   16174 fi
   16175 
   16176 # Name of the executable.
   16177 as_me=`echo "$0" |sed 's,.*[\\/],,'`
   16178 
   16179 if expr a : '\(a\)' >/dev/null 2>&1; then
   16180   as_expr=expr
   16181 else
   16182   as_expr=false
   16183 fi
   16184 
   16185 rm -f conf$$ conf$$.exe conf$$.file
   16186 echo >conf$$.file
   16187 if ln -s conf$$.file conf$$ 2>/dev/null; then
   16188   # We could just check for DJGPP; but this test a) works b) is more generic
   16189   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   16190   if test -f conf$$.exe; then
   16191     # Don't use ln at all; we don't have any links
   16192     as_ln_s='cp -p'
   16193   else
   16194     as_ln_s='ln -s'
   16195   fi
   16196 elif ln conf$$.file conf$$ 2>/dev/null; then
   16197   as_ln_s=ln
   16198 else
   16199   as_ln_s='cp -p'
   16200 fi
   16201 rm -f conf$$ conf$$.exe conf$$.file
   16202 
   16203 as_executable_p="test -f"
   16204 
   16205 # Support unset when possible.
   16206 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
   16207   as_unset=unset
   16208 else
   16209   as_unset=false
   16210 fi
   16211 
   16212 # NLS nuisances.
   16213 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
   16214 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
   16215 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
   16216 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
   16217 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
   16218 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
   16219 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
   16220 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
   16221 
   16222 # IFS
   16223 # We need space, tab and new line, in precisely that order.
   16224 as_nl='
   16225 '
   16226 IFS=" 	$as_nl"
   16227 
   16228 # CDPATH.
   16229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
   16230 
   16231 exec 6>&1
   16232 
   16233 _ACEOF
   16234 
   16235 # Files that config.status was made for.
   16236 if test -n "$ac_config_files"; then
   16237   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
   16238 fi
   16239 
   16240 if test -n "$ac_config_headers"; then
   16241   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
   16242 fi
   16243 
   16244 if test -n "$ac_config_links"; then
   16245   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
   16246 fi
   16247 
   16248 if test -n "$ac_config_commands"; then
   16249   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
   16250 fi
   16251 
   16252 cat >>$CONFIG_STATUS <<\EOF
   16253 
   16254 ac_cs_usage="\
   16255 \`$as_me' instantiates files from templates according to the
   16256 current configuration.
   16257 
   16258 Usage: $0 [OPTIONS] [FILE]...
   16259 
   16260   -h, --help       print this help, then exit
   16261   -V, --version    print version number, then exit
   16262   -d, --debug      don't remove temporary files
   16263       --recheck    update $as_me by reconfiguring in the same conditions
   16264   --file=FILE[:TEMPLATE]
   16265                    instantiate the configuration file FILE
   16266   --header=FILE[:TEMPLATE]
   16267                    instantiate the configuration header FILE
   16268 
   16269 Configuration files:
   16270 $config_files
   16271 
   16272 Configuration headers:
   16273 $config_headers
   16274 
   16275 Report bugs to <dickey@invisible-island.net>."
   16276 EOF
   16277 
   16278 cat >>$CONFIG_STATUS <<EOF
   16279 ac_cs_version="\\
   16280 config.status
   16281 configured by $0, generated by GNU Autoconf 2.52.20101002,
   16282   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   16283 
   16284 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
   16285 Free Software Foundation, Inc.
   16286 This config.status script is free software; the Free Software Foundation
   16287 gives unlimited permission to copy, distribute and modify it."
   16288 srcdir=$srcdir
   16289 INSTALL="$INSTALL"
   16290 EOF
   16291 
   16292 cat >>$CONFIG_STATUS <<\EOF
   16293 # If no file are specified by the user, then we need to provide default
   16294 # value.  By we need to know if files were specified by the user.
   16295 ac_need_defaults=:
   16296 while test $# != 0
   16297 do
   16298   case $1 in
   16299   --*=*)
   16300     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   16301     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   16302     shift
   16303     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
   16304     shift
   16305     ;;
   16306   -*);;
   16307   *) # This is not an option, so the user has probably given explicit
   16308      # arguments.
   16309      ac_need_defaults=false;;
   16310   esac
   16311 
   16312   case $1 in
   16313   # Handling of the options.
   16314 EOF
   16315 cat >>$CONFIG_STATUS <<EOF
   16316   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   16317     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
   16318     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
   16319 EOF
   16320 cat >>$CONFIG_STATUS <<\EOF
   16321   --version | --vers* | -V )
   16322     echo "$ac_cs_version"; exit 0 ;;
   16323   --he | --h)
   16324     # Conflict between --help and --header
   16325     { { echo "$as_me:16325: error: ambiguous option: $1
   16326 Try \`$0 --help' for more information." >&5
   16327 echo "$as_me: error: ambiguous option: $1
   16328 Try \`$0 --help' for more information." >&2;}
   16329    { (exit 1); exit 1; }; };;
   16330   --help | --hel | -h )
   16331     echo "$ac_cs_usage"; exit 0 ;;
   16332   --debug | --d* | -d )
   16333     debug=: ;;
   16334   --file | --fil | --fi | --f )
   16335     shift
   16336     CONFIG_FILES="$CONFIG_FILES $1"
   16337     ac_need_defaults=false;;
   16338   --header | --heade | --head | --hea )
   16339     shift
   16340     CONFIG_HEADERS="$CONFIG_HEADERS $1"
   16341     ac_need_defaults=false;;
   16342 
   16343   # This is an error.
   16344   -*) { { echo "$as_me:16344: error: unrecognized option: $1
   16345 Try \`$0 --help' for more information." >&5
   16346 echo "$as_me: error: unrecognized option: $1
   16347 Try \`$0 --help' for more information." >&2;}
   16348    { (exit 1); exit 1; }; } ;;
   16349 
   16350   *) ac_config_targets="$ac_config_targets $1" ;;
   16351 
   16352   esac
   16353   shift
   16354 done
   16355 
   16356 exec 5>>config.log
   16357 cat >&5 << _ACEOF
   16358 
   16359 ## ----------------------- ##
   16360 ## Running config.status.  ##
   16361 ## ----------------------- ##
   16362 
   16363 This file was extended by $as_me 2.52.20101002, executed with
   16364   CONFIG_FILES    = $CONFIG_FILES
   16365   CONFIG_HEADERS  = $CONFIG_HEADERS
   16366   CONFIG_LINKS    = $CONFIG_LINKS
   16367   CONFIG_COMMANDS = $CONFIG_COMMANDS
   16368   > $ac_cs_invocation
   16369 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   16370 
   16371 _ACEOF
   16372 EOF
   16373 
   16374 cat >>$CONFIG_STATUS <<\EOF
   16375 for ac_config_target in $ac_config_targets
   16376 do
   16377   case "$ac_config_target" in
   16378   # Handling of arguments.
   16379   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   16380   "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
   16381   *) { { echo "$as_me:16381: error: invalid argument: $ac_config_target" >&5
   16382 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   16383    { (exit 1); exit 1; }; };;
   16384   esac
   16385 done
   16386 
   16387 # If the user did not use the arguments to specify the items to instantiate,
   16388 # then the envvar interface is used.  Set only those that are not.
   16389 # We use the long form for the default assignment because of an extremely
   16390 # bizarre bug on SunOS 4.1.3.
   16391 if $ac_need_defaults; then
   16392   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   16393   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   16394 fi
   16395 
   16396 # Create a temporary directory, and hook for its removal unless debugging.
   16397 $debug ||
   16398 {
   16399   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
   16400   trap '{ (exit 1); exit 1; }' 1 2 13 15
   16401 }
   16402 
   16403 # Create a (secure) tmp directory for tmp files.
   16404 : ${TMPDIR=/tmp}
   16405 {
   16406   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
   16407   test -n "$tmp" && test -d "$tmp"
   16408 }  ||
   16409 {
   16410   tmp=$TMPDIR/cs$$-$RANDOM
   16411   (umask 077 && mkdir $tmp)
   16412 } ||
   16413 {
   16414    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   16415    { (exit 1); exit 1; }
   16416 }
   16417 
   16418 EOF
   16419 
   16420 cat >>$CONFIG_STATUS <<EOF
   16421 
   16422 #
   16423 # CONFIG_FILES section.
   16424 #
   16425 
   16426 # No need to generate the scripts if there are no CONFIG_FILES.
   16427 # This happens for instance when ./config.status config.h
   16428 if test -n "\$CONFIG_FILES"; then
   16429   # Protect against being on the right side of a sed subst in config.status.
   16430   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   16431    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   16432 s,@SHELL@,$SHELL,;t t
   16433 s,@exec_prefix@,$exec_prefix,;t t
   16434 s,@prefix@,$prefix,;t t
   16435 s,@program_transform_name@,$program_transform_name,;t t
   16436 s,@bindir@,$bindir,;t t
   16437 s,@sbindir@,$sbindir,;t t
   16438 s,@libexecdir@,$libexecdir,;t t
   16439 s,@datadir@,$datadir,;t t
   16440 s,@sysconfdir@,$sysconfdir,;t t
   16441 s,@sharedstatedir@,$sharedstatedir,;t t
   16442 s,@localstatedir@,$localstatedir,;t t
   16443 s,@libdir@,$libdir,;t t
   16444 s,@includedir@,$includedir,;t t
   16445 s,@oldincludedir@,$oldincludedir,;t t
   16446 s,@infodir@,$infodir,;t t
   16447 s,@mandir@,$mandir,;t t
   16448 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   16449 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   16450 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   16451 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   16452 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   16453 s,@build_alias@,$build_alias,;t t
   16454 s,@host_alias@,$host_alias,;t t
   16455 s,@target_alias@,$target_alias,;t t
   16456 s,@ECHO_C@,$ECHO_C,;t t
   16457 s,@ECHO_N@,$ECHO_N,;t t
   16458 s,@ECHO_T@,$ECHO_T,;t t
   16459 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   16460 s,@DEFS@,$DEFS,;t t
   16461 s,@LIBS@,$LIBS,;t t
   16462 s,@build@,$build,;t t
   16463 s,@build_cpu@,$build_cpu,;t t
   16464 s,@build_vendor@,$build_vendor,;t t
   16465 s,@build_os@,$build_os,;t t
   16466 s,@host@,$host,;t t
   16467 s,@host_cpu@,$host_cpu,;t t
   16468 s,@host_vendor@,$host_vendor,;t t
   16469 s,@host_os@,$host_os,;t t
   16470 s,@CC@,$CC,;t t
   16471 s,@CFLAGS@,$CFLAGS,;t t
   16472 s,@LDFLAGS@,$LDFLAGS,;t t
   16473 s,@CPPFLAGS@,$CPPFLAGS,;t t
   16474 s,@ac_ct_CC@,$ac_ct_CC,;t t
   16475 s,@EXEEXT@,$EXEEXT,;t t
   16476 s,@OBJEXT@,$OBJEXT,;t t
   16477 s,@CPP@,$CPP,;t t
   16478 s,@AWK@,$AWK,;t t
   16479 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   16480 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   16481 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   16482 s,@LN_S@,$LN_S,;t t
   16483 s,@LINT@,$LINT,;t t
   16484 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
   16485 s,@PROG_EXT@,$PROG_EXT,;t t
   16486 s,@appsdir@,$appsdir,;t t
   16487 s,@no_appsdir@,$no_appsdir,;t t
   16488 s,@icondir@,$icondir,;t t
   16489 s,@no_icondir@,$no_icondir,;t t
   16490 s,@desktop_utils@,$desktop_utils,;t t
   16491 s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t
   16492 s,@XTERM_PATH@,$XTERM_PATH,;t t
   16493 s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t
   16494 s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t
   16495 s,@X_CFLAGS@,$X_CFLAGS,;t t
   16496 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
   16497 s,@X_LIBS@,$X_LIBS,;t t
   16498 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
   16499 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
   16500 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
   16501 s,@IMAKE@,$IMAKE,;t t
   16502 s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t
   16503 s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t
   16504 s,@cf_tic_prog@,$cf_tic_prog,;t t
   16505 s,@no_ticprog@,$no_ticprog,;t t
   16506 s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t
   16507 s,@SET_TERMINFO@,$SET_TERMINFO,;t t
   16508 s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t
   16509 s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t
   16510 s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t
   16511 s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t
   16512 s,@LUIT@,$LUIT,;t t
   16513 s,@ECHO_LT@,$ECHO_LT,;t t
   16514 s,@ECHO_LD@,$ECHO_LD,;t t
   16515 s,@RULE_CC@,$RULE_CC,;t t
   16516 s,@SHOW_CC@,$SHOW_CC,;t t
   16517 s,@ECHO_CC@,$ECHO_CC,;t t
   16518 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
   16519 s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t
   16520 s,@EXTRAHDRS@,$EXTRAHDRS,;t t
   16521 s,@EXTRASRCS@,$EXTRASRCS,;t t
   16522 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
   16523 s,@MAY_SETUID@,$MAY_SETUID,;t t
   16524 s,@NOT_SETUID@,$NOT_SETUID,;t t
   16525 s,@CTAGS@,$CTAGS,;t t
   16526 s,@ETAGS@,$ETAGS,;t t
   16527 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
   16528 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
   16529 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
   16530 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
   16531 CEOF
   16532 
   16533 EOF
   16534 
   16535   cat >>$CONFIG_STATUS <<\EOF
   16536   # Split the substitutions into bite-sized pieces for seds with
   16537   # small command number limits, like on Digital OSF/1 and HP-UX.
   16538   ac_max_sed_lines=48
   16539   ac_sed_frag=1 # Number of current file.
   16540   ac_beg=1 # First line for current file.
   16541   ac_end=$ac_max_sed_lines # Line after last line for current file.
   16542   ac_more_lines=:
   16543   ac_sed_cmds=
   16544   while $ac_more_lines; do
   16545     if test $ac_beg -gt 1; then
   16546       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   16547     else
   16548       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   16549     fi
   16550     if test ! -s $tmp/subs.frag; then
   16551       ac_more_lines=false
   16552     else
   16553       # The purpose of the label and of the branching condition is to
   16554       # speed up the sed processing (if there are no `@' at all, there
   16555       # is no need to browse any of the substitutions).
   16556       # These are the two extra sed commands mentioned above.
   16557       (echo ':t
   16558   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   16559       if test -z "$ac_sed_cmds"; then
   16560   	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   16561       else
   16562   	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   16563       fi
   16564       ac_sed_frag=`expr $ac_sed_frag + 1`
   16565       ac_beg=$ac_end
   16566       ac_end=`expr $ac_end + $ac_max_sed_lines`
   16567     fi
   16568   done
   16569   if test -z "$ac_sed_cmds"; then
   16570     ac_sed_cmds=cat
   16571   fi
   16572 fi # test -n "$CONFIG_FILES"
   16573 
   16574 EOF
   16575 cat >>$CONFIG_STATUS <<\EOF
   16576 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   16577   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   16578   case $ac_file in
   16579   - | *:- | *:-:* ) # input from stdin
   16580         cat >$tmp/stdin
   16581         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   16582         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   16583   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   16584         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   16585   * )   ac_file_in=$ac_file.in ;;
   16586   esac
   16587 
   16588   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   16589   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   16590          X"$ac_file" : 'X\(//\)[^/]' \| \
   16591          X"$ac_file" : 'X\(//\)$' \| \
   16592          X"$ac_file" : 'X\(/\)' \| \
   16593          .     : '\(.\)' 2>/dev/null ||
   16594 echo X"$ac_file" |
   16595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   16596   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   16597   	  /^X\(\/\/\)$/{ s//\1/; q; }
   16598   	  /^X\(\/\).*/{ s//\1/; q; }
   16599   	  s/.*/./; q'`
   16600   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   16601     { case "$ac_dir" in
   16602   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   16603   *)                      as_incr_dir=.;;
   16604 esac
   16605 as_dummy="$ac_dir"
   16606 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   16607   case $as_mkdir_dir in
   16608     # Skip DOS drivespec
   16609     ?:) as_incr_dir=$as_mkdir_dir ;;
   16610     *)
   16611       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   16612       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   16613     ;;
   16614   esac
   16615 done; }
   16616 
   16617     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
   16618     # A "../" for each directory in $ac_dir_suffix.
   16619     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
   16620   else
   16621     ac_dir_suffix= ac_dots=
   16622   fi
   16623 
   16624   case $srcdir in
   16625   .)  ac_srcdir=.
   16626       if test -z "$ac_dots"; then
   16627          ac_top_srcdir=.
   16628       else
   16629          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
   16630       fi ;;
   16631   [\\/]* | ?:[\\/]* )
   16632       ac_srcdir=$srcdir$ac_dir_suffix;
   16633       ac_top_srcdir=$srcdir ;;
   16634   *) # Relative path.
   16635     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
   16636     ac_top_srcdir=$ac_dots$srcdir ;;
   16637   esac
   16638 
   16639   case $INSTALL in
   16640   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   16641   *) ac_INSTALL=$ac_dots$INSTALL ;;
   16642   esac
   16643 
   16644   if test x"$ac_file" != x-; then
   16645     { echo "$as_me:16645: creating $ac_file" >&5
   16646 echo "$as_me: creating $ac_file" >&6;}
   16647     rm -f "$ac_file"
   16648   fi
   16649   # Let's still pretend it is `configure' which instantiates (i.e., don't
   16650   # use $as_me), people would be surprised to read:
   16651   #    /* config.h.  Generated automatically by config.status.  */
   16652   configure_input="Generated automatically from `echo $ac_file_in |
   16653                                                  sed 's,.*/,,'` by configure."
   16654 
   16655   # First look for the input files in the build tree, otherwise in the
   16656   # src tree.
   16657   ac_file_inputs=`IFS=:
   16658     for f in $ac_file_in; do
   16659       case $f in
   16660       -) echo $tmp/stdin ;;
   16661       [\\/$]*)
   16662          # Absolute (can't be DOS-style, as IFS=:)
   16663          test -f "$f" || { { echo "$as_me:16663: error: cannot find input file: $f" >&5
   16664 echo "$as_me: error: cannot find input file: $f" >&2;}
   16665    { (exit 1); exit 1; }; }
   16666          echo $f;;
   16667       *) # Relative
   16668          if test -f "$f"; then
   16669            # Build tree
   16670            echo $f
   16671          elif test -f "$srcdir/$f"; then
   16672            # Source tree
   16673            echo $srcdir/$f
   16674          else
   16675            # /dev/null tree
   16676            { { echo "$as_me:16676: error: cannot find input file: $f" >&5
   16677 echo "$as_me: error: cannot find input file: $f" >&2;}
   16678    { (exit 1); exit 1; }; }
   16679          fi;;
   16680       esac
   16681     done` || { (exit 1); exit 1; }
   16682 EOF
   16683 cat >>$CONFIG_STATUS <<EOF
   16684   sed "$ac_vpsub
   16685 $extrasub
   16686 EOF
   16687 cat >>$CONFIG_STATUS <<\EOF
   16688 :t
   16689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   16690 s,@configure_input@,$configure_input,;t t
   16691 s,@srcdir@,$ac_srcdir,;t t
   16692 s,@top_srcdir@,$ac_top_srcdir,;t t
   16693 s,@INSTALL@,$ac_INSTALL,;t t
   16694 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   16695   rm -f $tmp/stdin
   16696   if test x"$ac_file" != x-; then
   16697     mv $tmp/out $ac_file
   16698   else
   16699     cat $tmp/out
   16700     rm -f $tmp/out
   16701   fi
   16702 
   16703 done
   16704 EOF
   16705 cat >>$CONFIG_STATUS <<\EOF
   16706 
   16707 #
   16708 # CONFIG_HEADER section.
   16709 #
   16710 
   16711 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   16712 # NAME is the cpp macro being defined and VALUE is the value it is being given.
   16713 #
   16714 # ac_d sets the value in "#define NAME VALUE" lines.
   16715 ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
   16716 ac_dB='[ 	].*$,\1#\2'
   16717 ac_dC=' '
   16718 ac_dD=',;t'
   16719 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
   16720 ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   16721 ac_iB='\([ 	]\),\1#\2define\3'
   16722 ac_iC=' '
   16723 ac_iD='\4,;t'
   16724 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   16725 ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   16726 ac_uB='$,\1#\2define\3'
   16727 ac_uC=' '
   16728 ac_uD=',;t'
   16729 
   16730 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   16731   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   16732   case $ac_file in
   16733   - | *:- | *:-:* ) # input from stdin
   16734         cat >$tmp/stdin
   16735         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   16736         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   16737   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   16738         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   16739   * )   ac_file_in=$ac_file.in ;;
   16740   esac
   16741 
   16742   test x"$ac_file" != x- && { echo "$as_me:16742: creating $ac_file" >&5
   16743 echo "$as_me: creating $ac_file" >&6;}
   16744 
   16745   # First look for the input files in the build tree, otherwise in the
   16746   # src tree.
   16747   ac_file_inputs=`IFS=:
   16748     for f in $ac_file_in; do
   16749       case $f in
   16750       -) echo $tmp/stdin ;;
   16751       [\\/$]*)
   16752          # Absolute (can't be DOS-style, as IFS=:)
   16753          test -f "$f" || { { echo "$as_me:16753: error: cannot find input file: $f" >&5
   16754 echo "$as_me: error: cannot find input file: $f" >&2;}
   16755    { (exit 1); exit 1; }; }
   16756          echo $f;;
   16757       *) # Relative
   16758          if test -f "$f"; then
   16759            # Build tree
   16760            echo $f
   16761          elif test -f "$srcdir/$f"; then
   16762            # Source tree
   16763            echo $srcdir/$f
   16764          else
   16765            # /dev/null tree
   16766            { { echo "$as_me:16766: error: cannot find input file: $f" >&5
   16767 echo "$as_me: error: cannot find input file: $f" >&2;}
   16768    { (exit 1); exit 1; }; }
   16769          fi;;
   16770       esac
   16771     done` || { (exit 1); exit 1; }
   16772   # Remove the trailing spaces.
   16773   sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
   16774 
   16775 EOF
   16776 
   16777 # Transform confdefs.h into two sed scripts, `conftest.defines' and
   16778 # `conftest.undefs', that substitutes the proper values into
   16779 # config.h.in to produce config.h.  The first handles `#define'
   16780 # templates, and the second `#undef' templates.
   16781 # And first: Protect against being on the right side of a sed subst in
   16782 # config.status.  Protect against being in an unquoted here document
   16783 # in config.status.
   16784 rm -f conftest.defines conftest.undefs
   16785 # Using a here document instead of a string reduces the quoting nightmare.
   16786 # Putting comments in sed scripts is not portable.
   16787 #
   16788 # `end' is used to avoid that the second main sed command (meant for
   16789 # 0-ary CPP macros) applies to n-ary macro definitions.
   16790 # See the Autoconf documentation for `clear'.
   16791 cat >confdef2sed.sed <<\EOF
   16792 s/[\\&,]/\\&/g
   16793 s,[\\$`],\\&,g
   16794 t clear
   16795 : clear
   16796 s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
   16797 t end
   16798 s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   16799 : end
   16800 EOF
   16801 # If some macros were called several times there might be several times
   16802 # the same #defines, which is useless.  Nevertheless, we may not want to
   16803 # sort them, since we want the *last* AC-DEFINE to be honored.
   16804 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   16805 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   16806 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
   16807 rm -f confdef2sed.sed
   16808 
   16809 # This sed command replaces #undef with comments.  This is necessary, for
   16810 # example, in the case of _POSIX_SOURCE, which is predefined and required
   16811 # on some systems where configure will not decide to define it.
   16812 cat >>conftest.undefs <<\EOF
   16813 s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   16814 EOF
   16815 
   16816 # Break up conftest.defines because some shells have a limit on the size
   16817 # of here documents, and old seds have small limits too (100 cmds).
   16818 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
   16819 echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
   16820 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
   16821 echo '  :' >>$CONFIG_STATUS
   16822 rm -f conftest.tail
   16823 while grep . conftest.defines >/dev/null
   16824 do
   16825   # Write a limited-size here document to $tmp/defines.sed.
   16826   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
   16827   # Speed up: don't consider the non `#define' lines.
   16828   echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
   16829   # Work around the forget-to-reset-the-flag bug.
   16830   echo 't clr' >>$CONFIG_STATUS
   16831   echo ': clr' >>$CONFIG_STATUS
   16832   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   16833   echo 'CEOF
   16834   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   16835   rm -f $tmp/in
   16836   mv $tmp/out $tmp/in
   16837 ' >>$CONFIG_STATUS
   16838   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
   16839   rm -f conftest.defines
   16840   mv conftest.tail conftest.defines
   16841 done
   16842 rm -f conftest.defines
   16843 echo '  fi # egrep' >>$CONFIG_STATUS
   16844 echo >>$CONFIG_STATUS
   16845 
   16846 # Break up conftest.undefs because some shells have a limit on the size
   16847 # of here documents, and old seds have small limits too (100 cmds).
   16848 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
   16849 rm -f conftest.tail
   16850 while grep . conftest.undefs >/dev/null
   16851 do
   16852   # Write a limited-size here document to $tmp/undefs.sed.
   16853   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
   16854   # Speed up: don't consider the non `#undef'
   16855   echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
   16856   # Work around the forget-to-reset-the-flag bug.
   16857   echo 't clr' >>$CONFIG_STATUS
   16858   echo ': clr' >>$CONFIG_STATUS
   16859   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
   16860   echo 'CEOF
   16861   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   16862   rm -f $tmp/in
   16863   mv $tmp/out $tmp/in
   16864 ' >>$CONFIG_STATUS
   16865   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
   16866   rm -f conftest.undefs
   16867   mv conftest.tail conftest.undefs
   16868 done
   16869 rm -f conftest.undefs
   16870 
   16871 cat >>$CONFIG_STATUS <<\EOF
   16872   # Let's still pretend it is `configure' which instantiates (i.e., don't
   16873   # use $as_me), people would be surprised to read:
   16874   #    /* config.h.  Generated automatically by config.status.  */
   16875   if test x"$ac_file" = x-; then
   16876     echo "/* Generated automatically by configure.  */" >$tmp/config.h
   16877   else
   16878     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
   16879   fi
   16880   cat $tmp/in >>$tmp/config.h
   16881   rm -f $tmp/in
   16882   if test x"$ac_file" != x-; then
   16883     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
   16884       { echo "$as_me:16884: $ac_file is unchanged" >&5
   16885 echo "$as_me: $ac_file is unchanged" >&6;}
   16886     else
   16887       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   16888          X"$ac_file" : 'X\(//\)[^/]' \| \
   16889          X"$ac_file" : 'X\(//\)$' \| \
   16890          X"$ac_file" : 'X\(/\)' \| \
   16891          .     : '\(.\)' 2>/dev/null ||
   16892 echo X"$ac_file" |
   16893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   16894   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   16895   	  /^X\(\/\/\)$/{ s//\1/; q; }
   16896   	  /^X\(\/\).*/{ s//\1/; q; }
   16897   	  s/.*/./; q'`
   16898       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   16899         { case "$ac_dir" in
   16900   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
   16901   *)                      as_incr_dir=.;;
   16902 esac
   16903 as_dummy="$ac_dir"
   16904 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
   16905   case $as_mkdir_dir in
   16906     # Skip DOS drivespec
   16907     ?:) as_incr_dir=$as_mkdir_dir ;;
   16908     *)
   16909       as_incr_dir=$as_incr_dir/$as_mkdir_dir
   16910       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
   16911     ;;
   16912   esac
   16913 done; }
   16914 
   16915       fi
   16916       rm -f $ac_file
   16917       mv $tmp/config.h $ac_file
   16918     fi
   16919   else
   16920     cat $tmp/config.h
   16921     rm -f $tmp/config.h
   16922   fi
   16923 done
   16924 EOF
   16925 
   16926 cat >>$CONFIG_STATUS <<\EOF
   16927 
   16928 { (exit 0); exit 0; }
   16929 EOF
   16930 chmod +x $CONFIG_STATUS
   16931 ac_clean_files=$ac_clean_files_save
   16932 
   16933 # configure is writing to config.log, and then calls config.status.
   16934 # config.status does its own redirection, appending to config.log.
   16935 # Unfortunately, on DOS this fails, as config.log is still kept open
   16936 # by configure, so config.status won't be able to write to it; its
   16937 # output is simply discarded.  So we exec the FD to /dev/null,
   16938 # effectively closing config.log, so it can be properly (re)opened and
   16939 # appended to by config.status.  When coming back to configure, we
   16940 # need to make the FD available again.
   16941 if test "$no_create" != yes; then
   16942   ac_cs_success=:
   16943   exec 5>/dev/null
   16944   $SHELL $CONFIG_STATUS || ac_cs_success=false
   16945   exec 5>>config.log
   16946   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   16947   # would make configure fail if this is the last instruction.
   16948   $ac_cs_success || { (exit 1); exit 1; }
   16949 fi
   16950 
   16951