xref: /vim-8.2.3635/src/auto/configure (revision fc1421eb)
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
8989
8990for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8991		   Xm/UnhighlightT.h Xm/Notebook.h
8992do
8993as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8994if eval "test \"\${$as_ac_Header+set}\" = set"; then
8995  echo "$as_me:$LINENO: checking for $ac_header" >&5
8996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8997if eval "test \"\${$as_ac_Header+set}\" = set"; then
8998  echo $ECHO_N "(cached) $ECHO_C" >&6
8999fi
9000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9002else
9003  # Is the header compilable?
9004echo "$as_me:$LINENO: checking $ac_header usability" >&5
9005echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9006cat >conftest.$ac_ext <<_ACEOF
9007/* confdefs.h.  */
9008_ACEOF
9009cat confdefs.h >>conftest.$ac_ext
9010cat >>conftest.$ac_ext <<_ACEOF
9011/* end confdefs.h.  */
9012$ac_includes_default
9013#include <$ac_header>
9014_ACEOF
9015rm -f conftest.$ac_objext
9016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9017  (eval $ac_compile) 2>conftest.er1
9018  ac_status=$?
9019  grep -v '^ *+' conftest.er1 >conftest.err
9020  rm -f conftest.er1
9021  cat conftest.err >&5
9022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023  (exit $ac_status); } &&
9024	 { ac_try='test -z "$ac_c_werror_flag"
9025			 || test ! -s conftest.err'
9026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027  (eval $ac_try) 2>&5
9028  ac_status=$?
9029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030  (exit $ac_status); }; } &&
9031	 { ac_try='test -s conftest.$ac_objext'
9032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033  (eval $ac_try) 2>&5
9034  ac_status=$?
9035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036  (exit $ac_status); }; }; then
9037  ac_header_compiler=yes
9038else
9039  echo "$as_me: failed program was:" >&5
9040sed 's/^/| /' conftest.$ac_ext >&5
9041
9042ac_header_compiler=no
9043fi
9044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9046echo "${ECHO_T}$ac_header_compiler" >&6
9047
9048# Is the header present?
9049echo "$as_me:$LINENO: checking $ac_header presence" >&5
9050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9051cat >conftest.$ac_ext <<_ACEOF
9052/* confdefs.h.  */
9053_ACEOF
9054cat confdefs.h >>conftest.$ac_ext
9055cat >>conftest.$ac_ext <<_ACEOF
9056/* end confdefs.h.  */
9057#include <$ac_header>
9058_ACEOF
9059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9060  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9061  ac_status=$?
9062  grep -v '^ *+' conftest.er1 >conftest.err
9063  rm -f conftest.er1
9064  cat conftest.err >&5
9065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066  (exit $ac_status); } >/dev/null; then
9067  if test -s conftest.err; then
9068    ac_cpp_err=$ac_c_preproc_warn_flag
9069    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9070  else
9071    ac_cpp_err=
9072  fi
9073else
9074  ac_cpp_err=yes
9075fi
9076if test -z "$ac_cpp_err"; then
9077  ac_header_preproc=yes
9078else
9079  echo "$as_me: failed program was:" >&5
9080sed 's/^/| /' conftest.$ac_ext >&5
9081
9082  ac_header_preproc=no
9083fi
9084rm -f conftest.err conftest.$ac_ext
9085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086echo "${ECHO_T}$ac_header_preproc" >&6
9087
9088# So?  What about this header?
9089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9090  yes:no: )
9091    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9095    ac_header_preproc=yes
9096    ;;
9097  no:yes:* )
9098    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9100    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9101echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9102    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9104    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9105echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9106    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9108    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9110    (
9111      cat <<\_ASBOX
9112## ------------------------------------------ ##
9113## Report this to the AC_PACKAGE_NAME lists.  ##
9114## ------------------------------------------ ##
9115_ASBOX
9116    ) |
9117      sed "s/^/$as_me: WARNING:     /" >&2
9118    ;;
9119esac
9120echo "$as_me:$LINENO: checking for $ac_header" >&5
9121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122if eval "test \"\${$as_ac_Header+set}\" = set"; then
9123  echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125  eval "$as_ac_Header=\$ac_header_preproc"
9126fi
9127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9129
9130fi
9131if test `eval echo '${'$as_ac_Header'}'` = yes; then
9132  cat >>confdefs.h <<_ACEOF
9133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9134_ACEOF
9135
9136fi
9137
9138done
9139
9140
9141  if test $ac_cv_header_Xm_XpmP_h = yes; then
9142        echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9143echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9144    cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h.  */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h.  */
9150#include <Xm/XpmP.h>
9151int
9152main ()
9153{
9154XpmAttributes_21 attr;
9155  ;
9156  return 0;
9157}
9158_ACEOF
9159rm -f conftest.$ac_objext
9160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9161  (eval $ac_compile) 2>conftest.er1
9162  ac_status=$?
9163  grep -v '^ *+' conftest.er1 >conftest.err
9164  rm -f conftest.er1
9165  cat conftest.err >&5
9166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167  (exit $ac_status); } &&
9168	 { ac_try='test -z "$ac_c_werror_flag"
9169			 || test ! -s conftest.err'
9170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171  (eval $ac_try) 2>&5
9172  ac_status=$?
9173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174  (exit $ac_status); }; } &&
9175	 { ac_try='test -s conftest.$ac_objext'
9176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177  (eval $ac_try) 2>&5
9178  ac_status=$?
9179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180  (exit $ac_status); }; }; then
9181  echo "$as_me:$LINENO: result: yes" >&5
9182echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9183#define XPMATTRIBUTES_TYPE XpmAttributes_21
9184_ACEOF
9185
9186else
9187  echo "$as_me: failed program was:" >&5
9188sed 's/^/| /' conftest.$ac_ext >&5
9189
9190echo "$as_me:$LINENO: result: no" >&5
9191echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
9192#define XPMATTRIBUTES_TYPE XpmAttributes
9193_ACEOF
9194
9195
9196fi
9197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9198  else
9199    cat >>confdefs.h <<\_ACEOF
9200#define XPMATTRIBUTES_TYPE XpmAttributes_21
9201_ACEOF
9202
9203  fi
9204  CPPFLAGS=$cppflags_save
9205fi
9206
9207if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
9208  echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9209echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
9210  enable_xim="no"
9211fi
9212if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
9213  echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9214echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
9215  enable_fontset="no"
9216fi
9217if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
9218  echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9219echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
9220  enable_fontset="no"
9221fi
9222
9223if test -z "$SKIP_PHOTON"; then
9224  GUITYPE=PHOTONGUI
9225fi
9226
9227
9228
9229
9230
9231
9232if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
9233  { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9234echo "$as_me: error: cannot use workshop without Motif" >&2;}
9235   { (exit 1); exit 1; }; }
9236fi
9237
9238if test "$enable_xim" = "yes"; then
9239  cat >>confdefs.h <<\_ACEOF
9240#define FEAT_XIM 1
9241_ACEOF
9242
9243fi
9244if test "$enable_fontset" = "yes"; then
9245  cat >>confdefs.h <<\_ACEOF
9246#define FEAT_XFONTSET 1
9247_ACEOF
9248
9249fi
9250
9251
9252
9253
9254if test "$enable_hangulinput" = "yes"; then
9255  if test "x$GUITYPE" = "xNONE"; then
9256    echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9257echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
9258    enable_hangulinput=no
9259  else
9260    cat >>confdefs.h <<\_ACEOF
9261#define FEAT_HANGULIN 1
9262_ACEOF
9263
9264    HANGULIN_SRC=hangulin.c
9265
9266    HANGULIN_OBJ=objects/hangulin.o
9267
9268  fi
9269fi
9270
9271
9272echo "$as_me:$LINENO: checking quality of toupper" >&5
9273echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
9274if test "$cross_compiling" = yes; then
9275  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9276echo "$as_me: error: failed to compile test program" >&2;}
9277   { (exit 1); exit 1; }; }
9278else
9279  cat >conftest.$ac_ext <<_ACEOF
9280/* confdefs.h.  */
9281_ACEOF
9282cat confdefs.h >>conftest.$ac_ext
9283cat >>conftest.$ac_ext <<_ACEOF
9284/* end confdefs.h.  */
9285#include <ctype.h>
9286main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
9287_ACEOF
9288rm -f conftest$ac_exeext
9289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290  (eval $ac_link) 2>&5
9291  ac_status=$?
9292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295  (eval $ac_try) 2>&5
9296  ac_status=$?
9297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298  (exit $ac_status); }; }; then
9299  cat >>confdefs.h <<\_ACEOF
9300#define BROKEN_TOUPPER 1
9301_ACEOF
9302 echo "$as_me:$LINENO: result: bad" >&5
9303echo "${ECHO_T}bad" >&6
9304else
9305  echo "$as_me: program exited with status $ac_status" >&5
9306echo "$as_me: failed program was:" >&5
9307sed 's/^/| /' conftest.$ac_ext >&5
9308
9309( exit $ac_status )
9310echo "$as_me:$LINENO: result: good" >&5
9311echo "${ECHO_T}good" >&6
9312fi
9313rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9314fi
9315
9316echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9317echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9318cat >conftest.$ac_ext <<_ACEOF
9319/* confdefs.h.  */
9320_ACEOF
9321cat confdefs.h >>conftest.$ac_ext
9322cat >>conftest.$ac_ext <<_ACEOF
9323/* end confdefs.h.  */
9324
9325int
9326main ()
9327{
9328printf("(" __DATE__ " " __TIME__ ")");
9329  ;
9330  return 0;
9331}
9332_ACEOF
9333rm -f conftest.$ac_objext
9334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9335  (eval $ac_compile) 2>conftest.er1
9336  ac_status=$?
9337  grep -v '^ *+' conftest.er1 >conftest.err
9338  rm -f conftest.er1
9339  cat conftest.err >&5
9340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341  (exit $ac_status); } &&
9342	 { ac_try='test -z "$ac_c_werror_flag"
9343			 || test ! -s conftest.err'
9344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345  (eval $ac_try) 2>&5
9346  ac_status=$?
9347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348  (exit $ac_status); }; } &&
9349	 { ac_try='test -s conftest.$ac_objext'
9350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351  (eval $ac_try) 2>&5
9352  ac_status=$?
9353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354  (exit $ac_status); }; }; then
9355  echo "$as_me:$LINENO: result: yes" >&5
9356echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9357#define HAVE_DATE_TIME 1
9358_ACEOF
9359
9360else
9361  echo "$as_me: failed program was:" >&5
9362sed 's/^/| /' conftest.$ac_ext >&5
9363
9364echo "$as_me:$LINENO: result: no" >&5
9365echo "${ECHO_T}no" >&6
9366fi
9367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9368
9369if test "${ac_cv_header_elf_h+set}" = set; then
9370  echo "$as_me:$LINENO: checking for elf.h" >&5
9371echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9372if test "${ac_cv_header_elf_h+set}" = set; then
9373  echo $ECHO_N "(cached) $ECHO_C" >&6
9374fi
9375echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9376echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9377else
9378  # Is the header compilable?
9379echo "$as_me:$LINENO: checking elf.h usability" >&5
9380echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9381cat >conftest.$ac_ext <<_ACEOF
9382/* confdefs.h.  */
9383_ACEOF
9384cat confdefs.h >>conftest.$ac_ext
9385cat >>conftest.$ac_ext <<_ACEOF
9386/* end confdefs.h.  */
9387$ac_includes_default
9388#include <elf.h>
9389_ACEOF
9390rm -f conftest.$ac_objext
9391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9392  (eval $ac_compile) 2>conftest.er1
9393  ac_status=$?
9394  grep -v '^ *+' conftest.er1 >conftest.err
9395  rm -f conftest.er1
9396  cat conftest.err >&5
9397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398  (exit $ac_status); } &&
9399	 { ac_try='test -z "$ac_c_werror_flag"
9400			 || test ! -s conftest.err'
9401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402  (eval $ac_try) 2>&5
9403  ac_status=$?
9404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405  (exit $ac_status); }; } &&
9406	 { ac_try='test -s conftest.$ac_objext'
9407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408  (eval $ac_try) 2>&5
9409  ac_status=$?
9410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411  (exit $ac_status); }; }; then
9412  ac_header_compiler=yes
9413else
9414  echo "$as_me: failed program was:" >&5
9415sed 's/^/| /' conftest.$ac_ext >&5
9416
9417ac_header_compiler=no
9418fi
9419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9421echo "${ECHO_T}$ac_header_compiler" >&6
9422
9423# Is the header present?
9424echo "$as_me:$LINENO: checking elf.h presence" >&5
9425echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9426cat >conftest.$ac_ext <<_ACEOF
9427/* confdefs.h.  */
9428_ACEOF
9429cat confdefs.h >>conftest.$ac_ext
9430cat >>conftest.$ac_ext <<_ACEOF
9431/* end confdefs.h.  */
9432#include <elf.h>
9433_ACEOF
9434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9435  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9436  ac_status=$?
9437  grep -v '^ *+' conftest.er1 >conftest.err
9438  rm -f conftest.er1
9439  cat conftest.err >&5
9440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441  (exit $ac_status); } >/dev/null; then
9442  if test -s conftest.err; then
9443    ac_cpp_err=$ac_c_preproc_warn_flag
9444    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9445  else
9446    ac_cpp_err=
9447  fi
9448else
9449  ac_cpp_err=yes
9450fi
9451if test -z "$ac_cpp_err"; then
9452  ac_header_preproc=yes
9453else
9454  echo "$as_me: failed program was:" >&5
9455sed 's/^/| /' conftest.$ac_ext >&5
9456
9457  ac_header_preproc=no
9458fi
9459rm -f conftest.err conftest.$ac_ext
9460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9461echo "${ECHO_T}$ac_header_preproc" >&6
9462
9463# So?  What about this header?
9464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9465  yes:no: )
9466    { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9467echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9468    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9469echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9470    ac_header_preproc=yes
9471    ;;
9472  no:yes:* )
9473    { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9474echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9475    { echo "$as_me:$LINENO: WARNING: elf.h:     check for missing prerequisite headers?" >&5
9476echo "$as_me: WARNING: elf.h:     check for missing prerequisite headers?" >&2;}
9477    { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9478echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9479    { echo "$as_me:$LINENO: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&5
9480echo "$as_me: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9481    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9482echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9483    { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9484echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9485    (
9486      cat <<\_ASBOX
9487## ------------------------------------------ ##
9488## Report this to the AC_PACKAGE_NAME lists.  ##
9489## ------------------------------------------ ##
9490_ASBOX
9491    ) |
9492      sed "s/^/$as_me: WARNING:     /" >&2
9493    ;;
9494esac
9495echo "$as_me:$LINENO: checking for elf.h" >&5
9496echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9497if test "${ac_cv_header_elf_h+set}" = set; then
9498  echo $ECHO_N "(cached) $ECHO_C" >&6
9499else
9500  ac_cv_header_elf_h=$ac_header_preproc
9501fi
9502echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9503echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9504
9505fi
9506if test $ac_cv_header_elf_h = yes; then
9507  HAS_ELF=1
9508fi
9509
9510
9511if test "$HAS_ELF" = 1; then
9512
9513echo "$as_me:$LINENO: checking for main in -lelf" >&5
9514echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9515if test "${ac_cv_lib_elf_main+set}" = set; then
9516  echo $ECHO_N "(cached) $ECHO_C" >&6
9517else
9518  ac_check_lib_save_LIBS=$LIBS
9519LIBS="-lelf  $LIBS"
9520cat >conftest.$ac_ext <<_ACEOF
9521/* confdefs.h.  */
9522_ACEOF
9523cat confdefs.h >>conftest.$ac_ext
9524cat >>conftest.$ac_ext <<_ACEOF
9525/* end confdefs.h.  */
9526
9527
9528int
9529main ()
9530{
9531main ();
9532  ;
9533  return 0;
9534}
9535_ACEOF
9536rm -f conftest.$ac_objext conftest$ac_exeext
9537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9538  (eval $ac_link) 2>conftest.er1
9539  ac_status=$?
9540  grep -v '^ *+' conftest.er1 >conftest.err
9541  rm -f conftest.er1
9542  cat conftest.err >&5
9543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544  (exit $ac_status); } &&
9545	 { ac_try='test -z "$ac_c_werror_flag"
9546			 || test ! -s conftest.err'
9547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548  (eval $ac_try) 2>&5
9549  ac_status=$?
9550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551  (exit $ac_status); }; } &&
9552	 { ac_try='test -s conftest$ac_exeext'
9553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554  (eval $ac_try) 2>&5
9555  ac_status=$?
9556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557  (exit $ac_status); }; }; then
9558  ac_cv_lib_elf_main=yes
9559else
9560  echo "$as_me: failed program was:" >&5
9561sed 's/^/| /' conftest.$ac_ext >&5
9562
9563ac_cv_lib_elf_main=no
9564fi
9565rm -f conftest.err conftest.$ac_objext \
9566      conftest$ac_exeext conftest.$ac_ext
9567LIBS=$ac_check_lib_save_LIBS
9568fi
9569echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9570echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9571if test $ac_cv_lib_elf_main = yes; then
9572  cat >>confdefs.h <<_ACEOF
9573#define HAVE_LIBELF 1
9574_ACEOF
9575
9576  LIBS="-lelf $LIBS"
9577
9578fi
9579
9580fi
9581
9582
9583
9584
9585
9586
9587ac_header_dirent=no
9588for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9589  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9590echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9591echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9592if eval "test \"\${$as_ac_Header+set}\" = set"; then
9593  echo $ECHO_N "(cached) $ECHO_C" >&6
9594else
9595  cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h.  */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h.  */
9601#include <sys/types.h>
9602#include <$ac_hdr>
9603
9604int
9605main ()
9606{
9607if ((DIR *) 0)
9608return 0;
9609  ;
9610  return 0;
9611}
9612_ACEOF
9613rm -f conftest.$ac_objext
9614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9615  (eval $ac_compile) 2>conftest.er1
9616  ac_status=$?
9617  grep -v '^ *+' conftest.er1 >conftest.err
9618  rm -f conftest.er1
9619  cat conftest.err >&5
9620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621  (exit $ac_status); } &&
9622	 { ac_try='test -z "$ac_c_werror_flag"
9623			 || test ! -s conftest.err'
9624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625  (eval $ac_try) 2>&5
9626  ac_status=$?
9627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628  (exit $ac_status); }; } &&
9629	 { ac_try='test -s conftest.$ac_objext'
9630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631  (eval $ac_try) 2>&5
9632  ac_status=$?
9633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634  (exit $ac_status); }; }; then
9635  eval "$as_ac_Header=yes"
9636else
9637  echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640eval "$as_ac_Header=no"
9641fi
9642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9643fi
9644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9646if test `eval echo '${'$as_ac_Header'}'` = yes; then
9647  cat >>confdefs.h <<_ACEOF
9648#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9649_ACEOF
9650
9651ac_header_dirent=$ac_hdr; break
9652fi
9653
9654done
9655# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9656if test $ac_header_dirent = dirent.h; then
9657  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9658echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9659if test "${ac_cv_search_opendir+set}" = set; then
9660  echo $ECHO_N "(cached) $ECHO_C" >&6
9661else
9662  ac_func_search_save_LIBS=$LIBS
9663ac_cv_search_opendir=no
9664cat >conftest.$ac_ext <<_ACEOF
9665/* confdefs.h.  */
9666_ACEOF
9667cat confdefs.h >>conftest.$ac_ext
9668cat >>conftest.$ac_ext <<_ACEOF
9669/* end confdefs.h.  */
9670
9671/* Override any gcc2 internal prototype to avoid an error.  */
9672#ifdef __cplusplus
9673extern "C"
9674#endif
9675/* We use char because int might match the return type of a gcc2
9676   builtin and then its argument prototype would still apply.  */
9677char opendir ();
9678int
9679main ()
9680{
9681opendir ();
9682  ;
9683  return 0;
9684}
9685_ACEOF
9686rm -f conftest.$ac_objext conftest$ac_exeext
9687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688  (eval $ac_link) 2>conftest.er1
9689  ac_status=$?
9690  grep -v '^ *+' conftest.er1 >conftest.err
9691  rm -f conftest.er1
9692  cat conftest.err >&5
9693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694  (exit $ac_status); } &&
9695	 { ac_try='test -z "$ac_c_werror_flag"
9696			 || test ! -s conftest.err'
9697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698  (eval $ac_try) 2>&5
9699  ac_status=$?
9700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701  (exit $ac_status); }; } &&
9702	 { ac_try='test -s conftest$ac_exeext'
9703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704  (eval $ac_try) 2>&5
9705  ac_status=$?
9706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707  (exit $ac_status); }; }; then
9708  ac_cv_search_opendir="none required"
9709else
9710  echo "$as_me: failed program was:" >&5
9711sed 's/^/| /' conftest.$ac_ext >&5
9712
9713fi
9714rm -f conftest.err conftest.$ac_objext \
9715      conftest$ac_exeext conftest.$ac_ext
9716if test "$ac_cv_search_opendir" = no; then
9717  for ac_lib in dir; do
9718    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9719    cat >conftest.$ac_ext <<_ACEOF
9720/* confdefs.h.  */
9721_ACEOF
9722cat confdefs.h >>conftest.$ac_ext
9723cat >>conftest.$ac_ext <<_ACEOF
9724/* end confdefs.h.  */
9725
9726/* Override any gcc2 internal prototype to avoid an error.  */
9727#ifdef __cplusplus
9728extern "C"
9729#endif
9730/* We use char because int might match the return type of a gcc2
9731   builtin and then its argument prototype would still apply.  */
9732char opendir ();
9733int
9734main ()
9735{
9736opendir ();
9737  ;
9738  return 0;
9739}
9740_ACEOF
9741rm -f conftest.$ac_objext conftest$ac_exeext
9742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743  (eval $ac_link) 2>conftest.er1
9744  ac_status=$?
9745  grep -v '^ *+' conftest.er1 >conftest.err
9746  rm -f conftest.er1
9747  cat conftest.err >&5
9748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749  (exit $ac_status); } &&
9750	 { ac_try='test -z "$ac_c_werror_flag"
9751			 || test ! -s conftest.err'
9752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753  (eval $ac_try) 2>&5
9754  ac_status=$?
9755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756  (exit $ac_status); }; } &&
9757	 { ac_try='test -s conftest$ac_exeext'
9758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759  (eval $ac_try) 2>&5
9760  ac_status=$?
9761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762  (exit $ac_status); }; }; then
9763  ac_cv_search_opendir="-l$ac_lib"
9764break
9765else
9766  echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
9769fi
9770rm -f conftest.err conftest.$ac_objext \
9771      conftest$ac_exeext conftest.$ac_ext
9772  done
9773fi
9774LIBS=$ac_func_search_save_LIBS
9775fi
9776echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9777echo "${ECHO_T}$ac_cv_search_opendir" >&6
9778if test "$ac_cv_search_opendir" != no; then
9779  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9780
9781fi
9782
9783else
9784  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9785echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9786if test "${ac_cv_search_opendir+set}" = set; then
9787  echo $ECHO_N "(cached) $ECHO_C" >&6
9788else
9789  ac_func_search_save_LIBS=$LIBS
9790ac_cv_search_opendir=no
9791cat >conftest.$ac_ext <<_ACEOF
9792/* confdefs.h.  */
9793_ACEOF
9794cat confdefs.h >>conftest.$ac_ext
9795cat >>conftest.$ac_ext <<_ACEOF
9796/* end confdefs.h.  */
9797
9798/* Override any gcc2 internal prototype to avoid an error.  */
9799#ifdef __cplusplus
9800extern "C"
9801#endif
9802/* We use char because int might match the return type of a gcc2
9803   builtin and then its argument prototype would still apply.  */
9804char opendir ();
9805int
9806main ()
9807{
9808opendir ();
9809  ;
9810  return 0;
9811}
9812_ACEOF
9813rm -f conftest.$ac_objext conftest$ac_exeext
9814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9815  (eval $ac_link) 2>conftest.er1
9816  ac_status=$?
9817  grep -v '^ *+' conftest.er1 >conftest.err
9818  rm -f conftest.er1
9819  cat conftest.err >&5
9820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821  (exit $ac_status); } &&
9822	 { ac_try='test -z "$ac_c_werror_flag"
9823			 || test ! -s conftest.err'
9824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825  (eval $ac_try) 2>&5
9826  ac_status=$?
9827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828  (exit $ac_status); }; } &&
9829	 { ac_try='test -s conftest$ac_exeext'
9830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831  (eval $ac_try) 2>&5
9832  ac_status=$?
9833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834  (exit $ac_status); }; }; then
9835  ac_cv_search_opendir="none required"
9836else
9837  echo "$as_me: failed program was:" >&5
9838sed 's/^/| /' conftest.$ac_ext >&5
9839
9840fi
9841rm -f conftest.err conftest.$ac_objext \
9842      conftest$ac_exeext conftest.$ac_ext
9843if test "$ac_cv_search_opendir" = no; then
9844  for ac_lib in x; do
9845    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9846    cat >conftest.$ac_ext <<_ACEOF
9847/* confdefs.h.  */
9848_ACEOF
9849cat confdefs.h >>conftest.$ac_ext
9850cat >>conftest.$ac_ext <<_ACEOF
9851/* end confdefs.h.  */
9852
9853/* Override any gcc2 internal prototype to avoid an error.  */
9854#ifdef __cplusplus
9855extern "C"
9856#endif
9857/* We use char because int might match the return type of a gcc2
9858   builtin and then its argument prototype would still apply.  */
9859char opendir ();
9860int
9861main ()
9862{
9863opendir ();
9864  ;
9865  return 0;
9866}
9867_ACEOF
9868rm -f conftest.$ac_objext conftest$ac_exeext
9869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870  (eval $ac_link) 2>conftest.er1
9871  ac_status=$?
9872  grep -v '^ *+' conftest.er1 >conftest.err
9873  rm -f conftest.er1
9874  cat conftest.err >&5
9875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876  (exit $ac_status); } &&
9877	 { ac_try='test -z "$ac_c_werror_flag"
9878			 || test ! -s conftest.err'
9879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880  (eval $ac_try) 2>&5
9881  ac_status=$?
9882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883  (exit $ac_status); }; } &&
9884	 { ac_try='test -s conftest$ac_exeext'
9885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886  (eval $ac_try) 2>&5
9887  ac_status=$?
9888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889  (exit $ac_status); }; }; then
9890  ac_cv_search_opendir="-l$ac_lib"
9891break
9892else
9893  echo "$as_me: failed program was:" >&5
9894sed 's/^/| /' conftest.$ac_ext >&5
9895
9896fi
9897rm -f conftest.err conftest.$ac_objext \
9898      conftest$ac_exeext conftest.$ac_ext
9899  done
9900fi
9901LIBS=$ac_func_search_save_LIBS
9902fi
9903echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9904echo "${ECHO_T}$ac_cv_search_opendir" >&6
9905if test "$ac_cv_search_opendir" != no; then
9906  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9907
9908fi
9909
9910fi
9911
9912
9913echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9914echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9915if test "${ac_cv_header_stdc+set}" = set; then
9916  echo $ECHO_N "(cached) $ECHO_C" >&6
9917else
9918  cat >conftest.$ac_ext <<_ACEOF
9919/* confdefs.h.  */
9920_ACEOF
9921cat confdefs.h >>conftest.$ac_ext
9922cat >>conftest.$ac_ext <<_ACEOF
9923/* end confdefs.h.  */
9924#include <stdlib.h>
9925#include <stdarg.h>
9926#include <string.h>
9927#include <float.h>
9928
9929int
9930main ()
9931{
9932
9933  ;
9934  return 0;
9935}
9936_ACEOF
9937rm -f conftest.$ac_objext
9938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9939  (eval $ac_compile) 2>conftest.er1
9940  ac_status=$?
9941  grep -v '^ *+' conftest.er1 >conftest.err
9942  rm -f conftest.er1
9943  cat conftest.err >&5
9944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945  (exit $ac_status); } &&
9946	 { ac_try='test -z "$ac_c_werror_flag"
9947			 || test ! -s conftest.err'
9948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949  (eval $ac_try) 2>&5
9950  ac_status=$?
9951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952  (exit $ac_status); }; } &&
9953	 { ac_try='test -s conftest.$ac_objext'
9954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955  (eval $ac_try) 2>&5
9956  ac_status=$?
9957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958  (exit $ac_status); }; }; then
9959  ac_cv_header_stdc=yes
9960else
9961  echo "$as_me: failed program was:" >&5
9962sed 's/^/| /' conftest.$ac_ext >&5
9963
9964ac_cv_header_stdc=no
9965fi
9966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9967
9968if test $ac_cv_header_stdc = yes; then
9969  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9970  cat >conftest.$ac_ext <<_ACEOF
9971/* confdefs.h.  */
9972_ACEOF
9973cat confdefs.h >>conftest.$ac_ext
9974cat >>conftest.$ac_ext <<_ACEOF
9975/* end confdefs.h.  */
9976#include <string.h>
9977
9978_ACEOF
9979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9980  $EGREP "memchr" >/dev/null 2>&1; then
9981  :
9982else
9983  ac_cv_header_stdc=no
9984fi
9985rm -f conftest*
9986
9987fi
9988
9989if test $ac_cv_header_stdc = yes; then
9990  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9991  cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h.  */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
9996/* end confdefs.h.  */
9997#include <stdlib.h>
9998
9999_ACEOF
10000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10001  $EGREP "free" >/dev/null 2>&1; then
10002  :
10003else
10004  ac_cv_header_stdc=no
10005fi
10006rm -f conftest*
10007
10008fi
10009
10010if test $ac_cv_header_stdc = yes; then
10011  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10012  if test "$cross_compiling" = yes; then
10013  :
10014else
10015  cat >conftest.$ac_ext <<_ACEOF
10016/* confdefs.h.  */
10017_ACEOF
10018cat confdefs.h >>conftest.$ac_ext
10019cat >>conftest.$ac_ext <<_ACEOF
10020/* end confdefs.h.  */
10021#include <ctype.h>
10022#if ((' ' & 0x0FF) == 0x020)
10023# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10024# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10025#else
10026# define ISLOWER(c) \
10027		   (('a' <= (c) && (c) <= 'i') \
10028		     || ('j' <= (c) && (c) <= 'r') \
10029		     || ('s' <= (c) && (c) <= 'z'))
10030# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10031#endif
10032
10033#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10034int
10035main ()
10036{
10037  int i;
10038  for (i = 0; i < 256; i++)
10039    if (XOR (islower (i), ISLOWER (i))
10040	|| toupper (i) != TOUPPER (i))
10041      exit(2);
10042  exit (0);
10043}
10044_ACEOF
10045rm -f conftest$ac_exeext
10046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047  (eval $ac_link) 2>&5
10048  ac_status=$?
10049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052  (eval $ac_try) 2>&5
10053  ac_status=$?
10054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055  (exit $ac_status); }; }; then
10056  :
10057else
10058  echo "$as_me: program exited with status $ac_status" >&5
10059echo "$as_me: failed program was:" >&5
10060sed 's/^/| /' conftest.$ac_ext >&5
10061
10062( exit $ac_status )
10063ac_cv_header_stdc=no
10064fi
10065rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10066fi
10067fi
10068fi
10069echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10070echo "${ECHO_T}$ac_cv_header_stdc" >&6
10071if test $ac_cv_header_stdc = yes; then
10072
10073cat >>confdefs.h <<\_ACEOF
10074#define STDC_HEADERS 1
10075_ACEOF
10076
10077fi
10078
10079echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10080echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10081if test "${ac_cv_header_sys_wait_h+set}" = set; then
10082  echo $ECHO_N "(cached) $ECHO_C" >&6
10083else
10084  cat >conftest.$ac_ext <<_ACEOF
10085/* confdefs.h.  */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
10089/* end confdefs.h.  */
10090#include <sys/types.h>
10091#include <sys/wait.h>
10092#ifndef WEXITSTATUS
10093# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10094#endif
10095#ifndef WIFEXITED
10096# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10097#endif
10098
10099int
10100main ()
10101{
10102  int s;
10103  wait (&s);
10104  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10105  ;
10106  return 0;
10107}
10108_ACEOF
10109rm -f conftest.$ac_objext
10110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10111  (eval $ac_compile) 2>conftest.er1
10112  ac_status=$?
10113  grep -v '^ *+' conftest.er1 >conftest.err
10114  rm -f conftest.er1
10115  cat conftest.err >&5
10116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117  (exit $ac_status); } &&
10118	 { ac_try='test -z "$ac_c_werror_flag"
10119			 || test ! -s conftest.err'
10120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121  (eval $ac_try) 2>&5
10122  ac_status=$?
10123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124  (exit $ac_status); }; } &&
10125	 { ac_try='test -s conftest.$ac_objext'
10126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127  (eval $ac_try) 2>&5
10128  ac_status=$?
10129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130  (exit $ac_status); }; }; then
10131  ac_cv_header_sys_wait_h=yes
10132else
10133  echo "$as_me: failed program was:" >&5
10134sed 's/^/| /' conftest.$ac_ext >&5
10135
10136ac_cv_header_sys_wait_h=no
10137fi
10138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10139fi
10140echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10141echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10142if test $ac_cv_header_sys_wait_h = yes; then
10143
10144cat >>confdefs.h <<\_ACEOF
10145#define HAVE_SYS_WAIT_H 1
10146_ACEOF
10147
10148fi
10149
10150
10151if test $ac_cv_header_sys_wait_h = no; then
10152  echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10153echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10154  cat >conftest.$ac_ext <<_ACEOF
10155/* confdefs.h.  */
10156_ACEOF
10157cat confdefs.h >>conftest.$ac_ext
10158cat >>conftest.$ac_ext <<_ACEOF
10159/* end confdefs.h.  */
10160#include <sys/wait.h>
10161int
10162main ()
10163{
10164union wait xx, yy; xx = yy
10165  ;
10166  return 0;
10167}
10168_ACEOF
10169rm -f conftest.$ac_objext
10170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171  (eval $ac_compile) 2>conftest.er1
10172  ac_status=$?
10173  grep -v '^ *+' conftest.er1 >conftest.err
10174  rm -f conftest.er1
10175  cat conftest.err >&5
10176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177  (exit $ac_status); } &&
10178	 { ac_try='test -z "$ac_c_werror_flag"
10179			 || test ! -s conftest.err'
10180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181  (eval $ac_try) 2>&5
10182  ac_status=$?
10183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184  (exit $ac_status); }; } &&
10185	 { ac_try='test -s conftest.$ac_objext'
10186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187  (eval $ac_try) 2>&5
10188  ac_status=$?
10189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190  (exit $ac_status); }; }; then
10191  echo "$as_me:$LINENO: result: yes" >&5
10192echo "${ECHO_T}yes" >&6
10193			cat >>confdefs.h <<\_ACEOF
10194#define HAVE_SYS_WAIT_H 1
10195_ACEOF
10196
10197			cat >>confdefs.h <<\_ACEOF
10198#define HAVE_UNION_WAIT 1
10199_ACEOF
10200
10201else
10202  echo "$as_me: failed program was:" >&5
10203sed 's/^/| /' conftest.$ac_ext >&5
10204
10205echo "$as_me:$LINENO: result: no" >&5
10206echo "${ECHO_T}no" >&6
10207fi
10208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10209fi
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
10250
10251for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10252	termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10253	iconv.h langinfo.h unistd.h stropts.h errno.h \
10254	sys/resource.h sys/systeminfo.h locale.h \
10255	sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10256	poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10257	libgen.h util/debug.h util/msg18n.h frame.h \
10258	sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10259do
10260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10261if eval "test \"\${$as_ac_Header+set}\" = set"; then
10262  echo "$as_me:$LINENO: checking for $ac_header" >&5
10263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10264if eval "test \"\${$as_ac_Header+set}\" = set"; then
10265  echo $ECHO_N "(cached) $ECHO_C" >&6
10266fi
10267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10269else
10270  # Is the header compilable?
10271echo "$as_me:$LINENO: checking $ac_header usability" >&5
10272echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10273cat >conftest.$ac_ext <<_ACEOF
10274/* confdefs.h.  */
10275_ACEOF
10276cat confdefs.h >>conftest.$ac_ext
10277cat >>conftest.$ac_ext <<_ACEOF
10278/* end confdefs.h.  */
10279$ac_includes_default
10280#include <$ac_header>
10281_ACEOF
10282rm -f conftest.$ac_objext
10283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10284  (eval $ac_compile) 2>conftest.er1
10285  ac_status=$?
10286  grep -v '^ *+' conftest.er1 >conftest.err
10287  rm -f conftest.er1
10288  cat conftest.err >&5
10289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290  (exit $ac_status); } &&
10291	 { ac_try='test -z "$ac_c_werror_flag"
10292			 || test ! -s conftest.err'
10293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294  (eval $ac_try) 2>&5
10295  ac_status=$?
10296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297  (exit $ac_status); }; } &&
10298	 { ac_try='test -s conftest.$ac_objext'
10299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300  (eval $ac_try) 2>&5
10301  ac_status=$?
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); }; }; then
10304  ac_header_compiler=yes
10305else
10306  echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309ac_header_compiler=no
10310fi
10311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10313echo "${ECHO_T}$ac_header_compiler" >&6
10314
10315# Is the header present?
10316echo "$as_me:$LINENO: checking $ac_header presence" >&5
10317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10318cat >conftest.$ac_ext <<_ACEOF
10319/* confdefs.h.  */
10320_ACEOF
10321cat confdefs.h >>conftest.$ac_ext
10322cat >>conftest.$ac_ext <<_ACEOF
10323/* end confdefs.h.  */
10324#include <$ac_header>
10325_ACEOF
10326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10327  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10328  ac_status=$?
10329  grep -v '^ *+' conftest.er1 >conftest.err
10330  rm -f conftest.er1
10331  cat conftest.err >&5
10332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333  (exit $ac_status); } >/dev/null; then
10334  if test -s conftest.err; then
10335    ac_cpp_err=$ac_c_preproc_warn_flag
10336    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10337  else
10338    ac_cpp_err=
10339  fi
10340else
10341  ac_cpp_err=yes
10342fi
10343if test -z "$ac_cpp_err"; then
10344  ac_header_preproc=yes
10345else
10346  echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
10349  ac_header_preproc=no
10350fi
10351rm -f conftest.err conftest.$ac_ext
10352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10353echo "${ECHO_T}$ac_header_preproc" >&6
10354
10355# So?  What about this header?
10356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10357  yes:no: )
10358    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10359echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10360    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10361echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10362    ac_header_preproc=yes
10363    ;;
10364  no:yes:* )
10365    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10366echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10367    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10368echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10369    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10370echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10371    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10372echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10373    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10374echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10375    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10376echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10377    (
10378      cat <<\_ASBOX
10379## ------------------------------------------ ##
10380## Report this to the AC_PACKAGE_NAME lists.  ##
10381## ------------------------------------------ ##
10382_ASBOX
10383    ) |
10384      sed "s/^/$as_me: WARNING:     /" >&2
10385    ;;
10386esac
10387echo "$as_me:$LINENO: checking for $ac_header" >&5
10388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10389if eval "test \"\${$as_ac_Header+set}\" = set"; then
10390  echo $ECHO_N "(cached) $ECHO_C" >&6
10391else
10392  eval "$as_ac_Header=\$ac_header_preproc"
10393fi
10394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10396
10397fi
10398if test `eval echo '${'$as_ac_Header'}'` = yes; then
10399  cat >>confdefs.h <<_ACEOF
10400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10401_ACEOF
10402
10403fi
10404
10405done
10406
10407
10408echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10409echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10410cat >conftest.$ac_ext <<_ACEOF
10411/* confdefs.h.  */
10412_ACEOF
10413cat confdefs.h >>conftest.$ac_ext
10414cat >>conftest.$ac_ext <<_ACEOF
10415/* end confdefs.h.  */
10416
10417#include <pthread.h>
10418#include <pthread_np.h>
10419int
10420main ()
10421{
10422int i; i = 0;
10423  ;
10424  return 0;
10425}
10426_ACEOF
10427rm -f conftest.$ac_objext
10428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10429  (eval $ac_compile) 2>conftest.er1
10430  ac_status=$?
10431  grep -v '^ *+' conftest.er1 >conftest.err
10432  rm -f conftest.er1
10433  cat conftest.err >&5
10434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435  (exit $ac_status); } &&
10436	 { ac_try='test -z "$ac_c_werror_flag"
10437			 || test ! -s conftest.err'
10438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439  (eval $ac_try) 2>&5
10440  ac_status=$?
10441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442  (exit $ac_status); }; } &&
10443	 { ac_try='test -s conftest.$ac_objext'
10444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445  (eval $ac_try) 2>&5
10446  ac_status=$?
10447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448  (exit $ac_status); }; }; then
10449  echo "$as_me:$LINENO: result: yes" >&5
10450echo "${ECHO_T}yes" >&6
10451		      cat >>confdefs.h <<\_ACEOF
10452#define HAVE_PTHREAD_NP_H 1
10453_ACEOF
10454
10455else
10456  echo "$as_me: failed program was:" >&5
10457sed 's/^/| /' conftest.$ac_ext >&5
10458
10459echo "$as_me:$LINENO: result: no" >&5
10460echo "${ECHO_T}no" >&6
10461fi
10462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10463
10464
10465for ac_header in strings.h
10466do
10467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10468if eval "test \"\${$as_ac_Header+set}\" = set"; then
10469  echo "$as_me:$LINENO: checking for $ac_header" >&5
10470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10471if eval "test \"\${$as_ac_Header+set}\" = set"; then
10472  echo $ECHO_N "(cached) $ECHO_C" >&6
10473fi
10474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10476else
10477  # Is the header compilable?
10478echo "$as_me:$LINENO: checking $ac_header usability" >&5
10479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10480cat >conftest.$ac_ext <<_ACEOF
10481/* confdefs.h.  */
10482_ACEOF
10483cat confdefs.h >>conftest.$ac_ext
10484cat >>conftest.$ac_ext <<_ACEOF
10485/* end confdefs.h.  */
10486$ac_includes_default
10487#include <$ac_header>
10488_ACEOF
10489rm -f conftest.$ac_objext
10490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491  (eval $ac_compile) 2>conftest.er1
10492  ac_status=$?
10493  grep -v '^ *+' conftest.er1 >conftest.err
10494  rm -f conftest.er1
10495  cat conftest.err >&5
10496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497  (exit $ac_status); } &&
10498	 { ac_try='test -z "$ac_c_werror_flag"
10499			 || test ! -s conftest.err'
10500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501  (eval $ac_try) 2>&5
10502  ac_status=$?
10503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504  (exit $ac_status); }; } &&
10505	 { ac_try='test -s conftest.$ac_objext'
10506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507  (eval $ac_try) 2>&5
10508  ac_status=$?
10509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510  (exit $ac_status); }; }; then
10511  ac_header_compiler=yes
10512else
10513  echo "$as_me: failed program was:" >&5
10514sed 's/^/| /' conftest.$ac_ext >&5
10515
10516ac_header_compiler=no
10517fi
10518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10520echo "${ECHO_T}$ac_header_compiler" >&6
10521
10522# Is the header present?
10523echo "$as_me:$LINENO: checking $ac_header presence" >&5
10524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10525cat >conftest.$ac_ext <<_ACEOF
10526/* confdefs.h.  */
10527_ACEOF
10528cat confdefs.h >>conftest.$ac_ext
10529cat >>conftest.$ac_ext <<_ACEOF
10530/* end confdefs.h.  */
10531#include <$ac_header>
10532_ACEOF
10533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10534  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10535  ac_status=$?
10536  grep -v '^ *+' conftest.er1 >conftest.err
10537  rm -f conftest.er1
10538  cat conftest.err >&5
10539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540  (exit $ac_status); } >/dev/null; then
10541  if test -s conftest.err; then
10542    ac_cpp_err=$ac_c_preproc_warn_flag
10543    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10544  else
10545    ac_cpp_err=
10546  fi
10547else
10548  ac_cpp_err=yes
10549fi
10550if test -z "$ac_cpp_err"; then
10551  ac_header_preproc=yes
10552else
10553  echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
10556  ac_header_preproc=no
10557fi
10558rm -f conftest.err conftest.$ac_ext
10559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10560echo "${ECHO_T}$ac_header_preproc" >&6
10561
10562# So?  What about this header?
10563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10564  yes:no: )
10565    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10567    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10569    ac_header_preproc=yes
10570    ;;
10571  no:yes:* )
10572    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10574    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10575echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10576    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10578    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10579echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10580    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10582    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10584    (
10585      cat <<\_ASBOX
10586## ------------------------------------------ ##
10587## Report this to the AC_PACKAGE_NAME lists.  ##
10588## ------------------------------------------ ##
10589_ASBOX
10590    ) |
10591      sed "s/^/$as_me: WARNING:     /" >&2
10592    ;;
10593esac
10594echo "$as_me:$LINENO: checking for $ac_header" >&5
10595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10596if eval "test \"\${$as_ac_Header+set}\" = set"; then
10597  echo $ECHO_N "(cached) $ECHO_C" >&6
10598else
10599  eval "$as_ac_Header=\$ac_header_preproc"
10600fi
10601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10603
10604fi
10605if test `eval echo '${'$as_ac_Header'}'` = yes; then
10606  cat >>confdefs.h <<_ACEOF
10607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10608_ACEOF
10609
10610fi
10611
10612done
10613
10614if test "x$MACOSX" = "xyes"; then
10615    cat >>confdefs.h <<\_ACEOF
10616#define NO_STRINGS_WITH_STRING_H 1
10617_ACEOF
10618
10619else
10620
10621echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10622echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
10623cppflags_save=$CPPFLAGS
10624CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10625cat >conftest.$ac_ext <<_ACEOF
10626/* confdefs.h.  */
10627_ACEOF
10628cat confdefs.h >>conftest.$ac_ext
10629cat >>conftest.$ac_ext <<_ACEOF
10630/* end confdefs.h.  */
10631
10632#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10633# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
10634			/* but don't do it on AIX 5.1 (Uribarri) */
10635#endif
10636#ifdef HAVE_XM_XM_H
10637# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
10638#endif
10639#ifdef HAVE_STRING_H
10640# include <string.h>
10641#endif
10642#if defined(HAVE_STRINGS_H)
10643# include <strings.h>
10644#endif
10645
10646int
10647main ()
10648{
10649int i; i = 0;
10650  ;
10651  return 0;
10652}
10653_ACEOF
10654rm -f conftest.$ac_objext
10655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656  (eval $ac_compile) 2>conftest.er1
10657  ac_status=$?
10658  grep -v '^ *+' conftest.er1 >conftest.err
10659  rm -f conftest.er1
10660  cat conftest.err >&5
10661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662  (exit $ac_status); } &&
10663	 { ac_try='test -z "$ac_c_werror_flag"
10664			 || test ! -s conftest.err'
10665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666  (eval $ac_try) 2>&5
10667  ac_status=$?
10668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669  (exit $ac_status); }; } &&
10670	 { ac_try='test -s conftest.$ac_objext'
10671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672  (eval $ac_try) 2>&5
10673  ac_status=$?
10674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675  (exit $ac_status); }; }; then
10676  echo "$as_me:$LINENO: result: yes" >&5
10677echo "${ECHO_T}yes" >&6
10678else
10679  echo "$as_me: failed program was:" >&5
10680sed 's/^/| /' conftest.$ac_ext >&5
10681
10682cat >>confdefs.h <<\_ACEOF
10683#define NO_STRINGS_WITH_STRING_H 1
10684_ACEOF
10685
10686		echo "$as_me:$LINENO: result: no" >&5
10687echo "${ECHO_T}no" >&6
10688fi
10689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10690CPPFLAGS=$cppflags_save
10691fi
10692
10693if test $ac_cv_c_compiler_gnu = yes; then
10694    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10695echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10696if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10697  echo $ECHO_N "(cached) $ECHO_C" >&6
10698else
10699    ac_pattern="Autoconf.*'x'"
10700  cat >conftest.$ac_ext <<_ACEOF
10701/* confdefs.h.  */
10702_ACEOF
10703cat confdefs.h >>conftest.$ac_ext
10704cat >>conftest.$ac_ext <<_ACEOF
10705/* end confdefs.h.  */
10706#include <sgtty.h>
10707Autoconf TIOCGETP
10708_ACEOF
10709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10710  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10711  ac_cv_prog_gcc_traditional=yes
10712else
10713  ac_cv_prog_gcc_traditional=no
10714fi
10715rm -f conftest*
10716
10717
10718  if test $ac_cv_prog_gcc_traditional = no; then
10719    cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h.  */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h.  */
10725#include <termio.h>
10726Autoconf TCGETA
10727_ACEOF
10728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10729  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10730  ac_cv_prog_gcc_traditional=yes
10731fi
10732rm -f conftest*
10733
10734  fi
10735fi
10736echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10737echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10738  if test $ac_cv_prog_gcc_traditional = yes; then
10739    CC="$CC -traditional"
10740  fi
10741fi
10742
10743echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10744echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10745if test "${ac_cv_c_const+set}" = set; then
10746  echo $ECHO_N "(cached) $ECHO_C" >&6
10747else
10748  cat >conftest.$ac_ext <<_ACEOF
10749/* confdefs.h.  */
10750_ACEOF
10751cat confdefs.h >>conftest.$ac_ext
10752cat >>conftest.$ac_ext <<_ACEOF
10753/* end confdefs.h.  */
10754
10755int
10756main ()
10757{
10758/* FIXME: Include the comments suggested by Paul. */
10759#ifndef __cplusplus
10760  /* Ultrix mips cc rejects this.  */
10761  typedef int charset[2];
10762  const charset x;
10763  /* SunOS 4.1.1 cc rejects this.  */
10764  char const *const *ccp;
10765  char **p;
10766  /* NEC SVR4.0.2 mips cc rejects this.  */
10767  struct point {int x, y;};
10768  static struct point const zero = {0,0};
10769  /* AIX XL C 1.02.0.0 rejects this.
10770     It does not let you subtract one const X* pointer from another in
10771     an arm of an if-expression whose if-part is not a constant
10772     expression */
10773  const char *g = "string";
10774  ccp = &g + (g ? g-g : 0);
10775  /* HPUX 7.0 cc rejects these. */
10776  ++ccp;
10777  p = (char**) ccp;
10778  ccp = (char const *const *) p;
10779  { /* SCO 3.2v4 cc rejects this.  */
10780    char *t;
10781    char const *s = 0 ? (char *) 0 : (char const *) 0;
10782
10783    *t++ = 0;
10784  }
10785  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10786    int x[] = {25, 17};
10787    const int *foo = &x[0];
10788    ++foo;
10789  }
10790  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10791    typedef const int *iptr;
10792    iptr p = 0;
10793    ++p;
10794  }
10795  { /* AIX XL C 1.02.0.0 rejects this saying
10796       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10797    struct s { int j; const int *ap[3]; };
10798    struct s *b; b->j = 5;
10799  }
10800  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10801    const int foo = 10;
10802  }
10803#endif
10804
10805  ;
10806  return 0;
10807}
10808_ACEOF
10809rm -f conftest.$ac_objext
10810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811  (eval $ac_compile) 2>conftest.er1
10812  ac_status=$?
10813  grep -v '^ *+' conftest.er1 >conftest.err
10814  rm -f conftest.er1
10815  cat conftest.err >&5
10816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817  (exit $ac_status); } &&
10818	 { ac_try='test -z "$ac_c_werror_flag"
10819			 || test ! -s conftest.err'
10820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821  (eval $ac_try) 2>&5
10822  ac_status=$?
10823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824  (exit $ac_status); }; } &&
10825	 { ac_try='test -s conftest.$ac_objext'
10826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827  (eval $ac_try) 2>&5
10828  ac_status=$?
10829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830  (exit $ac_status); }; }; then
10831  ac_cv_c_const=yes
10832else
10833  echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
10836ac_cv_c_const=no
10837fi
10838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10839fi
10840echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10841echo "${ECHO_T}$ac_cv_c_const" >&6
10842if test $ac_cv_c_const = no; then
10843
10844cat >>confdefs.h <<\_ACEOF
10845#define const
10846_ACEOF
10847
10848fi
10849
10850echo "$as_me:$LINENO: checking for mode_t" >&5
10851echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10852if test "${ac_cv_type_mode_t+set}" = set; then
10853  echo $ECHO_N "(cached) $ECHO_C" >&6
10854else
10855  cat >conftest.$ac_ext <<_ACEOF
10856/* confdefs.h.  */
10857_ACEOF
10858cat confdefs.h >>conftest.$ac_ext
10859cat >>conftest.$ac_ext <<_ACEOF
10860/* end confdefs.h.  */
10861$ac_includes_default
10862int
10863main ()
10864{
10865if ((mode_t *) 0)
10866  return 0;
10867if (sizeof (mode_t))
10868  return 0;
10869  ;
10870  return 0;
10871}
10872_ACEOF
10873rm -f conftest.$ac_objext
10874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10875  (eval $ac_compile) 2>conftest.er1
10876  ac_status=$?
10877  grep -v '^ *+' conftest.er1 >conftest.err
10878  rm -f conftest.er1
10879  cat conftest.err >&5
10880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881  (exit $ac_status); } &&
10882	 { ac_try='test -z "$ac_c_werror_flag"
10883			 || test ! -s conftest.err'
10884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885  (eval $ac_try) 2>&5
10886  ac_status=$?
10887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888  (exit $ac_status); }; } &&
10889	 { ac_try='test -s conftest.$ac_objext'
10890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891  (eval $ac_try) 2>&5
10892  ac_status=$?
10893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894  (exit $ac_status); }; }; then
10895  ac_cv_type_mode_t=yes
10896else
10897  echo "$as_me: failed program was:" >&5
10898sed 's/^/| /' conftest.$ac_ext >&5
10899
10900ac_cv_type_mode_t=no
10901fi
10902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10903fi
10904echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10905echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10906if test $ac_cv_type_mode_t = yes; then
10907  :
10908else
10909
10910cat >>confdefs.h <<_ACEOF
10911#define mode_t int
10912_ACEOF
10913
10914fi
10915
10916echo "$as_me:$LINENO: checking for off_t" >&5
10917echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10918if test "${ac_cv_type_off_t+set}" = set; then
10919  echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921  cat >conftest.$ac_ext <<_ACEOF
10922/* confdefs.h.  */
10923_ACEOF
10924cat confdefs.h >>conftest.$ac_ext
10925cat >>conftest.$ac_ext <<_ACEOF
10926/* end confdefs.h.  */
10927$ac_includes_default
10928int
10929main ()
10930{
10931if ((off_t *) 0)
10932  return 0;
10933if (sizeof (off_t))
10934  return 0;
10935  ;
10936  return 0;
10937}
10938_ACEOF
10939rm -f conftest.$ac_objext
10940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10941  (eval $ac_compile) 2>conftest.er1
10942  ac_status=$?
10943  grep -v '^ *+' conftest.er1 >conftest.err
10944  rm -f conftest.er1
10945  cat conftest.err >&5
10946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947  (exit $ac_status); } &&
10948	 { ac_try='test -z "$ac_c_werror_flag"
10949			 || test ! -s conftest.err'
10950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951  (eval $ac_try) 2>&5
10952  ac_status=$?
10953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954  (exit $ac_status); }; } &&
10955	 { ac_try='test -s conftest.$ac_objext'
10956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957  (eval $ac_try) 2>&5
10958  ac_status=$?
10959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960  (exit $ac_status); }; }; then
10961  ac_cv_type_off_t=yes
10962else
10963  echo "$as_me: failed program was:" >&5
10964sed 's/^/| /' conftest.$ac_ext >&5
10965
10966ac_cv_type_off_t=no
10967fi
10968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10969fi
10970echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10971echo "${ECHO_T}$ac_cv_type_off_t" >&6
10972if test $ac_cv_type_off_t = yes; then
10973  :
10974else
10975
10976cat >>confdefs.h <<_ACEOF
10977#define off_t long
10978_ACEOF
10979
10980fi
10981
10982echo "$as_me:$LINENO: checking for pid_t" >&5
10983echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10984if test "${ac_cv_type_pid_t+set}" = set; then
10985  echo $ECHO_N "(cached) $ECHO_C" >&6
10986else
10987  cat >conftest.$ac_ext <<_ACEOF
10988/* confdefs.h.  */
10989_ACEOF
10990cat confdefs.h >>conftest.$ac_ext
10991cat >>conftest.$ac_ext <<_ACEOF
10992/* end confdefs.h.  */
10993$ac_includes_default
10994int
10995main ()
10996{
10997if ((pid_t *) 0)
10998  return 0;
10999if (sizeof (pid_t))
11000  return 0;
11001  ;
11002  return 0;
11003}
11004_ACEOF
11005rm -f conftest.$ac_objext
11006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11007  (eval $ac_compile) 2>conftest.er1
11008  ac_status=$?
11009  grep -v '^ *+' conftest.er1 >conftest.err
11010  rm -f conftest.er1
11011  cat conftest.err >&5
11012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013  (exit $ac_status); } &&
11014	 { ac_try='test -z "$ac_c_werror_flag"
11015			 || test ! -s conftest.err'
11016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017  (eval $ac_try) 2>&5
11018  ac_status=$?
11019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020  (exit $ac_status); }; } &&
11021	 { ac_try='test -s conftest.$ac_objext'
11022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023  (eval $ac_try) 2>&5
11024  ac_status=$?
11025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026  (exit $ac_status); }; }; then
11027  ac_cv_type_pid_t=yes
11028else
11029  echo "$as_me: failed program was:" >&5
11030sed 's/^/| /' conftest.$ac_ext >&5
11031
11032ac_cv_type_pid_t=no
11033fi
11034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11035fi
11036echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11037echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11038if test $ac_cv_type_pid_t = yes; then
11039  :
11040else
11041
11042cat >>confdefs.h <<_ACEOF
11043#define pid_t int
11044_ACEOF
11045
11046fi
11047
11048echo "$as_me:$LINENO: checking for size_t" >&5
11049echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11050if test "${ac_cv_type_size_t+set}" = set; then
11051  echo $ECHO_N "(cached) $ECHO_C" >&6
11052else
11053  cat >conftest.$ac_ext <<_ACEOF
11054/* confdefs.h.  */
11055_ACEOF
11056cat confdefs.h >>conftest.$ac_ext
11057cat >>conftest.$ac_ext <<_ACEOF
11058/* end confdefs.h.  */
11059$ac_includes_default
11060int
11061main ()
11062{
11063if ((size_t *) 0)
11064  return 0;
11065if (sizeof (size_t))
11066  return 0;
11067  ;
11068  return 0;
11069}
11070_ACEOF
11071rm -f conftest.$ac_objext
11072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073  (eval $ac_compile) 2>conftest.er1
11074  ac_status=$?
11075  grep -v '^ *+' conftest.er1 >conftest.err
11076  rm -f conftest.er1
11077  cat conftest.err >&5
11078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079  (exit $ac_status); } &&
11080	 { ac_try='test -z "$ac_c_werror_flag"
11081			 || test ! -s conftest.err'
11082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083  (eval $ac_try) 2>&5
11084  ac_status=$?
11085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086  (exit $ac_status); }; } &&
11087	 { ac_try='test -s conftest.$ac_objext'
11088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089  (eval $ac_try) 2>&5
11090  ac_status=$?
11091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092  (exit $ac_status); }; }; then
11093  ac_cv_type_size_t=yes
11094else
11095  echo "$as_me: failed program was:" >&5
11096sed 's/^/| /' conftest.$ac_ext >&5
11097
11098ac_cv_type_size_t=no
11099fi
11100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11101fi
11102echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11103echo "${ECHO_T}$ac_cv_type_size_t" >&6
11104if test $ac_cv_type_size_t = yes; then
11105  :
11106else
11107
11108cat >>confdefs.h <<_ACEOF
11109#define size_t unsigned
11110_ACEOF
11111
11112fi
11113
11114echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11115echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11116if test "${ac_cv_type_uid_t+set}" = set; then
11117  echo $ECHO_N "(cached) $ECHO_C" >&6
11118else
11119  cat >conftest.$ac_ext <<_ACEOF
11120/* confdefs.h.  */
11121_ACEOF
11122cat confdefs.h >>conftest.$ac_ext
11123cat >>conftest.$ac_ext <<_ACEOF
11124/* end confdefs.h.  */
11125#include <sys/types.h>
11126
11127_ACEOF
11128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11129  $EGREP "uid_t" >/dev/null 2>&1; then
11130  ac_cv_type_uid_t=yes
11131else
11132  ac_cv_type_uid_t=no
11133fi
11134rm -f conftest*
11135
11136fi
11137echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11138echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11139if test $ac_cv_type_uid_t = no; then
11140
11141cat >>confdefs.h <<\_ACEOF
11142#define uid_t int
11143_ACEOF
11144
11145
11146cat >>confdefs.h <<\_ACEOF
11147#define gid_t int
11148_ACEOF
11149
11150fi
11151
11152echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11153echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11154if test "${ac_cv_header_time+set}" = set; then
11155  echo $ECHO_N "(cached) $ECHO_C" >&6
11156else
11157  cat >conftest.$ac_ext <<_ACEOF
11158/* confdefs.h.  */
11159_ACEOF
11160cat confdefs.h >>conftest.$ac_ext
11161cat >>conftest.$ac_ext <<_ACEOF
11162/* end confdefs.h.  */
11163#include <sys/types.h>
11164#include <sys/time.h>
11165#include <time.h>
11166
11167int
11168main ()
11169{
11170if ((struct tm *) 0)
11171return 0;
11172  ;
11173  return 0;
11174}
11175_ACEOF
11176rm -f conftest.$ac_objext
11177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11178  (eval $ac_compile) 2>conftest.er1
11179  ac_status=$?
11180  grep -v '^ *+' conftest.er1 >conftest.err
11181  rm -f conftest.er1
11182  cat conftest.err >&5
11183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184  (exit $ac_status); } &&
11185	 { ac_try='test -z "$ac_c_werror_flag"
11186			 || test ! -s conftest.err'
11187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188  (eval $ac_try) 2>&5
11189  ac_status=$?
11190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191  (exit $ac_status); }; } &&
11192	 { ac_try='test -s conftest.$ac_objext'
11193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194  (eval $ac_try) 2>&5
11195  ac_status=$?
11196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197  (exit $ac_status); }; }; then
11198  ac_cv_header_time=yes
11199else
11200  echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
11202
11203ac_cv_header_time=no
11204fi
11205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11206fi
11207echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11208echo "${ECHO_T}$ac_cv_header_time" >&6
11209if test $ac_cv_header_time = yes; then
11210
11211cat >>confdefs.h <<\_ACEOF
11212#define TIME_WITH_SYS_TIME 1
11213_ACEOF
11214
11215fi
11216
11217echo "$as_me:$LINENO: checking for ino_t" >&5
11218echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11219if test "${ac_cv_type_ino_t+set}" = set; then
11220  echo $ECHO_N "(cached) $ECHO_C" >&6
11221else
11222  cat >conftest.$ac_ext <<_ACEOF
11223/* confdefs.h.  */
11224_ACEOF
11225cat confdefs.h >>conftest.$ac_ext
11226cat >>conftest.$ac_ext <<_ACEOF
11227/* end confdefs.h.  */
11228$ac_includes_default
11229int
11230main ()
11231{
11232if ((ino_t *) 0)
11233  return 0;
11234if (sizeof (ino_t))
11235  return 0;
11236  ;
11237  return 0;
11238}
11239_ACEOF
11240rm -f conftest.$ac_objext
11241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242  (eval $ac_compile) 2>conftest.er1
11243  ac_status=$?
11244  grep -v '^ *+' conftest.er1 >conftest.err
11245  rm -f conftest.er1
11246  cat conftest.err >&5
11247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248  (exit $ac_status); } &&
11249	 { ac_try='test -z "$ac_c_werror_flag"
11250			 || test ! -s conftest.err'
11251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252  (eval $ac_try) 2>&5
11253  ac_status=$?
11254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255  (exit $ac_status); }; } &&
11256	 { ac_try='test -s conftest.$ac_objext'
11257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258  (eval $ac_try) 2>&5
11259  ac_status=$?
11260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261  (exit $ac_status); }; }; then
11262  ac_cv_type_ino_t=yes
11263else
11264  echo "$as_me: failed program was:" >&5
11265sed 's/^/| /' conftest.$ac_ext >&5
11266
11267ac_cv_type_ino_t=no
11268fi
11269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11270fi
11271echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11272echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11273if test $ac_cv_type_ino_t = yes; then
11274  :
11275else
11276
11277cat >>confdefs.h <<_ACEOF
11278#define ino_t long
11279_ACEOF
11280
11281fi
11282
11283echo "$as_me:$LINENO: checking for dev_t" >&5
11284echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11285if test "${ac_cv_type_dev_t+set}" = set; then
11286  echo $ECHO_N "(cached) $ECHO_C" >&6
11287else
11288  cat >conftest.$ac_ext <<_ACEOF
11289/* confdefs.h.  */
11290_ACEOF
11291cat confdefs.h >>conftest.$ac_ext
11292cat >>conftest.$ac_ext <<_ACEOF
11293/* end confdefs.h.  */
11294$ac_includes_default
11295int
11296main ()
11297{
11298if ((dev_t *) 0)
11299  return 0;
11300if (sizeof (dev_t))
11301  return 0;
11302  ;
11303  return 0;
11304}
11305_ACEOF
11306rm -f conftest.$ac_objext
11307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11308  (eval $ac_compile) 2>conftest.er1
11309  ac_status=$?
11310  grep -v '^ *+' conftest.er1 >conftest.err
11311  rm -f conftest.er1
11312  cat conftest.err >&5
11313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314  (exit $ac_status); } &&
11315	 { ac_try='test -z "$ac_c_werror_flag"
11316			 || test ! -s conftest.err'
11317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318  (eval $ac_try) 2>&5
11319  ac_status=$?
11320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321  (exit $ac_status); }; } &&
11322	 { ac_try='test -s conftest.$ac_objext'
11323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324  (eval $ac_try) 2>&5
11325  ac_status=$?
11326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327  (exit $ac_status); }; }; then
11328  ac_cv_type_dev_t=yes
11329else
11330  echo "$as_me: failed program was:" >&5
11331sed 's/^/| /' conftest.$ac_ext >&5
11332
11333ac_cv_type_dev_t=no
11334fi
11335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11336fi
11337echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11338echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11339if test $ac_cv_type_dev_t = yes; then
11340  :
11341else
11342
11343cat >>confdefs.h <<_ACEOF
11344#define dev_t unsigned
11345_ACEOF
11346
11347fi
11348
11349
11350echo "$as_me:$LINENO: checking for rlim_t" >&5
11351echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11352if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11353  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11354echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11355else
11356  cat >conftest.$ac_ext <<_ACEOF
11357/* confdefs.h.  */
11358_ACEOF
11359cat confdefs.h >>conftest.$ac_ext
11360cat >>conftest.$ac_ext <<_ACEOF
11361/* end confdefs.h.  */
11362
11363#include <sys/types.h>
11364#if STDC_HEADERS
11365#include <stdlib.h>
11366#include <stddef.h>
11367#endif
11368#ifdef HAVE_SYS_RESOURCE_H
11369#include <sys/resource.h>
11370#endif
11371
11372_ACEOF
11373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11374  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11375  ac_cv_type_rlim_t=yes
11376else
11377  ac_cv_type_rlim_t=no
11378fi
11379rm -f conftest*
11380
11381	  echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11382echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
11383fi
11384if test $ac_cv_type_rlim_t = no; then
11385  cat >> confdefs.h <<\EOF
11386#define rlim_t unsigned long
11387EOF
11388fi
11389
11390echo "$as_me:$LINENO: checking for stack_t" >&5
11391echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11392if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11393  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11394echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
11395else
11396  cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h.  */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h.  */
11402
11403#include <sys/types.h>
11404#if STDC_HEADERS
11405#include <stdlib.h>
11406#include <stddef.h>
11407#endif
11408#include <signal.h>
11409
11410_ACEOF
11411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11412  $EGREP "stack_t" >/dev/null 2>&1; then
11413  ac_cv_type_stack_t=yes
11414else
11415  ac_cv_type_stack_t=no
11416fi
11417rm -f conftest*
11418
11419	  echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11420echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11421fi
11422if test $ac_cv_type_stack_t = no; then
11423  cat >> confdefs.h <<\EOF
11424#define stack_t struct sigaltstack
11425EOF
11426fi
11427
11428echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11429echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11430cat >conftest.$ac_ext <<_ACEOF
11431/* confdefs.h.  */
11432_ACEOF
11433cat confdefs.h >>conftest.$ac_ext
11434cat >>conftest.$ac_ext <<_ACEOF
11435/* end confdefs.h.  */
11436
11437#include <sys/types.h>
11438#if STDC_HEADERS
11439#include <stdlib.h>
11440#include <stddef.h>
11441#endif
11442#include <signal.h>
11443#include "confdefs.h"
11444
11445int
11446main ()
11447{
11448stack_t sigstk; sigstk.ss_base = 0;
11449  ;
11450  return 0;
11451}
11452_ACEOF
11453rm -f conftest.$ac_objext
11454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455  (eval $ac_compile) 2>conftest.er1
11456  ac_status=$?
11457  grep -v '^ *+' conftest.er1 >conftest.err
11458  rm -f conftest.er1
11459  cat conftest.err >&5
11460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461  (exit $ac_status); } &&
11462	 { ac_try='test -z "$ac_c_werror_flag"
11463			 || test ! -s conftest.err'
11464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465  (eval $ac_try) 2>&5
11466  ac_status=$?
11467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468  (exit $ac_status); }; } &&
11469	 { ac_try='test -s conftest.$ac_objext'
11470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471  (eval $ac_try) 2>&5
11472  ac_status=$?
11473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474  (exit $ac_status); }; }; then
11475  echo "$as_me:$LINENO: result: yes" >&5
11476echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11477#define HAVE_SS_BASE 1
11478_ACEOF
11479
11480else
11481  echo "$as_me: failed program was:" >&5
11482sed 's/^/| /' conftest.$ac_ext >&5
11483
11484echo "$as_me:$LINENO: result: no" >&5
11485echo "${ECHO_T}no" >&6
11486fi
11487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11488
11489olibs="$LIBS"
11490echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11491echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11492
11493# Check whether --with-tlib or --without-tlib was given.
11494if test "${with_tlib+set}" = set; then
11495  withval="$with_tlib"
11496
11497fi;
11498if test -n "$with_tlib"; then
11499  echo "$as_me:$LINENO: result: $with_tlib" >&5
11500echo "${ECHO_T}$with_tlib" >&6
11501  LIBS="$LIBS -l$with_tlib"
11502  echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11503echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11504  cat >conftest.$ac_ext <<_ACEOF
11505/* confdefs.h.  */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h.  */
11510
11511int
11512main ()
11513{
11514
11515  ;
11516  return 0;
11517}
11518_ACEOF
11519rm -f conftest.$ac_objext conftest$ac_exeext
11520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521  (eval $ac_link) 2>conftest.er1
11522  ac_status=$?
11523  grep -v '^ *+' conftest.er1 >conftest.err
11524  rm -f conftest.er1
11525  cat conftest.err >&5
11526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527  (exit $ac_status); } &&
11528	 { ac_try='test -z "$ac_c_werror_flag"
11529			 || test ! -s conftest.err'
11530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531  (eval $ac_try) 2>&5
11532  ac_status=$?
11533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534  (exit $ac_status); }; } &&
11535	 { ac_try='test -s conftest$ac_exeext'
11536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537  (eval $ac_try) 2>&5
11538  ac_status=$?
11539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540  (exit $ac_status); }; }; then
11541  echo "$as_me:$LINENO: result: OK" >&5
11542echo "${ECHO_T}OK" >&6
11543else
11544  echo "$as_me: failed program was:" >&5
11545sed 's/^/| /' conftest.$ac_ext >&5
11546
11547{ { echo "$as_me:$LINENO: error: FAILED" >&5
11548echo "$as_me: error: FAILED" >&2;}
11549   { (exit 1); exit 1; }; }
11550fi
11551rm -f conftest.err conftest.$ac_objext \
11552      conftest$ac_exeext conftest.$ac_ext
11553    olibs="$LIBS"
11554else
11555  echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11556echo "${ECHO_T}empty: automatic terminal library selection" >&6
11557            case "`uname -s 2>/dev/null`" in
11558	OSF1)	tlibs="ncurses curses termlib termcap";;
11559	*)	tlibs="ncurses termlib termcap curses";;
11560  esac
11561  for libname in $tlibs; do
11562
11563as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11564echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11565echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11566if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11567  echo $ECHO_N "(cached) $ECHO_C" >&6
11568else
11569  ac_check_lib_save_LIBS=$LIBS
11570LIBS="-l${libname}  $LIBS"
11571cat >conftest.$ac_ext <<_ACEOF
11572/* confdefs.h.  */
11573_ACEOF
11574cat confdefs.h >>conftest.$ac_ext
11575cat >>conftest.$ac_ext <<_ACEOF
11576/* end confdefs.h.  */
11577
11578/* Override any gcc2 internal prototype to avoid an error.  */
11579#ifdef __cplusplus
11580extern "C"
11581#endif
11582/* We use char because int might match the return type of a gcc2
11583   builtin and then its argument prototype would still apply.  */
11584char tgetent ();
11585int
11586main ()
11587{
11588tgetent ();
11589  ;
11590  return 0;
11591}
11592_ACEOF
11593rm -f conftest.$ac_objext conftest$ac_exeext
11594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595  (eval $ac_link) 2>conftest.er1
11596  ac_status=$?
11597  grep -v '^ *+' conftest.er1 >conftest.err
11598  rm -f conftest.er1
11599  cat conftest.err >&5
11600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601  (exit $ac_status); } &&
11602	 { ac_try='test -z "$ac_c_werror_flag"
11603			 || test ! -s conftest.err'
11604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605  (eval $ac_try) 2>&5
11606  ac_status=$?
11607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608  (exit $ac_status); }; } &&
11609	 { ac_try='test -s conftest$ac_exeext'
11610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611  (eval $ac_try) 2>&5
11612  ac_status=$?
11613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614  (exit $ac_status); }; }; then
11615  eval "$as_ac_Lib=yes"
11616else
11617  echo "$as_me: failed program was:" >&5
11618sed 's/^/| /' conftest.$ac_ext >&5
11619
11620eval "$as_ac_Lib=no"
11621fi
11622rm -f conftest.err conftest.$ac_objext \
11623      conftest$ac_exeext conftest.$ac_ext
11624LIBS=$ac_check_lib_save_LIBS
11625fi
11626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11627echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11628if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11629  cat >>confdefs.h <<_ACEOF
11630#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11631_ACEOF
11632
11633  LIBS="-l${libname} $LIBS"
11634
11635fi
11636
11637    if test "x$olibs" != "x$LIBS"; then
11638                        if test "$cross_compiling" = yes; then
11639  res="FAIL"
11640else
11641  cat >conftest.$ac_ext <<_ACEOF
11642/* confdefs.h.  */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h.  */
11647
11648#ifdef HAVE_TERMCAP_H
11649# include <termcap.h>
11650#endif
11651main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11652_ACEOF
11653rm -f conftest$ac_exeext
11654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655  (eval $ac_link) 2>&5
11656  ac_status=$?
11657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660  (eval $ac_try) 2>&5
11661  ac_status=$?
11662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663  (exit $ac_status); }; }; then
11664  res="OK"
11665else
11666  echo "$as_me: program exited with status $ac_status" >&5
11667echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670( exit $ac_status )
11671res="FAIL"
11672fi
11673rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11674fi
11675      if test "$res" = "OK"; then
11676	break
11677      fi
11678      echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11679echo "${ECHO_T}$libname library is not usable" >&6
11680      LIBS="$olibs"
11681    fi
11682  done
11683  if test "x$olibs" = "x$LIBS"; then
11684    echo "$as_me:$LINENO: result: no terminal library found" >&5
11685echo "${ECHO_T}no terminal library found" >&6
11686  fi
11687fi
11688
11689if test "x$olibs" = "x$LIBS"; then
11690  echo "$as_me:$LINENO: checking for tgetent()" >&5
11691echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11692  cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h.  */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h.  */
11698
11699int
11700main ()
11701{
11702char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11703  ;
11704  return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext conftest$ac_exeext
11708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709  (eval $ac_link) 2>conftest.er1
11710  ac_status=$?
11711  grep -v '^ *+' conftest.er1 >conftest.err
11712  rm -f conftest.er1
11713  cat conftest.err >&5
11714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715  (exit $ac_status); } &&
11716	 { ac_try='test -z "$ac_c_werror_flag"
11717			 || test ! -s conftest.err'
11718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719  (eval $ac_try) 2>&5
11720  ac_status=$?
11721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722  (exit $ac_status); }; } &&
11723	 { ac_try='test -s conftest$ac_exeext'
11724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725  (eval $ac_try) 2>&5
11726  ac_status=$?
11727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728  (exit $ac_status); }; }; then
11729  echo "$as_me:$LINENO: result: yes" >&5
11730echo "${ECHO_T}yes" >&6
11731else
11732  echo "$as_me: failed program was:" >&5
11733sed 's/^/| /' conftest.$ac_ext >&5
11734
11735{ { echo "$as_me:$LINENO: error: NOT FOUND!
11736      You need to install a terminal library; for example ncurses.
11737      Or specify the name of the library with --with-tlib." >&5
11738echo "$as_me: error: NOT FOUND!
11739      You need to install a terminal library; for example ncurses.
11740      Or specify the name of the library with --with-tlib." >&2;}
11741   { (exit 1); exit 1; }; }
11742fi
11743rm -f conftest.err conftest.$ac_objext \
11744      conftest$ac_exeext conftest.$ac_ext
11745fi
11746
11747echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11748echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
11749if test "$cross_compiling" = yes; then
11750  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11751echo "$as_me: error: failed to compile test program." >&2;}
11752   { (exit 1); exit 1; }; }
11753else
11754  cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h.  */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h.  */
11760
11761#ifdef HAVE_TERMCAP_H
11762# include <termcap.h>
11763#endif
11764main()
11765{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11766_ACEOF
11767rm -f conftest$ac_exeext
11768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11769  (eval $ac_link) 2>&5
11770  ac_status=$?
11771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774  (eval $ac_try) 2>&5
11775  ac_status=$?
11776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777  (exit $ac_status); }; }; then
11778  echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11779echo "${ECHO_T}no -- we are in termcap land" >&6
11780else
11781  echo "$as_me: program exited with status $ac_status" >&5
11782echo "$as_me: failed program was:" >&5
11783sed 's/^/| /' conftest.$ac_ext >&5
11784
11785( exit $ac_status )
11786echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11787echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
11788#define TERMINFO 1
11789_ACEOF
11790
11791fi
11792rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11793fi
11794
11795if test "x$olibs" != "x$LIBS"; then
11796  echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11797echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
11798  if test "$cross_compiling" = yes; then
11799  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11800echo "$as_me: error: failed to compile test program." >&2;}
11801   { (exit 1); exit 1; }; }
11802else
11803  cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h.  */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h.  */
11809
11810#ifdef HAVE_TERMCAP_H
11811# include <termcap.h>
11812#endif
11813main()
11814{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
11815_ACEOF
11816rm -f conftest$ac_exeext
11817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11818  (eval $ac_link) 2>&5
11819  ac_status=$?
11820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823  (eval $ac_try) 2>&5
11824  ac_status=$?
11825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826  (exit $ac_status); }; }; then
11827  echo "$as_me:$LINENO: result: zero" >&5
11828echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
11829#define TGETENT_ZERO_ERR 0
11830_ACEOF
11831
11832else
11833  echo "$as_me: program exited with status $ac_status" >&5
11834echo "$as_me: failed program was:" >&5
11835sed 's/^/| /' conftest.$ac_ext >&5
11836
11837( exit $ac_status )
11838echo "$as_me:$LINENO: result: non-zero" >&5
11839echo "${ECHO_T}non-zero" >&6
11840fi
11841rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11842fi
11843fi
11844
11845echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11846echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11847cat >conftest.$ac_ext <<_ACEOF
11848/* confdefs.h.  */
11849_ACEOF
11850cat confdefs.h >>conftest.$ac_ext
11851cat >>conftest.$ac_ext <<_ACEOF
11852/* end confdefs.h.  */
11853
11854#ifdef HAVE_TERMCAP_H
11855# include <termcap.h>
11856#endif
11857
11858int
11859main ()
11860{
11861ospeed = 20000
11862  ;
11863  return 0;
11864}
11865_ACEOF
11866rm -f conftest.$ac_objext conftest$ac_exeext
11867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11868  (eval $ac_link) 2>conftest.er1
11869  ac_status=$?
11870  grep -v '^ *+' conftest.er1 >conftest.err
11871  rm -f conftest.er1
11872  cat conftest.err >&5
11873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874  (exit $ac_status); } &&
11875	 { ac_try='test -z "$ac_c_werror_flag"
11876			 || test ! -s conftest.err'
11877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878  (eval $ac_try) 2>&5
11879  ac_status=$?
11880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881  (exit $ac_status); }; } &&
11882	 { ac_try='test -s conftest$ac_exeext'
11883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884  (eval $ac_try) 2>&5
11885  ac_status=$?
11886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887  (exit $ac_status); }; }; then
11888  echo "$as_me:$LINENO: result: yes" >&5
11889echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11890#define HAVE_OSPEED 1
11891_ACEOF
11892
11893else
11894  echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897echo "$as_me:$LINENO: result: no" >&5
11898echo "${ECHO_T}no" >&6
11899	echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11900echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11901	cat >conftest.$ac_ext <<_ACEOF
11902/* confdefs.h.  */
11903_ACEOF
11904cat confdefs.h >>conftest.$ac_ext
11905cat >>conftest.$ac_ext <<_ACEOF
11906/* end confdefs.h.  */
11907
11908#ifdef HAVE_TERMCAP_H
11909# include <termcap.h>
11910#endif
11911extern short ospeed;
11912
11913int
11914main ()
11915{
11916ospeed = 20000
11917  ;
11918  return 0;
11919}
11920_ACEOF
11921rm -f conftest.$ac_objext conftest$ac_exeext
11922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11923  (eval $ac_link) 2>conftest.er1
11924  ac_status=$?
11925  grep -v '^ *+' conftest.er1 >conftest.err
11926  rm -f conftest.er1
11927  cat conftest.err >&5
11928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929  (exit $ac_status); } &&
11930	 { ac_try='test -z "$ac_c_werror_flag"
11931			 || test ! -s conftest.err'
11932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933  (eval $ac_try) 2>&5
11934  ac_status=$?
11935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936  (exit $ac_status); }; } &&
11937	 { ac_try='test -s conftest$ac_exeext'
11938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939  (eval $ac_try) 2>&5
11940  ac_status=$?
11941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942  (exit $ac_status); }; }; then
11943  echo "$as_me:$LINENO: result: yes" >&5
11944echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11945#define OSPEED_EXTERN 1
11946_ACEOF
11947
11948else
11949  echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
11951
11952echo "$as_me:$LINENO: result: no" >&5
11953echo "${ECHO_T}no" >&6
11954fi
11955rm -f conftest.err conftest.$ac_objext \
11956      conftest$ac_exeext conftest.$ac_ext
11957
11958fi
11959rm -f conftest.err conftest.$ac_objext \
11960      conftest$ac_exeext conftest.$ac_ext
11961
11962echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11963echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11964cat >conftest.$ac_ext <<_ACEOF
11965/* confdefs.h.  */
11966_ACEOF
11967cat confdefs.h >>conftest.$ac_ext
11968cat >>conftest.$ac_ext <<_ACEOF
11969/* end confdefs.h.  */
11970
11971#ifdef HAVE_TERMCAP_H
11972# include <termcap.h>
11973#endif
11974
11975int
11976main ()
11977{
11978if (UP == 0 && BC == 0) PC = 1
11979  ;
11980  return 0;
11981}
11982_ACEOF
11983rm -f conftest.$ac_objext conftest$ac_exeext
11984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11985  (eval $ac_link) 2>conftest.er1
11986  ac_status=$?
11987  grep -v '^ *+' conftest.er1 >conftest.err
11988  rm -f conftest.er1
11989  cat conftest.err >&5
11990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991  (exit $ac_status); } &&
11992	 { ac_try='test -z "$ac_c_werror_flag"
11993			 || test ! -s conftest.err'
11994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995  (eval $ac_try) 2>&5
11996  ac_status=$?
11997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998  (exit $ac_status); }; } &&
11999	 { ac_try='test -s conftest$ac_exeext'
12000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001  (eval $ac_try) 2>&5
12002  ac_status=$?
12003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004  (exit $ac_status); }; }; then
12005  echo "$as_me:$LINENO: result: yes" >&5
12006echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12007#define HAVE_UP_BC_PC 1
12008_ACEOF
12009
12010else
12011  echo "$as_me: failed program was:" >&5
12012sed 's/^/| /' conftest.$ac_ext >&5
12013
12014echo "$as_me:$LINENO: result: no" >&5
12015echo "${ECHO_T}no" >&6
12016	echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12017echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12018	cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h.  */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h.  */
12024
12025#ifdef HAVE_TERMCAP_H
12026# include <termcap.h>
12027#endif
12028extern char *UP, *BC, PC;
12029
12030int
12031main ()
12032{
12033if (UP == 0 && BC == 0) PC = 1
12034  ;
12035  return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext conftest$ac_exeext
12039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12040  (eval $ac_link) 2>conftest.er1
12041  ac_status=$?
12042  grep -v '^ *+' conftest.er1 >conftest.err
12043  rm -f conftest.er1
12044  cat conftest.err >&5
12045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046  (exit $ac_status); } &&
12047	 { ac_try='test -z "$ac_c_werror_flag"
12048			 || test ! -s conftest.err'
12049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050  (eval $ac_try) 2>&5
12051  ac_status=$?
12052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053  (exit $ac_status); }; } &&
12054	 { ac_try='test -s conftest$ac_exeext'
12055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056  (eval $ac_try) 2>&5
12057  ac_status=$?
12058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059  (exit $ac_status); }; }; then
12060  echo "$as_me:$LINENO: result: yes" >&5
12061echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12062#define UP_BC_PC_EXTERN 1
12063_ACEOF
12064
12065else
12066  echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
12068
12069echo "$as_me:$LINENO: result: no" >&5
12070echo "${ECHO_T}no" >&6
12071fi
12072rm -f conftest.err conftest.$ac_objext \
12073      conftest$ac_exeext conftest.$ac_ext
12074
12075fi
12076rm -f conftest.err conftest.$ac_objext \
12077      conftest$ac_exeext conftest.$ac_ext
12078
12079echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12080echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12081cat >conftest.$ac_ext <<_ACEOF
12082/* confdefs.h.  */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h.  */
12087
12088#ifdef HAVE_TERMCAP_H
12089# include <termcap.h>
12090#endif
12091
12092int
12093main ()
12094{
12095extern int xx(); tputs("test", 1, (outfuntype)xx)
12096  ;
12097  return 0;
12098}
12099_ACEOF
12100rm -f conftest.$ac_objext
12101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102  (eval $ac_compile) 2>conftest.er1
12103  ac_status=$?
12104  grep -v '^ *+' conftest.er1 >conftest.err
12105  rm -f conftest.er1
12106  cat conftest.err >&5
12107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108  (exit $ac_status); } &&
12109	 { ac_try='test -z "$ac_c_werror_flag"
12110			 || test ! -s conftest.err'
12111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112  (eval $ac_try) 2>&5
12113  ac_status=$?
12114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115  (exit $ac_status); }; } &&
12116	 { ac_try='test -s conftest.$ac_objext'
12117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118  (eval $ac_try) 2>&5
12119  ac_status=$?
12120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121  (exit $ac_status); }; }; then
12122  echo "$as_me:$LINENO: result: yes" >&5
12123echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12124#define HAVE_OUTFUNTYPE 1
12125_ACEOF
12126
12127else
12128  echo "$as_me: failed program was:" >&5
12129sed 's/^/| /' conftest.$ac_ext >&5
12130
12131echo "$as_me:$LINENO: result: no" >&5
12132echo "${ECHO_T}no" >&6
12133fi
12134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12135
12136echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12137echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12138cat >conftest.$ac_ext <<_ACEOF
12139/* confdefs.h.  */
12140_ACEOF
12141cat confdefs.h >>conftest.$ac_ext
12142cat >>conftest.$ac_ext <<_ACEOF
12143/* end confdefs.h.  */
12144
12145#include <sys/types.h>
12146#include <sys/time.h>
12147#include <sys/select.h>
12148int
12149main ()
12150{
12151
12152  ;
12153  return 0;
12154}
12155_ACEOF
12156rm -f conftest.$ac_objext
12157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12158  (eval $ac_compile) 2>conftest.er1
12159  ac_status=$?
12160  grep -v '^ *+' conftest.er1 >conftest.err
12161  rm -f conftest.er1
12162  cat conftest.err >&5
12163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164  (exit $ac_status); } &&
12165	 { ac_try='test -z "$ac_c_werror_flag"
12166			 || test ! -s conftest.err'
12167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168  (eval $ac_try) 2>&5
12169  ac_status=$?
12170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171  (exit $ac_status); }; } &&
12172	 { ac_try='test -s conftest.$ac_objext'
12173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174  (eval $ac_try) 2>&5
12175  ac_status=$?
12176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177  (exit $ac_status); }; }; then
12178  echo "$as_me:$LINENO: result: yes" >&5
12179echo "${ECHO_T}yes" >&6
12180			cat >>confdefs.h <<\_ACEOF
12181#define SYS_SELECT_WITH_SYS_TIME 1
12182_ACEOF
12183
12184else
12185  echo "$as_me: failed program was:" >&5
12186sed 's/^/| /' conftest.$ac_ext >&5
12187
12188echo "$as_me:$LINENO: result: no" >&5
12189echo "${ECHO_T}no" >&6
12190fi
12191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12192
12193
12194echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12195echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12196if test -r /dev/ptc; then
12197  cat >>confdefs.h <<\_ACEOF
12198#define HAVE_DEV_PTC 1
12199_ACEOF
12200
12201  echo "$as_me:$LINENO: result: yes" >&5
12202echo "${ECHO_T}yes" >&6
12203else
12204  echo "$as_me:$LINENO: result: no" >&5
12205echo "${ECHO_T}no" >&6
12206fi
12207
12208echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12209echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
12210if test -c /dev/ptmx ; then
12211  cat >conftest.$ac_ext <<_ACEOF
12212/* confdefs.h.  */
12213_ACEOF
12214cat confdefs.h >>conftest.$ac_ext
12215cat >>conftest.$ac_ext <<_ACEOF
12216/* end confdefs.h.  */
12217
12218int
12219main ()
12220{
12221ptsname(0);grantpt(0);unlockpt(0);
12222  ;
12223  return 0;
12224}
12225_ACEOF
12226rm -f conftest.$ac_objext conftest$ac_exeext
12227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228  (eval $ac_link) 2>conftest.er1
12229  ac_status=$?
12230  grep -v '^ *+' conftest.er1 >conftest.err
12231  rm -f conftest.er1
12232  cat conftest.err >&5
12233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234  (exit $ac_status); } &&
12235	 { ac_try='test -z "$ac_c_werror_flag"
12236			 || test ! -s conftest.err'
12237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238  (eval $ac_try) 2>&5
12239  ac_status=$?
12240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241  (exit $ac_status); }; } &&
12242	 { ac_try='test -s conftest$ac_exeext'
12243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244  (eval $ac_try) 2>&5
12245  ac_status=$?
12246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247  (exit $ac_status); }; }; then
12248  echo "$as_me:$LINENO: result: yes" >&5
12249echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12250#define HAVE_SVR4_PTYS 1
12251_ACEOF
12252
12253else
12254  echo "$as_me: failed program was:" >&5
12255sed 's/^/| /' conftest.$ac_ext >&5
12256
12257echo "$as_me:$LINENO: result: no" >&5
12258echo "${ECHO_T}no" >&6
12259fi
12260rm -f conftest.err conftest.$ac_objext \
12261      conftest$ac_exeext conftest.$ac_ext
12262else
12263  echo "$as_me:$LINENO: result: no" >&5
12264echo "${ECHO_T}no" >&6
12265fi
12266
12267echo "$as_me:$LINENO: checking for ptyranges" >&5
12268echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
12269if test -d /dev/ptym ; then
12270  pdir='/dev/ptym'
12271else
12272  pdir='/dev'
12273fi
12274cat >conftest.$ac_ext <<_ACEOF
12275/* confdefs.h.  */
12276_ACEOF
12277cat confdefs.h >>conftest.$ac_ext
12278cat >>conftest.$ac_ext <<_ACEOF
12279/* end confdefs.h.  */
12280#ifdef M_UNIX
12281   yes;
12282#endif
12283
12284_ACEOF
12285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12286  $EGREP "yes" >/dev/null 2>&1; then
12287  ptys=`echo /dev/ptyp??`
12288else
12289  ptys=`echo $pdir/pty??`
12290fi
12291rm -f conftest*
12292
12293if test "$ptys" != "$pdir/pty??" ; then
12294  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12295  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12296  cat >>confdefs.h <<_ACEOF
12297#define PTYRANGE0 "$p0"
12298_ACEOF
12299
12300  cat >>confdefs.h <<_ACEOF
12301#define PTYRANGE1 "$p1"
12302_ACEOF
12303
12304  echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12305echo "${ECHO_T}$p0 / $p1" >&6
12306else
12307  echo "$as_me:$LINENO: result: don't know" >&5
12308echo "${ECHO_T}don't know" >&6
12309fi
12310
12311echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12312echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
12313rm -f conftest_grp
12314if test "$cross_compiling" = yes; then
12315  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12316echo "$as_me: error: failed to compile test program" >&2;}
12317   { (exit 1); exit 1; }; }
12318else
12319  cat >conftest.$ac_ext <<_ACEOF
12320/* confdefs.h.  */
12321_ACEOF
12322cat confdefs.h >>conftest.$ac_ext
12323cat >>conftest.$ac_ext <<_ACEOF
12324/* end confdefs.h.  */
12325
12326#include <sys/types.h>
12327#include <sys/stat.h>
12328#include <stdio.h>
12329main()
12330{
12331  struct stat sb;
12332  char *x,*ttyname();
12333  int om, m;
12334  FILE *fp;
12335
12336  if (!(x = ttyname(0))) exit(1);
12337  if (stat(x, &sb)) exit(1);
12338  om = sb.st_mode;
12339  if (om & 002) exit(0);
12340  m = system("mesg y");
12341  if (m == -1 || m == 127) exit(1);
12342  if (stat(x, &sb)) exit(1);
12343  m = sb.st_mode;
12344  if (chmod(x, om)) exit(1);
12345  if (m & 002) exit(0);
12346  if (sb.st_gid == getgid()) exit(1);
12347  if (!(fp=fopen("conftest_grp", "w")))
12348    exit(1);
12349  fprintf(fp, "%d\n", sb.st_gid);
12350  fclose(fp);
12351  exit(0);
12352}
12353
12354_ACEOF
12355rm -f conftest$ac_exeext
12356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357  (eval $ac_link) 2>&5
12358  ac_status=$?
12359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362  (eval $ac_try) 2>&5
12363  ac_status=$?
12364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365  (exit $ac_status); }; }; then
12366
12367    if test -f conftest_grp; then
12368	ptygrp=`cat conftest_grp`
12369	echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12370echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12371	cat >>confdefs.h <<\_ACEOF
12372#define PTYMODE 0620
12373_ACEOF
12374
12375	cat >>confdefs.h <<_ACEOF
12376#define PTYGROUP $ptygrp
12377_ACEOF
12378
12379    else
12380	echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12381echo "${ECHO_T}ptys are world accessable" >&6
12382    fi
12383
12384else
12385  echo "$as_me: program exited with status $ac_status" >&5
12386echo "$as_me: failed program was:" >&5
12387sed 's/^/| /' conftest.$ac_ext >&5
12388
12389( exit $ac_status )
12390echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12391echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12392fi
12393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12394fi
12395rm -f conftest_grp
12396
12397
12398echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12399echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12400if test "${ac_cv_type_signal+set}" = set; then
12401  echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403  cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h.  */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h.  */
12409#include <sys/types.h>
12410#include <signal.h>
12411#ifdef signal
12412# undef signal
12413#endif
12414#ifdef __cplusplus
12415extern "C" void (*signal (int, void (*)(int)))(int);
12416#else
12417void (*signal ()) ();
12418#endif
12419
12420int
12421main ()
12422{
12423int i;
12424  ;
12425  return 0;
12426}
12427_ACEOF
12428rm -f conftest.$ac_objext
12429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430  (eval $ac_compile) 2>conftest.er1
12431  ac_status=$?
12432  grep -v '^ *+' conftest.er1 >conftest.err
12433  rm -f conftest.er1
12434  cat conftest.err >&5
12435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436  (exit $ac_status); } &&
12437	 { ac_try='test -z "$ac_c_werror_flag"
12438			 || test ! -s conftest.err'
12439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440  (eval $ac_try) 2>&5
12441  ac_status=$?
12442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443  (exit $ac_status); }; } &&
12444	 { ac_try='test -s conftest.$ac_objext'
12445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446  (eval $ac_try) 2>&5
12447  ac_status=$?
12448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449  (exit $ac_status); }; }; then
12450  ac_cv_type_signal=void
12451else
12452  echo "$as_me: failed program was:" >&5
12453sed 's/^/| /' conftest.$ac_ext >&5
12454
12455ac_cv_type_signal=int
12456fi
12457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12458fi
12459echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12460echo "${ECHO_T}$ac_cv_type_signal" >&6
12461
12462cat >>confdefs.h <<_ACEOF
12463#define RETSIGTYPE $ac_cv_type_signal
12464_ACEOF
12465
12466
12467
12468if test $ac_cv_type_signal = void; then
12469  cat >>confdefs.h <<\_ACEOF
12470#define SIGRETURN return
12471_ACEOF
12472
12473else
12474  cat >>confdefs.h <<\_ACEOF
12475#define SIGRETURN return 0
12476_ACEOF
12477
12478fi
12479
12480echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12481echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12482cat >conftest.$ac_ext <<_ACEOF
12483/* confdefs.h.  */
12484_ACEOF
12485cat confdefs.h >>conftest.$ac_ext
12486cat >>conftest.$ac_ext <<_ACEOF
12487/* end confdefs.h.  */
12488
12489#include <signal.h>
12490test_sig()
12491{
12492    struct sigcontext *scont;
12493    scont = (struct sigcontext *)0;
12494    return 1;
12495}
12496int
12497main ()
12498{
12499
12500  ;
12501  return 0;
12502}
12503_ACEOF
12504rm -f conftest.$ac_objext
12505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12506  (eval $ac_compile) 2>conftest.er1
12507  ac_status=$?
12508  grep -v '^ *+' conftest.er1 >conftest.err
12509  rm -f conftest.er1
12510  cat conftest.err >&5
12511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512  (exit $ac_status); } &&
12513	 { ac_try='test -z "$ac_c_werror_flag"
12514			 || test ! -s conftest.err'
12515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516  (eval $ac_try) 2>&5
12517  ac_status=$?
12518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519  (exit $ac_status); }; } &&
12520	 { ac_try='test -s conftest.$ac_objext'
12521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522  (eval $ac_try) 2>&5
12523  ac_status=$?
12524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525  (exit $ac_status); }; }; then
12526  echo "$as_me:$LINENO: result: yes" >&5
12527echo "${ECHO_T}yes" >&6
12528		cat >>confdefs.h <<\_ACEOF
12529#define HAVE_SIGCONTEXT 1
12530_ACEOF
12531
12532else
12533  echo "$as_me: failed program was:" >&5
12534sed 's/^/| /' conftest.$ac_ext >&5
12535
12536echo "$as_me:$LINENO: result: no" >&5
12537echo "${ECHO_T}no" >&6
12538fi
12539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12540
12541echo "$as_me:$LINENO: checking getcwd implementation" >&5
12542echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
12543if test "$cross_compiling" = yes; then
12544  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12545echo "$as_me: error: failed to compile test program" >&2;}
12546   { (exit 1); exit 1; }; }
12547else
12548  cat >conftest.$ac_ext <<_ACEOF
12549/* confdefs.h.  */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h.  */
12554
12555char *dagger[] = { "IFS=pwd", 0 };
12556main()
12557{
12558  char buffer[500];
12559  extern char **environ;
12560  environ = dagger;
12561  return getcwd(buffer, 500) ? 0 : 1;
12562}
12563_ACEOF
12564rm -f conftest$ac_exeext
12565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566  (eval $ac_link) 2>&5
12567  ac_status=$?
12568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571  (eval $ac_try) 2>&5
12572  ac_status=$?
12573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574  (exit $ac_status); }; }; then
12575  echo "$as_me:$LINENO: result: it is usable" >&5
12576echo "${ECHO_T}it is usable" >&6
12577else
12578  echo "$as_me: program exited with status $ac_status" >&5
12579echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
12581
12582( exit $ac_status )
12583echo "$as_me:$LINENO: result: it stinks" >&5
12584echo "${ECHO_T}it stinks" >&6
12585		cat >>confdefs.h <<\_ACEOF
12586#define BAD_GETCWD 1
12587_ACEOF
12588
12589fi
12590rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12591fi
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
12638
12639for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12640	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12641	memset nanosleep opendir putenv qsort readlink select setenv \
12642	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12643	sigvec strcasecmp strerror strftime stricmp strncasecmp \
12644	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12645	usleep utime utimes
12646do
12647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12648echo "$as_me:$LINENO: checking for $ac_func" >&5
12649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12650if eval "test \"\${$as_ac_var+set}\" = set"; then
12651  echo $ECHO_N "(cached) $ECHO_C" >&6
12652else
12653  cat >conftest.$ac_ext <<_ACEOF
12654/* confdefs.h.  */
12655_ACEOF
12656cat confdefs.h >>conftest.$ac_ext
12657cat >>conftest.$ac_ext <<_ACEOF
12658/* end confdefs.h.  */
12659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12660   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12661#define $ac_func innocuous_$ac_func
12662
12663/* System header to define __stub macros and hopefully few prototypes,
12664    which can conflict with char $ac_func (); below.
12665    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12666    <limits.h> exists even on freestanding compilers.  */
12667
12668#ifdef __STDC__
12669# include <limits.h>
12670#else
12671# include <assert.h>
12672#endif
12673
12674#undef $ac_func
12675
12676/* Override any gcc2 internal prototype to avoid an error.  */
12677#ifdef __cplusplus
12678extern "C"
12679{
12680#endif
12681/* We use char because int might match the return type of a gcc2
12682   builtin and then its argument prototype would still apply.  */
12683char $ac_func ();
12684/* The GNU C library defines this for functions which it implements
12685    to always fail with ENOSYS.  Some functions are actually named
12686    something starting with __ and the normal name is an alias.  */
12687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12688choke me
12689#else
12690char (*f) () = $ac_func;
12691#endif
12692#ifdef __cplusplus
12693}
12694#endif
12695
12696int
12697main ()
12698{
12699return f != $ac_func;
12700  ;
12701  return 0;
12702}
12703_ACEOF
12704rm -f conftest.$ac_objext conftest$ac_exeext
12705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12706  (eval $ac_link) 2>conftest.er1
12707  ac_status=$?
12708  grep -v '^ *+' conftest.er1 >conftest.err
12709  rm -f conftest.er1
12710  cat conftest.err >&5
12711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712  (exit $ac_status); } &&
12713	 { ac_try='test -z "$ac_c_werror_flag"
12714			 || test ! -s conftest.err'
12715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716  (eval $ac_try) 2>&5
12717  ac_status=$?
12718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719  (exit $ac_status); }; } &&
12720	 { ac_try='test -s conftest$ac_exeext'
12721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722  (eval $ac_try) 2>&5
12723  ac_status=$?
12724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725  (exit $ac_status); }; }; then
12726  eval "$as_ac_var=yes"
12727else
12728  echo "$as_me: failed program was:" >&5
12729sed 's/^/| /' conftest.$ac_ext >&5
12730
12731eval "$as_ac_var=no"
12732fi
12733rm -f conftest.err conftest.$ac_objext \
12734      conftest$ac_exeext conftest.$ac_ext
12735fi
12736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12737echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12738if test `eval echo '${'$as_ac_var'}'` = yes; then
12739  cat >>confdefs.h <<_ACEOF
12740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12741_ACEOF
12742
12743fi
12744done
12745
12746
12747echo "$as_me:$LINENO: checking for st_blksize" >&5
12748echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12749cat >conftest.$ac_ext <<_ACEOF
12750/* confdefs.h.  */
12751_ACEOF
12752cat confdefs.h >>conftest.$ac_ext
12753cat >>conftest.$ac_ext <<_ACEOF
12754/* end confdefs.h.  */
12755#include <sys/types.h>
12756#include <sys/stat.h>
12757int
12758main ()
12759{
12760	struct stat st;
12761	int n;
12762
12763	stat("/", &st);
12764	n = (int)st.st_blksize;
12765  ;
12766  return 0;
12767}
12768_ACEOF
12769rm -f conftest.$ac_objext
12770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12771  (eval $ac_compile) 2>conftest.er1
12772  ac_status=$?
12773  grep -v '^ *+' conftest.er1 >conftest.err
12774  rm -f conftest.er1
12775  cat conftest.err >&5
12776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777  (exit $ac_status); } &&
12778	 { ac_try='test -z "$ac_c_werror_flag"
12779			 || test ! -s conftest.err'
12780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781  (eval $ac_try) 2>&5
12782  ac_status=$?
12783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784  (exit $ac_status); }; } &&
12785	 { ac_try='test -s conftest.$ac_objext'
12786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787  (eval $ac_try) 2>&5
12788  ac_status=$?
12789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790  (exit $ac_status); }; }; then
12791  echo "$as_me:$LINENO: result: yes" >&5
12792echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12793#define HAVE_ST_BLKSIZE 1
12794_ACEOF
12795
12796else
12797  echo "$as_me: failed program was:" >&5
12798sed 's/^/| /' conftest.$ac_ext >&5
12799
12800echo "$as_me:$LINENO: result: no" >&5
12801echo "${ECHO_T}no" >&6
12802fi
12803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12804
12805echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12806echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
12807if test "$cross_compiling" = yes; then
12808  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12809echo "$as_me: error: failed to compile test program" >&2;}
12810   { (exit 1); exit 1; }; }
12811else
12812  cat >conftest.$ac_ext <<_ACEOF
12813/* confdefs.h.  */
12814_ACEOF
12815cat confdefs.h >>conftest.$ac_ext
12816cat >>conftest.$ac_ext <<_ACEOF
12817/* end confdefs.h.  */
12818#include <sys/types.h>
12819#include <sys/stat.h>
12820main() {struct stat st;  exit(stat("configure/", &st) != 0); }
12821_ACEOF
12822rm -f conftest$ac_exeext
12823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824  (eval $ac_link) 2>&5
12825  ac_status=$?
12826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829  (eval $ac_try) 2>&5
12830  ac_status=$?
12831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832  (exit $ac_status); }; }; then
12833  echo "$as_me:$LINENO: result: yes" >&5
12834echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12835#define STAT_IGNORES_SLASH 1
12836_ACEOF
12837
12838else
12839  echo "$as_me: program exited with status $ac_status" >&5
12840echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
12843( exit $ac_status )
12844echo "$as_me:$LINENO: result: no" >&5
12845echo "${ECHO_T}no" >&6
12846fi
12847rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12848fi
12849
12850echo "$as_me:$LINENO: checking for iconv_open()" >&5
12851echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
12852save_LIBS="$LIBS"
12853LIBS="$LIBS -liconv"
12854cat >conftest.$ac_ext <<_ACEOF
12855/* confdefs.h.  */
12856_ACEOF
12857cat confdefs.h >>conftest.$ac_ext
12858cat >>conftest.$ac_ext <<_ACEOF
12859/* end confdefs.h.  */
12860
12861#ifdef HAVE_ICONV_H
12862# include <iconv.h>
12863#endif
12864
12865int
12866main ()
12867{
12868iconv_open("fr", "to");
12869  ;
12870  return 0;
12871}
12872_ACEOF
12873rm -f conftest.$ac_objext conftest$ac_exeext
12874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875  (eval $ac_link) 2>conftest.er1
12876  ac_status=$?
12877  grep -v '^ *+' conftest.er1 >conftest.err
12878  rm -f conftest.er1
12879  cat conftest.err >&5
12880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881  (exit $ac_status); } &&
12882	 { ac_try='test -z "$ac_c_werror_flag"
12883			 || test ! -s conftest.err'
12884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885  (eval $ac_try) 2>&5
12886  ac_status=$?
12887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888  (exit $ac_status); }; } &&
12889	 { ac_try='test -s conftest$ac_exeext'
12890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891  (eval $ac_try) 2>&5
12892  ac_status=$?
12893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894  (exit $ac_status); }; }; then
12895  echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12896echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
12897#define HAVE_ICONV 1
12898_ACEOF
12899
12900else
12901  echo "$as_me: failed program was:" >&5
12902sed 's/^/| /' conftest.$ac_ext >&5
12903
12904LIBS="$save_LIBS"
12905    cat >conftest.$ac_ext <<_ACEOF
12906/* confdefs.h.  */
12907_ACEOF
12908cat confdefs.h >>conftest.$ac_ext
12909cat >>conftest.$ac_ext <<_ACEOF
12910/* end confdefs.h.  */
12911
12912#ifdef HAVE_ICONV_H
12913# include <iconv.h>
12914#endif
12915
12916int
12917main ()
12918{
12919iconv_open("fr", "to");
12920  ;
12921  return 0;
12922}
12923_ACEOF
12924rm -f conftest.$ac_objext conftest$ac_exeext
12925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926  (eval $ac_link) 2>conftest.er1
12927  ac_status=$?
12928  grep -v '^ *+' conftest.er1 >conftest.err
12929  rm -f conftest.er1
12930  cat conftest.err >&5
12931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932  (exit $ac_status); } &&
12933	 { ac_try='test -z "$ac_c_werror_flag"
12934			 || test ! -s conftest.err'
12935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936  (eval $ac_try) 2>&5
12937  ac_status=$?
12938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939  (exit $ac_status); }; } &&
12940	 { ac_try='test -s conftest$ac_exeext'
12941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942  (eval $ac_try) 2>&5
12943  ac_status=$?
12944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945  (exit $ac_status); }; }; then
12946  echo "$as_me:$LINENO: result: yes" >&5
12947echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12948#define HAVE_ICONV 1
12949_ACEOF
12950
12951else
12952  echo "$as_me: failed program was:" >&5
12953sed 's/^/| /' conftest.$ac_ext >&5
12954
12955echo "$as_me:$LINENO: result: no" >&5
12956echo "${ECHO_T}no" >&6
12957fi
12958rm -f conftest.err conftest.$ac_objext \
12959      conftest$ac_exeext conftest.$ac_ext
12960fi
12961rm -f conftest.err conftest.$ac_objext \
12962      conftest$ac_exeext conftest.$ac_ext
12963
12964
12965echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12966echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12967cat >conftest.$ac_ext <<_ACEOF
12968/* confdefs.h.  */
12969_ACEOF
12970cat confdefs.h >>conftest.$ac_ext
12971cat >>conftest.$ac_ext <<_ACEOF
12972/* end confdefs.h.  */
12973
12974#ifdef HAVE_LANGINFO_H
12975# include <langinfo.h>
12976#endif
12977
12978int
12979main ()
12980{
12981char *cs = nl_langinfo(CODESET);
12982  ;
12983  return 0;
12984}
12985_ACEOF
12986rm -f conftest.$ac_objext conftest$ac_exeext
12987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12988  (eval $ac_link) 2>conftest.er1
12989  ac_status=$?
12990  grep -v '^ *+' conftest.er1 >conftest.err
12991  rm -f conftest.er1
12992  cat conftest.err >&5
12993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994  (exit $ac_status); } &&
12995	 { ac_try='test -z "$ac_c_werror_flag"
12996			 || test ! -s conftest.err'
12997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998  (eval $ac_try) 2>&5
12999  ac_status=$?
13000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001  (exit $ac_status); }; } &&
13002	 { ac_try='test -s conftest$ac_exeext'
13003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004  (eval $ac_try) 2>&5
13005  ac_status=$?
13006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007  (exit $ac_status); }; }; then
13008  echo "$as_me:$LINENO: result: yes" >&5
13009echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13010#define HAVE_NL_LANGINFO_CODESET 1
13011_ACEOF
13012
13013else
13014  echo "$as_me: failed program was:" >&5
13015sed 's/^/| /' conftest.$ac_ext >&5
13016
13017echo "$as_me:$LINENO: result: no" >&5
13018echo "${ECHO_T}no" >&6
13019fi
13020rm -f conftest.err conftest.$ac_objext \
13021      conftest$ac_exeext conftest.$ac_ext
13022
13023echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13024echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
13025# Check whether --enable-acl or --disable-acl was given.
13026if test "${enable_acl+set}" = set; then
13027  enableval="$enable_acl"
13028
13029else
13030  enable_acl="yes"
13031fi;
13032if test "$enable_acl" = "yes"; then
13033echo "$as_me:$LINENO: result: no" >&5
13034echo "${ECHO_T}no" >&6
13035echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13036echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13037if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13038  echo $ECHO_N "(cached) $ECHO_C" >&6
13039else
13040  ac_check_lib_save_LIBS=$LIBS
13041LIBS="-lposix1e  $LIBS"
13042cat >conftest.$ac_ext <<_ACEOF
13043/* confdefs.h.  */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h.  */
13048
13049/* Override any gcc2 internal prototype to avoid an error.  */
13050#ifdef __cplusplus
13051extern "C"
13052#endif
13053/* We use char because int might match the return type of a gcc2
13054   builtin and then its argument prototype would still apply.  */
13055char acl_get_file ();
13056int
13057main ()
13058{
13059acl_get_file ();
13060  ;
13061  return 0;
13062}
13063_ACEOF
13064rm -f conftest.$ac_objext conftest$ac_exeext
13065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066  (eval $ac_link) 2>conftest.er1
13067  ac_status=$?
13068  grep -v '^ *+' conftest.er1 >conftest.err
13069  rm -f conftest.er1
13070  cat conftest.err >&5
13071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072  (exit $ac_status); } &&
13073	 { ac_try='test -z "$ac_c_werror_flag"
13074			 || test ! -s conftest.err'
13075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076  (eval $ac_try) 2>&5
13077  ac_status=$?
13078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079  (exit $ac_status); }; } &&
13080	 { ac_try='test -s conftest$ac_exeext'
13081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082  (eval $ac_try) 2>&5
13083  ac_status=$?
13084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085  (exit $ac_status); }; }; then
13086  ac_cv_lib_posix1e_acl_get_file=yes
13087else
13088  echo "$as_me: failed program was:" >&5
13089sed 's/^/| /' conftest.$ac_ext >&5
13090
13091ac_cv_lib_posix1e_acl_get_file=no
13092fi
13093rm -f conftest.err conftest.$ac_objext \
13094      conftest$ac_exeext conftest.$ac_ext
13095LIBS=$ac_check_lib_save_LIBS
13096fi
13097echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13098echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13099if test $ac_cv_lib_posix1e_acl_get_file = yes; then
13100  LIBS="$LIBS -lposix1e"
13101else
13102  echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13103echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13104if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13105  echo $ECHO_N "(cached) $ECHO_C" >&6
13106else
13107  ac_check_lib_save_LIBS=$LIBS
13108LIBS="-lacl  $LIBS"
13109cat >conftest.$ac_ext <<_ACEOF
13110/* confdefs.h.  */
13111_ACEOF
13112cat confdefs.h >>conftest.$ac_ext
13113cat >>conftest.$ac_ext <<_ACEOF
13114/* end confdefs.h.  */
13115
13116/* Override any gcc2 internal prototype to avoid an error.  */
13117#ifdef __cplusplus
13118extern "C"
13119#endif
13120/* We use char because int might match the return type of a gcc2
13121   builtin and then its argument prototype would still apply.  */
13122char acl_get_file ();
13123int
13124main ()
13125{
13126acl_get_file ();
13127  ;
13128  return 0;
13129}
13130_ACEOF
13131rm -f conftest.$ac_objext conftest$ac_exeext
13132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13133  (eval $ac_link) 2>conftest.er1
13134  ac_status=$?
13135  grep -v '^ *+' conftest.er1 >conftest.err
13136  rm -f conftest.er1
13137  cat conftest.err >&5
13138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139  (exit $ac_status); } &&
13140	 { ac_try='test -z "$ac_c_werror_flag"
13141			 || test ! -s conftest.err'
13142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143  (eval $ac_try) 2>&5
13144  ac_status=$?
13145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146  (exit $ac_status); }; } &&
13147	 { ac_try='test -s conftest$ac_exeext'
13148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149  (eval $ac_try) 2>&5
13150  ac_status=$?
13151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152  (exit $ac_status); }; }; then
13153  ac_cv_lib_acl_acl_get_file=yes
13154else
13155  echo "$as_me: failed program was:" >&5
13156sed 's/^/| /' conftest.$ac_ext >&5
13157
13158ac_cv_lib_acl_acl_get_file=no
13159fi
13160rm -f conftest.err conftest.$ac_objext \
13161      conftest$ac_exeext conftest.$ac_ext
13162LIBS=$ac_check_lib_save_LIBS
13163fi
13164echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13165echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13166if test $ac_cv_lib_acl_acl_get_file = yes; then
13167  LIBS="$LIBS -lacl"
13168		  echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13169echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13170if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13171  echo $ECHO_N "(cached) $ECHO_C" >&6
13172else
13173  ac_check_lib_save_LIBS=$LIBS
13174LIBS="-lattr  $LIBS"
13175cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h.  */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h.  */
13181
13182/* Override any gcc2 internal prototype to avoid an error.  */
13183#ifdef __cplusplus
13184extern "C"
13185#endif
13186/* We use char because int might match the return type of a gcc2
13187   builtin and then its argument prototype would still apply.  */
13188char fgetxattr ();
13189int
13190main ()
13191{
13192fgetxattr ();
13193  ;
13194  return 0;
13195}
13196_ACEOF
13197rm -f conftest.$ac_objext conftest$ac_exeext
13198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199  (eval $ac_link) 2>conftest.er1
13200  ac_status=$?
13201  grep -v '^ *+' conftest.er1 >conftest.err
13202  rm -f conftest.er1
13203  cat conftest.err >&5
13204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205  (exit $ac_status); } &&
13206	 { ac_try='test -z "$ac_c_werror_flag"
13207			 || test ! -s conftest.err'
13208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209  (eval $ac_try) 2>&5
13210  ac_status=$?
13211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212  (exit $ac_status); }; } &&
13213	 { ac_try='test -s conftest$ac_exeext'
13214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215  (eval $ac_try) 2>&5
13216  ac_status=$?
13217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218  (exit $ac_status); }; }; then
13219  ac_cv_lib_attr_fgetxattr=yes
13220else
13221  echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
13224ac_cv_lib_attr_fgetxattr=no
13225fi
13226rm -f conftest.err conftest.$ac_objext \
13227      conftest$ac_exeext conftest.$ac_ext
13228LIBS=$ac_check_lib_save_LIBS
13229fi
13230echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13231echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13232if test $ac_cv_lib_attr_fgetxattr = yes; then
13233  LIBS="$LIBS -lattr"
13234fi
13235
13236fi
13237
13238fi
13239
13240
13241echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13242echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13243cat >conftest.$ac_ext <<_ACEOF
13244/* confdefs.h.  */
13245_ACEOF
13246cat confdefs.h >>conftest.$ac_ext
13247cat >>conftest.$ac_ext <<_ACEOF
13248/* end confdefs.h.  */
13249
13250#include <sys/types.h>
13251#ifdef HAVE_SYS_ACL_H
13252# include <sys/acl.h>
13253#endif
13254acl_t acl;
13255int
13256main ()
13257{
13258acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13259	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13260	acl_free(acl);
13261  ;
13262  return 0;
13263}
13264_ACEOF
13265rm -f conftest.$ac_objext conftest$ac_exeext
13266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13267  (eval $ac_link) 2>conftest.er1
13268  ac_status=$?
13269  grep -v '^ *+' conftest.er1 >conftest.err
13270  rm -f conftest.er1
13271  cat conftest.err >&5
13272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273  (exit $ac_status); } &&
13274	 { ac_try='test -z "$ac_c_werror_flag"
13275			 || test ! -s conftest.err'
13276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277  (eval $ac_try) 2>&5
13278  ac_status=$?
13279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280  (exit $ac_status); }; } &&
13281	 { ac_try='test -s conftest$ac_exeext'
13282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283  (eval $ac_try) 2>&5
13284  ac_status=$?
13285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286  (exit $ac_status); }; }; then
13287  echo "$as_me:$LINENO: result: yes" >&5
13288echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13289#define HAVE_POSIX_ACL 1
13290_ACEOF
13291
13292else
13293  echo "$as_me: failed program was:" >&5
13294sed 's/^/| /' conftest.$ac_ext >&5
13295
13296echo "$as_me:$LINENO: result: no" >&5
13297echo "${ECHO_T}no" >&6
13298fi
13299rm -f conftest.err conftest.$ac_objext \
13300      conftest$ac_exeext conftest.$ac_ext
13301
13302echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13303echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13304cat >conftest.$ac_ext <<_ACEOF
13305/* confdefs.h.  */
13306_ACEOF
13307cat confdefs.h >>conftest.$ac_ext
13308cat >>conftest.$ac_ext <<_ACEOF
13309/* end confdefs.h.  */
13310
13311#ifdef HAVE_SYS_ACL_H
13312# include <sys/acl.h>
13313#endif
13314int
13315main ()
13316{
13317acl("foo", GETACLCNT, 0, NULL);
13318
13319  ;
13320  return 0;
13321}
13322_ACEOF
13323rm -f conftest.$ac_objext conftest$ac_exeext
13324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13325  (eval $ac_link) 2>conftest.er1
13326  ac_status=$?
13327  grep -v '^ *+' conftest.er1 >conftest.err
13328  rm -f conftest.er1
13329  cat conftest.err >&5
13330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331  (exit $ac_status); } &&
13332	 { ac_try='test -z "$ac_c_werror_flag"
13333			 || test ! -s conftest.err'
13334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335  (eval $ac_try) 2>&5
13336  ac_status=$?
13337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338  (exit $ac_status); }; } &&
13339	 { ac_try='test -s conftest$ac_exeext'
13340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341  (eval $ac_try) 2>&5
13342  ac_status=$?
13343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344  (exit $ac_status); }; }; then
13345  echo "$as_me:$LINENO: result: yes" >&5
13346echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13347#define HAVE_SOLARIS_ACL 1
13348_ACEOF
13349
13350else
13351  echo "$as_me: failed program was:" >&5
13352sed 's/^/| /' conftest.$ac_ext >&5
13353
13354echo "$as_me:$LINENO: result: no" >&5
13355echo "${ECHO_T}no" >&6
13356fi
13357rm -f conftest.err conftest.$ac_objext \
13358      conftest$ac_exeext conftest.$ac_ext
13359
13360echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13361echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13362cat >conftest.$ac_ext <<_ACEOF
13363/* confdefs.h.  */
13364_ACEOF
13365cat confdefs.h >>conftest.$ac_ext
13366cat >>conftest.$ac_ext <<_ACEOF
13367/* end confdefs.h.  */
13368
13369#ifdef HAVE_SYS_ACL_H
13370# include <sys/acl.h>
13371#endif
13372#ifdef HAVE_SYS_ACCESS_H
13373# include <sys/access.h>
13374#endif
13375#define _ALL_SOURCE
13376
13377#include <sys/stat.h>
13378
13379int aclsize;
13380struct acl *aclent;
13381int
13382main ()
13383{
13384aclsize = sizeof(struct acl);
13385	aclent = (void *)malloc(aclsize);
13386	statacl("foo", STX_NORMAL, aclent, aclsize);
13387
13388  ;
13389  return 0;
13390}
13391_ACEOF
13392rm -f conftest.$ac_objext conftest$ac_exeext
13393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13394  (eval $ac_link) 2>conftest.er1
13395  ac_status=$?
13396  grep -v '^ *+' conftest.er1 >conftest.err
13397  rm -f conftest.er1
13398  cat conftest.err >&5
13399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400  (exit $ac_status); } &&
13401	 { ac_try='test -z "$ac_c_werror_flag"
13402			 || test ! -s conftest.err'
13403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404  (eval $ac_try) 2>&5
13405  ac_status=$?
13406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407  (exit $ac_status); }; } &&
13408	 { ac_try='test -s conftest$ac_exeext'
13409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410  (eval $ac_try) 2>&5
13411  ac_status=$?
13412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413  (exit $ac_status); }; }; then
13414  echo "$as_me:$LINENO: result: yes" >&5
13415echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13416#define HAVE_AIX_ACL 1
13417_ACEOF
13418
13419else
13420  echo "$as_me: failed program was:" >&5
13421sed 's/^/| /' conftest.$ac_ext >&5
13422
13423echo "$as_me:$LINENO: result: no" >&5
13424echo "${ECHO_T}no" >&6
13425fi
13426rm -f conftest.err conftest.$ac_objext \
13427      conftest$ac_exeext conftest.$ac_ext
13428else
13429  echo "$as_me:$LINENO: result: yes" >&5
13430echo "${ECHO_T}yes" >&6
13431fi
13432
13433echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13434echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
13435# Check whether --enable-gpm or --disable-gpm was given.
13436if test "${enable_gpm+set}" = set; then
13437  enableval="$enable_gpm"
13438
13439else
13440  enable_gpm="yes"
13441fi;
13442
13443if test "$enable_gpm" = "yes"; then
13444  echo "$as_me:$LINENO: result: no" >&5
13445echo "${ECHO_T}no" >&6
13446    echo "$as_me:$LINENO: checking for gpm" >&5
13447echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13448if test "${vi_cv_have_gpm+set}" = set; then
13449  echo $ECHO_N "(cached) $ECHO_C" >&6
13450else
13451  olibs="$LIBS" ; LIBS="-lgpm"
13452	cat >conftest.$ac_ext <<_ACEOF
13453/* confdefs.h.  */
13454_ACEOF
13455cat confdefs.h >>conftest.$ac_ext
13456cat >>conftest.$ac_ext <<_ACEOF
13457/* end confdefs.h.  */
13458#include <gpm.h>
13459	    #include <linux/keyboard.h>
13460int
13461main ()
13462{
13463Gpm_GetLibVersion(NULL);
13464  ;
13465  return 0;
13466}
13467_ACEOF
13468rm -f conftest.$ac_objext conftest$ac_exeext
13469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13470  (eval $ac_link) 2>conftest.er1
13471  ac_status=$?
13472  grep -v '^ *+' conftest.er1 >conftest.err
13473  rm -f conftest.er1
13474  cat conftest.err >&5
13475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476  (exit $ac_status); } &&
13477	 { ac_try='test -z "$ac_c_werror_flag"
13478			 || test ! -s conftest.err'
13479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480  (eval $ac_try) 2>&5
13481  ac_status=$?
13482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483  (exit $ac_status); }; } &&
13484	 { ac_try='test -s conftest$ac_exeext'
13485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486  (eval $ac_try) 2>&5
13487  ac_status=$?
13488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489  (exit $ac_status); }; }; then
13490  	    	    vi_cv_have_gpm=yes
13491else
13492  echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
13494
13495vi_cv_have_gpm=no
13496fi
13497rm -f conftest.err conftest.$ac_objext \
13498      conftest$ac_exeext conftest.$ac_ext
13499	LIBS="$olibs"
13500
13501fi
13502echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13503echo "${ECHO_T}$vi_cv_have_gpm" >&6
13504  if test $vi_cv_have_gpm = yes; then
13505    LIBS="$LIBS -lgpm"
13506    cat >>confdefs.h <<\_ACEOF
13507#define HAVE_GPM 1
13508_ACEOF
13509
13510  fi
13511else
13512  echo "$as_me:$LINENO: result: yes" >&5
13513echo "${ECHO_T}yes" >&6
13514fi
13515
13516echo "$as_me:$LINENO: checking for rename" >&5
13517echo $ECHO_N "checking for rename... $ECHO_C" >&6
13518cat >conftest.$ac_ext <<_ACEOF
13519/* confdefs.h.  */
13520_ACEOF
13521cat confdefs.h >>conftest.$ac_ext
13522cat >>conftest.$ac_ext <<_ACEOF
13523/* end confdefs.h.  */
13524#include <stdio.h>
13525int
13526main ()
13527{
13528rename("this", "that")
13529  ;
13530  return 0;
13531}
13532_ACEOF
13533rm -f conftest.$ac_objext conftest$ac_exeext
13534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13535  (eval $ac_link) 2>conftest.er1
13536  ac_status=$?
13537  grep -v '^ *+' conftest.er1 >conftest.err
13538  rm -f conftest.er1
13539  cat conftest.err >&5
13540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541  (exit $ac_status); } &&
13542	 { ac_try='test -z "$ac_c_werror_flag"
13543			 || test ! -s conftest.err'
13544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545  (eval $ac_try) 2>&5
13546  ac_status=$?
13547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548  (exit $ac_status); }; } &&
13549	 { ac_try='test -s conftest$ac_exeext'
13550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551  (eval $ac_try) 2>&5
13552  ac_status=$?
13553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554  (exit $ac_status); }; }; then
13555  echo "$as_me:$LINENO: result: yes" >&5
13556echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13557#define HAVE_RENAME 1
13558_ACEOF
13559
13560else
13561  echo "$as_me: failed program was:" >&5
13562sed 's/^/| /' conftest.$ac_ext >&5
13563
13564echo "$as_me:$LINENO: result: no" >&5
13565echo "${ECHO_T}no" >&6
13566fi
13567rm -f conftest.err conftest.$ac_objext \
13568      conftest$ac_exeext conftest.$ac_ext
13569
13570echo "$as_me:$LINENO: checking for sysctl" >&5
13571echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13572cat >conftest.$ac_ext <<_ACEOF
13573/* confdefs.h.  */
13574_ACEOF
13575cat confdefs.h >>conftest.$ac_ext
13576cat >>conftest.$ac_ext <<_ACEOF
13577/* end confdefs.h.  */
13578#include <sys/types.h>
13579#include <sys/sysctl.h>
13580int
13581main ()
13582{
13583	int mib[2], r;
13584	size_t len;
13585
13586	mib[0] = CTL_HW;
13587	mib[1] = HW_USERMEM;
13588	len = sizeof(r);
13589	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13590
13591  ;
13592  return 0;
13593}
13594_ACEOF
13595rm -f conftest.$ac_objext
13596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597  (eval $ac_compile) 2>conftest.er1
13598  ac_status=$?
13599  grep -v '^ *+' conftest.er1 >conftest.err
13600  rm -f conftest.er1
13601  cat conftest.err >&5
13602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603  (exit $ac_status); } &&
13604	 { ac_try='test -z "$ac_c_werror_flag"
13605			 || test ! -s conftest.err'
13606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607  (eval $ac_try) 2>&5
13608  ac_status=$?
13609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610  (exit $ac_status); }; } &&
13611	 { ac_try='test -s conftest.$ac_objext'
13612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613  (eval $ac_try) 2>&5
13614  ac_status=$?
13615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616  (exit $ac_status); }; }; then
13617  echo "$as_me:$LINENO: result: yes" >&5
13618echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13619#define HAVE_SYSCTL 1
13620_ACEOF
13621
13622else
13623  echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
13625
13626echo "$as_me:$LINENO: result: not usable" >&5
13627echo "${ECHO_T}not usable" >&6
13628fi
13629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13630
13631echo "$as_me:$LINENO: checking for sysinfo" >&5
13632echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13633cat >conftest.$ac_ext <<_ACEOF
13634/* confdefs.h.  */
13635_ACEOF
13636cat confdefs.h >>conftest.$ac_ext
13637cat >>conftest.$ac_ext <<_ACEOF
13638/* end confdefs.h.  */
13639#include <sys/types.h>
13640#include <sys/sysinfo.h>
13641int
13642main ()
13643{
13644	struct sysinfo sinfo;
13645	int t;
13646
13647	(void)sysinfo(&sinfo);
13648	t = sinfo.totalram;
13649
13650  ;
13651  return 0;
13652}
13653_ACEOF
13654rm -f conftest.$ac_objext
13655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656  (eval $ac_compile) 2>conftest.er1
13657  ac_status=$?
13658  grep -v '^ *+' conftest.er1 >conftest.err
13659  rm -f conftest.er1
13660  cat conftest.err >&5
13661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662  (exit $ac_status); } &&
13663	 { ac_try='test -z "$ac_c_werror_flag"
13664			 || test ! -s conftest.err'
13665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666  (eval $ac_try) 2>&5
13667  ac_status=$?
13668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669  (exit $ac_status); }; } &&
13670	 { ac_try='test -s conftest.$ac_objext'
13671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672  (eval $ac_try) 2>&5
13673  ac_status=$?
13674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675  (exit $ac_status); }; }; then
13676  echo "$as_me:$LINENO: result: yes" >&5
13677echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13678#define HAVE_SYSINFO 1
13679_ACEOF
13680
13681else
13682  echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685echo "$as_me:$LINENO: result: not usable" >&5
13686echo "${ECHO_T}not usable" >&6
13687fi
13688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13689
13690echo "$as_me:$LINENO: checking for sysconf" >&5
13691echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13692cat >conftest.$ac_ext <<_ACEOF
13693/* confdefs.h.  */
13694_ACEOF
13695cat confdefs.h >>conftest.$ac_ext
13696cat >>conftest.$ac_ext <<_ACEOF
13697/* end confdefs.h.  */
13698#include <unistd.h>
13699int
13700main ()
13701{
13702	(void)sysconf(_SC_PAGESIZE);
13703	(void)sysconf(_SC_PHYS_PAGES);
13704
13705  ;
13706  return 0;
13707}
13708_ACEOF
13709rm -f conftest.$ac_objext
13710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13711  (eval $ac_compile) 2>conftest.er1
13712  ac_status=$?
13713  grep -v '^ *+' conftest.er1 >conftest.err
13714  rm -f conftest.er1
13715  cat conftest.err >&5
13716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717  (exit $ac_status); } &&
13718	 { ac_try='test -z "$ac_c_werror_flag"
13719			 || test ! -s conftest.err'
13720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721  (eval $ac_try) 2>&5
13722  ac_status=$?
13723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724  (exit $ac_status); }; } &&
13725	 { ac_try='test -s conftest.$ac_objext'
13726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727  (eval $ac_try) 2>&5
13728  ac_status=$?
13729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730  (exit $ac_status); }; }; then
13731  echo "$as_me:$LINENO: result: yes" >&5
13732echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13733#define HAVE_SYSCONF 1
13734_ACEOF
13735
13736else
13737  echo "$as_me: failed program was:" >&5
13738sed 's/^/| /' conftest.$ac_ext >&5
13739
13740echo "$as_me:$LINENO: result: not usable" >&5
13741echo "${ECHO_T}not usable" >&6
13742fi
13743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13744
13745
13746echo "$as_me:$LINENO: checking size of int" >&5
13747echo $ECHO_N "checking size of int... $ECHO_C" >&6
13748if test "${ac_cv_sizeof_int+set}" = set; then
13749  echo $ECHO_N "(cached) $ECHO_C" >&6
13750else
13751  if test "$cross_compiling" = yes; then
13752  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13753echo "$as_me: error: failed to compile test program" >&2;}
13754   { (exit 1); exit 1; }; }
13755else
13756  cat >conftest.$ac_ext <<_ACEOF
13757/* confdefs.h.  */
13758_ACEOF
13759cat confdefs.h >>conftest.$ac_ext
13760cat >>conftest.$ac_ext <<_ACEOF
13761/* end confdefs.h.  */
13762#include <stdio.h>
13763		main()
13764		{
13765		  FILE *f=fopen("conftestval", "w");
13766		  if (!f) exit(1);
13767		  fprintf(f, "%d\n", (int)sizeof(int));
13768		  exit(0);
13769		}
13770_ACEOF
13771rm -f conftest$ac_exeext
13772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13773  (eval $ac_link) 2>&5
13774  ac_status=$?
13775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778  (eval $ac_try) 2>&5
13779  ac_status=$?
13780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781  (exit $ac_status); }; }; then
13782  ac_cv_sizeof_int=`cat conftestval`
13783else
13784  echo "$as_me: program exited with status $ac_status" >&5
13785echo "$as_me: failed program was:" >&5
13786sed 's/^/| /' conftest.$ac_ext >&5
13787
13788( exit $ac_status )
13789ac_cv_sizeof_int=0
13790fi
13791rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13792fi
13793fi
13794
13795echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13796echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13797cat >>confdefs.h <<_ACEOF
13798#define SIZEOF_INT $ac_cv_sizeof_int
13799_ACEOF
13800
13801
13802echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13803echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
13804bcopy_test_prog='
13805main() {
13806  char buf[10];
13807  strcpy(buf, "abcdefghi");
13808  mch_memmove(buf, buf + 2, 3);
13809  if (strncmp(buf, "ababcf", 6))
13810    exit(1);
13811  strcpy(buf, "abcdefghi");
13812  mch_memmove(buf + 2, buf, 3);
13813  if (strncmp(buf, "cdedef", 6))
13814    exit(1);
13815  exit(0); /* libc version works properly.  */
13816}'
13817
13818
13819if test "$cross_compiling" = yes; then
13820  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13821echo "$as_me: error: failed to compile test program" >&2;}
13822   { (exit 1); exit 1; }; }
13823else
13824  cat >conftest.$ac_ext <<_ACEOF
13825/* confdefs.h.  */
13826_ACEOF
13827cat confdefs.h >>conftest.$ac_ext
13828cat >>conftest.$ac_ext <<_ACEOF
13829/* end confdefs.h.  */
13830#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
13831_ACEOF
13832rm -f conftest$ac_exeext
13833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13834  (eval $ac_link) 2>&5
13835  ac_status=$?
13836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839  (eval $ac_try) 2>&5
13840  ac_status=$?
13841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842  (exit $ac_status); }; }; then
13843  cat >>confdefs.h <<\_ACEOF
13844#define USEMEMMOVE 1
13845_ACEOF
13846 echo "$as_me:$LINENO: result: memmove does" >&5
13847echo "${ECHO_T}memmove does" >&6
13848else
13849  echo "$as_me: program exited with status $ac_status" >&5
13850echo "$as_me: failed program was:" >&5
13851sed 's/^/| /' conftest.$ac_ext >&5
13852
13853( exit $ac_status )
13854if test "$cross_compiling" = yes; then
13855  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13856echo "$as_me: error: failed to compile test program" >&2;}
13857   { (exit 1); exit 1; }; }
13858else
13859  cat >conftest.$ac_ext <<_ACEOF
13860/* confdefs.h.  */
13861_ACEOF
13862cat confdefs.h >>conftest.$ac_ext
13863cat >>conftest.$ac_ext <<_ACEOF
13864/* end confdefs.h.  */
13865#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
13866_ACEOF
13867rm -f conftest$ac_exeext
13868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13869  (eval $ac_link) 2>&5
13870  ac_status=$?
13871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874  (eval $ac_try) 2>&5
13875  ac_status=$?
13876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877  (exit $ac_status); }; }; then
13878  cat >>confdefs.h <<\_ACEOF
13879#define USEBCOPY 1
13880_ACEOF
13881 echo "$as_me:$LINENO: result: bcopy does" >&5
13882echo "${ECHO_T}bcopy does" >&6
13883else
13884  echo "$as_me: program exited with status $ac_status" >&5
13885echo "$as_me: failed program was:" >&5
13886sed 's/^/| /' conftest.$ac_ext >&5
13887
13888( exit $ac_status )
13889if test "$cross_compiling" = yes; then
13890  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13891echo "$as_me: error: failed to compile test program" >&2;}
13892   { (exit 1); exit 1; }; }
13893else
13894  cat >conftest.$ac_ext <<_ACEOF
13895/* confdefs.h.  */
13896_ACEOF
13897cat confdefs.h >>conftest.$ac_ext
13898cat >>conftest.$ac_ext <<_ACEOF
13899/* end confdefs.h.  */
13900#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
13901_ACEOF
13902rm -f conftest$ac_exeext
13903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13904  (eval $ac_link) 2>&5
13905  ac_status=$?
13906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909  (eval $ac_try) 2>&5
13910  ac_status=$?
13911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912  (exit $ac_status); }; }; then
13913  cat >>confdefs.h <<\_ACEOF
13914#define USEMEMCPY 1
13915_ACEOF
13916 echo "$as_me:$LINENO: result: memcpy does" >&5
13917echo "${ECHO_T}memcpy does" >&6
13918else
13919  echo "$as_me: program exited with status $ac_status" >&5
13920echo "$as_me: failed program was:" >&5
13921sed 's/^/| /' conftest.$ac_ext >&5
13922
13923( exit $ac_status )
13924echo "$as_me:$LINENO: result: no" >&5
13925echo "${ECHO_T}no" >&6
13926fi
13927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13928fi
13929fi
13930rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13931fi
13932fi
13933rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13934fi
13935
13936
13937if test "$enable_multibyte" = "yes"; then
13938  cflags_save=$CFLAGS
13939  ldflags_save=$LDFLAGS
13940  if test -n "$x_includes" ; then
13941    CFLAGS="$CFLAGS -I$x_includes"
13942    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
13943    echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
13944echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
13945    cat >conftest.$ac_ext <<_ACEOF
13946/* confdefs.h.  */
13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
13950/* end confdefs.h.  */
13951#include <X11/Xlocale.h>
13952int
13953main ()
13954{
13955
13956  ;
13957  return 0;
13958}
13959_ACEOF
13960rm -f conftest.$ac_objext
13961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13962  (eval $ac_compile) 2>conftest.er1
13963  ac_status=$?
13964  grep -v '^ *+' conftest.er1 >conftest.err
13965  rm -f conftest.er1
13966  cat conftest.err >&5
13967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968  (exit $ac_status); } &&
13969	 { ac_try='test -z "$ac_c_werror_flag"
13970			 || test ! -s conftest.err'
13971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972  (eval $ac_try) 2>&5
13973  ac_status=$?
13974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975  (exit $ac_status); }; } &&
13976	 { ac_try='test -s conftest.$ac_objext'
13977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978  (eval $ac_try) 2>&5
13979  ac_status=$?
13980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981  (exit $ac_status); }; }; then
13982  cat >conftest.$ac_ext <<_ACEOF
13983/* confdefs.h.  */
13984_ACEOF
13985cat confdefs.h >>conftest.$ac_ext
13986cat >>conftest.$ac_ext <<_ACEOF
13987/* end confdefs.h.  */
13988
13989/* Override any gcc2 internal prototype to avoid an error.  */
13990#ifdef __cplusplus
13991extern "C"
13992#endif
13993/* We use char because int might match the return type of a gcc2
13994   builtin and then its argument prototype would still apply.  */
13995char _Xsetlocale ();
13996int
13997main ()
13998{
13999_Xsetlocale ();
14000  ;
14001  return 0;
14002}
14003_ACEOF
14004rm -f conftest.$ac_objext conftest$ac_exeext
14005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14006  (eval $ac_link) 2>conftest.er1
14007  ac_status=$?
14008  grep -v '^ *+' conftest.er1 >conftest.err
14009  rm -f conftest.er1
14010  cat conftest.err >&5
14011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012  (exit $ac_status); } &&
14013	 { ac_try='test -z "$ac_c_werror_flag"
14014			 || test ! -s conftest.err'
14015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016  (eval $ac_try) 2>&5
14017  ac_status=$?
14018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019  (exit $ac_status); }; } &&
14020	 { ac_try='test -s conftest$ac_exeext'
14021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022  (eval $ac_try) 2>&5
14023  ac_status=$?
14024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025  (exit $ac_status); }; }; then
14026  echo "$as_me:$LINENO: result: yes" >&5
14027echo "${ECHO_T}yes" >&6
14028		cat >>confdefs.h <<\_ACEOF
14029#define X_LOCALE 1
14030_ACEOF
14031
14032else
14033  echo "$as_me: failed program was:" >&5
14034sed 's/^/| /' conftest.$ac_ext >&5
14035
14036echo "$as_me:$LINENO: result: no" >&5
14037echo "${ECHO_T}no" >&6
14038fi
14039rm -f conftest.err conftest.$ac_objext \
14040      conftest$ac_exeext conftest.$ac_ext
14041else
14042  echo "$as_me: failed program was:" >&5
14043sed 's/^/| /' conftest.$ac_ext >&5
14044
14045echo "$as_me:$LINENO: result: no" >&5
14046echo "${ECHO_T}no" >&6
14047fi
14048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14049  fi
14050  CFLAGS=$cflags_save
14051  LDFLAGS=$ldflags_save
14052fi
14053
14054echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14055echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14056if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14057  echo $ECHO_N "(cached) $ECHO_C" >&6
14058else
14059  ac_check_lib_save_LIBS=$LIBS
14060LIBS="-lxpg4  $LIBS"
14061cat >conftest.$ac_ext <<_ACEOF
14062/* confdefs.h.  */
14063_ACEOF
14064cat confdefs.h >>conftest.$ac_ext
14065cat >>conftest.$ac_ext <<_ACEOF
14066/* end confdefs.h.  */
14067
14068/* Override any gcc2 internal prototype to avoid an error.  */
14069#ifdef __cplusplus
14070extern "C"
14071#endif
14072/* We use char because int might match the return type of a gcc2
14073   builtin and then its argument prototype would still apply.  */
14074char _xpg4_setrunelocale ();
14075int
14076main ()
14077{
14078_xpg4_setrunelocale ();
14079  ;
14080  return 0;
14081}
14082_ACEOF
14083rm -f conftest.$ac_objext conftest$ac_exeext
14084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14085  (eval $ac_link) 2>conftest.er1
14086  ac_status=$?
14087  grep -v '^ *+' conftest.er1 >conftest.err
14088  rm -f conftest.er1
14089  cat conftest.err >&5
14090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091  (exit $ac_status); } &&
14092	 { ac_try='test -z "$ac_c_werror_flag"
14093			 || test ! -s conftest.err'
14094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095  (eval $ac_try) 2>&5
14096  ac_status=$?
14097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098  (exit $ac_status); }; } &&
14099	 { ac_try='test -s conftest$ac_exeext'
14100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101  (eval $ac_try) 2>&5
14102  ac_status=$?
14103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104  (exit $ac_status); }; }; then
14105  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14106else
14107  echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
14109
14110ac_cv_lib_xpg4__xpg4_setrunelocale=no
14111fi
14112rm -f conftest.err conftest.$ac_objext \
14113      conftest$ac_exeext conftest.$ac_ext
14114LIBS=$ac_check_lib_save_LIBS
14115fi
14116echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14117echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14118if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
14119  LIBS="$LIBS -lxpg4"
14120fi
14121
14122
14123echo "$as_me:$LINENO: checking how to create tags" >&5
14124echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
14125test -f tags && mv tags tags.save
14126if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14127  TAGPRG="ctags -I INIT+ --fields=+S"
14128else
14129  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14130  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14131  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14132  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14133  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14134  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14135  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14136fi
14137test -f tags.save && mv tags.save tags
14138echo "$as_me:$LINENO: result: $TAGPRG" >&5
14139echo "${ECHO_T}$TAGPRG" >&6
14140
14141echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14142echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
14143MANDEF="man"
14144(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14145echo "$as_me:$LINENO: result: $MANDEF" >&5
14146echo "${ECHO_T}$MANDEF" >&6
14147if test "$MANDEF" = "man -s"; then
14148  cat >>confdefs.h <<\_ACEOF
14149#define USEMAN_S 1
14150_ACEOF
14151
14152fi
14153
14154echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14155echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
14156# Check whether --enable-nls or --disable-nls was given.
14157if test "${enable_nls+set}" = set; then
14158  enableval="$enable_nls"
14159
14160else
14161  enable_nls="yes"
14162fi;
14163
14164if test "$enable_nls" = "yes"; then
14165  echo "$as_me:$LINENO: result: no" >&5
14166echo "${ECHO_T}no" >&6
14167
14168  INSTALL_LANGS=install-languages
14169
14170  INSTALL_TOOL_LANGS=install-tool-languages
14171
14172
14173  # Extract the first word of "msgfmt", so it can be a program name with args.
14174set dummy msgfmt; ac_word=$2
14175echo "$as_me:$LINENO: checking for $ac_word" >&5
14176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14177if test "${ac_cv_prog_MSGFMT+set}" = set; then
14178  echo $ECHO_N "(cached) $ECHO_C" >&6
14179else
14180  if test -n "$MSGFMT"; then
14181  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14182else
14183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184for as_dir in $PATH
14185do
14186  IFS=$as_save_IFS
14187  test -z "$as_dir" && as_dir=.
14188  for ac_exec_ext in '' $ac_executable_extensions; do
14189  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14190    ac_cv_prog_MSGFMT="msgfmt"
14191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14192    break 2
14193  fi
14194done
14195done
14196
14197fi
14198fi
14199MSGFMT=$ac_cv_prog_MSGFMT
14200if test -n "$MSGFMT"; then
14201  echo "$as_me:$LINENO: result: $MSGFMT" >&5
14202echo "${ECHO_T}$MSGFMT" >&6
14203else
14204  echo "$as_me:$LINENO: result: no" >&5
14205echo "${ECHO_T}no" >&6
14206fi
14207
14208  echo "$as_me:$LINENO: checking for NLS" >&5
14209echo $ECHO_N "checking for NLS... $ECHO_C" >&6
14210  if test -f po/Makefile; then
14211    have_gettext="no"
14212    if test -n "$MSGFMT"; then
14213      cat >conftest.$ac_ext <<_ACEOF
14214/* confdefs.h.  */
14215_ACEOF
14216cat confdefs.h >>conftest.$ac_ext
14217cat >>conftest.$ac_ext <<_ACEOF
14218/* end confdefs.h.  */
14219#include <libintl.h>
14220int
14221main ()
14222{
14223gettext("Test");
14224  ;
14225  return 0;
14226}
14227_ACEOF
14228rm -f conftest.$ac_objext conftest$ac_exeext
14229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14230  (eval $ac_link) 2>conftest.er1
14231  ac_status=$?
14232  grep -v '^ *+' conftest.er1 >conftest.err
14233  rm -f conftest.er1
14234  cat conftest.err >&5
14235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236  (exit $ac_status); } &&
14237	 { ac_try='test -z "$ac_c_werror_flag"
14238			 || test ! -s conftest.err'
14239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240  (eval $ac_try) 2>&5
14241  ac_status=$?
14242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243  (exit $ac_status); }; } &&
14244	 { ac_try='test -s conftest$ac_exeext'
14245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246  (eval $ac_try) 2>&5
14247  ac_status=$?
14248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249  (exit $ac_status); }; }; then
14250  echo "$as_me:$LINENO: result: gettext() works" >&5
14251echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
14252else
14253  echo "$as_me: failed program was:" >&5
14254sed 's/^/| /' conftest.$ac_ext >&5
14255
14256olibs=$LIBS
14257	  LIBS="$LIBS -lintl"
14258	  cat >conftest.$ac_ext <<_ACEOF
14259/* confdefs.h.  */
14260_ACEOF
14261cat confdefs.h >>conftest.$ac_ext
14262cat >>conftest.$ac_ext <<_ACEOF
14263/* end confdefs.h.  */
14264#include <libintl.h>
14265int
14266main ()
14267{
14268gettext("Test");
14269  ;
14270  return 0;
14271}
14272_ACEOF
14273rm -f conftest.$ac_objext conftest$ac_exeext
14274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275  (eval $ac_link) 2>conftest.er1
14276  ac_status=$?
14277  grep -v '^ *+' conftest.er1 >conftest.err
14278  rm -f conftest.er1
14279  cat conftest.err >&5
14280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281  (exit $ac_status); } &&
14282	 { ac_try='test -z "$ac_c_werror_flag"
14283			 || test ! -s conftest.err'
14284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285  (eval $ac_try) 2>&5
14286  ac_status=$?
14287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288  (exit $ac_status); }; } &&
14289	 { ac_try='test -s conftest$ac_exeext'
14290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291  (eval $ac_try) 2>&5
14292  ac_status=$?
14293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294  (exit $ac_status); }; }; then
14295  echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14296echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
14297else
14298  echo "$as_me: failed program was:" >&5
14299sed 's/^/| /' conftest.$ac_ext >&5
14300
14301echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14302echo "${ECHO_T}gettext() doesn't work" >&6;
14303	      LIBS=$olibs
14304fi
14305rm -f conftest.err conftest.$ac_objext \
14306      conftest$ac_exeext conftest.$ac_ext
14307fi
14308rm -f conftest.err conftest.$ac_objext \
14309      conftest$ac_exeext conftest.$ac_ext
14310    else
14311      echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14312echo "${ECHO_T}msgfmt not found - disabled" >&6;
14313    fi
14314    if test $have_gettext = "yes"; then
14315      cat >>confdefs.h <<\_ACEOF
14316#define HAVE_GETTEXT 1
14317_ACEOF
14318
14319      MAKEMO=yes
14320
14321
14322for ac_func in bind_textdomain_codeset
14323do
14324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14325echo "$as_me:$LINENO: checking for $ac_func" >&5
14326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14327if eval "test \"\${$as_ac_var+set}\" = set"; then
14328  echo $ECHO_N "(cached) $ECHO_C" >&6
14329else
14330  cat >conftest.$ac_ext <<_ACEOF
14331/* confdefs.h.  */
14332_ACEOF
14333cat confdefs.h >>conftest.$ac_ext
14334cat >>conftest.$ac_ext <<_ACEOF
14335/* end confdefs.h.  */
14336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14337   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14338#define $ac_func innocuous_$ac_func
14339
14340/* System header to define __stub macros and hopefully few prototypes,
14341    which can conflict with char $ac_func (); below.
14342    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14343    <limits.h> exists even on freestanding compilers.  */
14344
14345#ifdef __STDC__
14346# include <limits.h>
14347#else
14348# include <assert.h>
14349#endif
14350
14351#undef $ac_func
14352
14353/* Override any gcc2 internal prototype to avoid an error.  */
14354#ifdef __cplusplus
14355extern "C"
14356{
14357#endif
14358/* We use char because int might match the return type of a gcc2
14359   builtin and then its argument prototype would still apply.  */
14360char $ac_func ();
14361/* The GNU C library defines this for functions which it implements
14362    to always fail with ENOSYS.  Some functions are actually named
14363    something starting with __ and the normal name is an alias.  */
14364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14365choke me
14366#else
14367char (*f) () = $ac_func;
14368#endif
14369#ifdef __cplusplus
14370}
14371#endif
14372
14373int
14374main ()
14375{
14376return f != $ac_func;
14377  ;
14378  return 0;
14379}
14380_ACEOF
14381rm -f conftest.$ac_objext conftest$ac_exeext
14382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14383  (eval $ac_link) 2>conftest.er1
14384  ac_status=$?
14385  grep -v '^ *+' conftest.er1 >conftest.err
14386  rm -f conftest.er1
14387  cat conftest.err >&5
14388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389  (exit $ac_status); } &&
14390	 { ac_try='test -z "$ac_c_werror_flag"
14391			 || test ! -s conftest.err'
14392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393  (eval $ac_try) 2>&5
14394  ac_status=$?
14395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396  (exit $ac_status); }; } &&
14397	 { ac_try='test -s conftest$ac_exeext'
14398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399  (eval $ac_try) 2>&5
14400  ac_status=$?
14401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402  (exit $ac_status); }; }; then
14403  eval "$as_ac_var=yes"
14404else
14405  echo "$as_me: failed program was:" >&5
14406sed 's/^/| /' conftest.$ac_ext >&5
14407
14408eval "$as_ac_var=no"
14409fi
14410rm -f conftest.err conftest.$ac_objext \
14411      conftest$ac_exeext conftest.$ac_ext
14412fi
14413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14414echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14415if test `eval echo '${'$as_ac_var'}'` = yes; then
14416  cat >>confdefs.h <<_ACEOF
14417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14418_ACEOF
14419
14420fi
14421done
14422
14423            echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14424echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14425      cat >conftest.$ac_ext <<_ACEOF
14426/* confdefs.h.  */
14427_ACEOF
14428cat confdefs.h >>conftest.$ac_ext
14429cat >>conftest.$ac_ext <<_ACEOF
14430/* end confdefs.h.  */
14431#include <libintl.h>
14432		extern int _nl_msg_cat_cntr;
14433int
14434main ()
14435{
14436++_nl_msg_cat_cntr;
14437  ;
14438  return 0;
14439}
14440_ACEOF
14441rm -f conftest.$ac_objext conftest$ac_exeext
14442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443  (eval $ac_link) 2>conftest.er1
14444  ac_status=$?
14445  grep -v '^ *+' conftest.er1 >conftest.err
14446  rm -f conftest.er1
14447  cat conftest.err >&5
14448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449  (exit $ac_status); } &&
14450	 { ac_try='test -z "$ac_c_werror_flag"
14451			 || test ! -s conftest.err'
14452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453  (eval $ac_try) 2>&5
14454  ac_status=$?
14455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456  (exit $ac_status); }; } &&
14457	 { ac_try='test -s conftest$ac_exeext'
14458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459  (eval $ac_try) 2>&5
14460  ac_status=$?
14461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462  (exit $ac_status); }; }; then
14463  echo "$as_me:$LINENO: result: yes" >&5
14464echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
14465#define HAVE_NL_MSG_CAT_CNTR 1
14466_ACEOF
14467
14468else
14469  echo "$as_me: failed program was:" >&5
14470sed 's/^/| /' conftest.$ac_ext >&5
14471
14472echo "$as_me:$LINENO: result: no" >&5
14473echo "${ECHO_T}no" >&6
14474fi
14475rm -f conftest.err conftest.$ac_objext \
14476      conftest$ac_exeext conftest.$ac_ext
14477    fi
14478  else
14479    echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14480echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
14481  fi
14482else
14483  echo "$as_me:$LINENO: result: yes" >&5
14484echo "${ECHO_T}yes" >&6
14485fi
14486
14487if test "${ac_cv_header_dlfcn_h+set}" = set; then
14488  echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14489echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14490if test "${ac_cv_header_dlfcn_h+set}" = set; then
14491  echo $ECHO_N "(cached) $ECHO_C" >&6
14492fi
14493echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14494echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14495else
14496  # Is the header compilable?
14497echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14498echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14499cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h.  */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h.  */
14505$ac_includes_default
14506#include <dlfcn.h>
14507_ACEOF
14508rm -f conftest.$ac_objext
14509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510  (eval $ac_compile) 2>conftest.er1
14511  ac_status=$?
14512  grep -v '^ *+' conftest.er1 >conftest.err
14513  rm -f conftest.er1
14514  cat conftest.err >&5
14515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516  (exit $ac_status); } &&
14517	 { ac_try='test -z "$ac_c_werror_flag"
14518			 || test ! -s conftest.err'
14519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520  (eval $ac_try) 2>&5
14521  ac_status=$?
14522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523  (exit $ac_status); }; } &&
14524	 { ac_try='test -s conftest.$ac_objext'
14525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526  (eval $ac_try) 2>&5
14527  ac_status=$?
14528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529  (exit $ac_status); }; }; then
14530  ac_header_compiler=yes
14531else
14532  echo "$as_me: failed program was:" >&5
14533sed 's/^/| /' conftest.$ac_ext >&5
14534
14535ac_header_compiler=no
14536fi
14537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14539echo "${ECHO_T}$ac_header_compiler" >&6
14540
14541# Is the header present?
14542echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14543echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h.  */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h.  */
14550#include <dlfcn.h>
14551_ACEOF
14552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14554  ac_status=$?
14555  grep -v '^ *+' conftest.er1 >conftest.err
14556  rm -f conftest.er1
14557  cat conftest.err >&5
14558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559  (exit $ac_status); } >/dev/null; then
14560  if test -s conftest.err; then
14561    ac_cpp_err=$ac_c_preproc_warn_flag
14562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14563  else
14564    ac_cpp_err=
14565  fi
14566else
14567  ac_cpp_err=yes
14568fi
14569if test -z "$ac_cpp_err"; then
14570  ac_header_preproc=yes
14571else
14572  echo "$as_me: failed program was:" >&5
14573sed 's/^/| /' conftest.$ac_ext >&5
14574
14575  ac_header_preproc=no
14576fi
14577rm -f conftest.err conftest.$ac_ext
14578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14579echo "${ECHO_T}$ac_header_preproc" >&6
14580
14581# So?  What about this header?
14582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14583  yes:no: )
14584    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14585echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14586    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14587echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14588    ac_header_preproc=yes
14589    ;;
14590  no:yes:* )
14591    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14592echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14593    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
14594echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
14595    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14596echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14597    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
14598echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14599    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14600echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14601    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14602echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14603    (
14604      cat <<\_ASBOX
14605## ------------------------------------------ ##
14606## Report this to the AC_PACKAGE_NAME lists.  ##
14607## ------------------------------------------ ##
14608_ASBOX
14609    ) |
14610      sed "s/^/$as_me: WARNING:     /" >&2
14611    ;;
14612esac
14613echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14614echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14615if test "${ac_cv_header_dlfcn_h+set}" = set; then
14616  echo $ECHO_N "(cached) $ECHO_C" >&6
14617else
14618  ac_cv_header_dlfcn_h=$ac_header_preproc
14619fi
14620echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14621echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14622
14623fi
14624if test $ac_cv_header_dlfcn_h = yes; then
14625  DLL=dlfcn.h
14626else
14627  if test "${ac_cv_header_dl_h+set}" = set; then
14628  echo "$as_me:$LINENO: checking for dl.h" >&5
14629echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14630if test "${ac_cv_header_dl_h+set}" = set; then
14631  echo $ECHO_N "(cached) $ECHO_C" >&6
14632fi
14633echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14634echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14635else
14636  # Is the header compilable?
14637echo "$as_me:$LINENO: checking dl.h usability" >&5
14638echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14639cat >conftest.$ac_ext <<_ACEOF
14640/* confdefs.h.  */
14641_ACEOF
14642cat confdefs.h >>conftest.$ac_ext
14643cat >>conftest.$ac_ext <<_ACEOF
14644/* end confdefs.h.  */
14645$ac_includes_default
14646#include <dl.h>
14647_ACEOF
14648rm -f conftest.$ac_objext
14649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650  (eval $ac_compile) 2>conftest.er1
14651  ac_status=$?
14652  grep -v '^ *+' conftest.er1 >conftest.err
14653  rm -f conftest.er1
14654  cat conftest.err >&5
14655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656  (exit $ac_status); } &&
14657	 { ac_try='test -z "$ac_c_werror_flag"
14658			 || test ! -s conftest.err'
14659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660  (eval $ac_try) 2>&5
14661  ac_status=$?
14662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663  (exit $ac_status); }; } &&
14664	 { ac_try='test -s conftest.$ac_objext'
14665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666  (eval $ac_try) 2>&5
14667  ac_status=$?
14668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669  (exit $ac_status); }; }; then
14670  ac_header_compiler=yes
14671else
14672  echo "$as_me: failed program was:" >&5
14673sed 's/^/| /' conftest.$ac_ext >&5
14674
14675ac_header_compiler=no
14676fi
14677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14678echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14679echo "${ECHO_T}$ac_header_compiler" >&6
14680
14681# Is the header present?
14682echo "$as_me:$LINENO: checking dl.h presence" >&5
14683echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14684cat >conftest.$ac_ext <<_ACEOF
14685/* confdefs.h.  */
14686_ACEOF
14687cat confdefs.h >>conftest.$ac_ext
14688cat >>conftest.$ac_ext <<_ACEOF
14689/* end confdefs.h.  */
14690#include <dl.h>
14691_ACEOF
14692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14693  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14694  ac_status=$?
14695  grep -v '^ *+' conftest.er1 >conftest.err
14696  rm -f conftest.er1
14697  cat conftest.err >&5
14698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699  (exit $ac_status); } >/dev/null; then
14700  if test -s conftest.err; then
14701    ac_cpp_err=$ac_c_preproc_warn_flag
14702    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14703  else
14704    ac_cpp_err=
14705  fi
14706else
14707  ac_cpp_err=yes
14708fi
14709if test -z "$ac_cpp_err"; then
14710  ac_header_preproc=yes
14711else
14712  echo "$as_me: failed program was:" >&5
14713sed 's/^/| /' conftest.$ac_ext >&5
14714
14715  ac_header_preproc=no
14716fi
14717rm -f conftest.err conftest.$ac_ext
14718echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14719echo "${ECHO_T}$ac_header_preproc" >&6
14720
14721# So?  What about this header?
14722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14723  yes:no: )
14724    { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14725echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14726    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14727echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14728    ac_header_preproc=yes
14729    ;;
14730  no:yes:* )
14731    { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14732echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14733    { echo "$as_me:$LINENO: WARNING: dl.h:     check for missing prerequisite headers?" >&5
14734echo "$as_me: WARNING: dl.h:     check for missing prerequisite headers?" >&2;}
14735    { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14736echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14737    { echo "$as_me:$LINENO: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&5
14738echo "$as_me: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14739    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14740echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14741    { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14742echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14743    (
14744      cat <<\_ASBOX
14745## ------------------------------------------ ##
14746## Report this to the AC_PACKAGE_NAME lists.  ##
14747## ------------------------------------------ ##
14748_ASBOX
14749    ) |
14750      sed "s/^/$as_me: WARNING:     /" >&2
14751    ;;
14752esac
14753echo "$as_me:$LINENO: checking for dl.h" >&5
14754echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14755if test "${ac_cv_header_dl_h+set}" = set; then
14756  echo $ECHO_N "(cached) $ECHO_C" >&6
14757else
14758  ac_cv_header_dl_h=$ac_header_preproc
14759fi
14760echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14761echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14762
14763fi
14764if test $ac_cv_header_dl_h = yes; then
14765  DLL=dl.h
14766fi
14767
14768
14769fi
14770
14771
14772if test x${DLL} = xdlfcn.h; then
14773
14774cat >>confdefs.h <<\_ACEOF
14775#define HAVE_DLFCN_H 1
14776_ACEOF
14777
14778  echo "$as_me:$LINENO: checking for dlopen()" >&5
14779echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14780  cat >conftest.$ac_ext <<_ACEOF
14781/* confdefs.h.  */
14782_ACEOF
14783cat confdefs.h >>conftest.$ac_ext
14784cat >>conftest.$ac_ext <<_ACEOF
14785/* end confdefs.h.  */
14786
14787int
14788main ()
14789{
14790
14791		extern void* dlopen();
14792		dlopen();
14793
14794  ;
14795  return 0;
14796}
14797_ACEOF
14798rm -f conftest.$ac_objext conftest$ac_exeext
14799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800  (eval $ac_link) 2>conftest.er1
14801  ac_status=$?
14802  grep -v '^ *+' conftest.er1 >conftest.err
14803  rm -f conftest.er1
14804  cat conftest.err >&5
14805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806  (exit $ac_status); } &&
14807	 { ac_try='test -z "$ac_c_werror_flag"
14808			 || test ! -s conftest.err'
14809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810  (eval $ac_try) 2>&5
14811  ac_status=$?
14812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813  (exit $ac_status); }; } &&
14814	 { ac_try='test -s conftest$ac_exeext'
14815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816  (eval $ac_try) 2>&5
14817  ac_status=$?
14818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819  (exit $ac_status); }; }; then
14820  echo "$as_me:$LINENO: result: yes" >&5
14821echo "${ECHO_T}yes" >&6;
14822
14823cat >>confdefs.h <<\_ACEOF
14824#define HAVE_DLOPEN 1
14825_ACEOF
14826
14827else
14828  echo "$as_me: failed program was:" >&5
14829sed 's/^/| /' conftest.$ac_ext >&5
14830
14831echo "$as_me:$LINENO: result: no" >&5
14832echo "${ECHO_T}no" >&6;
14833	      echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14834echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
14835	      olibs=$LIBS
14836	      LIBS="$LIBS -ldl"
14837	      cat >conftest.$ac_ext <<_ACEOF
14838/* confdefs.h.  */
14839_ACEOF
14840cat confdefs.h >>conftest.$ac_ext
14841cat >>conftest.$ac_ext <<_ACEOF
14842/* end confdefs.h.  */
14843
14844int
14845main ()
14846{
14847
14848				extern void* dlopen();
14849				dlopen();
14850
14851  ;
14852  return 0;
14853}
14854_ACEOF
14855rm -f conftest.$ac_objext conftest$ac_exeext
14856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14857  (eval $ac_link) 2>conftest.er1
14858  ac_status=$?
14859  grep -v '^ *+' conftest.er1 >conftest.err
14860  rm -f conftest.er1
14861  cat conftest.err >&5
14862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863  (exit $ac_status); } &&
14864	 { ac_try='test -z "$ac_c_werror_flag"
14865			 || test ! -s conftest.err'
14866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867  (eval $ac_try) 2>&5
14868  ac_status=$?
14869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870  (exit $ac_status); }; } &&
14871	 { ac_try='test -s conftest$ac_exeext'
14872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873  (eval $ac_try) 2>&5
14874  ac_status=$?
14875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876  (exit $ac_status); }; }; then
14877  echo "$as_me:$LINENO: result: yes" >&5
14878echo "${ECHO_T}yes" >&6;
14879
14880cat >>confdefs.h <<\_ACEOF
14881#define HAVE_DLOPEN 1
14882_ACEOF
14883
14884else
14885  echo "$as_me: failed program was:" >&5
14886sed 's/^/| /' conftest.$ac_ext >&5
14887
14888echo "$as_me:$LINENO: result: no" >&5
14889echo "${ECHO_T}no" >&6;
14890			  LIBS=$olibs
14891fi
14892rm -f conftest.err conftest.$ac_objext \
14893      conftest$ac_exeext conftest.$ac_ext
14894fi
14895rm -f conftest.err conftest.$ac_objext \
14896      conftest$ac_exeext conftest.$ac_ext
14897      echo "$as_me:$LINENO: checking for dlsym()" >&5
14898echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14899  cat >conftest.$ac_ext <<_ACEOF
14900/* confdefs.h.  */
14901_ACEOF
14902cat confdefs.h >>conftest.$ac_ext
14903cat >>conftest.$ac_ext <<_ACEOF
14904/* end confdefs.h.  */
14905
14906int
14907main ()
14908{
14909
14910		extern void* dlsym();
14911		dlsym();
14912
14913  ;
14914  return 0;
14915}
14916_ACEOF
14917rm -f conftest.$ac_objext conftest$ac_exeext
14918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14919  (eval $ac_link) 2>conftest.er1
14920  ac_status=$?
14921  grep -v '^ *+' conftest.er1 >conftest.err
14922  rm -f conftest.er1
14923  cat conftest.err >&5
14924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925  (exit $ac_status); } &&
14926	 { ac_try='test -z "$ac_c_werror_flag"
14927			 || test ! -s conftest.err'
14928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929  (eval $ac_try) 2>&5
14930  ac_status=$?
14931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932  (exit $ac_status); }; } &&
14933	 { ac_try='test -s conftest$ac_exeext'
14934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935  (eval $ac_try) 2>&5
14936  ac_status=$?
14937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938  (exit $ac_status); }; }; then
14939  echo "$as_me:$LINENO: result: yes" >&5
14940echo "${ECHO_T}yes" >&6;
14941
14942cat >>confdefs.h <<\_ACEOF
14943#define HAVE_DLSYM 1
14944_ACEOF
14945
14946else
14947  echo "$as_me: failed program was:" >&5
14948sed 's/^/| /' conftest.$ac_ext >&5
14949
14950echo "$as_me:$LINENO: result: no" >&5
14951echo "${ECHO_T}no" >&6;
14952	      echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
14953echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
14954	      olibs=$LIBS
14955	      LIBS="$LIBS -ldl"
14956	      cat >conftest.$ac_ext <<_ACEOF
14957/* confdefs.h.  */
14958_ACEOF
14959cat confdefs.h >>conftest.$ac_ext
14960cat >>conftest.$ac_ext <<_ACEOF
14961/* end confdefs.h.  */
14962
14963int
14964main ()
14965{
14966
14967				extern void* dlsym();
14968				dlsym();
14969
14970  ;
14971  return 0;
14972}
14973_ACEOF
14974rm -f conftest.$ac_objext conftest$ac_exeext
14975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976  (eval $ac_link) 2>conftest.er1
14977  ac_status=$?
14978  grep -v '^ *+' conftest.er1 >conftest.err
14979  rm -f conftest.er1
14980  cat conftest.err >&5
14981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982  (exit $ac_status); } &&
14983	 { ac_try='test -z "$ac_c_werror_flag"
14984			 || test ! -s conftest.err'
14985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986  (eval $ac_try) 2>&5
14987  ac_status=$?
14988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989  (exit $ac_status); }; } &&
14990	 { ac_try='test -s conftest$ac_exeext'
14991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992  (eval $ac_try) 2>&5
14993  ac_status=$?
14994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995  (exit $ac_status); }; }; then
14996  echo "$as_me:$LINENO: result: yes" >&5
14997echo "${ECHO_T}yes" >&6;
14998
14999cat >>confdefs.h <<\_ACEOF
15000#define HAVE_DLSYM 1
15001_ACEOF
15002
15003else
15004  echo "$as_me: failed program was:" >&5
15005sed 's/^/| /' conftest.$ac_ext >&5
15006
15007echo "$as_me:$LINENO: result: no" >&5
15008echo "${ECHO_T}no" >&6;
15009			  LIBS=$olibs
15010fi
15011rm -f conftest.err conftest.$ac_objext \
15012      conftest$ac_exeext conftest.$ac_ext
15013fi
15014rm -f conftest.err conftest.$ac_objext \
15015      conftest$ac_exeext conftest.$ac_ext
15016elif test x${DLL} = xdl.h; then
15017
15018cat >>confdefs.h <<\_ACEOF
15019#define HAVE_DL_H 1
15020_ACEOF
15021
15022  echo "$as_me:$LINENO: checking for shl_load()" >&5
15023echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15024  cat >conftest.$ac_ext <<_ACEOF
15025/* confdefs.h.  */
15026_ACEOF
15027cat confdefs.h >>conftest.$ac_ext
15028cat >>conftest.$ac_ext <<_ACEOF
15029/* end confdefs.h.  */
15030
15031int
15032main ()
15033{
15034
15035		extern void* shl_load();
15036		shl_load();
15037
15038  ;
15039  return 0;
15040}
15041_ACEOF
15042rm -f conftest.$ac_objext conftest$ac_exeext
15043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044  (eval $ac_link) 2>conftest.er1
15045  ac_status=$?
15046  grep -v '^ *+' conftest.er1 >conftest.err
15047  rm -f conftest.er1
15048  cat conftest.err >&5
15049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050  (exit $ac_status); } &&
15051	 { ac_try='test -z "$ac_c_werror_flag"
15052			 || test ! -s conftest.err'
15053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054  (eval $ac_try) 2>&5
15055  ac_status=$?
15056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057  (exit $ac_status); }; } &&
15058	 { ac_try='test -s conftest$ac_exeext'
15059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060  (eval $ac_try) 2>&5
15061  ac_status=$?
15062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063  (exit $ac_status); }; }; then
15064  echo "$as_me:$LINENO: result: yes" >&5
15065echo "${ECHO_T}yes" >&6;
15066
15067cat >>confdefs.h <<\_ACEOF
15068#define HAVE_SHL_LOAD 1
15069_ACEOF
15070
15071else
15072  echo "$as_me: failed program was:" >&5
15073sed 's/^/| /' conftest.$ac_ext >&5
15074
15075echo "$as_me:$LINENO: result: no" >&5
15076echo "${ECHO_T}no" >&6;
15077	  echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15078echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
15079	  olibs=$LIBS
15080	  LIBS="$LIBS -ldld"
15081	  cat >conftest.$ac_ext <<_ACEOF
15082/* confdefs.h.  */
15083_ACEOF
15084cat confdefs.h >>conftest.$ac_ext
15085cat >>conftest.$ac_ext <<_ACEOF
15086/* end confdefs.h.  */
15087
15088int
15089main ()
15090{
15091
15092			extern void* shl_load();
15093			shl_load();
15094
15095  ;
15096  return 0;
15097}
15098_ACEOF
15099rm -f conftest.$ac_objext conftest$ac_exeext
15100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101  (eval $ac_link) 2>conftest.er1
15102  ac_status=$?
15103  grep -v '^ *+' conftest.er1 >conftest.err
15104  rm -f conftest.er1
15105  cat conftest.err >&5
15106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107  (exit $ac_status); } &&
15108	 { ac_try='test -z "$ac_c_werror_flag"
15109			 || test ! -s conftest.err'
15110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111  (eval $ac_try) 2>&5
15112  ac_status=$?
15113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114  (exit $ac_status); }; } &&
15115	 { ac_try='test -s conftest$ac_exeext'
15116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117  (eval $ac_try) 2>&5
15118  ac_status=$?
15119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120  (exit $ac_status); }; }; then
15121  echo "$as_me:$LINENO: result: yes" >&5
15122echo "${ECHO_T}yes" >&6;
15123
15124cat >>confdefs.h <<\_ACEOF
15125#define HAVE_SHL_LOAD 1
15126_ACEOF
15127
15128else
15129  echo "$as_me: failed program was:" >&5
15130sed 's/^/| /' conftest.$ac_ext >&5
15131
15132echo "$as_me:$LINENO: result: no" >&5
15133echo "${ECHO_T}no" >&6;
15134		  LIBS=$olibs
15135fi
15136rm -f conftest.err conftest.$ac_objext \
15137      conftest$ac_exeext conftest.$ac_ext
15138fi
15139rm -f conftest.err conftest.$ac_objext \
15140      conftest$ac_exeext conftest.$ac_ext
15141fi
15142
15143for ac_header in setjmp.h
15144do
15145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15146if eval "test \"\${$as_ac_Header+set}\" = set"; then
15147  echo "$as_me:$LINENO: checking for $ac_header" >&5
15148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15149if eval "test \"\${$as_ac_Header+set}\" = set"; then
15150  echo $ECHO_N "(cached) $ECHO_C" >&6
15151fi
15152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15154else
15155  # Is the header compilable?
15156echo "$as_me:$LINENO: checking $ac_header usability" >&5
15157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15158cat >conftest.$ac_ext <<_ACEOF
15159/* confdefs.h.  */
15160_ACEOF
15161cat confdefs.h >>conftest.$ac_ext
15162cat >>conftest.$ac_ext <<_ACEOF
15163/* end confdefs.h.  */
15164$ac_includes_default
15165#include <$ac_header>
15166_ACEOF
15167rm -f conftest.$ac_objext
15168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15169  (eval $ac_compile) 2>conftest.er1
15170  ac_status=$?
15171  grep -v '^ *+' conftest.er1 >conftest.err
15172  rm -f conftest.er1
15173  cat conftest.err >&5
15174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175  (exit $ac_status); } &&
15176	 { ac_try='test -z "$ac_c_werror_flag"
15177			 || test ! -s conftest.err'
15178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179  (eval $ac_try) 2>&5
15180  ac_status=$?
15181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182  (exit $ac_status); }; } &&
15183	 { ac_try='test -s conftest.$ac_objext'
15184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185  (eval $ac_try) 2>&5
15186  ac_status=$?
15187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188  (exit $ac_status); }; }; then
15189  ac_header_compiler=yes
15190else
15191  echo "$as_me: failed program was:" >&5
15192sed 's/^/| /' conftest.$ac_ext >&5
15193
15194ac_header_compiler=no
15195fi
15196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15198echo "${ECHO_T}$ac_header_compiler" >&6
15199
15200# Is the header present?
15201echo "$as_me:$LINENO: checking $ac_header presence" >&5
15202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15203cat >conftest.$ac_ext <<_ACEOF
15204/* confdefs.h.  */
15205_ACEOF
15206cat confdefs.h >>conftest.$ac_ext
15207cat >>conftest.$ac_ext <<_ACEOF
15208/* end confdefs.h.  */
15209#include <$ac_header>
15210_ACEOF
15211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15212  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15213  ac_status=$?
15214  grep -v '^ *+' conftest.er1 >conftest.err
15215  rm -f conftest.er1
15216  cat conftest.err >&5
15217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218  (exit $ac_status); } >/dev/null; then
15219  if test -s conftest.err; then
15220    ac_cpp_err=$ac_c_preproc_warn_flag
15221    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15222  else
15223    ac_cpp_err=
15224  fi
15225else
15226  ac_cpp_err=yes
15227fi
15228if test -z "$ac_cpp_err"; then
15229  ac_header_preproc=yes
15230else
15231  echo "$as_me: failed program was:" >&5
15232sed 's/^/| /' conftest.$ac_ext >&5
15233
15234  ac_header_preproc=no
15235fi
15236rm -f conftest.err conftest.$ac_ext
15237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15238echo "${ECHO_T}$ac_header_preproc" >&6
15239
15240# So?  What about this header?
15241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15242  yes:no: )
15243    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15245    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15247    ac_header_preproc=yes
15248    ;;
15249  no:yes:* )
15250    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15252    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15253echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15254    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15256    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15257echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15258    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15260    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15262    (
15263      cat <<\_ASBOX
15264## ------------------------------------------ ##
15265## Report this to the AC_PACKAGE_NAME lists.  ##
15266## ------------------------------------------ ##
15267_ASBOX
15268    ) |
15269      sed "s/^/$as_me: WARNING:     /" >&2
15270    ;;
15271esac
15272echo "$as_me:$LINENO: checking for $ac_header" >&5
15273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15274if eval "test \"\${$as_ac_Header+set}\" = set"; then
15275  echo $ECHO_N "(cached) $ECHO_C" >&6
15276else
15277  eval "$as_ac_Header=\$ac_header_preproc"
15278fi
15279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15281
15282fi
15283if test `eval echo '${'$as_ac_Header'}'` = yes; then
15284  cat >>confdefs.h <<_ACEOF
15285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15286_ACEOF
15287
15288fi
15289
15290done
15291
15292
15293if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15294    if echo $LIBS | grep -e '-ldl' >/dev/null; then
15295    LIBS=`echo $LIBS | sed s/-ldl//`
15296    PERL_LIBS="$PERL_LIBS -ldl"
15297  fi
15298fi
15299
15300if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15301	&& test "x$GUITYPE" != "xCARBONGUI"; then
15302  echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15303echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
15304    if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
15305	|| test "x$features" = "xhuge"; then
15306    LIBS="$LIBS -framework Carbon"
15307    echo "$as_me:$LINENO: result: yes" >&5
15308echo "${ECHO_T}yes" >&6
15309  else
15310    echo "$as_me:$LINENO: result: no" >&5
15311echo "${ECHO_T}no" >&6
15312  fi
15313fi
15314if test "x$MACARCH" = "xboth"; then
15315  LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15316fi
15317
15318echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15319echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
15320DEPEND_CFLAGS_FILTER=
15321if test "$GCC" = yes; then
15322  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
15323  if test "$gccmajor" -gt "2"; then
15324    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15325  fi
15326fi
15327if test "$DEPEND_CFLAGS_FILTER" = ""; then
15328  echo "$as_me:$LINENO: result: no" >&5
15329echo "${ECHO_T}no" >&6
15330else
15331  echo "$as_me:$LINENO: result: yes" >&5
15332echo "${ECHO_T}yes" >&6
15333fi
15334
15335
15336          ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15337cat >confcache <<\_ACEOF
15338# This file is a shell script that caches the results of configure
15339# tests run on this system so they can be shared between configure
15340# scripts and configure runs, see configure's option --config-cache.
15341# It is not useful on other systems.  If it contains results you don't
15342# want to keep, you may remove or edit it.
15343#
15344# config.status only pays attention to the cache file if you give it
15345# the --recheck option to rerun configure.
15346#
15347# `ac_cv_env_foo' variables (set or unset) will be overridden when
15348# loading this file, other *unset* `ac_cv_foo' will be assigned the
15349# following values.
15350
15351_ACEOF
15352
15353# The following way of writing the cache mishandles newlines in values,
15354# but we know of no workaround that is simple, portable, and efficient.
15355# So, don't put newlines in cache variables' values.
15356# Ultrix sh set writes to stderr and can't be redirected directly,
15357# and sets the high bit in the cache file unless we assign to the vars.
15358{
15359  (set) 2>&1 |
15360    case `(ac_space=' '; set | grep ac_space) 2>&1` in
15361    *ac_space=\ *)
15362      # `set' does not quote correctly, so add quotes (double-quote
15363      # substitution turns \\\\ into \\, and sed turns \\ into \).
15364      sed -n \
15365	"s/'/'\\\\''/g;
15366	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15367      ;;
15368    *)
15369      # `set' quotes correctly as required by POSIX, so do not add quotes.
15370      sed -n \
15371	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15372      ;;
15373    esac;
15374} |
15375  sed '
15376     t clear
15377     : clear
15378     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15379     t end
15380     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15381     : end' >>confcache
15382if diff $cache_file confcache >/dev/null 2>&1; then :; else
15383  if test -w $cache_file; then
15384    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15385    cat confcache >$cache_file
15386  else
15387    echo "not updating unwritable cache $cache_file"
15388  fi
15389fi
15390rm -f confcache
15391
15392test "x$prefix" = xNONE && prefix=$ac_default_prefix
15393# Let make expand exec_prefix.
15394test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15395
15396# VPATH may cause trouble with some makes, so we remove $(srcdir),
15397# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15398# trailing colons and then remove the whole line if VPATH becomes empty
15399# (actually we leave an empty line to preserve line numbers).
15400if test "x$srcdir" = x.; then
15401  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15402s/:*\$(srcdir):*/:/;
15403s/:*\${srcdir}:*/:/;
15404s/:*@srcdir@:*/:/;
15405s/^\([^=]*=[	 ]*\):*/\1/;
15406s/:*$//;
15407s/^[^=]*=[	 ]*$//;
15408}'
15409fi
15410
15411DEFS=-DHAVE_CONFIG_H
15412
15413ac_libobjs=
15414ac_ltlibobjs=
15415for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15416  # 1. Remove the extension, and $U if already installed.
15417  ac_i=`echo "$ac_i" |
15418	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15419  # 2. Add them.
15420  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15421  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15422done
15423LIBOBJS=$ac_libobjs
15424
15425LTLIBOBJS=$ac_ltlibobjs
15426
15427
15428
15429: ${CONFIG_STATUS=./config.status}
15430ac_clean_files_save=$ac_clean_files
15431ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15432{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15433echo "$as_me: creating $CONFIG_STATUS" >&6;}
15434cat >$CONFIG_STATUS <<_ACEOF
15435#! $SHELL
15436# Generated by $as_me.
15437# Run this file to recreate the current configuration.
15438# Compiler output produced by configure, useful for debugging
15439# configure, is in config.log if it exists.
15440
15441debug=false
15442ac_cs_recheck=false
15443ac_cs_silent=false
15444SHELL=\${CONFIG_SHELL-$SHELL}
15445_ACEOF
15446
15447cat >>$CONFIG_STATUS <<\_ACEOF
15448## --------------------- ##
15449## M4sh Initialization.  ##
15450## --------------------- ##
15451
15452# Be Bourne compatible
15453if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15454  emulate sh
15455  NULLCMD=:
15456  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15457  # is contrary to our usage.  Disable this feature.
15458  alias -g '${1+"$@"}'='"$@"'
15459elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15460  set -o posix
15461fi
15462DUALCASE=1; export DUALCASE # for MKS sh
15463
15464# Support unset when possible.
15465if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15466  as_unset=unset
15467else
15468  as_unset=false
15469fi
15470
15471
15472# Work around bugs in pre-3.0 UWIN ksh.
15473$as_unset ENV MAIL MAILPATH
15474PS1='$ '
15475PS2='> '
15476PS4='+ '
15477
15478# NLS nuisances.
15479for as_var in \
15480  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15481  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15482  LC_TELEPHONE LC_TIME
15483do
15484  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15485    eval $as_var=C; export $as_var
15486  else
15487    $as_unset $as_var
15488  fi
15489done
15490
15491# Required to use basename.
15492if expr a : '\(a\)' >/dev/null 2>&1; then
15493  as_expr=expr
15494else
15495  as_expr=false
15496fi
15497
15498if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15499  as_basename=basename
15500else
15501  as_basename=false
15502fi
15503
15504
15505# Name of the executable.
15506as_me=`$as_basename "$0" ||
15507$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15508	 X"$0" : 'X\(//\)$' \| \
15509	 X"$0" : 'X\(/\)$' \| \
15510	 .     : '\(.\)' 2>/dev/null ||
15511echo X/"$0" |
15512    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15513  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
15514  	  /^X\/\(\/\).*/{ s//\1/; q; }
15515  	  s/.*/./; q'`
15516
15517
15518# PATH needs CR, and LINENO needs CR and PATH.
15519# Avoid depending upon Character Ranges.
15520as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15521as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15522as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15523as_cr_digits='0123456789'
15524as_cr_alnum=$as_cr_Letters$as_cr_digits
15525
15526# The user is always right.
15527if test "${PATH_SEPARATOR+set}" != set; then
15528  echo "#! /bin/sh" >conf$$.sh
15529  echo  "exit 0"   >>conf$$.sh
15530  chmod +x conf$$.sh
15531  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15532    PATH_SEPARATOR=';'
15533  else
15534    PATH_SEPARATOR=:
15535  fi
15536  rm -f conf$$.sh
15537fi
15538
15539
15540  as_lineno_1=$LINENO
15541  as_lineno_2=$LINENO
15542  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15543  test "x$as_lineno_1" != "x$as_lineno_2" &&
15544  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15545  # Find who we are.  Look in the path if we contain no path at all
15546  # relative or not.
15547  case $0 in
15548    *[\\/]* ) as_myself=$0 ;;
15549    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15550for as_dir in $PATH
15551do
15552  IFS=$as_save_IFS
15553  test -z "$as_dir" && as_dir=.
15554  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15555done
15556
15557       ;;
15558  esac
15559  # We did not find ourselves, most probably we were run as `sh COMMAND'
15560  # in which case we are not to be found in the path.
15561  if test "x$as_myself" = x; then
15562    as_myself=$0
15563  fi
15564  if test ! -f "$as_myself"; then
15565    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15566echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15567   { (exit 1); exit 1; }; }
15568  fi
15569  case $CONFIG_SHELL in
15570  '')
15571    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15572for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15573do
15574  IFS=$as_save_IFS
15575  test -z "$as_dir" && as_dir=.
15576  for as_base in sh bash ksh sh5; do
15577	 case $as_dir in
15578	 /*)
15579	   if ("$as_dir/$as_base" -c '
15580  as_lineno_1=$LINENO
15581  as_lineno_2=$LINENO
15582  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15583  test "x$as_lineno_1" != "x$as_lineno_2" &&
15584  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15585	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15586	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15587	     CONFIG_SHELL=$as_dir/$as_base
15588	     export CONFIG_SHELL
15589	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15590	   fi;;
15591	 esac
15592       done
15593done
15594;;
15595  esac
15596
15597  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15598  # uniformly replaced by the line number.  The first 'sed' inserts a
15599  # line-number line before each line; the second 'sed' does the real
15600  # work.  The second script uses 'N' to pair each line-number line
15601  # with the numbered line, and appends trailing '-' during
15602  # substitution so that $LINENO is not a special case at line end.
15603  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15604  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15605  sed '=' <$as_myself |
15606    sed '
15607      N
15608      s,$,-,
15609      : loop
15610      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15611      t loop
15612      s,-$,,
15613      s,^['$as_cr_digits']*\n,,
15614    ' >$as_me.lineno &&
15615  chmod +x $as_me.lineno ||
15616    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15617echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15618   { (exit 1); exit 1; }; }
15619
15620  # Don't try to exec as it changes $[0], causing all sort of problems
15621  # (the dirname of $[0] is not the place where we might find the
15622  # original and so on.  Autoconf is especially sensible to this).
15623  . ./$as_me.lineno
15624  # Exit status is that of the last command.
15625  exit
15626}
15627
15628
15629case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15630  *c*,-n*) ECHO_N= ECHO_C='
15631' ECHO_T='	' ;;
15632  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15633  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15634esac
15635
15636if expr a : '\(a\)' >/dev/null 2>&1; then
15637  as_expr=expr
15638else
15639  as_expr=false
15640fi
15641
15642rm -f conf$$ conf$$.exe conf$$.file
15643echo >conf$$.file
15644if ln -s conf$$.file conf$$ 2>/dev/null; then
15645  # We could just check for DJGPP; but this test a) works b) is more generic
15646  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15647  if test -f conf$$.exe; then
15648    # Don't use ln at all; we don't have any links
15649    as_ln_s='cp -p'
15650  else
15651    as_ln_s='ln -s'
15652  fi
15653elif ln conf$$.file conf$$ 2>/dev/null; then
15654  as_ln_s=ln
15655else
15656  as_ln_s='cp -p'
15657fi
15658rm -f conf$$ conf$$.exe conf$$.file
15659
15660if mkdir -p . 2>/dev/null; then
15661  as_mkdir_p=:
15662else
15663  test -d ./-p && rmdir ./-p
15664  as_mkdir_p=false
15665fi
15666
15667as_executable_p="test -f"
15668
15669# Sed expression to map a string onto a valid CPP name.
15670as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15671
15672# Sed expression to map a string onto a valid variable name.
15673as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15674
15675
15676# IFS
15677# We need space, tab and new line, in precisely that order.
15678as_nl='
15679'
15680IFS=" 	$as_nl"
15681
15682# CDPATH.
15683$as_unset CDPATH
15684
15685exec 6>&1
15686
15687# Open the log real soon, to keep \$[0] and so on meaningful, and to
15688# report actual input values of CONFIG_FILES etc. instead of their
15689# values after options handling.  Logging --version etc. is OK.
15690exec 5>>auto/config.log
15691{
15692  echo
15693  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15694## Running $as_me. ##
15695_ASBOX
15696} >&5
15697cat >&5 <<_CSEOF
15698
15699This file was extended by $as_me, which was
15700generated by GNU Autoconf 2.59.  Invocation command line was
15701
15702  CONFIG_FILES    = $CONFIG_FILES
15703  CONFIG_HEADERS  = $CONFIG_HEADERS
15704  CONFIG_LINKS    = $CONFIG_LINKS
15705  CONFIG_COMMANDS = $CONFIG_COMMANDS
15706  $ $0 $@
15707
15708_CSEOF
15709echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15710echo >&5
15711_ACEOF
15712
15713# Files that config.status was made for.
15714if test -n "$ac_config_files"; then
15715  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15716fi
15717
15718if test -n "$ac_config_headers"; then
15719  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15720fi
15721
15722if test -n "$ac_config_links"; then
15723  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15724fi
15725
15726if test -n "$ac_config_commands"; then
15727  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15728fi
15729
15730cat >>$CONFIG_STATUS <<\_ACEOF
15731
15732ac_cs_usage="\
15733\`$as_me' instantiates files from templates according to the
15734current configuration.
15735
15736Usage: $0 [OPTIONS] [FILE]...
15737
15738  -h, --help       print this help, then exit
15739  -V, --version    print version number, then exit
15740  -q, --quiet      do not print progress messages
15741  -d, --debug      don't remove temporary files
15742      --recheck    update $as_me by reconfiguring in the same conditions
15743  --file=FILE[:TEMPLATE]
15744		   instantiate the configuration file FILE
15745  --header=FILE[:TEMPLATE]
15746		   instantiate the configuration header FILE
15747
15748Configuration files:
15749$config_files
15750
15751Configuration headers:
15752$config_headers
15753
15754Report bugs to <[email protected]>."
15755_ACEOF
15756
15757cat >>$CONFIG_STATUS <<_ACEOF
15758ac_cs_version="\\
15759config.status
15760configured by $0, generated by GNU Autoconf 2.59,
15761  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15762
15763Copyright (C) 2003 Free Software Foundation, Inc.
15764This config.status script is free software; the Free Software Foundation
15765gives unlimited permission to copy, distribute and modify it."
15766srcdir=$srcdir
15767_ACEOF
15768
15769cat >>$CONFIG_STATUS <<\_ACEOF
15770# If no file are specified by the user, then we need to provide default
15771# value.  By we need to know if files were specified by the user.
15772ac_need_defaults=:
15773while test $# != 0
15774do
15775  case $1 in
15776  --*=*)
15777    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15778    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15779    ac_shift=:
15780    ;;
15781  -*)
15782    ac_option=$1
15783    ac_optarg=$2
15784    ac_shift=shift
15785    ;;
15786  *) # This is not an option, so the user has probably given explicit
15787     # arguments.
15788     ac_option=$1
15789     ac_need_defaults=false;;
15790  esac
15791
15792  case $ac_option in
15793  # Handling of the options.
15794_ACEOF
15795cat >>$CONFIG_STATUS <<\_ACEOF
15796  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15797    ac_cs_recheck=: ;;
15798  --version | --vers* | -V )
15799    echo "$ac_cs_version"; exit 0 ;;
15800  --he | --h)
15801    # Conflict between --help and --header
15802    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15803Try \`$0 --help' for more information." >&5
15804echo "$as_me: error: ambiguous option: $1
15805Try \`$0 --help' for more information." >&2;}
15806   { (exit 1); exit 1; }; };;
15807  --help | --hel | -h )
15808    echo "$ac_cs_usage"; exit 0 ;;
15809  --debug | --d* | -d )
15810    debug=: ;;
15811  --file | --fil | --fi | --f )
15812    $ac_shift
15813    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15814    ac_need_defaults=false;;
15815  --header | --heade | --head | --hea )
15816    $ac_shift
15817    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15818    ac_need_defaults=false;;
15819  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15820  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15821    ac_cs_silent=: ;;
15822
15823  # This is an error.
15824  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15825Try \`$0 --help' for more information." >&5
15826echo "$as_me: error: unrecognized option: $1
15827Try \`$0 --help' for more information." >&2;}
15828   { (exit 1); exit 1; }; } ;;
15829
15830  *) ac_config_targets="$ac_config_targets $1" ;;
15831
15832  esac
15833  shift
15834done
15835
15836ac_configure_extra_args=
15837
15838if $ac_cs_silent; then
15839  exec 6>/dev/null
15840  ac_configure_extra_args="$ac_configure_extra_args --silent"
15841fi
15842
15843_ACEOF
15844cat >>$CONFIG_STATUS <<_ACEOF
15845if \$ac_cs_recheck; then
15846  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15847  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15848fi
15849
15850_ACEOF
15851
15852
15853
15854
15855
15856cat >>$CONFIG_STATUS <<\_ACEOF
15857for ac_config_target in $ac_config_targets
15858do
15859  case "$ac_config_target" in
15860  # Handling of arguments.
15861  "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15862  "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15863  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15864echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15865   { (exit 1); exit 1; }; };;
15866  esac
15867done
15868
15869# If the user did not use the arguments to specify the items to instantiate,
15870# then the envvar interface is used.  Set only those that are not.
15871# We use the long form for the default assignment because of an extremely
15872# bizarre bug on SunOS 4.1.3.
15873if $ac_need_defaults; then
15874  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15875  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15876fi
15877
15878# Have a temporary directory for convenience.  Make it in the build tree
15879# simply because there is no reason to put it here, and in addition,
15880# creating and moving files from /tmp can sometimes cause problems.
15881# Create a temporary directory, and hook for its removal unless debugging.
15882$debug ||
15883{
15884  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15885  trap '{ (exit 1); exit 1; }' 1 2 13 15
15886}
15887
15888# Create a (secure) tmp directory for tmp files.
15889
15890{
15891  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15892  test -n "$tmp" && test -d "$tmp"
15893}  ||
15894{
15895  tmp=./confstat$$-$RANDOM
15896  (umask 077 && mkdir $tmp)
15897} ||
15898{
15899   echo "$me: cannot create a temporary directory in ." >&2
15900   { (exit 1); exit 1; }
15901}
15902
15903_ACEOF
15904
15905cat >>$CONFIG_STATUS <<_ACEOF
15906
15907#
15908# CONFIG_FILES section.
15909#
15910
15911# No need to generate the scripts if there are no CONFIG_FILES.
15912# This happens for instance when ./config.status config.h
15913if test -n "\$CONFIG_FILES"; then
15914  # Protect against being on the right side of a sed subst in config.status.
15915  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15916   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15917s,@SHELL@,$SHELL,;t t
15918s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15919s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15920s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15921s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15922s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15923s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15924s,@exec_prefix@,$exec_prefix,;t t
15925s,@prefix@,$prefix,;t t
15926s,@program_transform_name@,$program_transform_name,;t t
15927s,@bindir@,$bindir,;t t
15928s,@sbindir@,$sbindir,;t t
15929s,@libexecdir@,$libexecdir,;t t
15930s,@datadir@,$datadir,;t t
15931s,@sysconfdir@,$sysconfdir,;t t
15932s,@sharedstatedir@,$sharedstatedir,;t t
15933s,@localstatedir@,$localstatedir,;t t
15934s,@libdir@,$libdir,;t t
15935s,@includedir@,$includedir,;t t
15936s,@oldincludedir@,$oldincludedir,;t t
15937s,@infodir@,$infodir,;t t
15938s,@mandir@,$mandir,;t t
15939s,@build_alias@,$build_alias,;t t
15940s,@host_alias@,$host_alias,;t t
15941s,@target_alias@,$target_alias,;t t
15942s,@DEFS@,$DEFS,;t t
15943s,@ECHO_C@,$ECHO_C,;t t
15944s,@ECHO_N@,$ECHO_N,;t t
15945s,@ECHO_T@,$ECHO_T,;t t
15946s,@LIBS@,$LIBS,;t t
15947s,@SET_MAKE@,$SET_MAKE,;t t
15948s,@CC@,$CC,;t t
15949s,@CFLAGS@,$CFLAGS,;t t
15950s,@LDFLAGS@,$LDFLAGS,;t t
15951s,@CPPFLAGS@,$CPPFLAGS,;t t
15952s,@ac_ct_CC@,$ac_ct_CC,;t t
15953s,@EXEEXT@,$EXEEXT,;t t
15954s,@OBJEXT@,$OBJEXT,;t t
15955s,@CPP@,$CPP,;t t
15956s,@EGREP@,$EGREP,;t t
15957s,@AWK@,$AWK,;t t
15958s,@STRIP@,$STRIP,;t t
15959s,@CPP_MM@,$CPP_MM,;t t
15960s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
15961s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
15962s,@VIMNAME@,$VIMNAME,;t t
15963s,@EXNAME@,$EXNAME,;t t
15964s,@VIEWNAME@,$VIEWNAME,;t t
15965s,@line_break@,$line_break,;t t
15966s,@dovimdiff@,$dovimdiff,;t t
15967s,@dogvimdiff@,$dogvimdiff,;t t
15968s,@compiledby@,$compiledby,;t t
15969s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
15970s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
15971s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
15972s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
15973s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
15974s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
15975s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
15976s,@vi_cv_perllib@,$vi_cv_perllib,;t t
15977s,@shrpenv@,$shrpenv,;t t
15978s,@PERL_SRC@,$PERL_SRC,;t t
15979s,@PERL_OBJ@,$PERL_OBJ,;t t
15980s,@PERL_PRO@,$PERL_PRO,;t t
15981s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
15982s,@PERL_LIBS@,$PERL_LIBS,;t t
15983s,@vi_cv_path_python@,$vi_cv_path_python,;t t
15984s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
15985s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
15986s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
15987s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
15988s,@PYTHON_SRC@,$PYTHON_SRC,;t t
15989s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
15990s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
15991s,@TCL_SRC@,$TCL_SRC,;t t
15992s,@TCL_OBJ@,$TCL_OBJ,;t t
15993s,@TCL_PRO@,$TCL_PRO,;t t
15994s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
15995s,@TCL_LIBS@,$TCL_LIBS,;t t
15996s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
15997s,@RUBY_SRC@,$RUBY_SRC,;t t
15998s,@RUBY_OBJ@,$RUBY_OBJ,;t t
15999s,@RUBY_PRO@,$RUBY_PRO,;t t
16000s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16001s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16002s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16003s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16004s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16005s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16006s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16007s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16008s,@xmkmfpath@,$xmkmfpath,;t t
16009s,@X_CFLAGS@,$X_CFLAGS,;t t
16010s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16011s,@X_LIBS@,$X_LIBS,;t t
16012s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16013s,@X_LIB@,$X_LIB,;t t
16014s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16015s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16016s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16017s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16018s,@GTK_LIBS@,$GTK_LIBS,;t t
16019s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16020s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16021s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16022s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16023s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16024s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16025s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16026s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16027s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16028s,@GUITYPE@,$GUITYPE,;t t
16029s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16030s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16031s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16032s,@TAGPRG@,$TAGPRG,;t t
16033s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16034s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
16035s,@MSGFMT@,$MSGFMT,;t t
16036s,@MAKEMO@,$MAKEMO,;t t
16037s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
16038s,@LIBOBJS@,$LIBOBJS,;t t
16039s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16040CEOF
16041
16042_ACEOF
16043
16044  cat >>$CONFIG_STATUS <<\_ACEOF
16045  # Split the substitutions into bite-sized pieces for seds with
16046  # small command number limits, like on Digital OSF/1 and HP-UX.
16047  ac_max_sed_lines=48
16048  ac_sed_frag=1 # Number of current file.
16049  ac_beg=1 # First line for current file.
16050  ac_end=$ac_max_sed_lines # Line after last line for current file.
16051  ac_more_lines=:
16052  ac_sed_cmds=
16053  while $ac_more_lines; do
16054    if test $ac_beg -gt 1; then
16055      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16056    else
16057      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16058    fi
16059    if test ! -s $tmp/subs.frag; then
16060      ac_more_lines=false
16061    else
16062      # The purpose of the label and of the branching condition is to
16063      # speed up the sed processing (if there are no `@' at all, there
16064      # is no need to browse any of the substitutions).
16065      # These are the two extra sed commands mentioned above.
16066      (echo ':t
16067  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16068      if test -z "$ac_sed_cmds"; then
16069	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16070      else
16071	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16072      fi
16073      ac_sed_frag=`expr $ac_sed_frag + 1`
16074      ac_beg=$ac_end
16075      ac_end=`expr $ac_end + $ac_max_sed_lines`
16076    fi
16077  done
16078  if test -z "$ac_sed_cmds"; then
16079    ac_sed_cmds=cat
16080  fi
16081fi # test -n "$CONFIG_FILES"
16082
16083_ACEOF
16084cat >>$CONFIG_STATUS <<\_ACEOF
16085for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16086  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16087  case $ac_file in
16088  - | *:- | *:-:* ) # input from stdin
16089	cat >$tmp/stdin
16090	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16091	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16092  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16093	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16094  * )   ac_file_in=$ac_file.in ;;
16095  esac
16096
16097  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16098  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16099$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16100	 X"$ac_file" : 'X\(//\)[^/]' \| \
16101	 X"$ac_file" : 'X\(//\)$' \| \
16102	 X"$ac_file" : 'X\(/\)' \| \
16103	 .     : '\(.\)' 2>/dev/null ||
16104echo X"$ac_file" |
16105    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16106  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16107  	  /^X\(\/\/\)$/{ s//\1/; q; }
16108  	  /^X\(\/\).*/{ s//\1/; q; }
16109  	  s/.*/./; q'`
16110  { if $as_mkdir_p; then
16111    mkdir -p "$ac_dir"
16112  else
16113    as_dir="$ac_dir"
16114    as_dirs=
16115    while test ! -d "$as_dir"; do
16116      as_dirs="$as_dir $as_dirs"
16117      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16118$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16119	 X"$as_dir" : 'X\(//\)[^/]' \| \
16120	 X"$as_dir" : 'X\(//\)$' \| \
16121	 X"$as_dir" : 'X\(/\)' \| \
16122	 .     : '\(.\)' 2>/dev/null ||
16123echo X"$as_dir" |
16124    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16125  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16126  	  /^X\(\/\/\)$/{ s//\1/; q; }
16127  	  /^X\(\/\).*/{ s//\1/; q; }
16128  	  s/.*/./; q'`
16129    done
16130    test ! -n "$as_dirs" || mkdir $as_dirs
16131  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16132echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16133   { (exit 1); exit 1; }; }; }
16134
16135  ac_builddir=.
16136
16137if test "$ac_dir" != .; then
16138  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16139  # A "../" for each directory in $ac_dir_suffix.
16140  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16141else
16142  ac_dir_suffix= ac_top_builddir=
16143fi
16144
16145case $srcdir in
16146  .)  # No --srcdir option.  We are building in place.
16147    ac_srcdir=.
16148    if test -z "$ac_top_builddir"; then
16149       ac_top_srcdir=.
16150    else
16151       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16152    fi ;;
16153  [\\/]* | ?:[\\/]* )  # Absolute path.
16154    ac_srcdir=$srcdir$ac_dir_suffix;
16155    ac_top_srcdir=$srcdir ;;
16156  *) # Relative path.
16157    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16158    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16159esac
16160
16161# Do not use `cd foo && pwd` to compute absolute paths, because
16162# the directories may not exist.
16163case `pwd` in
16164.) ac_abs_builddir="$ac_dir";;
16165*)
16166  case "$ac_dir" in
16167  .) ac_abs_builddir=`pwd`;;
16168  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16169  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16170  esac;;
16171esac
16172case $ac_abs_builddir in
16173.) ac_abs_top_builddir=${ac_top_builddir}.;;
16174*)
16175  case ${ac_top_builddir}. in
16176  .) ac_abs_top_builddir=$ac_abs_builddir;;
16177  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16178  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16179  esac;;
16180esac
16181case $ac_abs_builddir in
16182.) ac_abs_srcdir=$ac_srcdir;;
16183*)
16184  case $ac_srcdir in
16185  .) ac_abs_srcdir=$ac_abs_builddir;;
16186  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16187  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16188  esac;;
16189esac
16190case $ac_abs_builddir in
16191.) ac_abs_top_srcdir=$ac_top_srcdir;;
16192*)
16193  case $ac_top_srcdir in
16194  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16195  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16196  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16197  esac;;
16198esac
16199
16200
16201
16202  if test x"$ac_file" != x-; then
16203    { echo "$as_me:$LINENO: creating $ac_file" >&5
16204echo "$as_me: creating $ac_file" >&6;}
16205    rm -f "$ac_file"
16206  fi
16207  # Let's still pretend it is `configure' which instantiates (i.e., don't
16208  # use $as_me), people would be surprised to read:
16209  #    /* config.h.  Generated by config.status.  */
16210  if test x"$ac_file" = x-; then
16211    configure_input=
16212  else
16213    configure_input="$ac_file.  "
16214  fi
16215  configure_input=$configure_input"Generated from `echo $ac_file_in |
16216				     sed 's,.*/,,'` by configure."
16217
16218  # First look for the input files in the build tree, otherwise in the
16219  # src tree.
16220  ac_file_inputs=`IFS=:
16221    for f in $ac_file_in; do
16222      case $f in
16223      -) echo $tmp/stdin ;;
16224      [\\/$]*)
16225	 # Absolute (can't be DOS-style, as IFS=:)
16226	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16227echo "$as_me: error: cannot find input file: $f" >&2;}
16228   { (exit 1); exit 1; }; }
16229	 echo "$f";;
16230      *) # Relative
16231	 if test -f "$f"; then
16232	   # Build tree
16233	   echo "$f"
16234	 elif test -f "$srcdir/$f"; then
16235	   # Source tree
16236	   echo "$srcdir/$f"
16237	 else
16238	   # /dev/null tree
16239	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16240echo "$as_me: error: cannot find input file: $f" >&2;}
16241   { (exit 1); exit 1; }; }
16242	 fi;;
16243      esac
16244    done` || { (exit 1); exit 1; }
16245_ACEOF
16246cat >>$CONFIG_STATUS <<_ACEOF
16247  sed "$ac_vpsub
16248$extrasub
16249_ACEOF
16250cat >>$CONFIG_STATUS <<\_ACEOF
16251:t
16252/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16253s,@configure_input@,$configure_input,;t t
16254s,@srcdir@,$ac_srcdir,;t t
16255s,@abs_srcdir@,$ac_abs_srcdir,;t t
16256s,@top_srcdir@,$ac_top_srcdir,;t t
16257s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16258s,@builddir@,$ac_builddir,;t t
16259s,@abs_builddir@,$ac_abs_builddir,;t t
16260s,@top_builddir@,$ac_top_builddir,;t t
16261s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16262" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16263  rm -f $tmp/stdin
16264  if test x"$ac_file" != x-; then
16265    mv $tmp/out $ac_file
16266  else
16267    cat $tmp/out
16268    rm -f $tmp/out
16269  fi
16270
16271done
16272_ACEOF
16273cat >>$CONFIG_STATUS <<\_ACEOF
16274
16275#
16276# CONFIG_HEADER section.
16277#
16278
16279# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16280# NAME is the cpp macro being defined and VALUE is the value it is being given.
16281#
16282# ac_d sets the value in "#define NAME VALUE" lines.
16283ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
16284ac_dB='[	 ].*$,\1#\2'
16285ac_dC=' '
16286ac_dD=',;t'
16287# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16288ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
16289ac_uB='$,\1#\2define\3'
16290ac_uC=' '
16291ac_uD=',;t'
16292
16293for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16294  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16295  case $ac_file in
16296  - | *:- | *:-:* ) # input from stdin
16297	cat >$tmp/stdin
16298	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16299	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16300  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16301	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16302  * )   ac_file_in=$ac_file.in ;;
16303  esac
16304
16305  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16306echo "$as_me: creating $ac_file" >&6;}
16307
16308  # First look for the input files in the build tree, otherwise in the
16309  # src tree.
16310  ac_file_inputs=`IFS=:
16311    for f in $ac_file_in; do
16312      case $f in
16313      -) echo $tmp/stdin ;;
16314      [\\/$]*)
16315	 # Absolute (can't be DOS-style, as IFS=:)
16316	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16317echo "$as_me: error: cannot find input file: $f" >&2;}
16318   { (exit 1); exit 1; }; }
16319	 # Do quote $f, to prevent DOS paths from being IFS'd.
16320	 echo "$f";;
16321      *) # Relative
16322	 if test -f "$f"; then
16323	   # Build tree
16324	   echo "$f"
16325	 elif test -f "$srcdir/$f"; then
16326	   # Source tree
16327	   echo "$srcdir/$f"
16328	 else
16329	   # /dev/null tree
16330	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16331echo "$as_me: error: cannot find input file: $f" >&2;}
16332   { (exit 1); exit 1; }; }
16333	 fi;;
16334      esac
16335    done` || { (exit 1); exit 1; }
16336  # Remove the trailing spaces.
16337  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
16338
16339_ACEOF
16340
16341# Transform confdefs.h into two sed scripts, `conftest.defines' and
16342# `conftest.undefs', that substitutes the proper values into
16343# config.h.in to produce config.h.  The first handles `#define'
16344# templates, and the second `#undef' templates.
16345# And first: Protect against being on the right side of a sed subst in
16346# config.status.  Protect against being in an unquoted here document
16347# in config.status.
16348rm -f conftest.defines conftest.undefs
16349# Using a here document instead of a string reduces the quoting nightmare.
16350# Putting comments in sed scripts is not portable.
16351#
16352# `end' is used to avoid that the second main sed command (meant for
16353# 0-ary CPP macros) applies to n-ary macro definitions.
16354# See the Autoconf documentation for `clear'.
16355cat >confdef2sed.sed <<\_ACEOF
16356s/[\\&,]/\\&/g
16357s,[\\$`],\\&,g
16358t clear
16359: clear
16360s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16361t end
16362s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16363: end
16364_ACEOF
16365# If some macros were called several times there might be several times
16366# the same #defines, which is useless.  Nevertheless, we may not want to
16367# sort them, since we want the *last* AC-DEFINE to be honored.
16368uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16369sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16370rm -f confdef2sed.sed
16371
16372# This sed command replaces #undef with comments.  This is necessary, for
16373# example, in the case of _POSIX_SOURCE, which is predefined and required
16374# on some systems where configure will not decide to define it.
16375cat >>conftest.undefs <<\_ACEOF
16376s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16377_ACEOF
16378
16379# Break up conftest.defines because some shells have a limit on the size
16380# of here documents, and old seds have small limits too (100 cmds).
16381echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16382echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16383echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16384echo '  :' >>$CONFIG_STATUS
16385rm -f conftest.tail
16386while grep . conftest.defines >/dev/null
16387do
16388  # Write a limited-size here document to $tmp/defines.sed.
16389  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16390  # Speed up: don't consider the non `#define' lines.
16391  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
16392  # Work around the forget-to-reset-the-flag bug.
16393  echo 't clr' >>$CONFIG_STATUS
16394  echo ': clr' >>$CONFIG_STATUS
16395  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16396  echo 'CEOF
16397  sed -f $tmp/defines.sed $tmp/in >$tmp/out
16398  rm -f $tmp/in
16399  mv $tmp/out $tmp/in
16400' >>$CONFIG_STATUS
16401  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16402  rm -f conftest.defines
16403  mv conftest.tail conftest.defines
16404done
16405rm -f conftest.defines
16406echo '  fi # grep' >>$CONFIG_STATUS
16407echo >>$CONFIG_STATUS
16408
16409# Break up conftest.undefs because some shells have a limit on the size
16410# of here documents, and old seds have small limits too (100 cmds).
16411echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16412rm -f conftest.tail
16413while grep . conftest.undefs >/dev/null
16414do
16415  # Write a limited-size here document to $tmp/undefs.sed.
16416  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16417  # Speed up: don't consider the non `#undef'
16418  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
16419  # Work around the forget-to-reset-the-flag bug.
16420  echo 't clr' >>$CONFIG_STATUS
16421  echo ': clr' >>$CONFIG_STATUS
16422  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16423  echo 'CEOF
16424  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16425  rm -f $tmp/in
16426  mv $tmp/out $tmp/in
16427' >>$CONFIG_STATUS
16428  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16429  rm -f conftest.undefs
16430  mv conftest.tail conftest.undefs
16431done
16432rm -f conftest.undefs
16433
16434cat >>$CONFIG_STATUS <<\_ACEOF
16435  # Let's still pretend it is `configure' which instantiates (i.e., don't
16436  # use $as_me), people would be surprised to read:
16437  #    /* config.h.  Generated by config.status.  */
16438  if test x"$ac_file" = x-; then
16439    echo "/* Generated by configure.  */" >$tmp/config.h
16440  else
16441    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16442  fi
16443  cat $tmp/in >>$tmp/config.h
16444  rm -f $tmp/in
16445  if test x"$ac_file" != x-; then
16446    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16447      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16448echo "$as_me: $ac_file is unchanged" >&6;}
16449    else
16450      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16451$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16452	 X"$ac_file" : 'X\(//\)[^/]' \| \
16453	 X"$ac_file" : 'X\(//\)$' \| \
16454	 X"$ac_file" : 'X\(/\)' \| \
16455	 .     : '\(.\)' 2>/dev/null ||
16456echo X"$ac_file" |
16457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16458  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16459  	  /^X\(\/\/\)$/{ s//\1/; q; }
16460  	  /^X\(\/\).*/{ s//\1/; q; }
16461  	  s/.*/./; q'`
16462      { if $as_mkdir_p; then
16463    mkdir -p "$ac_dir"
16464  else
16465    as_dir="$ac_dir"
16466    as_dirs=
16467    while test ! -d "$as_dir"; do
16468      as_dirs="$as_dir $as_dirs"
16469      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16470$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16471	 X"$as_dir" : 'X\(//\)[^/]' \| \
16472	 X"$as_dir" : 'X\(//\)$' \| \
16473	 X"$as_dir" : 'X\(/\)' \| \
16474	 .     : '\(.\)' 2>/dev/null ||
16475echo X"$as_dir" |
16476    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16477  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16478  	  /^X\(\/\/\)$/{ s//\1/; q; }
16479  	  /^X\(\/\).*/{ s//\1/; q; }
16480  	  s/.*/./; q'`
16481    done
16482    test ! -n "$as_dirs" || mkdir $as_dirs
16483  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16484echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16485   { (exit 1); exit 1; }; }; }
16486
16487      rm -f $ac_file
16488      mv $tmp/config.h $ac_file
16489    fi
16490  else
16491    cat $tmp/config.h
16492    rm -f $tmp/config.h
16493  fi
16494done
16495_ACEOF
16496
16497cat >>$CONFIG_STATUS <<\_ACEOF
16498
16499{ (exit 0); exit 0; }
16500_ACEOF
16501chmod +x $CONFIG_STATUS
16502ac_clean_files=$ac_clean_files_save
16503
16504
16505# configure is writing to config.log, and then calls config.status.
16506# config.status does its own redirection, appending to config.log.
16507# Unfortunately, on DOS this fails, as config.log is still kept open
16508# by configure, so config.status won't be able to write to it; its
16509# output is simply discarded.  So we exec the FD to /dev/null,
16510# effectively closing config.log, so it can be properly (re)opened and
16511# appended to by config.status.  When coming back to configure, we
16512# need to make the FD available again.
16513if test "$no_create" != yes; then
16514  ac_cs_success=:
16515  ac_config_status_args=
16516  test "$silent" = yes &&
16517    ac_config_status_args="$ac_config_status_args --quiet"
16518  exec 5>/dev/null
16519  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16520  exec 5>>auto/config.log
16521  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16522  # would make configure fail if this is the last instruction.
16523  $ac_cs_success || { (exit 1); exit 1; }
16524fi
16525
16526
16527