xref: /vim-8.2.3635/src/auto/configure (revision 910f66f9)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="vim.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK STRIP CPP_MM OS_EXTRA_SRC OS_EXTRA_OBJ VIMNAME EXNAME VIEWNAME line_break dovimdiff dogvimdiff compiledby vi_cv_path_mzscheme MZSCHEME_SRC MZSCHEME_OBJ MZSCHEME_PRO MZSCHEME_LIBS MZSCHEME_CFLAGS vi_cv_path_perl vi_cv_perllib shrpenv PERL_SRC PERL_OBJ PERL_PRO PERL_CFLAGS PERL_LIBS vi_cv_path_python PYTHON_CONFDIR PYTHON_LIBS PYTHON_GETPATH_CFLAGS PYTHON_CFLAGS PYTHON_SRC PYTHON_OBJ vi_cv_path_tcl TCL_SRC TCL_OBJ TCL_PRO TCL_CFLAGS TCL_LIBS vi_cv_path_ruby RUBY_SRC RUBY_OBJ RUBY_PRO RUBY_CFLAGS RUBY_LIBS WORKSHOP_SRC WORKSHOP_OBJ NETBEANS_SRC NETBEANS_OBJ SNIFF_SRC SNIFF_OBJ xmkmfpath X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIB GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG INSTALL_LANGS INSTALL_TOOL_LANGS MSGFMT MAKEMO DEPEND_CFLAGS_FILTER LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834X features:
835  --x-includes=DIR    X include files are in DIR
836  --x-libraries=DIR   X library files are in DIR
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842  cat <<\_ACEOF
843
844Optional Features:
845  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847  --disable-darwin        Disable Darwin (Mac OS X) support.
848  --disable-xsmp          Disable XSMP session management
849  --disable-xsmp-interact Disable XSMP interaction
850  --enable-mzschemeinterp   Include MzScheme interpreter.
851  --enable-perlinterp     Include Perl interpreter.
852  --enable-pythoninterp   Include Python interpreter.
853  --enable-tclinterp      Include Tcl interpreter.
854  --enable-rubyinterp     Include Ruby interpreter.
855  --enable-cscope         Include cscope interface.
856  --enable-workshop       Include Sun Visual Workshop support.
857  --disable-netbeans      Disable NetBeans integration support.
858  --enable-sniff          Include Sniff interface.
859  --enable-multibyte      Include multibyte editing support.
860  --enable-hangulinput    Include Hangul input support.
861  --enable-xim            Include XIM input support.
862  --enable-fontset        Include X fontset output support.
863  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
864  --enable-gtk-check      If auto-select GUI, check for GTK default=yes
865  --enable-gtk2-check     If GTK GUI, check for GTK+ 2 default=yes
866  --enable-gnome-check    If GTK GUI, check for GNOME default=no
867  --enable-motif-check    If auto-select GUI, check for Motif default=yes
868  --enable-athena-check   If auto-select GUI, check for Athena default=yes
869  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
870  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
871  --disable-gtktest       Do not try to compile and run a test GTK program
872  --disable-acl           Don't check for ACL support.
873  --disable-gpm           Don't use gpm (Linux mouse daemon).
874  --disable-nls           Don't support NLS (gettext()).
875
876Optional Packages:
877  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879  --with-mac-arch=ARCH    current, intel, ppc or both
880  --with-vim-name=NAME    what to call the Vim executable
881  --with-ex-name=NAME     what to call the Ex executable
882  --with-view-name=NAME   what to call the View executable
883  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
884  --with-modified-by=NAME       name of who modified a release version
885  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
886  --with-compiledby=NAME  name to show in :version message
887  --with-plthome=PLTHOME   Use PLTHOME.
888  --with-python-config-dir=PATH  Python's config directory
889  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
890  --with-x                use the X Window System
891  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
892  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
893  --with-gnome-includes=DIR Specify location of GNOME headers
894  --with-gnome-libs=DIR   Specify location of GNOME libs
895  --with-gnome            Specify prefix for GNOME files
896  --with-motif-lib=STRING   Library for Motif
897  --with-tlib=library     terminal library to be used
898
899Some influential environment variables:
900  CC          C compiler command
901  CFLAGS      C compiler flags
902  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
903              nonstandard directory <lib dir>
904  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
905              headers in a nonstandard directory <include dir>
906  CPP         C preprocessor
907
908Use these variables to override the choices made by `configure' or to help
909it to find libraries and programs with nonstandard names/locations.
910
911_ACEOF
912fi
913
914if test "$ac_init_help" = "recursive"; then
915  # If there are subdirs, report their specific --help.
916  ac_popdir=`pwd`
917  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918    test -d $ac_dir || continue
919    ac_builddir=.
920
921if test "$ac_dir" != .; then
922  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923  # A "../" for each directory in $ac_dir_suffix.
924  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925else
926  ac_dir_suffix= ac_top_builddir=
927fi
928
929case $srcdir in
930  .)  # No --srcdir option.  We are building in place.
931    ac_srcdir=.
932    if test -z "$ac_top_builddir"; then
933       ac_top_srcdir=.
934    else
935       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936    fi ;;
937  [\\/]* | ?:[\\/]* )  # Absolute path.
938    ac_srcdir=$srcdir$ac_dir_suffix;
939    ac_top_srcdir=$srcdir ;;
940  *) # Relative path.
941    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942    ac_top_srcdir=$ac_top_builddir$srcdir ;;
943esac
944
945# Do not use `cd foo && pwd` to compute absolute paths, because
946# the directories may not exist.
947case `pwd` in
948.) ac_abs_builddir="$ac_dir";;
949*)
950  case "$ac_dir" in
951  .) ac_abs_builddir=`pwd`;;
952  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
953  *) ac_abs_builddir=`pwd`/"$ac_dir";;
954  esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_builddir=${ac_top_builddir}.;;
958*)
959  case ${ac_top_builddir}. in
960  .) ac_abs_top_builddir=$ac_abs_builddir;;
961  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
962  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
963  esac;;
964esac
965case $ac_abs_builddir in
966.) ac_abs_srcdir=$ac_srcdir;;
967*)
968  case $ac_srcdir in
969  .) ac_abs_srcdir=$ac_abs_builddir;;
970  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
971  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
972  esac;;
973esac
974case $ac_abs_builddir in
975.) ac_abs_top_srcdir=$ac_top_srcdir;;
976*)
977  case $ac_top_srcdir in
978  .) ac_abs_top_srcdir=$ac_abs_builddir;;
979  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
980  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
981  esac;;
982esac
983
984    cd $ac_dir
985    # Check for guested configure; otherwise get Cygnus style configure.
986    if test -f $ac_srcdir/configure.gnu; then
987      echo
988      $SHELL $ac_srcdir/configure.gnu  --help=recursive
989    elif test -f $ac_srcdir/configure; then
990      echo
991      $SHELL $ac_srcdir/configure  --help=recursive
992    elif test -f $ac_srcdir/configure.ac ||
993	   test -f $ac_srcdir/configure.in; then
994      echo
995      $ac_configure --help
996    else
997      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998    fi
999    cd $ac_popdir
1000  done
1001fi
1002
1003test -n "$ac_init_help" && exit 0
1004if $ac_init_version; then
1005  cat <<\_ACEOF
1006
1007Copyright (C) 2003 Free Software Foundation, Inc.
1008This configure script is free software; the Free Software Foundation
1009gives unlimited permission to copy, distribute and modify it.
1010_ACEOF
1011  exit 0
1012fi
1013exec 5>auto/config.log
1014cat >&5 <<_ACEOF
1015This file contains any messages produced by compilers while
1016running configure, to aid debugging if configure makes a mistake.
1017
1018It was created by $as_me, which was
1019generated by GNU Autoconf 2.59.  Invocation command line was
1020
1021  $ $0 $@
1022
1023_ACEOF
1024{
1025cat <<_ASUNAME
1026## --------- ##
1027## Platform. ##
1028## --------- ##
1029
1030hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035
1036/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1038
1039/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1040/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1041/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1043/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1044/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1045/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1046
1047_ASUNAME
1048
1049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050for as_dir in $PATH
1051do
1052  IFS=$as_save_IFS
1053  test -z "$as_dir" && as_dir=.
1054  echo "PATH: $as_dir"
1055done
1056
1057} >&5
1058
1059cat >&5 <<_ACEOF
1060
1061
1062## ----------- ##
1063## Core tests. ##
1064## ----------- ##
1065
1066_ACEOF
1067
1068
1069# Keep a trace of the command line.
1070# Strip out --no-create and --no-recursion so they do not pile up.
1071# Strip out --silent because we don't want to record it for future runs.
1072# Also quote any args containing shell meta-characters.
1073# Make two passes to allow for proper duplicate-argument suppression.
1074ac_configure_args=
1075ac_configure_args0=
1076ac_configure_args1=
1077ac_sep=
1078ac_must_keep_next=false
1079for ac_pass in 1 2
1080do
1081  for ac_arg
1082  do
1083    case $ac_arg in
1084    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086    | -silent | --silent | --silen | --sile | --sil)
1087      continue ;;
1088    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090    esac
1091    case $ac_pass in
1092    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093    2)
1094      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095      if test $ac_must_keep_next = true; then
1096	ac_must_keep_next=false # Got value, back to normal.
1097      else
1098	case $ac_arg in
1099	  *=* | --config-cache | -C | -disable-* | --disable-* \
1100	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102	  | -with-* | --with-* | -without-* | --without-* | --x)
1103	    case "$ac_configure_args0 " in
1104	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105	    esac
1106	    ;;
1107	  -* ) ac_must_keep_next=true ;;
1108	esac
1109      fi
1110      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111      # Get rid of the leading space.
1112      ac_sep=" "
1113      ;;
1114    esac
1115  done
1116done
1117$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119
1120# When interrupted or exit'd, cleanup temporary files, and complete
1121# config.log.  We remove comments because anyway the quotes in there
1122# would cause problems or look ugly.
1123# WARNING: Be sure not to use single quotes in there, as some shells,
1124# such as our DU 5.0 friend, will then `close' the trap.
1125trap 'exit_status=$?
1126  # Save into config.log some information that might help in debugging.
1127  {
1128    echo
1129
1130    cat <<\_ASBOX
1131## ---------------- ##
1132## Cache variables. ##
1133## ---------------- ##
1134_ASBOX
1135    echo
1136    # The following way of writing the cache mishandles newlines in values,
1137{
1138  (set) 2>&1 |
1139    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140    *ac_space=\ *)
1141      sed -n \
1142	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144      ;;
1145    *)
1146      sed -n \
1147	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148      ;;
1149    esac;
1150}
1151    echo
1152
1153    cat <<\_ASBOX
1154## ----------------- ##
1155## Output variables. ##
1156## ----------------- ##
1157_ASBOX
1158    echo
1159    for ac_var in $ac_subst_vars
1160    do
1161      eval ac_val=$`echo $ac_var`
1162      echo "$ac_var='"'"'$ac_val'"'"'"
1163    done | sort
1164    echo
1165
1166    if test -n "$ac_subst_files"; then
1167      cat <<\_ASBOX
1168## ------------- ##
1169## Output files. ##
1170## ------------- ##
1171_ASBOX
1172      echo
1173      for ac_var in $ac_subst_files
1174      do
1175	eval ac_val=$`echo $ac_var`
1176	echo "$ac_var='"'"'$ac_val'"'"'"
1177      done | sort
1178      echo
1179    fi
1180
1181    if test -s confdefs.h; then
1182      cat <<\_ASBOX
1183## ----------- ##
1184## confdefs.h. ##
1185## ----------- ##
1186_ASBOX
1187      echo
1188      sed "/^$/d" confdefs.h | sort
1189      echo
1190    fi
1191    test "$ac_signal" != 0 &&
1192      echo "$as_me: caught signal $ac_signal"
1193    echo "$as_me: exit $exit_status"
1194  } >&5
1195  rm -f core *.core &&
1196  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197    exit $exit_status
1198     ' 0
1199for ac_signal in 1 2 13 15; do
1200  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201done
1202ac_signal=0
1203
1204# confdefs.h avoids OS command line length limits that DEFS can exceed.
1205rm -rf conftest* confdefs.h
1206# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207echo >confdefs.h
1208
1209# Predefined preprocessor variables.
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_NAME "$PACKAGE_NAME"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_VERSION "$PACKAGE_VERSION"
1223_ACEOF
1224
1225
1226cat >>confdefs.h <<_ACEOF
1227#define PACKAGE_STRING "$PACKAGE_STRING"
1228_ACEOF
1229
1230
1231cat >>confdefs.h <<_ACEOF
1232#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233_ACEOF
1234
1235
1236# Let the site file select an alternate cache file if it wants to.
1237# Prefer explicitly selected file to automatically selected ones.
1238if test -z "$CONFIG_SITE"; then
1239  if test "x$prefix" != xNONE; then
1240    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241  else
1242    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243  fi
1244fi
1245for ac_site_file in $CONFIG_SITE; do
1246  if test -r "$ac_site_file"; then
1247    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248echo "$as_me: loading site script $ac_site_file" >&6;}
1249    sed 's/^/| /' "$ac_site_file" >&5
1250    . "$ac_site_file"
1251  fi
1252done
1253
1254if test -r "$cache_file"; then
1255  # Some versions of bash will fail to source /dev/null (special
1256  # files actually), so we avoid doing that.
1257  if test -f "$cache_file"; then
1258    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259echo "$as_me: loading cache $cache_file" >&6;}
1260    case $cache_file in
1261      [\\/]* | ?:[\\/]* ) . $cache_file;;
1262      *)                      . ./$cache_file;;
1263    esac
1264  fi
1265else
1266  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267echo "$as_me: creating cache $cache_file" >&6;}
1268  >$cache_file
1269fi
1270
1271# Check that the precious variables saved in the cache have kept the same
1272# value.
1273ac_cache_corrupted=false
1274for ac_var in `(set) 2>&1 |
1275	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277  eval ac_new_set=\$ac_env_${ac_var}_set
1278  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279  eval ac_new_val="\$ac_env_${ac_var}_value"
1280  case $ac_old_set,$ac_new_set in
1281    set,)
1282      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284      ac_cache_corrupted=: ;;
1285    ,set)
1286      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288      ac_cache_corrupted=: ;;
1289    ,);;
1290    *)
1291      if test "x$ac_old_val" != "x$ac_new_val"; then
1292	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1295echo "$as_me:   former value:  $ac_old_val" >&2;}
1296	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1297echo "$as_me:   current value: $ac_new_val" >&2;}
1298	ac_cache_corrupted=:
1299      fi;;
1300  esac
1301  # Pass precious variables to config.status.
1302  if test "$ac_new_set" = set; then
1303    case $ac_new_val in
1304    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306    *) ac_arg=$ac_var=$ac_new_val ;;
1307    esac
1308    case " $ac_configure_args " in
1309      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1310      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311    esac
1312  fi
1313done
1314if $ac_cache_corrupted; then
1315  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319   { (exit 1); exit 1; }; }
1320fi
1321
1322ac_ext=c
1323ac_cpp='$CPP $CPPFLAGS'
1324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346          ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1347
1348
1349cat >>confdefs.h <<\_ACEOF
1350#define UNIX 1
1351_ACEOF
1352
1353echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1354echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1355set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1356if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1357  echo $ECHO_N "(cached) $ECHO_C" >&6
1358else
1359  cat >conftest.make <<\_ACEOF
1360all:
1361	@echo 'ac_maketemp="$(MAKE)"'
1362_ACEOF
1363# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1364eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1365if test -n "$ac_maketemp"; then
1366  eval ac_cv_prog_make_${ac_make}_set=yes
1367else
1368  eval ac_cv_prog_make_${ac_make}_set=no
1369fi
1370rm -f conftest.make
1371fi
1372if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1373  echo "$as_me:$LINENO: result: yes" >&5
1374echo "${ECHO_T}yes" >&6
1375  SET_MAKE=
1376else
1377  echo "$as_me:$LINENO: result: no" >&5
1378echo "${ECHO_T}no" >&6
1379  SET_MAKE="MAKE=${MAKE-make}"
1380fi
1381
1382
1383ac_ext=c
1384ac_cpp='$CPP $CPPFLAGS'
1385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1387ac_compiler_gnu=$ac_cv_c_compiler_gnu
1388if test -n "$ac_tool_prefix"; then
1389  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1390set dummy ${ac_tool_prefix}gcc; ac_word=$2
1391echo "$as_me:$LINENO: checking for $ac_word" >&5
1392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393if test "${ac_cv_prog_CC+set}" = set; then
1394  echo $ECHO_N "(cached) $ECHO_C" >&6
1395else
1396  if test -n "$CC"; then
1397  ac_cv_prog_CC="$CC" # Let the user override the test.
1398else
1399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400for as_dir in $PATH
1401do
1402  IFS=$as_save_IFS
1403  test -z "$as_dir" && as_dir=.
1404  for ac_exec_ext in '' $ac_executable_extensions; do
1405  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1406    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408    break 2
1409  fi
1410done
1411done
1412
1413fi
1414fi
1415CC=$ac_cv_prog_CC
1416if test -n "$CC"; then
1417  echo "$as_me:$LINENO: result: $CC" >&5
1418echo "${ECHO_T}$CC" >&6
1419else
1420  echo "$as_me:$LINENO: result: no" >&5
1421echo "${ECHO_T}no" >&6
1422fi
1423
1424fi
1425if test -z "$ac_cv_prog_CC"; then
1426  ac_ct_CC=$CC
1427  # Extract the first word of "gcc", so it can be a program name with args.
1428set dummy gcc; ac_word=$2
1429echo "$as_me:$LINENO: checking for $ac_word" >&5
1430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1432  echo $ECHO_N "(cached) $ECHO_C" >&6
1433else
1434  if test -n "$ac_ct_CC"; then
1435  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1436else
1437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438for as_dir in $PATH
1439do
1440  IFS=$as_save_IFS
1441  test -z "$as_dir" && as_dir=.
1442  for ac_exec_ext in '' $ac_executable_extensions; do
1443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444    ac_cv_prog_ac_ct_CC="gcc"
1445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446    break 2
1447  fi
1448done
1449done
1450
1451fi
1452fi
1453ac_ct_CC=$ac_cv_prog_ac_ct_CC
1454if test -n "$ac_ct_CC"; then
1455  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1456echo "${ECHO_T}$ac_ct_CC" >&6
1457else
1458  echo "$as_me:$LINENO: result: no" >&5
1459echo "${ECHO_T}no" >&6
1460fi
1461
1462  CC=$ac_ct_CC
1463else
1464  CC="$ac_cv_prog_CC"
1465fi
1466
1467if test -z "$CC"; then
1468  if test -n "$ac_tool_prefix"; then
1469  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1470set dummy ${ac_tool_prefix}cc; ac_word=$2
1471echo "$as_me:$LINENO: checking for $ac_word" >&5
1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473if test "${ac_cv_prog_CC+set}" = set; then
1474  echo $ECHO_N "(cached) $ECHO_C" >&6
1475else
1476  if test -n "$CC"; then
1477  ac_cv_prog_CC="$CC" # Let the user override the test.
1478else
1479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480for as_dir in $PATH
1481do
1482  IFS=$as_save_IFS
1483  test -z "$as_dir" && as_dir=.
1484  for ac_exec_ext in '' $ac_executable_extensions; do
1485  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486    ac_cv_prog_CC="${ac_tool_prefix}cc"
1487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488    break 2
1489  fi
1490done
1491done
1492
1493fi
1494fi
1495CC=$ac_cv_prog_CC
1496if test -n "$CC"; then
1497  echo "$as_me:$LINENO: result: $CC" >&5
1498echo "${ECHO_T}$CC" >&6
1499else
1500  echo "$as_me:$LINENO: result: no" >&5
1501echo "${ECHO_T}no" >&6
1502fi
1503
1504fi
1505if test -z "$ac_cv_prog_CC"; then
1506  ac_ct_CC=$CC
1507  # Extract the first word of "cc", so it can be a program name with args.
1508set dummy cc; ac_word=$2
1509echo "$as_me:$LINENO: checking for $ac_word" >&5
1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512  echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514  if test -n "$ac_ct_CC"; then
1515  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516else
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520  IFS=$as_save_IFS
1521  test -z "$as_dir" && as_dir=.
1522  for ac_exec_ext in '' $ac_executable_extensions; do
1523  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524    ac_cv_prog_ac_ct_CC="cc"
1525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526    break 2
1527  fi
1528done
1529done
1530
1531fi
1532fi
1533ac_ct_CC=$ac_cv_prog_ac_ct_CC
1534if test -n "$ac_ct_CC"; then
1535  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1536echo "${ECHO_T}$ac_ct_CC" >&6
1537else
1538  echo "$as_me:$LINENO: result: no" >&5
1539echo "${ECHO_T}no" >&6
1540fi
1541
1542  CC=$ac_ct_CC
1543else
1544  CC="$ac_cv_prog_CC"
1545fi
1546
1547fi
1548if test -z "$CC"; then
1549  # Extract the first word of "cc", so it can be a program name with args.
1550set dummy cc; ac_word=$2
1551echo "$as_me:$LINENO: checking for $ac_word" >&5
1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553if test "${ac_cv_prog_CC+set}" = set; then
1554  echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556  if test -n "$CC"; then
1557  ac_cv_prog_CC="$CC" # Let the user override the test.
1558else
1559  ac_prog_rejected=no
1560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561for as_dir in $PATH
1562do
1563  IFS=$as_save_IFS
1564  test -z "$as_dir" && as_dir=.
1565  for ac_exec_ext in '' $ac_executable_extensions; do
1566  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1568       ac_prog_rejected=yes
1569       continue
1570     fi
1571    ac_cv_prog_CC="cc"
1572    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573    break 2
1574  fi
1575done
1576done
1577
1578if test $ac_prog_rejected = yes; then
1579  # We found a bogon in the path, so make sure we never use it.
1580  set dummy $ac_cv_prog_CC
1581  shift
1582  if test $# != 0; then
1583    # We chose a different compiler from the bogus one.
1584    # However, it has the same basename, so the bogon will be chosen
1585    # first if we set CC to just the basename; use the full file name.
1586    shift
1587    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1588  fi
1589fi
1590fi
1591fi
1592CC=$ac_cv_prog_CC
1593if test -n "$CC"; then
1594  echo "$as_me:$LINENO: result: $CC" >&5
1595echo "${ECHO_T}$CC" >&6
1596else
1597  echo "$as_me:$LINENO: result: no" >&5
1598echo "${ECHO_T}no" >&6
1599fi
1600
1601fi
1602if test -z "$CC"; then
1603  if test -n "$ac_tool_prefix"; then
1604  for ac_prog in cl
1605  do
1606    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1608echo "$as_me:$LINENO: checking for $ac_word" >&5
1609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610if test "${ac_cv_prog_CC+set}" = set; then
1611  echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613  if test -n "$CC"; then
1614  ac_cv_prog_CC="$CC" # Let the user override the test.
1615else
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619  IFS=$as_save_IFS
1620  test -z "$as_dir" && as_dir=.
1621  for ac_exec_ext in '' $ac_executable_extensions; do
1622  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625    break 2
1626  fi
1627done
1628done
1629
1630fi
1631fi
1632CC=$ac_cv_prog_CC
1633if test -n "$CC"; then
1634  echo "$as_me:$LINENO: result: $CC" >&5
1635echo "${ECHO_T}$CC" >&6
1636else
1637  echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
1639fi
1640
1641    test -n "$CC" && break
1642  done
1643fi
1644if test -z "$CC"; then
1645  ac_ct_CC=$CC
1646  for ac_prog in cl
1647do
1648  # Extract the first word of "$ac_prog", so it can be a program name with args.
1649set dummy $ac_prog; ac_word=$2
1650echo "$as_me:$LINENO: checking for $ac_word" >&5
1651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1653  echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655  if test -n "$ac_ct_CC"; then
1656  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657else
1658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659for as_dir in $PATH
1660do
1661  IFS=$as_save_IFS
1662  test -z "$as_dir" && as_dir=.
1663  for ac_exec_ext in '' $ac_executable_extensions; do
1664  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665    ac_cv_prog_ac_ct_CC="$ac_prog"
1666    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667    break 2
1668  fi
1669done
1670done
1671
1672fi
1673fi
1674ac_ct_CC=$ac_cv_prog_ac_ct_CC
1675if test -n "$ac_ct_CC"; then
1676  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1677echo "${ECHO_T}$ac_ct_CC" >&6
1678else
1679  echo "$as_me:$LINENO: result: no" >&5
1680echo "${ECHO_T}no" >&6
1681fi
1682
1683  test -n "$ac_ct_CC" && break
1684done
1685
1686  CC=$ac_ct_CC
1687fi
1688
1689fi
1690
1691
1692test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1693See \`config.log' for more details." >&5
1694echo "$as_me: error: no acceptable C compiler found in \$PATH
1695See \`config.log' for more details." >&2;}
1696   { (exit 1); exit 1; }; }
1697
1698# Provide some information about the compiler.
1699echo "$as_me:$LINENO:" \
1700     "checking for C compiler version" >&5
1701ac_compiler=`set X $ac_compile; echo $2`
1702{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1703  (eval $ac_compiler --version </dev/null >&5) 2>&5
1704  ac_status=$?
1705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706  (exit $ac_status); }
1707{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1708  (eval $ac_compiler -v </dev/null >&5) 2>&5
1709  ac_status=$?
1710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711  (exit $ac_status); }
1712{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1713  (eval $ac_compiler -V </dev/null >&5) 2>&5
1714  ac_status=$?
1715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716  (exit $ac_status); }
1717
1718cat >conftest.$ac_ext <<_ACEOF
1719/* confdefs.h.  */
1720_ACEOF
1721cat confdefs.h >>conftest.$ac_ext
1722cat >>conftest.$ac_ext <<_ACEOF
1723/* end confdefs.h.  */
1724
1725int
1726main ()
1727{
1728
1729  ;
1730  return 0;
1731}
1732_ACEOF
1733ac_clean_files_save=$ac_clean_files
1734ac_clean_files="$ac_clean_files a.out a.exe b.out"
1735# Try to create an executable without -o first, disregard a.out.
1736# It will help us diagnose broken compilers, and finding out an intuition
1737# of exeext.
1738echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1739echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1740ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1741if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1742  (eval $ac_link_default) 2>&5
1743  ac_status=$?
1744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745  (exit $ac_status); }; then
1746  # Find the output, starting from the most likely.  This scheme is
1747# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1748# resort.
1749
1750# Be careful to initialize this variable, since it used to be cached.
1751# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1752ac_cv_exeext=
1753# b.out is created by i960 compilers.
1754for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1755do
1756  test -f "$ac_file" || continue
1757  case $ac_file in
1758    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1759	;;
1760    conftest.$ac_ext )
1761	# This is the source file.
1762	;;
1763    [ab].out )
1764	# We found the default executable, but exeext='' is most
1765	# certainly right.
1766	break;;
1767    *.* )
1768	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1769	# FIXME: I believe we export ac_cv_exeext for Libtool,
1770	# but it would be cool to find out if it's true.  Does anybody
1771	# maintain Libtool? --akim.
1772	export ac_cv_exeext
1773	break;;
1774    * )
1775	break;;
1776  esac
1777done
1778else
1779  echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1783See \`config.log' for more details." >&5
1784echo "$as_me: error: C compiler cannot create executables
1785See \`config.log' for more details." >&2;}
1786   { (exit 77); exit 77; }; }
1787fi
1788
1789ac_exeext=$ac_cv_exeext
1790echo "$as_me:$LINENO: result: $ac_file" >&5
1791echo "${ECHO_T}$ac_file" >&6
1792
1793# Check the compiler produces executables we can run.  If not, either
1794# the compiler is broken, or we cross compile.
1795echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1796echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1797# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1798# If not cross compiling, check that we can run a simple program.
1799if test "$cross_compiling" != yes; then
1800  if { ac_try='./$ac_file'
1801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1802  (eval $ac_try) 2>&5
1803  ac_status=$?
1804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805  (exit $ac_status); }; }; then
1806    cross_compiling=no
1807  else
1808    if test "$cross_compiling" = maybe; then
1809	cross_compiling=yes
1810    else
1811	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1812If you meant to cross compile, use \`--host'.
1813See \`config.log' for more details." >&5
1814echo "$as_me: error: cannot run C compiled programs.
1815If you meant to cross compile, use \`--host'.
1816See \`config.log' for more details." >&2;}
1817   { (exit 1); exit 1; }; }
1818    fi
1819  fi
1820fi
1821echo "$as_me:$LINENO: result: yes" >&5
1822echo "${ECHO_T}yes" >&6
1823
1824rm -f a.out a.exe conftest$ac_cv_exeext b.out
1825ac_clean_files=$ac_clean_files_save
1826# Check the compiler produces executables we can run.  If not, either
1827# the compiler is broken, or we cross compile.
1828echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1829echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1830echo "$as_me:$LINENO: result: $cross_compiling" >&5
1831echo "${ECHO_T}$cross_compiling" >&6
1832
1833echo "$as_me:$LINENO: checking for suffix of executables" >&5
1834echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1836  (eval $ac_link) 2>&5
1837  ac_status=$?
1838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839  (exit $ac_status); }; then
1840  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1841# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1842# work properly (i.e., refer to `conftest.exe'), while it won't with
1843# `rm'.
1844for ac_file in conftest.exe conftest conftest.*; do
1845  test -f "$ac_file" || continue
1846  case $ac_file in
1847    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1848    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1849	  export ac_cv_exeext
1850	  break;;
1851    * ) break;;
1852  esac
1853done
1854else
1855  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1856See \`config.log' for more details." >&5
1857echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1858See \`config.log' for more details." >&2;}
1859   { (exit 1); exit 1; }; }
1860fi
1861
1862rm -f conftest$ac_cv_exeext
1863echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1864echo "${ECHO_T}$ac_cv_exeext" >&6
1865
1866rm -f conftest.$ac_ext
1867EXEEXT=$ac_cv_exeext
1868ac_exeext=$EXEEXT
1869echo "$as_me:$LINENO: checking for suffix of object files" >&5
1870echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1871if test "${ac_cv_objext+set}" = set; then
1872  echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874  cat >conftest.$ac_ext <<_ACEOF
1875/* confdefs.h.  */
1876_ACEOF
1877cat confdefs.h >>conftest.$ac_ext
1878cat >>conftest.$ac_ext <<_ACEOF
1879/* end confdefs.h.  */
1880
1881int
1882main ()
1883{
1884
1885  ;
1886  return 0;
1887}
1888_ACEOF
1889rm -f conftest.o conftest.obj
1890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1891  (eval $ac_compile) 2>&5
1892  ac_status=$?
1893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894  (exit $ac_status); }; then
1895  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1896  case $ac_file in
1897    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1898    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1899       break;;
1900  esac
1901done
1902else
1903  echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1907See \`config.log' for more details." >&5
1908echo "$as_me: error: cannot compute suffix of object files: cannot compile
1909See \`config.log' for more details." >&2;}
1910   { (exit 1); exit 1; }; }
1911fi
1912
1913rm -f conftest.$ac_cv_objext conftest.$ac_ext
1914fi
1915echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1916echo "${ECHO_T}$ac_cv_objext" >&6
1917OBJEXT=$ac_cv_objext
1918ac_objext=$OBJEXT
1919echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1920echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1921if test "${ac_cv_c_compiler_gnu+set}" = set; then
1922  echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924  cat >conftest.$ac_ext <<_ACEOF
1925/* confdefs.h.  */
1926_ACEOF
1927cat confdefs.h >>conftest.$ac_ext
1928cat >>conftest.$ac_ext <<_ACEOF
1929/* end confdefs.h.  */
1930
1931int
1932main ()
1933{
1934#ifndef __GNUC__
1935       choke me
1936#endif
1937
1938  ;
1939  return 0;
1940}
1941_ACEOF
1942rm -f conftest.$ac_objext
1943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944  (eval $ac_compile) 2>conftest.er1
1945  ac_status=$?
1946  grep -v '^ *+' conftest.er1 >conftest.err
1947  rm -f conftest.er1
1948  cat conftest.err >&5
1949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950  (exit $ac_status); } &&
1951	 { ac_try='test -z "$ac_c_werror_flag"
1952			 || test ! -s conftest.err'
1953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954  (eval $ac_try) 2>&5
1955  ac_status=$?
1956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957  (exit $ac_status); }; } &&
1958	 { ac_try='test -s conftest.$ac_objext'
1959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960  (eval $ac_try) 2>&5
1961  ac_status=$?
1962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963  (exit $ac_status); }; }; then
1964  ac_compiler_gnu=yes
1965else
1966  echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969ac_compiler_gnu=no
1970fi
1971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1972ac_cv_c_compiler_gnu=$ac_compiler_gnu
1973
1974fi
1975echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1976echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1977GCC=`test $ac_compiler_gnu = yes && echo yes`
1978ac_test_CFLAGS=${CFLAGS+set}
1979ac_save_CFLAGS=$CFLAGS
1980CFLAGS="-g"
1981echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1982echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1983if test "${ac_cv_prog_cc_g+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  cat >conftest.$ac_ext <<_ACEOF
1987/* confdefs.h.  */
1988_ACEOF
1989cat confdefs.h >>conftest.$ac_ext
1990cat >>conftest.$ac_ext <<_ACEOF
1991/* end confdefs.h.  */
1992
1993int
1994main ()
1995{
1996
1997  ;
1998  return 0;
1999}
2000_ACEOF
2001rm -f conftest.$ac_objext
2002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2003  (eval $ac_compile) 2>conftest.er1
2004  ac_status=$?
2005  grep -v '^ *+' conftest.er1 >conftest.err
2006  rm -f conftest.er1
2007  cat conftest.err >&5
2008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009  (exit $ac_status); } &&
2010	 { ac_try='test -z "$ac_c_werror_flag"
2011			 || test ! -s conftest.err'
2012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013  (eval $ac_try) 2>&5
2014  ac_status=$?
2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016  (exit $ac_status); }; } &&
2017	 { ac_try='test -s conftest.$ac_objext'
2018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019  (eval $ac_try) 2>&5
2020  ac_status=$?
2021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022  (exit $ac_status); }; }; then
2023  ac_cv_prog_cc_g=yes
2024else
2025  echo "$as_me: failed program was:" >&5
2026sed 's/^/| /' conftest.$ac_ext >&5
2027
2028ac_cv_prog_cc_g=no
2029fi
2030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2033echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2034if test "$ac_test_CFLAGS" = set; then
2035  CFLAGS=$ac_save_CFLAGS
2036elif test $ac_cv_prog_cc_g = yes; then
2037  if test "$GCC" = yes; then
2038    CFLAGS="-g -O2"
2039  else
2040    CFLAGS="-g"
2041  fi
2042else
2043  if test "$GCC" = yes; then
2044    CFLAGS="-O2"
2045  else
2046    CFLAGS=
2047  fi
2048fi
2049echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2050echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2051if test "${ac_cv_prog_cc_stdc+set}" = set; then
2052  echo $ECHO_N "(cached) $ECHO_C" >&6
2053else
2054  ac_cv_prog_cc_stdc=no
2055ac_save_CC=$CC
2056cat >conftest.$ac_ext <<_ACEOF
2057/* confdefs.h.  */
2058_ACEOF
2059cat confdefs.h >>conftest.$ac_ext
2060cat >>conftest.$ac_ext <<_ACEOF
2061/* end confdefs.h.  */
2062#include <stdarg.h>
2063#include <stdio.h>
2064#include <sys/types.h>
2065#include <sys/stat.h>
2066/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2067struct buf { int x; };
2068FILE * (*rcsopen) (struct buf *, struct stat *, int);
2069static char *e (p, i)
2070     char **p;
2071     int i;
2072{
2073  return p[i];
2074}
2075static char *f (char * (*g) (char **, int), char **p, ...)
2076{
2077  char *s;
2078  va_list v;
2079  va_start (v,p);
2080  s = g (p, va_arg (v,int));
2081  va_end (v);
2082  return s;
2083}
2084
2085/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2086   function prototypes and stuff, but not '\xHH' hex character constants.
2087   These don't provoke an error unfortunately, instead are silently treated
2088   as 'x'.  The following induces an error, until -std1 is added to get
2089   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2090   array size at least.  It's necessary to write '\x00'==0 to get something
2091   that's true only with -std1.  */
2092int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2093
2094int test (int i, double x);
2095struct s1 {int (*f) (int a);};
2096struct s2 {int (*f) (double a);};
2097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2098int argc;
2099char **argv;
2100int
2101main ()
2102{
2103return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2104  ;
2105  return 0;
2106}
2107_ACEOF
2108# Don't try gcc -ansi; that turns off useful extensions and
2109# breaks some systems' header files.
2110# AIX			-qlanglvl=ansi
2111# Ultrix and OSF/1	-std1
2112# HP-UX 10.20 and later	-Ae
2113# HP-UX older versions	-Aa -D_HPUX_SOURCE
2114# SVR4			-Xc -D__EXTENSIONS__
2115for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2116do
2117  CC="$ac_save_CC $ac_arg"
2118  rm -f conftest.$ac_objext
2119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2120  (eval $ac_compile) 2>conftest.er1
2121  ac_status=$?
2122  grep -v '^ *+' conftest.er1 >conftest.err
2123  rm -f conftest.er1
2124  cat conftest.err >&5
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); } &&
2127	 { ac_try='test -z "$ac_c_werror_flag"
2128			 || test ! -s conftest.err'
2129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130  (eval $ac_try) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }; } &&
2134	 { ac_try='test -s conftest.$ac_objext'
2135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136  (eval $ac_try) 2>&5
2137  ac_status=$?
2138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139  (exit $ac_status); }; }; then
2140  ac_cv_prog_cc_stdc=$ac_arg
2141break
2142else
2143  echo "$as_me: failed program was:" >&5
2144sed 's/^/| /' conftest.$ac_ext >&5
2145
2146fi
2147rm -f conftest.err conftest.$ac_objext
2148done
2149rm -f conftest.$ac_ext conftest.$ac_objext
2150CC=$ac_save_CC
2151
2152fi
2153
2154case "x$ac_cv_prog_cc_stdc" in
2155  x|xno)
2156    echo "$as_me:$LINENO: result: none needed" >&5
2157echo "${ECHO_T}none needed" >&6 ;;
2158  *)
2159    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2160echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2161    CC="$CC $ac_cv_prog_cc_stdc" ;;
2162esac
2163
2164# Some people use a C++ compiler to compile C.  Since we use `exit',
2165# in C++ we need to declare it.  In case someone uses the same compiler
2166# for both compiling C and C++ we need to have the C++ compiler decide
2167# the declaration of exit, since it's the most demanding environment.
2168cat >conftest.$ac_ext <<_ACEOF
2169#ifndef __cplusplus
2170  choke me
2171#endif
2172_ACEOF
2173rm -f conftest.$ac_objext
2174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175  (eval $ac_compile) 2>conftest.er1
2176  ac_status=$?
2177  grep -v '^ *+' conftest.er1 >conftest.err
2178  rm -f conftest.er1
2179  cat conftest.err >&5
2180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181  (exit $ac_status); } &&
2182	 { ac_try='test -z "$ac_c_werror_flag"
2183			 || test ! -s conftest.err'
2184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185  (eval $ac_try) 2>&5
2186  ac_status=$?
2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188  (exit $ac_status); }; } &&
2189	 { ac_try='test -s conftest.$ac_objext'
2190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191  (eval $ac_try) 2>&5
2192  ac_status=$?
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); }; }; then
2195  for ac_declaration in \
2196   '' \
2197   'extern "C" void std::exit (int) throw (); using std::exit;' \
2198   'extern "C" void std::exit (int); using std::exit;' \
2199   'extern "C" void exit (int) throw ();' \
2200   'extern "C" void exit (int);' \
2201   'void exit (int);'
2202do
2203  cat >conftest.$ac_ext <<_ACEOF
2204/* confdefs.h.  */
2205_ACEOF
2206cat confdefs.h >>conftest.$ac_ext
2207cat >>conftest.$ac_ext <<_ACEOF
2208/* end confdefs.h.  */
2209$ac_declaration
2210#include <stdlib.h>
2211int
2212main ()
2213{
2214exit (42);
2215  ;
2216  return 0;
2217}
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221  (eval $ac_compile) 2>conftest.er1
2222  ac_status=$?
2223  grep -v '^ *+' conftest.er1 >conftest.err
2224  rm -f conftest.er1
2225  cat conftest.err >&5
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); } &&
2228	 { ac_try='test -z "$ac_c_werror_flag"
2229			 || test ! -s conftest.err'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; } &&
2235	 { ac_try='test -s conftest.$ac_objext'
2236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237  (eval $ac_try) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; }; then
2241  :
2242else
2243  echo "$as_me: failed program was:" >&5
2244sed 's/^/| /' conftest.$ac_ext >&5
2245
2246continue
2247fi
2248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2249  cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h.  */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h.  */
2255$ac_declaration
2256int
2257main ()
2258{
2259exit (42);
2260  ;
2261  return 0;
2262}
2263_ACEOF
2264rm -f conftest.$ac_objext
2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266  (eval $ac_compile) 2>conftest.er1
2267  ac_status=$?
2268  grep -v '^ *+' conftest.er1 >conftest.err
2269  rm -f conftest.er1
2270  cat conftest.err >&5
2271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272  (exit $ac_status); } &&
2273	 { ac_try='test -z "$ac_c_werror_flag"
2274			 || test ! -s conftest.err'
2275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276  (eval $ac_try) 2>&5
2277  ac_status=$?
2278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279  (exit $ac_status); }; } &&
2280	 { ac_try='test -s conftest.$ac_objext'
2281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282  (eval $ac_try) 2>&5
2283  ac_status=$?
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); }; }; then
2286  break
2287else
2288  echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291fi
2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293done
2294rm -f conftest*
2295if test -n "$ac_declaration"; then
2296  echo '#ifdef __cplusplus' >>confdefs.h
2297  echo $ac_declaration      >>confdefs.h
2298  echo '#endif'             >>confdefs.h
2299fi
2300
2301else
2302  echo "$as_me: failed program was:" >&5
2303sed 's/^/| /' conftest.$ac_ext >&5
2304
2305fi
2306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312	ac_ext=c
2313ac_cpp='$CPP $CPPFLAGS'
2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2318echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2319# On Suns, sometimes $CPP names a directory.
2320if test -n "$CPP" && test -d "$CPP"; then
2321  CPP=
2322fi
2323if test -z "$CPP"; then
2324  if test "${ac_cv_prog_CPP+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327      # Double quotes because CPP needs to be expanded
2328    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2329    do
2330      ac_preproc_ok=false
2331for ac_c_preproc_warn_flag in '' yes
2332do
2333  # Use a header file that comes with gcc, so configuring glibc
2334  # with a fresh cross-compiler works.
2335  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2336  # <limits.h> exists even on freestanding compilers.
2337  # On the NeXT, cc -E runs the code through the compiler's parser,
2338  # not just through cpp. "Syntax error" is here to catch this case.
2339  cat >conftest.$ac_ext <<_ACEOF
2340/* confdefs.h.  */
2341_ACEOF
2342cat confdefs.h >>conftest.$ac_ext
2343cat >>conftest.$ac_ext <<_ACEOF
2344/* end confdefs.h.  */
2345#ifdef __STDC__
2346# include <limits.h>
2347#else
2348# include <assert.h>
2349#endif
2350		     Syntax error
2351_ACEOF
2352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2353  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2354  ac_status=$?
2355  grep -v '^ *+' conftest.er1 >conftest.err
2356  rm -f conftest.er1
2357  cat conftest.err >&5
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); } >/dev/null; then
2360  if test -s conftest.err; then
2361    ac_cpp_err=$ac_c_preproc_warn_flag
2362    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2363  else
2364    ac_cpp_err=
2365  fi
2366else
2367  ac_cpp_err=yes
2368fi
2369if test -z "$ac_cpp_err"; then
2370  :
2371else
2372  echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375  # Broken: fails on valid input.
2376continue
2377fi
2378rm -f conftest.err conftest.$ac_ext
2379
2380  # OK, works on sane cases.  Now check whether non-existent headers
2381  # can be detected and how.
2382  cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h.  */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h.  */
2388#include <ac_nonexistent.h>
2389_ACEOF
2390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2391  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } >/dev/null; then
2398  if test -s conftest.err; then
2399    ac_cpp_err=$ac_c_preproc_warn_flag
2400    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2401  else
2402    ac_cpp_err=
2403  fi
2404else
2405  ac_cpp_err=yes
2406fi
2407if test -z "$ac_cpp_err"; then
2408  # Broken: success on invalid input.
2409continue
2410else
2411  echo "$as_me: failed program was:" >&5
2412sed 's/^/| /' conftest.$ac_ext >&5
2413
2414  # Passes both tests.
2415ac_preproc_ok=:
2416break
2417fi
2418rm -f conftest.err conftest.$ac_ext
2419
2420done
2421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2422rm -f conftest.err conftest.$ac_ext
2423if $ac_preproc_ok; then
2424  break
2425fi
2426
2427    done
2428    ac_cv_prog_CPP=$CPP
2429
2430fi
2431  CPP=$ac_cv_prog_CPP
2432else
2433  ac_cv_prog_CPP=$CPP
2434fi
2435echo "$as_me:$LINENO: result: $CPP" >&5
2436echo "${ECHO_T}$CPP" >&6
2437ac_preproc_ok=false
2438for ac_c_preproc_warn_flag in '' yes
2439do
2440  # Use a header file that comes with gcc, so configuring glibc
2441  # with a fresh cross-compiler works.
2442  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2443  # <limits.h> exists even on freestanding compilers.
2444  # On the NeXT, cc -E runs the code through the compiler's parser,
2445  # not just through cpp. "Syntax error" is here to catch this case.
2446  cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h.  */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
2451/* end confdefs.h.  */
2452#ifdef __STDC__
2453# include <limits.h>
2454#else
2455# include <assert.h>
2456#endif
2457		     Syntax error
2458_ACEOF
2459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2460  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2461  ac_status=$?
2462  grep -v '^ *+' conftest.er1 >conftest.err
2463  rm -f conftest.er1
2464  cat conftest.err >&5
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); } >/dev/null; then
2467  if test -s conftest.err; then
2468    ac_cpp_err=$ac_c_preproc_warn_flag
2469    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2470  else
2471    ac_cpp_err=
2472  fi
2473else
2474  ac_cpp_err=yes
2475fi
2476if test -z "$ac_cpp_err"; then
2477  :
2478else
2479  echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482  # Broken: fails on valid input.
2483continue
2484fi
2485rm -f conftest.err conftest.$ac_ext
2486
2487  # OK, works on sane cases.  Now check whether non-existent headers
2488  # can be detected and how.
2489  cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h.  */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
2494/* end confdefs.h.  */
2495#include <ac_nonexistent.h>
2496_ACEOF
2497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2498  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2499  ac_status=$?
2500  grep -v '^ *+' conftest.er1 >conftest.err
2501  rm -f conftest.er1
2502  cat conftest.err >&5
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); } >/dev/null; then
2505  if test -s conftest.err; then
2506    ac_cpp_err=$ac_c_preproc_warn_flag
2507    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2508  else
2509    ac_cpp_err=
2510  fi
2511else
2512  ac_cpp_err=yes
2513fi
2514if test -z "$ac_cpp_err"; then
2515  # Broken: success on invalid input.
2516continue
2517else
2518  echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
2520
2521  # Passes both tests.
2522ac_preproc_ok=:
2523break
2524fi
2525rm -f conftest.err conftest.$ac_ext
2526
2527done
2528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2529rm -f conftest.err conftest.$ac_ext
2530if $ac_preproc_ok; then
2531  :
2532else
2533  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2534See \`config.log' for more details." >&5
2535echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2536See \`config.log' for more details." >&2;}
2537   { (exit 1); exit 1; }; }
2538fi
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545
2546
2547echo "$as_me:$LINENO: checking for egrep" >&5
2548echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2549if test "${ac_cv_prog_egrep+set}" = set; then
2550  echo $ECHO_N "(cached) $ECHO_C" >&6
2551else
2552  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2553    then ac_cv_prog_egrep='grep -E'
2554    else ac_cv_prog_egrep='egrep'
2555    fi
2556fi
2557echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2558echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2559 EGREP=$ac_cv_prog_egrep
2560
2561
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h.  */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h.  */
2568
2569_ACEOF
2570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2571  $EGREP "" >/dev/null 2>&1; then
2572  :
2573fi
2574rm -f conftest*
2575 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2576echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2577if test "${ac_cv_search_strerror+set}" = set; then
2578  echo $ECHO_N "(cached) $ECHO_C" >&6
2579else
2580  ac_func_search_save_LIBS=$LIBS
2581ac_cv_search_strerror=no
2582cat >conftest.$ac_ext <<_ACEOF
2583/* confdefs.h.  */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h.  */
2588
2589/* Override any gcc2 internal prototype to avoid an error.  */
2590#ifdef __cplusplus
2591extern "C"
2592#endif
2593/* We use char because int might match the return type of a gcc2
2594   builtin and then its argument prototype would still apply.  */
2595char strerror ();
2596int
2597main ()
2598{
2599strerror ();
2600  ;
2601  return 0;
2602}
2603_ACEOF
2604rm -f conftest.$ac_objext conftest$ac_exeext
2605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606  (eval $ac_link) 2>conftest.er1
2607  ac_status=$?
2608  grep -v '^ *+' conftest.er1 >conftest.err
2609  rm -f conftest.er1
2610  cat conftest.err >&5
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613	 { ac_try='test -z "$ac_c_werror_flag"
2614			 || test ! -s conftest.err'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620	 { ac_try='test -s conftest$ac_exeext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  ac_cv_search_strerror="none required"
2627else
2628  echo "$as_me: failed program was:" >&5
2629sed 's/^/| /' conftest.$ac_ext >&5
2630
2631fi
2632rm -f conftest.err conftest.$ac_objext \
2633      conftest$ac_exeext conftest.$ac_ext
2634if test "$ac_cv_search_strerror" = no; then
2635  for ac_lib in cposix; do
2636    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2637    cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h.  */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h.  */
2643
2644/* Override any gcc2 internal prototype to avoid an error.  */
2645#ifdef __cplusplus
2646extern "C"
2647#endif
2648/* We use char because int might match the return type of a gcc2
2649   builtin and then its argument prototype would still apply.  */
2650char strerror ();
2651int
2652main ()
2653{
2654strerror ();
2655  ;
2656  return 0;
2657}
2658_ACEOF
2659rm -f conftest.$ac_objext conftest$ac_exeext
2660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661  (eval $ac_link) 2>conftest.er1
2662  ac_status=$?
2663  grep -v '^ *+' conftest.er1 >conftest.err
2664  rm -f conftest.er1
2665  cat conftest.err >&5
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); } &&
2668	 { ac_try='test -z "$ac_c_werror_flag"
2669			 || test ! -s conftest.err'
2670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671  (eval $ac_try) 2>&5
2672  ac_status=$?
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); }; } &&
2675	 { ac_try='test -s conftest$ac_exeext'
2676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677  (eval $ac_try) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; }; then
2681  ac_cv_search_strerror="-l$ac_lib"
2682break
2683else
2684  echo "$as_me: failed program was:" >&5
2685sed 's/^/| /' conftest.$ac_ext >&5
2686
2687fi
2688rm -f conftest.err conftest.$ac_objext \
2689      conftest$ac_exeext conftest.$ac_ext
2690  done
2691fi
2692LIBS=$ac_func_search_save_LIBS
2693fi
2694echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2695echo "${ECHO_T}$ac_cv_search_strerror" >&6
2696if test "$ac_cv_search_strerror" != no; then
2697  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2698
2699fi
2700	for ac_prog in gawk mawk nawk awk
2701do
2702  # Extract the first word of "$ac_prog", so it can be a program name with args.
2703set dummy $ac_prog; ac_word=$2
2704echo "$as_me:$LINENO: checking for $ac_word" >&5
2705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706if test "${ac_cv_prog_AWK+set}" = set; then
2707  echo $ECHO_N "(cached) $ECHO_C" >&6
2708else
2709  if test -n "$AWK"; then
2710  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715  IFS=$as_save_IFS
2716  test -z "$as_dir" && as_dir=.
2717  for ac_exec_ext in '' $ac_executable_extensions; do
2718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719    ac_cv_prog_AWK="$ac_prog"
2720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721    break 2
2722  fi
2723done
2724done
2725
2726fi
2727fi
2728AWK=$ac_cv_prog_AWK
2729if test -n "$AWK"; then
2730  echo "$as_me:$LINENO: result: $AWK" >&5
2731echo "${ECHO_T}$AWK" >&6
2732else
2733  echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
2735fi
2736
2737  test -n "$AWK" && break
2738done
2739
2740# Extract the first word of "strip", so it can be a program name with args.
2741set dummy strip; ac_word=$2
2742echo "$as_me:$LINENO: checking for $ac_word" >&5
2743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744if test "${ac_cv_prog_STRIP+set}" = set; then
2745  echo $ECHO_N "(cached) $ECHO_C" >&6
2746else
2747  if test -n "$STRIP"; then
2748  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2749else
2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753  IFS=$as_save_IFS
2754  test -z "$as_dir" && as_dir=.
2755  for ac_exec_ext in '' $ac_executable_extensions; do
2756  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757    ac_cv_prog_STRIP="strip"
2758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759    break 2
2760  fi
2761done
2762done
2763
2764  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2765fi
2766fi
2767STRIP=$ac_cv_prog_STRIP
2768if test -n "$STRIP"; then
2769  echo "$as_me:$LINENO: result: $STRIP" >&5
2770echo "${ECHO_T}$STRIP" >&6
2771else
2772  echo "$as_me:$LINENO: result: no" >&5
2773echo "${ECHO_T}no" >&6
2774fi
2775
2776
2777
2778
2779if test -z "$CFLAGS"; then
2780  CFLAGS="-O"
2781  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
2782fi
2783if test "$GCC" = yes; then
2784    gccversion=`"$CC" -dumpversion`
2785  if test "x$gccversion" = "x"; then
2786        gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
2787  fi
2788    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
2789    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
2790    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2791  else
2792    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2793      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2794      CFLAGS="$CFLAGS -fno-strength-reduce"
2795    fi
2796  fi
2797fi
2798
2799if test "$cross_compiling" = yes; then
2800  { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2801  (cross compiling doesn't work)" >&5
2802echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2803  (cross compiling doesn't work)" >&2;}
2804   { (exit 1); exit 1; }; }
2805fi
2806
2807test "$GCC" = yes && CPP_MM=M;
2808
2809if test -f ./toolcheck; then
2810  { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2811echo "$as_me: checking for buggy tools..." >&6;}
2812  sh ./toolcheck 1>&6
2813fi
2814
2815OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2816
2817echo "$as_me:$LINENO: checking for BeOS" >&5
2818echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
2819case `uname` in
2820    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
2821		BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2822echo "${ECHO_T}yes" >&6;;
2823    *)		BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2824echo "${ECHO_T}no" >&6;;
2825esac
2826
2827echo "$as_me:$LINENO: checking for QNX" >&5
2828echo $ECHO_N "checking for QNX... $ECHO_C" >&6
2829case `uname` in
2830    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2831		test -z "$with_x" && with_x=no
2832		QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2833echo "${ECHO_T}yes" >&6;;
2834    *)		QNX=no; echo "$as_me:$LINENO: result: no" >&5
2835echo "${ECHO_T}no" >&6;;
2836esac
2837
2838echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2839echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
2840if test "`(uname) 2>/dev/null`" = Darwin; then
2841  echo "$as_me:$LINENO: result: yes" >&5
2842echo "${ECHO_T}yes" >&6
2843
2844  echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2845echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
2846  # Check whether --enable-darwin or --disable-darwin was given.
2847if test "${enable_darwin+set}" = set; then
2848  enableval="$enable_darwin"
2849
2850else
2851  enable_darwin="yes"
2852fi;
2853  if test "$enable_darwin" = "yes"; then
2854    echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6
2856    echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2857echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
2858    if test -f os_macosx.c; then
2859      echo "$as_me:$LINENO: result: yes" >&5
2860echo "${ECHO_T}yes" >&6
2861    else
2862      echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2863echo "${ECHO_T}no, Darwin support disabled" >&6
2864      enable_darwin=no
2865    fi
2866  else
2867    echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2868echo "${ECHO_T}yes, Darwin support excluded" >&6
2869  fi
2870
2871  echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2872echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2873
2874# Check whether --with-mac-arch or --without-mac-arch was given.
2875if test "${with_mac_arch+set}" = set; then
2876  withval="$with_mac_arch"
2877  MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2878echo "${ECHO_T}$MACARCH" >&6
2879else
2880  MACARCH="current"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
2881echo "${ECHO_T}defaulting to $MACARCH" >&6
2882fi;
2883
2884  if test "x$MACARCH" = "xboth"; then
2885    echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
2886echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6
2887                            save_cppflags="$CPPFLAGS"
2888    save_cflags="$CFLAGS"
2889    save_ldflags="$LDFLAGS"
2890    CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
2891    cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h.  */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h.  */
2897
2898int
2899main ()
2900{
2901
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext conftest$ac_exeext
2907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908  (eval $ac_link) 2>conftest.er1
2909  ac_status=$?
2910  grep -v '^ *+' conftest.er1 >conftest.err
2911  rm -f conftest.er1
2912  cat conftest.err >&5
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); } &&
2915	 { ac_try='test -z "$ac_c_werror_flag"
2916			 || test ! -s conftest.err'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; } &&
2922	 { ac_try='test -s conftest$ac_exeext'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; }; then
2928  echo "$as_me:$LINENO: result: found" >&5
2929echo "${ECHO_T}found" >&6
2930else
2931  echo "$as_me: failed program was:" >&5
2932sed 's/^/| /' conftest.$ac_ext >&5
2933
2934echo "$as_me:$LINENO: result: not found" >&5
2935echo "${ECHO_T}not found" >&6
2936	CFLAGS="$save_cflags"
2937	echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
2938echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
2939	CPPFLAGS="$CPPFLAGS -arch i386"
2940	LDFLAGS="$save_ldflags -arch i386"
2941	cat >conftest.$ac_ext <<_ACEOF
2942/* confdefs.h.  */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h.  */
2947
2948int
2949main ()
2950{
2951
2952  ;
2953  return 0;
2954}
2955_ACEOF
2956rm -f conftest.$ac_objext conftest$ac_exeext
2957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2958  (eval $ac_link) 2>conftest.er1
2959  ac_status=$?
2960  grep -v '^ *+' conftest.er1 >conftest.err
2961  rm -f conftest.er1
2962  cat conftest.err >&5
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); } &&
2965	 { ac_try='test -z "$ac_c_werror_flag"
2966			 || test ! -s conftest.err'
2967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968  (eval $ac_try) 2>&5
2969  ac_status=$?
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); }; } &&
2972	 { ac_try='test -s conftest$ac_exeext'
2973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974  (eval $ac_try) 2>&5
2975  ac_status=$?
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); }; }; then
2978  echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6; MACARCH="intel"
2980else
2981  echo "$as_me: failed program was:" >&5
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984echo "$as_me:$LINENO: result: no" >&5
2985echo "${ECHO_T}no" >&6
2986	        MACARCH="ppc"
2987		CPPFLAGS="$save_cppflags -arch ppc"
2988		LDFLAGS="$save_ldflags -arch ppc"
2989fi
2990rm -f conftest.err conftest.$ac_objext \
2991      conftest$ac_exeext conftest.$ac_ext
2992fi
2993rm -f conftest.err conftest.$ac_objext \
2994      conftest$ac_exeext conftest.$ac_ext
2995  elif test "x$MACARCH" = "xintel"; then
2996    CPPFLAGS="$CPPFLAGS -arch intel"
2997    LDFLAGS="$LDFLAGS -arch intel"
2998  elif test "x$MACARCH" = "xppc"; then
2999    CPPFLAGS="$CPPFLAGS -arch ppc"
3000    LDFLAGS="$LDFLAGS -arch ppc"
3001  fi
3002
3003  if test "$enable_darwin" = "yes"; then
3004    MACOSX=yes
3005    OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3006    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3007        CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3008    if test "x$MACARCH" = "xboth"; then
3009      CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3010    else
3011      CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3012    fi
3013
3014                echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3015echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3016if test "${ac_cv_header_stdc+set}" = set; then
3017  echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019  cat >conftest.$ac_ext <<_ACEOF
3020/* confdefs.h.  */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h.  */
3025#include <stdlib.h>
3026#include <stdarg.h>
3027#include <string.h>
3028#include <float.h>
3029
3030int
3031main ()
3032{
3033
3034  ;
3035  return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext
3039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040  (eval $ac_compile) 2>conftest.er1
3041  ac_status=$?
3042  grep -v '^ *+' conftest.er1 >conftest.err
3043  rm -f conftest.er1
3044  cat conftest.err >&5
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); } &&
3047	 { ac_try='test -z "$ac_c_werror_flag"
3048			 || test ! -s conftest.err'
3049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050  (eval $ac_try) 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; } &&
3054	 { ac_try='test -s conftest.$ac_objext'
3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; }; then
3060  ac_cv_header_stdc=yes
3061else
3062  echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065ac_cv_header_stdc=no
3066fi
3067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068
3069if test $ac_cv_header_stdc = yes; then
3070  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3071  cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h.  */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h.  */
3077#include <string.h>
3078
3079_ACEOF
3080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3081  $EGREP "memchr" >/dev/null 2>&1; then
3082  :
3083else
3084  ac_cv_header_stdc=no
3085fi
3086rm -f conftest*
3087
3088fi
3089
3090if test $ac_cv_header_stdc = yes; then
3091  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3092  cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h.  */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h.  */
3098#include <stdlib.h>
3099
3100_ACEOF
3101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3102  $EGREP "free" >/dev/null 2>&1; then
3103  :
3104else
3105  ac_cv_header_stdc=no
3106fi
3107rm -f conftest*
3108
3109fi
3110
3111if test $ac_cv_header_stdc = yes; then
3112  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3113  if test "$cross_compiling" = yes; then
3114  :
3115else
3116  cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h.  */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h.  */
3122#include <ctype.h>
3123#if ((' ' & 0x0FF) == 0x020)
3124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3126#else
3127# define ISLOWER(c) \
3128		   (('a' <= (c) && (c) <= 'i') \
3129		     || ('j' <= (c) && (c) <= 'r') \
3130		     || ('s' <= (c) && (c) <= 'z'))
3131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3132#endif
3133
3134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3135int
3136main ()
3137{
3138  int i;
3139  for (i = 0; i < 256; i++)
3140    if (XOR (islower (i), ISLOWER (i))
3141	|| toupper (i) != TOUPPER (i))
3142      exit(2);
3143  exit (0);
3144}
3145_ACEOF
3146rm -f conftest$ac_exeext
3147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3148  (eval $ac_link) 2>&5
3149  ac_status=$?
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153  (eval $ac_try) 2>&5
3154  ac_status=$?
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); }; }; then
3157  :
3158else
3159  echo "$as_me: program exited with status $ac_status" >&5
3160echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163( exit $ac_status )
3164ac_cv_header_stdc=no
3165fi
3166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3167fi
3168fi
3169fi
3170echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3171echo "${ECHO_T}$ac_cv_header_stdc" >&6
3172if test $ac_cv_header_stdc = yes; then
3173
3174cat >>confdefs.h <<\_ACEOF
3175#define STDC_HEADERS 1
3176_ACEOF
3177
3178fi
3179
3180# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3191		  inttypes.h stdint.h unistd.h
3192do
3193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3194echo "$as_me:$LINENO: checking for $ac_header" >&5
3195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3196if eval "test \"\${$as_ac_Header+set}\" = set"; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  cat >conftest.$ac_ext <<_ACEOF
3200/* confdefs.h.  */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h.  */
3205$ac_includes_default
3206
3207#include <$ac_header>
3208_ACEOF
3209rm -f conftest.$ac_objext
3210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211  (eval $ac_compile) 2>conftest.er1
3212  ac_status=$?
3213  grep -v '^ *+' conftest.er1 >conftest.err
3214  rm -f conftest.er1
3215  cat conftest.err >&5
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } &&
3218	 { ac_try='test -z "$ac_c_werror_flag"
3219			 || test ! -s conftest.err'
3220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221  (eval $ac_try) 2>&5
3222  ac_status=$?
3223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224  (exit $ac_status); }; } &&
3225	 { ac_try='test -s conftest.$ac_objext'
3226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227  (eval $ac_try) 2>&5
3228  ac_status=$?
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); }; }; then
3231  eval "$as_ac_Header=yes"
3232else
3233  echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236eval "$as_ac_Header=no"
3237fi
3238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
3240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3242if test `eval echo '${'$as_ac_Header'}'` = yes; then
3243  cat >>confdefs.h <<_ACEOF
3244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3245_ACEOF
3246
3247fi
3248
3249done
3250
3251
3252if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3253  echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3254echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3255if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3256  echo $ECHO_N "(cached) $ECHO_C" >&6
3257fi
3258echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3259echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3260else
3261  # Is the header compilable?
3262echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3263echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3264cat >conftest.$ac_ext <<_ACEOF
3265/* confdefs.h.  */
3266_ACEOF
3267cat confdefs.h >>conftest.$ac_ext
3268cat >>conftest.$ac_ext <<_ACEOF
3269/* end confdefs.h.  */
3270$ac_includes_default
3271#include <Carbon/Carbon.h>
3272_ACEOF
3273rm -f conftest.$ac_objext
3274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275  (eval $ac_compile) 2>conftest.er1
3276  ac_status=$?
3277  grep -v '^ *+' conftest.er1 >conftest.err
3278  rm -f conftest.er1
3279  cat conftest.err >&5
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); } &&
3282	 { ac_try='test -z "$ac_c_werror_flag"
3283			 || test ! -s conftest.err'
3284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285  (eval $ac_try) 2>&5
3286  ac_status=$?
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }; } &&
3289	 { ac_try='test -s conftest.$ac_objext'
3290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291  (eval $ac_try) 2>&5
3292  ac_status=$?
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); }; }; then
3295  ac_header_compiler=yes
3296else
3297  echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300ac_header_compiler=no
3301fi
3302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3304echo "${ECHO_T}$ac_header_compiler" >&6
3305
3306# Is the header present?
3307echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3308echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3309cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h.  */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h.  */
3315#include <Carbon/Carbon.h>
3316_ACEOF
3317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319  ac_status=$?
3320  grep -v '^ *+' conftest.er1 >conftest.err
3321  rm -f conftest.er1
3322  cat conftest.err >&5
3323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324  (exit $ac_status); } >/dev/null; then
3325  if test -s conftest.err; then
3326    ac_cpp_err=$ac_c_preproc_warn_flag
3327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328  else
3329    ac_cpp_err=
3330  fi
3331else
3332  ac_cpp_err=yes
3333fi
3334if test -z "$ac_cpp_err"; then
3335  ac_header_preproc=yes
3336else
3337  echo "$as_me: failed program was:" >&5
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
3340  ac_header_preproc=no
3341fi
3342rm -f conftest.err conftest.$ac_ext
3343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3344echo "${ECHO_T}$ac_header_preproc" >&6
3345
3346# So?  What about this header?
3347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3348  yes:no: )
3349    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3350echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3351    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3352echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3353    ac_header_preproc=yes
3354    ;;
3355  no:yes:* )
3356    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3357echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3358    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
3359echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
3360    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3361echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3362    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
3363echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3364    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3365echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3366    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3367echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3368    (
3369      cat <<\_ASBOX
3370## ------------------------------------------ ##
3371## Report this to the AC_PACKAGE_NAME lists.  ##
3372## ------------------------------------------ ##
3373_ASBOX
3374    ) |
3375      sed "s/^/$as_me: WARNING:     /" >&2
3376    ;;
3377esac
3378echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3379echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3380if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3381  echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383  ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3384fi
3385echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3386echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3387
3388fi
3389if test $ac_cv_header_Carbon_Carbon_h = yes; then
3390  CARBON=yes
3391fi
3392
3393
3394    if test "x$CARBON" = "xyes"; then
3395      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then
3396	with_x=no
3397
3398		if test x$prefix = xNONE; then
3399	  prefix=/Applications
3400	fi
3401
3402		datadir='${prefix}/Vim.app/Contents/Resources'
3403      fi
3404    fi
3405  fi
3406
3407        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
3408    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3409  fi
3410
3411else
3412  echo "$as_me:$LINENO: result: no" >&5
3413echo "${ECHO_T}no" >&6
3414fi
3415
3416
3417
3418
3419have_local_include=''
3420have_local_lib=''
3421if test "$GCC" = yes; then
3422  echo 'void f(){}' > conftest.c
3423    have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3424  have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3425  rm -f conftest.c conftest.o
3426fi
3427if test -z "$have_local_lib" -a -d /usr/local/lib; then
3428  tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3429  if test "$tt" = "$LDFLAGS"; then
3430    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3431  fi
3432fi
3433if test -z "$have_local_include" -a -d /usr/local/include; then
3434  tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3435  if test "$tt" = "$CPPFLAGS"; then
3436    CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3437  fi
3438fi
3439
3440echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3441echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3442
3443# Check whether --with-vim-name or --without-vim-name was given.
3444if test "${with_vim_name+set}" = set; then
3445  withval="$with_vim_name"
3446  VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3447echo "${ECHO_T}$VIMNAME" >&6
3448else
3449  VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
3450echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3451fi;
3452
3453echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3454echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
3455
3456# Check whether --with-ex-name or --without-ex-name was given.
3457if test "${with_ex_name+set}" = set; then
3458  withval="$with_ex_name"
3459  EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3460echo "${ECHO_T}$EXNAME" >&6
3461else
3462  EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3463echo "${ECHO_T}Defaulting to ex" >&6
3464fi;
3465
3466echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3467echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
3468
3469# Check whether --with-view-name or --without-view-name was given.
3470if test "${with_view_name+set}" = set; then
3471  withval="$with_view_name"
3472  VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3473echo "${ECHO_T}$VIEWNAME" >&6
3474else
3475  VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3476echo "${ECHO_T}Defaulting to view" >&6
3477fi;
3478
3479
3480echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3481echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
3482
3483# Check whether --with-global-runtime or --without-global-runtime was given.
3484if test "${with_global_runtime+set}" = set; then
3485  withval="$with_global_runtime"
3486  echo "$as_me:$LINENO: result: $withval" >&5
3487echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3488#define RUNTIME_GLOBAL "$withval"
3489_ACEOF
3490
3491else
3492  echo "$as_me:$LINENO: result: no" >&5
3493echo "${ECHO_T}no" >&6
3494fi;
3495
3496echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3497echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
3498
3499# Check whether --with-modified-by or --without-modified-by was given.
3500if test "${with_modified_by+set}" = set; then
3501  withval="$with_modified_by"
3502  echo "$as_me:$LINENO: result: $withval" >&5
3503echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3504#define MODIFIED_BY "$withval"
3505_ACEOF
3506
3507else
3508  echo "$as_me:$LINENO: result: no" >&5
3509echo "${ECHO_T}no" >&6
3510fi;
3511
3512echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3513echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3514cat >conftest.$ac_ext <<_ACEOF
3515/* confdefs.h.  */
3516_ACEOF
3517cat confdefs.h >>conftest.$ac_ext
3518cat >>conftest.$ac_ext <<_ACEOF
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524 /* TryCompile function for CharSet.
3525   Treat any failure as ASCII for compatibility with existing art.
3526   Use compile-time rather than run-time tests for cross-compiler
3527   tolerance.  */
3528#if '0'!=240
3529make an error "Character set is not EBCDIC"
3530#endif
3531  ;
3532  return 0;
3533}
3534_ACEOF
3535rm -f conftest.$ac_objext
3536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537  (eval $ac_compile) 2>conftest.er1
3538  ac_status=$?
3539  grep -v '^ *+' conftest.er1 >conftest.err
3540  rm -f conftest.er1
3541  cat conftest.err >&5
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); } &&
3544	 { ac_try='test -z "$ac_c_werror_flag"
3545			 || test ! -s conftest.err'
3546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547  (eval $ac_try) 2>&5
3548  ac_status=$?
3549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550  (exit $ac_status); }; } &&
3551	 { ac_try='test -s conftest.$ac_objext'
3552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553  (eval $ac_try) 2>&5
3554  ac_status=$?
3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); }; }; then
3557   # TryCompile action if true
3558cf_cv_ebcdic=yes
3559else
3560  echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 # TryCompile action if false
3564cf_cv_ebcdic=no
3565fi
3566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3567# end of TryCompile ])
3568# end of CacheVal CvEbcdic
3569echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3570echo "${ECHO_T}$cf_cv_ebcdic" >&6
3571case "$cf_cv_ebcdic" in  #(vi
3572    yes)	cat >>confdefs.h <<\_ACEOF
3573#define EBCDIC 1
3574_ACEOF
3575
3576		line_break='"\\n"'
3577		;;
3578    *)		line_break='"\\012"';;
3579esac
3580
3581
3582if test "$cf_cv_ebcdic" = "yes"; then
3583echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3584echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3585case `uname` in
3586    OS/390)	OS390Unix="yes";
3587										if test "$CC" = "cc"; then
3588		  ccm="$_CC_CCMODE"
3589		  ccn="CC"
3590		else
3591		  if test "$CC" = "c89"; then
3592		    ccm="$_CC_C89MODE"
3593		    ccn="C89"
3594		  else
3595		    ccm=1
3596		  fi
3597		fi
3598		if test "$ccm" != "1"; then
3599		  echo ""
3600		  echo "------------------------------------------"
3601		  echo " On OS/390 Unix, the environment variable"
3602		  echo " __CC_${ccn}MODE must be set to \"1\"!"
3603		  echo " Do:"
3604		  echo "    export _CC_${ccn}MODE=1"
3605		  echo " and then call configure again."
3606		  echo "------------------------------------------"
3607		  exit 1
3608		fi
3609		CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
3610		echo "$as_me:$LINENO: result: yes" >&5
3611echo "${ECHO_T}yes" >&6
3612		;;
3613    *)		OS390Unix="no";
3614		echo "$as_me:$LINENO: result: no" >&5
3615echo "${ECHO_T}no" >&6
3616		;;
3617esac
3618fi
3619
3620
3621
3622echo "$as_me:$LINENO: checking --with-features argument" >&5
3623echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3624
3625# Check whether --with-features or --without-features was given.
3626if test "${with_features+set}" = set; then
3627  withval="$with_features"
3628  features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3629echo "${ECHO_T}$features" >&6
3630else
3631  features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3632echo "${ECHO_T}Defaulting to normal" >&6
3633fi;
3634
3635dovimdiff=""
3636dogvimdiff=""
3637case "$features" in
3638  tiny)		cat >>confdefs.h <<\_ACEOF
3639#define FEAT_TINY 1
3640_ACEOF
3641 ;;
3642  small)	cat >>confdefs.h <<\_ACEOF
3643#define FEAT_SMALL 1
3644_ACEOF
3645 ;;
3646  normal)	cat >>confdefs.h <<\_ACEOF
3647#define FEAT_NORMAL 1
3648_ACEOF
3649 dovimdiff="installvimdiff";
3650			dogvimdiff="installgvimdiff" ;;
3651  big)		cat >>confdefs.h <<\_ACEOF
3652#define FEAT_BIG 1
3653_ACEOF
3654 dovimdiff="installvimdiff";
3655			dogvimdiff="installgvimdiff" ;;
3656  huge)		cat >>confdefs.h <<\_ACEOF
3657#define FEAT_HUGE 1
3658_ACEOF
3659 dovimdiff="installvimdiff";
3660			dogvimdiff="installgvimdiff" ;;
3661  *)		echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3662echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
3663esac
3664
3665
3666
3667
3668echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3669echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3670
3671# Check whether --with-compiledby or --without-compiledby was given.
3672if test "${with_compiledby+set}" = set; then
3673  withval="$with_compiledby"
3674  compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3675echo "${ECHO_T}$withval" >&6
3676else
3677  compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3678echo "${ECHO_T}no" >&6
3679fi;
3680
3681
3682echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3683echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
3684# Check whether --enable-xsmp or --disable-xsmp was given.
3685if test "${enable_xsmp+set}" = set; then
3686  enableval="$enable_xsmp"
3687
3688else
3689  enable_xsmp="yes"
3690fi;
3691
3692if test "$enable_xsmp" = "yes"; then
3693  echo "$as_me:$LINENO: result: no" >&5
3694echo "${ECHO_T}no" >&6
3695  echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3696echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
3697  # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3698if test "${enable_xsmp_interact+set}" = set; then
3699  enableval="$enable_xsmp_interact"
3700
3701else
3702  enable_xsmp_interact="yes"
3703fi;
3704  if test "$enable_xsmp_interact" = "yes"; then
3705    echo "$as_me:$LINENO: result: no" >&5
3706echo "${ECHO_T}no" >&6
3707    cat >>confdefs.h <<\_ACEOF
3708#define USE_XSMP_INTERACT 1
3709_ACEOF
3710
3711  else
3712    echo "$as_me:$LINENO: result: yes" >&5
3713echo "${ECHO_T}yes" >&6
3714  fi
3715else
3716  echo "$as_me:$LINENO: result: yes" >&5
3717echo "${ECHO_T}yes" >&6
3718fi
3719
3720echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3721echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
3722# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3723if test "${enable_mzschemeinterp+set}" = set; then
3724  enableval="$enable_mzschemeinterp"
3725
3726else
3727  enable_mzschemeinterp="no"
3728fi;
3729echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3730echo "${ECHO_T}$enable_mzschemeinterp" >&6
3731
3732if test "$enable_mzschemeinterp" = "yes"; then
3733
3734
3735  echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3736echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3737
3738# Check whether --with-plthome or --without-plthome was given.
3739if test "${with_plthome+set}" = set; then
3740  withval="$with_plthome"
3741  with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3742echo "${ECHO_T}$with_plthome" >&6
3743else
3744  with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3745echo "${ECHO_T}\"no\"" >&6
3746fi;
3747
3748  if test "X$with_plthome" != "X"; then
3749       vi_cv_path_mzscheme_pfx="$with_plthome"
3750  else
3751    echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3752echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
3753    if test "X$PLTHOME" != "X"; then
3754	echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3755echo "${ECHO_T}\"$PLTHOME\"" >&6
3756        vi_cv_path_mzscheme_pfx="$PLTHOME"
3757    else
3758	echo "$as_me:$LINENO: result: \"not set\"" >&5
3759echo "${ECHO_T}\"not set\"" >&6
3760	        # Extract the first word of "mzscheme", so it can be a program name with args.
3761set dummy mzscheme; ac_word=$2
3762echo "$as_me:$LINENO: checking for $ac_word" >&5
3763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3764if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  case $vi_cv_path_mzscheme in
3768  [\\/]* | ?:[\\/]*)
3769  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3770  ;;
3771  *)
3772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775  IFS=$as_save_IFS
3776  test -z "$as_dir" && as_dir=.
3777  for ac_exec_ext in '' $ac_executable_extensions; do
3778  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781    break 2
3782  fi
3783done
3784done
3785
3786  ;;
3787esac
3788fi
3789vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3790
3791if test -n "$vi_cv_path_mzscheme"; then
3792  echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3793echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
3794else
3795  echo "$as_me:$LINENO: result: no" >&5
3796echo "${ECHO_T}no" >&6
3797fi
3798
3799
3800		        if test "X$vi_cv_path_mzscheme" != "X"; then
3801	  lsout=`ls -l $vi_cv_path_mzscheme`
3802	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3803	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3804	  fi
3805	fi
3806
3807        if test "X$vi_cv_path_mzscheme" != "X"; then
3808                        echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3809echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3810if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3811  echo $ECHO_N "(cached) $ECHO_C" >&6
3812else
3813   vi_cv_path_mzscheme_pfx=`
3814      	    ${vi_cv_path_mzscheme} -evm \
3815            "(display (simplify-path		\
3816              (build-path (call-with-values	\
3817      	        (lambda () (split-path (find-system-path (quote exec-file)))) \
3818      	        (lambda (base name must-be-dir?) base)) (quote up))))"`
3819fi
3820echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3821echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
3822	    	    vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3823        fi
3824    fi
3825  fi
3826
3827  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3828    echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3829echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6
3830    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
3831      echo "$as_me:$LINENO: result: \"yes\"" >&5
3832echo "${ECHO_T}\"yes\"" >&6
3833    else
3834      echo "$as_me:$LINENO: result: \"no\"" >&5
3835echo "${ECHO_T}\"no\"" >&6
3836      vi_cv_path_mzscheme_pfx=
3837    fi
3838  fi
3839
3840  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3841    if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3842      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3843    else
3844      MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
3845      if test "$GCC" = yes; then
3846		        MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
3847      elif test "`(uname) 2>/dev/null`" = SunOS &&
3848			       uname -r | grep '^5' >/dev/null; then
3849	MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
3850      fi
3851    fi
3852    MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include   \
3853      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3854    MZSCHEME_SRC="if_mzsch.c"
3855    MZSCHEME_OBJ="objects/if_mzsch.o"
3856    MZSCHEME_PRO="if_mzsch.pro"
3857    cat >>confdefs.h <<\_ACEOF
3858#define FEAT_MZSCHEME 1
3859_ACEOF
3860
3861  fi
3862
3863
3864
3865
3866
3867fi
3868
3869
3870echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3871echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
3872# Check whether --enable-perlinterp or --disable-perlinterp was given.
3873if test "${enable_perlinterp+set}" = set; then
3874  enableval="$enable_perlinterp"
3875
3876else
3877  enable_perlinterp="no"
3878fi;
3879echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3880echo "${ECHO_T}$enable_perlinterp" >&6
3881if test "$enable_perlinterp" = "yes"; then
3882
3883  # Extract the first word of "perl", so it can be a program name with args.
3884set dummy perl; ac_word=$2
3885echo "$as_me:$LINENO: checking for $ac_word" >&5
3886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3888  echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890  case $vi_cv_path_perl in
3891  [\\/]* | ?:[\\/]*)
3892  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3893  ;;
3894  *)
3895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898  IFS=$as_save_IFS
3899  test -z "$as_dir" && as_dir=.
3900  for ac_exec_ext in '' $ac_executable_extensions; do
3901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904    break 2
3905  fi
3906done
3907done
3908
3909  ;;
3910esac
3911fi
3912vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3913
3914if test -n "$vi_cv_path_perl"; then
3915  echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3916echo "${ECHO_T}$vi_cv_path_perl" >&6
3917else
3918  echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6
3920fi
3921
3922  if test "X$vi_cv_path_perl" != "X"; then
3923    echo "$as_me:$LINENO: checking Perl version" >&5
3924echo $ECHO_N "checking Perl version... $ECHO_C" >&6
3925    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3926     eval `$vi_cv_path_perl -V:usethreads`
3927     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3928       badthreads=no
3929     else
3930       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3931	 eval `$vi_cv_path_perl -V:use5005threads`
3932	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3933	   badthreads=no
3934	 else
3935	   badthreads=yes
3936	   echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3937echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
3938	 fi
3939       else
3940	 badthreads=yes
3941	 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3942echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
3943       fi
3944     fi
3945     if test $badthreads = no; then
3946      echo "$as_me:$LINENO: result: OK" >&5
3947echo "${ECHO_T}OK" >&6
3948      eval `$vi_cv_path_perl -V:shrpenv`
3949      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3950	shrpenv=""
3951      fi
3952      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
3953
3954            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3955	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3956            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3957		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3958			-e 's/-bE:perl.exp//' -e 's/-lc //'`
3959                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3960		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3961
3962                  echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3963echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
3964      cflags_save=$CFLAGS
3965      libs_save=$LIBS
3966      ldflags_save=$LDFLAGS
3967      CFLAGS="$CFLAGS $perlcppflags"
3968      LIBS="$LIBS $perllibs"
3969      LDFLAGS="$perlldflags $LDFLAGS"
3970      cat >conftest.$ac_ext <<_ACEOF
3971/* confdefs.h.  */
3972_ACEOF
3973cat confdefs.h >>conftest.$ac_ext
3974cat >>conftest.$ac_ext <<_ACEOF
3975/* end confdefs.h.  */
3976
3977int
3978main ()
3979{
3980
3981  ;
3982  return 0;
3983}
3984_ACEOF
3985rm -f conftest.$ac_objext conftest$ac_exeext
3986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3987  (eval $ac_link) 2>conftest.er1
3988  ac_status=$?
3989  grep -v '^ *+' conftest.er1 >conftest.err
3990  rm -f conftest.er1
3991  cat conftest.err >&5
3992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993  (exit $ac_status); } &&
3994	 { ac_try='test -z "$ac_c_werror_flag"
3995			 || test ! -s conftest.err'
3996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997  (eval $ac_try) 2>&5
3998  ac_status=$?
3999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000  (exit $ac_status); }; } &&
4001	 { ac_try='test -s conftest$ac_exeext'
4002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003  (eval $ac_try) 2>&5
4004  ac_status=$?
4005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006  (exit $ac_status); }; }; then
4007  echo "$as_me:$LINENO: result: yes" >&5
4008echo "${ECHO_T}yes" >&6; perl_ok=yes
4009else
4010  echo "$as_me: failed program was:" >&5
4011sed 's/^/| /' conftest.$ac_ext >&5
4012
4013echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4014echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
4015fi
4016rm -f conftest.err conftest.$ac_objext \
4017      conftest$ac_exeext conftest.$ac_ext
4018      CFLAGS=$cflags_save
4019      LIBS=$libs_save
4020      LDFLAGS=$ldflags_save
4021      if test $perl_ok = yes; then
4022	if test "X$perlcppflags" != "X"; then
4023	  PERL_CFLAGS="$perlcppflags"
4024	fi
4025	if test "X$perlldflags" != "X"; then
4026	  LDFLAGS="$perlldflags $LDFLAGS"
4027	fi
4028	PERL_LIBS=$perllibs
4029	PERL_SRC="auto/if_perl.c if_perlsfio.c"
4030	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4031	PERL_PRO="if_perl.pro if_perlsfio.pro"
4032	cat >>confdefs.h <<\_ACEOF
4033#define FEAT_PERL 1
4034_ACEOF
4035
4036      fi
4037     fi
4038    else
4039      echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4040echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
4041    fi
4042  fi
4043
4044  if test "x$MACOSX" = "xyes"; then
4045        dir=/System/Library/Perl
4046    darwindir=$dir/darwin
4047    if test -d $darwindir; then
4048      PERL=/usr/bin/perl
4049    else
4050            dir=/System/Library/Perl/5.8.1
4051      darwindir=$dir/darwin-thread-multi-2level
4052      if test -d $darwindir; then
4053	PERL=/usr/bin/perl
4054      fi
4055    fi
4056    if test -n "$PERL"; then
4057      PERL_DIR="$dir"
4058      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4059      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4060      PERL_LIBS="-L$darwindir/CORE -lperl"
4061    fi
4062  fi
4063fi
4064
4065
4066
4067
4068
4069
4070
4071echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4072echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
4073# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4074if test "${enable_pythoninterp+set}" = set; then
4075  enableval="$enable_pythoninterp"
4076
4077else
4078  enable_pythoninterp="no"
4079fi;
4080echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4081echo "${ECHO_T}$enable_pythoninterp" >&6
4082if test "$enable_pythoninterp" = "yes"; then
4083    # Extract the first word of "python", so it can be a program name with args.
4084set dummy python; ac_word=$2
4085echo "$as_me:$LINENO: checking for $ac_word" >&5
4086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4088  echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090  case $vi_cv_path_python in
4091  [\\/]* | ?:[\\/]*)
4092  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4093  ;;
4094  *)
4095  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098  IFS=$as_save_IFS
4099  test -z "$as_dir" && as_dir=.
4100  for ac_exec_ext in '' $ac_executable_extensions; do
4101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104    break 2
4105  fi
4106done
4107done
4108
4109  ;;
4110esac
4111fi
4112vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4113
4114if test -n "$vi_cv_path_python"; then
4115  echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4116echo "${ECHO_T}$vi_cv_path_python" >&6
4117else
4118  echo "$as_me:$LINENO: result: no" >&5
4119echo "${ECHO_T}no" >&6
4120fi
4121
4122  if test "X$vi_cv_path_python" != "X"; then
4123
4124        echo "$as_me:$LINENO: checking Python version" >&5
4125echo $ECHO_N "checking Python version... $ECHO_C" >&6
4126if test "${vi_cv_var_python_version+set}" = set; then
4127  echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129  vi_cv_var_python_version=`
4130	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
4131
4132fi
4133echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4134echo "${ECHO_T}$vi_cv_var_python_version" >&6
4135
4136        echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4137echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
4138    if ${vi_cv_path_python} -c \
4139	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4140    then
4141      echo "$as_me:$LINENO: result: yep" >&5
4142echo "${ECHO_T}yep" >&6
4143
4144            echo "$as_me:$LINENO: checking Python's install prefix" >&5
4145echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4146if test "${vi_cv_path_python_pfx+set}" = set; then
4147  echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149   vi_cv_path_python_pfx=`
4150	    ${vi_cv_path_python} -c \
4151		"import sys; print sys.prefix"`
4152fi
4153echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4154echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
4155
4156            echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4157echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4158if test "${vi_cv_path_python_epfx+set}" = set; then
4159  echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161   vi_cv_path_python_epfx=`
4162	    ${vi_cv_path_python} -c \
4163		"import sys; print sys.exec_prefix"`
4164fi
4165echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4166echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
4167
4168
4169      if test "${vi_cv_path_pythonpath+set}" = set; then
4170  echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172   vi_cv_path_pythonpath=`
4173	    unset PYTHONPATH;
4174	    ${vi_cv_path_python} -c \
4175		"import sys, string; print string.join(sys.path,':')"`
4176fi
4177
4178
4179
4180
4181# Check whether --with-python-config-dir or --without-python-config-dir was given.
4182if test "${with_python_config_dir+set}" = set; then
4183  withval="$with_python_config_dir"
4184   vi_cv_path_python_conf="${withval}"
4185fi;
4186
4187      echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4188echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4189if test "${vi_cv_path_python_conf+set}" = set; then
4190  echo $ECHO_N "(cached) $ECHO_C" >&6
4191else
4192
4193	vi_cv_path_python_conf=
4194	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4195	  for subdir in lib share; do
4196	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4197	    if test -d "$d" && test -f "$d/config.c"; then
4198	      vi_cv_path_python_conf="$d"
4199	    fi
4200	  done
4201	done
4202
4203fi
4204echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4205echo "${ECHO_T}$vi_cv_path_python_conf" >&6
4206
4207      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4208
4209      if test "X$PYTHON_CONFDIR" = "X"; then
4210	echo "$as_me:$LINENO: result: can't find it!" >&5
4211echo "${ECHO_T}can't find it!" >&6
4212      else
4213
4214			if test "${vi_cv_path_python_plibs+set}" = set; then
4215  echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217
4218	    tmp_mkf="/tmp/Makefile-conf$$"
4219	    cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4220__:
4221	@echo "python_MODLIBS='$(MODLIBS)'"
4222	@echo "python_LIBS='$(LIBS)'"
4223	@echo "python_SYSLIBS='$(SYSLIBS)'"
4224	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4225eof
4226	    	    eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4227	    rm -f ${tmp_mkf}
4228	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4229		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4230	      vi_cv_path_python_plibs="-framework Python"
4231	    else
4232	      if test "${vi_cv_var_python_version}" = "1.4"; then
4233		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4234	      else
4235		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4236	      fi
4237	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4238	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4239	    fi
4240
4241fi
4242
4243
4244	PYTHON_LIBS="${vi_cv_path_python_plibs}"
4245	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4246	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4247	else
4248	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
4249	fi
4250	PYTHON_SRC="if_python.c"
4251		if test "x$MACOSX" = "xyes"; then
4252	  PYTHON_OBJ="objects/if_python.o"
4253	else
4254	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4255	fi
4256	if test "${vi_cv_var_python_version}" = "1.4"; then
4257	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4258	fi
4259	PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4260
4261								echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4262echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
4263	threadsafe_flag=
4264	thread_lib=
4265	if test "x$MACOSX" != "xyes"; then
4266	  test "$GCC" = yes && threadsafe_flag="-pthread"
4267	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
4268	    threadsafe_flag="-D_THREAD_SAFE"
4269	    thread_lib="-pthread"
4270	  fi
4271	fi
4272	libs_save_old=$LIBS
4273	if test -n "$threadsafe_flag"; then
4274	  cflags_save=$CFLAGS
4275	  CFLAGS="$CFLAGS $threadsafe_flag"
4276	  LIBS="$LIBS $thread_lib"
4277	  cat >conftest.$ac_ext <<_ACEOF
4278/* confdefs.h.  */
4279_ACEOF
4280cat confdefs.h >>conftest.$ac_ext
4281cat >>conftest.$ac_ext <<_ACEOF
4282/* end confdefs.h.  */
4283
4284int
4285main ()
4286{
4287
4288  ;
4289  return 0;
4290}
4291_ACEOF
4292rm -f conftest.$ac_objext conftest$ac_exeext
4293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4294  (eval $ac_link) 2>conftest.er1
4295  ac_status=$?
4296  grep -v '^ *+' conftest.er1 >conftest.err
4297  rm -f conftest.er1
4298  cat conftest.err >&5
4299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300  (exit $ac_status); } &&
4301	 { ac_try='test -z "$ac_c_werror_flag"
4302			 || test ! -s conftest.err'
4303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304  (eval $ac_try) 2>&5
4305  ac_status=$?
4306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307  (exit $ac_status); }; } &&
4308	 { ac_try='test -s conftest$ac_exeext'
4309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310  (eval $ac_try) 2>&5
4311  ac_status=$?
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); }; }; then
4314  echo "$as_me:$LINENO: result: yes" >&5
4315echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
4316else
4317  echo "$as_me: failed program was:" >&5
4318sed 's/^/| /' conftest.$ac_ext >&5
4319
4320echo "$as_me:$LINENO: result: no" >&5
4321echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4322
4323fi
4324rm -f conftest.err conftest.$ac_objext \
4325      conftest$ac_exeext conftest.$ac_ext
4326	  CFLAGS=$cflags_save
4327	else
4328	  echo "$as_me:$LINENO: result: no" >&5
4329echo "${ECHO_T}no" >&6
4330	fi
4331
4332			echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4333echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
4334	cflags_save=$CFLAGS
4335	libs_save=$LIBS
4336	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4337	LIBS="$LIBS $PYTHON_LIBS"
4338	cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h.  */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h.  */
4344
4345int
4346main ()
4347{
4348
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353rm -f conftest.$ac_objext conftest$ac_exeext
4354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355  (eval $ac_link) 2>conftest.er1
4356  ac_status=$?
4357  grep -v '^ *+' conftest.er1 >conftest.err
4358  rm -f conftest.er1
4359  cat conftest.err >&5
4360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361  (exit $ac_status); } &&
4362	 { ac_try='test -z "$ac_c_werror_flag"
4363			 || test ! -s conftest.err'
4364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365  (eval $ac_try) 2>&5
4366  ac_status=$?
4367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368  (exit $ac_status); }; } &&
4369	 { ac_try='test -s conftest$ac_exeext'
4370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371  (eval $ac_try) 2>&5
4372  ac_status=$?
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); }; }; then
4375  echo "$as_me:$LINENO: result: yes" >&5
4376echo "${ECHO_T}yes" >&6; python_ok=yes
4377else
4378  echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4382echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
4383fi
4384rm -f conftest.err conftest.$ac_objext \
4385      conftest$ac_exeext conftest.$ac_ext
4386	CFLAGS=$cflags_save
4387	LIBS=$libs_save
4388	if test $python_ok = yes; then
4389	  cat >>confdefs.h <<\_ACEOF
4390#define FEAT_PYTHON 1
4391_ACEOF
4392
4393	else
4394	  LIBS=$libs_save_old
4395	  PYTHON_SRC=
4396	  PYTHON_OBJ=
4397	  PYTHON_LIBS=
4398	  PYTHON_CFLAGS=
4399	fi
4400
4401      fi
4402    else
4403      echo "$as_me:$LINENO: result: too old" >&5
4404echo "${ECHO_T}too old" >&6
4405    fi
4406  fi
4407fi
4408
4409
4410
4411
4412
4413
4414
4415echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4416echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
4417# Check whether --enable-tclinterp or --disable-tclinterp was given.
4418if test "${enable_tclinterp+set}" = set; then
4419  enableval="$enable_tclinterp"
4420
4421else
4422  enable_tclinterp="no"
4423fi;
4424echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4425echo "${ECHO_T}$enable_tclinterp" >&6
4426
4427if test "$enable_tclinterp" = "yes"; then
4428
4429    echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4430echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4431
4432# Check whether --with-tclsh or --without-tclsh was given.
4433if test "${with_tclsh+set}" = set; then
4434  withval="$with_tclsh"
4435  tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4436echo "${ECHO_T}$tclsh_name" >&6
4437else
4438  tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6
4440fi;
4441  # Extract the first word of "$tclsh_name", so it can be a program name with args.
4442set dummy $tclsh_name; ac_word=$2
4443echo "$as_me:$LINENO: checking for $ac_word" >&5
4444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4446  echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448  case $vi_cv_path_tcl in
4449  [\\/]* | ?:[\\/]*)
4450  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4451  ;;
4452  *)
4453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456  IFS=$as_save_IFS
4457  test -z "$as_dir" && as_dir=.
4458  for ac_exec_ext in '' $ac_executable_extensions; do
4459  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4461    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462    break 2
4463  fi
4464done
4465done
4466
4467  ;;
4468esac
4469fi
4470vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4471
4472if test -n "$vi_cv_path_tcl"; then
4473  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4474echo "${ECHO_T}$vi_cv_path_tcl" >&6
4475else
4476  echo "$as_me:$LINENO: result: no" >&5
4477echo "${ECHO_T}no" >&6
4478fi
4479
4480
4481
4482    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
4483    tclsh_name="tclsh8.2"
4484    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4485set dummy $tclsh_name; ac_word=$2
4486echo "$as_me:$LINENO: checking for $ac_word" >&5
4487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4488if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4489  echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
4491  case $vi_cv_path_tcl in
4492  [\\/]* | ?:[\\/]*)
4493  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4494  ;;
4495  *)
4496  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497for as_dir in $PATH
4498do
4499  IFS=$as_save_IFS
4500  test -z "$as_dir" && as_dir=.
4501  for ac_exec_ext in '' $ac_executable_extensions; do
4502  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4503    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4504    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505    break 2
4506  fi
4507done
4508done
4509
4510  ;;
4511esac
4512fi
4513vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4514
4515if test -n "$vi_cv_path_tcl"; then
4516  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4517echo "${ECHO_T}$vi_cv_path_tcl" >&6
4518else
4519  echo "$as_me:$LINENO: result: no" >&5
4520echo "${ECHO_T}no" >&6
4521fi
4522
4523  fi
4524  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4525    tclsh_name="tclsh8.0"
4526    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4527set dummy $tclsh_name; ac_word=$2
4528echo "$as_me:$LINENO: checking for $ac_word" >&5
4529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4531  echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533  case $vi_cv_path_tcl in
4534  [\\/]* | ?:[\\/]*)
4535  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4536  ;;
4537  *)
4538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541  IFS=$as_save_IFS
4542  test -z "$as_dir" && as_dir=.
4543  for ac_exec_ext in '' $ac_executable_extensions; do
4544  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547    break 2
4548  fi
4549done
4550done
4551
4552  ;;
4553esac
4554fi
4555vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4556
4557if test -n "$vi_cv_path_tcl"; then
4558  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4559echo "${ECHO_T}$vi_cv_path_tcl" >&6
4560else
4561  echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6
4563fi
4564
4565  fi
4566    if test "X$vi_cv_path_tcl" = "X"; then
4567    tclsh_name="tclsh"
4568    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4569set dummy $tclsh_name; ac_word=$2
4570echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4572if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4573  echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575  case $vi_cv_path_tcl in
4576  [\\/]* | ?:[\\/]*)
4577  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4578  ;;
4579  *)
4580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583  IFS=$as_save_IFS
4584  test -z "$as_dir" && as_dir=.
4585  for ac_exec_ext in '' $ac_executable_extensions; do
4586  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589    break 2
4590  fi
4591done
4592done
4593
4594  ;;
4595esac
4596fi
4597vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4598
4599if test -n "$vi_cv_path_tcl"; then
4600  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4601echo "${ECHO_T}$vi_cv_path_tcl" >&6
4602else
4603  echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6
4605fi
4606
4607  fi
4608  if test "X$vi_cv_path_tcl" != "X"; then
4609    echo "$as_me:$LINENO: checking Tcl version" >&5
4610echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
4611    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4612      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
4613      echo "$as_me:$LINENO: result: $tclver - OK" >&5
4614echo "${ECHO_T}$tclver - OK" >&6;
4615      tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
4616
4617      echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4618echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
4619      if test "x$MACOSX" != "xyes"; then
4620	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
4621      else
4622		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4623      fi
4624      for try in $tclinc; do
4625	if test -f "$try/tcl.h"; then
4626	  echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4627echo "${ECHO_T}$try/tcl.h" >&6
4628	  TCL_INC=$try
4629	  break
4630	fi
4631      done
4632      if test -z "$TCL_INC"; then
4633	echo "$as_me:$LINENO: result: <not found>" >&5
4634echo "${ECHO_T}<not found>" >&6
4635	SKIP_TCL=YES
4636      fi
4637      if test -z "$SKIP_TCL"; then
4638	echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4639echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
4640	if test "x$MACOSX" != "xyes"; then
4641	  tclcnf=`echo $tclinc | sed s/include/lib/g`
4642	else
4643	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
4644	fi
4645	for try in $tclcnf; do
4646	  if test -f $try/tclConfig.sh; then
4647	    echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4648echo "${ECHO_T}$try/tclConfig.sh" >&6
4649	    . $try/tclConfig.sh
4650	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
4651	    	    	    TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
4652	    break
4653	  fi
4654	done
4655	if test -z "$TCL_LIBS"; then
4656	  echo "$as_me:$LINENO: result: <not found>" >&5
4657echo "${ECHO_T}<not found>" >&6
4658	  echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4659echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
4660	  tcllib=`echo $tclinc | sed s/include/lib/g`
4661	  for ext in .so .a ; do
4662	    for ver in "" $tclver ; do
4663	      for try in $tcllib ; do
4664		trylib=tcl$ver$ext
4665		if test -f $try/lib$trylib ; then
4666		  echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4667echo "${ECHO_T}$try/lib$trylib" >&6
4668		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4669		  if test "`(uname) 2>/dev/null`" = SunOS &&
4670					 uname -r | grep '^5' >/dev/null; then
4671		    TCL_LIBS="$TCL_LIBS -R $try"
4672		  fi
4673		  break 3
4674		fi
4675	      done
4676	    done
4677	  done
4678	  if test -z "$TCL_LIBS"; then
4679	    echo "$as_me:$LINENO: result: <not found>" >&5
4680echo "${ECHO_T}<not found>" >&6
4681	    SKIP_TCL=YES
4682	  fi
4683	fi
4684	if test -z "$SKIP_TCL"; then
4685	  cat >>confdefs.h <<\_ACEOF
4686#define FEAT_TCL 1
4687_ACEOF
4688
4689	  TCL_SRC=if_tcl.c
4690	  TCL_OBJ=objects/if_tcl.o
4691	  TCL_PRO=if_tcl.pro
4692	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4693	fi
4694      fi
4695    else
4696      echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4697echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
4698    fi
4699  fi
4700fi
4701
4702
4703
4704
4705
4706
4707echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4708echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
4709# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4710if test "${enable_rubyinterp+set}" = set; then
4711  enableval="$enable_rubyinterp"
4712
4713else
4714  enable_rubyinterp="no"
4715fi;
4716echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4717echo "${ECHO_T}$enable_rubyinterp" >&6
4718if test "$enable_rubyinterp" = "yes"; then
4719
4720  # Extract the first word of "ruby", so it can be a program name with args.
4721set dummy ruby; ac_word=$2
4722echo "$as_me:$LINENO: checking for $ac_word" >&5
4723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4725  echo $ECHO_N "(cached) $ECHO_C" >&6
4726else
4727  case $vi_cv_path_ruby in
4728  [\\/]* | ?:[\\/]*)
4729  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4730  ;;
4731  *)
4732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735  IFS=$as_save_IFS
4736  test -z "$as_dir" && as_dir=.
4737  for ac_exec_ext in '' $ac_executable_extensions; do
4738  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741    break 2
4742  fi
4743done
4744done
4745
4746  ;;
4747esac
4748fi
4749vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4750
4751if test -n "$vi_cv_path_ruby"; then
4752  echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4753echo "${ECHO_T}$vi_cv_path_ruby" >&6
4754else
4755  echo "$as_me:$LINENO: result: no" >&5
4756echo "${ECHO_T}no" >&6
4757fi
4758
4759  if test "X$vi_cv_path_ruby" != "X"; then
4760    echo "$as_me:$LINENO: checking Ruby version" >&5
4761echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
4762    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
4763      echo "$as_me:$LINENO: result: OK" >&5
4764echo "${ECHO_T}OK" >&6
4765      echo "$as_me:$LINENO: checking Ruby header files" >&5
4766echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
4767      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4768      if test "X$rubyhdrdir" != "X"; then
4769	echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4770echo "${ECHO_T}$rubyhdrdir" >&6
4771	RUBY_CFLAGS="-I$rubyhdrdir"
4772	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4773	if test "X$rubylibs" != "X"; then
4774	  RUBY_LIBS="$rubylibs"
4775	fi
4776	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4777	if test -f "$rubyhdrdir/$librubyarg"; then
4778	  librubyarg="$rubyhdrdir/$librubyarg"
4779	else
4780	  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4781	  if test -f "$rubylibdir/$librubyarg"; then
4782	    librubyarg="$rubylibdir/$librubyarg"
4783	  elif test "$librubyarg" = "libruby.a"; then
4784	    	    librubyarg="-lruby"
4785	  else
4786	    librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4787	  fi
4788	fi
4789
4790	if test "X$librubyarg" != "X"; then
4791	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
4792	fi
4793	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4794	if test "X$rubyldflags" != "X"; then
4795	  LDFLAGS="$rubyldflags $LDFLAGS"
4796	fi
4797	RUBY_SRC="if_ruby.c"
4798	RUBY_OBJ="objects/if_ruby.o"
4799	RUBY_PRO="if_ruby.pro"
4800	cat >>confdefs.h <<\_ACEOF
4801#define FEAT_RUBY 1
4802_ACEOF
4803
4804      else
4805	echo "$as_me:$LINENO: result: not found" >&5
4806echo "${ECHO_T}not found" >&6
4807      fi
4808    else
4809      echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4810echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
4811    fi
4812  fi
4813fi
4814
4815
4816
4817
4818
4819
4820echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4821echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
4822# Check whether --enable-cscope or --disable-cscope was given.
4823if test "${enable_cscope+set}" = set; then
4824  enableval="$enable_cscope"
4825
4826else
4827  enable_cscope="no"
4828fi;
4829echo "$as_me:$LINENO: result: $enable_cscope" >&5
4830echo "${ECHO_T}$enable_cscope" >&6
4831if test "$enable_cscope" = "yes"; then
4832  cat >>confdefs.h <<\_ACEOF
4833#define FEAT_CSCOPE 1
4834_ACEOF
4835
4836fi
4837
4838echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4839echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
4840# Check whether --enable-workshop or --disable-workshop was given.
4841if test "${enable_workshop+set}" = set; then
4842  enableval="$enable_workshop"
4843
4844else
4845  enable_workshop="no"
4846fi;
4847echo "$as_me:$LINENO: result: $enable_workshop" >&5
4848echo "${ECHO_T}$enable_workshop" >&6
4849if test "$enable_workshop" = "yes"; then
4850  cat >>confdefs.h <<\_ACEOF
4851#define FEAT_SUN_WORKSHOP 1
4852_ACEOF
4853
4854  WORKSHOP_SRC="workshop.c integration.c"
4855
4856  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
4857
4858  if test "${enable_gui-xxx}" = xxx; then
4859    enable_gui=motif
4860  fi
4861fi
4862
4863echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4864echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
4865# Check whether --enable-netbeans or --disable-netbeans was given.
4866if test "${enable_netbeans+set}" = set; then
4867  enableval="$enable_netbeans"
4868
4869else
4870  enable_netbeans="yes"
4871fi;
4872if test "$enable_netbeans" = "yes"; then
4873  echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6
4875
4876echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4877echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4878if test "${ac_cv_lib_socket_socket+set}" = set; then
4879  echo $ECHO_N "(cached) $ECHO_C" >&6
4880else
4881  ac_check_lib_save_LIBS=$LIBS
4882LIBS="-lsocket  $LIBS"
4883cat >conftest.$ac_ext <<_ACEOF
4884/* confdefs.h.  */
4885_ACEOF
4886cat confdefs.h >>conftest.$ac_ext
4887cat >>conftest.$ac_ext <<_ACEOF
4888/* end confdefs.h.  */
4889
4890/* Override any gcc2 internal prototype to avoid an error.  */
4891#ifdef __cplusplus
4892extern "C"
4893#endif
4894/* We use char because int might match the return type of a gcc2
4895   builtin and then its argument prototype would still apply.  */
4896char socket ();
4897int
4898main ()
4899{
4900socket ();
4901  ;
4902  return 0;
4903}
4904_ACEOF
4905rm -f conftest.$ac_objext conftest$ac_exeext
4906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4907  (eval $ac_link) 2>conftest.er1
4908  ac_status=$?
4909  grep -v '^ *+' conftest.er1 >conftest.err
4910  rm -f conftest.er1
4911  cat conftest.err >&5
4912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913  (exit $ac_status); } &&
4914	 { ac_try='test -z "$ac_c_werror_flag"
4915			 || test ! -s conftest.err'
4916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917  (eval $ac_try) 2>&5
4918  ac_status=$?
4919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920  (exit $ac_status); }; } &&
4921	 { ac_try='test -s conftest$ac_exeext'
4922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923  (eval $ac_try) 2>&5
4924  ac_status=$?
4925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926  (exit $ac_status); }; }; then
4927  ac_cv_lib_socket_socket=yes
4928else
4929  echo "$as_me: failed program was:" >&5
4930sed 's/^/| /' conftest.$ac_ext >&5
4931
4932ac_cv_lib_socket_socket=no
4933fi
4934rm -f conftest.err conftest.$ac_objext \
4935      conftest$ac_exeext conftest.$ac_ext
4936LIBS=$ac_check_lib_save_LIBS
4937fi
4938echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4939echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4940if test $ac_cv_lib_socket_socket = yes; then
4941  cat >>confdefs.h <<_ACEOF
4942#define HAVE_LIBSOCKET 1
4943_ACEOF
4944
4945  LIBS="-lsocket $LIBS"
4946
4947fi
4948
4949
4950echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4951echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4952if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4953  echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
4955  ac_check_lib_save_LIBS=$LIBS
4956LIBS="-lnsl  $LIBS"
4957cat >conftest.$ac_ext <<_ACEOF
4958/* confdefs.h.  */
4959_ACEOF
4960cat confdefs.h >>conftest.$ac_ext
4961cat >>conftest.$ac_ext <<_ACEOF
4962/* end confdefs.h.  */
4963
4964/* Override any gcc2 internal prototype to avoid an error.  */
4965#ifdef __cplusplus
4966extern "C"
4967#endif
4968/* We use char because int might match the return type of a gcc2
4969   builtin and then its argument prototype would still apply.  */
4970char gethostbyname ();
4971int
4972main ()
4973{
4974gethostbyname ();
4975  ;
4976  return 0;
4977}
4978_ACEOF
4979rm -f conftest.$ac_objext conftest$ac_exeext
4980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4981  (eval $ac_link) 2>conftest.er1
4982  ac_status=$?
4983  grep -v '^ *+' conftest.er1 >conftest.err
4984  rm -f conftest.er1
4985  cat conftest.err >&5
4986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987  (exit $ac_status); } &&
4988	 { ac_try='test -z "$ac_c_werror_flag"
4989			 || test ! -s conftest.err'
4990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991  (eval $ac_try) 2>&5
4992  ac_status=$?
4993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994  (exit $ac_status); }; } &&
4995	 { ac_try='test -s conftest$ac_exeext'
4996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997  (eval $ac_try) 2>&5
4998  ac_status=$?
4999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000  (exit $ac_status); }; }; then
5001  ac_cv_lib_nsl_gethostbyname=yes
5002else
5003  echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006ac_cv_lib_nsl_gethostbyname=no
5007fi
5008rm -f conftest.err conftest.$ac_objext \
5009      conftest$ac_exeext conftest.$ac_ext
5010LIBS=$ac_check_lib_save_LIBS
5011fi
5012echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5013echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5014if test $ac_cv_lib_nsl_gethostbyname = yes; then
5015  cat >>confdefs.h <<_ACEOF
5016#define HAVE_LIBNSL 1
5017_ACEOF
5018
5019  LIBS="-lnsl $LIBS"
5020
5021fi
5022
5023  echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5024echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5025  cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h.  */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h.  */
5031
5032#include <stdio.h>
5033#include <stdlib.h>
5034#include <stdarg.h>
5035#include <fcntl.h>
5036#include <netdb.h>
5037#include <netinet/in.h>
5038#include <errno.h>
5039#include <sys/types.h>
5040#include <sys/socket.h>
5041	/* Check bitfields */
5042	struct nbbuf {
5043	unsigned int  initDone:1;
5044	ushort signmaplen;
5045	};
5046
5047int
5048main ()
5049{
5050
5051		/* Check creating a socket. */
5052		struct sockaddr_in server;
5053		(void)socket(AF_INET, SOCK_STREAM, 0);
5054		(void)htons(100);
5055		(void)gethostbyname("microsoft.com");
5056		if (errno == ECONNREFUSED)
5057		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
5058
5059  ;
5060  return 0;
5061}
5062_ACEOF
5063rm -f conftest.$ac_objext conftest$ac_exeext
5064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065  (eval $ac_link) 2>conftest.er1
5066  ac_status=$?
5067  grep -v '^ *+' conftest.er1 >conftest.err
5068  rm -f conftest.er1
5069  cat conftest.err >&5
5070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071  (exit $ac_status); } &&
5072	 { ac_try='test -z "$ac_c_werror_flag"
5073			 || test ! -s conftest.err'
5074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075  (eval $ac_try) 2>&5
5076  ac_status=$?
5077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078  (exit $ac_status); }; } &&
5079	 { ac_try='test -s conftest$ac_exeext'
5080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081  (eval $ac_try) 2>&5
5082  ac_status=$?
5083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084  (exit $ac_status); }; }; then
5085  echo "$as_me:$LINENO: result: yes" >&5
5086echo "${ECHO_T}yes" >&6
5087else
5088  echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091echo "$as_me:$LINENO: result: no" >&5
5092echo "${ECHO_T}no" >&6; enable_netbeans="no"
5093fi
5094rm -f conftest.err conftest.$ac_objext \
5095      conftest$ac_exeext conftest.$ac_ext
5096else
5097  echo "$as_me:$LINENO: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
5099fi
5100if test "$enable_netbeans" = "yes"; then
5101  cat >>confdefs.h <<\_ACEOF
5102#define FEAT_NETBEANS_INTG 1
5103_ACEOF
5104
5105  NETBEANS_SRC="netbeans.c"
5106
5107  NETBEANS_OBJ="objects/netbeans.o"
5108
5109fi
5110
5111echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5112echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
5113# Check whether --enable-sniff or --disable-sniff was given.
5114if test "${enable_sniff+set}" = set; then
5115  enableval="$enable_sniff"
5116
5117else
5118  enable_sniff="no"
5119fi;
5120echo "$as_me:$LINENO: result: $enable_sniff" >&5
5121echo "${ECHO_T}$enable_sniff" >&6
5122if test "$enable_sniff" = "yes"; then
5123  cat >>confdefs.h <<\_ACEOF
5124#define FEAT_SNIFF 1
5125_ACEOF
5126
5127  SNIFF_SRC="if_sniff.c"
5128
5129  SNIFF_OBJ="objects/if_sniff.o"
5130
5131fi
5132
5133echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5134echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
5135# Check whether --enable-multibyte or --disable-multibyte was given.
5136if test "${enable_multibyte+set}" = set; then
5137  enableval="$enable_multibyte"
5138
5139else
5140  enable_multibyte="no"
5141fi;
5142echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5143echo "${ECHO_T}$enable_multibyte" >&6
5144if test "$enable_multibyte" = "yes"; then
5145  cat >>confdefs.h <<\_ACEOF
5146#define FEAT_MBYTE 1
5147_ACEOF
5148
5149fi
5150
5151echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5152echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
5153# Check whether --enable-hangulinput or --disable-hangulinput was given.
5154if test "${enable_hangulinput+set}" = set; then
5155  enableval="$enable_hangulinput"
5156
5157else
5158  enable_hangulinput="no"
5159fi;
5160echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5161echo "${ECHO_T}$enable_hangulinput" >&6
5162
5163echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5164echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
5165# Check whether --enable-xim or --disable-xim was given.
5166if test "${enable_xim+set}" = set; then
5167  enableval="$enable_xim"
5168  echo "$as_me:$LINENO: result: $enable_xim" >&5
5169echo "${ECHO_T}$enable_xim" >&6
5170else
5171  enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5172echo "${ECHO_T}defaulting to auto" >&6
5173fi;
5174
5175echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5176echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
5177# Check whether --enable-fontset or --disable-fontset was given.
5178if test "${enable_fontset+set}" = set; then
5179  enableval="$enable_fontset"
5180
5181else
5182  enable_fontset="no"
5183fi;
5184echo "$as_me:$LINENO: result: $enable_fontset" >&5
5185echo "${ECHO_T}$enable_fontset" >&6
5186
5187test -z "$with_x" && with_x=yes
5188test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5189if test "$with_x" = no; then
5190  echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5191echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
5192else
5193
5194  # Extract the first word of "xmkmf", so it can be a program name with args.
5195set dummy xmkmf; ac_word=$2
5196echo "$as_me:$LINENO: checking for $ac_word" >&5
5197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198if test "${ac_cv_path_xmkmfpath+set}" = set; then
5199  echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201  case $xmkmfpath in
5202  [\\/]* | ?:[\\/]*)
5203  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5204  ;;
5205  *)
5206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209  IFS=$as_save_IFS
5210  test -z "$as_dir" && as_dir=.
5211  for ac_exec_ext in '' $ac_executable_extensions; do
5212  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215    break 2
5216  fi
5217done
5218done
5219
5220  ;;
5221esac
5222fi
5223xmkmfpath=$ac_cv_path_xmkmfpath
5224
5225if test -n "$xmkmfpath"; then
5226  echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5227echo "${ECHO_T}$xmkmfpath" >&6
5228else
5229  echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
5231fi
5232
5233
5234  echo "$as_me:$LINENO: checking for X" >&5
5235echo $ECHO_N "checking for X... $ECHO_C" >&6
5236
5237
5238# Check whether --with-x or --without-x was given.
5239if test "${with_x+set}" = set; then
5240  withval="$with_x"
5241
5242fi;
5243# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5244if test "x$with_x" = xno; then
5245  # The user explicitly disabled X.
5246  have_x=disabled
5247else
5248  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5249    # Both variables are already set.
5250    have_x=yes
5251  else
5252    if test "${ac_cv_have_x+set}" = set; then
5253  echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255  # One or both of the vars are not set, and there is no cached value.
5256ac_x_includes=no ac_x_libraries=no
5257rm -fr conftest.dir
5258if mkdir conftest.dir; then
5259  cd conftest.dir
5260  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5261  cat >Imakefile <<'_ACEOF'
5262acfindx:
5263	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5264_ACEOF
5265  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5266    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5267    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5268    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5269    for ac_extension in a so sl; do
5270      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5271	 test -f $ac_im_libdir/libX11.$ac_extension; then
5272	ac_im_usrlibdir=$ac_im_libdir; break
5273      fi
5274    done
5275    # Screen out bogus values from the imake configuration.  They are
5276    # bogus both because they are the default anyway, and because
5277    # using them would break gcc on systems where it needs fixed includes.
5278    case $ac_im_incroot in
5279	/usr/include) ;;
5280	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5281    esac
5282    case $ac_im_usrlibdir in
5283	/usr/lib | /lib) ;;
5284	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5285    esac
5286  fi
5287  cd ..
5288  rm -fr conftest.dir
5289fi
5290
5291# Standard set of common directories for X headers.
5292# Check X11 before X11Rn because it is often a symlink to the current release.
5293ac_x_header_dirs='
5294/usr/X11/include
5295/usr/X11R6/include
5296/usr/X11R5/include
5297/usr/X11R4/include
5298
5299/usr/include/X11
5300/usr/include/X11R6
5301/usr/include/X11R5
5302/usr/include/X11R4
5303
5304/usr/local/X11/include
5305/usr/local/X11R6/include
5306/usr/local/X11R5/include
5307/usr/local/X11R4/include
5308
5309/usr/local/include/X11
5310/usr/local/include/X11R6
5311/usr/local/include/X11R5
5312/usr/local/include/X11R4
5313
5314/usr/X386/include
5315/usr/x386/include
5316/usr/XFree86/include/X11
5317
5318/usr/include
5319/usr/local/include
5320/usr/unsupported/include
5321/usr/athena/include
5322/usr/local/x11r5/include
5323/usr/lpp/Xamples/include
5324
5325/usr/openwin/include
5326/usr/openwin/share/include'
5327
5328if test "$ac_x_includes" = no; then
5329  # Guess where to find include files, by looking for Intrinsic.h.
5330  # First, try using that file with no special directory specified.
5331  cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h.  */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h.  */
5337#include <X11/Intrinsic.h>
5338_ACEOF
5339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5340  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5341  ac_status=$?
5342  grep -v '^ *+' conftest.er1 >conftest.err
5343  rm -f conftest.er1
5344  cat conftest.err >&5
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); } >/dev/null; then
5347  if test -s conftest.err; then
5348    ac_cpp_err=$ac_c_preproc_warn_flag
5349    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5350  else
5351    ac_cpp_err=
5352  fi
5353else
5354  ac_cpp_err=yes
5355fi
5356if test -z "$ac_cpp_err"; then
5357  # We can compile using X headers with no special include directory.
5358ac_x_includes=
5359else
5360  echo "$as_me: failed program was:" >&5
5361sed 's/^/| /' conftest.$ac_ext >&5
5362
5363  for ac_dir in $ac_x_header_dirs; do
5364  if test -r "$ac_dir/X11/Intrinsic.h"; then
5365    ac_x_includes=$ac_dir
5366    break
5367  fi
5368done
5369fi
5370rm -f conftest.err conftest.$ac_ext
5371fi # $ac_x_includes = no
5372
5373if test "$ac_x_libraries" = no; then
5374  # Check for the libraries.
5375  # See if we find them without any special options.
5376  # Don't add to $LIBS permanently.
5377  ac_save_LIBS=$LIBS
5378  LIBS="-lXt $LIBS"
5379  cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h.  */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h.  */
5385#include <X11/Intrinsic.h>
5386int
5387main ()
5388{
5389XtMalloc (0)
5390  ;
5391  return 0;
5392}
5393_ACEOF
5394rm -f conftest.$ac_objext conftest$ac_exeext
5395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5396  (eval $ac_link) 2>conftest.er1
5397  ac_status=$?
5398  grep -v '^ *+' conftest.er1 >conftest.err
5399  rm -f conftest.er1
5400  cat conftest.err >&5
5401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402  (exit $ac_status); } &&
5403	 { ac_try='test -z "$ac_c_werror_flag"
5404			 || test ! -s conftest.err'
5405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406  (eval $ac_try) 2>&5
5407  ac_status=$?
5408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409  (exit $ac_status); }; } &&
5410	 { ac_try='test -s conftest$ac_exeext'
5411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412  (eval $ac_try) 2>&5
5413  ac_status=$?
5414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415  (exit $ac_status); }; }; then
5416  LIBS=$ac_save_LIBS
5417# We can link X programs with no special library path.
5418ac_x_libraries=
5419else
5420  echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423LIBS=$ac_save_LIBS
5424for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5425do
5426  # Don't even attempt the hair of trying to link an X program!
5427  for ac_extension in a so sl; do
5428    if test -r $ac_dir/libXt.$ac_extension; then
5429      ac_x_libraries=$ac_dir
5430      break 2
5431    fi
5432  done
5433done
5434fi
5435rm -f conftest.err conftest.$ac_objext \
5436      conftest$ac_exeext conftest.$ac_ext
5437fi # $ac_x_libraries = no
5438
5439if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5440  # Didn't find X anywhere.  Cache the known absence of X.
5441  ac_cv_have_x="have_x=no"
5442else
5443  # Record where we found X for the cache.
5444  ac_cv_have_x="have_x=yes \
5445		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5446fi
5447fi
5448
5449  fi
5450  eval "$ac_cv_have_x"
5451fi # $with_x != no
5452
5453if test "$have_x" != yes; then
5454  echo "$as_me:$LINENO: result: $have_x" >&5
5455echo "${ECHO_T}$have_x" >&6
5456  no_x=yes
5457else
5458  # If each of the values was on the command line, it overrides each guess.
5459  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5460  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5461  # Update the cache value to reflect the command line values.
5462  ac_cv_have_x="have_x=yes \
5463		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5464  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5465echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5466fi
5467
5468if test "$no_x" = yes; then
5469  # Not all programs may use this symbol, but it does not hurt to define it.
5470
5471cat >>confdefs.h <<\_ACEOF
5472#define X_DISPLAY_MISSING 1
5473_ACEOF
5474
5475  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5476else
5477  if test -n "$x_includes"; then
5478    X_CFLAGS="$X_CFLAGS -I$x_includes"
5479  fi
5480
5481  # It would also be nice to do this for all -L options, not just this one.
5482  if test -n "$x_libraries"; then
5483    X_LIBS="$X_LIBS -L$x_libraries"
5484    # For Solaris; some versions of Sun CC require a space after -R and
5485    # others require no space.  Words are not sufficient . . . .
5486    case `(uname -sr) 2>/dev/null` in
5487    "SunOS 5"*)
5488      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5489echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5490      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5491      cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h.  */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h.  */
5497
5498int
5499main ()
5500{
5501
5502  ;
5503  return 0;
5504}
5505_ACEOF
5506rm -f conftest.$ac_objext conftest$ac_exeext
5507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5508  (eval $ac_link) 2>conftest.er1
5509  ac_status=$?
5510  grep -v '^ *+' conftest.er1 >conftest.err
5511  rm -f conftest.er1
5512  cat conftest.err >&5
5513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514  (exit $ac_status); } &&
5515	 { ac_try='test -z "$ac_c_werror_flag"
5516			 || test ! -s conftest.err'
5517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518  (eval $ac_try) 2>&5
5519  ac_status=$?
5520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521  (exit $ac_status); }; } &&
5522	 { ac_try='test -s conftest$ac_exeext'
5523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524  (eval $ac_try) 2>&5
5525  ac_status=$?
5526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527  (exit $ac_status); }; }; then
5528  ac_R_nospace=yes
5529else
5530  echo "$as_me: failed program was:" >&5
5531sed 's/^/| /' conftest.$ac_ext >&5
5532
5533ac_R_nospace=no
5534fi
5535rm -f conftest.err conftest.$ac_objext \
5536      conftest$ac_exeext conftest.$ac_ext
5537      if test $ac_R_nospace = yes; then
5538	echo "$as_me:$LINENO: result: no" >&5
5539echo "${ECHO_T}no" >&6
5540	X_LIBS="$X_LIBS -R$x_libraries"
5541      else
5542	LIBS="$ac_xsave_LIBS -R $x_libraries"
5543	cat >conftest.$ac_ext <<_ACEOF
5544/* confdefs.h.  */
5545_ACEOF
5546cat confdefs.h >>conftest.$ac_ext
5547cat >>conftest.$ac_ext <<_ACEOF
5548/* end confdefs.h.  */
5549
5550int
5551main ()
5552{
5553
5554  ;
5555  return 0;
5556}
5557_ACEOF
5558rm -f conftest.$ac_objext conftest$ac_exeext
5559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5560  (eval $ac_link) 2>conftest.er1
5561  ac_status=$?
5562  grep -v '^ *+' conftest.er1 >conftest.err
5563  rm -f conftest.er1
5564  cat conftest.err >&5
5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); } &&
5567	 { ac_try='test -z "$ac_c_werror_flag"
5568			 || test ! -s conftest.err'
5569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570  (eval $ac_try) 2>&5
5571  ac_status=$?
5572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573  (exit $ac_status); }; } &&
5574	 { ac_try='test -s conftest$ac_exeext'
5575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576  (eval $ac_try) 2>&5
5577  ac_status=$?
5578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579  (exit $ac_status); }; }; then
5580  ac_R_space=yes
5581else
5582  echo "$as_me: failed program was:" >&5
5583sed 's/^/| /' conftest.$ac_ext >&5
5584
5585ac_R_space=no
5586fi
5587rm -f conftest.err conftest.$ac_objext \
5588      conftest$ac_exeext conftest.$ac_ext
5589	if test $ac_R_space = yes; then
5590	  echo "$as_me:$LINENO: result: yes" >&5
5591echo "${ECHO_T}yes" >&6
5592	  X_LIBS="$X_LIBS -R $x_libraries"
5593	else
5594	  echo "$as_me:$LINENO: result: neither works" >&5
5595echo "${ECHO_T}neither works" >&6
5596	fi
5597      fi
5598      LIBS=$ac_xsave_LIBS
5599    esac
5600  fi
5601
5602  # Check for system-dependent libraries X programs must link with.
5603  # Do this before checking for the system-independent R6 libraries
5604  # (-lICE), since we may need -lsocket or whatever for X linking.
5605
5606  if test "$ISC" = yes; then
5607    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5608  else
5609    # Martyn Johnson says this is needed for Ultrix, if the X
5610    # libraries were built with DECnet support.  And Karl Berry says
5611    # the Alpha needs dnet_stub (dnet does not exist).
5612    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5613    cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h.  */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h.  */
5619
5620/* Override any gcc2 internal prototype to avoid an error.  */
5621#ifdef __cplusplus
5622extern "C"
5623#endif
5624/* We use char because int might match the return type of a gcc2
5625   builtin and then its argument prototype would still apply.  */
5626char XOpenDisplay ();
5627int
5628main ()
5629{
5630XOpenDisplay ();
5631  ;
5632  return 0;
5633}
5634_ACEOF
5635rm -f conftest.$ac_objext conftest$ac_exeext
5636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5637  (eval $ac_link) 2>conftest.er1
5638  ac_status=$?
5639  grep -v '^ *+' conftest.er1 >conftest.err
5640  rm -f conftest.er1
5641  cat conftest.err >&5
5642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643  (exit $ac_status); } &&
5644	 { ac_try='test -z "$ac_c_werror_flag"
5645			 || test ! -s conftest.err'
5646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647  (eval $ac_try) 2>&5
5648  ac_status=$?
5649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); }; } &&
5651	 { ac_try='test -s conftest$ac_exeext'
5652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653  (eval $ac_try) 2>&5
5654  ac_status=$?
5655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656  (exit $ac_status); }; }; then
5657  :
5658else
5659  echo "$as_me: failed program was:" >&5
5660sed 's/^/| /' conftest.$ac_ext >&5
5661
5662echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5663echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5664if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5665  echo $ECHO_N "(cached) $ECHO_C" >&6
5666else
5667  ac_check_lib_save_LIBS=$LIBS
5668LIBS="-ldnet  $LIBS"
5669cat >conftest.$ac_ext <<_ACEOF
5670/* confdefs.h.  */
5671_ACEOF
5672cat confdefs.h >>conftest.$ac_ext
5673cat >>conftest.$ac_ext <<_ACEOF
5674/* end confdefs.h.  */
5675
5676/* Override any gcc2 internal prototype to avoid an error.  */
5677#ifdef __cplusplus
5678extern "C"
5679#endif
5680/* We use char because int might match the return type of a gcc2
5681   builtin and then its argument prototype would still apply.  */
5682char dnet_ntoa ();
5683int
5684main ()
5685{
5686dnet_ntoa ();
5687  ;
5688  return 0;
5689}
5690_ACEOF
5691rm -f conftest.$ac_objext conftest$ac_exeext
5692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693  (eval $ac_link) 2>conftest.er1
5694  ac_status=$?
5695  grep -v '^ *+' conftest.er1 >conftest.err
5696  rm -f conftest.er1
5697  cat conftest.err >&5
5698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699  (exit $ac_status); } &&
5700	 { ac_try='test -z "$ac_c_werror_flag"
5701			 || test ! -s conftest.err'
5702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703  (eval $ac_try) 2>&5
5704  ac_status=$?
5705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706  (exit $ac_status); }; } &&
5707	 { ac_try='test -s conftest$ac_exeext'
5708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709  (eval $ac_try) 2>&5
5710  ac_status=$?
5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); }; }; then
5713  ac_cv_lib_dnet_dnet_ntoa=yes
5714else
5715  echo "$as_me: failed program was:" >&5
5716sed 's/^/| /' conftest.$ac_ext >&5
5717
5718ac_cv_lib_dnet_dnet_ntoa=no
5719fi
5720rm -f conftest.err conftest.$ac_objext \
5721      conftest$ac_exeext conftest.$ac_ext
5722LIBS=$ac_check_lib_save_LIBS
5723fi
5724echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5725echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5726if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5727  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5728fi
5729
5730    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5731      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5732echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5733if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5734  echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736  ac_check_lib_save_LIBS=$LIBS
5737LIBS="-ldnet_stub  $LIBS"
5738cat >conftest.$ac_ext <<_ACEOF
5739/* confdefs.h.  */
5740_ACEOF
5741cat confdefs.h >>conftest.$ac_ext
5742cat >>conftest.$ac_ext <<_ACEOF
5743/* end confdefs.h.  */
5744
5745/* Override any gcc2 internal prototype to avoid an error.  */
5746#ifdef __cplusplus
5747extern "C"
5748#endif
5749/* We use char because int might match the return type of a gcc2
5750   builtin and then its argument prototype would still apply.  */
5751char dnet_ntoa ();
5752int
5753main ()
5754{
5755dnet_ntoa ();
5756  ;
5757  return 0;
5758}
5759_ACEOF
5760rm -f conftest.$ac_objext conftest$ac_exeext
5761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762  (eval $ac_link) 2>conftest.er1
5763  ac_status=$?
5764  grep -v '^ *+' conftest.er1 >conftest.err
5765  rm -f conftest.er1
5766  cat conftest.err >&5
5767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768  (exit $ac_status); } &&
5769	 { ac_try='test -z "$ac_c_werror_flag"
5770			 || test ! -s conftest.err'
5771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772  (eval $ac_try) 2>&5
5773  ac_status=$?
5774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775  (exit $ac_status); }; } &&
5776	 { ac_try='test -s conftest$ac_exeext'
5777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778  (eval $ac_try) 2>&5
5779  ac_status=$?
5780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781  (exit $ac_status); }; }; then
5782  ac_cv_lib_dnet_stub_dnet_ntoa=yes
5783else
5784  echo "$as_me: failed program was:" >&5
5785sed 's/^/| /' conftest.$ac_ext >&5
5786
5787ac_cv_lib_dnet_stub_dnet_ntoa=no
5788fi
5789rm -f conftest.err conftest.$ac_objext \
5790      conftest$ac_exeext conftest.$ac_ext
5791LIBS=$ac_check_lib_save_LIBS
5792fi
5793echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5794echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5795if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5796  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5797fi
5798
5799    fi
5800fi
5801rm -f conftest.err conftest.$ac_objext \
5802      conftest$ac_exeext conftest.$ac_ext
5803    LIBS="$ac_xsave_LIBS"
5804
5805    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5806    # to get the SysV transport functions.
5807    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5808    # needs -lnsl.
5809    # The nsl library prevents programs from opening the X display
5810    # on Irix 5.2, according to T.E. Dickey.
5811    # The functions gethostbyname, getservbyname, and inet_addr are
5812    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5813    echo "$as_me:$LINENO: checking for gethostbyname" >&5
5814echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5815if test "${ac_cv_func_gethostbyname+set}" = set; then
5816  echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818  cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h.  */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h.  */
5824/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5825   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5826#define gethostbyname innocuous_gethostbyname
5827
5828/* System header to define __stub macros and hopefully few prototypes,
5829    which can conflict with char gethostbyname (); below.
5830    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5831    <limits.h> exists even on freestanding compilers.  */
5832
5833#ifdef __STDC__
5834# include <limits.h>
5835#else
5836# include <assert.h>
5837#endif
5838
5839#undef gethostbyname
5840
5841/* Override any gcc2 internal prototype to avoid an error.  */
5842#ifdef __cplusplus
5843extern "C"
5844{
5845#endif
5846/* We use char because int might match the return type of a gcc2
5847   builtin and then its argument prototype would still apply.  */
5848char gethostbyname ();
5849/* The GNU C library defines this for functions which it implements
5850    to always fail with ENOSYS.  Some functions are actually named
5851    something starting with __ and the normal name is an alias.  */
5852#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5853choke me
5854#else
5855char (*f) () = gethostbyname;
5856#endif
5857#ifdef __cplusplus
5858}
5859#endif
5860
5861int
5862main ()
5863{
5864return f != gethostbyname;
5865  ;
5866  return 0;
5867}
5868_ACEOF
5869rm -f conftest.$ac_objext conftest$ac_exeext
5870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5871  (eval $ac_link) 2>conftest.er1
5872  ac_status=$?
5873  grep -v '^ *+' conftest.er1 >conftest.err
5874  rm -f conftest.er1
5875  cat conftest.err >&5
5876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877  (exit $ac_status); } &&
5878	 { ac_try='test -z "$ac_c_werror_flag"
5879			 || test ! -s conftest.err'
5880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881  (eval $ac_try) 2>&5
5882  ac_status=$?
5883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884  (exit $ac_status); }; } &&
5885	 { ac_try='test -s conftest$ac_exeext'
5886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887  (eval $ac_try) 2>&5
5888  ac_status=$?
5889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890  (exit $ac_status); }; }; then
5891  ac_cv_func_gethostbyname=yes
5892else
5893  echo "$as_me: failed program was:" >&5
5894sed 's/^/| /' conftest.$ac_ext >&5
5895
5896ac_cv_func_gethostbyname=no
5897fi
5898rm -f conftest.err conftest.$ac_objext \
5899      conftest$ac_exeext conftest.$ac_ext
5900fi
5901echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5902echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5903
5904    if test $ac_cv_func_gethostbyname = no; then
5905      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5906echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5907if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5908  echo $ECHO_N "(cached) $ECHO_C" >&6
5909else
5910  ac_check_lib_save_LIBS=$LIBS
5911LIBS="-lnsl  $LIBS"
5912cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h.  */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h.  */
5918
5919/* Override any gcc2 internal prototype to avoid an error.  */
5920#ifdef __cplusplus
5921extern "C"
5922#endif
5923/* We use char because int might match the return type of a gcc2
5924   builtin and then its argument prototype would still apply.  */
5925char gethostbyname ();
5926int
5927main ()
5928{
5929gethostbyname ();
5930  ;
5931  return 0;
5932}
5933_ACEOF
5934rm -f conftest.$ac_objext conftest$ac_exeext
5935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936  (eval $ac_link) 2>conftest.er1
5937  ac_status=$?
5938  grep -v '^ *+' conftest.er1 >conftest.err
5939  rm -f conftest.er1
5940  cat conftest.err >&5
5941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942  (exit $ac_status); } &&
5943	 { ac_try='test -z "$ac_c_werror_flag"
5944			 || test ! -s conftest.err'
5945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946  (eval $ac_try) 2>&5
5947  ac_status=$?
5948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949  (exit $ac_status); }; } &&
5950	 { ac_try='test -s conftest$ac_exeext'
5951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952  (eval $ac_try) 2>&5
5953  ac_status=$?
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); }; }; then
5956  ac_cv_lib_nsl_gethostbyname=yes
5957else
5958  echo "$as_me: failed program was:" >&5
5959sed 's/^/| /' conftest.$ac_ext >&5
5960
5961ac_cv_lib_nsl_gethostbyname=no
5962fi
5963rm -f conftest.err conftest.$ac_objext \
5964      conftest$ac_exeext conftest.$ac_ext
5965LIBS=$ac_check_lib_save_LIBS
5966fi
5967echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5968echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5969if test $ac_cv_lib_nsl_gethostbyname = yes; then
5970  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5971fi
5972
5973      if test $ac_cv_lib_nsl_gethostbyname = no; then
5974	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5975echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5976if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5977  echo $ECHO_N "(cached) $ECHO_C" >&6
5978else
5979  ac_check_lib_save_LIBS=$LIBS
5980LIBS="-lbsd  $LIBS"
5981cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h.  */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h.  */
5987
5988/* Override any gcc2 internal prototype to avoid an error.  */
5989#ifdef __cplusplus
5990extern "C"
5991#endif
5992/* We use char because int might match the return type of a gcc2
5993   builtin and then its argument prototype would still apply.  */
5994char gethostbyname ();
5995int
5996main ()
5997{
5998gethostbyname ();
5999  ;
6000  return 0;
6001}
6002_ACEOF
6003rm -f conftest.$ac_objext conftest$ac_exeext
6004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6005  (eval $ac_link) 2>conftest.er1
6006  ac_status=$?
6007  grep -v '^ *+' conftest.er1 >conftest.err
6008  rm -f conftest.er1
6009  cat conftest.err >&5
6010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011  (exit $ac_status); } &&
6012	 { ac_try='test -z "$ac_c_werror_flag"
6013			 || test ! -s conftest.err'
6014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015  (eval $ac_try) 2>&5
6016  ac_status=$?
6017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018  (exit $ac_status); }; } &&
6019	 { ac_try='test -s conftest$ac_exeext'
6020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021  (eval $ac_try) 2>&5
6022  ac_status=$?
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); }; }; then
6025  ac_cv_lib_bsd_gethostbyname=yes
6026else
6027  echo "$as_me: failed program was:" >&5
6028sed 's/^/| /' conftest.$ac_ext >&5
6029
6030ac_cv_lib_bsd_gethostbyname=no
6031fi
6032rm -f conftest.err conftest.$ac_objext \
6033      conftest$ac_exeext conftest.$ac_ext
6034LIBS=$ac_check_lib_save_LIBS
6035fi
6036echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6037echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6038if test $ac_cv_lib_bsd_gethostbyname = yes; then
6039  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6040fi
6041
6042      fi
6043    fi
6044
6045    # [email protected] says without -lsocket,
6046    # socket/setsockopt and other routines are undefined under SCO ODT
6047    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6048    # on later versions), says Simon Leinen: it contains gethostby*
6049    # variants that don't use the name server (or something).  -lsocket
6050    # must be given before -lnsl if both are needed.  We assume that
6051    # if connect needs -lnsl, so does gethostbyname.
6052    echo "$as_me:$LINENO: checking for connect" >&5
6053echo $ECHO_N "checking for connect... $ECHO_C" >&6
6054if test "${ac_cv_func_connect+set}" = set; then
6055  echo $ECHO_N "(cached) $ECHO_C" >&6
6056else
6057  cat >conftest.$ac_ext <<_ACEOF
6058/* confdefs.h.  */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h.  */
6063/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6064   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6065#define connect innocuous_connect
6066
6067/* System header to define __stub macros and hopefully few prototypes,
6068    which can conflict with char connect (); below.
6069    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6070    <limits.h> exists even on freestanding compilers.  */
6071
6072#ifdef __STDC__
6073# include <limits.h>
6074#else
6075# include <assert.h>
6076#endif
6077
6078#undef connect
6079
6080/* Override any gcc2 internal prototype to avoid an error.  */
6081#ifdef __cplusplus
6082extern "C"
6083{
6084#endif
6085/* We use char because int might match the return type of a gcc2
6086   builtin and then its argument prototype would still apply.  */
6087char connect ();
6088/* The GNU C library defines this for functions which it implements
6089    to always fail with ENOSYS.  Some functions are actually named
6090    something starting with __ and the normal name is an alias.  */
6091#if defined (__stub_connect) || defined (__stub___connect)
6092choke me
6093#else
6094char (*f) () = connect;
6095#endif
6096#ifdef __cplusplus
6097}
6098#endif
6099
6100int
6101main ()
6102{
6103return f != connect;
6104  ;
6105  return 0;
6106}
6107_ACEOF
6108rm -f conftest.$ac_objext conftest$ac_exeext
6109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110  (eval $ac_link) 2>conftest.er1
6111  ac_status=$?
6112  grep -v '^ *+' conftest.er1 >conftest.err
6113  rm -f conftest.er1
6114  cat conftest.err >&5
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); } &&
6117	 { ac_try='test -z "$ac_c_werror_flag"
6118			 || test ! -s conftest.err'
6119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120  (eval $ac_try) 2>&5
6121  ac_status=$?
6122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123  (exit $ac_status); }; } &&
6124	 { ac_try='test -s conftest$ac_exeext'
6125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126  (eval $ac_try) 2>&5
6127  ac_status=$?
6128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129  (exit $ac_status); }; }; then
6130  ac_cv_func_connect=yes
6131else
6132  echo "$as_me: failed program was:" >&5
6133sed 's/^/| /' conftest.$ac_ext >&5
6134
6135ac_cv_func_connect=no
6136fi
6137rm -f conftest.err conftest.$ac_objext \
6138      conftest$ac_exeext conftest.$ac_ext
6139fi
6140echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6141echo "${ECHO_T}$ac_cv_func_connect" >&6
6142
6143    if test $ac_cv_func_connect = no; then
6144      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6145echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6146if test "${ac_cv_lib_socket_connect+set}" = set; then
6147  echo $ECHO_N "(cached) $ECHO_C" >&6
6148else
6149  ac_check_lib_save_LIBS=$LIBS
6150LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6151cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h.  */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h.  */
6157
6158/* Override any gcc2 internal prototype to avoid an error.  */
6159#ifdef __cplusplus
6160extern "C"
6161#endif
6162/* We use char because int might match the return type of a gcc2
6163   builtin and then its argument prototype would still apply.  */
6164char connect ();
6165int
6166main ()
6167{
6168connect ();
6169  ;
6170  return 0;
6171}
6172_ACEOF
6173rm -f conftest.$ac_objext conftest$ac_exeext
6174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175  (eval $ac_link) 2>conftest.er1
6176  ac_status=$?
6177  grep -v '^ *+' conftest.er1 >conftest.err
6178  rm -f conftest.er1
6179  cat conftest.err >&5
6180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181  (exit $ac_status); } &&
6182	 { ac_try='test -z "$ac_c_werror_flag"
6183			 || test ! -s conftest.err'
6184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185  (eval $ac_try) 2>&5
6186  ac_status=$?
6187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188  (exit $ac_status); }; } &&
6189	 { ac_try='test -s conftest$ac_exeext'
6190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191  (eval $ac_try) 2>&5
6192  ac_status=$?
6193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194  (exit $ac_status); }; }; then
6195  ac_cv_lib_socket_connect=yes
6196else
6197  echo "$as_me: failed program was:" >&5
6198sed 's/^/| /' conftest.$ac_ext >&5
6199
6200ac_cv_lib_socket_connect=no
6201fi
6202rm -f conftest.err conftest.$ac_objext \
6203      conftest$ac_exeext conftest.$ac_ext
6204LIBS=$ac_check_lib_save_LIBS
6205fi
6206echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6207echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6208if test $ac_cv_lib_socket_connect = yes; then
6209  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6210fi
6211
6212    fi
6213
6214    # Guillermo Gomez says -lposix is necessary on A/UX.
6215    echo "$as_me:$LINENO: checking for remove" >&5
6216echo $ECHO_N "checking for remove... $ECHO_C" >&6
6217if test "${ac_cv_func_remove+set}" = set; then
6218  echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220  cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h.  */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h.  */
6226/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6227   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6228#define remove innocuous_remove
6229
6230/* System header to define __stub macros and hopefully few prototypes,
6231    which can conflict with char remove (); below.
6232    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6233    <limits.h> exists even on freestanding compilers.  */
6234
6235#ifdef __STDC__
6236# include <limits.h>
6237#else
6238# include <assert.h>
6239#endif
6240
6241#undef remove
6242
6243/* Override any gcc2 internal prototype to avoid an error.  */
6244#ifdef __cplusplus
6245extern "C"
6246{
6247#endif
6248/* We use char because int might match the return type of a gcc2
6249   builtin and then its argument prototype would still apply.  */
6250char remove ();
6251/* The GNU C library defines this for functions which it implements
6252    to always fail with ENOSYS.  Some functions are actually named
6253    something starting with __ and the normal name is an alias.  */
6254#if defined (__stub_remove) || defined (__stub___remove)
6255choke me
6256#else
6257char (*f) () = remove;
6258#endif
6259#ifdef __cplusplus
6260}
6261#endif
6262
6263int
6264main ()
6265{
6266return f != remove;
6267  ;
6268  return 0;
6269}
6270_ACEOF
6271rm -f conftest.$ac_objext conftest$ac_exeext
6272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6273  (eval $ac_link) 2>conftest.er1
6274  ac_status=$?
6275  grep -v '^ *+' conftest.er1 >conftest.err
6276  rm -f conftest.er1
6277  cat conftest.err >&5
6278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279  (exit $ac_status); } &&
6280	 { ac_try='test -z "$ac_c_werror_flag"
6281			 || test ! -s conftest.err'
6282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283  (eval $ac_try) 2>&5
6284  ac_status=$?
6285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286  (exit $ac_status); }; } &&
6287	 { ac_try='test -s conftest$ac_exeext'
6288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289  (eval $ac_try) 2>&5
6290  ac_status=$?
6291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292  (exit $ac_status); }; }; then
6293  ac_cv_func_remove=yes
6294else
6295  echo "$as_me: failed program was:" >&5
6296sed 's/^/| /' conftest.$ac_ext >&5
6297
6298ac_cv_func_remove=no
6299fi
6300rm -f conftest.err conftest.$ac_objext \
6301      conftest$ac_exeext conftest.$ac_ext
6302fi
6303echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6304echo "${ECHO_T}$ac_cv_func_remove" >&6
6305
6306    if test $ac_cv_func_remove = no; then
6307      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6308echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6309if test "${ac_cv_lib_posix_remove+set}" = set; then
6310  echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312  ac_check_lib_save_LIBS=$LIBS
6313LIBS="-lposix  $LIBS"
6314cat >conftest.$ac_ext <<_ACEOF
6315/* confdefs.h.  */
6316_ACEOF
6317cat confdefs.h >>conftest.$ac_ext
6318cat >>conftest.$ac_ext <<_ACEOF
6319/* end confdefs.h.  */
6320
6321/* Override any gcc2 internal prototype to avoid an error.  */
6322#ifdef __cplusplus
6323extern "C"
6324#endif
6325/* We use char because int might match the return type of a gcc2
6326   builtin and then its argument prototype would still apply.  */
6327char remove ();
6328int
6329main ()
6330{
6331remove ();
6332  ;
6333  return 0;
6334}
6335_ACEOF
6336rm -f conftest.$ac_objext conftest$ac_exeext
6337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338  (eval $ac_link) 2>conftest.er1
6339  ac_status=$?
6340  grep -v '^ *+' conftest.er1 >conftest.err
6341  rm -f conftest.er1
6342  cat conftest.err >&5
6343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344  (exit $ac_status); } &&
6345	 { ac_try='test -z "$ac_c_werror_flag"
6346			 || test ! -s conftest.err'
6347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348  (eval $ac_try) 2>&5
6349  ac_status=$?
6350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351  (exit $ac_status); }; } &&
6352	 { ac_try='test -s conftest$ac_exeext'
6353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354  (eval $ac_try) 2>&5
6355  ac_status=$?
6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357  (exit $ac_status); }; }; then
6358  ac_cv_lib_posix_remove=yes
6359else
6360  echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
6363ac_cv_lib_posix_remove=no
6364fi
6365rm -f conftest.err conftest.$ac_objext \
6366      conftest$ac_exeext conftest.$ac_ext
6367LIBS=$ac_check_lib_save_LIBS
6368fi
6369echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6370echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6371if test $ac_cv_lib_posix_remove = yes; then
6372  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6373fi
6374
6375    fi
6376
6377    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6378    echo "$as_me:$LINENO: checking for shmat" >&5
6379echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6380if test "${ac_cv_func_shmat+set}" = set; then
6381  echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
6383  cat >conftest.$ac_ext <<_ACEOF
6384/* confdefs.h.  */
6385_ACEOF
6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h.  */
6389/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6390   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6391#define shmat innocuous_shmat
6392
6393/* System header to define __stub macros and hopefully few prototypes,
6394    which can conflict with char shmat (); below.
6395    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6396    <limits.h> exists even on freestanding compilers.  */
6397
6398#ifdef __STDC__
6399# include <limits.h>
6400#else
6401# include <assert.h>
6402#endif
6403
6404#undef shmat
6405
6406/* Override any gcc2 internal prototype to avoid an error.  */
6407#ifdef __cplusplus
6408extern "C"
6409{
6410#endif
6411/* We use char because int might match the return type of a gcc2
6412   builtin and then its argument prototype would still apply.  */
6413char shmat ();
6414/* The GNU C library defines this for functions which it implements
6415    to always fail with ENOSYS.  Some functions are actually named
6416    something starting with __ and the normal name is an alias.  */
6417#if defined (__stub_shmat) || defined (__stub___shmat)
6418choke me
6419#else
6420char (*f) () = shmat;
6421#endif
6422#ifdef __cplusplus
6423}
6424#endif
6425
6426int
6427main ()
6428{
6429return f != shmat;
6430  ;
6431  return 0;
6432}
6433_ACEOF
6434rm -f conftest.$ac_objext conftest$ac_exeext
6435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436  (eval $ac_link) 2>conftest.er1
6437  ac_status=$?
6438  grep -v '^ *+' conftest.er1 >conftest.err
6439  rm -f conftest.er1
6440  cat conftest.err >&5
6441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442  (exit $ac_status); } &&
6443	 { ac_try='test -z "$ac_c_werror_flag"
6444			 || test ! -s conftest.err'
6445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446  (eval $ac_try) 2>&5
6447  ac_status=$?
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); }; } &&
6450	 { ac_try='test -s conftest$ac_exeext'
6451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452  (eval $ac_try) 2>&5
6453  ac_status=$?
6454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455  (exit $ac_status); }; }; then
6456  ac_cv_func_shmat=yes
6457else
6458  echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461ac_cv_func_shmat=no
6462fi
6463rm -f conftest.err conftest.$ac_objext \
6464      conftest$ac_exeext conftest.$ac_ext
6465fi
6466echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6467echo "${ECHO_T}$ac_cv_func_shmat" >&6
6468
6469    if test $ac_cv_func_shmat = no; then
6470      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6471echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6472if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6473  echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475  ac_check_lib_save_LIBS=$LIBS
6476LIBS="-lipc  $LIBS"
6477cat >conftest.$ac_ext <<_ACEOF
6478/* confdefs.h.  */
6479_ACEOF
6480cat confdefs.h >>conftest.$ac_ext
6481cat >>conftest.$ac_ext <<_ACEOF
6482/* end confdefs.h.  */
6483
6484/* Override any gcc2 internal prototype to avoid an error.  */
6485#ifdef __cplusplus
6486extern "C"
6487#endif
6488/* We use char because int might match the return type of a gcc2
6489   builtin and then its argument prototype would still apply.  */
6490char shmat ();
6491int
6492main ()
6493{
6494shmat ();
6495  ;
6496  return 0;
6497}
6498_ACEOF
6499rm -f conftest.$ac_objext conftest$ac_exeext
6500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6501  (eval $ac_link) 2>conftest.er1
6502  ac_status=$?
6503  grep -v '^ *+' conftest.er1 >conftest.err
6504  rm -f conftest.er1
6505  cat conftest.err >&5
6506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507  (exit $ac_status); } &&
6508	 { ac_try='test -z "$ac_c_werror_flag"
6509			 || test ! -s conftest.err'
6510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511  (eval $ac_try) 2>&5
6512  ac_status=$?
6513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514  (exit $ac_status); }; } &&
6515	 { ac_try='test -s conftest$ac_exeext'
6516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517  (eval $ac_try) 2>&5
6518  ac_status=$?
6519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520  (exit $ac_status); }; }; then
6521  ac_cv_lib_ipc_shmat=yes
6522else
6523  echo "$as_me: failed program was:" >&5
6524sed 's/^/| /' conftest.$ac_ext >&5
6525
6526ac_cv_lib_ipc_shmat=no
6527fi
6528rm -f conftest.err conftest.$ac_objext \
6529      conftest$ac_exeext conftest.$ac_ext
6530LIBS=$ac_check_lib_save_LIBS
6531fi
6532echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6533echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6534if test $ac_cv_lib_ipc_shmat = yes; then
6535  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6536fi
6537
6538    fi
6539  fi
6540
6541  # Check for libraries that X11R6 Xt/Xaw programs need.
6542  ac_save_LDFLAGS=$LDFLAGS
6543  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6544  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6545  # check for ICE first), but we must link in the order -lSM -lICE or
6546  # we get undefined symbols.  So assume we have SM if we have ICE.
6547  # These have to be linked with before -lX11, unlike the other
6548  # libraries we check for below, so use a different variable.
6549  # John Interrante, Karl Berry
6550  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6551echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6552if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6553  echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
6555  ac_check_lib_save_LIBS=$LIBS
6556LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6557cat >conftest.$ac_ext <<_ACEOF
6558/* confdefs.h.  */
6559_ACEOF
6560cat confdefs.h >>conftest.$ac_ext
6561cat >>conftest.$ac_ext <<_ACEOF
6562/* end confdefs.h.  */
6563
6564/* Override any gcc2 internal prototype to avoid an error.  */
6565#ifdef __cplusplus
6566extern "C"
6567#endif
6568/* We use char because int might match the return type of a gcc2
6569   builtin and then its argument prototype would still apply.  */
6570char IceConnectionNumber ();
6571int
6572main ()
6573{
6574IceConnectionNumber ();
6575  ;
6576  return 0;
6577}
6578_ACEOF
6579rm -f conftest.$ac_objext conftest$ac_exeext
6580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581  (eval $ac_link) 2>conftest.er1
6582  ac_status=$?
6583  grep -v '^ *+' conftest.er1 >conftest.err
6584  rm -f conftest.er1
6585  cat conftest.err >&5
6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587  (exit $ac_status); } &&
6588	 { ac_try='test -z "$ac_c_werror_flag"
6589			 || test ! -s conftest.err'
6590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591  (eval $ac_try) 2>&5
6592  ac_status=$?
6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594  (exit $ac_status); }; } &&
6595	 { ac_try='test -s conftest$ac_exeext'
6596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597  (eval $ac_try) 2>&5
6598  ac_status=$?
6599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600  (exit $ac_status); }; }; then
6601  ac_cv_lib_ICE_IceConnectionNumber=yes
6602else
6603  echo "$as_me: failed program was:" >&5
6604sed 's/^/| /' conftest.$ac_ext >&5
6605
6606ac_cv_lib_ICE_IceConnectionNumber=no
6607fi
6608rm -f conftest.err conftest.$ac_objext \
6609      conftest$ac_exeext conftest.$ac_ext
6610LIBS=$ac_check_lib_save_LIBS
6611fi
6612echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6613echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6614if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6615  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6616fi
6617
6618  LDFLAGS=$ac_save_LDFLAGS
6619
6620fi
6621
6622
6623        if test "$OS390Unix" = "yes"; then
6624    CFLAGS="$CFLAGS -W c,dll"
6625    LDFLAGS="$LDFLAGS -W l,dll"
6626    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6627  fi
6628
6629
6630  if test -d "$x_includes" && test ! -d "$x_libraries"; then
6631    x_libraries=`echo "$x_includes" | sed s/include/lib/`
6632    echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6633echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
6634    X_LIBS="$X_LIBS -L$x_libraries"
6635    if test "`(uname) 2>/dev/null`" = SunOS &&
6636					 uname -r | grep '^5' >/dev/null; then
6637      X_LIBS="$X_LIBS -R $x_libraries"
6638    fi
6639  fi
6640
6641  if test -d "$x_libraries" && test ! -d "$x_includes"; then
6642    x_includes=`echo "$x_libraries" | sed s/lib/include/`
6643    echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6644echo "${ECHO_T}Corrected X includes to $x_includes" >&6
6645    X_CFLAGS="$X_CFLAGS -I$x_includes"
6646  fi
6647
6648    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
6649    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
6650    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6651
6652
6653      echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6654echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
6655  cflags_save=$CFLAGS
6656  CFLAGS="$CFLAGS $X_CFLAGS"
6657  cat >conftest.$ac_ext <<_ACEOF
6658/* confdefs.h.  */
6659_ACEOF
6660cat confdefs.h >>conftest.$ac_ext
6661cat >>conftest.$ac_ext <<_ACEOF
6662/* end confdefs.h.  */
6663#include <X11/Xlib.h>
6664int
6665main ()
6666{
6667
6668  ;
6669  return 0;
6670}
6671_ACEOF
6672rm -f conftest.$ac_objext
6673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674  (eval $ac_compile) 2>conftest.er1
6675  ac_status=$?
6676  grep -v '^ *+' conftest.er1 >conftest.err
6677  rm -f conftest.er1
6678  cat conftest.err >&5
6679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680  (exit $ac_status); } &&
6681	 { ac_try='test -z "$ac_c_werror_flag"
6682			 || test ! -s conftest.err'
6683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684  (eval $ac_try) 2>&5
6685  ac_status=$?
6686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687  (exit $ac_status); }; } &&
6688	 { ac_try='test -s conftest.$ac_objext'
6689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690  (eval $ac_try) 2>&5
6691  ac_status=$?
6692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693  (exit $ac_status); }; }; then
6694  echo "$as_me:$LINENO: result: yes" >&5
6695echo "${ECHO_T}yes" >&6
6696else
6697  echo "$as_me: failed program was:" >&5
6698sed 's/^/| /' conftest.$ac_ext >&5
6699
6700echo "$as_me:$LINENO: result: no" >&5
6701echo "${ECHO_T}no" >&6; no_x=yes
6702fi
6703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6704  CFLAGS=$cflags_save
6705
6706  if test "${no_x-no}" = yes; then
6707    with_x=no
6708  else
6709    cat >>confdefs.h <<\_ACEOF
6710#define HAVE_X11 1
6711_ACEOF
6712
6713    X_LIB="-lXt -lX11";
6714
6715
6716    ac_save_LDFLAGS="$LDFLAGS"
6717    LDFLAGS="-L$x_libraries $LDFLAGS"
6718
6719            echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6720echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6721if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6722  echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
6724  ac_check_lib_save_LIBS=$LIBS
6725LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
6726cat >conftest.$ac_ext <<_ACEOF
6727/* confdefs.h.  */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
6731/* end confdefs.h.  */
6732
6733/* Override any gcc2 internal prototype to avoid an error.  */
6734#ifdef __cplusplus
6735extern "C"
6736#endif
6737/* We use char because int might match the return type of a gcc2
6738   builtin and then its argument prototype would still apply.  */
6739char _XdmcpAuthDoIt ();
6740int
6741main ()
6742{
6743_XdmcpAuthDoIt ();
6744  ;
6745  return 0;
6746}
6747_ACEOF
6748rm -f conftest.$ac_objext conftest$ac_exeext
6749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750  (eval $ac_link) 2>conftest.er1
6751  ac_status=$?
6752  grep -v '^ *+' conftest.er1 >conftest.err
6753  rm -f conftest.er1
6754  cat conftest.err >&5
6755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756  (exit $ac_status); } &&
6757	 { ac_try='test -z "$ac_c_werror_flag"
6758			 || test ! -s conftest.err'
6759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760  (eval $ac_try) 2>&5
6761  ac_status=$?
6762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763  (exit $ac_status); }; } &&
6764	 { ac_try='test -s conftest$ac_exeext'
6765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766  (eval $ac_try) 2>&5
6767  ac_status=$?
6768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769  (exit $ac_status); }; }; then
6770  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
6771else
6772  echo "$as_me: failed program was:" >&5
6773sed 's/^/| /' conftest.$ac_ext >&5
6774
6775ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
6776fi
6777rm -f conftest.err conftest.$ac_objext \
6778      conftest$ac_exeext conftest.$ac_ext
6779LIBS=$ac_check_lib_save_LIBS
6780fi
6781echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6782echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6783if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
6784  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
6785fi
6786
6787
6788                    echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6789echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6790if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6791  echo $ECHO_N "(cached) $ECHO_C" >&6
6792else
6793  ac_check_lib_save_LIBS=$LIBS
6794LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6795cat >conftest.$ac_ext <<_ACEOF
6796/* confdefs.h.  */
6797_ACEOF
6798cat confdefs.h >>conftest.$ac_ext
6799cat >>conftest.$ac_ext <<_ACEOF
6800/* end confdefs.h.  */
6801
6802/* Override any gcc2 internal prototype to avoid an error.  */
6803#ifdef __cplusplus
6804extern "C"
6805#endif
6806/* We use char because int might match the return type of a gcc2
6807   builtin and then its argument prototype would still apply.  */
6808char IceOpenConnection ();
6809int
6810main ()
6811{
6812IceOpenConnection ();
6813  ;
6814  return 0;
6815}
6816_ACEOF
6817rm -f conftest.$ac_objext conftest$ac_exeext
6818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819  (eval $ac_link) 2>conftest.er1
6820  ac_status=$?
6821  grep -v '^ *+' conftest.er1 >conftest.err
6822  rm -f conftest.er1
6823  cat conftest.err >&5
6824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825  (exit $ac_status); } &&
6826	 { ac_try='test -z "$ac_c_werror_flag"
6827			 || test ! -s conftest.err'
6828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829  (eval $ac_try) 2>&5
6830  ac_status=$?
6831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832  (exit $ac_status); }; } &&
6833	 { ac_try='test -s conftest$ac_exeext'
6834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835  (eval $ac_try) 2>&5
6836  ac_status=$?
6837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838  (exit $ac_status); }; }; then
6839  ac_cv_lib_ICE_IceOpenConnection=yes
6840else
6841  echo "$as_me: failed program was:" >&5
6842sed 's/^/| /' conftest.$ac_ext >&5
6843
6844ac_cv_lib_ICE_IceOpenConnection=no
6845fi
6846rm -f conftest.err conftest.$ac_objext \
6847      conftest$ac_exeext conftest.$ac_ext
6848LIBS=$ac_check_lib_save_LIBS
6849fi
6850echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6851echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6852if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
6853  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
6854fi
6855
6856
6857        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
6858    echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6859echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6860if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6861  echo $ECHO_N "(cached) $ECHO_C" >&6
6862else
6863  ac_check_lib_save_LIBS=$LIBS
6864LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
6865cat >conftest.$ac_ext <<_ACEOF
6866/* confdefs.h.  */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h.  */
6871
6872/* Override any gcc2 internal prototype to avoid an error.  */
6873#ifdef __cplusplus
6874extern "C"
6875#endif
6876/* We use char because int might match the return type of a gcc2
6877   builtin and then its argument prototype would still apply.  */
6878char XpmCreatePixmapFromData ();
6879int
6880main ()
6881{
6882XpmCreatePixmapFromData ();
6883  ;
6884  return 0;
6885}
6886_ACEOF
6887rm -f conftest.$ac_objext conftest$ac_exeext
6888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889  (eval $ac_link) 2>conftest.er1
6890  ac_status=$?
6891  grep -v '^ *+' conftest.er1 >conftest.err
6892  rm -f conftest.er1
6893  cat conftest.err >&5
6894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895  (exit $ac_status); } &&
6896	 { ac_try='test -z "$ac_c_werror_flag"
6897			 || test ! -s conftest.err'
6898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899  (eval $ac_try) 2>&5
6900  ac_status=$?
6901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902  (exit $ac_status); }; } &&
6903	 { ac_try='test -s conftest$ac_exeext'
6904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905  (eval $ac_try) 2>&5
6906  ac_status=$?
6907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908  (exit $ac_status); }; }; then
6909  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
6910else
6911  echo "$as_me: failed program was:" >&5
6912sed 's/^/| /' conftest.$ac_ext >&5
6913
6914ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
6915fi
6916rm -f conftest.err conftest.$ac_objext \
6917      conftest$ac_exeext conftest.$ac_ext
6918LIBS=$ac_check_lib_save_LIBS
6919fi
6920echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6921echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6922if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
6923  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
6924fi
6925
6926
6927        echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6928echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
6929    cflags_save=$CFLAGS
6930    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
6931    cat >conftest.$ac_ext <<_ACEOF
6932/* confdefs.h.  */
6933_ACEOF
6934cat confdefs.h >>conftest.$ac_ext
6935cat >>conftest.$ac_ext <<_ACEOF
6936/* end confdefs.h.  */
6937#include <X11/Xlib.h>
6938int
6939main ()
6940{
6941
6942  ;
6943  return 0;
6944}
6945_ACEOF
6946rm -f conftest.$ac_objext
6947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948  (eval $ac_compile) 2>conftest.er1
6949  ac_status=$?
6950  grep -v '^ *+' conftest.er1 >conftest.err
6951  rm -f conftest.er1
6952  cat conftest.err >&5
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); } &&
6955	 { ac_try='test -z "$ac_c_werror_flag"
6956			 || test ! -s conftest.err'
6957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958  (eval $ac_try) 2>&5
6959  ac_status=$?
6960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961  (exit $ac_status); }; } &&
6962	 { ac_try='test -s conftest.$ac_objext'
6963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964  (eval $ac_try) 2>&5
6965  ac_status=$?
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); }; }; then
6968  echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
6970else
6971  echo "$as_me: failed program was:" >&5
6972sed 's/^/| /' conftest.$ac_ext >&5
6973
6974CFLAGS="$CFLAGS -Wno-implicit-int"
6975	cat >conftest.$ac_ext <<_ACEOF
6976/* confdefs.h.  */
6977_ACEOF
6978cat confdefs.h >>conftest.$ac_ext
6979cat >>conftest.$ac_ext <<_ACEOF
6980/* end confdefs.h.  */
6981#include <X11/Xlib.h>
6982int
6983main ()
6984{
6985
6986  ;
6987  return 0;
6988}
6989_ACEOF
6990rm -f conftest.$ac_objext
6991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6992  (eval $ac_compile) 2>conftest.er1
6993  ac_status=$?
6994  grep -v '^ *+' conftest.er1 >conftest.err
6995  rm -f conftest.er1
6996  cat conftest.err >&5
6997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998  (exit $ac_status); } &&
6999	 { ac_try='test -z "$ac_c_werror_flag"
7000			 || test ! -s conftest.err'
7001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002  (eval $ac_try) 2>&5
7003  ac_status=$?
7004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005  (exit $ac_status); }; } &&
7006	 { ac_try='test -s conftest.$ac_objext'
7007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008  (eval $ac_try) 2>&5
7009  ac_status=$?
7010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011  (exit $ac_status); }; }; then
7012  echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
7014else
7015  echo "$as_me: failed program was:" >&5
7016sed 's/^/| /' conftest.$ac_ext >&5
7017
7018echo "$as_me:$LINENO: result: test failed" >&5
7019echo "${ECHO_T}test failed" >&6
7020
7021fi
7022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023
7024fi
7025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7026    CFLAGS=$cflags_save
7027
7028    LDFLAGS="$ac_save_LDFLAGS"
7029
7030  fi
7031fi
7032
7033test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7034
7035echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7036echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
7037# Check whether --enable-gui or --disable-gui was given.
7038if test "${enable_gui+set}" = set; then
7039  enableval="$enable_gui"
7040
7041else
7042  enable_gui="auto"
7043fi;
7044
7045enable_gui_canon=`echo "_$enable_gui" | \
7046	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7047
7048SKIP_GTK=YES
7049SKIP_GTK2=YES
7050SKIP_GNOME=YES
7051SKIP_MOTIF=YES
7052SKIP_ATHENA=YES
7053SKIP_NEXTAW=YES
7054SKIP_PHOTON=YES
7055SKIP_CARBON=YES
7056GUITYPE=NONE
7057
7058if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7059  SKIP_PHOTON=
7060  case "$enable_gui_canon" in
7061    no)		echo "$as_me:$LINENO: result: no GUI support" >&5
7062echo "${ECHO_T}no GUI support" >&6
7063		SKIP_PHOTON=YES ;;
7064    yes|"")	echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7065echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7066    auto)	echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7067echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7068    photon)	echo "$as_me:$LINENO: result: Photon GUI support" >&5
7069echo "${ECHO_T}Photon GUI support" >&6 ;;
7070    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7071echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7072		SKIP_PHOTON=YES ;;
7073  esac
7074
7075elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7076  SKIP_CARBON=
7077  case "$enable_gui_canon" in
7078    no)		echo "$as_me:$LINENO: result: no GUI support" >&5
7079echo "${ECHO_T}no GUI support" >&6
7080		SKIP_CARBON=YES ;;
7081    yes|"")	echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7082echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7083    auto)	echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7084echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7085    carbon)	echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7086echo "${ECHO_T}Carbon GUI support" >&6 ;;
7087    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7088echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7089		SKIP_CARBON=YES ;;
7090  esac
7091
7092else
7093
7094  case "$enable_gui_canon" in
7095    no|none)	echo "$as_me:$LINENO: result: no GUI support" >&5
7096echo "${ECHO_T}no GUI support" >&6 ;;
7097    yes|""|auto)	echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7098echo "${ECHO_T}yes/auto - automatic GUI support" >&6
7099		SKIP_GTK=
7100		SKIP_GTK2=
7101		SKIP_GNOME=
7102		SKIP_MOTIF=
7103		SKIP_ATHENA=
7104		SKIP_NEXTAW=
7105		SKIP_CARBON=;;
7106    gtk)	echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7107echo "${ECHO_T}GTK+ 1.x GUI support" >&6
7108		SKIP_GTK=;;
7109    gtk2)	echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7110echo "${ECHO_T}GTK+ 2.x GUI support" >&6
7111		SKIP_GTK=
7112		SKIP_GTK2=;;
7113    gnome)	echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7114echo "${ECHO_T}GNOME 1.x GUI support" >&6
7115		SKIP_GNOME=
7116		SKIP_GTK=;;
7117    gnome2)	echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7118echo "${ECHO_T}GNOME 2.x GUI support" >&6
7119		SKIP_GNOME=
7120		SKIP_GTK=
7121		SKIP_GTK2=;;
7122    motif)	echo "$as_me:$LINENO: result: Motif GUI support" >&5
7123echo "${ECHO_T}Motif GUI support" >&6
7124		SKIP_MOTIF=;;
7125    athena)	echo "$as_me:$LINENO: result: Athena GUI support" >&5
7126echo "${ECHO_T}Athena GUI support" >&6
7127		SKIP_ATHENA=;;
7128    nextaw)	echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7129echo "${ECHO_T}neXtaw GUI support" >&6
7130		SKIP_NEXTAW=;;
7131    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7132echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
7133  esac
7134
7135fi
7136
7137if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
7138  echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7139echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
7140  # Check whether --enable-gtk-check or --disable-gtk-check was given.
7141if test "${enable_gtk_check+set}" = set; then
7142  enableval="$enable_gtk_check"
7143
7144else
7145  enable_gtk_check="yes"
7146fi;
7147  echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7148echo "${ECHO_T}$enable_gtk_check" >&6
7149  if test "x$enable_gtk_check" = "xno"; then
7150    SKIP_GTK=YES
7151    SKIP_GNOME=YES
7152  fi
7153fi
7154
7155if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7156				-a "$enable_gui_canon" != "gnome2"; then
7157  echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7158echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
7159  # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7160if test "${enable_gtk2_check+set}" = set; then
7161  enableval="$enable_gtk2_check"
7162
7163else
7164  enable_gtk2_check="yes"
7165fi;
7166  echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7167echo "${ECHO_T}$enable_gtk2_check" >&6
7168  if test "x$enable_gtk2_check" = "xno"; then
7169    SKIP_GTK2=YES
7170  fi
7171fi
7172
7173if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7174				 -a "$enable_gui_canon" != "gnome2"; then
7175  echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7176echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
7177  # Check whether --enable-gnome-check or --disable-gnome-check was given.
7178if test "${enable_gnome_check+set}" = set; then
7179  enableval="$enable_gnome_check"
7180
7181else
7182  enable_gnome_check="no"
7183fi;
7184  echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7185echo "${ECHO_T}$enable_gnome_check" >&6
7186  if test "x$enable_gnome_check" = "xno"; then
7187    SKIP_GNOME=YES
7188  fi
7189fi
7190
7191if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
7192  echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7193echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
7194  # Check whether --enable-motif-check or --disable-motif-check was given.
7195if test "${enable_motif_check+set}" = set; then
7196  enableval="$enable_motif_check"
7197
7198else
7199  enable_motif_check="yes"
7200fi;
7201  echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7202echo "${ECHO_T}$enable_motif_check" >&6
7203  if test "x$enable_motif_check" = "xno"; then
7204    SKIP_MOTIF=YES
7205  fi
7206fi
7207
7208if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
7209  echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7210echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
7211  # Check whether --enable-athena-check or --disable-athena-check was given.
7212if test "${enable_athena_check+set}" = set; then
7213  enableval="$enable_athena_check"
7214
7215else
7216  enable_athena_check="yes"
7217fi;
7218  echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7219echo "${ECHO_T}$enable_athena_check" >&6
7220  if test "x$enable_athena_check" = "xno"; then
7221    SKIP_ATHENA=YES
7222  fi
7223fi
7224
7225if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
7226  echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7227echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
7228  # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7229if test "${enable_nextaw_check+set}" = set; then
7230  enableval="$enable_nextaw_check"
7231
7232else
7233  enable_nextaw_check="yes"
7234fi;
7235  echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7236echo "${ECHO_T}$enable_nextaw_check" >&6;
7237  if test "x$enable_nextaw_check" = "xno"; then
7238    SKIP_NEXTAW=YES
7239  fi
7240fi
7241
7242if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
7243  echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7244echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
7245  # Check whether --enable-carbon-check or --disable-carbon-check was given.
7246if test "${enable_carbon_check+set}" = set; then
7247  enableval="$enable_carbon_check"
7248
7249else
7250  enable_carbon_check="yes"
7251fi;
7252  echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7253echo "${ECHO_T}$enable_carbon_check" >&6;
7254  if test "x$enable_carbon_check" = "xno"; then
7255    SKIP_CARBON=YES
7256  fi
7257fi
7258
7259
7260if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
7261  echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7262echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7263    echo "$as_me:$LINENO: result: yes" >&5
7264echo "${ECHO_T}yes" >&6;
7265  GUITYPE=CARBONGUI
7266  if test "$VIMNAME" = "vim"; then
7267    VIMNAME=Vim
7268  fi
7269    SKIP_GTK=YES;
7270  SKIP_GTK2=YES;
7271  SKIP_GNOME=YES;
7272  SKIP_MOTIF=YES;
7273  SKIP_ATHENA=YES;
7274  SKIP_NEXTAW=YES;
7275  SKIP_PHOTON=YES;
7276  SKIP_CARBON=YES
7277fi
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287if test -z "$SKIP_GTK"; then
7288
7289  echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7290echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7291
7292# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7293if test "${with_gtk_prefix+set}" = set; then
7294  withval="$with_gtk_prefix"
7295  gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7296echo "${ECHO_T}$gtk_config_prefix" >&6
7297else
7298  gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6
7300fi;
7301
7302  echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7303echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
7304
7305# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7306if test "${with_gtk_exec_prefix+set}" = set; then
7307  withval="$with_gtk_exec_prefix"
7308  gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7309echo "${ECHO_T}$gtk_config_prefix" >&6
7310else
7311  gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7312echo "${ECHO_T}no" >&6
7313fi;
7314
7315  echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7316echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
7317  # Check whether --enable-gtktest or --disable-gtktest was given.
7318if test "${enable_gtktest+set}" = set; then
7319  enableval="$enable_gtktest"
7320
7321else
7322  enable_gtktest=yes
7323fi;
7324  if test "x$enable_gtktest" = "xyes" ; then
7325    echo "$as_me:$LINENO: result: gtk test enabled" >&5
7326echo "${ECHO_T}gtk test enabled" >&6
7327  else
7328    echo "$as_me:$LINENO: result: gtk test disabled" >&5
7329echo "${ECHO_T}gtk test disabled" >&6
7330  fi
7331
7332  if test "x$gtk_config_prefix" != "x" ; then
7333    gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7334    GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7335  fi
7336  if test "x$gtk_config_exec_prefix" != "x" ; then
7337    gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7338    GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7339  fi
7340  if test "X$GTK_CONFIG" = "X"; then
7341    # Extract the first word of "gtk-config", so it can be a program name with args.
7342set dummy gtk-config; ac_word=$2
7343echo "$as_me:$LINENO: checking for $ac_word" >&5
7344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7345if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7346  echo $ECHO_N "(cached) $ECHO_C" >&6
7347else
7348  case $GTK_CONFIG in
7349  [\\/]* | ?:[\\/]*)
7350  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7351  ;;
7352  *)
7353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356  IFS=$as_save_IFS
7357  test -z "$as_dir" && as_dir=.
7358  for ac_exec_ext in '' $ac_executable_extensions; do
7359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362    break 2
7363  fi
7364done
7365done
7366
7367  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7368  ;;
7369esac
7370fi
7371GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7372
7373if test -n "$GTK_CONFIG"; then
7374  echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7375echo "${ECHO_T}$GTK_CONFIG" >&6
7376else
7377  echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6
7379fi
7380
7381    if test "X$GTK_CONFIG" = "Xno"; then
7382            # Extract the first word of "gtk12-config", so it can be a program name with args.
7383set dummy gtk12-config; ac_word=$2
7384echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7387  echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389  case $GTK12_CONFIG in
7390  [\\/]* | ?:[\\/]*)
7391  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7392  ;;
7393  *)
7394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397  IFS=$as_save_IFS
7398  test -z "$as_dir" && as_dir=.
7399  for ac_exec_ext in '' $ac_executable_extensions; do
7400  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401    ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403    break 2
7404  fi
7405done
7406done
7407
7408  test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7409  ;;
7410esac
7411fi
7412GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7413
7414if test -n "$GTK12_CONFIG"; then
7415  echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7416echo "${ECHO_T}$GTK12_CONFIG" >&6
7417else
7418  echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
7420fi
7421
7422      GTK_CONFIG="$GTK12_CONFIG"
7423    fi
7424  else
7425    echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7426echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
7427  fi
7428  if test "X$PKG_CONFIG" = "X"; then
7429    # Extract the first word of "pkg-config", so it can be a program name with args.
7430set dummy pkg-config; ac_word=$2
7431echo "$as_me:$LINENO: checking for $ac_word" >&5
7432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7433if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7434  echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436  case $PKG_CONFIG in
7437  [\\/]* | ?:[\\/]*)
7438  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7439  ;;
7440  *)
7441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444  IFS=$as_save_IFS
7445  test -z "$as_dir" && as_dir=.
7446  for ac_exec_ext in '' $ac_executable_extensions; do
7447  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7449    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450    break 2
7451  fi
7452done
7453done
7454
7455  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7456  ;;
7457esac
7458fi
7459PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7460
7461if test -n "$PKG_CONFIG"; then
7462  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7463echo "${ECHO_T}$PKG_CONFIG" >&6
7464else
7465  echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
7467fi
7468
7469  fi
7470
7471  if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7472            if test "X$SKIP_GTK2" != "XYES"; then
7473
7474  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7475  {
7476    min_gtk_version=2.2.0
7477    echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7478echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7479    no_gtk=""
7480    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7481	  && $PKG_CONFIG --exists gtk+-2.0; then
7482    {
7483                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7484      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7485      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7486      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7487	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7488      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7489	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7490      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7491	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7492    }
7493    elif test "X$GTK_CONFIG" != "Xno"; then
7494    {
7495      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7496      GTK_LIBDIR=
7497      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7498      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7499	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7500      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7501	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7502      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7503	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7504    }
7505    else
7506      no_gtk=yes
7507    fi
7508
7509    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7510    {
7511      ac_save_CFLAGS="$CFLAGS"
7512      ac_save_LIBS="$LIBS"
7513      CFLAGS="$CFLAGS $GTK_CFLAGS"
7514      LIBS="$LIBS $GTK_LIBS"
7515
7516                              rm -f conf.gtktest
7517      if test "$cross_compiling" = yes; then
7518  echo $ac_n "cross compiling; assumed OK... $ac_c"
7519else
7520  cat >conftest.$ac_ext <<_ACEOF
7521/* confdefs.h.  */
7522_ACEOF
7523cat confdefs.h >>conftest.$ac_ext
7524cat >>conftest.$ac_ext <<_ACEOF
7525/* end confdefs.h.  */
7526
7527#include <gtk/gtk.h>
7528#include <stdio.h>
7529
7530int
7531main ()
7532{
7533int major, minor, micro;
7534char *tmp_version;
7535
7536system ("touch conf.gtktest");
7537
7538/* HP/UX 9 (%@#!) writes to sscanf strings */
7539tmp_version = g_strdup("$min_gtk_version");
7540if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7541   printf("%s, bad version string\n", "$min_gtk_version");
7542   exit(1);
7543 }
7544
7545if ((gtk_major_version > major) ||
7546    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7547    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7548				     (gtk_micro_version >= micro)))
7549{
7550    return 0;
7551}
7552return 1;
7553}
7554
7555_ACEOF
7556rm -f conftest$ac_exeext
7557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7558  (eval $ac_link) 2>&5
7559  ac_status=$?
7560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563  (eval $ac_try) 2>&5
7564  ac_status=$?
7565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566  (exit $ac_status); }; }; then
7567  :
7568else
7569  echo "$as_me: program exited with status $ac_status" >&5
7570echo "$as_me: failed program was:" >&5
7571sed 's/^/| /' conftest.$ac_ext >&5
7572
7573( exit $ac_status )
7574no_gtk=yes
7575fi
7576rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7577fi
7578      CFLAGS="$ac_save_CFLAGS"
7579      LIBS="$ac_save_LIBS"
7580    }
7581    fi
7582    if test "x$no_gtk" = x ; then
7583      if test "x$enable_gtktest" = "xyes"; then
7584	echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7585echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7586      else
7587	echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7588echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7589      fi
7590      GUI_LIB_LOC="$GTK_LIBDIR"
7591		   GTK_LIBNAME="$GTK_LIBS"
7592		  GUI_INC_LOC="$GTK_CFLAGS"
7593    else
7594    {
7595      echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
7597      GTK_CFLAGS=""
7598      GTK_LIBS=""
7599      :
7600    }
7601    fi
7602  }
7603  else
7604    GTK_CFLAGS=""
7605    GTK_LIBS=""
7606    :
7607  fi
7608
7609
7610  rm -f conf.gtktest
7611
7612      if test "x$GTK_CFLAGS" != "x"; then
7613	SKIP_ATHENA=YES
7614	SKIP_NEXTAW=YES
7615	SKIP_MOTIF=YES
7616	GUITYPE=GTK
7617
7618      fi
7619    fi
7620
7621                if test "x$GUITYPE" != "xGTK"; then
7622      SKIP_GTK2=YES
7623
7624  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7625  {
7626    min_gtk_version=1.1.16
7627    echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7628echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7629    no_gtk=""
7630    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7631	  && $PKG_CONFIG --exists gtk+-2.0; then
7632    {
7633                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7634      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7635      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7636      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7637	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7638      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7639	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7640      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7641	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7642    }
7643    elif test "X$GTK_CONFIG" != "Xno"; then
7644    {
7645      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7646      GTK_LIBDIR=
7647      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7648      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7649	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7650      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7651	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7652      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7653	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7654    }
7655    else
7656      no_gtk=yes
7657    fi
7658
7659    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7660    {
7661      ac_save_CFLAGS="$CFLAGS"
7662      ac_save_LIBS="$LIBS"
7663      CFLAGS="$CFLAGS $GTK_CFLAGS"
7664      LIBS="$LIBS $GTK_LIBS"
7665
7666                              rm -f conf.gtktest
7667      if test "$cross_compiling" = yes; then
7668  echo $ac_n "cross compiling; assumed OK... $ac_c"
7669else
7670  cat >conftest.$ac_ext <<_ACEOF
7671/* confdefs.h.  */
7672_ACEOF
7673cat confdefs.h >>conftest.$ac_ext
7674cat >>conftest.$ac_ext <<_ACEOF
7675/* end confdefs.h.  */
7676
7677#include <gtk/gtk.h>
7678#include <stdio.h>
7679
7680int
7681main ()
7682{
7683int major, minor, micro;
7684char *tmp_version;
7685
7686system ("touch conf.gtktest");
7687
7688/* HP/UX 9 (%@#!) writes to sscanf strings */
7689tmp_version = g_strdup("$min_gtk_version");
7690if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7691   printf("%s, bad version string\n", "$min_gtk_version");
7692   exit(1);
7693 }
7694
7695if ((gtk_major_version > major) ||
7696    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7697    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7698				     (gtk_micro_version >= micro)))
7699{
7700    return 0;
7701}
7702return 1;
7703}
7704
7705_ACEOF
7706rm -f conftest$ac_exeext
7707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708  (eval $ac_link) 2>&5
7709  ac_status=$?
7710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713  (eval $ac_try) 2>&5
7714  ac_status=$?
7715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716  (exit $ac_status); }; }; then
7717  :
7718else
7719  echo "$as_me: program exited with status $ac_status" >&5
7720echo "$as_me: failed program was:" >&5
7721sed 's/^/| /' conftest.$ac_ext >&5
7722
7723( exit $ac_status )
7724no_gtk=yes
7725fi
7726rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7727fi
7728      CFLAGS="$ac_save_CFLAGS"
7729      LIBS="$ac_save_LIBS"
7730    }
7731    fi
7732    if test "x$no_gtk" = x ; then
7733      if test "x$enable_gtktest" = "xyes"; then
7734	echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7735echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7736      else
7737	echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7738echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7739      fi
7740      GTK_LIBNAME="$GTK_LIBS"
7741		  GUI_INC_LOC="$GTK_CFLAGS"
7742    else
7743    {
7744      echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
7746      GTK_CFLAGS=""
7747      GTK_LIBS=""
7748      :
7749    }
7750    fi
7751  }
7752  else
7753    GTK_CFLAGS=""
7754    GTK_LIBS=""
7755    :
7756  fi
7757
7758
7759  rm -f conf.gtktest
7760
7761      if test "x$GTK_CFLAGS" != "x"; then
7762	SKIP_ATHENA=YES
7763	SKIP_NEXTAW=YES
7764	SKIP_MOTIF=YES
7765	GUITYPE=GTK
7766
7767      fi
7768    fi
7769  fi
7770    if test "x$GUITYPE" = "xGTK"; then
7771    if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7772	 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
7773      echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7774echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
7775    else
7776    {
7777      if test "0$gtk_major_version" -ge 2; then
7778	cat >>confdefs.h <<\_ACEOF
7779#define HAVE_GTK2 1
7780_ACEOF
7781
7782	if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7783		|| test "0$gtk_minor_version" -ge 2 \
7784		|| test "0$gtk_major_version" -gt 2; then
7785	  cat >>confdefs.h <<\_ACEOF
7786#define HAVE_GTK_MULTIHEAD 1
7787_ACEOF
7788
7789	fi
7790      fi
7791                        if test -z "$SKIP_GNOME"; then
7792      {
7793
7794
7795
7796
7797
7798
7799# Check whether --with-gnome-includes or --without-gnome-includes was given.
7800if test "${with_gnome_includes+set}" = set; then
7801  withval="$with_gnome_includes"
7802  CFLAGS="$CFLAGS -I$withval"
7803
7804fi;
7805
7806
7807# Check whether --with-gnome-libs or --without-gnome-libs was given.
7808if test "${with_gnome_libs+set}" = set; then
7809  withval="$with_gnome_libs"
7810  LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
7811
7812fi;
7813
7814
7815# Check whether --with-gnome or --without-gnome was given.
7816if test "${with_gnome+set}" = set; then
7817  withval="$with_gnome"
7818  if test x$withval = xyes; then
7819      want_gnome=yes
7820      have_gnome=yes
7821    else
7822      if test "x$withval" = xno; then
7823	want_gnome=no
7824      else
7825	want_gnome=yes
7826	LDFLAGS="$LDFLAGS -L$withval/lib"
7827	CFLAGS="$CFLAGS -I$withval/include"
7828	gnome_prefix=$withval/lib
7829      fi
7830    fi
7831else
7832  want_gnome=yes
7833fi;
7834
7835  if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7836  {
7837    echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7838echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
7839    if $PKG_CONFIG --exists libgnomeui-2.0; then
7840      echo "$as_me:$LINENO: result: yes" >&5
7841echo "${ECHO_T}yes" >&6
7842      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7843      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7844      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
7845
7846                  echo "$as_me:$LINENO: checking for FreeBSD" >&5
7847echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7848      if test "`(uname) 2>/dev/null`" = FreeBSD; then
7849	echo "$as_me:$LINENO: result: yes" >&5
7850echo "${ECHO_T}yes" >&6
7851        GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
7852	GNOME_LIBS="$GNOME_LIBS -pthread"
7853      else
7854	echo "$as_me:$LINENO: result: no" >&5
7855echo "${ECHO_T}no" >&6
7856      fi
7857      have_gnome=yes
7858    else
7859      echo "$as_me:$LINENO: result: not found" >&5
7860echo "${ECHO_T}not found" >&6
7861      if test "x" = xfail; then
7862	{ { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7863echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7864   { (exit 1); exit 1; }; }
7865      fi
7866    fi
7867  }
7868  elif test "x$want_gnome" = xyes; then
7869  {
7870    # Extract the first word of "gnome-config", so it can be a program name with args.
7871set dummy gnome-config; ac_word=$2
7872echo "$as_me:$LINENO: checking for $ac_word" >&5
7873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7874if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7875  echo $ECHO_N "(cached) $ECHO_C" >&6
7876else
7877  case $GNOME_CONFIG in
7878  [\\/]* | ?:[\\/]*)
7879  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7880  ;;
7881  *)
7882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH
7884do
7885  IFS=$as_save_IFS
7886  test -z "$as_dir" && as_dir=.
7887  for ac_exec_ext in '' $ac_executable_extensions; do
7888  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889    ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891    break 2
7892  fi
7893done
7894done
7895
7896  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7897  ;;
7898esac
7899fi
7900GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7901
7902if test -n "$GNOME_CONFIG"; then
7903  echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7904echo "${ECHO_T}$GNOME_CONFIG" >&6
7905else
7906  echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908fi
7909
7910    if test "$GNOME_CONFIG" = "no"; then
7911      no_gnome_config="yes"
7912    else
7913      echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7914echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
7915      if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
7916	echo "$as_me:$LINENO: result: yes" >&5
7917echo "${ECHO_T}yes" >&6
7918	GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7919	GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7920	GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7921	have_gnome=yes
7922      else
7923	echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
7925	no_gnome_config="yes"
7926      fi
7927    fi
7928
7929    if test x$exec_prefix = xNONE; then
7930      if test x$prefix = xNONE; then
7931	gnome_prefix=$ac_default_prefix/lib
7932      else
7933	gnome_prefix=$prefix/lib
7934      fi
7935    else
7936      gnome_prefix=`eval echo \`echo $libdir\``
7937    fi
7938
7939    if test "$no_gnome_config" = "yes"; then
7940      echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7941echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
7942      if test -f $gnome_prefix/gnomeConf.sh; then
7943	echo "$as_me:$LINENO: result: found" >&5
7944echo "${ECHO_T}found" >&6
7945	echo "loading gnome configuration from" \
7946	  "$gnome_prefix/gnomeConf.sh"
7947	. $gnome_prefix/gnomeConf.sh
7948	have_gnome=yes
7949      else
7950	echo "$as_me:$LINENO: result: not found" >&5
7951echo "${ECHO_T}not found" >&6
7952	if test x = xfail; then
7953	  { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7954echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7955   { (exit 1); exit 1; }; }
7956	fi
7957      fi
7958    fi
7959  }
7960  fi
7961
7962	if test x$have_gnome = xyes ; then
7963	  cat >>confdefs.h <<\_ACEOF
7964#define FEAT_GUI_GNOME 1
7965_ACEOF
7966
7967	  GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7968	  GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7969	fi
7970      }
7971      fi
7972    }
7973    fi
7974  fi
7975fi
7976
7977
7978if test -z "$SKIP_MOTIF"; then
7979  gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
7980    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7981
7982  echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7983echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
7984  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7985  GUI_INC_LOC=
7986  for try in $gui_includes; do
7987    if test -f "$try/Xm/Xm.h"; then
7988      GUI_INC_LOC=$try
7989    fi
7990  done
7991  if test -n "$GUI_INC_LOC"; then
7992    if test "$GUI_INC_LOC" = /usr/include; then
7993      GUI_INC_LOC=
7994      echo "$as_me:$LINENO: result: in default path" >&5
7995echo "${ECHO_T}in default path" >&6
7996    else
7997      echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
7998echo "${ECHO_T}$GUI_INC_LOC" >&6
7999    fi
8000  else
8001    echo "$as_me:$LINENO: result: <not found>" >&5
8002echo "${ECHO_T}<not found>" >&6
8003    SKIP_MOTIF=YES
8004  fi
8005fi
8006
8007
8008if test -z "$SKIP_MOTIF"; then
8009  echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8010echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8011
8012# Check whether --with-motif-lib or --without-motif-lib was given.
8013if test "${with_motif_lib+set}" = set; then
8014  withval="$with_motif_lib"
8015   MOTIF_LIBNAME="${withval}"
8016fi;
8017
8018  if test -n "$MOTIF_LIBNAME"; then
8019    echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8020echo "${ECHO_T}$MOTIF_LIBNAME" >&6
8021    GUI_LIB_LOC=
8022  else
8023    echo "$as_me:$LINENO: result: no" >&5
8024echo "${ECHO_T}no" >&6
8025
8026        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8027
8028    echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8029echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
8030    gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
8031    GUI_LIB_LOC=
8032    for try in $gui_libs; do
8033      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
8034	if test -f "$libtry"; then
8035	  GUI_LIB_LOC=$try
8036	fi
8037      done
8038    done
8039    if test -n "$GUI_LIB_LOC"; then
8040            if test "$GUI_LIB_LOC" = /usr/lib; then
8041	GUI_LIB_LOC=
8042	echo "$as_me:$LINENO: result: in default path" >&5
8043echo "${ECHO_T}in default path" >&6
8044      else
8045	if test -n "$GUI_LIB_LOC"; then
8046	  echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8047echo "${ECHO_T}$GUI_LIB_LOC" >&6
8048	  if test "`(uname) 2>/dev/null`" = SunOS &&
8049					 uname -r | grep '^5' >/dev/null; then
8050	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8051	  fi
8052	fi
8053      fi
8054      MOTIF_LIBNAME=-lXm
8055    else
8056      echo "$as_me:$LINENO: result: <not found>" >&5
8057echo "${ECHO_T}<not found>" >&6
8058      SKIP_MOTIF=YES
8059    fi
8060  fi
8061fi
8062
8063if test -z "$SKIP_MOTIF"; then
8064  SKIP_ATHENA=YES
8065  SKIP_NEXTAW=YES
8066  GUITYPE=MOTIF
8067
8068fi
8069
8070
8071GUI_X_LIBS=
8072
8073if test -z "$SKIP_ATHENA"; then
8074  echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8075echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
8076  cflags_save=$CFLAGS
8077  CFLAGS="$CFLAGS $X_CFLAGS"
8078  cat >conftest.$ac_ext <<_ACEOF
8079/* confdefs.h.  */
8080_ACEOF
8081cat confdefs.h >>conftest.$ac_ext
8082cat >>conftest.$ac_ext <<_ACEOF
8083/* end confdefs.h.  */
8084
8085#include <X11/Intrinsic.h>
8086#include <X11/Xaw/Paned.h>
8087int
8088main ()
8089{
8090
8091  ;
8092  return 0;
8093}
8094_ACEOF
8095rm -f conftest.$ac_objext
8096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8097  (eval $ac_compile) 2>conftest.er1
8098  ac_status=$?
8099  grep -v '^ *+' conftest.er1 >conftest.err
8100  rm -f conftest.er1
8101  cat conftest.err >&5
8102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103  (exit $ac_status); } &&
8104	 { ac_try='test -z "$ac_c_werror_flag"
8105			 || test ! -s conftest.err'
8106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107  (eval $ac_try) 2>&5
8108  ac_status=$?
8109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110  (exit $ac_status); }; } &&
8111	 { ac_try='test -s conftest.$ac_objext'
8112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113  (eval $ac_try) 2>&5
8114  ac_status=$?
8115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116  (exit $ac_status); }; }; then
8117  echo "$as_me:$LINENO: result: yes" >&5
8118echo "${ECHO_T}yes" >&6
8119else
8120  echo "$as_me: failed program was:" >&5
8121sed 's/^/| /' conftest.$ac_ext >&5
8122
8123echo "$as_me:$LINENO: result: no" >&5
8124echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
8125fi
8126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8127  CFLAGS=$cflags_save
8128fi
8129
8130if test -z "$SKIP_ATHENA"; then
8131  GUITYPE=ATHENA
8132fi
8133
8134if test -z "$SKIP_NEXTAW"; then
8135  echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8136echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
8137  cflags_save=$CFLAGS
8138  CFLAGS="$CFLAGS $X_CFLAGS"
8139  cat >conftest.$ac_ext <<_ACEOF
8140/* confdefs.h.  */
8141_ACEOF
8142cat confdefs.h >>conftest.$ac_ext
8143cat >>conftest.$ac_ext <<_ACEOF
8144/* end confdefs.h.  */
8145
8146#include <X11/Intrinsic.h>
8147#include <X11/neXtaw/Paned.h>
8148int
8149main ()
8150{
8151
8152  ;
8153  return 0;
8154}
8155_ACEOF
8156rm -f conftest.$ac_objext
8157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8158  (eval $ac_compile) 2>conftest.er1
8159  ac_status=$?
8160  grep -v '^ *+' conftest.er1 >conftest.err
8161  rm -f conftest.er1
8162  cat conftest.err >&5
8163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164  (exit $ac_status); } &&
8165	 { ac_try='test -z "$ac_c_werror_flag"
8166			 || test ! -s conftest.err'
8167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168  (eval $ac_try) 2>&5
8169  ac_status=$?
8170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171  (exit $ac_status); }; } &&
8172	 { ac_try='test -s conftest.$ac_objext'
8173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174  (eval $ac_try) 2>&5
8175  ac_status=$?
8176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177  (exit $ac_status); }; }; then
8178  echo "$as_me:$LINENO: result: yes" >&5
8179echo "${ECHO_T}yes" >&6
8180else
8181  echo "$as_me: failed program was:" >&5
8182sed 's/^/| /' conftest.$ac_ext >&5
8183
8184echo "$as_me:$LINENO: result: no" >&5
8185echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
8186fi
8187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8188  CFLAGS=$cflags_save
8189fi
8190
8191if test -z "$SKIP_NEXTAW"; then
8192  GUITYPE=NEXTAW
8193fi
8194
8195if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8196      if test -n "$GUI_INC_LOC"; then
8197    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8198  fi
8199  if test -n "$GUI_LIB_LOC"; then
8200    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8201  fi
8202
8203    ldflags_save=$LDFLAGS
8204  LDFLAGS="$X_LIBS $LDFLAGS"
8205  echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8206echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8207if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8208  echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210  ac_check_lib_save_LIBS=$LIBS
8211LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8212cat >conftest.$ac_ext <<_ACEOF
8213/* confdefs.h.  */
8214_ACEOF
8215cat confdefs.h >>conftest.$ac_ext
8216cat >>conftest.$ac_ext <<_ACEOF
8217/* end confdefs.h.  */
8218
8219/* Override any gcc2 internal prototype to avoid an error.  */
8220#ifdef __cplusplus
8221extern "C"
8222#endif
8223/* We use char because int might match the return type of a gcc2
8224   builtin and then its argument prototype would still apply.  */
8225char XShapeQueryExtension ();
8226int
8227main ()
8228{
8229XShapeQueryExtension ();
8230  ;
8231  return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext conftest$ac_exeext
8235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236  (eval $ac_link) 2>conftest.er1
8237  ac_status=$?
8238  grep -v '^ *+' conftest.er1 >conftest.err
8239  rm -f conftest.er1
8240  cat conftest.err >&5
8241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242  (exit $ac_status); } &&
8243	 { ac_try='test -z "$ac_c_werror_flag"
8244			 || test ! -s conftest.err'
8245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246  (eval $ac_try) 2>&5
8247  ac_status=$?
8248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249  (exit $ac_status); }; } &&
8250	 { ac_try='test -s conftest$ac_exeext'
8251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252  (eval $ac_try) 2>&5
8253  ac_status=$?
8254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255  (exit $ac_status); }; }; then
8256  ac_cv_lib_Xext_XShapeQueryExtension=yes
8257else
8258  echo "$as_me: failed program was:" >&5
8259sed 's/^/| /' conftest.$ac_ext >&5
8260
8261ac_cv_lib_Xext_XShapeQueryExtension=no
8262fi
8263rm -f conftest.err conftest.$ac_objext \
8264      conftest$ac_exeext conftest.$ac_ext
8265LIBS=$ac_check_lib_save_LIBS
8266fi
8267echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8268echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8269if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8270  GUI_X_LIBS="-lXext"
8271fi
8272
8273    echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8274echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8275if test "${ac_cv_lib_w_wslen+set}" = set; then
8276  echo $ECHO_N "(cached) $ECHO_C" >&6
8277else
8278  ac_check_lib_save_LIBS=$LIBS
8279LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8280cat >conftest.$ac_ext <<_ACEOF
8281/* confdefs.h.  */
8282_ACEOF
8283cat confdefs.h >>conftest.$ac_ext
8284cat >>conftest.$ac_ext <<_ACEOF
8285/* end confdefs.h.  */
8286
8287/* Override any gcc2 internal prototype to avoid an error.  */
8288#ifdef __cplusplus
8289extern "C"
8290#endif
8291/* We use char because int might match the return type of a gcc2
8292   builtin and then its argument prototype would still apply.  */
8293char wslen ();
8294int
8295main ()
8296{
8297wslen ();
8298  ;
8299  return 0;
8300}
8301_ACEOF
8302rm -f conftest.$ac_objext conftest$ac_exeext
8303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304  (eval $ac_link) 2>conftest.er1
8305  ac_status=$?
8306  grep -v '^ *+' conftest.er1 >conftest.err
8307  rm -f conftest.er1
8308  cat conftest.err >&5
8309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310  (exit $ac_status); } &&
8311	 { ac_try='test -z "$ac_c_werror_flag"
8312			 || test ! -s conftest.err'
8313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314  (eval $ac_try) 2>&5
8315  ac_status=$?
8316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317  (exit $ac_status); }; } &&
8318	 { ac_try='test -s conftest$ac_exeext'
8319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320  (eval $ac_try) 2>&5
8321  ac_status=$?
8322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323  (exit $ac_status); }; }; then
8324  ac_cv_lib_w_wslen=yes
8325else
8326  echo "$as_me: failed program was:" >&5
8327sed 's/^/| /' conftest.$ac_ext >&5
8328
8329ac_cv_lib_w_wslen=no
8330fi
8331rm -f conftest.err conftest.$ac_objext \
8332      conftest$ac_exeext conftest.$ac_ext
8333LIBS=$ac_check_lib_save_LIBS
8334fi
8335echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8336echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8337if test $ac_cv_lib_w_wslen = yes; then
8338  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
8339fi
8340
8341  echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8342echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8343if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8344  echo $ECHO_N "(cached) $ECHO_C" >&6
8345else
8346  ac_check_lib_save_LIBS=$LIBS
8347LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8348cat >conftest.$ac_ext <<_ACEOF
8349/* confdefs.h.  */
8350_ACEOF
8351cat confdefs.h >>conftest.$ac_ext
8352cat >>conftest.$ac_ext <<_ACEOF
8353/* end confdefs.h.  */
8354
8355/* Override any gcc2 internal prototype to avoid an error.  */
8356#ifdef __cplusplus
8357extern "C"
8358#endif
8359/* We use char because int might match the return type of a gcc2
8360   builtin and then its argument prototype would still apply.  */
8361char dlsym ();
8362int
8363main ()
8364{
8365dlsym ();
8366  ;
8367  return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext conftest$ac_exeext
8371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372  (eval $ac_link) 2>conftest.er1
8373  ac_status=$?
8374  grep -v '^ *+' conftest.er1 >conftest.err
8375  rm -f conftest.er1
8376  cat conftest.err >&5
8377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378  (exit $ac_status); } &&
8379	 { ac_try='test -z "$ac_c_werror_flag"
8380			 || test ! -s conftest.err'
8381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382  (eval $ac_try) 2>&5
8383  ac_status=$?
8384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385  (exit $ac_status); }; } &&
8386	 { ac_try='test -s conftest$ac_exeext'
8387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388  (eval $ac_try) 2>&5
8389  ac_status=$?
8390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391  (exit $ac_status); }; }; then
8392  ac_cv_lib_dl_dlsym=yes
8393else
8394  echo "$as_me: failed program was:" >&5
8395sed 's/^/| /' conftest.$ac_ext >&5
8396
8397ac_cv_lib_dl_dlsym=no
8398fi
8399rm -f conftest.err conftest.$ac_objext \
8400      conftest$ac_exeext conftest.$ac_ext
8401LIBS=$ac_check_lib_save_LIBS
8402fi
8403echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8404echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8405if test $ac_cv_lib_dl_dlsym = yes; then
8406  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
8407fi
8408
8409  echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8410echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8411if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8412  echo $ECHO_N "(cached) $ECHO_C" >&6
8413else
8414  ac_check_lib_save_LIBS=$LIBS
8415LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8416cat >conftest.$ac_ext <<_ACEOF
8417/* confdefs.h.  */
8418_ACEOF
8419cat confdefs.h >>conftest.$ac_ext
8420cat >>conftest.$ac_ext <<_ACEOF
8421/* end confdefs.h.  */
8422
8423/* Override any gcc2 internal prototype to avoid an error.  */
8424#ifdef __cplusplus
8425extern "C"
8426#endif
8427/* We use char because int might match the return type of a gcc2
8428   builtin and then its argument prototype would still apply.  */
8429char XmuCreateStippledPixmap ();
8430int
8431main ()
8432{
8433XmuCreateStippledPixmap ();
8434  ;
8435  return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext conftest$ac_exeext
8439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440  (eval $ac_link) 2>conftest.er1
8441  ac_status=$?
8442  grep -v '^ *+' conftest.er1 >conftest.err
8443  rm -f conftest.er1
8444  cat conftest.err >&5
8445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446  (exit $ac_status); } &&
8447	 { ac_try='test -z "$ac_c_werror_flag"
8448			 || test ! -s conftest.err'
8449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450  (eval $ac_try) 2>&5
8451  ac_status=$?
8452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453  (exit $ac_status); }; } &&
8454	 { ac_try='test -s conftest$ac_exeext'
8455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456  (eval $ac_try) 2>&5
8457  ac_status=$?
8458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459  (exit $ac_status); }; }; then
8460  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
8461else
8462  echo "$as_me: failed program was:" >&5
8463sed 's/^/| /' conftest.$ac_ext >&5
8464
8465ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
8466fi
8467rm -f conftest.err conftest.$ac_objext \
8468      conftest$ac_exeext conftest.$ac_ext
8469LIBS=$ac_check_lib_save_LIBS
8470fi
8471echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8472echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8473if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
8474  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
8475fi
8476
8477  if test -z "$SKIP_MOTIF"; then
8478    echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8479echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8480if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8481  echo $ECHO_N "(cached) $ECHO_C" >&6
8482else
8483  ac_check_lib_save_LIBS=$LIBS
8484LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8485cat >conftest.$ac_ext <<_ACEOF
8486/* confdefs.h.  */
8487_ACEOF
8488cat confdefs.h >>conftest.$ac_ext
8489cat >>conftest.$ac_ext <<_ACEOF
8490/* end confdefs.h.  */
8491
8492/* Override any gcc2 internal prototype to avoid an error.  */
8493#ifdef __cplusplus
8494extern "C"
8495#endif
8496/* We use char because int might match the return type of a gcc2
8497   builtin and then its argument prototype would still apply.  */
8498char XpEndJob ();
8499int
8500main ()
8501{
8502XpEndJob ();
8503  ;
8504  return 0;
8505}
8506_ACEOF
8507rm -f conftest.$ac_objext conftest$ac_exeext
8508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509  (eval $ac_link) 2>conftest.er1
8510  ac_status=$?
8511  grep -v '^ *+' conftest.er1 >conftest.err
8512  rm -f conftest.er1
8513  cat conftest.err >&5
8514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515  (exit $ac_status); } &&
8516	 { ac_try='test -z "$ac_c_werror_flag"
8517			 || test ! -s conftest.err'
8518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519  (eval $ac_try) 2>&5
8520  ac_status=$?
8521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522  (exit $ac_status); }; } &&
8523	 { ac_try='test -s conftest$ac_exeext'
8524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525  (eval $ac_try) 2>&5
8526  ac_status=$?
8527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528  (exit $ac_status); }; }; then
8529  ac_cv_lib_Xp_XpEndJob=yes
8530else
8531  echo "$as_me: failed program was:" >&5
8532sed 's/^/| /' conftest.$ac_ext >&5
8533
8534ac_cv_lib_Xp_XpEndJob=no
8535fi
8536rm -f conftest.err conftest.$ac_objext \
8537      conftest$ac_exeext conftest.$ac_ext
8538LIBS=$ac_check_lib_save_LIBS
8539fi
8540echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8541echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8542if test $ac_cv_lib_Xp_XpEndJob = yes; then
8543  GUI_X_LIBS="-lXp $GUI_X_LIBS"
8544fi
8545
8546  fi
8547  LDFLAGS=$ldflags_save
8548
8549    echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8550echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
8551  NARROW_PROTO=
8552  rm -fr conftestdir
8553  if mkdir conftestdir; then
8554    cd conftestdir
8555    cat > Imakefile <<'EOF'
8556acfindx:
8557	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8558EOF
8559    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8560      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8561    fi
8562    cd ..
8563    rm -fr conftestdir
8564  fi
8565  if test -z "$NARROW_PROTO"; then
8566    echo "$as_me:$LINENO: result: no" >&5
8567echo "${ECHO_T}no" >&6
8568  else
8569    echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8570echo "${ECHO_T}$NARROW_PROTO" >&6
8571  fi
8572
8573fi
8574
8575if test "$enable_xsmp" = "yes"; then
8576  cppflags_save=$CPPFLAGS
8577  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8578
8579for ac_header in X11/SM/SMlib.h
8580do
8581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8582if eval "test \"\${$as_ac_Header+set}\" = set"; then
8583  echo "$as_me:$LINENO: checking for $ac_header" >&5
8584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8585if eval "test \"\${$as_ac_Header+set}\" = set"; then
8586  echo $ECHO_N "(cached) $ECHO_C" >&6
8587fi
8588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8590else
8591  # Is the header compilable?
8592echo "$as_me:$LINENO: checking $ac_header usability" >&5
8593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8594cat >conftest.$ac_ext <<_ACEOF
8595/* confdefs.h.  */
8596_ACEOF
8597cat confdefs.h >>conftest.$ac_ext
8598cat >>conftest.$ac_ext <<_ACEOF
8599/* end confdefs.h.  */
8600$ac_includes_default
8601#include <$ac_header>
8602_ACEOF
8603rm -f conftest.$ac_objext
8604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605  (eval $ac_compile) 2>conftest.er1
8606  ac_status=$?
8607  grep -v '^ *+' conftest.er1 >conftest.err
8608  rm -f conftest.er1
8609  cat conftest.err >&5
8610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611  (exit $ac_status); } &&
8612	 { ac_try='test -z "$ac_c_werror_flag"
8613			 || test ! -s conftest.err'
8614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615  (eval $ac_try) 2>&5
8616  ac_status=$?
8617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618  (exit $ac_status); }; } &&
8619	 { ac_try='test -s conftest.$ac_objext'
8620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621  (eval $ac_try) 2>&5
8622  ac_status=$?
8623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624  (exit $ac_status); }; }; then
8625  ac_header_compiler=yes
8626else
8627  echo "$as_me: failed program was:" >&5
8628sed 's/^/| /' conftest.$ac_ext >&5
8629
8630ac_header_compiler=no
8631fi
8632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8633echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8634echo "${ECHO_T}$ac_header_compiler" >&6
8635
8636# Is the header present?
8637echo "$as_me:$LINENO: checking $ac_header presence" >&5
8638echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8639cat >conftest.$ac_ext <<_ACEOF
8640/* confdefs.h.  */
8641_ACEOF
8642cat confdefs.h >>conftest.$ac_ext
8643cat >>conftest.$ac_ext <<_ACEOF
8644/* end confdefs.h.  */
8645#include <$ac_header>
8646_ACEOF
8647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8648  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8649  ac_status=$?
8650  grep -v '^ *+' conftest.er1 >conftest.err
8651  rm -f conftest.er1
8652  cat conftest.err >&5
8653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654  (exit $ac_status); } >/dev/null; then
8655  if test -s conftest.err; then
8656    ac_cpp_err=$ac_c_preproc_warn_flag
8657    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8658  else
8659    ac_cpp_err=
8660  fi
8661else
8662  ac_cpp_err=yes
8663fi
8664if test -z "$ac_cpp_err"; then
8665  ac_header_preproc=yes
8666else
8667  echo "$as_me: failed program was:" >&5
8668sed 's/^/| /' conftest.$ac_ext >&5
8669
8670  ac_header_preproc=no
8671fi
8672rm -f conftest.err conftest.$ac_ext
8673echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8674echo "${ECHO_T}$ac_header_preproc" >&6
8675
8676# So?  What about this header?
8677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8678  yes:no: )
8679    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8680echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8681    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8682echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8683    ac_header_preproc=yes
8684    ;;
8685  no:yes:* )
8686    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8688    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8689echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8690    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8691echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8692    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8693echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8694    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8695echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8696    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8697echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8698    (
8699      cat <<\_ASBOX
8700## ------------------------------------------ ##
8701## Report this to the AC_PACKAGE_NAME lists.  ##
8702## ------------------------------------------ ##
8703_ASBOX
8704    ) |
8705      sed "s/^/$as_me: WARNING:     /" >&2
8706    ;;
8707esac
8708echo "$as_me:$LINENO: checking for $ac_header" >&5
8709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8710if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711  echo $ECHO_N "(cached) $ECHO_C" >&6
8712else
8713  eval "$as_ac_Header=\$ac_header_preproc"
8714fi
8715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8717
8718fi
8719if test `eval echo '${'$as_ac_Header'}'` = yes; then
8720  cat >>confdefs.h <<_ACEOF
8721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8722_ACEOF
8723
8724fi
8725
8726done
8727
8728  CPPFLAGS=$cppflags_save
8729fi
8730
8731
8732if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8733    cppflags_save=$CPPFLAGS
8734  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8735
8736
8737for ac_header in X11/xpm.h X11/Sunkeysym.h
8738do
8739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8740if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741  echo "$as_me:$LINENO: checking for $ac_header" >&5
8742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8743if eval "test \"\${$as_ac_Header+set}\" = set"; then
8744  echo $ECHO_N "(cached) $ECHO_C" >&6
8745fi
8746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8748else
8749  # Is the header compilable?
8750echo "$as_me:$LINENO: checking $ac_header usability" >&5
8751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8752cat >conftest.$ac_ext <<_ACEOF
8753/* confdefs.h.  */
8754_ACEOF
8755cat confdefs.h >>conftest.$ac_ext
8756cat >>conftest.$ac_ext <<_ACEOF
8757/* end confdefs.h.  */
8758$ac_includes_default
8759#include <$ac_header>
8760_ACEOF
8761rm -f conftest.$ac_objext
8762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763  (eval $ac_compile) 2>conftest.er1
8764  ac_status=$?
8765  grep -v '^ *+' conftest.er1 >conftest.err
8766  rm -f conftest.er1
8767  cat conftest.err >&5
8768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769  (exit $ac_status); } &&
8770	 { ac_try='test -z "$ac_c_werror_flag"
8771			 || test ! -s conftest.err'
8772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773  (eval $ac_try) 2>&5
8774  ac_status=$?
8775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776  (exit $ac_status); }; } &&
8777	 { ac_try='test -s conftest.$ac_objext'
8778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779  (eval $ac_try) 2>&5
8780  ac_status=$?
8781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782  (exit $ac_status); }; }; then
8783  ac_header_compiler=yes
8784else
8785  echo "$as_me: failed program was:" >&5
8786sed 's/^/| /' conftest.$ac_ext >&5
8787
8788ac_header_compiler=no
8789fi
8790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8792echo "${ECHO_T}$ac_header_compiler" >&6
8793
8794# Is the header present?
8795echo "$as_me:$LINENO: checking $ac_header presence" >&5
8796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8797cat >conftest.$ac_ext <<_ACEOF
8798/* confdefs.h.  */
8799_ACEOF
8800cat confdefs.h >>conftest.$ac_ext
8801cat >>conftest.$ac_ext <<_ACEOF
8802/* end confdefs.h.  */
8803#include <$ac_header>
8804_ACEOF
8805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8806  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8807  ac_status=$?
8808  grep -v '^ *+' conftest.er1 >conftest.err
8809  rm -f conftest.er1
8810  cat conftest.err >&5
8811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812  (exit $ac_status); } >/dev/null; then
8813  if test -s conftest.err; then
8814    ac_cpp_err=$ac_c_preproc_warn_flag
8815    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8816  else
8817    ac_cpp_err=
8818  fi
8819else
8820  ac_cpp_err=yes
8821fi
8822if test -z "$ac_cpp_err"; then
8823  ac_header_preproc=yes
8824else
8825  echo "$as_me: failed program was:" >&5
8826sed 's/^/| /' conftest.$ac_ext >&5
8827
8828  ac_header_preproc=no
8829fi
8830rm -f conftest.err conftest.$ac_ext
8831echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8832echo "${ECHO_T}$ac_header_preproc" >&6
8833
8834# So?  What about this header?
8835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8836  yes:no: )
8837    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8838echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8839    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8840echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8841    ac_header_preproc=yes
8842    ;;
8843  no:yes:* )
8844    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8846    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8847echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8848    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8849echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8850    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8851echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8852    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8854    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8855echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8856    (
8857      cat <<\_ASBOX
8858## ------------------------------------------ ##
8859## Report this to the AC_PACKAGE_NAME lists.  ##
8860## ------------------------------------------ ##
8861_ASBOX
8862    ) |
8863      sed "s/^/$as_me: WARNING:     /" >&2
8864    ;;
8865esac
8866echo "$as_me:$LINENO: checking for $ac_header" >&5
8867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8868if eval "test \"\${$as_ac_Header+set}\" = set"; then
8869  echo $ECHO_N "(cached) $ECHO_C" >&6
8870else
8871  eval "$as_ac_Header=\$ac_header_preproc"
8872fi
8873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8875
8876fi
8877if test `eval echo '${'$as_ac_Header'}'` = yes; then
8878  cat >>confdefs.h <<_ACEOF
8879#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8880_ACEOF
8881
8882fi
8883
8884done
8885
8886
8887    if test ! "$enable_xim" = "no"; then
8888    echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8889echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8890    cat >conftest.$ac_ext <<_ACEOF
8891/* confdefs.h.  */
8892_ACEOF
8893cat confdefs.h >>conftest.$ac_ext
8894cat >>conftest.$ac_ext <<_ACEOF
8895/* end confdefs.h.  */
8896#include <X11/Xlib.h>
8897_ACEOF
8898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8899  $EGREP "XIMText" >/dev/null 2>&1; then
8900  echo "$as_me:$LINENO: result: yes" >&5
8901echo "${ECHO_T}yes" >&6
8902else
8903  echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8904echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
8905fi
8906rm -f conftest*
8907
8908  fi
8909  CPPFLAGS=$cppflags_save
8910
8911    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8912		-a "x$GUITYPE" != "xNONE" ; then
8913    echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8914echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
8915    enable_xim="yes"
8916  fi
8917fi
8918
8919if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8920  cppflags_save=$CPPFLAGS
8921  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8922  echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8923echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8924  cat >conftest.$ac_ext <<_ACEOF
8925/* confdefs.h.  */
8926_ACEOF
8927cat confdefs.h >>conftest.$ac_ext
8928cat >>conftest.$ac_ext <<_ACEOF
8929/* end confdefs.h.  */
8930
8931#include <X11/Intrinsic.h>
8932#include <X11/Xmu/Editres.h>
8933int
8934main ()
8935{
8936int i; i = 0;
8937  ;
8938  return 0;
8939}
8940_ACEOF
8941rm -f conftest.$ac_objext
8942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8943  (eval $ac_compile) 2>conftest.er1
8944  ac_status=$?
8945  grep -v '^ *+' conftest.er1 >conftest.err
8946  rm -f conftest.er1
8947  cat conftest.err >&5
8948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949  (exit $ac_status); } &&
8950	 { ac_try='test -z "$ac_c_werror_flag"
8951			 || test ! -s conftest.err'
8952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953  (eval $ac_try) 2>&5
8954  ac_status=$?
8955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956  (exit $ac_status); }; } &&
8957	 { ac_try='test -s conftest.$ac_objext'
8958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959  (eval $ac_try) 2>&5
8960  ac_status=$?
8961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962  (exit $ac_status); }; }; then
8963  echo "$as_me:$LINENO: result: yes" >&5
8964echo "${ECHO_T}yes" >&6
8965		      cat >>confdefs.h <<\_ACEOF
8966#define HAVE_X11_XMU_EDITRES_H 1
8967_ACEOF
8968
8969else
8970  echo "$as_me: failed program was:" >&5
8971sed 's/^/| /' conftest.$ac_ext >&5
8972
8973echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
8975fi
8976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8977  CPPFLAGS=$cppflags_save
8978fi
8979
8980if test -z "$SKIP_MOTIF"; then
8981  cppflags_save=$CPPFLAGS
8982  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8983
8984
8985
8986
8987
8988
8989for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8990		   Xm/UnhighlightT.h
8991do
8992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8993if eval "test \"\${$as_ac_Header+set}\" = set"; then
8994  echo "$as_me:$LINENO: checking for $ac_header" >&5
8995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8996if eval "test \"\${$as_ac_Header+set}\" = set"; then
8997  echo $ECHO_N "(cached) $ECHO_C" >&6
8998fi
8999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9001else
9002  # Is the header compilable?
9003echo "$as_me:$LINENO: checking $ac_header usability" >&5
9004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9005cat >conftest.$ac_ext <<_ACEOF
9006/* confdefs.h.  */
9007_ACEOF
9008cat confdefs.h >>conftest.$ac_ext
9009cat >>conftest.$ac_ext <<_ACEOF
9010/* end confdefs.h.  */
9011$ac_includes_default
9012#include <$ac_header>
9013_ACEOF
9014rm -f conftest.$ac_objext
9015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016  (eval $ac_compile) 2>conftest.er1
9017  ac_status=$?
9018  grep -v '^ *+' conftest.er1 >conftest.err
9019  rm -f conftest.er1
9020  cat conftest.err >&5
9021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022  (exit $ac_status); } &&
9023	 { ac_try='test -z "$ac_c_werror_flag"
9024			 || test ! -s conftest.err'
9025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026  (eval $ac_try) 2>&5
9027  ac_status=$?
9028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029  (exit $ac_status); }; } &&
9030	 { ac_try='test -s conftest.$ac_objext'
9031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032  (eval $ac_try) 2>&5
9033  ac_status=$?
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); }; }; then
9036  ac_header_compiler=yes
9037else
9038  echo "$as_me: failed program was:" >&5
9039sed 's/^/| /' conftest.$ac_ext >&5
9040
9041ac_header_compiler=no
9042fi
9043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9045echo "${ECHO_T}$ac_header_compiler" >&6
9046
9047# Is the header present?
9048echo "$as_me:$LINENO: checking $ac_header presence" >&5
9049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9050cat >conftest.$ac_ext <<_ACEOF
9051/* confdefs.h.  */
9052_ACEOF
9053cat confdefs.h >>conftest.$ac_ext
9054cat >>conftest.$ac_ext <<_ACEOF
9055/* end confdefs.h.  */
9056#include <$ac_header>
9057_ACEOF
9058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9059  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9060  ac_status=$?
9061  grep -v '^ *+' conftest.er1 >conftest.err
9062  rm -f conftest.er1
9063  cat conftest.err >&5
9064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065  (exit $ac_status); } >/dev/null; then
9066  if test -s conftest.err; then
9067    ac_cpp_err=$ac_c_preproc_warn_flag
9068    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9069  else
9070    ac_cpp_err=
9071  fi
9072else
9073  ac_cpp_err=yes
9074fi
9075if test -z "$ac_cpp_err"; then
9076  ac_header_preproc=yes
9077else
9078  echo "$as_me: failed program was:" >&5
9079sed 's/^/| /' conftest.$ac_ext >&5
9080
9081  ac_header_preproc=no
9082fi
9083rm -f conftest.err conftest.$ac_ext
9084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9085echo "${ECHO_T}$ac_header_preproc" >&6
9086
9087# So?  What about this header?
9088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9089  yes:no: )
9090    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9092    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9094    ac_header_preproc=yes
9095    ;;
9096  no:yes:* )
9097    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9099    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9100echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9101    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9103    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9104echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9105    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9107    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9109    (
9110      cat <<\_ASBOX
9111## ------------------------------------------ ##
9112## Report this to the AC_PACKAGE_NAME lists.  ##
9113## ------------------------------------------ ##
9114_ASBOX
9115    ) |
9116      sed "s/^/$as_me: WARNING:     /" >&2
9117    ;;
9118esac
9119echo "$as_me:$LINENO: checking for $ac_header" >&5
9120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9121if eval "test \"\${$as_ac_Header+set}\" = set"; then
9122  echo $ECHO_N "(cached) $ECHO_C" >&6
9123else
9124  eval "$as_ac_Header=\$ac_header_preproc"
9125fi
9126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9128
9129fi
9130if test `eval echo '${'$as_ac_Header'}'` = yes; then
9131  cat >>confdefs.h <<_ACEOF
9132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9133_ACEOF
9134
9135fi
9136
9137done
9138
9139
9140  if test $ac_cv_header_Xm_XpmP_h = yes; then
9141        echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9142echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9143    cat >conftest.$ac_ext <<_ACEOF
9144/* confdefs.h.  */
9145_ACEOF
9146cat confdefs.h >>conftest.$ac_ext
9147cat >>conftest.$ac_ext <<_ACEOF
9148/* end confdefs.h.  */
9149#include <Xm/XpmP.h>
9150int
9151main ()
9152{
9153XpmAttributes_21 attr;
9154  ;
9155  return 0;
9156}
9157_ACEOF
9158rm -f conftest.$ac_objext
9159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9160  (eval $ac_compile) 2>conftest.er1
9161  ac_status=$?
9162  grep -v '^ *+' conftest.er1 >conftest.err
9163  rm -f conftest.er1
9164  cat conftest.err >&5
9165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166  (exit $ac_status); } &&
9167	 { ac_try='test -z "$ac_c_werror_flag"
9168			 || test ! -s conftest.err'
9169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170  (eval $ac_try) 2>&5
9171  ac_status=$?
9172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173  (exit $ac_status); }; } &&
9174	 { ac_try='test -s conftest.$ac_objext'
9175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176  (eval $ac_try) 2>&5
9177  ac_status=$?
9178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179  (exit $ac_status); }; }; then
9180  echo "$as_me:$LINENO: result: yes" >&5
9181echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9182#define XPMATTRIBUTES_TYPE XpmAttributes_21
9183_ACEOF
9184
9185else
9186  echo "$as_me: failed program was:" >&5
9187sed 's/^/| /' conftest.$ac_ext >&5
9188
9189echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
9191#define XPMATTRIBUTES_TYPE XpmAttributes
9192_ACEOF
9193
9194
9195fi
9196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9197  else
9198    cat >>confdefs.h <<\_ACEOF
9199#define XPMATTRIBUTES_TYPE XpmAttributes_21
9200_ACEOF
9201
9202  fi
9203  CPPFLAGS=$cppflags_save
9204fi
9205
9206if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
9207  echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9208echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
9209  enable_xim="no"
9210fi
9211if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
9212  echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9213echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
9214  enable_fontset="no"
9215fi
9216if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
9217  echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9218echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
9219  enable_fontset="no"
9220fi
9221
9222if test -z "$SKIP_PHOTON"; then
9223  GUITYPE=PHOTONGUI
9224fi
9225
9226
9227
9228
9229
9230
9231if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
9232  { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9233echo "$as_me: error: cannot use workshop without Motif" >&2;}
9234   { (exit 1); exit 1; }; }
9235fi
9236
9237if test "$enable_xim" = "yes"; then
9238  cat >>confdefs.h <<\_ACEOF
9239#define FEAT_XIM 1
9240_ACEOF
9241
9242fi
9243if test "$enable_fontset" = "yes"; then
9244  cat >>confdefs.h <<\_ACEOF
9245#define FEAT_XFONTSET 1
9246_ACEOF
9247
9248fi
9249
9250
9251
9252
9253if test "$enable_hangulinput" = "yes"; then
9254  if test "x$GUITYPE" = "xNONE"; then
9255    echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9256echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
9257    enable_hangulinput=no
9258  else
9259    cat >>confdefs.h <<\_ACEOF
9260#define FEAT_HANGULIN 1
9261_ACEOF
9262
9263    HANGULIN_SRC=hangulin.c
9264
9265    HANGULIN_OBJ=objects/hangulin.o
9266
9267  fi
9268fi
9269
9270
9271echo "$as_me:$LINENO: checking quality of toupper" >&5
9272echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
9273if test "$cross_compiling" = yes; then
9274  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9275echo "$as_me: error: failed to compile test program" >&2;}
9276   { (exit 1); exit 1; }; }
9277else
9278  cat >conftest.$ac_ext <<_ACEOF
9279/* confdefs.h.  */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h.  */
9284#include <ctype.h>
9285main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
9286_ACEOF
9287rm -f conftest$ac_exeext
9288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289  (eval $ac_link) 2>&5
9290  ac_status=$?
9291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294  (eval $ac_try) 2>&5
9295  ac_status=$?
9296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297  (exit $ac_status); }; }; then
9298  cat >>confdefs.h <<\_ACEOF
9299#define BROKEN_TOUPPER 1
9300_ACEOF
9301 echo "$as_me:$LINENO: result: bad" >&5
9302echo "${ECHO_T}bad" >&6
9303else
9304  echo "$as_me: program exited with status $ac_status" >&5
9305echo "$as_me: failed program was:" >&5
9306sed 's/^/| /' conftest.$ac_ext >&5
9307
9308( exit $ac_status )
9309echo "$as_me:$LINENO: result: good" >&5
9310echo "${ECHO_T}good" >&6
9311fi
9312rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9313fi
9314
9315echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9316echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9317cat >conftest.$ac_ext <<_ACEOF
9318/* confdefs.h.  */
9319_ACEOF
9320cat confdefs.h >>conftest.$ac_ext
9321cat >>conftest.$ac_ext <<_ACEOF
9322/* end confdefs.h.  */
9323
9324int
9325main ()
9326{
9327printf("(" __DATE__ " " __TIME__ ")");
9328  ;
9329  return 0;
9330}
9331_ACEOF
9332rm -f conftest.$ac_objext
9333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9334  (eval $ac_compile) 2>conftest.er1
9335  ac_status=$?
9336  grep -v '^ *+' conftest.er1 >conftest.err
9337  rm -f conftest.er1
9338  cat conftest.err >&5
9339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340  (exit $ac_status); } &&
9341	 { ac_try='test -z "$ac_c_werror_flag"
9342			 || test ! -s conftest.err'
9343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344  (eval $ac_try) 2>&5
9345  ac_status=$?
9346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347  (exit $ac_status); }; } &&
9348	 { ac_try='test -s conftest.$ac_objext'
9349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350  (eval $ac_try) 2>&5
9351  ac_status=$?
9352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353  (exit $ac_status); }; }; then
9354  echo "$as_me:$LINENO: result: yes" >&5
9355echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9356#define HAVE_DATE_TIME 1
9357_ACEOF
9358
9359else
9360  echo "$as_me: failed program was:" >&5
9361sed 's/^/| /' conftest.$ac_ext >&5
9362
9363echo "$as_me:$LINENO: result: no" >&5
9364echo "${ECHO_T}no" >&6
9365fi
9366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9367
9368if test "${ac_cv_header_elf_h+set}" = set; then
9369  echo "$as_me:$LINENO: checking for elf.h" >&5
9370echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9371if test "${ac_cv_header_elf_h+set}" = set; then
9372  echo $ECHO_N "(cached) $ECHO_C" >&6
9373fi
9374echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9375echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9376else
9377  # Is the header compilable?
9378echo "$as_me:$LINENO: checking elf.h usability" >&5
9379echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9380cat >conftest.$ac_ext <<_ACEOF
9381/* confdefs.h.  */
9382_ACEOF
9383cat confdefs.h >>conftest.$ac_ext
9384cat >>conftest.$ac_ext <<_ACEOF
9385/* end confdefs.h.  */
9386$ac_includes_default
9387#include <elf.h>
9388_ACEOF
9389rm -f conftest.$ac_objext
9390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9391  (eval $ac_compile) 2>conftest.er1
9392  ac_status=$?
9393  grep -v '^ *+' conftest.er1 >conftest.err
9394  rm -f conftest.er1
9395  cat conftest.err >&5
9396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397  (exit $ac_status); } &&
9398	 { ac_try='test -z "$ac_c_werror_flag"
9399			 || test ! -s conftest.err'
9400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401  (eval $ac_try) 2>&5
9402  ac_status=$?
9403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404  (exit $ac_status); }; } &&
9405	 { ac_try='test -s conftest.$ac_objext'
9406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407  (eval $ac_try) 2>&5
9408  ac_status=$?
9409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410  (exit $ac_status); }; }; then
9411  ac_header_compiler=yes
9412else
9413  echo "$as_me: failed program was:" >&5
9414sed 's/^/| /' conftest.$ac_ext >&5
9415
9416ac_header_compiler=no
9417fi
9418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9419echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9420echo "${ECHO_T}$ac_header_compiler" >&6
9421
9422# Is the header present?
9423echo "$as_me:$LINENO: checking elf.h presence" >&5
9424echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9425cat >conftest.$ac_ext <<_ACEOF
9426/* confdefs.h.  */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
9430/* end confdefs.h.  */
9431#include <elf.h>
9432_ACEOF
9433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9434  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9435  ac_status=$?
9436  grep -v '^ *+' conftest.er1 >conftest.err
9437  rm -f conftest.er1
9438  cat conftest.err >&5
9439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440  (exit $ac_status); } >/dev/null; then
9441  if test -s conftest.err; then
9442    ac_cpp_err=$ac_c_preproc_warn_flag
9443    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9444  else
9445    ac_cpp_err=
9446  fi
9447else
9448  ac_cpp_err=yes
9449fi
9450if test -z "$ac_cpp_err"; then
9451  ac_header_preproc=yes
9452else
9453  echo "$as_me: failed program was:" >&5
9454sed 's/^/| /' conftest.$ac_ext >&5
9455
9456  ac_header_preproc=no
9457fi
9458rm -f conftest.err conftest.$ac_ext
9459echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9460echo "${ECHO_T}$ac_header_preproc" >&6
9461
9462# So?  What about this header?
9463case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9464  yes:no: )
9465    { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9466echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9467    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9468echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9469    ac_header_preproc=yes
9470    ;;
9471  no:yes:* )
9472    { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9473echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9474    { echo "$as_me:$LINENO: WARNING: elf.h:     check for missing prerequisite headers?" >&5
9475echo "$as_me: WARNING: elf.h:     check for missing prerequisite headers?" >&2;}
9476    { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9477echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9478    { echo "$as_me:$LINENO: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&5
9479echo "$as_me: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9480    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9481echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9482    { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9483echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9484    (
9485      cat <<\_ASBOX
9486## ------------------------------------------ ##
9487## Report this to the AC_PACKAGE_NAME lists.  ##
9488## ------------------------------------------ ##
9489_ASBOX
9490    ) |
9491      sed "s/^/$as_me: WARNING:     /" >&2
9492    ;;
9493esac
9494echo "$as_me:$LINENO: checking for elf.h" >&5
9495echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9496if test "${ac_cv_header_elf_h+set}" = set; then
9497  echo $ECHO_N "(cached) $ECHO_C" >&6
9498else
9499  ac_cv_header_elf_h=$ac_header_preproc
9500fi
9501echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9502echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9503
9504fi
9505if test $ac_cv_header_elf_h = yes; then
9506  HAS_ELF=1
9507fi
9508
9509
9510if test "$HAS_ELF" = 1; then
9511
9512echo "$as_me:$LINENO: checking for main in -lelf" >&5
9513echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9514if test "${ac_cv_lib_elf_main+set}" = set; then
9515  echo $ECHO_N "(cached) $ECHO_C" >&6
9516else
9517  ac_check_lib_save_LIBS=$LIBS
9518LIBS="-lelf  $LIBS"
9519cat >conftest.$ac_ext <<_ACEOF
9520/* confdefs.h.  */
9521_ACEOF
9522cat confdefs.h >>conftest.$ac_ext
9523cat >>conftest.$ac_ext <<_ACEOF
9524/* end confdefs.h.  */
9525
9526
9527int
9528main ()
9529{
9530main ();
9531  ;
9532  return 0;
9533}
9534_ACEOF
9535rm -f conftest.$ac_objext conftest$ac_exeext
9536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537  (eval $ac_link) 2>conftest.er1
9538  ac_status=$?
9539  grep -v '^ *+' conftest.er1 >conftest.err
9540  rm -f conftest.er1
9541  cat conftest.err >&5
9542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543  (exit $ac_status); } &&
9544	 { ac_try='test -z "$ac_c_werror_flag"
9545			 || test ! -s conftest.err'
9546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547  (eval $ac_try) 2>&5
9548  ac_status=$?
9549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550  (exit $ac_status); }; } &&
9551	 { ac_try='test -s conftest$ac_exeext'
9552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553  (eval $ac_try) 2>&5
9554  ac_status=$?
9555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556  (exit $ac_status); }; }; then
9557  ac_cv_lib_elf_main=yes
9558else
9559  echo "$as_me: failed program was:" >&5
9560sed 's/^/| /' conftest.$ac_ext >&5
9561
9562ac_cv_lib_elf_main=no
9563fi
9564rm -f conftest.err conftest.$ac_objext \
9565      conftest$ac_exeext conftest.$ac_ext
9566LIBS=$ac_check_lib_save_LIBS
9567fi
9568echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9569echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9570if test $ac_cv_lib_elf_main = yes; then
9571  cat >>confdefs.h <<_ACEOF
9572#define HAVE_LIBELF 1
9573_ACEOF
9574
9575  LIBS="-lelf $LIBS"
9576
9577fi
9578
9579fi
9580
9581
9582
9583
9584
9585
9586ac_header_dirent=no
9587for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9588  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9589echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9590echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9591if eval "test \"\${$as_ac_Header+set}\" = set"; then
9592  echo $ECHO_N "(cached) $ECHO_C" >&6
9593else
9594  cat >conftest.$ac_ext <<_ACEOF
9595/* confdefs.h.  */
9596_ACEOF
9597cat confdefs.h >>conftest.$ac_ext
9598cat >>conftest.$ac_ext <<_ACEOF
9599/* end confdefs.h.  */
9600#include <sys/types.h>
9601#include <$ac_hdr>
9602
9603int
9604main ()
9605{
9606if ((DIR *) 0)
9607return 0;
9608  ;
9609  return 0;
9610}
9611_ACEOF
9612rm -f conftest.$ac_objext
9613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9614  (eval $ac_compile) 2>conftest.er1
9615  ac_status=$?
9616  grep -v '^ *+' conftest.er1 >conftest.err
9617  rm -f conftest.er1
9618  cat conftest.err >&5
9619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620  (exit $ac_status); } &&
9621	 { ac_try='test -z "$ac_c_werror_flag"
9622			 || test ! -s conftest.err'
9623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624  (eval $ac_try) 2>&5
9625  ac_status=$?
9626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627  (exit $ac_status); }; } &&
9628	 { ac_try='test -s conftest.$ac_objext'
9629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630  (eval $ac_try) 2>&5
9631  ac_status=$?
9632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633  (exit $ac_status); }; }; then
9634  eval "$as_ac_Header=yes"
9635else
9636  echo "$as_me: failed program was:" >&5
9637sed 's/^/| /' conftest.$ac_ext >&5
9638
9639eval "$as_ac_Header=no"
9640fi
9641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9642fi
9643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9645if test `eval echo '${'$as_ac_Header'}'` = yes; then
9646  cat >>confdefs.h <<_ACEOF
9647#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9648_ACEOF
9649
9650ac_header_dirent=$ac_hdr; break
9651fi
9652
9653done
9654# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9655if test $ac_header_dirent = dirent.h; then
9656  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9657echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9658if test "${ac_cv_search_opendir+set}" = set; then
9659  echo $ECHO_N "(cached) $ECHO_C" >&6
9660else
9661  ac_func_search_save_LIBS=$LIBS
9662ac_cv_search_opendir=no
9663cat >conftest.$ac_ext <<_ACEOF
9664/* confdefs.h.  */
9665_ACEOF
9666cat confdefs.h >>conftest.$ac_ext
9667cat >>conftest.$ac_ext <<_ACEOF
9668/* end confdefs.h.  */
9669
9670/* Override any gcc2 internal prototype to avoid an error.  */
9671#ifdef __cplusplus
9672extern "C"
9673#endif
9674/* We use char because int might match the return type of a gcc2
9675   builtin and then its argument prototype would still apply.  */
9676char opendir ();
9677int
9678main ()
9679{
9680opendir ();
9681  ;
9682  return 0;
9683}
9684_ACEOF
9685rm -f conftest.$ac_objext conftest$ac_exeext
9686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9687  (eval $ac_link) 2>conftest.er1
9688  ac_status=$?
9689  grep -v '^ *+' conftest.er1 >conftest.err
9690  rm -f conftest.er1
9691  cat conftest.err >&5
9692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693  (exit $ac_status); } &&
9694	 { ac_try='test -z "$ac_c_werror_flag"
9695			 || test ! -s conftest.err'
9696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697  (eval $ac_try) 2>&5
9698  ac_status=$?
9699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700  (exit $ac_status); }; } &&
9701	 { ac_try='test -s conftest$ac_exeext'
9702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703  (eval $ac_try) 2>&5
9704  ac_status=$?
9705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706  (exit $ac_status); }; }; then
9707  ac_cv_search_opendir="none required"
9708else
9709  echo "$as_me: failed program was:" >&5
9710sed 's/^/| /' conftest.$ac_ext >&5
9711
9712fi
9713rm -f conftest.err conftest.$ac_objext \
9714      conftest$ac_exeext conftest.$ac_ext
9715if test "$ac_cv_search_opendir" = no; then
9716  for ac_lib in dir; do
9717    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9718    cat >conftest.$ac_ext <<_ACEOF
9719/* confdefs.h.  */
9720_ACEOF
9721cat confdefs.h >>conftest.$ac_ext
9722cat >>conftest.$ac_ext <<_ACEOF
9723/* end confdefs.h.  */
9724
9725/* Override any gcc2 internal prototype to avoid an error.  */
9726#ifdef __cplusplus
9727extern "C"
9728#endif
9729/* We use char because int might match the return type of a gcc2
9730   builtin and then its argument prototype would still apply.  */
9731char opendir ();
9732int
9733main ()
9734{
9735opendir ();
9736  ;
9737  return 0;
9738}
9739_ACEOF
9740rm -f conftest.$ac_objext conftest$ac_exeext
9741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742  (eval $ac_link) 2>conftest.er1
9743  ac_status=$?
9744  grep -v '^ *+' conftest.er1 >conftest.err
9745  rm -f conftest.er1
9746  cat conftest.err >&5
9747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748  (exit $ac_status); } &&
9749	 { ac_try='test -z "$ac_c_werror_flag"
9750			 || test ! -s conftest.err'
9751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752  (eval $ac_try) 2>&5
9753  ac_status=$?
9754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755  (exit $ac_status); }; } &&
9756	 { ac_try='test -s conftest$ac_exeext'
9757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758  (eval $ac_try) 2>&5
9759  ac_status=$?
9760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761  (exit $ac_status); }; }; then
9762  ac_cv_search_opendir="-l$ac_lib"
9763break
9764else
9765  echo "$as_me: failed program was:" >&5
9766sed 's/^/| /' conftest.$ac_ext >&5
9767
9768fi
9769rm -f conftest.err conftest.$ac_objext \
9770      conftest$ac_exeext conftest.$ac_ext
9771  done
9772fi
9773LIBS=$ac_func_search_save_LIBS
9774fi
9775echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9776echo "${ECHO_T}$ac_cv_search_opendir" >&6
9777if test "$ac_cv_search_opendir" != no; then
9778  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9779
9780fi
9781
9782else
9783  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9784echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9785if test "${ac_cv_search_opendir+set}" = set; then
9786  echo $ECHO_N "(cached) $ECHO_C" >&6
9787else
9788  ac_func_search_save_LIBS=$LIBS
9789ac_cv_search_opendir=no
9790cat >conftest.$ac_ext <<_ACEOF
9791/* confdefs.h.  */
9792_ACEOF
9793cat confdefs.h >>conftest.$ac_ext
9794cat >>conftest.$ac_ext <<_ACEOF
9795/* end confdefs.h.  */
9796
9797/* Override any gcc2 internal prototype to avoid an error.  */
9798#ifdef __cplusplus
9799extern "C"
9800#endif
9801/* We use char because int might match the return type of a gcc2
9802   builtin and then its argument prototype would still apply.  */
9803char opendir ();
9804int
9805main ()
9806{
9807opendir ();
9808  ;
9809  return 0;
9810}
9811_ACEOF
9812rm -f conftest.$ac_objext conftest$ac_exeext
9813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814  (eval $ac_link) 2>conftest.er1
9815  ac_status=$?
9816  grep -v '^ *+' conftest.er1 >conftest.err
9817  rm -f conftest.er1
9818  cat conftest.err >&5
9819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820  (exit $ac_status); } &&
9821	 { ac_try='test -z "$ac_c_werror_flag"
9822			 || test ! -s conftest.err'
9823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824  (eval $ac_try) 2>&5
9825  ac_status=$?
9826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827  (exit $ac_status); }; } &&
9828	 { ac_try='test -s conftest$ac_exeext'
9829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830  (eval $ac_try) 2>&5
9831  ac_status=$?
9832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833  (exit $ac_status); }; }; then
9834  ac_cv_search_opendir="none required"
9835else
9836  echo "$as_me: failed program was:" >&5
9837sed 's/^/| /' conftest.$ac_ext >&5
9838
9839fi
9840rm -f conftest.err conftest.$ac_objext \
9841      conftest$ac_exeext conftest.$ac_ext
9842if test "$ac_cv_search_opendir" = no; then
9843  for ac_lib in x; do
9844    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9845    cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h.  */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
9850/* end confdefs.h.  */
9851
9852/* Override any gcc2 internal prototype to avoid an error.  */
9853#ifdef __cplusplus
9854extern "C"
9855#endif
9856/* We use char because int might match the return type of a gcc2
9857   builtin and then its argument prototype would still apply.  */
9858char opendir ();
9859int
9860main ()
9861{
9862opendir ();
9863  ;
9864  return 0;
9865}
9866_ACEOF
9867rm -f conftest.$ac_objext conftest$ac_exeext
9868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869  (eval $ac_link) 2>conftest.er1
9870  ac_status=$?
9871  grep -v '^ *+' conftest.er1 >conftest.err
9872  rm -f conftest.er1
9873  cat conftest.err >&5
9874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875  (exit $ac_status); } &&
9876	 { ac_try='test -z "$ac_c_werror_flag"
9877			 || test ! -s conftest.err'
9878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879  (eval $ac_try) 2>&5
9880  ac_status=$?
9881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882  (exit $ac_status); }; } &&
9883	 { ac_try='test -s conftest$ac_exeext'
9884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885  (eval $ac_try) 2>&5
9886  ac_status=$?
9887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888  (exit $ac_status); }; }; then
9889  ac_cv_search_opendir="-l$ac_lib"
9890break
9891else
9892  echo "$as_me: failed program was:" >&5
9893sed 's/^/| /' conftest.$ac_ext >&5
9894
9895fi
9896rm -f conftest.err conftest.$ac_objext \
9897      conftest$ac_exeext conftest.$ac_ext
9898  done
9899fi
9900LIBS=$ac_func_search_save_LIBS
9901fi
9902echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9903echo "${ECHO_T}$ac_cv_search_opendir" >&6
9904if test "$ac_cv_search_opendir" != no; then
9905  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9906
9907fi
9908
9909fi
9910
9911
9912echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9913echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9914if test "${ac_cv_header_stdc+set}" = set; then
9915  echo $ECHO_N "(cached) $ECHO_C" >&6
9916else
9917  cat >conftest.$ac_ext <<_ACEOF
9918/* confdefs.h.  */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h.  */
9923#include <stdlib.h>
9924#include <stdarg.h>
9925#include <string.h>
9926#include <float.h>
9927
9928int
9929main ()
9930{
9931
9932  ;
9933  return 0;
9934}
9935_ACEOF
9936rm -f conftest.$ac_objext
9937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9938  (eval $ac_compile) 2>conftest.er1
9939  ac_status=$?
9940  grep -v '^ *+' conftest.er1 >conftest.err
9941  rm -f conftest.er1
9942  cat conftest.err >&5
9943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944  (exit $ac_status); } &&
9945	 { ac_try='test -z "$ac_c_werror_flag"
9946			 || test ! -s conftest.err'
9947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948  (eval $ac_try) 2>&5
9949  ac_status=$?
9950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951  (exit $ac_status); }; } &&
9952	 { ac_try='test -s conftest.$ac_objext'
9953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954  (eval $ac_try) 2>&5
9955  ac_status=$?
9956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957  (exit $ac_status); }; }; then
9958  ac_cv_header_stdc=yes
9959else
9960  echo "$as_me: failed program was:" >&5
9961sed 's/^/| /' conftest.$ac_ext >&5
9962
9963ac_cv_header_stdc=no
9964fi
9965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9966
9967if test $ac_cv_header_stdc = yes; then
9968  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9969  cat >conftest.$ac_ext <<_ACEOF
9970/* confdefs.h.  */
9971_ACEOF
9972cat confdefs.h >>conftest.$ac_ext
9973cat >>conftest.$ac_ext <<_ACEOF
9974/* end confdefs.h.  */
9975#include <string.h>
9976
9977_ACEOF
9978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9979  $EGREP "memchr" >/dev/null 2>&1; then
9980  :
9981else
9982  ac_cv_header_stdc=no
9983fi
9984rm -f conftest*
9985
9986fi
9987
9988if test $ac_cv_header_stdc = yes; then
9989  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9990  cat >conftest.$ac_ext <<_ACEOF
9991/* confdefs.h.  */
9992_ACEOF
9993cat confdefs.h >>conftest.$ac_ext
9994cat >>conftest.$ac_ext <<_ACEOF
9995/* end confdefs.h.  */
9996#include <stdlib.h>
9997
9998_ACEOF
9999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10000  $EGREP "free" >/dev/null 2>&1; then
10001  :
10002else
10003  ac_cv_header_stdc=no
10004fi
10005rm -f conftest*
10006
10007fi
10008
10009if test $ac_cv_header_stdc = yes; then
10010  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10011  if test "$cross_compiling" = yes; then
10012  :
10013else
10014  cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h.  */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
10019/* end confdefs.h.  */
10020#include <ctype.h>
10021#if ((' ' & 0x0FF) == 0x020)
10022# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10023# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10024#else
10025# define ISLOWER(c) \
10026		   (('a' <= (c) && (c) <= 'i') \
10027		     || ('j' <= (c) && (c) <= 'r') \
10028		     || ('s' <= (c) && (c) <= 'z'))
10029# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10030#endif
10031
10032#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10033int
10034main ()
10035{
10036  int i;
10037  for (i = 0; i < 256; i++)
10038    if (XOR (islower (i), ISLOWER (i))
10039	|| toupper (i) != TOUPPER (i))
10040      exit(2);
10041  exit (0);
10042}
10043_ACEOF
10044rm -f conftest$ac_exeext
10045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10046  (eval $ac_link) 2>&5
10047  ac_status=$?
10048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051  (eval $ac_try) 2>&5
10052  ac_status=$?
10053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054  (exit $ac_status); }; }; then
10055  :
10056else
10057  echo "$as_me: program exited with status $ac_status" >&5
10058echo "$as_me: failed program was:" >&5
10059sed 's/^/| /' conftest.$ac_ext >&5
10060
10061( exit $ac_status )
10062ac_cv_header_stdc=no
10063fi
10064rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10065fi
10066fi
10067fi
10068echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10069echo "${ECHO_T}$ac_cv_header_stdc" >&6
10070if test $ac_cv_header_stdc = yes; then
10071
10072cat >>confdefs.h <<\_ACEOF
10073#define STDC_HEADERS 1
10074_ACEOF
10075
10076fi
10077
10078echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10079echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10080if test "${ac_cv_header_sys_wait_h+set}" = set; then
10081  echo $ECHO_N "(cached) $ECHO_C" >&6
10082else
10083  cat >conftest.$ac_ext <<_ACEOF
10084/* confdefs.h.  */
10085_ACEOF
10086cat confdefs.h >>conftest.$ac_ext
10087cat >>conftest.$ac_ext <<_ACEOF
10088/* end confdefs.h.  */
10089#include <sys/types.h>
10090#include <sys/wait.h>
10091#ifndef WEXITSTATUS
10092# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10093#endif
10094#ifndef WIFEXITED
10095# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10096#endif
10097
10098int
10099main ()
10100{
10101  int s;
10102  wait (&s);
10103  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10104  ;
10105  return 0;
10106}
10107_ACEOF
10108rm -f conftest.$ac_objext
10109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10110  (eval $ac_compile) 2>conftest.er1
10111  ac_status=$?
10112  grep -v '^ *+' conftest.er1 >conftest.err
10113  rm -f conftest.er1
10114  cat conftest.err >&5
10115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116  (exit $ac_status); } &&
10117	 { ac_try='test -z "$ac_c_werror_flag"
10118			 || test ! -s conftest.err'
10119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120  (eval $ac_try) 2>&5
10121  ac_status=$?
10122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123  (exit $ac_status); }; } &&
10124	 { ac_try='test -s conftest.$ac_objext'
10125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126  (eval $ac_try) 2>&5
10127  ac_status=$?
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); }; }; then
10130  ac_cv_header_sys_wait_h=yes
10131else
10132  echo "$as_me: failed program was:" >&5
10133sed 's/^/| /' conftest.$ac_ext >&5
10134
10135ac_cv_header_sys_wait_h=no
10136fi
10137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10138fi
10139echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10140echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10141if test $ac_cv_header_sys_wait_h = yes; then
10142
10143cat >>confdefs.h <<\_ACEOF
10144#define HAVE_SYS_WAIT_H 1
10145_ACEOF
10146
10147fi
10148
10149
10150if test $ac_cv_header_sys_wait_h = no; then
10151  echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10152echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10153  cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h.  */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h.  */
10159#include <sys/wait.h>
10160int
10161main ()
10162{
10163union wait xx, yy; xx = yy
10164  ;
10165  return 0;
10166}
10167_ACEOF
10168rm -f conftest.$ac_objext
10169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170  (eval $ac_compile) 2>conftest.er1
10171  ac_status=$?
10172  grep -v '^ *+' conftest.er1 >conftest.err
10173  rm -f conftest.er1
10174  cat conftest.err >&5
10175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176  (exit $ac_status); } &&
10177	 { ac_try='test -z "$ac_c_werror_flag"
10178			 || test ! -s conftest.err'
10179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180  (eval $ac_try) 2>&5
10181  ac_status=$?
10182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183  (exit $ac_status); }; } &&
10184	 { ac_try='test -s conftest.$ac_objext'
10185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186  (eval $ac_try) 2>&5
10187  ac_status=$?
10188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189  (exit $ac_status); }; }; then
10190  echo "$as_me:$LINENO: result: yes" >&5
10191echo "${ECHO_T}yes" >&6
10192			cat >>confdefs.h <<\_ACEOF
10193#define HAVE_SYS_WAIT_H 1
10194_ACEOF
10195
10196			cat >>confdefs.h <<\_ACEOF
10197#define HAVE_UNION_WAIT 1
10198_ACEOF
10199
10200else
10201  echo "$as_me: failed program was:" >&5
10202sed 's/^/| /' conftest.$ac_ext >&5
10203
10204echo "$as_me:$LINENO: result: no" >&5
10205echo "${ECHO_T}no" >&6
10206fi
10207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10208fi
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10251	termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10252	iconv.h langinfo.h unistd.h stropts.h errno.h \
10253	sys/resource.h sys/systeminfo.h locale.h \
10254	sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10255	poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10256	libgen.h util/debug.h util/msg18n.h frame.h \
10257	sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10258do
10259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10260if eval "test \"\${$as_ac_Header+set}\" = set"; then
10261  echo "$as_me:$LINENO: checking for $ac_header" >&5
10262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10263if eval "test \"\${$as_ac_Header+set}\" = set"; then
10264  echo $ECHO_N "(cached) $ECHO_C" >&6
10265fi
10266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10268else
10269  # Is the header compilable?
10270echo "$as_me:$LINENO: checking $ac_header usability" >&5
10271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10272cat >conftest.$ac_ext <<_ACEOF
10273/* confdefs.h.  */
10274_ACEOF
10275cat confdefs.h >>conftest.$ac_ext
10276cat >>conftest.$ac_ext <<_ACEOF
10277/* end confdefs.h.  */
10278$ac_includes_default
10279#include <$ac_header>
10280_ACEOF
10281rm -f conftest.$ac_objext
10282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283  (eval $ac_compile) 2>conftest.er1
10284  ac_status=$?
10285  grep -v '^ *+' conftest.er1 >conftest.err
10286  rm -f conftest.er1
10287  cat conftest.err >&5
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); } &&
10290	 { ac_try='test -z "$ac_c_werror_flag"
10291			 || test ! -s conftest.err'
10292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293  (eval $ac_try) 2>&5
10294  ac_status=$?
10295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); }; } &&
10297	 { ac_try='test -s conftest.$ac_objext'
10298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299  (eval $ac_try) 2>&5
10300  ac_status=$?
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); }; }; then
10303  ac_header_compiler=yes
10304else
10305  echo "$as_me: failed program was:" >&5
10306sed 's/^/| /' conftest.$ac_ext >&5
10307
10308ac_header_compiler=no
10309fi
10310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10311echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10312echo "${ECHO_T}$ac_header_compiler" >&6
10313
10314# Is the header present?
10315echo "$as_me:$LINENO: checking $ac_header presence" >&5
10316echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10317cat >conftest.$ac_ext <<_ACEOF
10318/* confdefs.h.  */
10319_ACEOF
10320cat confdefs.h >>conftest.$ac_ext
10321cat >>conftest.$ac_ext <<_ACEOF
10322/* end confdefs.h.  */
10323#include <$ac_header>
10324_ACEOF
10325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10326  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10327  ac_status=$?
10328  grep -v '^ *+' conftest.er1 >conftest.err
10329  rm -f conftest.er1
10330  cat conftest.err >&5
10331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332  (exit $ac_status); } >/dev/null; then
10333  if test -s conftest.err; then
10334    ac_cpp_err=$ac_c_preproc_warn_flag
10335    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10336  else
10337    ac_cpp_err=
10338  fi
10339else
10340  ac_cpp_err=yes
10341fi
10342if test -z "$ac_cpp_err"; then
10343  ac_header_preproc=yes
10344else
10345  echo "$as_me: failed program was:" >&5
10346sed 's/^/| /' conftest.$ac_ext >&5
10347
10348  ac_header_preproc=no
10349fi
10350rm -f conftest.err conftest.$ac_ext
10351echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10352echo "${ECHO_T}$ac_header_preproc" >&6
10353
10354# So?  What about this header?
10355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10356  yes:no: )
10357    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10358echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10359    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10360echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10361    ac_header_preproc=yes
10362    ;;
10363  no:yes:* )
10364    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10365echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10366    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10367echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10368    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10369echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10370    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10371echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10372    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10374    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10375echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10376    (
10377      cat <<\_ASBOX
10378## ------------------------------------------ ##
10379## Report this to the AC_PACKAGE_NAME lists.  ##
10380## ------------------------------------------ ##
10381_ASBOX
10382    ) |
10383      sed "s/^/$as_me: WARNING:     /" >&2
10384    ;;
10385esac
10386echo "$as_me:$LINENO: checking for $ac_header" >&5
10387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10388if eval "test \"\${$as_ac_Header+set}\" = set"; then
10389  echo $ECHO_N "(cached) $ECHO_C" >&6
10390else
10391  eval "$as_ac_Header=\$ac_header_preproc"
10392fi
10393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10395
10396fi
10397if test `eval echo '${'$as_ac_Header'}'` = yes; then
10398  cat >>confdefs.h <<_ACEOF
10399#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10400_ACEOF
10401
10402fi
10403
10404done
10405
10406
10407echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10408echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10409cat >conftest.$ac_ext <<_ACEOF
10410/* confdefs.h.  */
10411_ACEOF
10412cat confdefs.h >>conftest.$ac_ext
10413cat >>conftest.$ac_ext <<_ACEOF
10414/* end confdefs.h.  */
10415
10416#include <pthread.h>
10417#include <pthread_np.h>
10418int
10419main ()
10420{
10421int i; i = 0;
10422  ;
10423  return 0;
10424}
10425_ACEOF
10426rm -f conftest.$ac_objext
10427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428  (eval $ac_compile) 2>conftest.er1
10429  ac_status=$?
10430  grep -v '^ *+' conftest.er1 >conftest.err
10431  rm -f conftest.er1
10432  cat conftest.err >&5
10433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434  (exit $ac_status); } &&
10435	 { ac_try='test -z "$ac_c_werror_flag"
10436			 || test ! -s conftest.err'
10437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438  (eval $ac_try) 2>&5
10439  ac_status=$?
10440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441  (exit $ac_status); }; } &&
10442	 { ac_try='test -s conftest.$ac_objext'
10443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444  (eval $ac_try) 2>&5
10445  ac_status=$?
10446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447  (exit $ac_status); }; }; then
10448  echo "$as_me:$LINENO: result: yes" >&5
10449echo "${ECHO_T}yes" >&6
10450		      cat >>confdefs.h <<\_ACEOF
10451#define HAVE_PTHREAD_NP_H 1
10452_ACEOF
10453
10454else
10455  echo "$as_me: failed program was:" >&5
10456sed 's/^/| /' conftest.$ac_ext >&5
10457
10458echo "$as_me:$LINENO: result: no" >&5
10459echo "${ECHO_T}no" >&6
10460fi
10461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10462
10463
10464for ac_header in strings.h
10465do
10466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10467if eval "test \"\${$as_ac_Header+set}\" = set"; then
10468  echo "$as_me:$LINENO: checking for $ac_header" >&5
10469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10470if eval "test \"\${$as_ac_Header+set}\" = set"; then
10471  echo $ECHO_N "(cached) $ECHO_C" >&6
10472fi
10473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10475else
10476  # Is the header compilable?
10477echo "$as_me:$LINENO: checking $ac_header usability" >&5
10478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10479cat >conftest.$ac_ext <<_ACEOF
10480/* confdefs.h.  */
10481_ACEOF
10482cat confdefs.h >>conftest.$ac_ext
10483cat >>conftest.$ac_ext <<_ACEOF
10484/* end confdefs.h.  */
10485$ac_includes_default
10486#include <$ac_header>
10487_ACEOF
10488rm -f conftest.$ac_objext
10489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10490  (eval $ac_compile) 2>conftest.er1
10491  ac_status=$?
10492  grep -v '^ *+' conftest.er1 >conftest.err
10493  rm -f conftest.er1
10494  cat conftest.err >&5
10495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496  (exit $ac_status); } &&
10497	 { ac_try='test -z "$ac_c_werror_flag"
10498			 || test ! -s conftest.err'
10499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500  (eval $ac_try) 2>&5
10501  ac_status=$?
10502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503  (exit $ac_status); }; } &&
10504	 { ac_try='test -s conftest.$ac_objext'
10505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506  (eval $ac_try) 2>&5
10507  ac_status=$?
10508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509  (exit $ac_status); }; }; then
10510  ac_header_compiler=yes
10511else
10512  echo "$as_me: failed program was:" >&5
10513sed 's/^/| /' conftest.$ac_ext >&5
10514
10515ac_header_compiler=no
10516fi
10517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10518echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10519echo "${ECHO_T}$ac_header_compiler" >&6
10520
10521# Is the header present?
10522echo "$as_me:$LINENO: checking $ac_header presence" >&5
10523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10524cat >conftest.$ac_ext <<_ACEOF
10525/* confdefs.h.  */
10526_ACEOF
10527cat confdefs.h >>conftest.$ac_ext
10528cat >>conftest.$ac_ext <<_ACEOF
10529/* end confdefs.h.  */
10530#include <$ac_header>
10531_ACEOF
10532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10533  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10534  ac_status=$?
10535  grep -v '^ *+' conftest.er1 >conftest.err
10536  rm -f conftest.er1
10537  cat conftest.err >&5
10538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539  (exit $ac_status); } >/dev/null; then
10540  if test -s conftest.err; then
10541    ac_cpp_err=$ac_c_preproc_warn_flag
10542    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10543  else
10544    ac_cpp_err=
10545  fi
10546else
10547  ac_cpp_err=yes
10548fi
10549if test -z "$ac_cpp_err"; then
10550  ac_header_preproc=yes
10551else
10552  echo "$as_me: failed program was:" >&5
10553sed 's/^/| /' conftest.$ac_ext >&5
10554
10555  ac_header_preproc=no
10556fi
10557rm -f conftest.err conftest.$ac_ext
10558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10559echo "${ECHO_T}$ac_header_preproc" >&6
10560
10561# So?  What about this header?
10562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10563  yes:no: )
10564    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10566    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10568    ac_header_preproc=yes
10569    ;;
10570  no:yes:* )
10571    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10573    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10574echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10575    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10577    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10578echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10579    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10581    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10583    (
10584      cat <<\_ASBOX
10585## ------------------------------------------ ##
10586## Report this to the AC_PACKAGE_NAME lists.  ##
10587## ------------------------------------------ ##
10588_ASBOX
10589    ) |
10590      sed "s/^/$as_me: WARNING:     /" >&2
10591    ;;
10592esac
10593echo "$as_me:$LINENO: checking for $ac_header" >&5
10594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10595if eval "test \"\${$as_ac_Header+set}\" = set"; then
10596  echo $ECHO_N "(cached) $ECHO_C" >&6
10597else
10598  eval "$as_ac_Header=\$ac_header_preproc"
10599fi
10600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10602
10603fi
10604if test `eval echo '${'$as_ac_Header'}'` = yes; then
10605  cat >>confdefs.h <<_ACEOF
10606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10607_ACEOF
10608
10609fi
10610
10611done
10612
10613if test "x$MACOSX" = "xyes"; then
10614    cat >>confdefs.h <<\_ACEOF
10615#define NO_STRINGS_WITH_STRING_H 1
10616_ACEOF
10617
10618else
10619
10620echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10621echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
10622cppflags_save=$CPPFLAGS
10623CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10624cat >conftest.$ac_ext <<_ACEOF
10625/* confdefs.h.  */
10626_ACEOF
10627cat confdefs.h >>conftest.$ac_ext
10628cat >>conftest.$ac_ext <<_ACEOF
10629/* end confdefs.h.  */
10630
10631#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10632# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
10633			/* but don't do it on AIX 5.1 (Uribarri) */
10634#endif
10635#ifdef HAVE_XM_XM_H
10636# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
10637#endif
10638#ifdef HAVE_STRING_H
10639# include <string.h>
10640#endif
10641#if defined(HAVE_STRINGS_H)
10642# include <strings.h>
10643#endif
10644
10645int
10646main ()
10647{
10648int i; i = 0;
10649  ;
10650  return 0;
10651}
10652_ACEOF
10653rm -f conftest.$ac_objext
10654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655  (eval $ac_compile) 2>conftest.er1
10656  ac_status=$?
10657  grep -v '^ *+' conftest.er1 >conftest.err
10658  rm -f conftest.er1
10659  cat conftest.err >&5
10660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661  (exit $ac_status); } &&
10662	 { ac_try='test -z "$ac_c_werror_flag"
10663			 || test ! -s conftest.err'
10664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665  (eval $ac_try) 2>&5
10666  ac_status=$?
10667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668  (exit $ac_status); }; } &&
10669	 { ac_try='test -s conftest.$ac_objext'
10670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671  (eval $ac_try) 2>&5
10672  ac_status=$?
10673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674  (exit $ac_status); }; }; then
10675  echo "$as_me:$LINENO: result: yes" >&5
10676echo "${ECHO_T}yes" >&6
10677else
10678  echo "$as_me: failed program was:" >&5
10679sed 's/^/| /' conftest.$ac_ext >&5
10680
10681cat >>confdefs.h <<\_ACEOF
10682#define NO_STRINGS_WITH_STRING_H 1
10683_ACEOF
10684
10685		echo "$as_me:$LINENO: result: no" >&5
10686echo "${ECHO_T}no" >&6
10687fi
10688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10689CPPFLAGS=$cppflags_save
10690fi
10691
10692if test $ac_cv_c_compiler_gnu = yes; then
10693    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10694echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10695if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10696  echo $ECHO_N "(cached) $ECHO_C" >&6
10697else
10698    ac_pattern="Autoconf.*'x'"
10699  cat >conftest.$ac_ext <<_ACEOF
10700/* confdefs.h.  */
10701_ACEOF
10702cat confdefs.h >>conftest.$ac_ext
10703cat >>conftest.$ac_ext <<_ACEOF
10704/* end confdefs.h.  */
10705#include <sgtty.h>
10706Autoconf TIOCGETP
10707_ACEOF
10708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10709  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10710  ac_cv_prog_gcc_traditional=yes
10711else
10712  ac_cv_prog_gcc_traditional=no
10713fi
10714rm -f conftest*
10715
10716
10717  if test $ac_cv_prog_gcc_traditional = no; then
10718    cat >conftest.$ac_ext <<_ACEOF
10719/* confdefs.h.  */
10720_ACEOF
10721cat confdefs.h >>conftest.$ac_ext
10722cat >>conftest.$ac_ext <<_ACEOF
10723/* end confdefs.h.  */
10724#include <termio.h>
10725Autoconf TCGETA
10726_ACEOF
10727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10728  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10729  ac_cv_prog_gcc_traditional=yes
10730fi
10731rm -f conftest*
10732
10733  fi
10734fi
10735echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10736echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10737  if test $ac_cv_prog_gcc_traditional = yes; then
10738    CC="$CC -traditional"
10739  fi
10740fi
10741
10742echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10743echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10744if test "${ac_cv_c_const+set}" = set; then
10745  echo $ECHO_N "(cached) $ECHO_C" >&6
10746else
10747  cat >conftest.$ac_ext <<_ACEOF
10748/* confdefs.h.  */
10749_ACEOF
10750cat confdefs.h >>conftest.$ac_ext
10751cat >>conftest.$ac_ext <<_ACEOF
10752/* end confdefs.h.  */
10753
10754int
10755main ()
10756{
10757/* FIXME: Include the comments suggested by Paul. */
10758#ifndef __cplusplus
10759  /* Ultrix mips cc rejects this.  */
10760  typedef int charset[2];
10761  const charset x;
10762  /* SunOS 4.1.1 cc rejects this.  */
10763  char const *const *ccp;
10764  char **p;
10765  /* NEC SVR4.0.2 mips cc rejects this.  */
10766  struct point {int x, y;};
10767  static struct point const zero = {0,0};
10768  /* AIX XL C 1.02.0.0 rejects this.
10769     It does not let you subtract one const X* pointer from another in
10770     an arm of an if-expression whose if-part is not a constant
10771     expression */
10772  const char *g = "string";
10773  ccp = &g + (g ? g-g : 0);
10774  /* HPUX 7.0 cc rejects these. */
10775  ++ccp;
10776  p = (char**) ccp;
10777  ccp = (char const *const *) p;
10778  { /* SCO 3.2v4 cc rejects this.  */
10779    char *t;
10780    char const *s = 0 ? (char *) 0 : (char const *) 0;
10781
10782    *t++ = 0;
10783  }
10784  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10785    int x[] = {25, 17};
10786    const int *foo = &x[0];
10787    ++foo;
10788  }
10789  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10790    typedef const int *iptr;
10791    iptr p = 0;
10792    ++p;
10793  }
10794  { /* AIX XL C 1.02.0.0 rejects this saying
10795       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10796    struct s { int j; const int *ap[3]; };
10797    struct s *b; b->j = 5;
10798  }
10799  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10800    const int foo = 10;
10801  }
10802#endif
10803
10804  ;
10805  return 0;
10806}
10807_ACEOF
10808rm -f conftest.$ac_objext
10809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810  (eval $ac_compile) 2>conftest.er1
10811  ac_status=$?
10812  grep -v '^ *+' conftest.er1 >conftest.err
10813  rm -f conftest.er1
10814  cat conftest.err >&5
10815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816  (exit $ac_status); } &&
10817	 { ac_try='test -z "$ac_c_werror_flag"
10818			 || test ! -s conftest.err'
10819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820  (eval $ac_try) 2>&5
10821  ac_status=$?
10822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823  (exit $ac_status); }; } &&
10824	 { ac_try='test -s conftest.$ac_objext'
10825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826  (eval $ac_try) 2>&5
10827  ac_status=$?
10828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829  (exit $ac_status); }; }; then
10830  ac_cv_c_const=yes
10831else
10832  echo "$as_me: failed program was:" >&5
10833sed 's/^/| /' conftest.$ac_ext >&5
10834
10835ac_cv_c_const=no
10836fi
10837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10838fi
10839echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10840echo "${ECHO_T}$ac_cv_c_const" >&6
10841if test $ac_cv_c_const = no; then
10842
10843cat >>confdefs.h <<\_ACEOF
10844#define const
10845_ACEOF
10846
10847fi
10848
10849echo "$as_me:$LINENO: checking for mode_t" >&5
10850echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10851if test "${ac_cv_type_mode_t+set}" = set; then
10852  echo $ECHO_N "(cached) $ECHO_C" >&6
10853else
10854  cat >conftest.$ac_ext <<_ACEOF
10855/* confdefs.h.  */
10856_ACEOF
10857cat confdefs.h >>conftest.$ac_ext
10858cat >>conftest.$ac_ext <<_ACEOF
10859/* end confdefs.h.  */
10860$ac_includes_default
10861int
10862main ()
10863{
10864if ((mode_t *) 0)
10865  return 0;
10866if (sizeof (mode_t))
10867  return 0;
10868  ;
10869  return 0;
10870}
10871_ACEOF
10872rm -f conftest.$ac_objext
10873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10874  (eval $ac_compile) 2>conftest.er1
10875  ac_status=$?
10876  grep -v '^ *+' conftest.er1 >conftest.err
10877  rm -f conftest.er1
10878  cat conftest.err >&5
10879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880  (exit $ac_status); } &&
10881	 { ac_try='test -z "$ac_c_werror_flag"
10882			 || test ! -s conftest.err'
10883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884  (eval $ac_try) 2>&5
10885  ac_status=$?
10886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887  (exit $ac_status); }; } &&
10888	 { ac_try='test -s conftest.$ac_objext'
10889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890  (eval $ac_try) 2>&5
10891  ac_status=$?
10892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893  (exit $ac_status); }; }; then
10894  ac_cv_type_mode_t=yes
10895else
10896  echo "$as_me: failed program was:" >&5
10897sed 's/^/| /' conftest.$ac_ext >&5
10898
10899ac_cv_type_mode_t=no
10900fi
10901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10902fi
10903echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10904echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10905if test $ac_cv_type_mode_t = yes; then
10906  :
10907else
10908
10909cat >>confdefs.h <<_ACEOF
10910#define mode_t int
10911_ACEOF
10912
10913fi
10914
10915echo "$as_me:$LINENO: checking for off_t" >&5
10916echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10917if test "${ac_cv_type_off_t+set}" = set; then
10918  echo $ECHO_N "(cached) $ECHO_C" >&6
10919else
10920  cat >conftest.$ac_ext <<_ACEOF
10921/* confdefs.h.  */
10922_ACEOF
10923cat confdefs.h >>conftest.$ac_ext
10924cat >>conftest.$ac_ext <<_ACEOF
10925/* end confdefs.h.  */
10926$ac_includes_default
10927int
10928main ()
10929{
10930if ((off_t *) 0)
10931  return 0;
10932if (sizeof (off_t))
10933  return 0;
10934  ;
10935  return 0;
10936}
10937_ACEOF
10938rm -f conftest.$ac_objext
10939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10940  (eval $ac_compile) 2>conftest.er1
10941  ac_status=$?
10942  grep -v '^ *+' conftest.er1 >conftest.err
10943  rm -f conftest.er1
10944  cat conftest.err >&5
10945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946  (exit $ac_status); } &&
10947	 { ac_try='test -z "$ac_c_werror_flag"
10948			 || test ! -s conftest.err'
10949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950  (eval $ac_try) 2>&5
10951  ac_status=$?
10952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953  (exit $ac_status); }; } &&
10954	 { ac_try='test -s conftest.$ac_objext'
10955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956  (eval $ac_try) 2>&5
10957  ac_status=$?
10958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959  (exit $ac_status); }; }; then
10960  ac_cv_type_off_t=yes
10961else
10962  echo "$as_me: failed program was:" >&5
10963sed 's/^/| /' conftest.$ac_ext >&5
10964
10965ac_cv_type_off_t=no
10966fi
10967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10968fi
10969echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10970echo "${ECHO_T}$ac_cv_type_off_t" >&6
10971if test $ac_cv_type_off_t = yes; then
10972  :
10973else
10974
10975cat >>confdefs.h <<_ACEOF
10976#define off_t long
10977_ACEOF
10978
10979fi
10980
10981echo "$as_me:$LINENO: checking for pid_t" >&5
10982echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10983if test "${ac_cv_type_pid_t+set}" = set; then
10984  echo $ECHO_N "(cached) $ECHO_C" >&6
10985else
10986  cat >conftest.$ac_ext <<_ACEOF
10987/* confdefs.h.  */
10988_ACEOF
10989cat confdefs.h >>conftest.$ac_ext
10990cat >>conftest.$ac_ext <<_ACEOF
10991/* end confdefs.h.  */
10992$ac_includes_default
10993int
10994main ()
10995{
10996if ((pid_t *) 0)
10997  return 0;
10998if (sizeof (pid_t))
10999  return 0;
11000  ;
11001  return 0;
11002}
11003_ACEOF
11004rm -f conftest.$ac_objext
11005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11006  (eval $ac_compile) 2>conftest.er1
11007  ac_status=$?
11008  grep -v '^ *+' conftest.er1 >conftest.err
11009  rm -f conftest.er1
11010  cat conftest.err >&5
11011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012  (exit $ac_status); } &&
11013	 { ac_try='test -z "$ac_c_werror_flag"
11014			 || test ! -s conftest.err'
11015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016  (eval $ac_try) 2>&5
11017  ac_status=$?
11018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019  (exit $ac_status); }; } &&
11020	 { ac_try='test -s conftest.$ac_objext'
11021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022  (eval $ac_try) 2>&5
11023  ac_status=$?
11024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025  (exit $ac_status); }; }; then
11026  ac_cv_type_pid_t=yes
11027else
11028  echo "$as_me: failed program was:" >&5
11029sed 's/^/| /' conftest.$ac_ext >&5
11030
11031ac_cv_type_pid_t=no
11032fi
11033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11034fi
11035echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11036echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11037if test $ac_cv_type_pid_t = yes; then
11038  :
11039else
11040
11041cat >>confdefs.h <<_ACEOF
11042#define pid_t int
11043_ACEOF
11044
11045fi
11046
11047echo "$as_me:$LINENO: checking for size_t" >&5
11048echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11049if test "${ac_cv_type_size_t+set}" = set; then
11050  echo $ECHO_N "(cached) $ECHO_C" >&6
11051else
11052  cat >conftest.$ac_ext <<_ACEOF
11053/* confdefs.h.  */
11054_ACEOF
11055cat confdefs.h >>conftest.$ac_ext
11056cat >>conftest.$ac_ext <<_ACEOF
11057/* end confdefs.h.  */
11058$ac_includes_default
11059int
11060main ()
11061{
11062if ((size_t *) 0)
11063  return 0;
11064if (sizeof (size_t))
11065  return 0;
11066  ;
11067  return 0;
11068}
11069_ACEOF
11070rm -f conftest.$ac_objext
11071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072  (eval $ac_compile) 2>conftest.er1
11073  ac_status=$?
11074  grep -v '^ *+' conftest.er1 >conftest.err
11075  rm -f conftest.er1
11076  cat conftest.err >&5
11077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078  (exit $ac_status); } &&
11079	 { ac_try='test -z "$ac_c_werror_flag"
11080			 || test ! -s conftest.err'
11081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082  (eval $ac_try) 2>&5
11083  ac_status=$?
11084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085  (exit $ac_status); }; } &&
11086	 { ac_try='test -s conftest.$ac_objext'
11087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088  (eval $ac_try) 2>&5
11089  ac_status=$?
11090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091  (exit $ac_status); }; }; then
11092  ac_cv_type_size_t=yes
11093else
11094  echo "$as_me: failed program was:" >&5
11095sed 's/^/| /' conftest.$ac_ext >&5
11096
11097ac_cv_type_size_t=no
11098fi
11099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11100fi
11101echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11102echo "${ECHO_T}$ac_cv_type_size_t" >&6
11103if test $ac_cv_type_size_t = yes; then
11104  :
11105else
11106
11107cat >>confdefs.h <<_ACEOF
11108#define size_t unsigned
11109_ACEOF
11110
11111fi
11112
11113echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11114echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11115if test "${ac_cv_type_uid_t+set}" = set; then
11116  echo $ECHO_N "(cached) $ECHO_C" >&6
11117else
11118  cat >conftest.$ac_ext <<_ACEOF
11119/* confdefs.h.  */
11120_ACEOF
11121cat confdefs.h >>conftest.$ac_ext
11122cat >>conftest.$ac_ext <<_ACEOF
11123/* end confdefs.h.  */
11124#include <sys/types.h>
11125
11126_ACEOF
11127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11128  $EGREP "uid_t" >/dev/null 2>&1; then
11129  ac_cv_type_uid_t=yes
11130else
11131  ac_cv_type_uid_t=no
11132fi
11133rm -f conftest*
11134
11135fi
11136echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11137echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11138if test $ac_cv_type_uid_t = no; then
11139
11140cat >>confdefs.h <<\_ACEOF
11141#define uid_t int
11142_ACEOF
11143
11144
11145cat >>confdefs.h <<\_ACEOF
11146#define gid_t int
11147_ACEOF
11148
11149fi
11150
11151echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11152echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11153if test "${ac_cv_header_time+set}" = set; then
11154  echo $ECHO_N "(cached) $ECHO_C" >&6
11155else
11156  cat >conftest.$ac_ext <<_ACEOF
11157/* confdefs.h.  */
11158_ACEOF
11159cat confdefs.h >>conftest.$ac_ext
11160cat >>conftest.$ac_ext <<_ACEOF
11161/* end confdefs.h.  */
11162#include <sys/types.h>
11163#include <sys/time.h>
11164#include <time.h>
11165
11166int
11167main ()
11168{
11169if ((struct tm *) 0)
11170return 0;
11171  ;
11172  return 0;
11173}
11174_ACEOF
11175rm -f conftest.$ac_objext
11176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11177  (eval $ac_compile) 2>conftest.er1
11178  ac_status=$?
11179  grep -v '^ *+' conftest.er1 >conftest.err
11180  rm -f conftest.er1
11181  cat conftest.err >&5
11182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183  (exit $ac_status); } &&
11184	 { ac_try='test -z "$ac_c_werror_flag"
11185			 || test ! -s conftest.err'
11186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187  (eval $ac_try) 2>&5
11188  ac_status=$?
11189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190  (exit $ac_status); }; } &&
11191	 { ac_try='test -s conftest.$ac_objext'
11192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193  (eval $ac_try) 2>&5
11194  ac_status=$?
11195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196  (exit $ac_status); }; }; then
11197  ac_cv_header_time=yes
11198else
11199  echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202ac_cv_header_time=no
11203fi
11204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11205fi
11206echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11207echo "${ECHO_T}$ac_cv_header_time" >&6
11208if test $ac_cv_header_time = yes; then
11209
11210cat >>confdefs.h <<\_ACEOF
11211#define TIME_WITH_SYS_TIME 1
11212_ACEOF
11213
11214fi
11215
11216echo "$as_me:$LINENO: checking for ino_t" >&5
11217echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11218if test "${ac_cv_type_ino_t+set}" = set; then
11219  echo $ECHO_N "(cached) $ECHO_C" >&6
11220else
11221  cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h.  */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h.  */
11227$ac_includes_default
11228int
11229main ()
11230{
11231if ((ino_t *) 0)
11232  return 0;
11233if (sizeof (ino_t))
11234  return 0;
11235  ;
11236  return 0;
11237}
11238_ACEOF
11239rm -f conftest.$ac_objext
11240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241  (eval $ac_compile) 2>conftest.er1
11242  ac_status=$?
11243  grep -v '^ *+' conftest.er1 >conftest.err
11244  rm -f conftest.er1
11245  cat conftest.err >&5
11246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247  (exit $ac_status); } &&
11248	 { ac_try='test -z "$ac_c_werror_flag"
11249			 || test ! -s conftest.err'
11250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251  (eval $ac_try) 2>&5
11252  ac_status=$?
11253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254  (exit $ac_status); }; } &&
11255	 { ac_try='test -s conftest.$ac_objext'
11256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257  (eval $ac_try) 2>&5
11258  ac_status=$?
11259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260  (exit $ac_status); }; }; then
11261  ac_cv_type_ino_t=yes
11262else
11263  echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
11266ac_cv_type_ino_t=no
11267fi
11268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11269fi
11270echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11271echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11272if test $ac_cv_type_ino_t = yes; then
11273  :
11274else
11275
11276cat >>confdefs.h <<_ACEOF
11277#define ino_t long
11278_ACEOF
11279
11280fi
11281
11282echo "$as_me:$LINENO: checking for dev_t" >&5
11283echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11284if test "${ac_cv_type_dev_t+set}" = set; then
11285  echo $ECHO_N "(cached) $ECHO_C" >&6
11286else
11287  cat >conftest.$ac_ext <<_ACEOF
11288/* confdefs.h.  */
11289_ACEOF
11290cat confdefs.h >>conftest.$ac_ext
11291cat >>conftest.$ac_ext <<_ACEOF
11292/* end confdefs.h.  */
11293$ac_includes_default
11294int
11295main ()
11296{
11297if ((dev_t *) 0)
11298  return 0;
11299if (sizeof (dev_t))
11300  return 0;
11301  ;
11302  return 0;
11303}
11304_ACEOF
11305rm -f conftest.$ac_objext
11306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11307  (eval $ac_compile) 2>conftest.er1
11308  ac_status=$?
11309  grep -v '^ *+' conftest.er1 >conftest.err
11310  rm -f conftest.er1
11311  cat conftest.err >&5
11312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313  (exit $ac_status); } &&
11314	 { ac_try='test -z "$ac_c_werror_flag"
11315			 || test ! -s conftest.err'
11316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317  (eval $ac_try) 2>&5
11318  ac_status=$?
11319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320  (exit $ac_status); }; } &&
11321	 { ac_try='test -s conftest.$ac_objext'
11322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323  (eval $ac_try) 2>&5
11324  ac_status=$?
11325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326  (exit $ac_status); }; }; then
11327  ac_cv_type_dev_t=yes
11328else
11329  echo "$as_me: failed program was:" >&5
11330sed 's/^/| /' conftest.$ac_ext >&5
11331
11332ac_cv_type_dev_t=no
11333fi
11334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11335fi
11336echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11337echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11338if test $ac_cv_type_dev_t = yes; then
11339  :
11340else
11341
11342cat >>confdefs.h <<_ACEOF
11343#define dev_t unsigned
11344_ACEOF
11345
11346fi
11347
11348
11349echo "$as_me:$LINENO: checking for rlim_t" >&5
11350echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11351if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11352  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11353echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11354else
11355  cat >conftest.$ac_ext <<_ACEOF
11356/* confdefs.h.  */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h.  */
11361
11362#include <sys/types.h>
11363#if STDC_HEADERS
11364#include <stdlib.h>
11365#include <stddef.h>
11366#endif
11367#ifdef HAVE_SYS_RESOURCE_H
11368#include <sys/resource.h>
11369#endif
11370
11371_ACEOF
11372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11373  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11374  ac_cv_type_rlim_t=yes
11375else
11376  ac_cv_type_rlim_t=no
11377fi
11378rm -f conftest*
11379
11380	  echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11381echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
11382fi
11383if test $ac_cv_type_rlim_t = no; then
11384  cat >> confdefs.h <<\EOF
11385#define rlim_t unsigned long
11386EOF
11387fi
11388
11389echo "$as_me:$LINENO: checking for stack_t" >&5
11390echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11391if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11392  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11393echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
11394else
11395  cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h.  */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h.  */
11401
11402#include <sys/types.h>
11403#if STDC_HEADERS
11404#include <stdlib.h>
11405#include <stddef.h>
11406#endif
11407#include <signal.h>
11408
11409_ACEOF
11410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11411  $EGREP "stack_t" >/dev/null 2>&1; then
11412  ac_cv_type_stack_t=yes
11413else
11414  ac_cv_type_stack_t=no
11415fi
11416rm -f conftest*
11417
11418	  echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11419echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11420fi
11421if test $ac_cv_type_stack_t = no; then
11422  cat >> confdefs.h <<\EOF
11423#define stack_t struct sigaltstack
11424EOF
11425fi
11426
11427echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11428echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11429cat >conftest.$ac_ext <<_ACEOF
11430/* confdefs.h.  */
11431_ACEOF
11432cat confdefs.h >>conftest.$ac_ext
11433cat >>conftest.$ac_ext <<_ACEOF
11434/* end confdefs.h.  */
11435
11436#include <sys/types.h>
11437#if STDC_HEADERS
11438#include <stdlib.h>
11439#include <stddef.h>
11440#endif
11441#include <signal.h>
11442#include "confdefs.h"
11443
11444int
11445main ()
11446{
11447stack_t sigstk; sigstk.ss_base = 0;
11448  ;
11449  return 0;
11450}
11451_ACEOF
11452rm -f conftest.$ac_objext
11453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11454  (eval $ac_compile) 2>conftest.er1
11455  ac_status=$?
11456  grep -v '^ *+' conftest.er1 >conftest.err
11457  rm -f conftest.er1
11458  cat conftest.err >&5
11459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460  (exit $ac_status); } &&
11461	 { ac_try='test -z "$ac_c_werror_flag"
11462			 || test ! -s conftest.err'
11463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464  (eval $ac_try) 2>&5
11465  ac_status=$?
11466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467  (exit $ac_status); }; } &&
11468	 { ac_try='test -s conftest.$ac_objext'
11469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470  (eval $ac_try) 2>&5
11471  ac_status=$?
11472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473  (exit $ac_status); }; }; then
11474  echo "$as_me:$LINENO: result: yes" >&5
11475echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11476#define HAVE_SS_BASE 1
11477_ACEOF
11478
11479else
11480  echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483echo "$as_me:$LINENO: result: no" >&5
11484echo "${ECHO_T}no" >&6
11485fi
11486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11487
11488olibs="$LIBS"
11489echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11490echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11491
11492# Check whether --with-tlib or --without-tlib was given.
11493if test "${with_tlib+set}" = set; then
11494  withval="$with_tlib"
11495
11496fi;
11497if test -n "$with_tlib"; then
11498  echo "$as_me:$LINENO: result: $with_tlib" >&5
11499echo "${ECHO_T}$with_tlib" >&6
11500  LIBS="$LIBS -l$with_tlib"
11501  echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11502echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11503  cat >conftest.$ac_ext <<_ACEOF
11504/* confdefs.h.  */
11505_ACEOF
11506cat confdefs.h >>conftest.$ac_ext
11507cat >>conftest.$ac_ext <<_ACEOF
11508/* end confdefs.h.  */
11509
11510int
11511main ()
11512{
11513
11514  ;
11515  return 0;
11516}
11517_ACEOF
11518rm -f conftest.$ac_objext conftest$ac_exeext
11519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520  (eval $ac_link) 2>conftest.er1
11521  ac_status=$?
11522  grep -v '^ *+' conftest.er1 >conftest.err
11523  rm -f conftest.er1
11524  cat conftest.err >&5
11525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526  (exit $ac_status); } &&
11527	 { ac_try='test -z "$ac_c_werror_flag"
11528			 || test ! -s conftest.err'
11529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530  (eval $ac_try) 2>&5
11531  ac_status=$?
11532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533  (exit $ac_status); }; } &&
11534	 { ac_try='test -s conftest$ac_exeext'
11535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536  (eval $ac_try) 2>&5
11537  ac_status=$?
11538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539  (exit $ac_status); }; }; then
11540  echo "$as_me:$LINENO: result: OK" >&5
11541echo "${ECHO_T}OK" >&6
11542else
11543  echo "$as_me: failed program was:" >&5
11544sed 's/^/| /' conftest.$ac_ext >&5
11545
11546{ { echo "$as_me:$LINENO: error: FAILED" >&5
11547echo "$as_me: error: FAILED" >&2;}
11548   { (exit 1); exit 1; }; }
11549fi
11550rm -f conftest.err conftest.$ac_objext \
11551      conftest$ac_exeext conftest.$ac_ext
11552    olibs="$LIBS"
11553else
11554  echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11555echo "${ECHO_T}empty: automatic terminal library selection" >&6
11556            case "`uname -s 2>/dev/null`" in
11557	OSF1)	tlibs="ncurses curses termlib termcap";;
11558	*)	tlibs="ncurses termlib termcap curses";;
11559  esac
11560  for libname in $tlibs; do
11561
11562as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11563echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11564echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11565if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11566  echo $ECHO_N "(cached) $ECHO_C" >&6
11567else
11568  ac_check_lib_save_LIBS=$LIBS
11569LIBS="-l${libname}  $LIBS"
11570cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h.  */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h.  */
11576
11577/* Override any gcc2 internal prototype to avoid an error.  */
11578#ifdef __cplusplus
11579extern "C"
11580#endif
11581/* We use char because int might match the return type of a gcc2
11582   builtin and then its argument prototype would still apply.  */
11583char tgetent ();
11584int
11585main ()
11586{
11587tgetent ();
11588  ;
11589  return 0;
11590}
11591_ACEOF
11592rm -f conftest.$ac_objext conftest$ac_exeext
11593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594  (eval $ac_link) 2>conftest.er1
11595  ac_status=$?
11596  grep -v '^ *+' conftest.er1 >conftest.err
11597  rm -f conftest.er1
11598  cat conftest.err >&5
11599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600  (exit $ac_status); } &&
11601	 { ac_try='test -z "$ac_c_werror_flag"
11602			 || test ! -s conftest.err'
11603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604  (eval $ac_try) 2>&5
11605  ac_status=$?
11606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607  (exit $ac_status); }; } &&
11608	 { ac_try='test -s conftest$ac_exeext'
11609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610  (eval $ac_try) 2>&5
11611  ac_status=$?
11612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613  (exit $ac_status); }; }; then
11614  eval "$as_ac_Lib=yes"
11615else
11616  echo "$as_me: failed program was:" >&5
11617sed 's/^/| /' conftest.$ac_ext >&5
11618
11619eval "$as_ac_Lib=no"
11620fi
11621rm -f conftest.err conftest.$ac_objext \
11622      conftest$ac_exeext conftest.$ac_ext
11623LIBS=$ac_check_lib_save_LIBS
11624fi
11625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11626echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11627if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11628  cat >>confdefs.h <<_ACEOF
11629#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11630_ACEOF
11631
11632  LIBS="-l${libname} $LIBS"
11633
11634fi
11635
11636    if test "x$olibs" != "x$LIBS"; then
11637                        if test "$cross_compiling" = yes; then
11638  res="FAIL"
11639else
11640  cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h.  */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h.  */
11646
11647#ifdef HAVE_TERMCAP_H
11648# include <termcap.h>
11649#endif
11650main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11651_ACEOF
11652rm -f conftest$ac_exeext
11653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654  (eval $ac_link) 2>&5
11655  ac_status=$?
11656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659  (eval $ac_try) 2>&5
11660  ac_status=$?
11661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662  (exit $ac_status); }; }; then
11663  res="OK"
11664else
11665  echo "$as_me: program exited with status $ac_status" >&5
11666echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669( exit $ac_status )
11670res="FAIL"
11671fi
11672rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11673fi
11674      if test "$res" = "OK"; then
11675	break
11676      fi
11677      echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11678echo "${ECHO_T}$libname library is not usable" >&6
11679      LIBS="$olibs"
11680    fi
11681  done
11682  if test "x$olibs" = "x$LIBS"; then
11683    echo "$as_me:$LINENO: result: no terminal library found" >&5
11684echo "${ECHO_T}no terminal library found" >&6
11685  fi
11686fi
11687
11688if test "x$olibs" = "x$LIBS"; then
11689  echo "$as_me:$LINENO: checking for tgetent()" >&5
11690echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11691  cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h.  */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h.  */
11697
11698int
11699main ()
11700{
11701char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11702  ;
11703  return 0;
11704}
11705_ACEOF
11706rm -f conftest.$ac_objext conftest$ac_exeext
11707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11708  (eval $ac_link) 2>conftest.er1
11709  ac_status=$?
11710  grep -v '^ *+' conftest.er1 >conftest.err
11711  rm -f conftest.er1
11712  cat conftest.err >&5
11713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714  (exit $ac_status); } &&
11715	 { ac_try='test -z "$ac_c_werror_flag"
11716			 || test ! -s conftest.err'
11717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718  (eval $ac_try) 2>&5
11719  ac_status=$?
11720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721  (exit $ac_status); }; } &&
11722	 { ac_try='test -s conftest$ac_exeext'
11723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724  (eval $ac_try) 2>&5
11725  ac_status=$?
11726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727  (exit $ac_status); }; }; then
11728  echo "$as_me:$LINENO: result: yes" >&5
11729echo "${ECHO_T}yes" >&6
11730else
11731  echo "$as_me: failed program was:" >&5
11732sed 's/^/| /' conftest.$ac_ext >&5
11733
11734{ { echo "$as_me:$LINENO: error: NOT FOUND!
11735      You need to install a terminal library; for example ncurses.
11736      Or specify the name of the library with --with-tlib." >&5
11737echo "$as_me: error: NOT FOUND!
11738      You need to install a terminal library; for example ncurses.
11739      Or specify the name of the library with --with-tlib." >&2;}
11740   { (exit 1); exit 1; }; }
11741fi
11742rm -f conftest.err conftest.$ac_objext \
11743      conftest$ac_exeext conftest.$ac_ext
11744fi
11745
11746echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11747echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
11748if test "$cross_compiling" = yes; then
11749  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11750echo "$as_me: error: failed to compile test program." >&2;}
11751   { (exit 1); exit 1; }; }
11752else
11753  cat >conftest.$ac_ext <<_ACEOF
11754/* confdefs.h.  */
11755_ACEOF
11756cat confdefs.h >>conftest.$ac_ext
11757cat >>conftest.$ac_ext <<_ACEOF
11758/* end confdefs.h.  */
11759
11760#ifdef HAVE_TERMCAP_H
11761# include <termcap.h>
11762#endif
11763main()
11764{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11765_ACEOF
11766rm -f conftest$ac_exeext
11767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768  (eval $ac_link) 2>&5
11769  ac_status=$?
11770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773  (eval $ac_try) 2>&5
11774  ac_status=$?
11775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776  (exit $ac_status); }; }; then
11777  echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11778echo "${ECHO_T}no -- we are in termcap land" >&6
11779else
11780  echo "$as_me: program exited with status $ac_status" >&5
11781echo "$as_me: failed program was:" >&5
11782sed 's/^/| /' conftest.$ac_ext >&5
11783
11784( exit $ac_status )
11785echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11786echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
11787#define TERMINFO 1
11788_ACEOF
11789
11790fi
11791rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11792fi
11793
11794if test "x$olibs" != "x$LIBS"; then
11795  echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11796echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
11797  if test "$cross_compiling" = yes; then
11798  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11799echo "$as_me: error: failed to compile test program." >&2;}
11800   { (exit 1); exit 1; }; }
11801else
11802  cat >conftest.$ac_ext <<_ACEOF
11803/* confdefs.h.  */
11804_ACEOF
11805cat confdefs.h >>conftest.$ac_ext
11806cat >>conftest.$ac_ext <<_ACEOF
11807/* end confdefs.h.  */
11808
11809#ifdef HAVE_TERMCAP_H
11810# include <termcap.h>
11811#endif
11812main()
11813{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
11814_ACEOF
11815rm -f conftest$ac_exeext
11816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11817  (eval $ac_link) 2>&5
11818  ac_status=$?
11819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822  (eval $ac_try) 2>&5
11823  ac_status=$?
11824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825  (exit $ac_status); }; }; then
11826  echo "$as_me:$LINENO: result: zero" >&5
11827echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
11828#define TGETENT_ZERO_ERR 0
11829_ACEOF
11830
11831else
11832  echo "$as_me: program exited with status $ac_status" >&5
11833echo "$as_me: failed program was:" >&5
11834sed 's/^/| /' conftest.$ac_ext >&5
11835
11836( exit $ac_status )
11837echo "$as_me:$LINENO: result: non-zero" >&5
11838echo "${ECHO_T}non-zero" >&6
11839fi
11840rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11841fi
11842fi
11843
11844echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11845echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11846cat >conftest.$ac_ext <<_ACEOF
11847/* confdefs.h.  */
11848_ACEOF
11849cat confdefs.h >>conftest.$ac_ext
11850cat >>conftest.$ac_ext <<_ACEOF
11851/* end confdefs.h.  */
11852
11853#ifdef HAVE_TERMCAP_H
11854# include <termcap.h>
11855#endif
11856
11857int
11858main ()
11859{
11860ospeed = 20000
11861  ;
11862  return 0;
11863}
11864_ACEOF
11865rm -f conftest.$ac_objext conftest$ac_exeext
11866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11867  (eval $ac_link) 2>conftest.er1
11868  ac_status=$?
11869  grep -v '^ *+' conftest.er1 >conftest.err
11870  rm -f conftest.er1
11871  cat conftest.err >&5
11872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873  (exit $ac_status); } &&
11874	 { ac_try='test -z "$ac_c_werror_flag"
11875			 || test ! -s conftest.err'
11876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877  (eval $ac_try) 2>&5
11878  ac_status=$?
11879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880  (exit $ac_status); }; } &&
11881	 { ac_try='test -s conftest$ac_exeext'
11882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883  (eval $ac_try) 2>&5
11884  ac_status=$?
11885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886  (exit $ac_status); }; }; then
11887  echo "$as_me:$LINENO: result: yes" >&5
11888echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11889#define HAVE_OSPEED 1
11890_ACEOF
11891
11892else
11893  echo "$as_me: failed program was:" >&5
11894sed 's/^/| /' conftest.$ac_ext >&5
11895
11896echo "$as_me:$LINENO: result: no" >&5
11897echo "${ECHO_T}no" >&6
11898	echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11899echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11900	cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h.  */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h.  */
11906
11907#ifdef HAVE_TERMCAP_H
11908# include <termcap.h>
11909#endif
11910extern short ospeed;
11911
11912int
11913main ()
11914{
11915ospeed = 20000
11916  ;
11917  return 0;
11918}
11919_ACEOF
11920rm -f conftest.$ac_objext conftest$ac_exeext
11921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922  (eval $ac_link) 2>conftest.er1
11923  ac_status=$?
11924  grep -v '^ *+' conftest.er1 >conftest.err
11925  rm -f conftest.er1
11926  cat conftest.err >&5
11927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928  (exit $ac_status); } &&
11929	 { ac_try='test -z "$ac_c_werror_flag"
11930			 || test ! -s conftest.err'
11931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932  (eval $ac_try) 2>&5
11933  ac_status=$?
11934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935  (exit $ac_status); }; } &&
11936	 { ac_try='test -s conftest$ac_exeext'
11937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938  (eval $ac_try) 2>&5
11939  ac_status=$?
11940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941  (exit $ac_status); }; }; then
11942  echo "$as_me:$LINENO: result: yes" >&5
11943echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11944#define OSPEED_EXTERN 1
11945_ACEOF
11946
11947else
11948  echo "$as_me: failed program was:" >&5
11949sed 's/^/| /' conftest.$ac_ext >&5
11950
11951echo "$as_me:$LINENO: result: no" >&5
11952echo "${ECHO_T}no" >&6
11953fi
11954rm -f conftest.err conftest.$ac_objext \
11955      conftest$ac_exeext conftest.$ac_ext
11956
11957fi
11958rm -f conftest.err conftest.$ac_objext \
11959      conftest$ac_exeext conftest.$ac_ext
11960
11961echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11962echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11963cat >conftest.$ac_ext <<_ACEOF
11964/* confdefs.h.  */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h.  */
11969
11970#ifdef HAVE_TERMCAP_H
11971# include <termcap.h>
11972#endif
11973
11974int
11975main ()
11976{
11977if (UP == 0 && BC == 0) PC = 1
11978  ;
11979  return 0;
11980}
11981_ACEOF
11982rm -f conftest.$ac_objext conftest$ac_exeext
11983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11984  (eval $ac_link) 2>conftest.er1
11985  ac_status=$?
11986  grep -v '^ *+' conftest.er1 >conftest.err
11987  rm -f conftest.er1
11988  cat conftest.err >&5
11989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990  (exit $ac_status); } &&
11991	 { ac_try='test -z "$ac_c_werror_flag"
11992			 || test ! -s conftest.err'
11993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994  (eval $ac_try) 2>&5
11995  ac_status=$?
11996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997  (exit $ac_status); }; } &&
11998	 { ac_try='test -s conftest$ac_exeext'
11999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000  (eval $ac_try) 2>&5
12001  ac_status=$?
12002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003  (exit $ac_status); }; }; then
12004  echo "$as_me:$LINENO: result: yes" >&5
12005echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12006#define HAVE_UP_BC_PC 1
12007_ACEOF
12008
12009else
12010  echo "$as_me: failed program was:" >&5
12011sed 's/^/| /' conftest.$ac_ext >&5
12012
12013echo "$as_me:$LINENO: result: no" >&5
12014echo "${ECHO_T}no" >&6
12015	echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12016echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12017	cat >conftest.$ac_ext <<_ACEOF
12018/* confdefs.h.  */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h.  */
12023
12024#ifdef HAVE_TERMCAP_H
12025# include <termcap.h>
12026#endif
12027extern char *UP, *BC, PC;
12028
12029int
12030main ()
12031{
12032if (UP == 0 && BC == 0) PC = 1
12033  ;
12034  return 0;
12035}
12036_ACEOF
12037rm -f conftest.$ac_objext conftest$ac_exeext
12038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039  (eval $ac_link) 2>conftest.er1
12040  ac_status=$?
12041  grep -v '^ *+' conftest.er1 >conftest.err
12042  rm -f conftest.er1
12043  cat conftest.err >&5
12044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045  (exit $ac_status); } &&
12046	 { ac_try='test -z "$ac_c_werror_flag"
12047			 || test ! -s conftest.err'
12048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049  (eval $ac_try) 2>&5
12050  ac_status=$?
12051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052  (exit $ac_status); }; } &&
12053	 { ac_try='test -s conftest$ac_exeext'
12054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055  (eval $ac_try) 2>&5
12056  ac_status=$?
12057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058  (exit $ac_status); }; }; then
12059  echo "$as_me:$LINENO: result: yes" >&5
12060echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12061#define UP_BC_PC_EXTERN 1
12062_ACEOF
12063
12064else
12065  echo "$as_me: failed program was:" >&5
12066sed 's/^/| /' conftest.$ac_ext >&5
12067
12068echo "$as_me:$LINENO: result: no" >&5
12069echo "${ECHO_T}no" >&6
12070fi
12071rm -f conftest.err conftest.$ac_objext \
12072      conftest$ac_exeext conftest.$ac_ext
12073
12074fi
12075rm -f conftest.err conftest.$ac_objext \
12076      conftest$ac_exeext conftest.$ac_ext
12077
12078echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12079echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12080cat >conftest.$ac_ext <<_ACEOF
12081/* confdefs.h.  */
12082_ACEOF
12083cat confdefs.h >>conftest.$ac_ext
12084cat >>conftest.$ac_ext <<_ACEOF
12085/* end confdefs.h.  */
12086
12087#ifdef HAVE_TERMCAP_H
12088# include <termcap.h>
12089#endif
12090
12091int
12092main ()
12093{
12094extern int xx(); tputs("test", 1, (outfuntype)xx)
12095  ;
12096  return 0;
12097}
12098_ACEOF
12099rm -f conftest.$ac_objext
12100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101  (eval $ac_compile) 2>conftest.er1
12102  ac_status=$?
12103  grep -v '^ *+' conftest.er1 >conftest.err
12104  rm -f conftest.er1
12105  cat conftest.err >&5
12106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107  (exit $ac_status); } &&
12108	 { ac_try='test -z "$ac_c_werror_flag"
12109			 || test ! -s conftest.err'
12110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111  (eval $ac_try) 2>&5
12112  ac_status=$?
12113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114  (exit $ac_status); }; } &&
12115	 { ac_try='test -s conftest.$ac_objext'
12116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117  (eval $ac_try) 2>&5
12118  ac_status=$?
12119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120  (exit $ac_status); }; }; then
12121  echo "$as_me:$LINENO: result: yes" >&5
12122echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12123#define HAVE_OUTFUNTYPE 1
12124_ACEOF
12125
12126else
12127  echo "$as_me: failed program was:" >&5
12128sed 's/^/| /' conftest.$ac_ext >&5
12129
12130echo "$as_me:$LINENO: result: no" >&5
12131echo "${ECHO_T}no" >&6
12132fi
12133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12134
12135echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12136echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12137cat >conftest.$ac_ext <<_ACEOF
12138/* confdefs.h.  */
12139_ACEOF
12140cat confdefs.h >>conftest.$ac_ext
12141cat >>conftest.$ac_ext <<_ACEOF
12142/* end confdefs.h.  */
12143
12144#include <sys/types.h>
12145#include <sys/time.h>
12146#include <sys/select.h>
12147int
12148main ()
12149{
12150
12151  ;
12152  return 0;
12153}
12154_ACEOF
12155rm -f conftest.$ac_objext
12156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157  (eval $ac_compile) 2>conftest.er1
12158  ac_status=$?
12159  grep -v '^ *+' conftest.er1 >conftest.err
12160  rm -f conftest.er1
12161  cat conftest.err >&5
12162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163  (exit $ac_status); } &&
12164	 { ac_try='test -z "$ac_c_werror_flag"
12165			 || test ! -s conftest.err'
12166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167  (eval $ac_try) 2>&5
12168  ac_status=$?
12169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170  (exit $ac_status); }; } &&
12171	 { ac_try='test -s conftest.$ac_objext'
12172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173  (eval $ac_try) 2>&5
12174  ac_status=$?
12175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176  (exit $ac_status); }; }; then
12177  echo "$as_me:$LINENO: result: yes" >&5
12178echo "${ECHO_T}yes" >&6
12179			cat >>confdefs.h <<\_ACEOF
12180#define SYS_SELECT_WITH_SYS_TIME 1
12181_ACEOF
12182
12183else
12184  echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
12187echo "$as_me:$LINENO: result: no" >&5
12188echo "${ECHO_T}no" >&6
12189fi
12190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12191
12192
12193echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12194echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12195if test -r /dev/ptc; then
12196  cat >>confdefs.h <<\_ACEOF
12197#define HAVE_DEV_PTC 1
12198_ACEOF
12199
12200  echo "$as_me:$LINENO: result: yes" >&5
12201echo "${ECHO_T}yes" >&6
12202else
12203  echo "$as_me:$LINENO: result: no" >&5
12204echo "${ECHO_T}no" >&6
12205fi
12206
12207echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12208echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
12209if test -c /dev/ptmx ; then
12210  cat >conftest.$ac_ext <<_ACEOF
12211/* confdefs.h.  */
12212_ACEOF
12213cat confdefs.h >>conftest.$ac_ext
12214cat >>conftest.$ac_ext <<_ACEOF
12215/* end confdefs.h.  */
12216
12217int
12218main ()
12219{
12220ptsname(0);grantpt(0);unlockpt(0);
12221  ;
12222  return 0;
12223}
12224_ACEOF
12225rm -f conftest.$ac_objext conftest$ac_exeext
12226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12227  (eval $ac_link) 2>conftest.er1
12228  ac_status=$?
12229  grep -v '^ *+' conftest.er1 >conftest.err
12230  rm -f conftest.er1
12231  cat conftest.err >&5
12232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233  (exit $ac_status); } &&
12234	 { ac_try='test -z "$ac_c_werror_flag"
12235			 || test ! -s conftest.err'
12236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237  (eval $ac_try) 2>&5
12238  ac_status=$?
12239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240  (exit $ac_status); }; } &&
12241	 { ac_try='test -s conftest$ac_exeext'
12242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243  (eval $ac_try) 2>&5
12244  ac_status=$?
12245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246  (exit $ac_status); }; }; then
12247  echo "$as_me:$LINENO: result: yes" >&5
12248echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12249#define HAVE_SVR4_PTYS 1
12250_ACEOF
12251
12252else
12253  echo "$as_me: failed program was:" >&5
12254sed 's/^/| /' conftest.$ac_ext >&5
12255
12256echo "$as_me:$LINENO: result: no" >&5
12257echo "${ECHO_T}no" >&6
12258fi
12259rm -f conftest.err conftest.$ac_objext \
12260      conftest$ac_exeext conftest.$ac_ext
12261else
12262  echo "$as_me:$LINENO: result: no" >&5
12263echo "${ECHO_T}no" >&6
12264fi
12265
12266echo "$as_me:$LINENO: checking for ptyranges" >&5
12267echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
12268if test -d /dev/ptym ; then
12269  pdir='/dev/ptym'
12270else
12271  pdir='/dev'
12272fi
12273cat >conftest.$ac_ext <<_ACEOF
12274/* confdefs.h.  */
12275_ACEOF
12276cat confdefs.h >>conftest.$ac_ext
12277cat >>conftest.$ac_ext <<_ACEOF
12278/* end confdefs.h.  */
12279#ifdef M_UNIX
12280   yes;
12281#endif
12282
12283_ACEOF
12284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12285  $EGREP "yes" >/dev/null 2>&1; then
12286  ptys=`echo /dev/ptyp??`
12287else
12288  ptys=`echo $pdir/pty??`
12289fi
12290rm -f conftest*
12291
12292if test "$ptys" != "$pdir/pty??" ; then
12293  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12294  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12295  cat >>confdefs.h <<_ACEOF
12296#define PTYRANGE0 "$p0"
12297_ACEOF
12298
12299  cat >>confdefs.h <<_ACEOF
12300#define PTYRANGE1 "$p1"
12301_ACEOF
12302
12303  echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12304echo "${ECHO_T}$p0 / $p1" >&6
12305else
12306  echo "$as_me:$LINENO: result: don't know" >&5
12307echo "${ECHO_T}don't know" >&6
12308fi
12309
12310echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12311echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
12312rm -f conftest_grp
12313if test "$cross_compiling" = yes; then
12314  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12315echo "$as_me: error: failed to compile test program" >&2;}
12316   { (exit 1); exit 1; }; }
12317else
12318  cat >conftest.$ac_ext <<_ACEOF
12319/* confdefs.h.  */
12320_ACEOF
12321cat confdefs.h >>conftest.$ac_ext
12322cat >>conftest.$ac_ext <<_ACEOF
12323/* end confdefs.h.  */
12324
12325#include <sys/types.h>
12326#include <sys/stat.h>
12327#include <stdio.h>
12328main()
12329{
12330  struct stat sb;
12331  char *x,*ttyname();
12332  int om, m;
12333  FILE *fp;
12334
12335  if (!(x = ttyname(0))) exit(1);
12336  if (stat(x, &sb)) exit(1);
12337  om = sb.st_mode;
12338  if (om & 002) exit(0);
12339  m = system("mesg y");
12340  if (m == -1 || m == 127) exit(1);
12341  if (stat(x, &sb)) exit(1);
12342  m = sb.st_mode;
12343  if (chmod(x, om)) exit(1);
12344  if (m & 002) exit(0);
12345  if (sb.st_gid == getgid()) exit(1);
12346  if (!(fp=fopen("conftest_grp", "w")))
12347    exit(1);
12348  fprintf(fp, "%d\n", sb.st_gid);
12349  fclose(fp);
12350  exit(0);
12351}
12352
12353_ACEOF
12354rm -f conftest$ac_exeext
12355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12356  (eval $ac_link) 2>&5
12357  ac_status=$?
12358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361  (eval $ac_try) 2>&5
12362  ac_status=$?
12363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364  (exit $ac_status); }; }; then
12365
12366    if test -f conftest_grp; then
12367	ptygrp=`cat conftest_grp`
12368	echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12369echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12370	cat >>confdefs.h <<\_ACEOF
12371#define PTYMODE 0620
12372_ACEOF
12373
12374	cat >>confdefs.h <<_ACEOF
12375#define PTYGROUP $ptygrp
12376_ACEOF
12377
12378    else
12379	echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12380echo "${ECHO_T}ptys are world accessable" >&6
12381    fi
12382
12383else
12384  echo "$as_me: program exited with status $ac_status" >&5
12385echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388( exit $ac_status )
12389echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12390echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12391fi
12392rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12393fi
12394rm -f conftest_grp
12395
12396
12397echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12398echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12399if test "${ac_cv_type_signal+set}" = set; then
12400  echo $ECHO_N "(cached) $ECHO_C" >&6
12401else
12402  cat >conftest.$ac_ext <<_ACEOF
12403/* confdefs.h.  */
12404_ACEOF
12405cat confdefs.h >>conftest.$ac_ext
12406cat >>conftest.$ac_ext <<_ACEOF
12407/* end confdefs.h.  */
12408#include <sys/types.h>
12409#include <signal.h>
12410#ifdef signal
12411# undef signal
12412#endif
12413#ifdef __cplusplus
12414extern "C" void (*signal (int, void (*)(int)))(int);
12415#else
12416void (*signal ()) ();
12417#endif
12418
12419int
12420main ()
12421{
12422int i;
12423  ;
12424  return 0;
12425}
12426_ACEOF
12427rm -f conftest.$ac_objext
12428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12429  (eval $ac_compile) 2>conftest.er1
12430  ac_status=$?
12431  grep -v '^ *+' conftest.er1 >conftest.err
12432  rm -f conftest.er1
12433  cat conftest.err >&5
12434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435  (exit $ac_status); } &&
12436	 { ac_try='test -z "$ac_c_werror_flag"
12437			 || test ! -s conftest.err'
12438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439  (eval $ac_try) 2>&5
12440  ac_status=$?
12441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442  (exit $ac_status); }; } &&
12443	 { ac_try='test -s conftest.$ac_objext'
12444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445  (eval $ac_try) 2>&5
12446  ac_status=$?
12447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448  (exit $ac_status); }; }; then
12449  ac_cv_type_signal=void
12450else
12451  echo "$as_me: failed program was:" >&5
12452sed 's/^/| /' conftest.$ac_ext >&5
12453
12454ac_cv_type_signal=int
12455fi
12456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12457fi
12458echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12459echo "${ECHO_T}$ac_cv_type_signal" >&6
12460
12461cat >>confdefs.h <<_ACEOF
12462#define RETSIGTYPE $ac_cv_type_signal
12463_ACEOF
12464
12465
12466
12467if test $ac_cv_type_signal = void; then
12468  cat >>confdefs.h <<\_ACEOF
12469#define SIGRETURN return
12470_ACEOF
12471
12472else
12473  cat >>confdefs.h <<\_ACEOF
12474#define SIGRETURN return 0
12475_ACEOF
12476
12477fi
12478
12479echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12480echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12481cat >conftest.$ac_ext <<_ACEOF
12482/* confdefs.h.  */
12483_ACEOF
12484cat confdefs.h >>conftest.$ac_ext
12485cat >>conftest.$ac_ext <<_ACEOF
12486/* end confdefs.h.  */
12487
12488#include <signal.h>
12489test_sig()
12490{
12491    struct sigcontext *scont;
12492    scont = (struct sigcontext *)0;
12493    return 1;
12494}
12495int
12496main ()
12497{
12498
12499  ;
12500  return 0;
12501}
12502_ACEOF
12503rm -f conftest.$ac_objext
12504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505  (eval $ac_compile) 2>conftest.er1
12506  ac_status=$?
12507  grep -v '^ *+' conftest.er1 >conftest.err
12508  rm -f conftest.er1
12509  cat conftest.err >&5
12510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511  (exit $ac_status); } &&
12512	 { ac_try='test -z "$ac_c_werror_flag"
12513			 || test ! -s conftest.err'
12514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515  (eval $ac_try) 2>&5
12516  ac_status=$?
12517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518  (exit $ac_status); }; } &&
12519	 { ac_try='test -s conftest.$ac_objext'
12520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521  (eval $ac_try) 2>&5
12522  ac_status=$?
12523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524  (exit $ac_status); }; }; then
12525  echo "$as_me:$LINENO: result: yes" >&5
12526echo "${ECHO_T}yes" >&6
12527		cat >>confdefs.h <<\_ACEOF
12528#define HAVE_SIGCONTEXT 1
12529_ACEOF
12530
12531else
12532  echo "$as_me: failed program was:" >&5
12533sed 's/^/| /' conftest.$ac_ext >&5
12534
12535echo "$as_me:$LINENO: result: no" >&5
12536echo "${ECHO_T}no" >&6
12537fi
12538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12539
12540echo "$as_me:$LINENO: checking getcwd implementation" >&5
12541echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
12542if test "$cross_compiling" = yes; then
12543  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12544echo "$as_me: error: failed to compile test program" >&2;}
12545   { (exit 1); exit 1; }; }
12546else
12547  cat >conftest.$ac_ext <<_ACEOF
12548/* confdefs.h.  */
12549_ACEOF
12550cat confdefs.h >>conftest.$ac_ext
12551cat >>conftest.$ac_ext <<_ACEOF
12552/* end confdefs.h.  */
12553
12554char *dagger[] = { "IFS=pwd", 0 };
12555main()
12556{
12557  char buffer[500];
12558  extern char **environ;
12559  environ = dagger;
12560  return getcwd(buffer, 500) ? 0 : 1;
12561}
12562_ACEOF
12563rm -f conftest$ac_exeext
12564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12565  (eval $ac_link) 2>&5
12566  ac_status=$?
12567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570  (eval $ac_try) 2>&5
12571  ac_status=$?
12572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573  (exit $ac_status); }; }; then
12574  echo "$as_me:$LINENO: result: it is usable" >&5
12575echo "${ECHO_T}it is usable" >&6
12576else
12577  echo "$as_me: program exited with status $ac_status" >&5
12578echo "$as_me: failed program was:" >&5
12579sed 's/^/| /' conftest.$ac_ext >&5
12580
12581( exit $ac_status )
12582echo "$as_me:$LINENO: result: it stinks" >&5
12583echo "${ECHO_T}it stinks" >&6
12584		cat >>confdefs.h <<\_ACEOF
12585#define BAD_GETCWD 1
12586_ACEOF
12587
12588fi
12589rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12590fi
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12639	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12640	memset nanosleep opendir putenv qsort readlink select setenv \
12641	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12642	sigvec strcasecmp strerror strftime stricmp strncasecmp \
12643	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12644	usleep utime utimes
12645do
12646as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12647echo "$as_me:$LINENO: checking for $ac_func" >&5
12648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12649if eval "test \"\${$as_ac_var+set}\" = set"; then
12650  echo $ECHO_N "(cached) $ECHO_C" >&6
12651else
12652  cat >conftest.$ac_ext <<_ACEOF
12653/* confdefs.h.  */
12654_ACEOF
12655cat confdefs.h >>conftest.$ac_ext
12656cat >>conftest.$ac_ext <<_ACEOF
12657/* end confdefs.h.  */
12658/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12659   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12660#define $ac_func innocuous_$ac_func
12661
12662/* System header to define __stub macros and hopefully few prototypes,
12663    which can conflict with char $ac_func (); below.
12664    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12665    <limits.h> exists even on freestanding compilers.  */
12666
12667#ifdef __STDC__
12668# include <limits.h>
12669#else
12670# include <assert.h>
12671#endif
12672
12673#undef $ac_func
12674
12675/* Override any gcc2 internal prototype to avoid an error.  */
12676#ifdef __cplusplus
12677extern "C"
12678{
12679#endif
12680/* We use char because int might match the return type of a gcc2
12681   builtin and then its argument prototype would still apply.  */
12682char $ac_func ();
12683/* The GNU C library defines this for functions which it implements
12684    to always fail with ENOSYS.  Some functions are actually named
12685    something starting with __ and the normal name is an alias.  */
12686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12687choke me
12688#else
12689char (*f) () = $ac_func;
12690#endif
12691#ifdef __cplusplus
12692}
12693#endif
12694
12695int
12696main ()
12697{
12698return f != $ac_func;
12699  ;
12700  return 0;
12701}
12702_ACEOF
12703rm -f conftest.$ac_objext conftest$ac_exeext
12704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12705  (eval $ac_link) 2>conftest.er1
12706  ac_status=$?
12707  grep -v '^ *+' conftest.er1 >conftest.err
12708  rm -f conftest.er1
12709  cat conftest.err >&5
12710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711  (exit $ac_status); } &&
12712	 { ac_try='test -z "$ac_c_werror_flag"
12713			 || test ! -s conftest.err'
12714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715  (eval $ac_try) 2>&5
12716  ac_status=$?
12717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718  (exit $ac_status); }; } &&
12719	 { ac_try='test -s conftest$ac_exeext'
12720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721  (eval $ac_try) 2>&5
12722  ac_status=$?
12723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724  (exit $ac_status); }; }; then
12725  eval "$as_ac_var=yes"
12726else
12727  echo "$as_me: failed program was:" >&5
12728sed 's/^/| /' conftest.$ac_ext >&5
12729
12730eval "$as_ac_var=no"
12731fi
12732rm -f conftest.err conftest.$ac_objext \
12733      conftest$ac_exeext conftest.$ac_ext
12734fi
12735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12736echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12737if test `eval echo '${'$as_ac_var'}'` = yes; then
12738  cat >>confdefs.h <<_ACEOF
12739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12740_ACEOF
12741
12742fi
12743done
12744
12745
12746echo "$as_me:$LINENO: checking for st_blksize" >&5
12747echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12748cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h.  */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h.  */
12754#include <sys/types.h>
12755#include <sys/stat.h>
12756int
12757main ()
12758{
12759	struct stat st;
12760	int n;
12761
12762	stat("/", &st);
12763	n = (int)st.st_blksize;
12764  ;
12765  return 0;
12766}
12767_ACEOF
12768rm -f conftest.$ac_objext
12769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770  (eval $ac_compile) 2>conftest.er1
12771  ac_status=$?
12772  grep -v '^ *+' conftest.er1 >conftest.err
12773  rm -f conftest.er1
12774  cat conftest.err >&5
12775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776  (exit $ac_status); } &&
12777	 { ac_try='test -z "$ac_c_werror_flag"
12778			 || test ! -s conftest.err'
12779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780  (eval $ac_try) 2>&5
12781  ac_status=$?
12782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783  (exit $ac_status); }; } &&
12784	 { ac_try='test -s conftest.$ac_objext'
12785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786  (eval $ac_try) 2>&5
12787  ac_status=$?
12788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789  (exit $ac_status); }; }; then
12790  echo "$as_me:$LINENO: result: yes" >&5
12791echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12792#define HAVE_ST_BLKSIZE 1
12793_ACEOF
12794
12795else
12796  echo "$as_me: failed program was:" >&5
12797sed 's/^/| /' conftest.$ac_ext >&5
12798
12799echo "$as_me:$LINENO: result: no" >&5
12800echo "${ECHO_T}no" >&6
12801fi
12802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12803
12804echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12805echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
12806if test "$cross_compiling" = yes; then
12807  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12808echo "$as_me: error: failed to compile test program" >&2;}
12809   { (exit 1); exit 1; }; }
12810else
12811  cat >conftest.$ac_ext <<_ACEOF
12812/* confdefs.h.  */
12813_ACEOF
12814cat confdefs.h >>conftest.$ac_ext
12815cat >>conftest.$ac_ext <<_ACEOF
12816/* end confdefs.h.  */
12817#include <sys/types.h>
12818#include <sys/stat.h>
12819main() {struct stat st;  exit(stat("configure/", &st) != 0); }
12820_ACEOF
12821rm -f conftest$ac_exeext
12822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823  (eval $ac_link) 2>&5
12824  ac_status=$?
12825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828  (eval $ac_try) 2>&5
12829  ac_status=$?
12830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831  (exit $ac_status); }; }; then
12832  echo "$as_me:$LINENO: result: yes" >&5
12833echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12834#define STAT_IGNORES_SLASH 1
12835_ACEOF
12836
12837else
12838  echo "$as_me: program exited with status $ac_status" >&5
12839echo "$as_me: failed program was:" >&5
12840sed 's/^/| /' conftest.$ac_ext >&5
12841
12842( exit $ac_status )
12843echo "$as_me:$LINENO: result: no" >&5
12844echo "${ECHO_T}no" >&6
12845fi
12846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12847fi
12848
12849echo "$as_me:$LINENO: checking for iconv_open()" >&5
12850echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
12851save_LIBS="$LIBS"
12852LIBS="$LIBS -liconv"
12853cat >conftest.$ac_ext <<_ACEOF
12854/* confdefs.h.  */
12855_ACEOF
12856cat confdefs.h >>conftest.$ac_ext
12857cat >>conftest.$ac_ext <<_ACEOF
12858/* end confdefs.h.  */
12859
12860#ifdef HAVE_ICONV_H
12861# include <iconv.h>
12862#endif
12863
12864int
12865main ()
12866{
12867iconv_open("fr", "to");
12868  ;
12869  return 0;
12870}
12871_ACEOF
12872rm -f conftest.$ac_objext conftest$ac_exeext
12873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12874  (eval $ac_link) 2>conftest.er1
12875  ac_status=$?
12876  grep -v '^ *+' conftest.er1 >conftest.err
12877  rm -f conftest.er1
12878  cat conftest.err >&5
12879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880  (exit $ac_status); } &&
12881	 { ac_try='test -z "$ac_c_werror_flag"
12882			 || test ! -s conftest.err'
12883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884  (eval $ac_try) 2>&5
12885  ac_status=$?
12886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887  (exit $ac_status); }; } &&
12888	 { ac_try='test -s conftest$ac_exeext'
12889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890  (eval $ac_try) 2>&5
12891  ac_status=$?
12892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893  (exit $ac_status); }; }; then
12894  echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12895echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
12896#define HAVE_ICONV 1
12897_ACEOF
12898
12899else
12900  echo "$as_me: failed program was:" >&5
12901sed 's/^/| /' conftest.$ac_ext >&5
12902
12903LIBS="$save_LIBS"
12904    cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h.  */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h.  */
12910
12911#ifdef HAVE_ICONV_H
12912# include <iconv.h>
12913#endif
12914
12915int
12916main ()
12917{
12918iconv_open("fr", "to");
12919  ;
12920  return 0;
12921}
12922_ACEOF
12923rm -f conftest.$ac_objext conftest$ac_exeext
12924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925  (eval $ac_link) 2>conftest.er1
12926  ac_status=$?
12927  grep -v '^ *+' conftest.er1 >conftest.err
12928  rm -f conftest.er1
12929  cat conftest.err >&5
12930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931  (exit $ac_status); } &&
12932	 { ac_try='test -z "$ac_c_werror_flag"
12933			 || test ! -s conftest.err'
12934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935  (eval $ac_try) 2>&5
12936  ac_status=$?
12937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938  (exit $ac_status); }; } &&
12939	 { ac_try='test -s conftest$ac_exeext'
12940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941  (eval $ac_try) 2>&5
12942  ac_status=$?
12943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944  (exit $ac_status); }; }; then
12945  echo "$as_me:$LINENO: result: yes" >&5
12946echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12947#define HAVE_ICONV 1
12948_ACEOF
12949
12950else
12951  echo "$as_me: failed program was:" >&5
12952sed 's/^/| /' conftest.$ac_ext >&5
12953
12954echo "$as_me:$LINENO: result: no" >&5
12955echo "${ECHO_T}no" >&6
12956fi
12957rm -f conftest.err conftest.$ac_objext \
12958      conftest$ac_exeext conftest.$ac_ext
12959fi
12960rm -f conftest.err conftest.$ac_objext \
12961      conftest$ac_exeext conftest.$ac_ext
12962
12963
12964echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12965echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12966cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h.  */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
12971/* end confdefs.h.  */
12972
12973#ifdef HAVE_LANGINFO_H
12974# include <langinfo.h>
12975#endif
12976
12977int
12978main ()
12979{
12980char *cs = nl_langinfo(CODESET);
12981  ;
12982  return 0;
12983}
12984_ACEOF
12985rm -f conftest.$ac_objext conftest$ac_exeext
12986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12987  (eval $ac_link) 2>conftest.er1
12988  ac_status=$?
12989  grep -v '^ *+' conftest.er1 >conftest.err
12990  rm -f conftest.er1
12991  cat conftest.err >&5
12992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993  (exit $ac_status); } &&
12994	 { ac_try='test -z "$ac_c_werror_flag"
12995			 || test ! -s conftest.err'
12996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997  (eval $ac_try) 2>&5
12998  ac_status=$?
12999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000  (exit $ac_status); }; } &&
13001	 { ac_try='test -s conftest$ac_exeext'
13002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003  (eval $ac_try) 2>&5
13004  ac_status=$?
13005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006  (exit $ac_status); }; }; then
13007  echo "$as_me:$LINENO: result: yes" >&5
13008echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13009#define HAVE_NL_LANGINFO_CODESET 1
13010_ACEOF
13011
13012else
13013  echo "$as_me: failed program was:" >&5
13014sed 's/^/| /' conftest.$ac_ext >&5
13015
13016echo "$as_me:$LINENO: result: no" >&5
13017echo "${ECHO_T}no" >&6
13018fi
13019rm -f conftest.err conftest.$ac_objext \
13020      conftest$ac_exeext conftest.$ac_ext
13021
13022echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13023echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
13024# Check whether --enable-acl or --disable-acl was given.
13025if test "${enable_acl+set}" = set; then
13026  enableval="$enable_acl"
13027
13028else
13029  enable_acl="yes"
13030fi;
13031if test "$enable_acl" = "yes"; then
13032echo "$as_me:$LINENO: result: no" >&5
13033echo "${ECHO_T}no" >&6
13034echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13035echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13036if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13037  echo $ECHO_N "(cached) $ECHO_C" >&6
13038else
13039  ac_check_lib_save_LIBS=$LIBS
13040LIBS="-lposix1e  $LIBS"
13041cat >conftest.$ac_ext <<_ACEOF
13042/* confdefs.h.  */
13043_ACEOF
13044cat confdefs.h >>conftest.$ac_ext
13045cat >>conftest.$ac_ext <<_ACEOF
13046/* end confdefs.h.  */
13047
13048/* Override any gcc2 internal prototype to avoid an error.  */
13049#ifdef __cplusplus
13050extern "C"
13051#endif
13052/* We use char because int might match the return type of a gcc2
13053   builtin and then its argument prototype would still apply.  */
13054char acl_get_file ();
13055int
13056main ()
13057{
13058acl_get_file ();
13059  ;
13060  return 0;
13061}
13062_ACEOF
13063rm -f conftest.$ac_objext conftest$ac_exeext
13064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13065  (eval $ac_link) 2>conftest.er1
13066  ac_status=$?
13067  grep -v '^ *+' conftest.er1 >conftest.err
13068  rm -f conftest.er1
13069  cat conftest.err >&5
13070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071  (exit $ac_status); } &&
13072	 { ac_try='test -z "$ac_c_werror_flag"
13073			 || test ! -s conftest.err'
13074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075  (eval $ac_try) 2>&5
13076  ac_status=$?
13077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078  (exit $ac_status); }; } &&
13079	 { ac_try='test -s conftest$ac_exeext'
13080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081  (eval $ac_try) 2>&5
13082  ac_status=$?
13083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084  (exit $ac_status); }; }; then
13085  ac_cv_lib_posix1e_acl_get_file=yes
13086else
13087  echo "$as_me: failed program was:" >&5
13088sed 's/^/| /' conftest.$ac_ext >&5
13089
13090ac_cv_lib_posix1e_acl_get_file=no
13091fi
13092rm -f conftest.err conftest.$ac_objext \
13093      conftest$ac_exeext conftest.$ac_ext
13094LIBS=$ac_check_lib_save_LIBS
13095fi
13096echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13097echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13098if test $ac_cv_lib_posix1e_acl_get_file = yes; then
13099  LIBS="$LIBS -lposix1e"
13100else
13101  echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13102echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13103if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13104  echo $ECHO_N "(cached) $ECHO_C" >&6
13105else
13106  ac_check_lib_save_LIBS=$LIBS
13107LIBS="-lacl  $LIBS"
13108cat >conftest.$ac_ext <<_ACEOF
13109/* confdefs.h.  */
13110_ACEOF
13111cat confdefs.h >>conftest.$ac_ext
13112cat >>conftest.$ac_ext <<_ACEOF
13113/* end confdefs.h.  */
13114
13115/* Override any gcc2 internal prototype to avoid an error.  */
13116#ifdef __cplusplus
13117extern "C"
13118#endif
13119/* We use char because int might match the return type of a gcc2
13120   builtin and then its argument prototype would still apply.  */
13121char acl_get_file ();
13122int
13123main ()
13124{
13125acl_get_file ();
13126  ;
13127  return 0;
13128}
13129_ACEOF
13130rm -f conftest.$ac_objext conftest$ac_exeext
13131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132  (eval $ac_link) 2>conftest.er1
13133  ac_status=$?
13134  grep -v '^ *+' conftest.er1 >conftest.err
13135  rm -f conftest.er1
13136  cat conftest.err >&5
13137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138  (exit $ac_status); } &&
13139	 { ac_try='test -z "$ac_c_werror_flag"
13140			 || test ! -s conftest.err'
13141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142  (eval $ac_try) 2>&5
13143  ac_status=$?
13144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145  (exit $ac_status); }; } &&
13146	 { ac_try='test -s conftest$ac_exeext'
13147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148  (eval $ac_try) 2>&5
13149  ac_status=$?
13150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151  (exit $ac_status); }; }; then
13152  ac_cv_lib_acl_acl_get_file=yes
13153else
13154  echo "$as_me: failed program was:" >&5
13155sed 's/^/| /' conftest.$ac_ext >&5
13156
13157ac_cv_lib_acl_acl_get_file=no
13158fi
13159rm -f conftest.err conftest.$ac_objext \
13160      conftest$ac_exeext conftest.$ac_ext
13161LIBS=$ac_check_lib_save_LIBS
13162fi
13163echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13164echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13165if test $ac_cv_lib_acl_acl_get_file = yes; then
13166  LIBS="$LIBS -lacl"
13167		  echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13168echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13169if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13170  echo $ECHO_N "(cached) $ECHO_C" >&6
13171else
13172  ac_check_lib_save_LIBS=$LIBS
13173LIBS="-lattr  $LIBS"
13174cat >conftest.$ac_ext <<_ACEOF
13175/* confdefs.h.  */
13176_ACEOF
13177cat confdefs.h >>conftest.$ac_ext
13178cat >>conftest.$ac_ext <<_ACEOF
13179/* end confdefs.h.  */
13180
13181/* Override any gcc2 internal prototype to avoid an error.  */
13182#ifdef __cplusplus
13183extern "C"
13184#endif
13185/* We use char because int might match the return type of a gcc2
13186   builtin and then its argument prototype would still apply.  */
13187char fgetxattr ();
13188int
13189main ()
13190{
13191fgetxattr ();
13192  ;
13193  return 0;
13194}
13195_ACEOF
13196rm -f conftest.$ac_objext conftest$ac_exeext
13197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198  (eval $ac_link) 2>conftest.er1
13199  ac_status=$?
13200  grep -v '^ *+' conftest.er1 >conftest.err
13201  rm -f conftest.er1
13202  cat conftest.err >&5
13203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204  (exit $ac_status); } &&
13205	 { ac_try='test -z "$ac_c_werror_flag"
13206			 || test ! -s conftest.err'
13207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208  (eval $ac_try) 2>&5
13209  ac_status=$?
13210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211  (exit $ac_status); }; } &&
13212	 { ac_try='test -s conftest$ac_exeext'
13213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214  (eval $ac_try) 2>&5
13215  ac_status=$?
13216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217  (exit $ac_status); }; }; then
13218  ac_cv_lib_attr_fgetxattr=yes
13219else
13220  echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
13223ac_cv_lib_attr_fgetxattr=no
13224fi
13225rm -f conftest.err conftest.$ac_objext \
13226      conftest$ac_exeext conftest.$ac_ext
13227LIBS=$ac_check_lib_save_LIBS
13228fi
13229echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13230echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13231if test $ac_cv_lib_attr_fgetxattr = yes; then
13232  LIBS="$LIBS -lattr"
13233fi
13234
13235fi
13236
13237fi
13238
13239
13240echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13241echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13242cat >conftest.$ac_ext <<_ACEOF
13243/* confdefs.h.  */
13244_ACEOF
13245cat confdefs.h >>conftest.$ac_ext
13246cat >>conftest.$ac_ext <<_ACEOF
13247/* end confdefs.h.  */
13248
13249#include <sys/types.h>
13250#ifdef HAVE_SYS_ACL_H
13251# include <sys/acl.h>
13252#endif
13253acl_t acl;
13254int
13255main ()
13256{
13257acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13258	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13259	acl_free(acl);
13260  ;
13261  return 0;
13262}
13263_ACEOF
13264rm -f conftest.$ac_objext conftest$ac_exeext
13265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13266  (eval $ac_link) 2>conftest.er1
13267  ac_status=$?
13268  grep -v '^ *+' conftest.er1 >conftest.err
13269  rm -f conftest.er1
13270  cat conftest.err >&5
13271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272  (exit $ac_status); } &&
13273	 { ac_try='test -z "$ac_c_werror_flag"
13274			 || test ! -s conftest.err'
13275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276  (eval $ac_try) 2>&5
13277  ac_status=$?
13278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279  (exit $ac_status); }; } &&
13280	 { ac_try='test -s conftest$ac_exeext'
13281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282  (eval $ac_try) 2>&5
13283  ac_status=$?
13284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285  (exit $ac_status); }; }; then
13286  echo "$as_me:$LINENO: result: yes" >&5
13287echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13288#define HAVE_POSIX_ACL 1
13289_ACEOF
13290
13291else
13292  echo "$as_me: failed program was:" >&5
13293sed 's/^/| /' conftest.$ac_ext >&5
13294
13295echo "$as_me:$LINENO: result: no" >&5
13296echo "${ECHO_T}no" >&6
13297fi
13298rm -f conftest.err conftest.$ac_objext \
13299      conftest$ac_exeext conftest.$ac_ext
13300
13301echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13302echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13303cat >conftest.$ac_ext <<_ACEOF
13304/* confdefs.h.  */
13305_ACEOF
13306cat confdefs.h >>conftest.$ac_ext
13307cat >>conftest.$ac_ext <<_ACEOF
13308/* end confdefs.h.  */
13309
13310#ifdef HAVE_SYS_ACL_H
13311# include <sys/acl.h>
13312#endif
13313int
13314main ()
13315{
13316acl("foo", GETACLCNT, 0, NULL);
13317
13318  ;
13319  return 0;
13320}
13321_ACEOF
13322rm -f conftest.$ac_objext conftest$ac_exeext
13323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324  (eval $ac_link) 2>conftest.er1
13325  ac_status=$?
13326  grep -v '^ *+' conftest.er1 >conftest.err
13327  rm -f conftest.er1
13328  cat conftest.err >&5
13329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330  (exit $ac_status); } &&
13331	 { ac_try='test -z "$ac_c_werror_flag"
13332			 || test ! -s conftest.err'
13333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334  (eval $ac_try) 2>&5
13335  ac_status=$?
13336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337  (exit $ac_status); }; } &&
13338	 { ac_try='test -s conftest$ac_exeext'
13339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340  (eval $ac_try) 2>&5
13341  ac_status=$?
13342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343  (exit $ac_status); }; }; then
13344  echo "$as_me:$LINENO: result: yes" >&5
13345echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13346#define HAVE_SOLARIS_ACL 1
13347_ACEOF
13348
13349else
13350  echo "$as_me: failed program was:" >&5
13351sed 's/^/| /' conftest.$ac_ext >&5
13352
13353echo "$as_me:$LINENO: result: no" >&5
13354echo "${ECHO_T}no" >&6
13355fi
13356rm -f conftest.err conftest.$ac_objext \
13357      conftest$ac_exeext conftest.$ac_ext
13358
13359echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13360echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13361cat >conftest.$ac_ext <<_ACEOF
13362/* confdefs.h.  */
13363_ACEOF
13364cat confdefs.h >>conftest.$ac_ext
13365cat >>conftest.$ac_ext <<_ACEOF
13366/* end confdefs.h.  */
13367
13368#ifdef HAVE_SYS_ACL_H
13369# include <sys/acl.h>
13370#endif
13371#ifdef HAVE_SYS_ACCESS_H
13372# include <sys/access.h>
13373#endif
13374#define _ALL_SOURCE
13375
13376#include <sys/stat.h>
13377
13378int aclsize;
13379struct acl *aclent;
13380int
13381main ()
13382{
13383aclsize = sizeof(struct acl);
13384	aclent = (void *)malloc(aclsize);
13385	statacl("foo", STX_NORMAL, aclent, aclsize);
13386
13387  ;
13388  return 0;
13389}
13390_ACEOF
13391rm -f conftest.$ac_objext conftest$ac_exeext
13392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13393  (eval $ac_link) 2>conftest.er1
13394  ac_status=$?
13395  grep -v '^ *+' conftest.er1 >conftest.err
13396  rm -f conftest.er1
13397  cat conftest.err >&5
13398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399  (exit $ac_status); } &&
13400	 { ac_try='test -z "$ac_c_werror_flag"
13401			 || test ! -s conftest.err'
13402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403  (eval $ac_try) 2>&5
13404  ac_status=$?
13405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406  (exit $ac_status); }; } &&
13407	 { ac_try='test -s conftest$ac_exeext'
13408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409  (eval $ac_try) 2>&5
13410  ac_status=$?
13411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412  (exit $ac_status); }; }; then
13413  echo "$as_me:$LINENO: result: yes" >&5
13414echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13415#define HAVE_AIX_ACL 1
13416_ACEOF
13417
13418else
13419  echo "$as_me: failed program was:" >&5
13420sed 's/^/| /' conftest.$ac_ext >&5
13421
13422echo "$as_me:$LINENO: result: no" >&5
13423echo "${ECHO_T}no" >&6
13424fi
13425rm -f conftest.err conftest.$ac_objext \
13426      conftest$ac_exeext conftest.$ac_ext
13427else
13428  echo "$as_me:$LINENO: result: yes" >&5
13429echo "${ECHO_T}yes" >&6
13430fi
13431
13432echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13433echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
13434# Check whether --enable-gpm or --disable-gpm was given.
13435if test "${enable_gpm+set}" = set; then
13436  enableval="$enable_gpm"
13437
13438else
13439  enable_gpm="yes"
13440fi;
13441
13442if test "$enable_gpm" = "yes"; then
13443  echo "$as_me:$LINENO: result: no" >&5
13444echo "${ECHO_T}no" >&6
13445    echo "$as_me:$LINENO: checking for gpm" >&5
13446echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13447if test "${vi_cv_have_gpm+set}" = set; then
13448  echo $ECHO_N "(cached) $ECHO_C" >&6
13449else
13450  olibs="$LIBS" ; LIBS="-lgpm"
13451	cat >conftest.$ac_ext <<_ACEOF
13452/* confdefs.h.  */
13453_ACEOF
13454cat confdefs.h >>conftest.$ac_ext
13455cat >>conftest.$ac_ext <<_ACEOF
13456/* end confdefs.h.  */
13457#include <gpm.h>
13458	    #include <linux/keyboard.h>
13459int
13460main ()
13461{
13462Gpm_GetLibVersion(NULL);
13463  ;
13464  return 0;
13465}
13466_ACEOF
13467rm -f conftest.$ac_objext conftest$ac_exeext
13468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13469  (eval $ac_link) 2>conftest.er1
13470  ac_status=$?
13471  grep -v '^ *+' conftest.er1 >conftest.err
13472  rm -f conftest.er1
13473  cat conftest.err >&5
13474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475  (exit $ac_status); } &&
13476	 { ac_try='test -z "$ac_c_werror_flag"
13477			 || test ! -s conftest.err'
13478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479  (eval $ac_try) 2>&5
13480  ac_status=$?
13481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482  (exit $ac_status); }; } &&
13483	 { ac_try='test -s conftest$ac_exeext'
13484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485  (eval $ac_try) 2>&5
13486  ac_status=$?
13487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488  (exit $ac_status); }; }; then
13489  	    	    vi_cv_have_gpm=yes
13490else
13491  echo "$as_me: failed program was:" >&5
13492sed 's/^/| /' conftest.$ac_ext >&5
13493
13494vi_cv_have_gpm=no
13495fi
13496rm -f conftest.err conftest.$ac_objext \
13497      conftest$ac_exeext conftest.$ac_ext
13498	LIBS="$olibs"
13499
13500fi
13501echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13502echo "${ECHO_T}$vi_cv_have_gpm" >&6
13503  if test $vi_cv_have_gpm = yes; then
13504    LIBS="$LIBS -lgpm"
13505    cat >>confdefs.h <<\_ACEOF
13506#define HAVE_GPM 1
13507_ACEOF
13508
13509  fi
13510else
13511  echo "$as_me:$LINENO: result: yes" >&5
13512echo "${ECHO_T}yes" >&6
13513fi
13514
13515echo "$as_me:$LINENO: checking for rename" >&5
13516echo $ECHO_N "checking for rename... $ECHO_C" >&6
13517cat >conftest.$ac_ext <<_ACEOF
13518/* confdefs.h.  */
13519_ACEOF
13520cat confdefs.h >>conftest.$ac_ext
13521cat >>conftest.$ac_ext <<_ACEOF
13522/* end confdefs.h.  */
13523#include <stdio.h>
13524int
13525main ()
13526{
13527rename("this", "that")
13528  ;
13529  return 0;
13530}
13531_ACEOF
13532rm -f conftest.$ac_objext conftest$ac_exeext
13533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13534  (eval $ac_link) 2>conftest.er1
13535  ac_status=$?
13536  grep -v '^ *+' conftest.er1 >conftest.err
13537  rm -f conftest.er1
13538  cat conftest.err >&5
13539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540  (exit $ac_status); } &&
13541	 { ac_try='test -z "$ac_c_werror_flag"
13542			 || test ! -s conftest.err'
13543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544  (eval $ac_try) 2>&5
13545  ac_status=$?
13546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547  (exit $ac_status); }; } &&
13548	 { ac_try='test -s conftest$ac_exeext'
13549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550  (eval $ac_try) 2>&5
13551  ac_status=$?
13552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553  (exit $ac_status); }; }; then
13554  echo "$as_me:$LINENO: result: yes" >&5
13555echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13556#define HAVE_RENAME 1
13557_ACEOF
13558
13559else
13560  echo "$as_me: failed program was:" >&5
13561sed 's/^/| /' conftest.$ac_ext >&5
13562
13563echo "$as_me:$LINENO: result: no" >&5
13564echo "${ECHO_T}no" >&6
13565fi
13566rm -f conftest.err conftest.$ac_objext \
13567      conftest$ac_exeext conftest.$ac_ext
13568
13569echo "$as_me:$LINENO: checking for sysctl" >&5
13570echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13571cat >conftest.$ac_ext <<_ACEOF
13572/* confdefs.h.  */
13573_ACEOF
13574cat confdefs.h >>conftest.$ac_ext
13575cat >>conftest.$ac_ext <<_ACEOF
13576/* end confdefs.h.  */
13577#include <sys/types.h>
13578#include <sys/sysctl.h>
13579int
13580main ()
13581{
13582	int mib[2], r;
13583	size_t len;
13584
13585	mib[0] = CTL_HW;
13586	mib[1] = HW_USERMEM;
13587	len = sizeof(r);
13588	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13589
13590  ;
13591  return 0;
13592}
13593_ACEOF
13594rm -f conftest.$ac_objext
13595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13596  (eval $ac_compile) 2>conftest.er1
13597  ac_status=$?
13598  grep -v '^ *+' conftest.er1 >conftest.err
13599  rm -f conftest.er1
13600  cat conftest.err >&5
13601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602  (exit $ac_status); } &&
13603	 { ac_try='test -z "$ac_c_werror_flag"
13604			 || test ! -s conftest.err'
13605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606  (eval $ac_try) 2>&5
13607  ac_status=$?
13608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609  (exit $ac_status); }; } &&
13610	 { ac_try='test -s conftest.$ac_objext'
13611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612  (eval $ac_try) 2>&5
13613  ac_status=$?
13614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615  (exit $ac_status); }; }; then
13616  echo "$as_me:$LINENO: result: yes" >&5
13617echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13618#define HAVE_SYSCTL 1
13619_ACEOF
13620
13621else
13622  echo "$as_me: failed program was:" >&5
13623sed 's/^/| /' conftest.$ac_ext >&5
13624
13625echo "$as_me:$LINENO: result: not usable" >&5
13626echo "${ECHO_T}not usable" >&6
13627fi
13628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13629
13630echo "$as_me:$LINENO: checking for sysinfo" >&5
13631echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13632cat >conftest.$ac_ext <<_ACEOF
13633/* confdefs.h.  */
13634_ACEOF
13635cat confdefs.h >>conftest.$ac_ext
13636cat >>conftest.$ac_ext <<_ACEOF
13637/* end confdefs.h.  */
13638#include <sys/types.h>
13639#include <sys/sysinfo.h>
13640int
13641main ()
13642{
13643	struct sysinfo sinfo;
13644	int t;
13645
13646	(void)sysinfo(&sinfo);
13647	t = sinfo.totalram;
13648
13649  ;
13650  return 0;
13651}
13652_ACEOF
13653rm -f conftest.$ac_objext
13654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655  (eval $ac_compile) 2>conftest.er1
13656  ac_status=$?
13657  grep -v '^ *+' conftest.er1 >conftest.err
13658  rm -f conftest.er1
13659  cat conftest.err >&5
13660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661  (exit $ac_status); } &&
13662	 { ac_try='test -z "$ac_c_werror_flag"
13663			 || test ! -s conftest.err'
13664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665  (eval $ac_try) 2>&5
13666  ac_status=$?
13667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668  (exit $ac_status); }; } &&
13669	 { ac_try='test -s conftest.$ac_objext'
13670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671  (eval $ac_try) 2>&5
13672  ac_status=$?
13673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674  (exit $ac_status); }; }; then
13675  echo "$as_me:$LINENO: result: yes" >&5
13676echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13677#define HAVE_SYSINFO 1
13678_ACEOF
13679
13680else
13681  echo "$as_me: failed program was:" >&5
13682sed 's/^/| /' conftest.$ac_ext >&5
13683
13684echo "$as_me:$LINENO: result: not usable" >&5
13685echo "${ECHO_T}not usable" >&6
13686fi
13687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13688
13689echo "$as_me:$LINENO: checking for sysconf" >&5
13690echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13691cat >conftest.$ac_ext <<_ACEOF
13692/* confdefs.h.  */
13693_ACEOF
13694cat confdefs.h >>conftest.$ac_ext
13695cat >>conftest.$ac_ext <<_ACEOF
13696/* end confdefs.h.  */
13697#include <unistd.h>
13698int
13699main ()
13700{
13701	(void)sysconf(_SC_PAGESIZE);
13702	(void)sysconf(_SC_PHYS_PAGES);
13703
13704  ;
13705  return 0;
13706}
13707_ACEOF
13708rm -f conftest.$ac_objext
13709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710  (eval $ac_compile) 2>conftest.er1
13711  ac_status=$?
13712  grep -v '^ *+' conftest.er1 >conftest.err
13713  rm -f conftest.er1
13714  cat conftest.err >&5
13715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716  (exit $ac_status); } &&
13717	 { ac_try='test -z "$ac_c_werror_flag"
13718			 || test ! -s conftest.err'
13719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720  (eval $ac_try) 2>&5
13721  ac_status=$?
13722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723  (exit $ac_status); }; } &&
13724	 { ac_try='test -s conftest.$ac_objext'
13725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726  (eval $ac_try) 2>&5
13727  ac_status=$?
13728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729  (exit $ac_status); }; }; then
13730  echo "$as_me:$LINENO: result: yes" >&5
13731echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13732#define HAVE_SYSCONF 1
13733_ACEOF
13734
13735else
13736  echo "$as_me: failed program was:" >&5
13737sed 's/^/| /' conftest.$ac_ext >&5
13738
13739echo "$as_me:$LINENO: result: not usable" >&5
13740echo "${ECHO_T}not usable" >&6
13741fi
13742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13743
13744
13745echo "$as_me:$LINENO: checking size of int" >&5
13746echo $ECHO_N "checking size of int... $ECHO_C" >&6
13747if test "${ac_cv_sizeof_int+set}" = set; then
13748  echo $ECHO_N "(cached) $ECHO_C" >&6
13749else
13750  if test "$cross_compiling" = yes; then
13751  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13752echo "$as_me: error: failed to compile test program" >&2;}
13753   { (exit 1); exit 1; }; }
13754else
13755  cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h.  */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h.  */
13761#include <stdio.h>
13762		main()
13763		{
13764		  FILE *f=fopen("conftestval", "w");
13765		  if (!f) exit(1);
13766		  fprintf(f, "%d\n", (int)sizeof(int));
13767		  exit(0);
13768		}
13769_ACEOF
13770rm -f conftest$ac_exeext
13771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13772  (eval $ac_link) 2>&5
13773  ac_status=$?
13774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777  (eval $ac_try) 2>&5
13778  ac_status=$?
13779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780  (exit $ac_status); }; }; then
13781  ac_cv_sizeof_int=`cat conftestval`
13782else
13783  echo "$as_me: program exited with status $ac_status" >&5
13784echo "$as_me: failed program was:" >&5
13785sed 's/^/| /' conftest.$ac_ext >&5
13786
13787( exit $ac_status )
13788ac_cv_sizeof_int=0
13789fi
13790rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13791fi
13792fi
13793
13794echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13795echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13796cat >>confdefs.h <<_ACEOF
13797#define SIZEOF_INT $ac_cv_sizeof_int
13798_ACEOF
13799
13800
13801echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13802echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
13803bcopy_test_prog='
13804main() {
13805  char buf[10];
13806  strcpy(buf, "abcdefghi");
13807  mch_memmove(buf, buf + 2, 3);
13808  if (strncmp(buf, "ababcf", 6))
13809    exit(1);
13810  strcpy(buf, "abcdefghi");
13811  mch_memmove(buf + 2, buf, 3);
13812  if (strncmp(buf, "cdedef", 6))
13813    exit(1);
13814  exit(0); /* libc version works properly.  */
13815}'
13816
13817
13818if test "$cross_compiling" = yes; then
13819  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13820echo "$as_me: error: failed to compile test program" >&2;}
13821   { (exit 1); exit 1; }; }
13822else
13823  cat >conftest.$ac_ext <<_ACEOF
13824/* confdefs.h.  */
13825_ACEOF
13826cat confdefs.h >>conftest.$ac_ext
13827cat >>conftest.$ac_ext <<_ACEOF
13828/* end confdefs.h.  */
13829#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
13830_ACEOF
13831rm -f conftest$ac_exeext
13832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13833  (eval $ac_link) 2>&5
13834  ac_status=$?
13835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838  (eval $ac_try) 2>&5
13839  ac_status=$?
13840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841  (exit $ac_status); }; }; then
13842  cat >>confdefs.h <<\_ACEOF
13843#define USEMEMMOVE 1
13844_ACEOF
13845 echo "$as_me:$LINENO: result: memmove does" >&5
13846echo "${ECHO_T}memmove does" >&6
13847else
13848  echo "$as_me: program exited with status $ac_status" >&5
13849echo "$as_me: failed program was:" >&5
13850sed 's/^/| /' conftest.$ac_ext >&5
13851
13852( exit $ac_status )
13853if test "$cross_compiling" = yes; then
13854  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13855echo "$as_me: error: failed to compile test program" >&2;}
13856   { (exit 1); exit 1; }; }
13857else
13858  cat >conftest.$ac_ext <<_ACEOF
13859/* confdefs.h.  */
13860_ACEOF
13861cat confdefs.h >>conftest.$ac_ext
13862cat >>conftest.$ac_ext <<_ACEOF
13863/* end confdefs.h.  */
13864#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
13865_ACEOF
13866rm -f conftest$ac_exeext
13867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13868  (eval $ac_link) 2>&5
13869  ac_status=$?
13870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873  (eval $ac_try) 2>&5
13874  ac_status=$?
13875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876  (exit $ac_status); }; }; then
13877  cat >>confdefs.h <<\_ACEOF
13878#define USEBCOPY 1
13879_ACEOF
13880 echo "$as_me:$LINENO: result: bcopy does" >&5
13881echo "${ECHO_T}bcopy does" >&6
13882else
13883  echo "$as_me: program exited with status $ac_status" >&5
13884echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
13887( exit $ac_status )
13888if test "$cross_compiling" = yes; then
13889  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13890echo "$as_me: error: failed to compile test program" >&2;}
13891   { (exit 1); exit 1; }; }
13892else
13893  cat >conftest.$ac_ext <<_ACEOF
13894/* confdefs.h.  */
13895_ACEOF
13896cat confdefs.h >>conftest.$ac_ext
13897cat >>conftest.$ac_ext <<_ACEOF
13898/* end confdefs.h.  */
13899#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
13900_ACEOF
13901rm -f conftest$ac_exeext
13902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13903  (eval $ac_link) 2>&5
13904  ac_status=$?
13905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908  (eval $ac_try) 2>&5
13909  ac_status=$?
13910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911  (exit $ac_status); }; }; then
13912  cat >>confdefs.h <<\_ACEOF
13913#define USEMEMCPY 1
13914_ACEOF
13915 echo "$as_me:$LINENO: result: memcpy does" >&5
13916echo "${ECHO_T}memcpy does" >&6
13917else
13918  echo "$as_me: program exited with status $ac_status" >&5
13919echo "$as_me: failed program was:" >&5
13920sed 's/^/| /' conftest.$ac_ext >&5
13921
13922( exit $ac_status )
13923echo "$as_me:$LINENO: result: no" >&5
13924echo "${ECHO_T}no" >&6
13925fi
13926rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13927fi
13928fi
13929rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13930fi
13931fi
13932rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13933fi
13934
13935
13936if test "$enable_multibyte" = "yes"; then
13937  cflags_save=$CFLAGS
13938  ldflags_save=$LDFLAGS
13939  if test -n "$x_includes" ; then
13940    CFLAGS="$CFLAGS -I$x_includes"
13941    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
13942    echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
13943echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
13944    cat >conftest.$ac_ext <<_ACEOF
13945/* confdefs.h.  */
13946_ACEOF
13947cat confdefs.h >>conftest.$ac_ext
13948cat >>conftest.$ac_ext <<_ACEOF
13949/* end confdefs.h.  */
13950#include <X11/Xlocale.h>
13951int
13952main ()
13953{
13954
13955  ;
13956  return 0;
13957}
13958_ACEOF
13959rm -f conftest.$ac_objext
13960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961  (eval $ac_compile) 2>conftest.er1
13962  ac_status=$?
13963  grep -v '^ *+' conftest.er1 >conftest.err
13964  rm -f conftest.er1
13965  cat conftest.err >&5
13966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967  (exit $ac_status); } &&
13968	 { ac_try='test -z "$ac_c_werror_flag"
13969			 || test ! -s conftest.err'
13970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971  (eval $ac_try) 2>&5
13972  ac_status=$?
13973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974  (exit $ac_status); }; } &&
13975	 { ac_try='test -s conftest.$ac_objext'
13976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977  (eval $ac_try) 2>&5
13978  ac_status=$?
13979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980  (exit $ac_status); }; }; then
13981  cat >conftest.$ac_ext <<_ACEOF
13982/* confdefs.h.  */
13983_ACEOF
13984cat confdefs.h >>conftest.$ac_ext
13985cat >>conftest.$ac_ext <<_ACEOF
13986/* end confdefs.h.  */
13987
13988/* Override any gcc2 internal prototype to avoid an error.  */
13989#ifdef __cplusplus
13990extern "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.  */
13994char _Xsetlocale ();
13995int
13996main ()
13997{
13998_Xsetlocale ();
13999  ;
14000  return 0;
14001}
14002_ACEOF
14003rm -f conftest.$ac_objext conftest$ac_exeext
14004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14005  (eval $ac_link) 2>conftest.er1
14006  ac_status=$?
14007  grep -v '^ *+' conftest.er1 >conftest.err
14008  rm -f conftest.er1
14009  cat conftest.err >&5
14010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011  (exit $ac_status); } &&
14012	 { ac_try='test -z "$ac_c_werror_flag"
14013			 || test ! -s conftest.err'
14014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015  (eval $ac_try) 2>&5
14016  ac_status=$?
14017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018  (exit $ac_status); }; } &&
14019	 { ac_try='test -s conftest$ac_exeext'
14020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021  (eval $ac_try) 2>&5
14022  ac_status=$?
14023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024  (exit $ac_status); }; }; then
14025  echo "$as_me:$LINENO: result: yes" >&5
14026echo "${ECHO_T}yes" >&6
14027		cat >>confdefs.h <<\_ACEOF
14028#define X_LOCALE 1
14029_ACEOF
14030
14031else
14032  echo "$as_me: failed program was:" >&5
14033sed 's/^/| /' conftest.$ac_ext >&5
14034
14035echo "$as_me:$LINENO: result: no" >&5
14036echo "${ECHO_T}no" >&6
14037fi
14038rm -f conftest.err conftest.$ac_objext \
14039      conftest$ac_exeext conftest.$ac_ext
14040else
14041  echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
14044echo "$as_me:$LINENO: result: no" >&5
14045echo "${ECHO_T}no" >&6
14046fi
14047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14048  fi
14049  CFLAGS=$cflags_save
14050  LDFLAGS=$ldflags_save
14051fi
14052
14053echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14054echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14055if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14056  echo $ECHO_N "(cached) $ECHO_C" >&6
14057else
14058  ac_check_lib_save_LIBS=$LIBS
14059LIBS="-lxpg4  $LIBS"
14060cat >conftest.$ac_ext <<_ACEOF
14061/* confdefs.h.  */
14062_ACEOF
14063cat confdefs.h >>conftest.$ac_ext
14064cat >>conftest.$ac_ext <<_ACEOF
14065/* end confdefs.h.  */
14066
14067/* Override any gcc2 internal prototype to avoid an error.  */
14068#ifdef __cplusplus
14069extern "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.  */
14073char _xpg4_setrunelocale ();
14074int
14075main ()
14076{
14077_xpg4_setrunelocale ();
14078  ;
14079  return 0;
14080}
14081_ACEOF
14082rm -f conftest.$ac_objext conftest$ac_exeext
14083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14084  (eval $ac_link) 2>conftest.er1
14085  ac_status=$?
14086  grep -v '^ *+' conftest.er1 >conftest.err
14087  rm -f conftest.er1
14088  cat conftest.err >&5
14089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090  (exit $ac_status); } &&
14091	 { ac_try='test -z "$ac_c_werror_flag"
14092			 || test ! -s conftest.err'
14093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094  (eval $ac_try) 2>&5
14095  ac_status=$?
14096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097  (exit $ac_status); }; } &&
14098	 { ac_try='test -s conftest$ac_exeext'
14099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100  (eval $ac_try) 2>&5
14101  ac_status=$?
14102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103  (exit $ac_status); }; }; then
14104  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14105else
14106  echo "$as_me: failed program was:" >&5
14107sed 's/^/| /' conftest.$ac_ext >&5
14108
14109ac_cv_lib_xpg4__xpg4_setrunelocale=no
14110fi
14111rm -f conftest.err conftest.$ac_objext \
14112      conftest$ac_exeext conftest.$ac_ext
14113LIBS=$ac_check_lib_save_LIBS
14114fi
14115echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14116echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14117if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
14118  LIBS="$LIBS -lxpg4"
14119fi
14120
14121
14122echo "$as_me:$LINENO: checking how to create tags" >&5
14123echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
14124test -f tags && mv tags tags.save
14125if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14126  TAGPRG="ctags -I INIT+"
14127else
14128  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14129  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14130  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14131  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14132  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14133  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14134  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14135fi
14136test -f tags.save && mv tags.save tags
14137echo "$as_me:$LINENO: result: $TAGPRG" >&5
14138echo "${ECHO_T}$TAGPRG" >&6
14139
14140echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14141echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
14142MANDEF="man"
14143(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14144echo "$as_me:$LINENO: result: $MANDEF" >&5
14145echo "${ECHO_T}$MANDEF" >&6
14146if test "$MANDEF" = "man -s"; then
14147  cat >>confdefs.h <<\_ACEOF
14148#define USEMAN_S 1
14149_ACEOF
14150
14151fi
14152
14153echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14154echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
14155# Check whether --enable-nls or --disable-nls was given.
14156if test "${enable_nls+set}" = set; then
14157  enableval="$enable_nls"
14158
14159else
14160  enable_nls="yes"
14161fi;
14162
14163if test "$enable_nls" = "yes"; then
14164  echo "$as_me:$LINENO: result: no" >&5
14165echo "${ECHO_T}no" >&6
14166
14167  INSTALL_LANGS=install-languages
14168
14169  INSTALL_TOOL_LANGS=install-tool-languages
14170
14171
14172  # Extract the first word of "msgfmt", so it can be a program name with args.
14173set dummy msgfmt; ac_word=$2
14174echo "$as_me:$LINENO: checking for $ac_word" >&5
14175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14176if test "${ac_cv_prog_MSGFMT+set}" = set; then
14177  echo $ECHO_N "(cached) $ECHO_C" >&6
14178else
14179  if test -n "$MSGFMT"; then
14180  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14181else
14182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183for as_dir in $PATH
14184do
14185  IFS=$as_save_IFS
14186  test -z "$as_dir" && as_dir=.
14187  for ac_exec_ext in '' $ac_executable_extensions; do
14188  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14189    ac_cv_prog_MSGFMT="msgfmt"
14190    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14191    break 2
14192  fi
14193done
14194done
14195
14196fi
14197fi
14198MSGFMT=$ac_cv_prog_MSGFMT
14199if test -n "$MSGFMT"; then
14200  echo "$as_me:$LINENO: result: $MSGFMT" >&5
14201echo "${ECHO_T}$MSGFMT" >&6
14202else
14203  echo "$as_me:$LINENO: result: no" >&5
14204echo "${ECHO_T}no" >&6
14205fi
14206
14207  echo "$as_me:$LINENO: checking for NLS" >&5
14208echo $ECHO_N "checking for NLS... $ECHO_C" >&6
14209  if test -f po/Makefile; then
14210    have_gettext="no"
14211    if test -n "$MSGFMT"; then
14212      cat >conftest.$ac_ext <<_ACEOF
14213/* confdefs.h.  */
14214_ACEOF
14215cat confdefs.h >>conftest.$ac_ext
14216cat >>conftest.$ac_ext <<_ACEOF
14217/* end confdefs.h.  */
14218#include <libintl.h>
14219int
14220main ()
14221{
14222gettext("Test");
14223  ;
14224  return 0;
14225}
14226_ACEOF
14227rm -f conftest.$ac_objext conftest$ac_exeext
14228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14229  (eval $ac_link) 2>conftest.er1
14230  ac_status=$?
14231  grep -v '^ *+' conftest.er1 >conftest.err
14232  rm -f conftest.er1
14233  cat conftest.err >&5
14234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235  (exit $ac_status); } &&
14236	 { ac_try='test -z "$ac_c_werror_flag"
14237			 || test ! -s conftest.err'
14238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239  (eval $ac_try) 2>&5
14240  ac_status=$?
14241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242  (exit $ac_status); }; } &&
14243	 { ac_try='test -s conftest$ac_exeext'
14244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245  (eval $ac_try) 2>&5
14246  ac_status=$?
14247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248  (exit $ac_status); }; }; then
14249  echo "$as_me:$LINENO: result: gettext() works" >&5
14250echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
14251else
14252  echo "$as_me: failed program was:" >&5
14253sed 's/^/| /' conftest.$ac_ext >&5
14254
14255olibs=$LIBS
14256	  LIBS="$LIBS -lintl"
14257	  cat >conftest.$ac_ext <<_ACEOF
14258/* confdefs.h.  */
14259_ACEOF
14260cat confdefs.h >>conftest.$ac_ext
14261cat >>conftest.$ac_ext <<_ACEOF
14262/* end confdefs.h.  */
14263#include <libintl.h>
14264int
14265main ()
14266{
14267gettext("Test");
14268  ;
14269  return 0;
14270}
14271_ACEOF
14272rm -f conftest.$ac_objext conftest$ac_exeext
14273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14274  (eval $ac_link) 2>conftest.er1
14275  ac_status=$?
14276  grep -v '^ *+' conftest.er1 >conftest.err
14277  rm -f conftest.er1
14278  cat conftest.err >&5
14279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280  (exit $ac_status); } &&
14281	 { ac_try='test -z "$ac_c_werror_flag"
14282			 || test ! -s conftest.err'
14283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284  (eval $ac_try) 2>&5
14285  ac_status=$?
14286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287  (exit $ac_status); }; } &&
14288	 { ac_try='test -s conftest$ac_exeext'
14289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290  (eval $ac_try) 2>&5
14291  ac_status=$?
14292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293  (exit $ac_status); }; }; then
14294  echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14295echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
14296else
14297  echo "$as_me: failed program was:" >&5
14298sed 's/^/| /' conftest.$ac_ext >&5
14299
14300echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14301echo "${ECHO_T}gettext() doesn't work" >&6;
14302	      LIBS=$olibs
14303fi
14304rm -f conftest.err conftest.$ac_objext \
14305      conftest$ac_exeext conftest.$ac_ext
14306fi
14307rm -f conftest.err conftest.$ac_objext \
14308      conftest$ac_exeext conftest.$ac_ext
14309    else
14310      echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14311echo "${ECHO_T}msgfmt not found - disabled" >&6;
14312    fi
14313    if test $have_gettext = "yes"; then
14314      cat >>confdefs.h <<\_ACEOF
14315#define HAVE_GETTEXT 1
14316_ACEOF
14317
14318      MAKEMO=yes
14319
14320
14321for ac_func in bind_textdomain_codeset
14322do
14323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14324echo "$as_me:$LINENO: checking for $ac_func" >&5
14325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14326if eval "test \"\${$as_ac_var+set}\" = set"; then
14327  echo $ECHO_N "(cached) $ECHO_C" >&6
14328else
14329  cat >conftest.$ac_ext <<_ACEOF
14330/* confdefs.h.  */
14331_ACEOF
14332cat confdefs.h >>conftest.$ac_ext
14333cat >>conftest.$ac_ext <<_ACEOF
14334/* end confdefs.h.  */
14335/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14336   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14337#define $ac_func innocuous_$ac_func
14338
14339/* System header to define __stub macros and hopefully few prototypes,
14340    which can conflict with char $ac_func (); below.
14341    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14342    <limits.h> exists even on freestanding compilers.  */
14343
14344#ifdef __STDC__
14345# include <limits.h>
14346#else
14347# include <assert.h>
14348#endif
14349
14350#undef $ac_func
14351
14352/* Override any gcc2 internal prototype to avoid an error.  */
14353#ifdef __cplusplus
14354extern "C"
14355{
14356#endif
14357/* We use char because int might match the return type of a gcc2
14358   builtin and then its argument prototype would still apply.  */
14359char $ac_func ();
14360/* The GNU C library defines this for functions which it implements
14361    to always fail with ENOSYS.  Some functions are actually named
14362    something starting with __ and the normal name is an alias.  */
14363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14364choke me
14365#else
14366char (*f) () = $ac_func;
14367#endif
14368#ifdef __cplusplus
14369}
14370#endif
14371
14372int
14373main ()
14374{
14375return f != $ac_func;
14376  ;
14377  return 0;
14378}
14379_ACEOF
14380rm -f conftest.$ac_objext conftest$ac_exeext
14381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14382  (eval $ac_link) 2>conftest.er1
14383  ac_status=$?
14384  grep -v '^ *+' conftest.er1 >conftest.err
14385  rm -f conftest.er1
14386  cat conftest.err >&5
14387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388  (exit $ac_status); } &&
14389	 { ac_try='test -z "$ac_c_werror_flag"
14390			 || test ! -s conftest.err'
14391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392  (eval $ac_try) 2>&5
14393  ac_status=$?
14394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395  (exit $ac_status); }; } &&
14396	 { ac_try='test -s conftest$ac_exeext'
14397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398  (eval $ac_try) 2>&5
14399  ac_status=$?
14400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401  (exit $ac_status); }; }; then
14402  eval "$as_ac_var=yes"
14403else
14404  echo "$as_me: failed program was:" >&5
14405sed 's/^/| /' conftest.$ac_ext >&5
14406
14407eval "$as_ac_var=no"
14408fi
14409rm -f conftest.err conftest.$ac_objext \
14410      conftest$ac_exeext conftest.$ac_ext
14411fi
14412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14414if test `eval echo '${'$as_ac_var'}'` = yes; then
14415  cat >>confdefs.h <<_ACEOF
14416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14417_ACEOF
14418
14419fi
14420done
14421
14422            echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14423echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14424      cat >conftest.$ac_ext <<_ACEOF
14425/* confdefs.h.  */
14426_ACEOF
14427cat confdefs.h >>conftest.$ac_ext
14428cat >>conftest.$ac_ext <<_ACEOF
14429/* end confdefs.h.  */
14430#include <libintl.h>
14431		extern int _nl_msg_cat_cntr;
14432int
14433main ()
14434{
14435++_nl_msg_cat_cntr;
14436  ;
14437  return 0;
14438}
14439_ACEOF
14440rm -f conftest.$ac_objext conftest$ac_exeext
14441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14442  (eval $ac_link) 2>conftest.er1
14443  ac_status=$?
14444  grep -v '^ *+' conftest.er1 >conftest.err
14445  rm -f conftest.er1
14446  cat conftest.err >&5
14447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448  (exit $ac_status); } &&
14449	 { ac_try='test -z "$ac_c_werror_flag"
14450			 || test ! -s conftest.err'
14451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452  (eval $ac_try) 2>&5
14453  ac_status=$?
14454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455  (exit $ac_status); }; } &&
14456	 { ac_try='test -s conftest$ac_exeext'
14457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458  (eval $ac_try) 2>&5
14459  ac_status=$?
14460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461  (exit $ac_status); }; }; then
14462  echo "$as_me:$LINENO: result: yes" >&5
14463echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
14464#define HAVE_NL_MSG_CAT_CNTR 1
14465_ACEOF
14466
14467else
14468  echo "$as_me: failed program was:" >&5
14469sed 's/^/| /' conftest.$ac_ext >&5
14470
14471echo "$as_me:$LINENO: result: no" >&5
14472echo "${ECHO_T}no" >&6
14473fi
14474rm -f conftest.err conftest.$ac_objext \
14475      conftest$ac_exeext conftest.$ac_ext
14476    fi
14477  else
14478    echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14479echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
14480  fi
14481else
14482  echo "$as_me:$LINENO: result: yes" >&5
14483echo "${ECHO_T}yes" >&6
14484fi
14485
14486if test "${ac_cv_header_dlfcn_h+set}" = set; then
14487  echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14488echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14489if test "${ac_cv_header_dlfcn_h+set}" = set; then
14490  echo $ECHO_N "(cached) $ECHO_C" >&6
14491fi
14492echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14493echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14494else
14495  # Is the header compilable?
14496echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14497echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14498cat >conftest.$ac_ext <<_ACEOF
14499/* confdefs.h.  */
14500_ACEOF
14501cat confdefs.h >>conftest.$ac_ext
14502cat >>conftest.$ac_ext <<_ACEOF
14503/* end confdefs.h.  */
14504$ac_includes_default
14505#include <dlfcn.h>
14506_ACEOF
14507rm -f conftest.$ac_objext
14508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14509  (eval $ac_compile) 2>conftest.er1
14510  ac_status=$?
14511  grep -v '^ *+' conftest.er1 >conftest.err
14512  rm -f conftest.er1
14513  cat conftest.err >&5
14514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515  (exit $ac_status); } &&
14516	 { ac_try='test -z "$ac_c_werror_flag"
14517			 || test ! -s conftest.err'
14518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519  (eval $ac_try) 2>&5
14520  ac_status=$?
14521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522  (exit $ac_status); }; } &&
14523	 { ac_try='test -s conftest.$ac_objext'
14524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525  (eval $ac_try) 2>&5
14526  ac_status=$?
14527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528  (exit $ac_status); }; }; then
14529  ac_header_compiler=yes
14530else
14531  echo "$as_me: failed program was:" >&5
14532sed 's/^/| /' conftest.$ac_ext >&5
14533
14534ac_header_compiler=no
14535fi
14536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14538echo "${ECHO_T}$ac_header_compiler" >&6
14539
14540# Is the header present?
14541echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14542echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14543cat >conftest.$ac_ext <<_ACEOF
14544/* confdefs.h.  */
14545_ACEOF
14546cat confdefs.h >>conftest.$ac_ext
14547cat >>conftest.$ac_ext <<_ACEOF
14548/* end confdefs.h.  */
14549#include <dlfcn.h>
14550_ACEOF
14551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14552  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14553  ac_status=$?
14554  grep -v '^ *+' conftest.er1 >conftest.err
14555  rm -f conftest.er1
14556  cat conftest.err >&5
14557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558  (exit $ac_status); } >/dev/null; then
14559  if test -s conftest.err; then
14560    ac_cpp_err=$ac_c_preproc_warn_flag
14561    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14562  else
14563    ac_cpp_err=
14564  fi
14565else
14566  ac_cpp_err=yes
14567fi
14568if test -z "$ac_cpp_err"; then
14569  ac_header_preproc=yes
14570else
14571  echo "$as_me: failed program was:" >&5
14572sed 's/^/| /' conftest.$ac_ext >&5
14573
14574  ac_header_preproc=no
14575fi
14576rm -f conftest.err conftest.$ac_ext
14577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14578echo "${ECHO_T}$ac_header_preproc" >&6
14579
14580# So?  What about this header?
14581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14582  yes:no: )
14583    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14584echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14585    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14586echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14587    ac_header_preproc=yes
14588    ;;
14589  no:yes:* )
14590    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14591echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14592    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
14593echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
14594    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14595echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14596    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
14597echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14598    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14599echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14600    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14601echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14602    (
14603      cat <<\_ASBOX
14604## ------------------------------------------ ##
14605## Report this to the AC_PACKAGE_NAME lists.  ##
14606## ------------------------------------------ ##
14607_ASBOX
14608    ) |
14609      sed "s/^/$as_me: WARNING:     /" >&2
14610    ;;
14611esac
14612echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14613echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14614if test "${ac_cv_header_dlfcn_h+set}" = set; then
14615  echo $ECHO_N "(cached) $ECHO_C" >&6
14616else
14617  ac_cv_header_dlfcn_h=$ac_header_preproc
14618fi
14619echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14620echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14621
14622fi
14623if test $ac_cv_header_dlfcn_h = yes; then
14624  DLL=dlfcn.h
14625else
14626  if test "${ac_cv_header_dl_h+set}" = set; then
14627  echo "$as_me:$LINENO: checking for dl.h" >&5
14628echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14629if test "${ac_cv_header_dl_h+set}" = set; then
14630  echo $ECHO_N "(cached) $ECHO_C" >&6
14631fi
14632echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14633echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14634else
14635  # Is the header compilable?
14636echo "$as_me:$LINENO: checking dl.h usability" >&5
14637echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14638cat >conftest.$ac_ext <<_ACEOF
14639/* confdefs.h.  */
14640_ACEOF
14641cat confdefs.h >>conftest.$ac_ext
14642cat >>conftest.$ac_ext <<_ACEOF
14643/* end confdefs.h.  */
14644$ac_includes_default
14645#include <dl.h>
14646_ACEOF
14647rm -f conftest.$ac_objext
14648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14649  (eval $ac_compile) 2>conftest.er1
14650  ac_status=$?
14651  grep -v '^ *+' conftest.er1 >conftest.err
14652  rm -f conftest.er1
14653  cat conftest.err >&5
14654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655  (exit $ac_status); } &&
14656	 { ac_try='test -z "$ac_c_werror_flag"
14657			 || test ! -s conftest.err'
14658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659  (eval $ac_try) 2>&5
14660  ac_status=$?
14661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662  (exit $ac_status); }; } &&
14663	 { ac_try='test -s conftest.$ac_objext'
14664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665  (eval $ac_try) 2>&5
14666  ac_status=$?
14667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668  (exit $ac_status); }; }; then
14669  ac_header_compiler=yes
14670else
14671  echo "$as_me: failed program was:" >&5
14672sed 's/^/| /' conftest.$ac_ext >&5
14673
14674ac_header_compiler=no
14675fi
14676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14678echo "${ECHO_T}$ac_header_compiler" >&6
14679
14680# Is the header present?
14681echo "$as_me:$LINENO: checking dl.h presence" >&5
14682echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14683cat >conftest.$ac_ext <<_ACEOF
14684/* confdefs.h.  */
14685_ACEOF
14686cat confdefs.h >>conftest.$ac_ext
14687cat >>conftest.$ac_ext <<_ACEOF
14688/* end confdefs.h.  */
14689#include <dl.h>
14690_ACEOF
14691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14692  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14693  ac_status=$?
14694  grep -v '^ *+' conftest.er1 >conftest.err
14695  rm -f conftest.er1
14696  cat conftest.err >&5
14697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698  (exit $ac_status); } >/dev/null; then
14699  if test -s conftest.err; then
14700    ac_cpp_err=$ac_c_preproc_warn_flag
14701    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14702  else
14703    ac_cpp_err=
14704  fi
14705else
14706  ac_cpp_err=yes
14707fi
14708if test -z "$ac_cpp_err"; then
14709  ac_header_preproc=yes
14710else
14711  echo "$as_me: failed program was:" >&5
14712sed 's/^/| /' conftest.$ac_ext >&5
14713
14714  ac_header_preproc=no
14715fi
14716rm -f conftest.err conftest.$ac_ext
14717echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14718echo "${ECHO_T}$ac_header_preproc" >&6
14719
14720# So?  What about this header?
14721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14722  yes:no: )
14723    { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14724echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14725    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14726echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14727    ac_header_preproc=yes
14728    ;;
14729  no:yes:* )
14730    { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14731echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14732    { echo "$as_me:$LINENO: WARNING: dl.h:     check for missing prerequisite headers?" >&5
14733echo "$as_me: WARNING: dl.h:     check for missing prerequisite headers?" >&2;}
14734    { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14735echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14736    { echo "$as_me:$LINENO: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&5
14737echo "$as_me: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14738    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14739echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14740    { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14741echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14742    (
14743      cat <<\_ASBOX
14744## ------------------------------------------ ##
14745## Report this to the AC_PACKAGE_NAME lists.  ##
14746## ------------------------------------------ ##
14747_ASBOX
14748    ) |
14749      sed "s/^/$as_me: WARNING:     /" >&2
14750    ;;
14751esac
14752echo "$as_me:$LINENO: checking for dl.h" >&5
14753echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14754if test "${ac_cv_header_dl_h+set}" = set; then
14755  echo $ECHO_N "(cached) $ECHO_C" >&6
14756else
14757  ac_cv_header_dl_h=$ac_header_preproc
14758fi
14759echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14760echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14761
14762fi
14763if test $ac_cv_header_dl_h = yes; then
14764  DLL=dl.h
14765fi
14766
14767
14768fi
14769
14770
14771if test x${DLL} = xdlfcn.h; then
14772
14773cat >>confdefs.h <<\_ACEOF
14774#define HAVE_DLFCN_H 1
14775_ACEOF
14776
14777  echo "$as_me:$LINENO: checking for dlopen()" >&5
14778echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14779  cat >conftest.$ac_ext <<_ACEOF
14780/* confdefs.h.  */
14781_ACEOF
14782cat confdefs.h >>conftest.$ac_ext
14783cat >>conftest.$ac_ext <<_ACEOF
14784/* end confdefs.h.  */
14785
14786int
14787main ()
14788{
14789
14790		extern void* dlopen();
14791		dlopen();
14792
14793  ;
14794  return 0;
14795}
14796_ACEOF
14797rm -f conftest.$ac_objext conftest$ac_exeext
14798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14799  (eval $ac_link) 2>conftest.er1
14800  ac_status=$?
14801  grep -v '^ *+' conftest.er1 >conftest.err
14802  rm -f conftest.er1
14803  cat conftest.err >&5
14804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805  (exit $ac_status); } &&
14806	 { ac_try='test -z "$ac_c_werror_flag"
14807			 || test ! -s conftest.err'
14808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809  (eval $ac_try) 2>&5
14810  ac_status=$?
14811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812  (exit $ac_status); }; } &&
14813	 { ac_try='test -s conftest$ac_exeext'
14814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815  (eval $ac_try) 2>&5
14816  ac_status=$?
14817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818  (exit $ac_status); }; }; then
14819  echo "$as_me:$LINENO: result: yes" >&5
14820echo "${ECHO_T}yes" >&6;
14821
14822cat >>confdefs.h <<\_ACEOF
14823#define HAVE_DLOPEN 1
14824_ACEOF
14825
14826else
14827  echo "$as_me: failed program was:" >&5
14828sed 's/^/| /' conftest.$ac_ext >&5
14829
14830echo "$as_me:$LINENO: result: no" >&5
14831echo "${ECHO_T}no" >&6;
14832	      echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14833echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
14834	      olibs=$LIBS
14835	      LIBS="$LIBS -ldl"
14836	      cat >conftest.$ac_ext <<_ACEOF
14837/* confdefs.h.  */
14838_ACEOF
14839cat confdefs.h >>conftest.$ac_ext
14840cat >>conftest.$ac_ext <<_ACEOF
14841/* end confdefs.h.  */
14842
14843int
14844main ()
14845{
14846
14847				extern void* dlopen();
14848				dlopen();
14849
14850  ;
14851  return 0;
14852}
14853_ACEOF
14854rm -f conftest.$ac_objext conftest$ac_exeext
14855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14856  (eval $ac_link) 2>conftest.er1
14857  ac_status=$?
14858  grep -v '^ *+' conftest.er1 >conftest.err
14859  rm -f conftest.er1
14860  cat conftest.err >&5
14861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862  (exit $ac_status); } &&
14863	 { ac_try='test -z "$ac_c_werror_flag"
14864			 || test ! -s conftest.err'
14865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866  (eval $ac_try) 2>&5
14867  ac_status=$?
14868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869  (exit $ac_status); }; } &&
14870	 { ac_try='test -s conftest$ac_exeext'
14871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872  (eval $ac_try) 2>&5
14873  ac_status=$?
14874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875  (exit $ac_status); }; }; then
14876  echo "$as_me:$LINENO: result: yes" >&5
14877echo "${ECHO_T}yes" >&6;
14878
14879cat >>confdefs.h <<\_ACEOF
14880#define HAVE_DLOPEN 1
14881_ACEOF
14882
14883else
14884  echo "$as_me: failed program was:" >&5
14885sed 's/^/| /' conftest.$ac_ext >&5
14886
14887echo "$as_me:$LINENO: result: no" >&5
14888echo "${ECHO_T}no" >&6;
14889			  LIBS=$olibs
14890fi
14891rm -f conftest.err conftest.$ac_objext \
14892      conftest$ac_exeext conftest.$ac_ext
14893fi
14894rm -f conftest.err conftest.$ac_objext \
14895      conftest$ac_exeext conftest.$ac_ext
14896      echo "$as_me:$LINENO: checking for dlsym()" >&5
14897echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14898  cat >conftest.$ac_ext <<_ACEOF
14899/* confdefs.h.  */
14900_ACEOF
14901cat confdefs.h >>conftest.$ac_ext
14902cat >>conftest.$ac_ext <<_ACEOF
14903/* end confdefs.h.  */
14904
14905int
14906main ()
14907{
14908
14909		extern void* dlsym();
14910		dlsym();
14911
14912  ;
14913  return 0;
14914}
14915_ACEOF
14916rm -f conftest.$ac_objext conftest$ac_exeext
14917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14918  (eval $ac_link) 2>conftest.er1
14919  ac_status=$?
14920  grep -v '^ *+' conftest.er1 >conftest.err
14921  rm -f conftest.er1
14922  cat conftest.err >&5
14923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924  (exit $ac_status); } &&
14925	 { ac_try='test -z "$ac_c_werror_flag"
14926			 || test ! -s conftest.err'
14927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928  (eval $ac_try) 2>&5
14929  ac_status=$?
14930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931  (exit $ac_status); }; } &&
14932	 { ac_try='test -s conftest$ac_exeext'
14933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934  (eval $ac_try) 2>&5
14935  ac_status=$?
14936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937  (exit $ac_status); }; }; then
14938  echo "$as_me:$LINENO: result: yes" >&5
14939echo "${ECHO_T}yes" >&6;
14940
14941cat >>confdefs.h <<\_ACEOF
14942#define HAVE_DLSYM 1
14943_ACEOF
14944
14945else
14946  echo "$as_me: failed program was:" >&5
14947sed 's/^/| /' conftest.$ac_ext >&5
14948
14949echo "$as_me:$LINENO: result: no" >&5
14950echo "${ECHO_T}no" >&6;
14951	      echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
14952echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
14953	      olibs=$LIBS
14954	      LIBS="$LIBS -ldl"
14955	      cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h.  */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h.  */
14961
14962int
14963main ()
14964{
14965
14966				extern void* dlsym();
14967				dlsym();
14968
14969  ;
14970  return 0;
14971}
14972_ACEOF
14973rm -f conftest.$ac_objext conftest$ac_exeext
14974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975  (eval $ac_link) 2>conftest.er1
14976  ac_status=$?
14977  grep -v '^ *+' conftest.er1 >conftest.err
14978  rm -f conftest.er1
14979  cat conftest.err >&5
14980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981  (exit $ac_status); } &&
14982	 { ac_try='test -z "$ac_c_werror_flag"
14983			 || test ! -s conftest.err'
14984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985  (eval $ac_try) 2>&5
14986  ac_status=$?
14987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988  (exit $ac_status); }; } &&
14989	 { ac_try='test -s conftest$ac_exeext'
14990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991  (eval $ac_try) 2>&5
14992  ac_status=$?
14993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994  (exit $ac_status); }; }; then
14995  echo "$as_me:$LINENO: result: yes" >&5
14996echo "${ECHO_T}yes" >&6;
14997
14998cat >>confdefs.h <<\_ACEOF
14999#define HAVE_DLSYM 1
15000_ACEOF
15001
15002else
15003  echo "$as_me: failed program was:" >&5
15004sed 's/^/| /' conftest.$ac_ext >&5
15005
15006echo "$as_me:$LINENO: result: no" >&5
15007echo "${ECHO_T}no" >&6;
15008			  LIBS=$olibs
15009fi
15010rm -f conftest.err conftest.$ac_objext \
15011      conftest$ac_exeext conftest.$ac_ext
15012fi
15013rm -f conftest.err conftest.$ac_objext \
15014      conftest$ac_exeext conftest.$ac_ext
15015elif test x${DLL} = xdl.h; then
15016
15017cat >>confdefs.h <<\_ACEOF
15018#define HAVE_DL_H 1
15019_ACEOF
15020
15021  echo "$as_me:$LINENO: checking for shl_load()" >&5
15022echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15023  cat >conftest.$ac_ext <<_ACEOF
15024/* confdefs.h.  */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h.  */
15029
15030int
15031main ()
15032{
15033
15034		extern void* shl_load();
15035		shl_load();
15036
15037  ;
15038  return 0;
15039}
15040_ACEOF
15041rm -f conftest.$ac_objext conftest$ac_exeext
15042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15043  (eval $ac_link) 2>conftest.er1
15044  ac_status=$?
15045  grep -v '^ *+' conftest.er1 >conftest.err
15046  rm -f conftest.er1
15047  cat conftest.err >&5
15048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049  (exit $ac_status); } &&
15050	 { ac_try='test -z "$ac_c_werror_flag"
15051			 || test ! -s conftest.err'
15052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053  (eval $ac_try) 2>&5
15054  ac_status=$?
15055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056  (exit $ac_status); }; } &&
15057	 { ac_try='test -s conftest$ac_exeext'
15058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059  (eval $ac_try) 2>&5
15060  ac_status=$?
15061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062  (exit $ac_status); }; }; then
15063  echo "$as_me:$LINENO: result: yes" >&5
15064echo "${ECHO_T}yes" >&6;
15065
15066cat >>confdefs.h <<\_ACEOF
15067#define HAVE_SHL_LOAD 1
15068_ACEOF
15069
15070else
15071  echo "$as_me: failed program was:" >&5
15072sed 's/^/| /' conftest.$ac_ext >&5
15073
15074echo "$as_me:$LINENO: result: no" >&5
15075echo "${ECHO_T}no" >&6;
15076	  echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15077echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
15078	  olibs=$LIBS
15079	  LIBS="$LIBS -ldld"
15080	  cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h.  */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h.  */
15086
15087int
15088main ()
15089{
15090
15091			extern void* shl_load();
15092			shl_load();
15093
15094  ;
15095  return 0;
15096}
15097_ACEOF
15098rm -f conftest.$ac_objext conftest$ac_exeext
15099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15100  (eval $ac_link) 2>conftest.er1
15101  ac_status=$?
15102  grep -v '^ *+' conftest.er1 >conftest.err
15103  rm -f conftest.er1
15104  cat conftest.err >&5
15105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106  (exit $ac_status); } &&
15107	 { ac_try='test -z "$ac_c_werror_flag"
15108			 || test ! -s conftest.err'
15109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110  (eval $ac_try) 2>&5
15111  ac_status=$?
15112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113  (exit $ac_status); }; } &&
15114	 { ac_try='test -s conftest$ac_exeext'
15115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116  (eval $ac_try) 2>&5
15117  ac_status=$?
15118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119  (exit $ac_status); }; }; then
15120  echo "$as_me:$LINENO: result: yes" >&5
15121echo "${ECHO_T}yes" >&6;
15122
15123cat >>confdefs.h <<\_ACEOF
15124#define HAVE_SHL_LOAD 1
15125_ACEOF
15126
15127else
15128  echo "$as_me: failed program was:" >&5
15129sed 's/^/| /' conftest.$ac_ext >&5
15130
15131echo "$as_me:$LINENO: result: no" >&5
15132echo "${ECHO_T}no" >&6;
15133		  LIBS=$olibs
15134fi
15135rm -f conftest.err conftest.$ac_objext \
15136      conftest$ac_exeext conftest.$ac_ext
15137fi
15138rm -f conftest.err conftest.$ac_objext \
15139      conftest$ac_exeext conftest.$ac_ext
15140fi
15141
15142for ac_header in setjmp.h
15143do
15144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15145if eval "test \"\${$as_ac_Header+set}\" = set"; then
15146  echo "$as_me:$LINENO: checking for $ac_header" >&5
15147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15148if eval "test \"\${$as_ac_Header+set}\" = set"; then
15149  echo $ECHO_N "(cached) $ECHO_C" >&6
15150fi
15151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15153else
15154  # Is the header compilable?
15155echo "$as_me:$LINENO: checking $ac_header usability" >&5
15156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15157cat >conftest.$ac_ext <<_ACEOF
15158/* confdefs.h.  */
15159_ACEOF
15160cat confdefs.h >>conftest.$ac_ext
15161cat >>conftest.$ac_ext <<_ACEOF
15162/* end confdefs.h.  */
15163$ac_includes_default
15164#include <$ac_header>
15165_ACEOF
15166rm -f conftest.$ac_objext
15167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15168  (eval $ac_compile) 2>conftest.er1
15169  ac_status=$?
15170  grep -v '^ *+' conftest.er1 >conftest.err
15171  rm -f conftest.er1
15172  cat conftest.err >&5
15173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174  (exit $ac_status); } &&
15175	 { ac_try='test -z "$ac_c_werror_flag"
15176			 || test ! -s conftest.err'
15177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178  (eval $ac_try) 2>&5
15179  ac_status=$?
15180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181  (exit $ac_status); }; } &&
15182	 { ac_try='test -s conftest.$ac_objext'
15183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184  (eval $ac_try) 2>&5
15185  ac_status=$?
15186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187  (exit $ac_status); }; }; then
15188  ac_header_compiler=yes
15189else
15190  echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193ac_header_compiler=no
15194fi
15195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15196echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15197echo "${ECHO_T}$ac_header_compiler" >&6
15198
15199# Is the header present?
15200echo "$as_me:$LINENO: checking $ac_header presence" >&5
15201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15202cat >conftest.$ac_ext <<_ACEOF
15203/* confdefs.h.  */
15204_ACEOF
15205cat confdefs.h >>conftest.$ac_ext
15206cat >>conftest.$ac_ext <<_ACEOF
15207/* end confdefs.h.  */
15208#include <$ac_header>
15209_ACEOF
15210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15211  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15212  ac_status=$?
15213  grep -v '^ *+' conftest.er1 >conftest.err
15214  rm -f conftest.er1
15215  cat conftest.err >&5
15216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217  (exit $ac_status); } >/dev/null; then
15218  if test -s conftest.err; then
15219    ac_cpp_err=$ac_c_preproc_warn_flag
15220    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15221  else
15222    ac_cpp_err=
15223  fi
15224else
15225  ac_cpp_err=yes
15226fi
15227if test -z "$ac_cpp_err"; then
15228  ac_header_preproc=yes
15229else
15230  echo "$as_me: failed program was:" >&5
15231sed 's/^/| /' conftest.$ac_ext >&5
15232
15233  ac_header_preproc=no
15234fi
15235rm -f conftest.err conftest.$ac_ext
15236echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15237echo "${ECHO_T}$ac_header_preproc" >&6
15238
15239# So?  What about this header?
15240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15241  yes:no: )
15242    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15243echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15244    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15245echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15246    ac_header_preproc=yes
15247    ;;
15248  no:yes:* )
15249    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15250echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15251    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15252echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15253    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15254echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15255    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15256echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15257    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15259    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15260echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15261    (
15262      cat <<\_ASBOX
15263## ------------------------------------------ ##
15264## Report this to the AC_PACKAGE_NAME lists.  ##
15265## ------------------------------------------ ##
15266_ASBOX
15267    ) |
15268      sed "s/^/$as_me: WARNING:     /" >&2
15269    ;;
15270esac
15271echo "$as_me:$LINENO: checking for $ac_header" >&5
15272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15273if eval "test \"\${$as_ac_Header+set}\" = set"; then
15274  echo $ECHO_N "(cached) $ECHO_C" >&6
15275else
15276  eval "$as_ac_Header=\$ac_header_preproc"
15277fi
15278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15280
15281fi
15282if test `eval echo '${'$as_ac_Header'}'` = yes; then
15283  cat >>confdefs.h <<_ACEOF
15284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15285_ACEOF
15286
15287fi
15288
15289done
15290
15291
15292if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15293    if echo $LIBS | grep -e '-ldl' >/dev/null; then
15294    LIBS=`echo $LIBS | sed s/-ldl//`
15295    PERL_LIBS="$PERL_LIBS -ldl"
15296  fi
15297fi
15298
15299if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15300	&& test "x$GUITYPE" != "xCARBONGUI"; then
15301  echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15302echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
15303    if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
15304	|| test "x$features" = "xhuge"; then
15305    LIBS="$LIBS -framework Carbon"
15306    echo "$as_me:$LINENO: result: yes" >&5
15307echo "${ECHO_T}yes" >&6
15308  else
15309    echo "$as_me:$LINENO: result: no" >&5
15310echo "${ECHO_T}no" >&6
15311  fi
15312fi
15313if test "x$MACARCH" = "xboth"; then
15314  LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15315fi
15316
15317echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15318echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
15319DEPEND_CFLAGS_FILTER=
15320if test "$GCC" = yes; then
15321  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
15322  if test "$gccmajor" -gt "2"; then
15323    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15324  fi
15325fi
15326if test "$DEPEND_CFLAGS_FILTER" = ""; then
15327  echo "$as_me:$LINENO: result: no" >&5
15328echo "${ECHO_T}no" >&6
15329else
15330  echo "$as_me:$LINENO: result: yes" >&5
15331echo "${ECHO_T}yes" >&6
15332fi
15333
15334
15335          ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15336cat >confcache <<\_ACEOF
15337# This file is a shell script that caches the results of configure
15338# tests run on this system so they can be shared between configure
15339# scripts and configure runs, see configure's option --config-cache.
15340# It is not useful on other systems.  If it contains results you don't
15341# want to keep, you may remove or edit it.
15342#
15343# config.status only pays attention to the cache file if you give it
15344# the --recheck option to rerun configure.
15345#
15346# `ac_cv_env_foo' variables (set or unset) will be overridden when
15347# loading this file, other *unset* `ac_cv_foo' will be assigned the
15348# following values.
15349
15350_ACEOF
15351
15352# The following way of writing the cache mishandles newlines in values,
15353# but we know of no workaround that is simple, portable, and efficient.
15354# So, don't put newlines in cache variables' values.
15355# Ultrix sh set writes to stderr and can't be redirected directly,
15356# and sets the high bit in the cache file unless we assign to the vars.
15357{
15358  (set) 2>&1 |
15359    case `(ac_space=' '; set | grep ac_space) 2>&1` in
15360    *ac_space=\ *)
15361      # `set' does not quote correctly, so add quotes (double-quote
15362      # substitution turns \\\\ into \\, and sed turns \\ into \).
15363      sed -n \
15364	"s/'/'\\\\''/g;
15365	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15366      ;;
15367    *)
15368      # `set' quotes correctly as required by POSIX, so do not add quotes.
15369      sed -n \
15370	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15371      ;;
15372    esac;
15373} |
15374  sed '
15375     t clear
15376     : clear
15377     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15378     t end
15379     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15380     : end' >>confcache
15381if diff $cache_file confcache >/dev/null 2>&1; then :; else
15382  if test -w $cache_file; then
15383    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15384    cat confcache >$cache_file
15385  else
15386    echo "not updating unwritable cache $cache_file"
15387  fi
15388fi
15389rm -f confcache
15390
15391test "x$prefix" = xNONE && prefix=$ac_default_prefix
15392# Let make expand exec_prefix.
15393test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15394
15395# VPATH may cause trouble with some makes, so we remove $(srcdir),
15396# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15397# trailing colons and then remove the whole line if VPATH becomes empty
15398# (actually we leave an empty line to preserve line numbers).
15399if test "x$srcdir" = x.; then
15400  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15401s/:*\$(srcdir):*/:/;
15402s/:*\${srcdir}:*/:/;
15403s/:*@srcdir@:*/:/;
15404s/^\([^=]*=[	 ]*\):*/\1/;
15405s/:*$//;
15406s/^[^=]*=[	 ]*$//;
15407}'
15408fi
15409
15410DEFS=-DHAVE_CONFIG_H
15411
15412ac_libobjs=
15413ac_ltlibobjs=
15414for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15415  # 1. Remove the extension, and $U if already installed.
15416  ac_i=`echo "$ac_i" |
15417	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15418  # 2. Add them.
15419  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15420  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15421done
15422LIBOBJS=$ac_libobjs
15423
15424LTLIBOBJS=$ac_ltlibobjs
15425
15426
15427
15428: ${CONFIG_STATUS=./config.status}
15429ac_clean_files_save=$ac_clean_files
15430ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15431{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15432echo "$as_me: creating $CONFIG_STATUS" >&6;}
15433cat >$CONFIG_STATUS <<_ACEOF
15434#! $SHELL
15435# Generated by $as_me.
15436# Run this file to recreate the current configuration.
15437# Compiler output produced by configure, useful for debugging
15438# configure, is in config.log if it exists.
15439
15440debug=false
15441ac_cs_recheck=false
15442ac_cs_silent=false
15443SHELL=\${CONFIG_SHELL-$SHELL}
15444_ACEOF
15445
15446cat >>$CONFIG_STATUS <<\_ACEOF
15447## --------------------- ##
15448## M4sh Initialization.  ##
15449## --------------------- ##
15450
15451# Be Bourne compatible
15452if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15453  emulate sh
15454  NULLCMD=:
15455  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15456  # is contrary to our usage.  Disable this feature.
15457  alias -g '${1+"$@"}'='"$@"'
15458elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15459  set -o posix
15460fi
15461DUALCASE=1; export DUALCASE # for MKS sh
15462
15463# Support unset when possible.
15464if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15465  as_unset=unset
15466else
15467  as_unset=false
15468fi
15469
15470
15471# Work around bugs in pre-3.0 UWIN ksh.
15472$as_unset ENV MAIL MAILPATH
15473PS1='$ '
15474PS2='> '
15475PS4='+ '
15476
15477# NLS nuisances.
15478for as_var in \
15479  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15480  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15481  LC_TELEPHONE LC_TIME
15482do
15483  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15484    eval $as_var=C; export $as_var
15485  else
15486    $as_unset $as_var
15487  fi
15488done
15489
15490# Required to use basename.
15491if expr a : '\(a\)' >/dev/null 2>&1; then
15492  as_expr=expr
15493else
15494  as_expr=false
15495fi
15496
15497if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15498  as_basename=basename
15499else
15500  as_basename=false
15501fi
15502
15503
15504# Name of the executable.
15505as_me=`$as_basename "$0" ||
15506$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15507	 X"$0" : 'X\(//\)$' \| \
15508	 X"$0" : 'X\(/\)$' \| \
15509	 .     : '\(.\)' 2>/dev/null ||
15510echo X/"$0" |
15511    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15512  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
15513  	  /^X\/\(\/\).*/{ s//\1/; q; }
15514  	  s/.*/./; q'`
15515
15516
15517# PATH needs CR, and LINENO needs CR and PATH.
15518# Avoid depending upon Character Ranges.
15519as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15520as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15521as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15522as_cr_digits='0123456789'
15523as_cr_alnum=$as_cr_Letters$as_cr_digits
15524
15525# The user is always right.
15526if test "${PATH_SEPARATOR+set}" != set; then
15527  echo "#! /bin/sh" >conf$$.sh
15528  echo  "exit 0"   >>conf$$.sh
15529  chmod +x conf$$.sh
15530  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15531    PATH_SEPARATOR=';'
15532  else
15533    PATH_SEPARATOR=:
15534  fi
15535  rm -f conf$$.sh
15536fi
15537
15538
15539  as_lineno_1=$LINENO
15540  as_lineno_2=$LINENO
15541  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15542  test "x$as_lineno_1" != "x$as_lineno_2" &&
15543  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15544  # Find who we are.  Look in the path if we contain no path at all
15545  # relative or not.
15546  case $0 in
15547    *[\\/]* ) as_myself=$0 ;;
15548    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549for as_dir in $PATH
15550do
15551  IFS=$as_save_IFS
15552  test -z "$as_dir" && as_dir=.
15553  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15554done
15555
15556       ;;
15557  esac
15558  # We did not find ourselves, most probably we were run as `sh COMMAND'
15559  # in which case we are not to be found in the path.
15560  if test "x$as_myself" = x; then
15561    as_myself=$0
15562  fi
15563  if test ! -f "$as_myself"; then
15564    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15565echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15566   { (exit 1); exit 1; }; }
15567  fi
15568  case $CONFIG_SHELL in
15569  '')
15570    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15571for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15572do
15573  IFS=$as_save_IFS
15574  test -z "$as_dir" && as_dir=.
15575  for as_base in sh bash ksh sh5; do
15576	 case $as_dir in
15577	 /*)
15578	   if ("$as_dir/$as_base" -c '
15579  as_lineno_1=$LINENO
15580  as_lineno_2=$LINENO
15581  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15582  test "x$as_lineno_1" != "x$as_lineno_2" &&
15583  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15584	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15585	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15586	     CONFIG_SHELL=$as_dir/$as_base
15587	     export CONFIG_SHELL
15588	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15589	   fi;;
15590	 esac
15591       done
15592done
15593;;
15594  esac
15595
15596  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15597  # uniformly replaced by the line number.  The first 'sed' inserts a
15598  # line-number line before each line; the second 'sed' does the real
15599  # work.  The second script uses 'N' to pair each line-number line
15600  # with the numbered line, and appends trailing '-' during
15601  # substitution so that $LINENO is not a special case at line end.
15602  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15603  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15604  sed '=' <$as_myself |
15605    sed '
15606      N
15607      s,$,-,
15608      : loop
15609      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15610      t loop
15611      s,-$,,
15612      s,^['$as_cr_digits']*\n,,
15613    ' >$as_me.lineno &&
15614  chmod +x $as_me.lineno ||
15615    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15616echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15617   { (exit 1); exit 1; }; }
15618
15619  # Don't try to exec as it changes $[0], causing all sort of problems
15620  # (the dirname of $[0] is not the place where we might find the
15621  # original and so on.  Autoconf is especially sensible to this).
15622  . ./$as_me.lineno
15623  # Exit status is that of the last command.
15624  exit
15625}
15626
15627
15628case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15629  *c*,-n*) ECHO_N= ECHO_C='
15630' ECHO_T='	' ;;
15631  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15632  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15633esac
15634
15635if expr a : '\(a\)' >/dev/null 2>&1; then
15636  as_expr=expr
15637else
15638  as_expr=false
15639fi
15640
15641rm -f conf$$ conf$$.exe conf$$.file
15642echo >conf$$.file
15643if ln -s conf$$.file conf$$ 2>/dev/null; then
15644  # We could just check for DJGPP; but this test a) works b) is more generic
15645  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15646  if test -f conf$$.exe; then
15647    # Don't use ln at all; we don't have any links
15648    as_ln_s='cp -p'
15649  else
15650    as_ln_s='ln -s'
15651  fi
15652elif ln conf$$.file conf$$ 2>/dev/null; then
15653  as_ln_s=ln
15654else
15655  as_ln_s='cp -p'
15656fi
15657rm -f conf$$ conf$$.exe conf$$.file
15658
15659if mkdir -p . 2>/dev/null; then
15660  as_mkdir_p=:
15661else
15662  test -d ./-p && rmdir ./-p
15663  as_mkdir_p=false
15664fi
15665
15666as_executable_p="test -f"
15667
15668# Sed expression to map a string onto a valid CPP name.
15669as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15670
15671# Sed expression to map a string onto a valid variable name.
15672as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15673
15674
15675# IFS
15676# We need space, tab and new line, in precisely that order.
15677as_nl='
15678'
15679IFS=" 	$as_nl"
15680
15681# CDPATH.
15682$as_unset CDPATH
15683
15684exec 6>&1
15685
15686# Open the log real soon, to keep \$[0] and so on meaningful, and to
15687# report actual input values of CONFIG_FILES etc. instead of their
15688# values after options handling.  Logging --version etc. is OK.
15689exec 5>>auto/config.log
15690{
15691  echo
15692  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15693## Running $as_me. ##
15694_ASBOX
15695} >&5
15696cat >&5 <<_CSEOF
15697
15698This file was extended by $as_me, which was
15699generated by GNU Autoconf 2.59.  Invocation command line was
15700
15701  CONFIG_FILES    = $CONFIG_FILES
15702  CONFIG_HEADERS  = $CONFIG_HEADERS
15703  CONFIG_LINKS    = $CONFIG_LINKS
15704  CONFIG_COMMANDS = $CONFIG_COMMANDS
15705  $ $0 $@
15706
15707_CSEOF
15708echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15709echo >&5
15710_ACEOF
15711
15712# Files that config.status was made for.
15713if test -n "$ac_config_files"; then
15714  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15715fi
15716
15717if test -n "$ac_config_headers"; then
15718  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15719fi
15720
15721if test -n "$ac_config_links"; then
15722  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15723fi
15724
15725if test -n "$ac_config_commands"; then
15726  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15727fi
15728
15729cat >>$CONFIG_STATUS <<\_ACEOF
15730
15731ac_cs_usage="\
15732\`$as_me' instantiates files from templates according to the
15733current configuration.
15734
15735Usage: $0 [OPTIONS] [FILE]...
15736
15737  -h, --help       print this help, then exit
15738  -V, --version    print version number, then exit
15739  -q, --quiet      do not print progress messages
15740  -d, --debug      don't remove temporary files
15741      --recheck    update $as_me by reconfiguring in the same conditions
15742  --file=FILE[:TEMPLATE]
15743		   instantiate the configuration file FILE
15744  --header=FILE[:TEMPLATE]
15745		   instantiate the configuration header FILE
15746
15747Configuration files:
15748$config_files
15749
15750Configuration headers:
15751$config_headers
15752
15753Report bugs to <[email protected]>."
15754_ACEOF
15755
15756cat >>$CONFIG_STATUS <<_ACEOF
15757ac_cs_version="\\
15758config.status
15759configured by $0, generated by GNU Autoconf 2.59,
15760  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15761
15762Copyright (C) 2003 Free Software Foundation, Inc.
15763This config.status script is free software; the Free Software Foundation
15764gives unlimited permission to copy, distribute and modify it."
15765srcdir=$srcdir
15766_ACEOF
15767
15768cat >>$CONFIG_STATUS <<\_ACEOF
15769# If no file are specified by the user, then we need to provide default
15770# value.  By we need to know if files were specified by the user.
15771ac_need_defaults=:
15772while test $# != 0
15773do
15774  case $1 in
15775  --*=*)
15776    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15777    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15778    ac_shift=:
15779    ;;
15780  -*)
15781    ac_option=$1
15782    ac_optarg=$2
15783    ac_shift=shift
15784    ;;
15785  *) # This is not an option, so the user has probably given explicit
15786     # arguments.
15787     ac_option=$1
15788     ac_need_defaults=false;;
15789  esac
15790
15791  case $ac_option in
15792  # Handling of the options.
15793_ACEOF
15794cat >>$CONFIG_STATUS <<\_ACEOF
15795  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15796    ac_cs_recheck=: ;;
15797  --version | --vers* | -V )
15798    echo "$ac_cs_version"; exit 0 ;;
15799  --he | --h)
15800    # Conflict between --help and --header
15801    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15802Try \`$0 --help' for more information." >&5
15803echo "$as_me: error: ambiguous option: $1
15804Try \`$0 --help' for more information." >&2;}
15805   { (exit 1); exit 1; }; };;
15806  --help | --hel | -h )
15807    echo "$ac_cs_usage"; exit 0 ;;
15808  --debug | --d* | -d )
15809    debug=: ;;
15810  --file | --fil | --fi | --f )
15811    $ac_shift
15812    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15813    ac_need_defaults=false;;
15814  --header | --heade | --head | --hea )
15815    $ac_shift
15816    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15817    ac_need_defaults=false;;
15818  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15819  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15820    ac_cs_silent=: ;;
15821
15822  # This is an error.
15823  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15824Try \`$0 --help' for more information." >&5
15825echo "$as_me: error: unrecognized option: $1
15826Try \`$0 --help' for more information." >&2;}
15827   { (exit 1); exit 1; }; } ;;
15828
15829  *) ac_config_targets="$ac_config_targets $1" ;;
15830
15831  esac
15832  shift
15833done
15834
15835ac_configure_extra_args=
15836
15837if $ac_cs_silent; then
15838  exec 6>/dev/null
15839  ac_configure_extra_args="$ac_configure_extra_args --silent"
15840fi
15841
15842_ACEOF
15843cat >>$CONFIG_STATUS <<_ACEOF
15844if \$ac_cs_recheck; then
15845  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15846  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15847fi
15848
15849_ACEOF
15850
15851
15852
15853
15854
15855cat >>$CONFIG_STATUS <<\_ACEOF
15856for ac_config_target in $ac_config_targets
15857do
15858  case "$ac_config_target" in
15859  # Handling of arguments.
15860  "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15861  "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15862  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15863echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15864   { (exit 1); exit 1; }; };;
15865  esac
15866done
15867
15868# If the user did not use the arguments to specify the items to instantiate,
15869# then the envvar interface is used.  Set only those that are not.
15870# We use the long form for the default assignment because of an extremely
15871# bizarre bug on SunOS 4.1.3.
15872if $ac_need_defaults; then
15873  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15874  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15875fi
15876
15877# Have a temporary directory for convenience.  Make it in the build tree
15878# simply because there is no reason to put it here, and in addition,
15879# creating and moving files from /tmp can sometimes cause problems.
15880# Create a temporary directory, and hook for its removal unless debugging.
15881$debug ||
15882{
15883  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15884  trap '{ (exit 1); exit 1; }' 1 2 13 15
15885}
15886
15887# Create a (secure) tmp directory for tmp files.
15888
15889{
15890  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15891  test -n "$tmp" && test -d "$tmp"
15892}  ||
15893{
15894  tmp=./confstat$$-$RANDOM
15895  (umask 077 && mkdir $tmp)
15896} ||
15897{
15898   echo "$me: cannot create a temporary directory in ." >&2
15899   { (exit 1); exit 1; }
15900}
15901
15902_ACEOF
15903
15904cat >>$CONFIG_STATUS <<_ACEOF
15905
15906#
15907# CONFIG_FILES section.
15908#
15909
15910# No need to generate the scripts if there are no CONFIG_FILES.
15911# This happens for instance when ./config.status config.h
15912if test -n "\$CONFIG_FILES"; then
15913  # Protect against being on the right side of a sed subst in config.status.
15914  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15915   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15916s,@SHELL@,$SHELL,;t t
15917s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15918s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15919s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15920s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15921s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15922s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15923s,@exec_prefix@,$exec_prefix,;t t
15924s,@prefix@,$prefix,;t t
15925s,@program_transform_name@,$program_transform_name,;t t
15926s,@bindir@,$bindir,;t t
15927s,@sbindir@,$sbindir,;t t
15928s,@libexecdir@,$libexecdir,;t t
15929s,@datadir@,$datadir,;t t
15930s,@sysconfdir@,$sysconfdir,;t t
15931s,@sharedstatedir@,$sharedstatedir,;t t
15932s,@localstatedir@,$localstatedir,;t t
15933s,@libdir@,$libdir,;t t
15934s,@includedir@,$includedir,;t t
15935s,@oldincludedir@,$oldincludedir,;t t
15936s,@infodir@,$infodir,;t t
15937s,@mandir@,$mandir,;t t
15938s,@build_alias@,$build_alias,;t t
15939s,@host_alias@,$host_alias,;t t
15940s,@target_alias@,$target_alias,;t t
15941s,@DEFS@,$DEFS,;t t
15942s,@ECHO_C@,$ECHO_C,;t t
15943s,@ECHO_N@,$ECHO_N,;t t
15944s,@ECHO_T@,$ECHO_T,;t t
15945s,@LIBS@,$LIBS,;t t
15946s,@SET_MAKE@,$SET_MAKE,;t t
15947s,@CC@,$CC,;t t
15948s,@CFLAGS@,$CFLAGS,;t t
15949s,@LDFLAGS@,$LDFLAGS,;t t
15950s,@CPPFLAGS@,$CPPFLAGS,;t t
15951s,@ac_ct_CC@,$ac_ct_CC,;t t
15952s,@EXEEXT@,$EXEEXT,;t t
15953s,@OBJEXT@,$OBJEXT,;t t
15954s,@CPP@,$CPP,;t t
15955s,@EGREP@,$EGREP,;t t
15956s,@AWK@,$AWK,;t t
15957s,@STRIP@,$STRIP,;t t
15958s,@CPP_MM@,$CPP_MM,;t t
15959s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
15960s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
15961s,@VIMNAME@,$VIMNAME,;t t
15962s,@EXNAME@,$EXNAME,;t t
15963s,@VIEWNAME@,$VIEWNAME,;t t
15964s,@line_break@,$line_break,;t t
15965s,@dovimdiff@,$dovimdiff,;t t
15966s,@dogvimdiff@,$dogvimdiff,;t t
15967s,@compiledby@,$compiledby,;t t
15968s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
15969s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
15970s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
15971s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
15972s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
15973s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
15974s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
15975s,@vi_cv_perllib@,$vi_cv_perllib,;t t
15976s,@shrpenv@,$shrpenv,;t t
15977s,@PERL_SRC@,$PERL_SRC,;t t
15978s,@PERL_OBJ@,$PERL_OBJ,;t t
15979s,@PERL_PRO@,$PERL_PRO,;t t
15980s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
15981s,@PERL_LIBS@,$PERL_LIBS,;t t
15982s,@vi_cv_path_python@,$vi_cv_path_python,;t t
15983s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
15984s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
15985s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
15986s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
15987s,@PYTHON_SRC@,$PYTHON_SRC,;t t
15988s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
15989s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
15990s,@TCL_SRC@,$TCL_SRC,;t t
15991s,@TCL_OBJ@,$TCL_OBJ,;t t
15992s,@TCL_PRO@,$TCL_PRO,;t t
15993s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
15994s,@TCL_LIBS@,$TCL_LIBS,;t t
15995s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
15996s,@RUBY_SRC@,$RUBY_SRC,;t t
15997s,@RUBY_OBJ@,$RUBY_OBJ,;t t
15998s,@RUBY_PRO@,$RUBY_PRO,;t t
15999s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16000s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16001s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16002s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16003s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16004s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16005s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16006s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16007s,@xmkmfpath@,$xmkmfpath,;t t
16008s,@X_CFLAGS@,$X_CFLAGS,;t t
16009s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16010s,@X_LIBS@,$X_LIBS,;t t
16011s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16012s,@X_LIB@,$X_LIB,;t t
16013s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16014s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16015s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16016s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16017s,@GTK_LIBS@,$GTK_LIBS,;t t
16018s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16019s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16020s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16021s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16022s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16023s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16024s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16025s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16026s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16027s,@GUITYPE@,$GUITYPE,;t t
16028s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16029s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16030s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16031s,@TAGPRG@,$TAGPRG,;t t
16032s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16033s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
16034s,@MSGFMT@,$MSGFMT,;t t
16035s,@MAKEMO@,$MAKEMO,;t t
16036s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
16037s,@LIBOBJS@,$LIBOBJS,;t t
16038s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16039CEOF
16040
16041_ACEOF
16042
16043  cat >>$CONFIG_STATUS <<\_ACEOF
16044  # Split the substitutions into bite-sized pieces for seds with
16045  # small command number limits, like on Digital OSF/1 and HP-UX.
16046  ac_max_sed_lines=48
16047  ac_sed_frag=1 # Number of current file.
16048  ac_beg=1 # First line for current file.
16049  ac_end=$ac_max_sed_lines # Line after last line for current file.
16050  ac_more_lines=:
16051  ac_sed_cmds=
16052  while $ac_more_lines; do
16053    if test $ac_beg -gt 1; then
16054      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16055    else
16056      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16057    fi
16058    if test ! -s $tmp/subs.frag; then
16059      ac_more_lines=false
16060    else
16061      # The purpose of the label and of the branching condition is to
16062      # speed up the sed processing (if there are no `@' at all, there
16063      # is no need to browse any of the substitutions).
16064      # These are the two extra sed commands mentioned above.
16065      (echo ':t
16066  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16067      if test -z "$ac_sed_cmds"; then
16068	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16069      else
16070	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16071      fi
16072      ac_sed_frag=`expr $ac_sed_frag + 1`
16073      ac_beg=$ac_end
16074      ac_end=`expr $ac_end + $ac_max_sed_lines`
16075    fi
16076  done
16077  if test -z "$ac_sed_cmds"; then
16078    ac_sed_cmds=cat
16079  fi
16080fi # test -n "$CONFIG_FILES"
16081
16082_ACEOF
16083cat >>$CONFIG_STATUS <<\_ACEOF
16084for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16085  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16086  case $ac_file in
16087  - | *:- | *:-:* ) # input from stdin
16088	cat >$tmp/stdin
16089	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16090	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16091  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16092	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16093  * )   ac_file_in=$ac_file.in ;;
16094  esac
16095
16096  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16097  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16098$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16099	 X"$ac_file" : 'X\(//\)[^/]' \| \
16100	 X"$ac_file" : 'X\(//\)$' \| \
16101	 X"$ac_file" : 'X\(/\)' \| \
16102	 .     : '\(.\)' 2>/dev/null ||
16103echo X"$ac_file" |
16104    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16105  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16106  	  /^X\(\/\/\)$/{ s//\1/; q; }
16107  	  /^X\(\/\).*/{ s//\1/; q; }
16108  	  s/.*/./; q'`
16109  { if $as_mkdir_p; then
16110    mkdir -p "$ac_dir"
16111  else
16112    as_dir="$ac_dir"
16113    as_dirs=
16114    while test ! -d "$as_dir"; do
16115      as_dirs="$as_dir $as_dirs"
16116      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16118	 X"$as_dir" : 'X\(//\)[^/]' \| \
16119	 X"$as_dir" : 'X\(//\)$' \| \
16120	 X"$as_dir" : 'X\(/\)' \| \
16121	 .     : '\(.\)' 2>/dev/null ||
16122echo X"$as_dir" |
16123    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16124  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16125  	  /^X\(\/\/\)$/{ s//\1/; q; }
16126  	  /^X\(\/\).*/{ s//\1/; q; }
16127  	  s/.*/./; q'`
16128    done
16129    test ! -n "$as_dirs" || mkdir $as_dirs
16130  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16131echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16132   { (exit 1); exit 1; }; }; }
16133
16134  ac_builddir=.
16135
16136if test "$ac_dir" != .; then
16137  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16138  # A "../" for each directory in $ac_dir_suffix.
16139  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16140else
16141  ac_dir_suffix= ac_top_builddir=
16142fi
16143
16144case $srcdir in
16145  .)  # No --srcdir option.  We are building in place.
16146    ac_srcdir=.
16147    if test -z "$ac_top_builddir"; then
16148       ac_top_srcdir=.
16149    else
16150       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16151    fi ;;
16152  [\\/]* | ?:[\\/]* )  # Absolute path.
16153    ac_srcdir=$srcdir$ac_dir_suffix;
16154    ac_top_srcdir=$srcdir ;;
16155  *) # Relative path.
16156    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16157    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16158esac
16159
16160# Do not use `cd foo && pwd` to compute absolute paths, because
16161# the directories may not exist.
16162case `pwd` in
16163.) ac_abs_builddir="$ac_dir";;
16164*)
16165  case "$ac_dir" in
16166  .) ac_abs_builddir=`pwd`;;
16167  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16168  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16169  esac;;
16170esac
16171case $ac_abs_builddir in
16172.) ac_abs_top_builddir=${ac_top_builddir}.;;
16173*)
16174  case ${ac_top_builddir}. in
16175  .) ac_abs_top_builddir=$ac_abs_builddir;;
16176  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16177  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16178  esac;;
16179esac
16180case $ac_abs_builddir in
16181.) ac_abs_srcdir=$ac_srcdir;;
16182*)
16183  case $ac_srcdir in
16184  .) ac_abs_srcdir=$ac_abs_builddir;;
16185  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16186  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16187  esac;;
16188esac
16189case $ac_abs_builddir in
16190.) ac_abs_top_srcdir=$ac_top_srcdir;;
16191*)
16192  case $ac_top_srcdir in
16193  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16194  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16195  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16196  esac;;
16197esac
16198
16199
16200
16201  if test x"$ac_file" != x-; then
16202    { echo "$as_me:$LINENO: creating $ac_file" >&5
16203echo "$as_me: creating $ac_file" >&6;}
16204    rm -f "$ac_file"
16205  fi
16206  # Let's still pretend it is `configure' which instantiates (i.e., don't
16207  # use $as_me), people would be surprised to read:
16208  #    /* config.h.  Generated by config.status.  */
16209  if test x"$ac_file" = x-; then
16210    configure_input=
16211  else
16212    configure_input="$ac_file.  "
16213  fi
16214  configure_input=$configure_input"Generated from `echo $ac_file_in |
16215				     sed 's,.*/,,'` by configure."
16216
16217  # First look for the input files in the build tree, otherwise in the
16218  # src tree.
16219  ac_file_inputs=`IFS=:
16220    for f in $ac_file_in; do
16221      case $f in
16222      -) echo $tmp/stdin ;;
16223      [\\/$]*)
16224	 # Absolute (can't be DOS-style, as IFS=:)
16225	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16226echo "$as_me: error: cannot find input file: $f" >&2;}
16227   { (exit 1); exit 1; }; }
16228	 echo "$f";;
16229      *) # Relative
16230	 if test -f "$f"; then
16231	   # Build tree
16232	   echo "$f"
16233	 elif test -f "$srcdir/$f"; then
16234	   # Source tree
16235	   echo "$srcdir/$f"
16236	 else
16237	   # /dev/null tree
16238	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16239echo "$as_me: error: cannot find input file: $f" >&2;}
16240   { (exit 1); exit 1; }; }
16241	 fi;;
16242      esac
16243    done` || { (exit 1); exit 1; }
16244_ACEOF
16245cat >>$CONFIG_STATUS <<_ACEOF
16246  sed "$ac_vpsub
16247$extrasub
16248_ACEOF
16249cat >>$CONFIG_STATUS <<\_ACEOF
16250:t
16251/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16252s,@configure_input@,$configure_input,;t t
16253s,@srcdir@,$ac_srcdir,;t t
16254s,@abs_srcdir@,$ac_abs_srcdir,;t t
16255s,@top_srcdir@,$ac_top_srcdir,;t t
16256s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16257s,@builddir@,$ac_builddir,;t t
16258s,@abs_builddir@,$ac_abs_builddir,;t t
16259s,@top_builddir@,$ac_top_builddir,;t t
16260s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16261" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16262  rm -f $tmp/stdin
16263  if test x"$ac_file" != x-; then
16264    mv $tmp/out $ac_file
16265  else
16266    cat $tmp/out
16267    rm -f $tmp/out
16268  fi
16269
16270done
16271_ACEOF
16272cat >>$CONFIG_STATUS <<\_ACEOF
16273
16274#
16275# CONFIG_HEADER section.
16276#
16277
16278# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16279# NAME is the cpp macro being defined and VALUE is the value it is being given.
16280#
16281# ac_d sets the value in "#define NAME VALUE" lines.
16282ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
16283ac_dB='[	 ].*$,\1#\2'
16284ac_dC=' '
16285ac_dD=',;t'
16286# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16287ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
16288ac_uB='$,\1#\2define\3'
16289ac_uC=' '
16290ac_uD=',;t'
16291
16292for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16293  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16294  case $ac_file in
16295  - | *:- | *:-:* ) # input from stdin
16296	cat >$tmp/stdin
16297	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16298	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16299  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16300	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16301  * )   ac_file_in=$ac_file.in ;;
16302  esac
16303
16304  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16305echo "$as_me: creating $ac_file" >&6;}
16306
16307  # First look for the input files in the build tree, otherwise in the
16308  # src tree.
16309  ac_file_inputs=`IFS=:
16310    for f in $ac_file_in; do
16311      case $f in
16312      -) echo $tmp/stdin ;;
16313      [\\/$]*)
16314	 # Absolute (can't be DOS-style, as IFS=:)
16315	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16316echo "$as_me: error: cannot find input file: $f" >&2;}
16317   { (exit 1); exit 1; }; }
16318	 # Do quote $f, to prevent DOS paths from being IFS'd.
16319	 echo "$f";;
16320      *) # Relative
16321	 if test -f "$f"; then
16322	   # Build tree
16323	   echo "$f"
16324	 elif test -f "$srcdir/$f"; then
16325	   # Source tree
16326	   echo "$srcdir/$f"
16327	 else
16328	   # /dev/null tree
16329	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16330echo "$as_me: error: cannot find input file: $f" >&2;}
16331   { (exit 1); exit 1; }; }
16332	 fi;;
16333      esac
16334    done` || { (exit 1); exit 1; }
16335  # Remove the trailing spaces.
16336  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
16337
16338_ACEOF
16339
16340# Transform confdefs.h into two sed scripts, `conftest.defines' and
16341# `conftest.undefs', that substitutes the proper values into
16342# config.h.in to produce config.h.  The first handles `#define'
16343# templates, and the second `#undef' templates.
16344# And first: Protect against being on the right side of a sed subst in
16345# config.status.  Protect against being in an unquoted here document
16346# in config.status.
16347rm -f conftest.defines conftest.undefs
16348# Using a here document instead of a string reduces the quoting nightmare.
16349# Putting comments in sed scripts is not portable.
16350#
16351# `end' is used to avoid that the second main sed command (meant for
16352# 0-ary CPP macros) applies to n-ary macro definitions.
16353# See the Autoconf documentation for `clear'.
16354cat >confdef2sed.sed <<\_ACEOF
16355s/[\\&,]/\\&/g
16356s,[\\$`],\\&,g
16357t clear
16358: clear
16359s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16360t end
16361s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16362: end
16363_ACEOF
16364# If some macros were called several times there might be several times
16365# the same #defines, which is useless.  Nevertheless, we may not want to
16366# sort them, since we want the *last* AC-DEFINE to be honored.
16367uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16368sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16369rm -f confdef2sed.sed
16370
16371# This sed command replaces #undef with comments.  This is necessary, for
16372# example, in the case of _POSIX_SOURCE, which is predefined and required
16373# on some systems where configure will not decide to define it.
16374cat >>conftest.undefs <<\_ACEOF
16375s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16376_ACEOF
16377
16378# Break up conftest.defines because some shells have a limit on the size
16379# of here documents, and old seds have small limits too (100 cmds).
16380echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16381echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16382echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16383echo '  :' >>$CONFIG_STATUS
16384rm -f conftest.tail
16385while grep . conftest.defines >/dev/null
16386do
16387  # Write a limited-size here document to $tmp/defines.sed.
16388  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16389  # Speed up: don't consider the non `#define' lines.
16390  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
16391  # Work around the forget-to-reset-the-flag bug.
16392  echo 't clr' >>$CONFIG_STATUS
16393  echo ': clr' >>$CONFIG_STATUS
16394  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16395  echo 'CEOF
16396  sed -f $tmp/defines.sed $tmp/in >$tmp/out
16397  rm -f $tmp/in
16398  mv $tmp/out $tmp/in
16399' >>$CONFIG_STATUS
16400  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16401  rm -f conftest.defines
16402  mv conftest.tail conftest.defines
16403done
16404rm -f conftest.defines
16405echo '  fi # grep' >>$CONFIG_STATUS
16406echo >>$CONFIG_STATUS
16407
16408# Break up conftest.undefs because some shells have a limit on the size
16409# of here documents, and old seds have small limits too (100 cmds).
16410echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16411rm -f conftest.tail
16412while grep . conftest.undefs >/dev/null
16413do
16414  # Write a limited-size here document to $tmp/undefs.sed.
16415  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16416  # Speed up: don't consider the non `#undef'
16417  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
16418  # Work around the forget-to-reset-the-flag bug.
16419  echo 't clr' >>$CONFIG_STATUS
16420  echo ': clr' >>$CONFIG_STATUS
16421  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16422  echo 'CEOF
16423  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16424  rm -f $tmp/in
16425  mv $tmp/out $tmp/in
16426' >>$CONFIG_STATUS
16427  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16428  rm -f conftest.undefs
16429  mv conftest.tail conftest.undefs
16430done
16431rm -f conftest.undefs
16432
16433cat >>$CONFIG_STATUS <<\_ACEOF
16434  # Let's still pretend it is `configure' which instantiates (i.e., don't
16435  # use $as_me), people would be surprised to read:
16436  #    /* config.h.  Generated by config.status.  */
16437  if test x"$ac_file" = x-; then
16438    echo "/* Generated by configure.  */" >$tmp/config.h
16439  else
16440    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16441  fi
16442  cat $tmp/in >>$tmp/config.h
16443  rm -f $tmp/in
16444  if test x"$ac_file" != x-; then
16445    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16446      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16447echo "$as_me: $ac_file is unchanged" >&6;}
16448    else
16449      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16450$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16451	 X"$ac_file" : 'X\(//\)[^/]' \| \
16452	 X"$ac_file" : 'X\(//\)$' \| \
16453	 X"$ac_file" : 'X\(/\)' \| \
16454	 .     : '\(.\)' 2>/dev/null ||
16455echo X"$ac_file" |
16456    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16457  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16458  	  /^X\(\/\/\)$/{ s//\1/; q; }
16459  	  /^X\(\/\).*/{ s//\1/; q; }
16460  	  s/.*/./; q'`
16461      { if $as_mkdir_p; then
16462    mkdir -p "$ac_dir"
16463  else
16464    as_dir="$ac_dir"
16465    as_dirs=
16466    while test ! -d "$as_dir"; do
16467      as_dirs="$as_dir $as_dirs"
16468      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16470	 X"$as_dir" : 'X\(//\)[^/]' \| \
16471	 X"$as_dir" : 'X\(//\)$' \| \
16472	 X"$as_dir" : 'X\(/\)' \| \
16473	 .     : '\(.\)' 2>/dev/null ||
16474echo X"$as_dir" |
16475    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16476  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16477  	  /^X\(\/\/\)$/{ s//\1/; q; }
16478  	  /^X\(\/\).*/{ s//\1/; q; }
16479  	  s/.*/./; q'`
16480    done
16481    test ! -n "$as_dirs" || mkdir $as_dirs
16482  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16483echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16484   { (exit 1); exit 1; }; }; }
16485
16486      rm -f $ac_file
16487      mv $tmp/config.h $ac_file
16488    fi
16489  else
16490    cat $tmp/config.h
16491    rm -f $tmp/config.h
16492  fi
16493done
16494_ACEOF
16495
16496cat >>$CONFIG_STATUS <<\_ACEOF
16497
16498{ (exit 0); exit 0; }
16499_ACEOF
16500chmod +x $CONFIG_STATUS
16501ac_clean_files=$ac_clean_files_save
16502
16503
16504# configure is writing to config.log, and then calls config.status.
16505# config.status does its own redirection, appending to config.log.
16506# Unfortunately, on DOS this fails, as config.log is still kept open
16507# by configure, so config.status won't be able to write to it; its
16508# output is simply discarded.  So we exec the FD to /dev/null,
16509# effectively closing config.log, so it can be properly (re)opened and
16510# appended to by config.status.  When coming back to configure, we
16511# need to make the FD available again.
16512if test "$no_create" != yes; then
16513  ac_cs_success=:
16514  ac_config_status_args=
16515  test "$silent" = yes &&
16516    ac_config_status_args="$ac_config_status_args --quiet"
16517  exec 5>/dev/null
16518  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16519  exec 5>>auto/config.log
16520  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16521  # would make configure fail if this is the last instruction.
16522  $ac_cs_success || { (exit 1); exit 1; }
16523fi
16524
16525
16526