xref: /vim-8.2.3635/src/auto/configure (revision 9964e468)
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      fi
3398    fi
3399  fi
3400
3401        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
3402    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3403  fi
3404
3405else
3406  echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
3408fi
3409
3410
3411
3412
3413have_local_include=''
3414have_local_lib=''
3415if test "$GCC" = yes; then
3416  echo 'void f(){}' > conftest.c
3417    have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3418  have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3419  rm -f conftest.c conftest.o
3420fi
3421if test -z "$have_local_lib" -a -d /usr/local/lib; then
3422  tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3423  if test "$tt" = "$LDFLAGS"; then
3424    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3425  fi
3426fi
3427if test -z "$have_local_include" -a -d /usr/local/include; then
3428  tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3429  if test "$tt" = "$CPPFLAGS"; then
3430    CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3431  fi
3432fi
3433
3434echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3435echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3436
3437# Check whether --with-vim-name or --without-vim-name was given.
3438if test "${with_vim_name+set}" = set; then
3439  withval="$with_vim_name"
3440  VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3441echo "${ECHO_T}$VIMNAME" >&6
3442else
3443  VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
3444echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3445fi;
3446
3447echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3448echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
3449
3450# Check whether --with-ex-name or --without-ex-name was given.
3451if test "${with_ex_name+set}" = set; then
3452  withval="$with_ex_name"
3453  EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3454echo "${ECHO_T}$EXNAME" >&6
3455else
3456  EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3457echo "${ECHO_T}Defaulting to ex" >&6
3458fi;
3459
3460echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3461echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
3462
3463# Check whether --with-view-name or --without-view-name was given.
3464if test "${with_view_name+set}" = set; then
3465  withval="$with_view_name"
3466  VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3467echo "${ECHO_T}$VIEWNAME" >&6
3468else
3469  VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3470echo "${ECHO_T}Defaulting to view" >&6
3471fi;
3472
3473
3474echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3475echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
3476
3477# Check whether --with-global-runtime or --without-global-runtime was given.
3478if test "${with_global_runtime+set}" = set; then
3479  withval="$with_global_runtime"
3480  echo "$as_me:$LINENO: result: $withval" >&5
3481echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3482#define RUNTIME_GLOBAL "$withval"
3483_ACEOF
3484
3485else
3486  echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
3488fi;
3489
3490echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3491echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
3492
3493# Check whether --with-modified-by or --without-modified-by was given.
3494if test "${with_modified_by+set}" = set; then
3495  withval="$with_modified_by"
3496  echo "$as_me:$LINENO: result: $withval" >&5
3497echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3498#define MODIFIED_BY "$withval"
3499_ACEOF
3500
3501else
3502  echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
3504fi;
3505
3506echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3507echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3508cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h.  */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h.  */
3514
3515int
3516main ()
3517{
3518 /* TryCompile function for CharSet.
3519   Treat any failure as ASCII for compatibility with existing art.
3520   Use compile-time rather than run-time tests for cross-compiler
3521   tolerance.  */
3522#if '0'!=240
3523make an error "Character set is not EBCDIC"
3524#endif
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext
3530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531  (eval $ac_compile) 2>conftest.er1
3532  ac_status=$?
3533  grep -v '^ *+' conftest.er1 >conftest.err
3534  rm -f conftest.er1
3535  cat conftest.err >&5
3536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537  (exit $ac_status); } &&
3538	 { ac_try='test -z "$ac_c_werror_flag"
3539			 || test ! -s conftest.err'
3540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541  (eval $ac_try) 2>&5
3542  ac_status=$?
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); }; } &&
3545	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3551   # TryCompile action if true
3552cf_cv_ebcdic=yes
3553else
3554  echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # TryCompile action if false
3558cf_cv_ebcdic=no
3559fi
3560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3561# end of TryCompile ])
3562# end of CacheVal CvEbcdic
3563echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3564echo "${ECHO_T}$cf_cv_ebcdic" >&6
3565case "$cf_cv_ebcdic" in  #(vi
3566    yes)	cat >>confdefs.h <<\_ACEOF
3567#define EBCDIC 1
3568_ACEOF
3569
3570		line_break='"\\n"'
3571		;;
3572    *)		line_break='"\\012"';;
3573esac
3574
3575
3576if test "$cf_cv_ebcdic" = "yes"; then
3577echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3578echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3579case `uname` in
3580    OS/390)	OS390Unix="yes";
3581										if test "$CC" = "cc"; then
3582		  ccm="$_CC_CCMODE"
3583		  ccn="CC"
3584		else
3585		  if test "$CC" = "c89"; then
3586		    ccm="$_CC_C89MODE"
3587		    ccn="C89"
3588		  else
3589		    ccm=1
3590		  fi
3591		fi
3592		if test "$ccm" != "1"; then
3593		  echo ""
3594		  echo "------------------------------------------"
3595		  echo " On OS/390 Unix, the environment variable"
3596		  echo " __CC_${ccn}MODE must be set to \"1\"!"
3597		  echo " Do:"
3598		  echo "    export _CC_${ccn}MODE=1"
3599		  echo " and then call configure again."
3600		  echo "------------------------------------------"
3601		  exit 1
3602		fi
3603		CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
3604		echo "$as_me:$LINENO: result: yes" >&5
3605echo "${ECHO_T}yes" >&6
3606		;;
3607    *)		OS390Unix="no";
3608		echo "$as_me:$LINENO: result: no" >&5
3609echo "${ECHO_T}no" >&6
3610		;;
3611esac
3612fi
3613
3614
3615
3616echo "$as_me:$LINENO: checking --with-features argument" >&5
3617echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3618
3619# Check whether --with-features or --without-features was given.
3620if test "${with_features+set}" = set; then
3621  withval="$with_features"
3622  features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3623echo "${ECHO_T}$features" >&6
3624else
3625  features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3626echo "${ECHO_T}Defaulting to normal" >&6
3627fi;
3628
3629dovimdiff=""
3630dogvimdiff=""
3631case "$features" in
3632  tiny)		cat >>confdefs.h <<\_ACEOF
3633#define FEAT_TINY 1
3634_ACEOF
3635 ;;
3636  small)	cat >>confdefs.h <<\_ACEOF
3637#define FEAT_SMALL 1
3638_ACEOF
3639 ;;
3640  normal)	cat >>confdefs.h <<\_ACEOF
3641#define FEAT_NORMAL 1
3642_ACEOF
3643 dovimdiff="installvimdiff";
3644			dogvimdiff="installgvimdiff" ;;
3645  big)		cat >>confdefs.h <<\_ACEOF
3646#define FEAT_BIG 1
3647_ACEOF
3648 dovimdiff="installvimdiff";
3649			dogvimdiff="installgvimdiff" ;;
3650  huge)		cat >>confdefs.h <<\_ACEOF
3651#define FEAT_HUGE 1
3652_ACEOF
3653 dovimdiff="installvimdiff";
3654			dogvimdiff="installgvimdiff" ;;
3655  *)		echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3656echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
3657esac
3658
3659
3660
3661
3662echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3663echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3664
3665# Check whether --with-compiledby or --without-compiledby was given.
3666if test "${with_compiledby+set}" = set; then
3667  withval="$with_compiledby"
3668  compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3669echo "${ECHO_T}$withval" >&6
3670else
3671  compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673fi;
3674
3675
3676echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3677echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
3678# Check whether --enable-xsmp or --disable-xsmp was given.
3679if test "${enable_xsmp+set}" = set; then
3680  enableval="$enable_xsmp"
3681
3682else
3683  enable_xsmp="yes"
3684fi;
3685
3686if test "$enable_xsmp" = "yes"; then
3687  echo "$as_me:$LINENO: result: no" >&5
3688echo "${ECHO_T}no" >&6
3689  echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3690echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
3691  # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3692if test "${enable_xsmp_interact+set}" = set; then
3693  enableval="$enable_xsmp_interact"
3694
3695else
3696  enable_xsmp_interact="yes"
3697fi;
3698  if test "$enable_xsmp_interact" = "yes"; then
3699    echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701    cat >>confdefs.h <<\_ACEOF
3702#define USE_XSMP_INTERACT 1
3703_ACEOF
3704
3705  else
3706    echo "$as_me:$LINENO: result: yes" >&5
3707echo "${ECHO_T}yes" >&6
3708  fi
3709else
3710  echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6
3712fi
3713
3714echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3715echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
3716# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3717if test "${enable_mzschemeinterp+set}" = set; then
3718  enableval="$enable_mzschemeinterp"
3719
3720else
3721  enable_mzschemeinterp="no"
3722fi;
3723echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3724echo "${ECHO_T}$enable_mzschemeinterp" >&6
3725
3726if test "$enable_mzschemeinterp" = "yes"; then
3727
3728
3729  echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3730echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3731
3732# Check whether --with-plthome or --without-plthome was given.
3733if test "${with_plthome+set}" = set; then
3734  withval="$with_plthome"
3735  with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3736echo "${ECHO_T}$with_plthome" >&6
3737else
3738  with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3739echo "${ECHO_T}\"no\"" >&6
3740fi;
3741
3742  if test "X$with_plthome" != "X"; then
3743       vi_cv_path_mzscheme_pfx="$with_plthome"
3744  else
3745    echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3746echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
3747    if test "X$PLTHOME" != "X"; then
3748	echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3749echo "${ECHO_T}\"$PLTHOME\"" >&6
3750	vi_cv_path_mzscheme_pfx="$PLTHOME"
3751    else
3752	echo "$as_me:$LINENO: result: \"not set\"" >&5
3753echo "${ECHO_T}\"not set\"" >&6
3754		# Extract the first word of "mzscheme", so it can be a program name with args.
3755set dummy mzscheme; ac_word=$2
3756echo "$as_me:$LINENO: checking for $ac_word" >&5
3757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3759  echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761  case $vi_cv_path_mzscheme in
3762  [\\/]* | ?:[\\/]*)
3763  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3764  ;;
3765  *)
3766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769  IFS=$as_save_IFS
3770  test -z "$as_dir" && as_dir=.
3771  for ac_exec_ext in '' $ac_executable_extensions; do
3772  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775    break 2
3776  fi
3777done
3778done
3779
3780  ;;
3781esac
3782fi
3783vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3784
3785if test -n "$vi_cv_path_mzscheme"; then
3786  echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3787echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
3788else
3789  echo "$as_me:$LINENO: result: no" >&5
3790echo "${ECHO_T}no" >&6
3791fi
3792
3793
3794			if test "X$vi_cv_path_mzscheme" != "X"; then
3795	  lsout=`ls -l $vi_cv_path_mzscheme`
3796	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3797	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3798	  fi
3799	fi
3800
3801	if test "X$vi_cv_path_mzscheme" != "X"; then
3802	    	    echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3803echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3804if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3805  echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807   vi_cv_path_mzscheme_pfx=`
3808	    ${vi_cv_path_mzscheme} -evm \
3809	    "(display (simplify-path		\
3810	       (build-path (call-with-values	\
3811		(lambda () (split-path (find-system-path (quote exec-file)))) \
3812		(lambda (base name must-be-dir?) base)) (quote up))))"`
3813fi
3814echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3815echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
3816	    	    vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3817	fi
3818    fi
3819  fi
3820
3821  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3822    echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3823echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6
3824    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
3825      echo "$as_me:$LINENO: result: \"yes\"" >&5
3826echo "${ECHO_T}\"yes\"" >&6
3827    else
3828      echo "$as_me:$LINENO: result: \"no\"" >&5
3829echo "${ECHO_T}\"no\"" >&6
3830      vi_cv_path_mzscheme_pfx=
3831    fi
3832  fi
3833
3834  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3835    if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3836      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3837    else
3838      MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
3839      if test "$GCC" = yes; then
3840			MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
3841      elif test "`(uname) 2>/dev/null`" = SunOS &&
3842			       uname -r | grep '^5' >/dev/null; then
3843	MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
3844      fi
3845    fi
3846    MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include   \
3847      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3848    MZSCHEME_SRC="if_mzsch.c"
3849    MZSCHEME_OBJ="objects/if_mzsch.o"
3850    MZSCHEME_PRO="if_mzsch.pro"
3851    cat >>confdefs.h <<\_ACEOF
3852#define FEAT_MZSCHEME 1
3853_ACEOF
3854
3855  fi
3856
3857
3858
3859
3860
3861fi
3862
3863
3864echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3865echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
3866# Check whether --enable-perlinterp or --disable-perlinterp was given.
3867if test "${enable_perlinterp+set}" = set; then
3868  enableval="$enable_perlinterp"
3869
3870else
3871  enable_perlinterp="no"
3872fi;
3873echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3874echo "${ECHO_T}$enable_perlinterp" >&6
3875if test "$enable_perlinterp" = "yes"; then
3876
3877  # Extract the first word of "perl", so it can be a program name with args.
3878set dummy perl; ac_word=$2
3879echo "$as_me:$LINENO: checking for $ac_word" >&5
3880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3882  echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884  case $vi_cv_path_perl in
3885  [\\/]* | ?:[\\/]*)
3886  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3887  ;;
3888  *)
3889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892  IFS=$as_save_IFS
3893  test -z "$as_dir" && as_dir=.
3894  for ac_exec_ext in '' $ac_executable_extensions; do
3895  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898    break 2
3899  fi
3900done
3901done
3902
3903  ;;
3904esac
3905fi
3906vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3907
3908if test -n "$vi_cv_path_perl"; then
3909  echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3910echo "${ECHO_T}$vi_cv_path_perl" >&6
3911else
3912  echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
3914fi
3915
3916  if test "X$vi_cv_path_perl" != "X"; then
3917    echo "$as_me:$LINENO: checking Perl version" >&5
3918echo $ECHO_N "checking Perl version... $ECHO_C" >&6
3919    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3920     eval `$vi_cv_path_perl -V:usethreads`
3921     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3922       badthreads=no
3923     else
3924       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3925	 eval `$vi_cv_path_perl -V:use5005threads`
3926	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3927	   badthreads=no
3928	 else
3929	   badthreads=yes
3930	   echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3931echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
3932	 fi
3933       else
3934	 badthreads=yes
3935	 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3936echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
3937       fi
3938     fi
3939     if test $badthreads = no; then
3940      echo "$as_me:$LINENO: result: OK" >&5
3941echo "${ECHO_T}OK" >&6
3942      eval `$vi_cv_path_perl -V:shrpenv`
3943      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3944	shrpenv=""
3945      fi
3946      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
3947
3948            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3949	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3950            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3951		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3952			-e 's/-bE:perl.exp//' -e 's/-lc //'`
3953                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3954		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3955
3956                  echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3957echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
3958      cflags_save=$CFLAGS
3959      libs_save=$LIBS
3960      ldflags_save=$LDFLAGS
3961      CFLAGS="$CFLAGS $perlcppflags"
3962      LIBS="$LIBS $perllibs"
3963      LDFLAGS="$perlldflags $LDFLAGS"
3964      cat >conftest.$ac_ext <<_ACEOF
3965/* confdefs.h.  */
3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
3969/* end confdefs.h.  */
3970
3971int
3972main ()
3973{
3974
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979rm -f conftest.$ac_objext conftest$ac_exeext
3980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3981  (eval $ac_link) 2>conftest.er1
3982  ac_status=$?
3983  grep -v '^ *+' conftest.er1 >conftest.err
3984  rm -f conftest.er1
3985  cat conftest.err >&5
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); } &&
3988	 { ac_try='test -z "$ac_c_werror_flag"
3989			 || test ! -s conftest.err'
3990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991  (eval $ac_try) 2>&5
3992  ac_status=$?
3993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994  (exit $ac_status); }; } &&
3995	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4001  echo "$as_me:$LINENO: result: yes" >&5
4002echo "${ECHO_T}yes" >&6; perl_ok=yes
4003else
4004  echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4008echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
4009fi
4010rm -f conftest.err conftest.$ac_objext \
4011      conftest$ac_exeext conftest.$ac_ext
4012      CFLAGS=$cflags_save
4013      LIBS=$libs_save
4014      LDFLAGS=$ldflags_save
4015      if test $perl_ok = yes; then
4016	if test "X$perlcppflags" != "X"; then
4017	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed 's/-pipe //'`
4018	fi
4019	if test "X$perlldflags" != "X"; then
4020	  LDFLAGS="$perlldflags $LDFLAGS"
4021	fi
4022	PERL_LIBS=$perllibs
4023	PERL_SRC="auto/if_perl.c if_perlsfio.c"
4024	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4025	PERL_PRO="if_perl.pro if_perlsfio.pro"
4026	cat >>confdefs.h <<\_ACEOF
4027#define FEAT_PERL 1
4028_ACEOF
4029
4030      fi
4031     fi
4032    else
4033      echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4034echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
4035    fi
4036  fi
4037
4038  if test "x$MACOSX" = "xyes"; then
4039        dir=/System/Library/Perl
4040    darwindir=$dir/darwin
4041    if test -d $darwindir; then
4042      PERL=/usr/bin/perl
4043    else
4044            dir=/System/Library/Perl/5.8.1
4045      darwindir=$dir/darwin-thread-multi-2level
4046      if test -d $darwindir; then
4047	PERL=/usr/bin/perl
4048      fi
4049    fi
4050    if test -n "$PERL"; then
4051      PERL_DIR="$dir"
4052      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4053      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4054      PERL_LIBS="-L$darwindir/CORE -lperl"
4055    fi
4056  fi
4057fi
4058
4059
4060
4061
4062
4063
4064
4065echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4066echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
4067# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4068if test "${enable_pythoninterp+set}" = set; then
4069  enableval="$enable_pythoninterp"
4070
4071else
4072  enable_pythoninterp="no"
4073fi;
4074echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4075echo "${ECHO_T}$enable_pythoninterp" >&6
4076if test "$enable_pythoninterp" = "yes"; then
4077    # Extract the first word of "python", so it can be a program name with args.
4078set dummy python; ac_word=$2
4079echo "$as_me:$LINENO: checking for $ac_word" >&5
4080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4082  echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084  case $vi_cv_path_python in
4085  [\\/]* | ?:[\\/]*)
4086  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4087  ;;
4088  *)
4089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094  for ac_exec_ext in '' $ac_executable_extensions; do
4095  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098    break 2
4099  fi
4100done
4101done
4102
4103  ;;
4104esac
4105fi
4106vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4107
4108if test -n "$vi_cv_path_python"; then
4109  echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4110echo "${ECHO_T}$vi_cv_path_python" >&6
4111else
4112  echo "$as_me:$LINENO: result: no" >&5
4113echo "${ECHO_T}no" >&6
4114fi
4115
4116  if test "X$vi_cv_path_python" != "X"; then
4117
4118        echo "$as_me:$LINENO: checking Python version" >&5
4119echo $ECHO_N "checking Python version... $ECHO_C" >&6
4120if test "${vi_cv_var_python_version+set}" = set; then
4121  echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123  vi_cv_var_python_version=`
4124	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
4125
4126fi
4127echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4128echo "${ECHO_T}$vi_cv_var_python_version" >&6
4129
4130        echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4131echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
4132    if ${vi_cv_path_python} -c \
4133	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4134    then
4135      echo "$as_me:$LINENO: result: yep" >&5
4136echo "${ECHO_T}yep" >&6
4137
4138            echo "$as_me:$LINENO: checking Python's install prefix" >&5
4139echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4140if test "${vi_cv_path_python_pfx+set}" = set; then
4141  echo $ECHO_N "(cached) $ECHO_C" >&6
4142else
4143   vi_cv_path_python_pfx=`
4144	    ${vi_cv_path_python} -c \
4145		"import sys; print sys.prefix"`
4146fi
4147echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4148echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
4149
4150            echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4151echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4152if test "${vi_cv_path_python_epfx+set}" = set; then
4153  echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155   vi_cv_path_python_epfx=`
4156	    ${vi_cv_path_python} -c \
4157		"import sys; print sys.exec_prefix"`
4158fi
4159echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4160echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
4161
4162
4163      if test "${vi_cv_path_pythonpath+set}" = set; then
4164  echo $ECHO_N "(cached) $ECHO_C" >&6
4165else
4166   vi_cv_path_pythonpath=`
4167	    unset PYTHONPATH;
4168	    ${vi_cv_path_python} -c \
4169		"import sys, string; print string.join(sys.path,':')"`
4170fi
4171
4172
4173
4174
4175# Check whether --with-python-config-dir or --without-python-config-dir was given.
4176if test "${with_python_config_dir+set}" = set; then
4177  withval="$with_python_config_dir"
4178   vi_cv_path_python_conf="${withval}"
4179fi;
4180
4181      echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4182echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4183if test "${vi_cv_path_python_conf+set}" = set; then
4184  echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186
4187	vi_cv_path_python_conf=
4188	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4189	  for subdir in lib share; do
4190	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4191	    if test -d "$d" && test -f "$d/config.c"; then
4192	      vi_cv_path_python_conf="$d"
4193	    fi
4194	  done
4195	done
4196
4197fi
4198echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4199echo "${ECHO_T}$vi_cv_path_python_conf" >&6
4200
4201      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4202
4203      if test "X$PYTHON_CONFDIR" = "X"; then
4204	echo "$as_me:$LINENO: result: can't find it!" >&5
4205echo "${ECHO_T}can't find it!" >&6
4206      else
4207
4208			if test "${vi_cv_path_python_plibs+set}" = set; then
4209  echo $ECHO_N "(cached) $ECHO_C" >&6
4210else
4211
4212	    tmp_mkf="/tmp/Makefile-conf$$"
4213	    cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4214__:
4215	@echo "python_MODLIBS='$(MODLIBS)'"
4216	@echo "python_LIBS='$(LIBS)'"
4217	@echo "python_SYSLIBS='$(SYSLIBS)'"
4218	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4219eof
4220	    	    eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4221	    rm -f ${tmp_mkf}
4222	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4223		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4224	      vi_cv_path_python_plibs="-framework Python"
4225	    else
4226	      if test "${vi_cv_var_python_version}" = "1.4"; then
4227		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4228	      else
4229		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4230	      fi
4231	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4232	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4233	    fi
4234
4235fi
4236
4237
4238	PYTHON_LIBS="${vi_cv_path_python_plibs}"
4239	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4240	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4241	else
4242	  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}"
4243	fi
4244	PYTHON_SRC="if_python.c"
4245		if test "x$MACOSX" = "xyes"; then
4246	  PYTHON_OBJ="objects/if_python.o"
4247	else
4248	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4249	fi
4250	if test "${vi_cv_var_python_version}" = "1.4"; then
4251	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4252	fi
4253	PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4254
4255								echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4256echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
4257	threadsafe_flag=
4258	thread_lib=
4259	        if test "`(uname) 2>/dev/null`" != Darwin; then
4260	  test "$GCC" = yes && threadsafe_flag="-pthread"
4261	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
4262	    threadsafe_flag="-D_THREAD_SAFE"
4263	    thread_lib="-pthread"
4264	  fi
4265	fi
4266	libs_save_old=$LIBS
4267	if test -n "$threadsafe_flag"; then
4268	  cflags_save=$CFLAGS
4269	  CFLAGS="$CFLAGS $threadsafe_flag"
4270	  LIBS="$LIBS $thread_lib"
4271	  cat >conftest.$ac_ext <<_ACEOF
4272/* confdefs.h.  */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h.  */
4277
4278int
4279main ()
4280{
4281
4282  ;
4283  return 0;
4284}
4285_ACEOF
4286rm -f conftest.$ac_objext conftest$ac_exeext
4287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288  (eval $ac_link) 2>conftest.er1
4289  ac_status=$?
4290  grep -v '^ *+' conftest.er1 >conftest.err
4291  rm -f conftest.er1
4292  cat conftest.err >&5
4293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294  (exit $ac_status); } &&
4295	 { ac_try='test -z "$ac_c_werror_flag"
4296			 || test ! -s conftest.err'
4297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298  (eval $ac_try) 2>&5
4299  ac_status=$?
4300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301  (exit $ac_status); }; } &&
4302	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4308  echo "$as_me:$LINENO: result: yes" >&5
4309echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
4310else
4311  echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
4314echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4316
4317fi
4318rm -f conftest.err conftest.$ac_objext \
4319      conftest$ac_exeext conftest.$ac_ext
4320	  CFLAGS=$cflags_save
4321	else
4322	  echo "$as_me:$LINENO: result: no" >&5
4323echo "${ECHO_T}no" >&6
4324	fi
4325
4326			echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4327echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
4328	cflags_save=$CFLAGS
4329	libs_save=$LIBS
4330	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4331	LIBS="$LIBS $PYTHON_LIBS"
4332	cat >conftest.$ac_ext <<_ACEOF
4333/* confdefs.h.  */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h.  */
4338
4339int
4340main ()
4341{
4342
4343  ;
4344  return 0;
4345}
4346_ACEOF
4347rm -f conftest.$ac_objext conftest$ac_exeext
4348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4349  (eval $ac_link) 2>conftest.er1
4350  ac_status=$?
4351  grep -v '^ *+' conftest.er1 >conftest.err
4352  rm -f conftest.er1
4353  cat conftest.err >&5
4354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355  (exit $ac_status); } &&
4356	 { ac_try='test -z "$ac_c_werror_flag"
4357			 || test ! -s conftest.err'
4358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359  (eval $ac_try) 2>&5
4360  ac_status=$?
4361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362  (exit $ac_status); }; } &&
4363	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4369  echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6; python_ok=yes
4371else
4372  echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4376echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
4377fi
4378rm -f conftest.err conftest.$ac_objext \
4379      conftest$ac_exeext conftest.$ac_ext
4380	CFLAGS=$cflags_save
4381	LIBS=$libs_save
4382	if test $python_ok = yes; then
4383	  cat >>confdefs.h <<\_ACEOF
4384#define FEAT_PYTHON 1
4385_ACEOF
4386
4387	else
4388	  LIBS=$libs_save_old
4389	  PYTHON_SRC=
4390	  PYTHON_OBJ=
4391	  PYTHON_LIBS=
4392	  PYTHON_CFLAGS=
4393	fi
4394
4395      fi
4396    else
4397      echo "$as_me:$LINENO: result: too old" >&5
4398echo "${ECHO_T}too old" >&6
4399    fi
4400  fi
4401fi
4402
4403
4404
4405
4406
4407
4408
4409echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4410echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
4411# Check whether --enable-tclinterp or --disable-tclinterp was given.
4412if test "${enable_tclinterp+set}" = set; then
4413  enableval="$enable_tclinterp"
4414
4415else
4416  enable_tclinterp="no"
4417fi;
4418echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4419echo "${ECHO_T}$enable_tclinterp" >&6
4420
4421if test "$enable_tclinterp" = "yes"; then
4422
4423    echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4424echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4425
4426# Check whether --with-tclsh or --without-tclsh was given.
4427if test "${with_tclsh+set}" = set; then
4428  withval="$with_tclsh"
4429  tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4430echo "${ECHO_T}$tclsh_name" >&6
4431else
4432  tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4433echo "${ECHO_T}no" >&6
4434fi;
4435  # Extract the first word of "$tclsh_name", so it can be a program name with args.
4436set dummy $tclsh_name; ac_word=$2
4437echo "$as_me:$LINENO: checking for $ac_word" >&5
4438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4440  echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442  case $vi_cv_path_tcl in
4443  [\\/]* | ?:[\\/]*)
4444  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4445  ;;
4446  *)
4447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450  IFS=$as_save_IFS
4451  test -z "$as_dir" && as_dir=.
4452  for ac_exec_ext in '' $ac_executable_extensions; do
4453  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4455    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456    break 2
4457  fi
4458done
4459done
4460
4461  ;;
4462esac
4463fi
4464vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4465
4466if test -n "$vi_cv_path_tcl"; then
4467  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4468echo "${ECHO_T}$vi_cv_path_tcl" >&6
4469else
4470  echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
4472fi
4473
4474
4475
4476    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
4477    tclsh_name="tclsh8.2"
4478    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4479set dummy $tclsh_name; ac_word=$2
4480echo "$as_me:$LINENO: checking for $ac_word" >&5
4481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4483  echo $ECHO_N "(cached) $ECHO_C" >&6
4484else
4485  case $vi_cv_path_tcl in
4486  [\\/]* | ?:[\\/]*)
4487  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4488  ;;
4489  *)
4490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491for as_dir in $PATH
4492do
4493  IFS=$as_save_IFS
4494  test -z "$as_dir" && as_dir=.
4495  for ac_exec_ext in '' $ac_executable_extensions; do
4496  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4498    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499    break 2
4500  fi
4501done
4502done
4503
4504  ;;
4505esac
4506fi
4507vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4508
4509if test -n "$vi_cv_path_tcl"; then
4510  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4511echo "${ECHO_T}$vi_cv_path_tcl" >&6
4512else
4513  echo "$as_me:$LINENO: result: no" >&5
4514echo "${ECHO_T}no" >&6
4515fi
4516
4517  fi
4518  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4519    tclsh_name="tclsh8.0"
4520    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4521set dummy $tclsh_name; ac_word=$2
4522echo "$as_me:$LINENO: checking for $ac_word" >&5
4523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4524if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4525  echo $ECHO_N "(cached) $ECHO_C" >&6
4526else
4527  case $vi_cv_path_tcl in
4528  [\\/]* | ?:[\\/]*)
4529  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4530  ;;
4531  *)
4532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533for as_dir in $PATH
4534do
4535  IFS=$as_save_IFS
4536  test -z "$as_dir" && as_dir=.
4537  for ac_exec_ext in '' $ac_executable_extensions; do
4538  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541    break 2
4542  fi
4543done
4544done
4545
4546  ;;
4547esac
4548fi
4549vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4550
4551if test -n "$vi_cv_path_tcl"; then
4552  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4553echo "${ECHO_T}$vi_cv_path_tcl" >&6
4554else
4555  echo "$as_me:$LINENO: result: no" >&5
4556echo "${ECHO_T}no" >&6
4557fi
4558
4559  fi
4560    if test "X$vi_cv_path_tcl" = "X"; then
4561    tclsh_name="tclsh"
4562    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4563set dummy $tclsh_name; ac_word=$2
4564echo "$as_me:$LINENO: checking for $ac_word" >&5
4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4567  echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569  case $vi_cv_path_tcl in
4570  [\\/]* | ?:[\\/]*)
4571  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4572  ;;
4573  *)
4574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577  IFS=$as_save_IFS
4578  test -z "$as_dir" && as_dir=.
4579  for ac_exec_ext in '' $ac_executable_extensions; do
4580  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4582    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583    break 2
4584  fi
4585done
4586done
4587
4588  ;;
4589esac
4590fi
4591vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4592
4593if test -n "$vi_cv_path_tcl"; then
4594  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4595echo "${ECHO_T}$vi_cv_path_tcl" >&6
4596else
4597  echo "$as_me:$LINENO: result: no" >&5
4598echo "${ECHO_T}no" >&6
4599fi
4600
4601  fi
4602  if test "X$vi_cv_path_tcl" != "X"; then
4603    echo "$as_me:$LINENO: checking Tcl version" >&5
4604echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
4605    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4606      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
4607      echo "$as_me:$LINENO: result: $tclver - OK" >&5
4608echo "${ECHO_T}$tclver - OK" >&6;
4609      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 -`
4610
4611      echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4612echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
4613      if test "x$MACOSX" != "xyes"; then
4614	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
4615      else
4616		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4617      fi
4618      for try in $tclinc; do
4619	if test -f "$try/tcl.h"; then
4620	  echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4621echo "${ECHO_T}$try/tcl.h" >&6
4622	  TCL_INC=$try
4623	  break
4624	fi
4625      done
4626      if test -z "$TCL_INC"; then
4627	echo "$as_me:$LINENO: result: <not found>" >&5
4628echo "${ECHO_T}<not found>" >&6
4629	SKIP_TCL=YES
4630      fi
4631      if test -z "$SKIP_TCL"; then
4632	echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4633echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
4634	if test "x$MACOSX" != "xyes"; then
4635	  tclcnf=`echo $tclinc | sed s/include/lib/g`
4636	else
4637	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
4638	fi
4639	for try in $tclcnf; do
4640	  if test -f $try/tclConfig.sh; then
4641	    echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4642echo "${ECHO_T}$try/tclConfig.sh" >&6
4643	    . $try/tclConfig.sh
4644	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
4645	    	    	    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'`
4646	    break
4647	  fi
4648	done
4649	if test -z "$TCL_LIBS"; then
4650	  echo "$as_me:$LINENO: result: <not found>" >&5
4651echo "${ECHO_T}<not found>" >&6
4652	  echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4653echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
4654	  tcllib=`echo $tclinc | sed s/include/lib/g`
4655	  for ext in .so .a ; do
4656	    for ver in "" $tclver ; do
4657	      for try in $tcllib ; do
4658		trylib=tcl$ver$ext
4659		if test -f $try/lib$trylib ; then
4660		  echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4661echo "${ECHO_T}$try/lib$trylib" >&6
4662		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4663		  if test "`(uname) 2>/dev/null`" = SunOS &&
4664					 uname -r | grep '^5' >/dev/null; then
4665		    TCL_LIBS="$TCL_LIBS -R $try"
4666		  fi
4667		  break 3
4668		fi
4669	      done
4670	    done
4671	  done
4672	  if test -z "$TCL_LIBS"; then
4673	    echo "$as_me:$LINENO: result: <not found>" >&5
4674echo "${ECHO_T}<not found>" >&6
4675	    SKIP_TCL=YES
4676	  fi
4677	fi
4678	if test -z "$SKIP_TCL"; then
4679	  cat >>confdefs.h <<\_ACEOF
4680#define FEAT_TCL 1
4681_ACEOF
4682
4683	  TCL_SRC=if_tcl.c
4684	  TCL_OBJ=objects/if_tcl.o
4685	  TCL_PRO=if_tcl.pro
4686	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4687	fi
4688      fi
4689    else
4690      echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4691echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
4692    fi
4693  fi
4694fi
4695
4696
4697
4698
4699
4700
4701echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4702echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
4703# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4704if test "${enable_rubyinterp+set}" = set; then
4705  enableval="$enable_rubyinterp"
4706
4707else
4708  enable_rubyinterp="no"
4709fi;
4710echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4711echo "${ECHO_T}$enable_rubyinterp" >&6
4712if test "$enable_rubyinterp" = "yes"; then
4713
4714  # Extract the first word of "ruby", so it can be a program name with args.
4715set dummy ruby; ac_word=$2
4716echo "$as_me:$LINENO: checking for $ac_word" >&5
4717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4718if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4719  echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721  case $vi_cv_path_ruby in
4722  [\\/]* | ?:[\\/]*)
4723  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4724  ;;
4725  *)
4726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729  IFS=$as_save_IFS
4730  test -z "$as_dir" && as_dir=.
4731  for ac_exec_ext in '' $ac_executable_extensions; do
4732  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735    break 2
4736  fi
4737done
4738done
4739
4740  ;;
4741esac
4742fi
4743vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4744
4745if test -n "$vi_cv_path_ruby"; then
4746  echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4747echo "${ECHO_T}$vi_cv_path_ruby" >&6
4748else
4749  echo "$as_me:$LINENO: result: no" >&5
4750echo "${ECHO_T}no" >&6
4751fi
4752
4753  if test "X$vi_cv_path_ruby" != "X"; then
4754    echo "$as_me:$LINENO: checking Ruby version" >&5
4755echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
4756    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
4757      echo "$as_me:$LINENO: result: OK" >&5
4758echo "${ECHO_T}OK" >&6
4759      echo "$as_me:$LINENO: checking Ruby header files" >&5
4760echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
4761      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4762      if test "X$rubyhdrdir" != "X"; then
4763	echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4764echo "${ECHO_T}$rubyhdrdir" >&6
4765	RUBY_CFLAGS="-I$rubyhdrdir"
4766	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4767	if test "X$rubylibs" != "X"; then
4768	  RUBY_LIBS="$rubylibs"
4769	fi
4770	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4771	if test -f "$rubyhdrdir/$librubyarg"; then
4772	  librubyarg="$rubyhdrdir/$librubyarg"
4773	else
4774	  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4775	  if test -f "$rubylibdir/$librubyarg"; then
4776	    librubyarg="$rubylibdir/$librubyarg"
4777	  elif test "$librubyarg" = "libruby.a"; then
4778	    	    librubyarg="-lruby"
4779	  else
4780	    librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4781	  fi
4782	fi
4783
4784	if test "X$librubyarg" != "X"; then
4785	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
4786	fi
4787	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4788	if test "X$rubyldflags" != "X"; then
4789	  LDFLAGS="$rubyldflags $LDFLAGS"
4790	fi
4791	RUBY_SRC="if_ruby.c"
4792	RUBY_OBJ="objects/if_ruby.o"
4793	RUBY_PRO="if_ruby.pro"
4794	cat >>confdefs.h <<\_ACEOF
4795#define FEAT_RUBY 1
4796_ACEOF
4797
4798      else
4799	echo "$as_me:$LINENO: result: not found" >&5
4800echo "${ECHO_T}not found" >&6
4801      fi
4802    else
4803      echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4804echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
4805    fi
4806  fi
4807fi
4808
4809
4810
4811
4812
4813
4814echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4815echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
4816# Check whether --enable-cscope or --disable-cscope was given.
4817if test "${enable_cscope+set}" = set; then
4818  enableval="$enable_cscope"
4819
4820else
4821  enable_cscope="no"
4822fi;
4823echo "$as_me:$LINENO: result: $enable_cscope" >&5
4824echo "${ECHO_T}$enable_cscope" >&6
4825if test "$enable_cscope" = "yes"; then
4826  cat >>confdefs.h <<\_ACEOF
4827#define FEAT_CSCOPE 1
4828_ACEOF
4829
4830fi
4831
4832echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4833echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
4834# Check whether --enable-workshop or --disable-workshop was given.
4835if test "${enable_workshop+set}" = set; then
4836  enableval="$enable_workshop"
4837
4838else
4839  enable_workshop="no"
4840fi;
4841echo "$as_me:$LINENO: result: $enable_workshop" >&5
4842echo "${ECHO_T}$enable_workshop" >&6
4843if test "$enable_workshop" = "yes"; then
4844  cat >>confdefs.h <<\_ACEOF
4845#define FEAT_SUN_WORKSHOP 1
4846_ACEOF
4847
4848  WORKSHOP_SRC="workshop.c integration.c"
4849
4850  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
4851
4852  if test "${enable_gui-xxx}" = xxx; then
4853    enable_gui=motif
4854  fi
4855fi
4856
4857echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4858echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
4859# Check whether --enable-netbeans or --disable-netbeans was given.
4860if test "${enable_netbeans+set}" = set; then
4861  enableval="$enable_netbeans"
4862
4863else
4864  enable_netbeans="yes"
4865fi;
4866if test "$enable_netbeans" = "yes"; then
4867  echo "$as_me:$LINENO: result: no" >&5
4868echo "${ECHO_T}no" >&6
4869
4870echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4871echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4872if test "${ac_cv_lib_socket_socket+set}" = set; then
4873  echo $ECHO_N "(cached) $ECHO_C" >&6
4874else
4875  ac_check_lib_save_LIBS=$LIBS
4876LIBS="-lsocket  $LIBS"
4877cat >conftest.$ac_ext <<_ACEOF
4878/* confdefs.h.  */
4879_ACEOF
4880cat confdefs.h >>conftest.$ac_ext
4881cat >>conftest.$ac_ext <<_ACEOF
4882/* end confdefs.h.  */
4883
4884/* Override any gcc2 internal prototype to avoid an error.  */
4885#ifdef __cplusplus
4886extern "C"
4887#endif
4888/* We use char because int might match the return type of a gcc2
4889   builtin and then its argument prototype would still apply.  */
4890char socket ();
4891int
4892main ()
4893{
4894socket ();
4895  ;
4896  return 0;
4897}
4898_ACEOF
4899rm -f conftest.$ac_objext conftest$ac_exeext
4900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901  (eval $ac_link) 2>conftest.er1
4902  ac_status=$?
4903  grep -v '^ *+' conftest.er1 >conftest.err
4904  rm -f conftest.er1
4905  cat conftest.err >&5
4906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907  (exit $ac_status); } &&
4908	 { ac_try='test -z "$ac_c_werror_flag"
4909			 || test ! -s conftest.err'
4910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911  (eval $ac_try) 2>&5
4912  ac_status=$?
4913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914  (exit $ac_status); }; } &&
4915	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4921  ac_cv_lib_socket_socket=yes
4922else
4923  echo "$as_me: failed program was:" >&5
4924sed 's/^/| /' conftest.$ac_ext >&5
4925
4926ac_cv_lib_socket_socket=no
4927fi
4928rm -f conftest.err conftest.$ac_objext \
4929      conftest$ac_exeext conftest.$ac_ext
4930LIBS=$ac_check_lib_save_LIBS
4931fi
4932echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4933echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4934if test $ac_cv_lib_socket_socket = yes; then
4935  cat >>confdefs.h <<_ACEOF
4936#define HAVE_LIBSOCKET 1
4937_ACEOF
4938
4939  LIBS="-lsocket $LIBS"
4940
4941fi
4942
4943
4944echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4945echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4946if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4947  echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949  ac_check_lib_save_LIBS=$LIBS
4950LIBS="-lnsl  $LIBS"
4951cat >conftest.$ac_ext <<_ACEOF
4952/* confdefs.h.  */
4953_ACEOF
4954cat confdefs.h >>conftest.$ac_ext
4955cat >>conftest.$ac_ext <<_ACEOF
4956/* end confdefs.h.  */
4957
4958/* Override any gcc2 internal prototype to avoid an error.  */
4959#ifdef __cplusplus
4960extern "C"
4961#endif
4962/* We use char because int might match the return type of a gcc2
4963   builtin and then its argument prototype would still apply.  */
4964char gethostbyname ();
4965int
4966main ()
4967{
4968gethostbyname ();
4969  ;
4970  return 0;
4971}
4972_ACEOF
4973rm -f conftest.$ac_objext conftest$ac_exeext
4974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975  (eval $ac_link) 2>conftest.er1
4976  ac_status=$?
4977  grep -v '^ *+' conftest.er1 >conftest.err
4978  rm -f conftest.er1
4979  cat conftest.err >&5
4980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981  (exit $ac_status); } &&
4982	 { ac_try='test -z "$ac_c_werror_flag"
4983			 || test ! -s conftest.err'
4984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985  (eval $ac_try) 2>&5
4986  ac_status=$?
4987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988  (exit $ac_status); }; } &&
4989	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4995  ac_cv_lib_nsl_gethostbyname=yes
4996else
4997  echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000ac_cv_lib_nsl_gethostbyname=no
5001fi
5002rm -f conftest.err conftest.$ac_objext \
5003      conftest$ac_exeext conftest.$ac_ext
5004LIBS=$ac_check_lib_save_LIBS
5005fi
5006echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5007echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5008if test $ac_cv_lib_nsl_gethostbyname = yes; then
5009  cat >>confdefs.h <<_ACEOF
5010#define HAVE_LIBNSL 1
5011_ACEOF
5012
5013  LIBS="-lnsl $LIBS"
5014
5015fi
5016
5017  echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5018echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5019  cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h.  */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h.  */
5025
5026#include <stdio.h>
5027#include <stdlib.h>
5028#include <stdarg.h>
5029#include <fcntl.h>
5030#include <netdb.h>
5031#include <netinet/in.h>
5032#include <errno.h>
5033#include <sys/types.h>
5034#include <sys/socket.h>
5035	/* Check bitfields */
5036	struct nbbuf {
5037	unsigned int  initDone:1;
5038	ushort signmaplen;
5039	};
5040
5041int
5042main ()
5043{
5044
5045		/* Check creating a socket. */
5046		struct sockaddr_in server;
5047		(void)socket(AF_INET, SOCK_STREAM, 0);
5048		(void)htons(100);
5049		(void)gethostbyname("microsoft.com");
5050		if (errno == ECONNREFUSED)
5051		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
5052
5053  ;
5054  return 0;
5055}
5056_ACEOF
5057rm -f conftest.$ac_objext conftest$ac_exeext
5058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059  (eval $ac_link) 2>conftest.er1
5060  ac_status=$?
5061  grep -v '^ *+' conftest.er1 >conftest.err
5062  rm -f conftest.er1
5063  cat conftest.err >&5
5064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065  (exit $ac_status); } &&
5066	 { ac_try='test -z "$ac_c_werror_flag"
5067			 || test ! -s conftest.err'
5068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069  (eval $ac_try) 2>&5
5070  ac_status=$?
5071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072  (exit $ac_status); }; } &&
5073	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5079  echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
5081else
5082  echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
5085echo "$as_me:$LINENO: result: no" >&5
5086echo "${ECHO_T}no" >&6; enable_netbeans="no"
5087fi
5088rm -f conftest.err conftest.$ac_objext \
5089      conftest$ac_exeext conftest.$ac_ext
5090else
5091  echo "$as_me:$LINENO: result: yes" >&5
5092echo "${ECHO_T}yes" >&6
5093fi
5094if test "$enable_netbeans" = "yes"; then
5095  cat >>confdefs.h <<\_ACEOF
5096#define FEAT_NETBEANS_INTG 1
5097_ACEOF
5098
5099  NETBEANS_SRC="netbeans.c"
5100
5101  NETBEANS_OBJ="objects/netbeans.o"
5102
5103fi
5104
5105echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5106echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
5107# Check whether --enable-sniff or --disable-sniff was given.
5108if test "${enable_sniff+set}" = set; then
5109  enableval="$enable_sniff"
5110
5111else
5112  enable_sniff="no"
5113fi;
5114echo "$as_me:$LINENO: result: $enable_sniff" >&5
5115echo "${ECHO_T}$enable_sniff" >&6
5116if test "$enable_sniff" = "yes"; then
5117  cat >>confdefs.h <<\_ACEOF
5118#define FEAT_SNIFF 1
5119_ACEOF
5120
5121  SNIFF_SRC="if_sniff.c"
5122
5123  SNIFF_OBJ="objects/if_sniff.o"
5124
5125fi
5126
5127echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5128echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
5129# Check whether --enable-multibyte or --disable-multibyte was given.
5130if test "${enable_multibyte+set}" = set; then
5131  enableval="$enable_multibyte"
5132
5133else
5134  enable_multibyte="no"
5135fi;
5136echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5137echo "${ECHO_T}$enable_multibyte" >&6
5138if test "$enable_multibyte" = "yes"; then
5139  cat >>confdefs.h <<\_ACEOF
5140#define FEAT_MBYTE 1
5141_ACEOF
5142
5143fi
5144
5145echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5146echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
5147# Check whether --enable-hangulinput or --disable-hangulinput was given.
5148if test "${enable_hangulinput+set}" = set; then
5149  enableval="$enable_hangulinput"
5150
5151else
5152  enable_hangulinput="no"
5153fi;
5154echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5155echo "${ECHO_T}$enable_hangulinput" >&6
5156
5157echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5158echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
5159# Check whether --enable-xim or --disable-xim was given.
5160if test "${enable_xim+set}" = set; then
5161  enableval="$enable_xim"
5162  echo "$as_me:$LINENO: result: $enable_xim" >&5
5163echo "${ECHO_T}$enable_xim" >&6
5164else
5165  enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5166echo "${ECHO_T}defaulting to auto" >&6
5167fi;
5168
5169echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5170echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
5171# Check whether --enable-fontset or --disable-fontset was given.
5172if test "${enable_fontset+set}" = set; then
5173  enableval="$enable_fontset"
5174
5175else
5176  enable_fontset="no"
5177fi;
5178echo "$as_me:$LINENO: result: $enable_fontset" >&5
5179echo "${ECHO_T}$enable_fontset" >&6
5180
5181test -z "$with_x" && with_x=yes
5182test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5183if test "$with_x" = no; then
5184  echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5185echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
5186else
5187
5188  # Extract the first word of "xmkmf", so it can be a program name with args.
5189set dummy xmkmf; ac_word=$2
5190echo "$as_me:$LINENO: checking for $ac_word" >&5
5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_path_xmkmfpath+set}" = set; then
5193  echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195  case $xmkmfpath in
5196  [\\/]* | ?:[\\/]*)
5197  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5198  ;;
5199  *)
5200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203  IFS=$as_save_IFS
5204  test -z "$as_dir" && as_dir=.
5205  for ac_exec_ext in '' $ac_executable_extensions; do
5206  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209    break 2
5210  fi
5211done
5212done
5213
5214  ;;
5215esac
5216fi
5217xmkmfpath=$ac_cv_path_xmkmfpath
5218
5219if test -n "$xmkmfpath"; then
5220  echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5221echo "${ECHO_T}$xmkmfpath" >&6
5222else
5223  echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225fi
5226
5227
5228  echo "$as_me:$LINENO: checking for X" >&5
5229echo $ECHO_N "checking for X... $ECHO_C" >&6
5230
5231
5232# Check whether --with-x or --without-x was given.
5233if test "${with_x+set}" = set; then
5234  withval="$with_x"
5235
5236fi;
5237# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5238if test "x$with_x" = xno; then
5239  # The user explicitly disabled X.
5240  have_x=disabled
5241else
5242  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5243    # Both variables are already set.
5244    have_x=yes
5245  else
5246    if test "${ac_cv_have_x+set}" = set; then
5247  echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249  # One or both of the vars are not set, and there is no cached value.
5250ac_x_includes=no ac_x_libraries=no
5251rm -fr conftest.dir
5252if mkdir conftest.dir; then
5253  cd conftest.dir
5254  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5255  cat >Imakefile <<'_ACEOF'
5256acfindx:
5257	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5258_ACEOF
5259  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5260    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5261    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5262    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5263    for ac_extension in a so sl; do
5264      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5265	 test -f $ac_im_libdir/libX11.$ac_extension; then
5266	ac_im_usrlibdir=$ac_im_libdir; break
5267      fi
5268    done
5269    # Screen out bogus values from the imake configuration.  They are
5270    # bogus both because they are the default anyway, and because
5271    # using them would break gcc on systems where it needs fixed includes.
5272    case $ac_im_incroot in
5273	/usr/include) ;;
5274	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5275    esac
5276    case $ac_im_usrlibdir in
5277	/usr/lib | /lib) ;;
5278	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5279    esac
5280  fi
5281  cd ..
5282  rm -fr conftest.dir
5283fi
5284
5285# Standard set of common directories for X headers.
5286# Check X11 before X11Rn because it is often a symlink to the current release.
5287ac_x_header_dirs='
5288/usr/X11/include
5289/usr/X11R6/include
5290/usr/X11R5/include
5291/usr/X11R4/include
5292
5293/usr/include/X11
5294/usr/include/X11R6
5295/usr/include/X11R5
5296/usr/include/X11R4
5297
5298/usr/local/X11/include
5299/usr/local/X11R6/include
5300/usr/local/X11R5/include
5301/usr/local/X11R4/include
5302
5303/usr/local/include/X11
5304/usr/local/include/X11R6
5305/usr/local/include/X11R5
5306/usr/local/include/X11R4
5307
5308/usr/X386/include
5309/usr/x386/include
5310/usr/XFree86/include/X11
5311
5312/usr/include
5313/usr/local/include
5314/usr/unsupported/include
5315/usr/athena/include
5316/usr/local/x11r5/include
5317/usr/lpp/Xamples/include
5318
5319/usr/openwin/include
5320/usr/openwin/share/include'
5321
5322if test "$ac_x_includes" = no; then
5323  # Guess where to find include files, by looking for Intrinsic.h.
5324  # First, try using that file with no special directory specified.
5325  cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h.  */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h.  */
5331#include <X11/Intrinsic.h>
5332_ACEOF
5333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5334  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5335  ac_status=$?
5336  grep -v '^ *+' conftest.er1 >conftest.err
5337  rm -f conftest.er1
5338  cat conftest.err >&5
5339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340  (exit $ac_status); } >/dev/null; then
5341  if test -s conftest.err; then
5342    ac_cpp_err=$ac_c_preproc_warn_flag
5343    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5344  else
5345    ac_cpp_err=
5346  fi
5347else
5348  ac_cpp_err=yes
5349fi
5350if test -z "$ac_cpp_err"; then
5351  # We can compile using X headers with no special include directory.
5352ac_x_includes=
5353else
5354  echo "$as_me: failed program was:" >&5
5355sed 's/^/| /' conftest.$ac_ext >&5
5356
5357  for ac_dir in $ac_x_header_dirs; do
5358  if test -r "$ac_dir/X11/Intrinsic.h"; then
5359    ac_x_includes=$ac_dir
5360    break
5361  fi
5362done
5363fi
5364rm -f conftest.err conftest.$ac_ext
5365fi # $ac_x_includes = no
5366
5367if test "$ac_x_libraries" = no; then
5368  # Check for the libraries.
5369  # See if we find them without any special options.
5370  # Don't add to $LIBS permanently.
5371  ac_save_LIBS=$LIBS
5372  LIBS="-lXt $LIBS"
5373  cat >conftest.$ac_ext <<_ACEOF
5374/* confdefs.h.  */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h.  */
5379#include <X11/Intrinsic.h>
5380int
5381main ()
5382{
5383XtMalloc (0)
5384  ;
5385  return 0;
5386}
5387_ACEOF
5388rm -f conftest.$ac_objext conftest$ac_exeext
5389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5390  (eval $ac_link) 2>conftest.er1
5391  ac_status=$?
5392  grep -v '^ *+' conftest.er1 >conftest.err
5393  rm -f conftest.er1
5394  cat conftest.err >&5
5395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396  (exit $ac_status); } &&
5397	 { ac_try='test -z "$ac_c_werror_flag"
5398			 || test ! -s conftest.err'
5399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400  (eval $ac_try) 2>&5
5401  ac_status=$?
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); }; } &&
5404	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5410  LIBS=$ac_save_LIBS
5411# We can link X programs with no special library path.
5412ac_x_libraries=
5413else
5414  echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417LIBS=$ac_save_LIBS
5418for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5419do
5420  # Don't even attempt the hair of trying to link an X program!
5421  for ac_extension in a so sl; do
5422    if test -r $ac_dir/libXt.$ac_extension; then
5423      ac_x_libraries=$ac_dir
5424      break 2
5425    fi
5426  done
5427done
5428fi
5429rm -f conftest.err conftest.$ac_objext \
5430      conftest$ac_exeext conftest.$ac_ext
5431fi # $ac_x_libraries = no
5432
5433if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5434  # Didn't find X anywhere.  Cache the known absence of X.
5435  ac_cv_have_x="have_x=no"
5436else
5437  # Record where we found X for the cache.
5438  ac_cv_have_x="have_x=yes \
5439		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5440fi
5441fi
5442
5443  fi
5444  eval "$ac_cv_have_x"
5445fi # $with_x != no
5446
5447if test "$have_x" != yes; then
5448  echo "$as_me:$LINENO: result: $have_x" >&5
5449echo "${ECHO_T}$have_x" >&6
5450  no_x=yes
5451else
5452  # If each of the values was on the command line, it overrides each guess.
5453  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5454  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5455  # Update the cache value to reflect the command line values.
5456  ac_cv_have_x="have_x=yes \
5457		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5458  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5459echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5460fi
5461
5462if test "$no_x" = yes; then
5463  # Not all programs may use this symbol, but it does not hurt to define it.
5464
5465cat >>confdefs.h <<\_ACEOF
5466#define X_DISPLAY_MISSING 1
5467_ACEOF
5468
5469  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5470else
5471  if test -n "$x_includes"; then
5472    X_CFLAGS="$X_CFLAGS -I$x_includes"
5473  fi
5474
5475  # It would also be nice to do this for all -L options, not just this one.
5476  if test -n "$x_libraries"; then
5477    X_LIBS="$X_LIBS -L$x_libraries"
5478    # For Solaris; some versions of Sun CC require a space after -R and
5479    # others require no space.  Words are not sufficient . . . .
5480    case `(uname -sr) 2>/dev/null` in
5481    "SunOS 5"*)
5482      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5483echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5484      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5485      cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h.  */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h.  */
5491
5492int
5493main ()
5494{
5495
5496  ;
5497  return 0;
5498}
5499_ACEOF
5500rm -f conftest.$ac_objext conftest$ac_exeext
5501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5502  (eval $ac_link) 2>conftest.er1
5503  ac_status=$?
5504  grep -v '^ *+' conftest.er1 >conftest.err
5505  rm -f conftest.er1
5506  cat conftest.err >&5
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); } &&
5509	 { ac_try='test -z "$ac_c_werror_flag"
5510			 || test ! -s conftest.err'
5511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512  (eval $ac_try) 2>&5
5513  ac_status=$?
5514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515  (exit $ac_status); }; } &&
5516	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5522  ac_R_nospace=yes
5523else
5524  echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
5527ac_R_nospace=no
5528fi
5529rm -f conftest.err conftest.$ac_objext \
5530      conftest$ac_exeext conftest.$ac_ext
5531      if test $ac_R_nospace = yes; then
5532	echo "$as_me:$LINENO: result: no" >&5
5533echo "${ECHO_T}no" >&6
5534	X_LIBS="$X_LIBS -R$x_libraries"
5535      else
5536	LIBS="$ac_xsave_LIBS -R $x_libraries"
5537	cat >conftest.$ac_ext <<_ACEOF
5538/* confdefs.h.  */
5539_ACEOF
5540cat confdefs.h >>conftest.$ac_ext
5541cat >>conftest.$ac_ext <<_ACEOF
5542/* end confdefs.h.  */
5543
5544int
5545main ()
5546{
5547
5548  ;
5549  return 0;
5550}
5551_ACEOF
5552rm -f conftest.$ac_objext conftest$ac_exeext
5553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5554  (eval $ac_link) 2>conftest.er1
5555  ac_status=$?
5556  grep -v '^ *+' conftest.er1 >conftest.err
5557  rm -f conftest.er1
5558  cat conftest.err >&5
5559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560  (exit $ac_status); } &&
5561	 { ac_try='test -z "$ac_c_werror_flag"
5562			 || test ! -s conftest.err'
5563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564  (eval $ac_try) 2>&5
5565  ac_status=$?
5566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567  (exit $ac_status); }; } &&
5568	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5574  ac_R_space=yes
5575else
5576  echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
5579ac_R_space=no
5580fi
5581rm -f conftest.err conftest.$ac_objext \
5582      conftest$ac_exeext conftest.$ac_ext
5583	if test $ac_R_space = yes; then
5584	  echo "$as_me:$LINENO: result: yes" >&5
5585echo "${ECHO_T}yes" >&6
5586	  X_LIBS="$X_LIBS -R $x_libraries"
5587	else
5588	  echo "$as_me:$LINENO: result: neither works" >&5
5589echo "${ECHO_T}neither works" >&6
5590	fi
5591      fi
5592      LIBS=$ac_xsave_LIBS
5593    esac
5594  fi
5595
5596  # Check for system-dependent libraries X programs must link with.
5597  # Do this before checking for the system-independent R6 libraries
5598  # (-lICE), since we may need -lsocket or whatever for X linking.
5599
5600  if test "$ISC" = yes; then
5601    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5602  else
5603    # Martyn Johnson says this is needed for Ultrix, if the X
5604    # libraries were built with DECnet support.  And Karl Berry says
5605    # the Alpha needs dnet_stub (dnet does not exist).
5606    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5607    cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h.  */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h.  */
5613
5614/* Override any gcc2 internal prototype to avoid an error.  */
5615#ifdef __cplusplus
5616extern "C"
5617#endif
5618/* We use char because int might match the return type of a gcc2
5619   builtin and then its argument prototype would still apply.  */
5620char XOpenDisplay ();
5621int
5622main ()
5623{
5624XOpenDisplay ();
5625  ;
5626  return 0;
5627}
5628_ACEOF
5629rm -f conftest.$ac_objext conftest$ac_exeext
5630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631  (eval $ac_link) 2>conftest.er1
5632  ac_status=$?
5633  grep -v '^ *+' conftest.er1 >conftest.err
5634  rm -f conftest.er1
5635  cat conftest.err >&5
5636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637  (exit $ac_status); } &&
5638	 { ac_try='test -z "$ac_c_werror_flag"
5639			 || test ! -s conftest.err'
5640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641  (eval $ac_try) 2>&5
5642  ac_status=$?
5643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644  (exit $ac_status); }; } &&
5645	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5651  :
5652else
5653  echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
5656echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5657echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5658if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5659  echo $ECHO_N "(cached) $ECHO_C" >&6
5660else
5661  ac_check_lib_save_LIBS=$LIBS
5662LIBS="-ldnet  $LIBS"
5663cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h.  */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h.  */
5669
5670/* Override any gcc2 internal prototype to avoid an error.  */
5671#ifdef __cplusplus
5672extern "C"
5673#endif
5674/* We use char because int might match the return type of a gcc2
5675   builtin and then its argument prototype would still apply.  */
5676char dnet_ntoa ();
5677int
5678main ()
5679{
5680dnet_ntoa ();
5681  ;
5682  return 0;
5683}
5684_ACEOF
5685rm -f conftest.$ac_objext conftest$ac_exeext
5686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5687  (eval $ac_link) 2>conftest.er1
5688  ac_status=$?
5689  grep -v '^ *+' conftest.er1 >conftest.err
5690  rm -f conftest.er1
5691  cat conftest.err >&5
5692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693  (exit $ac_status); } &&
5694	 { ac_try='test -z "$ac_c_werror_flag"
5695			 || test ! -s conftest.err'
5696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697  (eval $ac_try) 2>&5
5698  ac_status=$?
5699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700  (exit $ac_status); }; } &&
5701	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5707  ac_cv_lib_dnet_dnet_ntoa=yes
5708else
5709  echo "$as_me: failed program was:" >&5
5710sed 's/^/| /' conftest.$ac_ext >&5
5711
5712ac_cv_lib_dnet_dnet_ntoa=no
5713fi
5714rm -f conftest.err conftest.$ac_objext \
5715      conftest$ac_exeext conftest.$ac_ext
5716LIBS=$ac_check_lib_save_LIBS
5717fi
5718echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5719echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5720if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5721  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5722fi
5723
5724    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5725      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5726echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5727if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5728  echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730  ac_check_lib_save_LIBS=$LIBS
5731LIBS="-ldnet_stub  $LIBS"
5732cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h.  */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h.  */
5738
5739/* Override any gcc2 internal prototype to avoid an error.  */
5740#ifdef __cplusplus
5741extern "C"
5742#endif
5743/* We use char because int might match the return type of a gcc2
5744   builtin and then its argument prototype would still apply.  */
5745char dnet_ntoa ();
5746int
5747main ()
5748{
5749dnet_ntoa ();
5750  ;
5751  return 0;
5752}
5753_ACEOF
5754rm -f conftest.$ac_objext conftest$ac_exeext
5755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756  (eval $ac_link) 2>conftest.er1
5757  ac_status=$?
5758  grep -v '^ *+' conftest.er1 >conftest.err
5759  rm -f conftest.er1
5760  cat conftest.err >&5
5761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762  (exit $ac_status); } &&
5763	 { ac_try='test -z "$ac_c_werror_flag"
5764			 || test ! -s conftest.err'
5765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766  (eval $ac_try) 2>&5
5767  ac_status=$?
5768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769  (exit $ac_status); }; } &&
5770	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5776  ac_cv_lib_dnet_stub_dnet_ntoa=yes
5777else
5778  echo "$as_me: failed program was:" >&5
5779sed 's/^/| /' conftest.$ac_ext >&5
5780
5781ac_cv_lib_dnet_stub_dnet_ntoa=no
5782fi
5783rm -f conftest.err conftest.$ac_objext \
5784      conftest$ac_exeext conftest.$ac_ext
5785LIBS=$ac_check_lib_save_LIBS
5786fi
5787echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5788echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5789if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5790  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5791fi
5792
5793    fi
5794fi
5795rm -f conftest.err conftest.$ac_objext \
5796      conftest$ac_exeext conftest.$ac_ext
5797    LIBS="$ac_xsave_LIBS"
5798
5799    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5800    # to get the SysV transport functions.
5801    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5802    # needs -lnsl.
5803    # The nsl library prevents programs from opening the X display
5804    # on Irix 5.2, according to T.E. Dickey.
5805    # The functions gethostbyname, getservbyname, and inet_addr are
5806    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5807    echo "$as_me:$LINENO: checking for gethostbyname" >&5
5808echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5809if test "${ac_cv_func_gethostbyname+set}" = set; then
5810  echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812  cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h.  */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h.  */
5818/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5819   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5820#define gethostbyname innocuous_gethostbyname
5821
5822/* System header to define __stub macros and hopefully few prototypes,
5823    which can conflict with char gethostbyname (); below.
5824    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825    <limits.h> exists even on freestanding compilers.  */
5826
5827#ifdef __STDC__
5828# include <limits.h>
5829#else
5830# include <assert.h>
5831#endif
5832
5833#undef gethostbyname
5834
5835/* Override any gcc2 internal prototype to avoid an error.  */
5836#ifdef __cplusplus
5837extern "C"
5838{
5839#endif
5840/* We use char because int might match the return type of a gcc2
5841   builtin and then its argument prototype would still apply.  */
5842char gethostbyname ();
5843/* The GNU C library defines this for functions which it implements
5844    to always fail with ENOSYS.  Some functions are actually named
5845    something starting with __ and the normal name is an alias.  */
5846#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5847choke me
5848#else
5849char (*f) () = gethostbyname;
5850#endif
5851#ifdef __cplusplus
5852}
5853#endif
5854
5855int
5856main ()
5857{
5858return f != gethostbyname;
5859  ;
5860  return 0;
5861}
5862_ACEOF
5863rm -f conftest.$ac_objext conftest$ac_exeext
5864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865  (eval $ac_link) 2>conftest.er1
5866  ac_status=$?
5867  grep -v '^ *+' conftest.er1 >conftest.err
5868  rm -f conftest.er1
5869  cat conftest.err >&5
5870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871  (exit $ac_status); } &&
5872	 { ac_try='test -z "$ac_c_werror_flag"
5873			 || test ! -s conftest.err'
5874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875  (eval $ac_try) 2>&5
5876  ac_status=$?
5877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878  (exit $ac_status); }; } &&
5879	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5885  ac_cv_func_gethostbyname=yes
5886else
5887  echo "$as_me: failed program was:" >&5
5888sed 's/^/| /' conftest.$ac_ext >&5
5889
5890ac_cv_func_gethostbyname=no
5891fi
5892rm -f conftest.err conftest.$ac_objext \
5893      conftest$ac_exeext conftest.$ac_ext
5894fi
5895echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5896echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5897
5898    if test $ac_cv_func_gethostbyname = no; then
5899      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5900echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5901if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5902  echo $ECHO_N "(cached) $ECHO_C" >&6
5903else
5904  ac_check_lib_save_LIBS=$LIBS
5905LIBS="-lnsl  $LIBS"
5906cat >conftest.$ac_ext <<_ACEOF
5907/* confdefs.h.  */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h.  */
5912
5913/* Override any gcc2 internal prototype to avoid an error.  */
5914#ifdef __cplusplus
5915extern "C"
5916#endif
5917/* We use char because int might match the return type of a gcc2
5918   builtin and then its argument prototype would still apply.  */
5919char gethostbyname ();
5920int
5921main ()
5922{
5923gethostbyname ();
5924  ;
5925  return 0;
5926}
5927_ACEOF
5928rm -f conftest.$ac_objext conftest$ac_exeext
5929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930  (eval $ac_link) 2>conftest.er1
5931  ac_status=$?
5932  grep -v '^ *+' conftest.er1 >conftest.err
5933  rm -f conftest.er1
5934  cat conftest.err >&5
5935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936  (exit $ac_status); } &&
5937	 { ac_try='test -z "$ac_c_werror_flag"
5938			 || test ! -s conftest.err'
5939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940  (eval $ac_try) 2>&5
5941  ac_status=$?
5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); }; } &&
5944	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5950  ac_cv_lib_nsl_gethostbyname=yes
5951else
5952  echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955ac_cv_lib_nsl_gethostbyname=no
5956fi
5957rm -f conftest.err conftest.$ac_objext \
5958      conftest$ac_exeext conftest.$ac_ext
5959LIBS=$ac_check_lib_save_LIBS
5960fi
5961echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5962echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5963if test $ac_cv_lib_nsl_gethostbyname = yes; then
5964  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5965fi
5966
5967      if test $ac_cv_lib_nsl_gethostbyname = no; then
5968	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5969echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5970if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5971  echo $ECHO_N "(cached) $ECHO_C" >&6
5972else
5973  ac_check_lib_save_LIBS=$LIBS
5974LIBS="-lbsd  $LIBS"
5975cat >conftest.$ac_ext <<_ACEOF
5976/* confdefs.h.  */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h.  */
5981
5982/* Override any gcc2 internal prototype to avoid an error.  */
5983#ifdef __cplusplus
5984extern "C"
5985#endif
5986/* We use char because int might match the return type of a gcc2
5987   builtin and then its argument prototype would still apply.  */
5988char gethostbyname ();
5989int
5990main ()
5991{
5992gethostbyname ();
5993  ;
5994  return 0;
5995}
5996_ACEOF
5997rm -f conftest.$ac_objext conftest$ac_exeext
5998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999  (eval $ac_link) 2>conftest.er1
6000  ac_status=$?
6001  grep -v '^ *+' conftest.er1 >conftest.err
6002  rm -f conftest.er1
6003  cat conftest.err >&5
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); } &&
6006	 { ac_try='test -z "$ac_c_werror_flag"
6007			 || test ! -s conftest.err'
6008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009  (eval $ac_try) 2>&5
6010  ac_status=$?
6011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); }; } &&
6013	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6019  ac_cv_lib_bsd_gethostbyname=yes
6020else
6021  echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024ac_cv_lib_bsd_gethostbyname=no
6025fi
6026rm -f conftest.err conftest.$ac_objext \
6027      conftest$ac_exeext conftest.$ac_ext
6028LIBS=$ac_check_lib_save_LIBS
6029fi
6030echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6031echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6032if test $ac_cv_lib_bsd_gethostbyname = yes; then
6033  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6034fi
6035
6036      fi
6037    fi
6038
6039    # [email protected] says without -lsocket,
6040    # socket/setsockopt and other routines are undefined under SCO ODT
6041    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6042    # on later versions), says Simon Leinen: it contains gethostby*
6043    # variants that don't use the name server (or something).  -lsocket
6044    # must be given before -lnsl if both are needed.  We assume that
6045    # if connect needs -lnsl, so does gethostbyname.
6046    echo "$as_me:$LINENO: checking for connect" >&5
6047echo $ECHO_N "checking for connect... $ECHO_C" >&6
6048if test "${ac_cv_func_connect+set}" = set; then
6049  echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051  cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h.  */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h.  */
6057/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6058   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6059#define connect innocuous_connect
6060
6061/* System header to define __stub macros and hopefully few prototypes,
6062    which can conflict with char connect (); below.
6063    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6064    <limits.h> exists even on freestanding compilers.  */
6065
6066#ifdef __STDC__
6067# include <limits.h>
6068#else
6069# include <assert.h>
6070#endif
6071
6072#undef connect
6073
6074/* Override any gcc2 internal prototype to avoid an error.  */
6075#ifdef __cplusplus
6076extern "C"
6077{
6078#endif
6079/* We use char because int might match the return type of a gcc2
6080   builtin and then its argument prototype would still apply.  */
6081char connect ();
6082/* The GNU C library defines this for functions which it implements
6083    to always fail with ENOSYS.  Some functions are actually named
6084    something starting with __ and the normal name is an alias.  */
6085#if defined (__stub_connect) || defined (__stub___connect)
6086choke me
6087#else
6088char (*f) () = connect;
6089#endif
6090#ifdef __cplusplus
6091}
6092#endif
6093
6094int
6095main ()
6096{
6097return f != connect;
6098  ;
6099  return 0;
6100}
6101_ACEOF
6102rm -f conftest.$ac_objext conftest$ac_exeext
6103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104  (eval $ac_link) 2>conftest.er1
6105  ac_status=$?
6106  grep -v '^ *+' conftest.er1 >conftest.err
6107  rm -f conftest.er1
6108  cat conftest.err >&5
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); } &&
6111	 { ac_try='test -z "$ac_c_werror_flag"
6112			 || test ! -s conftest.err'
6113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114  (eval $ac_try) 2>&5
6115  ac_status=$?
6116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117  (exit $ac_status); }; } &&
6118	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6124  ac_cv_func_connect=yes
6125else
6126  echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
6128
6129ac_cv_func_connect=no
6130fi
6131rm -f conftest.err conftest.$ac_objext \
6132      conftest$ac_exeext conftest.$ac_ext
6133fi
6134echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6135echo "${ECHO_T}$ac_cv_func_connect" >&6
6136
6137    if test $ac_cv_func_connect = no; then
6138      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6139echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6140if test "${ac_cv_lib_socket_connect+set}" = set; then
6141  echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143  ac_check_lib_save_LIBS=$LIBS
6144LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6145cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h.  */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h.  */
6151
6152/* Override any gcc2 internal prototype to avoid an error.  */
6153#ifdef __cplusplus
6154extern "C"
6155#endif
6156/* We use char because int might match the return type of a gcc2
6157   builtin and then its argument prototype would still apply.  */
6158char connect ();
6159int
6160main ()
6161{
6162connect ();
6163  ;
6164  return 0;
6165}
6166_ACEOF
6167rm -f conftest.$ac_objext conftest$ac_exeext
6168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6169  (eval $ac_link) 2>conftest.er1
6170  ac_status=$?
6171  grep -v '^ *+' conftest.er1 >conftest.err
6172  rm -f conftest.er1
6173  cat conftest.err >&5
6174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175  (exit $ac_status); } &&
6176	 { ac_try='test -z "$ac_c_werror_flag"
6177			 || test ! -s conftest.err'
6178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179  (eval $ac_try) 2>&5
6180  ac_status=$?
6181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182  (exit $ac_status); }; } &&
6183	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6189  ac_cv_lib_socket_connect=yes
6190else
6191  echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
6193
6194ac_cv_lib_socket_connect=no
6195fi
6196rm -f conftest.err conftest.$ac_objext \
6197      conftest$ac_exeext conftest.$ac_ext
6198LIBS=$ac_check_lib_save_LIBS
6199fi
6200echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6201echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6202if test $ac_cv_lib_socket_connect = yes; then
6203  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6204fi
6205
6206    fi
6207
6208    # Guillermo Gomez says -lposix is necessary on A/UX.
6209    echo "$as_me:$LINENO: checking for remove" >&5
6210echo $ECHO_N "checking for remove... $ECHO_C" >&6
6211if test "${ac_cv_func_remove+set}" = set; then
6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214  cat >conftest.$ac_ext <<_ACEOF
6215/* confdefs.h.  */
6216_ACEOF
6217cat confdefs.h >>conftest.$ac_ext
6218cat >>conftest.$ac_ext <<_ACEOF
6219/* end confdefs.h.  */
6220/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6221   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6222#define remove innocuous_remove
6223
6224/* System header to define __stub macros and hopefully few prototypes,
6225    which can conflict with char remove (); below.
6226    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227    <limits.h> exists even on freestanding compilers.  */
6228
6229#ifdef __STDC__
6230# include <limits.h>
6231#else
6232# include <assert.h>
6233#endif
6234
6235#undef remove
6236
6237/* Override any gcc2 internal prototype to avoid an error.  */
6238#ifdef __cplusplus
6239extern "C"
6240{
6241#endif
6242/* We use char because int might match the return type of a gcc2
6243   builtin and then its argument prototype would still apply.  */
6244char remove ();
6245/* The GNU C library defines this for functions which it implements
6246    to always fail with ENOSYS.  Some functions are actually named
6247    something starting with __ and the normal name is an alias.  */
6248#if defined (__stub_remove) || defined (__stub___remove)
6249choke me
6250#else
6251char (*f) () = remove;
6252#endif
6253#ifdef __cplusplus
6254}
6255#endif
6256
6257int
6258main ()
6259{
6260return f != remove;
6261  ;
6262  return 0;
6263}
6264_ACEOF
6265rm -f conftest.$ac_objext conftest$ac_exeext
6266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267  (eval $ac_link) 2>conftest.er1
6268  ac_status=$?
6269  grep -v '^ *+' conftest.er1 >conftest.err
6270  rm -f conftest.er1
6271  cat conftest.err >&5
6272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273  (exit $ac_status); } &&
6274	 { ac_try='test -z "$ac_c_werror_flag"
6275			 || test ! -s conftest.err'
6276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277  (eval $ac_try) 2>&5
6278  ac_status=$?
6279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280  (exit $ac_status); }; } &&
6281	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6287  ac_cv_func_remove=yes
6288else
6289  echo "$as_me: failed program was:" >&5
6290sed 's/^/| /' conftest.$ac_ext >&5
6291
6292ac_cv_func_remove=no
6293fi
6294rm -f conftest.err conftest.$ac_objext \
6295      conftest$ac_exeext conftest.$ac_ext
6296fi
6297echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6298echo "${ECHO_T}$ac_cv_func_remove" >&6
6299
6300    if test $ac_cv_func_remove = no; then
6301      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6302echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6303if test "${ac_cv_lib_posix_remove+set}" = set; then
6304  echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306  ac_check_lib_save_LIBS=$LIBS
6307LIBS="-lposix  $LIBS"
6308cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h.  */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h.  */
6314
6315/* Override any gcc2 internal prototype to avoid an error.  */
6316#ifdef __cplusplus
6317extern "C"
6318#endif
6319/* We use char because int might match the return type of a gcc2
6320   builtin and then its argument prototype would still apply.  */
6321char remove ();
6322int
6323main ()
6324{
6325remove ();
6326  ;
6327  return 0;
6328}
6329_ACEOF
6330rm -f conftest.$ac_objext conftest$ac_exeext
6331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332  (eval $ac_link) 2>conftest.er1
6333  ac_status=$?
6334  grep -v '^ *+' conftest.er1 >conftest.err
6335  rm -f conftest.er1
6336  cat conftest.err >&5
6337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338  (exit $ac_status); } &&
6339	 { ac_try='test -z "$ac_c_werror_flag"
6340			 || test ! -s conftest.err'
6341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342  (eval $ac_try) 2>&5
6343  ac_status=$?
6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); }; } &&
6346	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6352  ac_cv_lib_posix_remove=yes
6353else
6354  echo "$as_me: failed program was:" >&5
6355sed 's/^/| /' conftest.$ac_ext >&5
6356
6357ac_cv_lib_posix_remove=no
6358fi
6359rm -f conftest.err conftest.$ac_objext \
6360      conftest$ac_exeext conftest.$ac_ext
6361LIBS=$ac_check_lib_save_LIBS
6362fi
6363echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6364echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6365if test $ac_cv_lib_posix_remove = yes; then
6366  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6367fi
6368
6369    fi
6370
6371    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6372    echo "$as_me:$LINENO: checking for shmat" >&5
6373echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6374if test "${ac_cv_func_shmat+set}" = set; then
6375  echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377  cat >conftest.$ac_ext <<_ACEOF
6378/* confdefs.h.  */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h.  */
6383/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6384   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6385#define shmat innocuous_shmat
6386
6387/* System header to define __stub macros and hopefully few prototypes,
6388    which can conflict with char shmat (); below.
6389    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6390    <limits.h> exists even on freestanding compilers.  */
6391
6392#ifdef __STDC__
6393# include <limits.h>
6394#else
6395# include <assert.h>
6396#endif
6397
6398#undef shmat
6399
6400/* Override any gcc2 internal prototype to avoid an error.  */
6401#ifdef __cplusplus
6402extern "C"
6403{
6404#endif
6405/* We use char because int might match the return type of a gcc2
6406   builtin and then its argument prototype would still apply.  */
6407char shmat ();
6408/* The GNU C library defines this for functions which it implements
6409    to always fail with ENOSYS.  Some functions are actually named
6410    something starting with __ and the normal name is an alias.  */
6411#if defined (__stub_shmat) || defined (__stub___shmat)
6412choke me
6413#else
6414char (*f) () = shmat;
6415#endif
6416#ifdef __cplusplus
6417}
6418#endif
6419
6420int
6421main ()
6422{
6423return f != shmat;
6424  ;
6425  return 0;
6426}
6427_ACEOF
6428rm -f conftest.$ac_objext conftest$ac_exeext
6429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430  (eval $ac_link) 2>conftest.er1
6431  ac_status=$?
6432  grep -v '^ *+' conftest.er1 >conftest.err
6433  rm -f conftest.er1
6434  cat conftest.err >&5
6435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436  (exit $ac_status); } &&
6437	 { ac_try='test -z "$ac_c_werror_flag"
6438			 || test ! -s conftest.err'
6439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440  (eval $ac_try) 2>&5
6441  ac_status=$?
6442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); }; } &&
6444	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6450  ac_cv_func_shmat=yes
6451else
6452  echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
6455ac_cv_func_shmat=no
6456fi
6457rm -f conftest.err conftest.$ac_objext \
6458      conftest$ac_exeext conftest.$ac_ext
6459fi
6460echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6461echo "${ECHO_T}$ac_cv_func_shmat" >&6
6462
6463    if test $ac_cv_func_shmat = no; then
6464      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6465echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6466if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6467  echo $ECHO_N "(cached) $ECHO_C" >&6
6468else
6469  ac_check_lib_save_LIBS=$LIBS
6470LIBS="-lipc  $LIBS"
6471cat >conftest.$ac_ext <<_ACEOF
6472/* confdefs.h.  */
6473_ACEOF
6474cat confdefs.h >>conftest.$ac_ext
6475cat >>conftest.$ac_ext <<_ACEOF
6476/* end confdefs.h.  */
6477
6478/* Override any gcc2 internal prototype to avoid an error.  */
6479#ifdef __cplusplus
6480extern "C"
6481#endif
6482/* We use char because int might match the return type of a gcc2
6483   builtin and then its argument prototype would still apply.  */
6484char shmat ();
6485int
6486main ()
6487{
6488shmat ();
6489  ;
6490  return 0;
6491}
6492_ACEOF
6493rm -f conftest.$ac_objext conftest$ac_exeext
6494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6495  (eval $ac_link) 2>conftest.er1
6496  ac_status=$?
6497  grep -v '^ *+' conftest.er1 >conftest.err
6498  rm -f conftest.er1
6499  cat conftest.err >&5
6500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501  (exit $ac_status); } &&
6502	 { ac_try='test -z "$ac_c_werror_flag"
6503			 || test ! -s conftest.err'
6504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505  (eval $ac_try) 2>&5
6506  ac_status=$?
6507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); }; } &&
6509	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6515  ac_cv_lib_ipc_shmat=yes
6516else
6517  echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520ac_cv_lib_ipc_shmat=no
6521fi
6522rm -f conftest.err conftest.$ac_objext \
6523      conftest$ac_exeext conftest.$ac_ext
6524LIBS=$ac_check_lib_save_LIBS
6525fi
6526echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6527echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6528if test $ac_cv_lib_ipc_shmat = yes; then
6529  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6530fi
6531
6532    fi
6533  fi
6534
6535  # Check for libraries that X11R6 Xt/Xaw programs need.
6536  ac_save_LDFLAGS=$LDFLAGS
6537  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6538  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6539  # check for ICE first), but we must link in the order -lSM -lICE or
6540  # we get undefined symbols.  So assume we have SM if we have ICE.
6541  # These have to be linked with before -lX11, unlike the other
6542  # libraries we check for below, so use a different variable.
6543  # John Interrante, Karl Berry
6544  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6545echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6546if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6547  echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
6549  ac_check_lib_save_LIBS=$LIBS
6550LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6551cat >conftest.$ac_ext <<_ACEOF
6552/* confdefs.h.  */
6553_ACEOF
6554cat confdefs.h >>conftest.$ac_ext
6555cat >>conftest.$ac_ext <<_ACEOF
6556/* end confdefs.h.  */
6557
6558/* Override any gcc2 internal prototype to avoid an error.  */
6559#ifdef __cplusplus
6560extern "C"
6561#endif
6562/* We use char because int might match the return type of a gcc2
6563   builtin and then its argument prototype would still apply.  */
6564char IceConnectionNumber ();
6565int
6566main ()
6567{
6568IceConnectionNumber ();
6569  ;
6570  return 0;
6571}
6572_ACEOF
6573rm -f conftest.$ac_objext conftest$ac_exeext
6574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575  (eval $ac_link) 2>conftest.er1
6576  ac_status=$?
6577  grep -v '^ *+' conftest.er1 >conftest.err
6578  rm -f conftest.er1
6579  cat conftest.err >&5
6580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581  (exit $ac_status); } &&
6582	 { ac_try='test -z "$ac_c_werror_flag"
6583			 || test ! -s conftest.err'
6584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585  (eval $ac_try) 2>&5
6586  ac_status=$?
6587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588  (exit $ac_status); }; } &&
6589	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6595  ac_cv_lib_ICE_IceConnectionNumber=yes
6596else
6597  echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5
6599
6600ac_cv_lib_ICE_IceConnectionNumber=no
6601fi
6602rm -f conftest.err conftest.$ac_objext \
6603      conftest$ac_exeext conftest.$ac_ext
6604LIBS=$ac_check_lib_save_LIBS
6605fi
6606echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6607echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6608if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6609  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6610fi
6611
6612  LDFLAGS=$ac_save_LDFLAGS
6613
6614fi
6615
6616
6617        if test "$OS390Unix" = "yes"; then
6618    CFLAGS="$CFLAGS -W c,dll"
6619    LDFLAGS="$LDFLAGS -W l,dll"
6620    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6621  fi
6622
6623
6624  if test -d "$x_includes" && test ! -d "$x_libraries"; then
6625    x_libraries=`echo "$x_includes" | sed s/include/lib/`
6626    echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6627echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
6628    X_LIBS="$X_LIBS -L$x_libraries"
6629    if test "`(uname) 2>/dev/null`" = SunOS &&
6630					 uname -r | grep '^5' >/dev/null; then
6631      X_LIBS="$X_LIBS -R $x_libraries"
6632    fi
6633  fi
6634
6635  if test -d "$x_libraries" && test ! -d "$x_includes"; then
6636    x_includes=`echo "$x_libraries" | sed s/lib/include/`
6637    echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6638echo "${ECHO_T}Corrected X includes to $x_includes" >&6
6639    X_CFLAGS="$X_CFLAGS -I$x_includes"
6640  fi
6641
6642    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
6643    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
6644    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6645
6646
6647      echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6648echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
6649  cflags_save=$CFLAGS
6650  CFLAGS="$CFLAGS $X_CFLAGS"
6651  cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h.  */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h.  */
6657#include <X11/Xlib.h>
6658int
6659main ()
6660{
6661
6662  ;
6663  return 0;
6664}
6665_ACEOF
6666rm -f conftest.$ac_objext
6667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6668  (eval $ac_compile) 2>conftest.er1
6669  ac_status=$?
6670  grep -v '^ *+' conftest.er1 >conftest.err
6671  rm -f conftest.er1
6672  cat conftest.err >&5
6673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674  (exit $ac_status); } &&
6675	 { ac_try='test -z "$ac_c_werror_flag"
6676			 || test ! -s conftest.err'
6677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678  (eval $ac_try) 2>&5
6679  ac_status=$?
6680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681  (exit $ac_status); }; } &&
6682	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6688  echo "$as_me:$LINENO: result: yes" >&5
6689echo "${ECHO_T}yes" >&6
6690else
6691  echo "$as_me: failed program was:" >&5
6692sed 's/^/| /' conftest.$ac_ext >&5
6693
6694echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6; no_x=yes
6696fi
6697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6698  CFLAGS=$cflags_save
6699
6700  if test "${no_x-no}" = yes; then
6701    with_x=no
6702  else
6703    cat >>confdefs.h <<\_ACEOF
6704#define HAVE_X11 1
6705_ACEOF
6706
6707    X_LIB="-lXt -lX11";
6708
6709
6710    ac_save_LDFLAGS="$LDFLAGS"
6711    LDFLAGS="-L$x_libraries $LDFLAGS"
6712
6713            echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6714echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6715if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6716  echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718  ac_check_lib_save_LIBS=$LIBS
6719LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
6720cat >conftest.$ac_ext <<_ACEOF
6721/* confdefs.h.  */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
6725/* end confdefs.h.  */
6726
6727/* Override any gcc2 internal prototype to avoid an error.  */
6728#ifdef __cplusplus
6729extern "C"
6730#endif
6731/* We use char because int might match the return type of a gcc2
6732   builtin and then its argument prototype would still apply.  */
6733char _XdmcpAuthDoIt ();
6734int
6735main ()
6736{
6737_XdmcpAuthDoIt ();
6738  ;
6739  return 0;
6740}
6741_ACEOF
6742rm -f conftest.$ac_objext conftest$ac_exeext
6743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744  (eval $ac_link) 2>conftest.er1
6745  ac_status=$?
6746  grep -v '^ *+' conftest.er1 >conftest.err
6747  rm -f conftest.er1
6748  cat conftest.err >&5
6749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750  (exit $ac_status); } &&
6751	 { ac_try='test -z "$ac_c_werror_flag"
6752			 || test ! -s conftest.err'
6753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754  (eval $ac_try) 2>&5
6755  ac_status=$?
6756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757  (exit $ac_status); }; } &&
6758	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6764  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
6765else
6766  echo "$as_me: failed program was:" >&5
6767sed 's/^/| /' conftest.$ac_ext >&5
6768
6769ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
6770fi
6771rm -f conftest.err conftest.$ac_objext \
6772      conftest$ac_exeext conftest.$ac_ext
6773LIBS=$ac_check_lib_save_LIBS
6774fi
6775echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6776echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6777if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
6778  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
6779fi
6780
6781
6782                    echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6783echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6784if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6785  echo $ECHO_N "(cached) $ECHO_C" >&6
6786else
6787  ac_check_lib_save_LIBS=$LIBS
6788LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6789cat >conftest.$ac_ext <<_ACEOF
6790/* confdefs.h.  */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h.  */
6795
6796/* Override any gcc2 internal prototype to avoid an error.  */
6797#ifdef __cplusplus
6798extern "C"
6799#endif
6800/* We use char because int might match the return type of a gcc2
6801   builtin and then its argument prototype would still apply.  */
6802char IceOpenConnection ();
6803int
6804main ()
6805{
6806IceOpenConnection ();
6807  ;
6808  return 0;
6809}
6810_ACEOF
6811rm -f conftest.$ac_objext conftest$ac_exeext
6812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813  (eval $ac_link) 2>conftest.er1
6814  ac_status=$?
6815  grep -v '^ *+' conftest.er1 >conftest.err
6816  rm -f conftest.er1
6817  cat conftest.err >&5
6818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819  (exit $ac_status); } &&
6820	 { ac_try='test -z "$ac_c_werror_flag"
6821			 || test ! -s conftest.err'
6822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823  (eval $ac_try) 2>&5
6824  ac_status=$?
6825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826  (exit $ac_status); }; } &&
6827	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6833  ac_cv_lib_ICE_IceOpenConnection=yes
6834else
6835  echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
6837
6838ac_cv_lib_ICE_IceOpenConnection=no
6839fi
6840rm -f conftest.err conftest.$ac_objext \
6841      conftest$ac_exeext conftest.$ac_ext
6842LIBS=$ac_check_lib_save_LIBS
6843fi
6844echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6845echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6846if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
6847  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
6848fi
6849
6850
6851        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
6852    echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6853echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6854if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6855  echo $ECHO_N "(cached) $ECHO_C" >&6
6856else
6857  ac_check_lib_save_LIBS=$LIBS
6858LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
6859cat >conftest.$ac_ext <<_ACEOF
6860/* confdefs.h.  */
6861_ACEOF
6862cat confdefs.h >>conftest.$ac_ext
6863cat >>conftest.$ac_ext <<_ACEOF
6864/* end confdefs.h.  */
6865
6866/* Override any gcc2 internal prototype to avoid an error.  */
6867#ifdef __cplusplus
6868extern "C"
6869#endif
6870/* We use char because int might match the return type of a gcc2
6871   builtin and then its argument prototype would still apply.  */
6872char XpmCreatePixmapFromData ();
6873int
6874main ()
6875{
6876XpmCreatePixmapFromData ();
6877  ;
6878  return 0;
6879}
6880_ACEOF
6881rm -f conftest.$ac_objext conftest$ac_exeext
6882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883  (eval $ac_link) 2>conftest.er1
6884  ac_status=$?
6885  grep -v '^ *+' conftest.er1 >conftest.err
6886  rm -f conftest.er1
6887  cat conftest.err >&5
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); } &&
6890	 { ac_try='test -z "$ac_c_werror_flag"
6891			 || test ! -s conftest.err'
6892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893  (eval $ac_try) 2>&5
6894  ac_status=$?
6895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896  (exit $ac_status); }; } &&
6897	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6903  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
6904else
6905  echo "$as_me: failed program was:" >&5
6906sed 's/^/| /' conftest.$ac_ext >&5
6907
6908ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
6909fi
6910rm -f conftest.err conftest.$ac_objext \
6911      conftest$ac_exeext conftest.$ac_ext
6912LIBS=$ac_check_lib_save_LIBS
6913fi
6914echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6915echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6916if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
6917  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
6918fi
6919
6920
6921        echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6922echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
6923    cflags_save=$CFLAGS
6924    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
6925    cat >conftest.$ac_ext <<_ACEOF
6926/* confdefs.h.  */
6927_ACEOF
6928cat confdefs.h >>conftest.$ac_ext
6929cat >>conftest.$ac_ext <<_ACEOF
6930/* end confdefs.h.  */
6931#include <X11/Xlib.h>
6932int
6933main ()
6934{
6935
6936  ;
6937  return 0;
6938}
6939_ACEOF
6940rm -f conftest.$ac_objext
6941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6942  (eval $ac_compile) 2>conftest.er1
6943  ac_status=$?
6944  grep -v '^ *+' conftest.er1 >conftest.err
6945  rm -f conftest.er1
6946  cat conftest.err >&5
6947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948  (exit $ac_status); } &&
6949	 { ac_try='test -z "$ac_c_werror_flag"
6950			 || test ! -s conftest.err'
6951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952  (eval $ac_try) 2>&5
6953  ac_status=$?
6954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955  (exit $ac_status); }; } &&
6956	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6962  echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6
6964else
6965  echo "$as_me: failed program was:" >&5
6966sed 's/^/| /' conftest.$ac_ext >&5
6967
6968CFLAGS="$CFLAGS -Wno-implicit-int"
6969	cat >conftest.$ac_ext <<_ACEOF
6970/* confdefs.h.  */
6971_ACEOF
6972cat confdefs.h >>conftest.$ac_ext
6973cat >>conftest.$ac_ext <<_ACEOF
6974/* end confdefs.h.  */
6975#include <X11/Xlib.h>
6976int
6977main ()
6978{
6979
6980  ;
6981  return 0;
6982}
6983_ACEOF
6984rm -f conftest.$ac_objext
6985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986  (eval $ac_compile) 2>conftest.er1
6987  ac_status=$?
6988  grep -v '^ *+' conftest.er1 >conftest.err
6989  rm -f conftest.er1
6990  cat conftest.err >&5
6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); } &&
6993	 { ac_try='test -z "$ac_c_werror_flag"
6994			 || test ! -s conftest.err'
6995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996  (eval $ac_try) 2>&5
6997  ac_status=$?
6998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999  (exit $ac_status); }; } &&
7000	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7006  echo "$as_me:$LINENO: result: yes" >&5
7007echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
7008else
7009  echo "$as_me: failed program was:" >&5
7010sed 's/^/| /' conftest.$ac_ext >&5
7011
7012echo "$as_me:$LINENO: result: test failed" >&5
7013echo "${ECHO_T}test failed" >&6
7014
7015fi
7016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7017
7018fi
7019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7020    CFLAGS=$cflags_save
7021
7022    LDFLAGS="$ac_save_LDFLAGS"
7023
7024  fi
7025fi
7026
7027test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7028
7029echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7030echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
7031# Check whether --enable-gui or --disable-gui was given.
7032if test "${enable_gui+set}" = set; then
7033  enableval="$enable_gui"
7034
7035else
7036  enable_gui="auto"
7037fi;
7038
7039enable_gui_canon=`echo "_$enable_gui" | \
7040	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7041
7042SKIP_GTK=YES
7043SKIP_GTK2=YES
7044SKIP_GNOME=YES
7045SKIP_MOTIF=YES
7046SKIP_ATHENA=YES
7047SKIP_NEXTAW=YES
7048SKIP_PHOTON=YES
7049SKIP_CARBON=YES
7050GUITYPE=NONE
7051
7052if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7053  SKIP_PHOTON=
7054  case "$enable_gui_canon" in
7055    no)		echo "$as_me:$LINENO: result: no GUI support" >&5
7056echo "${ECHO_T}no GUI support" >&6
7057		SKIP_PHOTON=YES ;;
7058    yes|"")	echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7059echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7060    auto)	echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7061echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7062    photon)	echo "$as_me:$LINENO: result: Photon GUI support" >&5
7063echo "${ECHO_T}Photon GUI support" >&6 ;;
7064    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7065echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7066		SKIP_PHOTON=YES ;;
7067  esac
7068
7069elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7070  SKIP_CARBON=
7071  case "$enable_gui_canon" in
7072    no)		echo "$as_me:$LINENO: result: no GUI support" >&5
7073echo "${ECHO_T}no GUI support" >&6
7074		SKIP_CARBON=YES ;;
7075    yes|"")	echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7076echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7077    auto)	echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7078echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7079    carbon)	echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7080echo "${ECHO_T}Carbon GUI support" >&6 ;;
7081    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7082echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7083		SKIP_CARBON=YES ;;
7084  esac
7085
7086else
7087
7088  case "$enable_gui_canon" in
7089    no|none)	echo "$as_me:$LINENO: result: no GUI support" >&5
7090echo "${ECHO_T}no GUI support" >&6 ;;
7091    yes|""|auto)	echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7092echo "${ECHO_T}yes/auto - automatic GUI support" >&6
7093		SKIP_GTK=
7094		SKIP_GTK2=
7095		SKIP_GNOME=
7096		SKIP_MOTIF=
7097		SKIP_ATHENA=
7098		SKIP_NEXTAW=
7099		SKIP_CARBON=;;
7100    gtk)	echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7101echo "${ECHO_T}GTK+ 1.x GUI support" >&6
7102		SKIP_GTK=;;
7103    gtk2)	echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7104echo "${ECHO_T}GTK+ 2.x GUI support" >&6
7105		SKIP_GTK=
7106		SKIP_GTK2=;;
7107    gnome)	echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7108echo "${ECHO_T}GNOME 1.x GUI support" >&6
7109		SKIP_GNOME=
7110		SKIP_GTK=;;
7111    gnome2)	echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7112echo "${ECHO_T}GNOME 2.x GUI support" >&6
7113		SKIP_GNOME=
7114		SKIP_GTK=
7115		SKIP_GTK2=;;
7116    motif)	echo "$as_me:$LINENO: result: Motif GUI support" >&5
7117echo "${ECHO_T}Motif GUI support" >&6
7118		SKIP_MOTIF=;;
7119    athena)	echo "$as_me:$LINENO: result: Athena GUI support" >&5
7120echo "${ECHO_T}Athena GUI support" >&6
7121		SKIP_ATHENA=;;
7122    nextaw)	echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7123echo "${ECHO_T}neXtaw GUI support" >&6
7124		SKIP_NEXTAW=;;
7125    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7126echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
7127  esac
7128
7129fi
7130
7131if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
7132  echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7133echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
7134  # Check whether --enable-gtk-check or --disable-gtk-check was given.
7135if test "${enable_gtk_check+set}" = set; then
7136  enableval="$enable_gtk_check"
7137
7138else
7139  enable_gtk_check="yes"
7140fi;
7141  echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7142echo "${ECHO_T}$enable_gtk_check" >&6
7143  if test "x$enable_gtk_check" = "xno"; then
7144    SKIP_GTK=YES
7145    SKIP_GNOME=YES
7146  fi
7147fi
7148
7149if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7150				-a "$enable_gui_canon" != "gnome2"; then
7151  echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7152echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
7153  # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7154if test "${enable_gtk2_check+set}" = set; then
7155  enableval="$enable_gtk2_check"
7156
7157else
7158  enable_gtk2_check="yes"
7159fi;
7160  echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7161echo "${ECHO_T}$enable_gtk2_check" >&6
7162  if test "x$enable_gtk2_check" = "xno"; then
7163    SKIP_GTK2=YES
7164  fi
7165fi
7166
7167if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7168				 -a "$enable_gui_canon" != "gnome2"; then
7169  echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7170echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
7171  # Check whether --enable-gnome-check or --disable-gnome-check was given.
7172if test "${enable_gnome_check+set}" = set; then
7173  enableval="$enable_gnome_check"
7174
7175else
7176  enable_gnome_check="no"
7177fi;
7178  echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7179echo "${ECHO_T}$enable_gnome_check" >&6
7180  if test "x$enable_gnome_check" = "xno"; then
7181    SKIP_GNOME=YES
7182  fi
7183fi
7184
7185if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
7186  echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7187echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
7188  # Check whether --enable-motif-check or --disable-motif-check was given.
7189if test "${enable_motif_check+set}" = set; then
7190  enableval="$enable_motif_check"
7191
7192else
7193  enable_motif_check="yes"
7194fi;
7195  echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7196echo "${ECHO_T}$enable_motif_check" >&6
7197  if test "x$enable_motif_check" = "xno"; then
7198    SKIP_MOTIF=YES
7199  fi
7200fi
7201
7202if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
7203  echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7204echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
7205  # Check whether --enable-athena-check or --disable-athena-check was given.
7206if test "${enable_athena_check+set}" = set; then
7207  enableval="$enable_athena_check"
7208
7209else
7210  enable_athena_check="yes"
7211fi;
7212  echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7213echo "${ECHO_T}$enable_athena_check" >&6
7214  if test "x$enable_athena_check" = "xno"; then
7215    SKIP_ATHENA=YES
7216  fi
7217fi
7218
7219if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
7220  echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7221echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
7222  # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7223if test "${enable_nextaw_check+set}" = set; then
7224  enableval="$enable_nextaw_check"
7225
7226else
7227  enable_nextaw_check="yes"
7228fi;
7229  echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7230echo "${ECHO_T}$enable_nextaw_check" >&6;
7231  if test "x$enable_nextaw_check" = "xno"; then
7232    SKIP_NEXTAW=YES
7233  fi
7234fi
7235
7236if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
7237  echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7238echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
7239  # Check whether --enable-carbon-check or --disable-carbon-check was given.
7240if test "${enable_carbon_check+set}" = set; then
7241  enableval="$enable_carbon_check"
7242
7243else
7244  enable_carbon_check="yes"
7245fi;
7246  echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7247echo "${ECHO_T}$enable_carbon_check" >&6;
7248  if test "x$enable_carbon_check" = "xno"; then
7249    SKIP_CARBON=YES
7250  fi
7251fi
7252
7253
7254if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
7255  echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7256echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7257    echo "$as_me:$LINENO: result: yes" >&5
7258echo "${ECHO_T}yes" >&6;
7259  GUITYPE=CARBONGUI
7260  if test "$VIMNAME" = "vim"; then
7261    VIMNAME=Vim
7262  fi
7263
7264    if test x$prefix = xNONE; then
7265    prefix=/Applications
7266  fi
7267
7268    datadir='${prefix}/Vim.app/Contents/Resources'
7269
7270    SKIP_GTK=YES;
7271  SKIP_GTK2=YES;
7272  SKIP_GNOME=YES;
7273  SKIP_MOTIF=YES;
7274  SKIP_ATHENA=YES;
7275  SKIP_NEXTAW=YES;
7276  SKIP_PHOTON=YES;
7277  SKIP_CARBON=YES
7278fi
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288if test -z "$SKIP_GTK"; then
7289
7290  echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7291echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7292
7293# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7294if test "${with_gtk_prefix+set}" = set; then
7295  withval="$with_gtk_prefix"
7296  gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7297echo "${ECHO_T}$gtk_config_prefix" >&6
7298else
7299  gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6
7301fi;
7302
7303  echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7304echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
7305
7306# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7307if test "${with_gtk_exec_prefix+set}" = set; then
7308  withval="$with_gtk_exec_prefix"
7309  gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7310echo "${ECHO_T}$gtk_config_prefix" >&6
7311else
7312  gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6
7314fi;
7315
7316  echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7317echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
7318  # Check whether --enable-gtktest or --disable-gtktest was given.
7319if test "${enable_gtktest+set}" = set; then
7320  enableval="$enable_gtktest"
7321
7322else
7323  enable_gtktest=yes
7324fi;
7325  if test "x$enable_gtktest" = "xyes" ; then
7326    echo "$as_me:$LINENO: result: gtk test enabled" >&5
7327echo "${ECHO_T}gtk test enabled" >&6
7328  else
7329    echo "$as_me:$LINENO: result: gtk test disabled" >&5
7330echo "${ECHO_T}gtk test disabled" >&6
7331  fi
7332
7333  if test "x$gtk_config_prefix" != "x" ; then
7334    gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7335    GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7336  fi
7337  if test "x$gtk_config_exec_prefix" != "x" ; then
7338    gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7339    GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7340  fi
7341  if test "X$GTK_CONFIG" = "X"; then
7342    # Extract the first word of "gtk-config", so it can be a program name with args.
7343set dummy gtk-config; ac_word=$2
7344echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7347  echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349  case $GTK_CONFIG in
7350  [\\/]* | ?:[\\/]*)
7351  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7352  ;;
7353  *)
7354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357  IFS=$as_save_IFS
7358  test -z "$as_dir" && as_dir=.
7359  for ac_exec_ext in '' $ac_executable_extensions; do
7360  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363    break 2
7364  fi
7365done
7366done
7367
7368  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7369  ;;
7370esac
7371fi
7372GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7373
7374if test -n "$GTK_CONFIG"; then
7375  echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7376echo "${ECHO_T}$GTK_CONFIG" >&6
7377else
7378  echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6
7380fi
7381
7382    if test "X$GTK_CONFIG" = "Xno"; then
7383            # Extract the first word of "gtk12-config", so it can be a program name with args.
7384set dummy gtk12-config; ac_word=$2
7385echo "$as_me:$LINENO: checking for $ac_word" >&5
7386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7387if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7388  echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390  case $GTK12_CONFIG in
7391  [\\/]* | ?:[\\/]*)
7392  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7393  ;;
7394  *)
7395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398  IFS=$as_save_IFS
7399  test -z "$as_dir" && as_dir=.
7400  for ac_exec_ext in '' $ac_executable_extensions; do
7401  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402    ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404    break 2
7405  fi
7406done
7407done
7408
7409  test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7410  ;;
7411esac
7412fi
7413GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7414
7415if test -n "$GTK12_CONFIG"; then
7416  echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7417echo "${ECHO_T}$GTK12_CONFIG" >&6
7418else
7419  echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
7421fi
7422
7423      GTK_CONFIG="$GTK12_CONFIG"
7424    fi
7425  else
7426    echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7427echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
7428  fi
7429  if test "X$PKG_CONFIG" = "X"; then
7430    # Extract the first word of "pkg-config", so it can be a program name with args.
7431set dummy pkg-config; ac_word=$2
7432echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7434if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7435  echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437  case $PKG_CONFIG in
7438  [\\/]* | ?:[\\/]*)
7439  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7440  ;;
7441  *)
7442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445  IFS=$as_save_IFS
7446  test -z "$as_dir" && as_dir=.
7447  for ac_exec_ext in '' $ac_executable_extensions; do
7448  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7450    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451    break 2
7452  fi
7453done
7454done
7455
7456  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7457  ;;
7458esac
7459fi
7460PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7461
7462if test -n "$PKG_CONFIG"; then
7463  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7464echo "${ECHO_T}$PKG_CONFIG" >&6
7465else
7466  echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
7468fi
7469
7470  fi
7471
7472  if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7473            if test "X$SKIP_GTK2" != "XYES"; then
7474
7475  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7476  {
7477    min_gtk_version=2.2.0
7478    echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7479echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7480    no_gtk=""
7481    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7482	  && $PKG_CONFIG --exists gtk+-2.0; then
7483    {
7484                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7485      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7486      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7487      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7488	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7489      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7490	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7491      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7492	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7493    }
7494    elif test "X$GTK_CONFIG" != "Xno"; then
7495    {
7496      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7497      GTK_LIBDIR=
7498      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7499      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7500	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7501      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7502	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7503      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7504	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7505    }
7506    else
7507      no_gtk=yes
7508    fi
7509
7510    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7511    {
7512      ac_save_CFLAGS="$CFLAGS"
7513      ac_save_LIBS="$LIBS"
7514      CFLAGS="$CFLAGS $GTK_CFLAGS"
7515      LIBS="$LIBS $GTK_LIBS"
7516
7517                              rm -f conf.gtktest
7518      if test "$cross_compiling" = yes; then
7519  echo $ac_n "cross compiling; assumed OK... $ac_c"
7520else
7521  cat >conftest.$ac_ext <<_ACEOF
7522/* confdefs.h.  */
7523_ACEOF
7524cat confdefs.h >>conftest.$ac_ext
7525cat >>conftest.$ac_ext <<_ACEOF
7526/* end confdefs.h.  */
7527
7528#include <gtk/gtk.h>
7529#include <stdio.h>
7530
7531int
7532main ()
7533{
7534int major, minor, micro;
7535char *tmp_version;
7536
7537system ("touch conf.gtktest");
7538
7539/* HP/UX 9 (%@#!) writes to sscanf strings */
7540tmp_version = g_strdup("$min_gtk_version");
7541if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7542   printf("%s, bad version string\n", "$min_gtk_version");
7543   exit(1);
7544 }
7545
7546if ((gtk_major_version > major) ||
7547    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7548    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7549				     (gtk_micro_version >= micro)))
7550{
7551    return 0;
7552}
7553return 1;
7554}
7555
7556_ACEOF
7557rm -f conftest$ac_exeext
7558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559  (eval $ac_link) 2>&5
7560  ac_status=$?
7561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564  (eval $ac_try) 2>&5
7565  ac_status=$?
7566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567  (exit $ac_status); }; }; then
7568  :
7569else
7570  echo "$as_me: program exited with status $ac_status" >&5
7571echo "$as_me: failed program was:" >&5
7572sed 's/^/| /' conftest.$ac_ext >&5
7573
7574( exit $ac_status )
7575no_gtk=yes
7576fi
7577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7578fi
7579      CFLAGS="$ac_save_CFLAGS"
7580      LIBS="$ac_save_LIBS"
7581    }
7582    fi
7583    if test "x$no_gtk" = x ; then
7584      if test "x$enable_gtktest" = "xyes"; then
7585	echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7586echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7587      else
7588	echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7589echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7590      fi
7591      GUI_LIB_LOC="$GTK_LIBDIR"
7592		   GTK_LIBNAME="$GTK_LIBS"
7593		  GUI_INC_LOC="$GTK_CFLAGS"
7594    else
7595    {
7596      echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6
7598      GTK_CFLAGS=""
7599      GTK_LIBS=""
7600      :
7601    }
7602    fi
7603  }
7604  else
7605    GTK_CFLAGS=""
7606    GTK_LIBS=""
7607    :
7608  fi
7609
7610
7611  rm -f conf.gtktest
7612
7613      if test "x$GTK_CFLAGS" != "x"; then
7614	SKIP_ATHENA=YES
7615	SKIP_NEXTAW=YES
7616	SKIP_MOTIF=YES
7617	GUITYPE=GTK
7618
7619      fi
7620    fi
7621
7622                if test "x$GUITYPE" != "xGTK"; then
7623      SKIP_GTK2=YES
7624
7625  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7626  {
7627    min_gtk_version=1.1.16
7628    echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7629echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7630    no_gtk=""
7631    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7632	  && $PKG_CONFIG --exists gtk+-2.0; then
7633    {
7634                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7635      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7636      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7637      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7638	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7639      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7640	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7641      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7642	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7643    }
7644    elif test "X$GTK_CONFIG" != "Xno"; then
7645    {
7646      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7647      GTK_LIBDIR=
7648      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7649      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7650	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7651      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7652	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7653      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7654	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7655    }
7656    else
7657      no_gtk=yes
7658    fi
7659
7660    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7661    {
7662      ac_save_CFLAGS="$CFLAGS"
7663      ac_save_LIBS="$LIBS"
7664      CFLAGS="$CFLAGS $GTK_CFLAGS"
7665      LIBS="$LIBS $GTK_LIBS"
7666
7667                              rm -f conf.gtktest
7668      if test "$cross_compiling" = yes; then
7669  echo $ac_n "cross compiling; assumed OK... $ac_c"
7670else
7671  cat >conftest.$ac_ext <<_ACEOF
7672/* confdefs.h.  */
7673_ACEOF
7674cat confdefs.h >>conftest.$ac_ext
7675cat >>conftest.$ac_ext <<_ACEOF
7676/* end confdefs.h.  */
7677
7678#include <gtk/gtk.h>
7679#include <stdio.h>
7680
7681int
7682main ()
7683{
7684int major, minor, micro;
7685char *tmp_version;
7686
7687system ("touch conf.gtktest");
7688
7689/* HP/UX 9 (%@#!) writes to sscanf strings */
7690tmp_version = g_strdup("$min_gtk_version");
7691if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7692   printf("%s, bad version string\n", "$min_gtk_version");
7693   exit(1);
7694 }
7695
7696if ((gtk_major_version > major) ||
7697    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7698    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7699				     (gtk_micro_version >= micro)))
7700{
7701    return 0;
7702}
7703return 1;
7704}
7705
7706_ACEOF
7707rm -f conftest$ac_exeext
7708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709  (eval $ac_link) 2>&5
7710  ac_status=$?
7711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714  (eval $ac_try) 2>&5
7715  ac_status=$?
7716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717  (exit $ac_status); }; }; then
7718  :
7719else
7720  echo "$as_me: program exited with status $ac_status" >&5
7721echo "$as_me: failed program was:" >&5
7722sed 's/^/| /' conftest.$ac_ext >&5
7723
7724( exit $ac_status )
7725no_gtk=yes
7726fi
7727rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7728fi
7729      CFLAGS="$ac_save_CFLAGS"
7730      LIBS="$ac_save_LIBS"
7731    }
7732    fi
7733    if test "x$no_gtk" = x ; then
7734      if test "x$enable_gtktest" = "xyes"; then
7735	echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7736echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7737      else
7738	echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7739echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7740      fi
7741      GTK_LIBNAME="$GTK_LIBS"
7742		  GUI_INC_LOC="$GTK_CFLAGS"
7743    else
7744    {
7745      echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
7747      GTK_CFLAGS=""
7748      GTK_LIBS=""
7749      :
7750    }
7751    fi
7752  }
7753  else
7754    GTK_CFLAGS=""
7755    GTK_LIBS=""
7756    :
7757  fi
7758
7759
7760  rm -f conf.gtktest
7761
7762      if test "x$GTK_CFLAGS" != "x"; then
7763	SKIP_ATHENA=YES
7764	SKIP_NEXTAW=YES
7765	SKIP_MOTIF=YES
7766	GUITYPE=GTK
7767
7768      fi
7769    fi
7770  fi
7771    if test "x$GUITYPE" = "xGTK"; then
7772    if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7773	 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
7774      echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7775echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
7776    else
7777    {
7778      if test "0$gtk_major_version" -ge 2; then
7779	cat >>confdefs.h <<\_ACEOF
7780#define HAVE_GTK2 1
7781_ACEOF
7782
7783	if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7784		|| test "0$gtk_minor_version" -ge 2 \
7785		|| test "0$gtk_major_version" -gt 2; then
7786	  cat >>confdefs.h <<\_ACEOF
7787#define HAVE_GTK_MULTIHEAD 1
7788_ACEOF
7789
7790	fi
7791      fi
7792                        if test -z "$SKIP_GNOME"; then
7793      {
7794
7795
7796
7797
7798
7799
7800# Check whether --with-gnome-includes or --without-gnome-includes was given.
7801if test "${with_gnome_includes+set}" = set; then
7802  withval="$with_gnome_includes"
7803  CFLAGS="$CFLAGS -I$withval"
7804
7805fi;
7806
7807
7808# Check whether --with-gnome-libs or --without-gnome-libs was given.
7809if test "${with_gnome_libs+set}" = set; then
7810  withval="$with_gnome_libs"
7811  LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
7812
7813fi;
7814
7815
7816# Check whether --with-gnome or --without-gnome was given.
7817if test "${with_gnome+set}" = set; then
7818  withval="$with_gnome"
7819  if test x$withval = xyes; then
7820      want_gnome=yes
7821      have_gnome=yes
7822    else
7823      if test "x$withval" = xno; then
7824	want_gnome=no
7825      else
7826	want_gnome=yes
7827	LDFLAGS="$LDFLAGS -L$withval/lib"
7828	CFLAGS="$CFLAGS -I$withval/include"
7829	gnome_prefix=$withval/lib
7830      fi
7831    fi
7832else
7833  want_gnome=yes
7834fi;
7835
7836  if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7837  {
7838    echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7839echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
7840    if $PKG_CONFIG --exists libgnomeui-2.0; then
7841      echo "$as_me:$LINENO: result: yes" >&5
7842echo "${ECHO_T}yes" >&6
7843      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7844      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7845      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
7846
7847                  echo "$as_me:$LINENO: checking for FreeBSD" >&5
7848echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7849      if test "`(uname) 2>/dev/null`" = FreeBSD; then
7850	echo "$as_me:$LINENO: result: yes" >&5
7851echo "${ECHO_T}yes" >&6
7852	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
7853	GNOME_LIBS="$GNOME_LIBS -pthread"
7854      else
7855	echo "$as_me:$LINENO: result: no" >&5
7856echo "${ECHO_T}no" >&6
7857      fi
7858      have_gnome=yes
7859    else
7860      echo "$as_me:$LINENO: result: not found" >&5
7861echo "${ECHO_T}not found" >&6
7862      if test "x" = xfail; then
7863	{ { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7864echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7865   { (exit 1); exit 1; }; }
7866      fi
7867    fi
7868  }
7869  elif test "x$want_gnome" = xyes; then
7870  {
7871    # Extract the first word of "gnome-config", so it can be a program name with args.
7872set dummy gnome-config; ac_word=$2
7873echo "$as_me:$LINENO: checking for $ac_word" >&5
7874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7876  echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878  case $GNOME_CONFIG in
7879  [\\/]* | ?:[\\/]*)
7880  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7881  ;;
7882  *)
7883  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886  IFS=$as_save_IFS
7887  test -z "$as_dir" && as_dir=.
7888  for ac_exec_ext in '' $ac_executable_extensions; do
7889  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890    ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892    break 2
7893  fi
7894done
7895done
7896
7897  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7898  ;;
7899esac
7900fi
7901GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7902
7903if test -n "$GNOME_CONFIG"; then
7904  echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7905echo "${ECHO_T}$GNOME_CONFIG" >&6
7906else
7907  echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
7909fi
7910
7911    if test "$GNOME_CONFIG" = "no"; then
7912      no_gnome_config="yes"
7913    else
7914      echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7915echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
7916      if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
7917	echo "$as_me:$LINENO: result: yes" >&5
7918echo "${ECHO_T}yes" >&6
7919	GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7920	GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7921	GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7922	have_gnome=yes
7923      else
7924	echo "$as_me:$LINENO: result: no" >&5
7925echo "${ECHO_T}no" >&6
7926	no_gnome_config="yes"
7927      fi
7928    fi
7929
7930    if test x$exec_prefix = xNONE; then
7931      if test x$prefix = xNONE; then
7932	gnome_prefix=$ac_default_prefix/lib
7933      else
7934	gnome_prefix=$prefix/lib
7935      fi
7936    else
7937      gnome_prefix=`eval echo \`echo $libdir\``
7938    fi
7939
7940    if test "$no_gnome_config" = "yes"; then
7941      echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7942echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
7943      if test -f $gnome_prefix/gnomeConf.sh; then
7944	echo "$as_me:$LINENO: result: found" >&5
7945echo "${ECHO_T}found" >&6
7946	echo "loading gnome configuration from" \
7947	  "$gnome_prefix/gnomeConf.sh"
7948	. $gnome_prefix/gnomeConf.sh
7949	have_gnome=yes
7950      else
7951	echo "$as_me:$LINENO: result: not found" >&5
7952echo "${ECHO_T}not found" >&6
7953	if test x = xfail; then
7954	  { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7955echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7956   { (exit 1); exit 1; }; }
7957	fi
7958      fi
7959    fi
7960  }
7961  fi
7962
7963	if test x$have_gnome = xyes ; then
7964	  cat >>confdefs.h <<\_ACEOF
7965#define FEAT_GUI_GNOME 1
7966_ACEOF
7967
7968	  GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7969	  GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7970	fi
7971      }
7972      fi
7973    }
7974    fi
7975  fi
7976fi
7977
7978
7979if test -z "$SKIP_MOTIF"; then
7980  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"
7981    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7982
7983  echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7984echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
7985  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7986  GUI_INC_LOC=
7987  for try in $gui_includes; do
7988    if test -f "$try/Xm/Xm.h"; then
7989      GUI_INC_LOC=$try
7990    fi
7991  done
7992  if test -n "$GUI_INC_LOC"; then
7993    if test "$GUI_INC_LOC" = /usr/include; then
7994      GUI_INC_LOC=
7995      echo "$as_me:$LINENO: result: in default path" >&5
7996echo "${ECHO_T}in default path" >&6
7997    else
7998      echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
7999echo "${ECHO_T}$GUI_INC_LOC" >&6
8000    fi
8001  else
8002    echo "$as_me:$LINENO: result: <not found>" >&5
8003echo "${ECHO_T}<not found>" >&6
8004    SKIP_MOTIF=YES
8005  fi
8006fi
8007
8008
8009if test -z "$SKIP_MOTIF"; then
8010  echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8011echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8012
8013# Check whether --with-motif-lib or --without-motif-lib was given.
8014if test "${with_motif_lib+set}" = set; then
8015  withval="$with_motif_lib"
8016   MOTIF_LIBNAME="${withval}"
8017fi;
8018
8019  if test -n "$MOTIF_LIBNAME"; then
8020    echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8021echo "${ECHO_T}$MOTIF_LIBNAME" >&6
8022    GUI_LIB_LOC=
8023  else
8024    echo "$as_me:$LINENO: result: no" >&5
8025echo "${ECHO_T}no" >&6
8026
8027        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8028
8029    echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8030echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
8031    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"
8032    GUI_LIB_LOC=
8033    for try in $gui_libs; do
8034      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
8035	if test -f "$libtry"; then
8036	  GUI_LIB_LOC=$try
8037	fi
8038      done
8039    done
8040    if test -n "$GUI_LIB_LOC"; then
8041            if test "$GUI_LIB_LOC" = /usr/lib; then
8042	GUI_LIB_LOC=
8043	echo "$as_me:$LINENO: result: in default path" >&5
8044echo "${ECHO_T}in default path" >&6
8045      else
8046	if test -n "$GUI_LIB_LOC"; then
8047	  echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8048echo "${ECHO_T}$GUI_LIB_LOC" >&6
8049	  if test "`(uname) 2>/dev/null`" = SunOS &&
8050					 uname -r | grep '^5' >/dev/null; then
8051	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8052	  fi
8053	fi
8054      fi
8055      MOTIF_LIBNAME=-lXm
8056    else
8057      echo "$as_me:$LINENO: result: <not found>" >&5
8058echo "${ECHO_T}<not found>" >&6
8059      SKIP_MOTIF=YES
8060    fi
8061  fi
8062fi
8063
8064if test -z "$SKIP_MOTIF"; then
8065  SKIP_ATHENA=YES
8066  SKIP_NEXTAW=YES
8067  GUITYPE=MOTIF
8068
8069fi
8070
8071
8072GUI_X_LIBS=
8073
8074if test -z "$SKIP_ATHENA"; then
8075  echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8076echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
8077  cflags_save=$CFLAGS
8078  CFLAGS="$CFLAGS $X_CFLAGS"
8079  cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h.  */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h.  */
8085
8086#include <X11/Intrinsic.h>
8087#include <X11/Xaw/Paned.h>
8088int
8089main ()
8090{
8091
8092  ;
8093  return 0;
8094}
8095_ACEOF
8096rm -f conftest.$ac_objext
8097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8098  (eval $ac_compile) 2>conftest.er1
8099  ac_status=$?
8100  grep -v '^ *+' conftest.er1 >conftest.err
8101  rm -f conftest.er1
8102  cat conftest.err >&5
8103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104  (exit $ac_status); } &&
8105	 { ac_try='test -z "$ac_c_werror_flag"
8106			 || test ! -s conftest.err'
8107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108  (eval $ac_try) 2>&5
8109  ac_status=$?
8110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111  (exit $ac_status); }; } &&
8112	 { ac_try='test -s conftest.$ac_objext'
8113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114  (eval $ac_try) 2>&5
8115  ac_status=$?
8116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117  (exit $ac_status); }; }; then
8118  echo "$as_me:$LINENO: result: yes" >&5
8119echo "${ECHO_T}yes" >&6
8120else
8121  echo "$as_me: failed program was:" >&5
8122sed 's/^/| /' conftest.$ac_ext >&5
8123
8124echo "$as_me:$LINENO: result: no" >&5
8125echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
8126fi
8127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128  CFLAGS=$cflags_save
8129fi
8130
8131if test -z "$SKIP_ATHENA"; then
8132  GUITYPE=ATHENA
8133fi
8134
8135if test -z "$SKIP_NEXTAW"; then
8136  echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8137echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
8138  cflags_save=$CFLAGS
8139  CFLAGS="$CFLAGS $X_CFLAGS"
8140  cat >conftest.$ac_ext <<_ACEOF
8141/* confdefs.h.  */
8142_ACEOF
8143cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h.  */
8146
8147#include <X11/Intrinsic.h>
8148#include <X11/neXtaw/Paned.h>
8149int
8150main ()
8151{
8152
8153  ;
8154  return 0;
8155}
8156_ACEOF
8157rm -f conftest.$ac_objext
8158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8159  (eval $ac_compile) 2>conftest.er1
8160  ac_status=$?
8161  grep -v '^ *+' conftest.er1 >conftest.err
8162  rm -f conftest.er1
8163  cat conftest.err >&5
8164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165  (exit $ac_status); } &&
8166	 { ac_try='test -z "$ac_c_werror_flag"
8167			 || test ! -s conftest.err'
8168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169  (eval $ac_try) 2>&5
8170  ac_status=$?
8171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172  (exit $ac_status); }; } &&
8173	 { ac_try='test -s conftest.$ac_objext'
8174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175  (eval $ac_try) 2>&5
8176  ac_status=$?
8177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178  (exit $ac_status); }; }; then
8179  echo "$as_me:$LINENO: result: yes" >&5
8180echo "${ECHO_T}yes" >&6
8181else
8182  echo "$as_me: failed program was:" >&5
8183sed 's/^/| /' conftest.$ac_ext >&5
8184
8185echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
8187fi
8188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8189  CFLAGS=$cflags_save
8190fi
8191
8192if test -z "$SKIP_NEXTAW"; then
8193  GUITYPE=NEXTAW
8194fi
8195
8196if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8197      if test -n "$GUI_INC_LOC"; then
8198    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8199  fi
8200  if test -n "$GUI_LIB_LOC"; then
8201    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8202  fi
8203
8204    ldflags_save=$LDFLAGS
8205  LDFLAGS="$X_LIBS $LDFLAGS"
8206  echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8207echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8208if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8209  echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
8211  ac_check_lib_save_LIBS=$LIBS
8212LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8213cat >conftest.$ac_ext <<_ACEOF
8214/* confdefs.h.  */
8215_ACEOF
8216cat confdefs.h >>conftest.$ac_ext
8217cat >>conftest.$ac_ext <<_ACEOF
8218/* end confdefs.h.  */
8219
8220/* Override any gcc2 internal prototype to avoid an error.  */
8221#ifdef __cplusplus
8222extern "C"
8223#endif
8224/* We use char because int might match the return type of a gcc2
8225   builtin and then its argument prototype would still apply.  */
8226char XShapeQueryExtension ();
8227int
8228main ()
8229{
8230XShapeQueryExtension ();
8231  ;
8232  return 0;
8233}
8234_ACEOF
8235rm -f conftest.$ac_objext conftest$ac_exeext
8236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8237  (eval $ac_link) 2>conftest.er1
8238  ac_status=$?
8239  grep -v '^ *+' conftest.er1 >conftest.err
8240  rm -f conftest.er1
8241  cat conftest.err >&5
8242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243  (exit $ac_status); } &&
8244	 { ac_try='test -z "$ac_c_werror_flag"
8245			 || test ! -s conftest.err'
8246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247  (eval $ac_try) 2>&5
8248  ac_status=$?
8249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250  (exit $ac_status); }; } &&
8251	 { ac_try='test -s conftest$ac_exeext'
8252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253  (eval $ac_try) 2>&5
8254  ac_status=$?
8255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256  (exit $ac_status); }; }; then
8257  ac_cv_lib_Xext_XShapeQueryExtension=yes
8258else
8259  echo "$as_me: failed program was:" >&5
8260sed 's/^/| /' conftest.$ac_ext >&5
8261
8262ac_cv_lib_Xext_XShapeQueryExtension=no
8263fi
8264rm -f conftest.err conftest.$ac_objext \
8265      conftest$ac_exeext conftest.$ac_ext
8266LIBS=$ac_check_lib_save_LIBS
8267fi
8268echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8269echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8270if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8271  GUI_X_LIBS="-lXext"
8272fi
8273
8274    echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8275echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8276if test "${ac_cv_lib_w_wslen+set}" = set; then
8277  echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279  ac_check_lib_save_LIBS=$LIBS
8280LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8281cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h.  */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h.  */
8287
8288/* Override any gcc2 internal prototype to avoid an error.  */
8289#ifdef __cplusplus
8290extern "C"
8291#endif
8292/* We use char because int might match the return type of a gcc2
8293   builtin and then its argument prototype would still apply.  */
8294char wslen ();
8295int
8296main ()
8297{
8298wslen ();
8299  ;
8300  return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext conftest$ac_exeext
8304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305  (eval $ac_link) 2>conftest.er1
8306  ac_status=$?
8307  grep -v '^ *+' conftest.er1 >conftest.err
8308  rm -f conftest.er1
8309  cat conftest.err >&5
8310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311  (exit $ac_status); } &&
8312	 { ac_try='test -z "$ac_c_werror_flag"
8313			 || test ! -s conftest.err'
8314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315  (eval $ac_try) 2>&5
8316  ac_status=$?
8317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318  (exit $ac_status); }; } &&
8319	 { ac_try='test -s conftest$ac_exeext'
8320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321  (eval $ac_try) 2>&5
8322  ac_status=$?
8323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324  (exit $ac_status); }; }; then
8325  ac_cv_lib_w_wslen=yes
8326else
8327  echo "$as_me: failed program was:" >&5
8328sed 's/^/| /' conftest.$ac_ext >&5
8329
8330ac_cv_lib_w_wslen=no
8331fi
8332rm -f conftest.err conftest.$ac_objext \
8333      conftest$ac_exeext conftest.$ac_ext
8334LIBS=$ac_check_lib_save_LIBS
8335fi
8336echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8337echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8338if test $ac_cv_lib_w_wslen = yes; then
8339  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
8340fi
8341
8342  echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8343echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8344if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8345  echo $ECHO_N "(cached) $ECHO_C" >&6
8346else
8347  ac_check_lib_save_LIBS=$LIBS
8348LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8349cat >conftest.$ac_ext <<_ACEOF
8350/* confdefs.h.  */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
8354/* end confdefs.h.  */
8355
8356/* Override any gcc2 internal prototype to avoid an error.  */
8357#ifdef __cplusplus
8358extern "C"
8359#endif
8360/* We use char because int might match the return type of a gcc2
8361   builtin and then its argument prototype would still apply.  */
8362char dlsym ();
8363int
8364main ()
8365{
8366dlsym ();
8367  ;
8368  return 0;
8369}
8370_ACEOF
8371rm -f conftest.$ac_objext conftest$ac_exeext
8372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373  (eval $ac_link) 2>conftest.er1
8374  ac_status=$?
8375  grep -v '^ *+' conftest.er1 >conftest.err
8376  rm -f conftest.er1
8377  cat conftest.err >&5
8378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379  (exit $ac_status); } &&
8380	 { ac_try='test -z "$ac_c_werror_flag"
8381			 || test ! -s conftest.err'
8382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383  (eval $ac_try) 2>&5
8384  ac_status=$?
8385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386  (exit $ac_status); }; } &&
8387	 { ac_try='test -s conftest$ac_exeext'
8388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389  (eval $ac_try) 2>&5
8390  ac_status=$?
8391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392  (exit $ac_status); }; }; then
8393  ac_cv_lib_dl_dlsym=yes
8394else
8395  echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397
8398ac_cv_lib_dl_dlsym=no
8399fi
8400rm -f conftest.err conftest.$ac_objext \
8401      conftest$ac_exeext conftest.$ac_ext
8402LIBS=$ac_check_lib_save_LIBS
8403fi
8404echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8405echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8406if test $ac_cv_lib_dl_dlsym = yes; then
8407  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
8408fi
8409
8410  echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8411echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8412if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8413  echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415  ac_check_lib_save_LIBS=$LIBS
8416LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8417cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h.  */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h.  */
8423
8424/* Override any gcc2 internal prototype to avoid an error.  */
8425#ifdef __cplusplus
8426extern "C"
8427#endif
8428/* We use char because int might match the return type of a gcc2
8429   builtin and then its argument prototype would still apply.  */
8430char XmuCreateStippledPixmap ();
8431int
8432main ()
8433{
8434XmuCreateStippledPixmap ();
8435  ;
8436  return 0;
8437}
8438_ACEOF
8439rm -f conftest.$ac_objext conftest$ac_exeext
8440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441  (eval $ac_link) 2>conftest.er1
8442  ac_status=$?
8443  grep -v '^ *+' conftest.er1 >conftest.err
8444  rm -f conftest.er1
8445  cat conftest.err >&5
8446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447  (exit $ac_status); } &&
8448	 { ac_try='test -z "$ac_c_werror_flag"
8449			 || test ! -s conftest.err'
8450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451  (eval $ac_try) 2>&5
8452  ac_status=$?
8453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454  (exit $ac_status); }; } &&
8455	 { ac_try='test -s conftest$ac_exeext'
8456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457  (eval $ac_try) 2>&5
8458  ac_status=$?
8459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460  (exit $ac_status); }; }; then
8461  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
8462else
8463  echo "$as_me: failed program was:" >&5
8464sed 's/^/| /' conftest.$ac_ext >&5
8465
8466ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
8467fi
8468rm -f conftest.err conftest.$ac_objext \
8469      conftest$ac_exeext conftest.$ac_ext
8470LIBS=$ac_check_lib_save_LIBS
8471fi
8472echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8473echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8474if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
8475  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
8476fi
8477
8478  if test -z "$SKIP_MOTIF"; then
8479    echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8480echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8481if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8482  echo $ECHO_N "(cached) $ECHO_C" >&6
8483else
8484  ac_check_lib_save_LIBS=$LIBS
8485LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8486cat >conftest.$ac_ext <<_ACEOF
8487/* confdefs.h.  */
8488_ACEOF
8489cat confdefs.h >>conftest.$ac_ext
8490cat >>conftest.$ac_ext <<_ACEOF
8491/* end confdefs.h.  */
8492
8493/* Override any gcc2 internal prototype to avoid an error.  */
8494#ifdef __cplusplus
8495extern "C"
8496#endif
8497/* We use char because int might match the return type of a gcc2
8498   builtin and then its argument prototype would still apply.  */
8499char XpEndJob ();
8500int
8501main ()
8502{
8503XpEndJob ();
8504  ;
8505  return 0;
8506}
8507_ACEOF
8508rm -f conftest.$ac_objext conftest$ac_exeext
8509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8510  (eval $ac_link) 2>conftest.er1
8511  ac_status=$?
8512  grep -v '^ *+' conftest.er1 >conftest.err
8513  rm -f conftest.er1
8514  cat conftest.err >&5
8515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516  (exit $ac_status); } &&
8517	 { ac_try='test -z "$ac_c_werror_flag"
8518			 || test ! -s conftest.err'
8519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520  (eval $ac_try) 2>&5
8521  ac_status=$?
8522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523  (exit $ac_status); }; } &&
8524	 { ac_try='test -s conftest$ac_exeext'
8525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526  (eval $ac_try) 2>&5
8527  ac_status=$?
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); }; }; then
8530  ac_cv_lib_Xp_XpEndJob=yes
8531else
8532  echo "$as_me: failed program was:" >&5
8533sed 's/^/| /' conftest.$ac_ext >&5
8534
8535ac_cv_lib_Xp_XpEndJob=no
8536fi
8537rm -f conftest.err conftest.$ac_objext \
8538      conftest$ac_exeext conftest.$ac_ext
8539LIBS=$ac_check_lib_save_LIBS
8540fi
8541echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8542echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8543if test $ac_cv_lib_Xp_XpEndJob = yes; then
8544  GUI_X_LIBS="-lXp $GUI_X_LIBS"
8545fi
8546
8547  fi
8548  LDFLAGS=$ldflags_save
8549
8550    echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8551echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
8552  NARROW_PROTO=
8553  rm -fr conftestdir
8554  if mkdir conftestdir; then
8555    cd conftestdir
8556    cat > Imakefile <<'EOF'
8557acfindx:
8558	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8559EOF
8560    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8561      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8562    fi
8563    cd ..
8564    rm -fr conftestdir
8565  fi
8566  if test -z "$NARROW_PROTO"; then
8567    echo "$as_me:$LINENO: result: no" >&5
8568echo "${ECHO_T}no" >&6
8569  else
8570    echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8571echo "${ECHO_T}$NARROW_PROTO" >&6
8572  fi
8573
8574fi
8575
8576if test "$enable_xsmp" = "yes"; then
8577  cppflags_save=$CPPFLAGS
8578  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8579
8580for ac_header in X11/SM/SMlib.h
8581do
8582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8583if eval "test \"\${$as_ac_Header+set}\" = set"; then
8584  echo "$as_me:$LINENO: checking for $ac_header" >&5
8585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8586if eval "test \"\${$as_ac_Header+set}\" = set"; then
8587  echo $ECHO_N "(cached) $ECHO_C" >&6
8588fi
8589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8591else
8592  # Is the header compilable?
8593echo "$as_me:$LINENO: checking $ac_header usability" >&5
8594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8595cat >conftest.$ac_ext <<_ACEOF
8596/* confdefs.h.  */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
8600/* end confdefs.h.  */
8601$ac_includes_default
8602#include <$ac_header>
8603_ACEOF
8604rm -f conftest.$ac_objext
8605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606  (eval $ac_compile) 2>conftest.er1
8607  ac_status=$?
8608  grep -v '^ *+' conftest.er1 >conftest.err
8609  rm -f conftest.er1
8610  cat conftest.err >&5
8611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612  (exit $ac_status); } &&
8613	 { ac_try='test -z "$ac_c_werror_flag"
8614			 || test ! -s conftest.err'
8615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616  (eval $ac_try) 2>&5
8617  ac_status=$?
8618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619  (exit $ac_status); }; } &&
8620	 { ac_try='test -s conftest.$ac_objext'
8621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622  (eval $ac_try) 2>&5
8623  ac_status=$?
8624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625  (exit $ac_status); }; }; then
8626  ac_header_compiler=yes
8627else
8628  echo "$as_me: failed program was:" >&5
8629sed 's/^/| /' conftest.$ac_ext >&5
8630
8631ac_header_compiler=no
8632fi
8633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8635echo "${ECHO_T}$ac_header_compiler" >&6
8636
8637# Is the header present?
8638echo "$as_me:$LINENO: checking $ac_header presence" >&5
8639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8640cat >conftest.$ac_ext <<_ACEOF
8641/* confdefs.h.  */
8642_ACEOF
8643cat confdefs.h >>conftest.$ac_ext
8644cat >>conftest.$ac_ext <<_ACEOF
8645/* end confdefs.h.  */
8646#include <$ac_header>
8647_ACEOF
8648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8649  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8650  ac_status=$?
8651  grep -v '^ *+' conftest.er1 >conftest.err
8652  rm -f conftest.er1
8653  cat conftest.err >&5
8654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655  (exit $ac_status); } >/dev/null; then
8656  if test -s conftest.err; then
8657    ac_cpp_err=$ac_c_preproc_warn_flag
8658    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8659  else
8660    ac_cpp_err=
8661  fi
8662else
8663  ac_cpp_err=yes
8664fi
8665if test -z "$ac_cpp_err"; then
8666  ac_header_preproc=yes
8667else
8668  echo "$as_me: failed program was:" >&5
8669sed 's/^/| /' conftest.$ac_ext >&5
8670
8671  ac_header_preproc=no
8672fi
8673rm -f conftest.err conftest.$ac_ext
8674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8675echo "${ECHO_T}$ac_header_preproc" >&6
8676
8677# So?  What about this header?
8678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8679  yes:no: )
8680    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8682    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8684    ac_header_preproc=yes
8685    ;;
8686  no:yes:* )
8687    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8689    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8690echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8691    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8693    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8694echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8695    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8697    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8699    (
8700      cat <<\_ASBOX
8701## ------------------------------------------ ##
8702## Report this to the AC_PACKAGE_NAME lists.  ##
8703## ------------------------------------------ ##
8704_ASBOX
8705    ) |
8706      sed "s/^/$as_me: WARNING:     /" >&2
8707    ;;
8708esac
8709echo "$as_me:$LINENO: checking for $ac_header" >&5
8710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8711if eval "test \"\${$as_ac_Header+set}\" = set"; then
8712  echo $ECHO_N "(cached) $ECHO_C" >&6
8713else
8714  eval "$as_ac_Header=\$ac_header_preproc"
8715fi
8716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8718
8719fi
8720if test `eval echo '${'$as_ac_Header'}'` = yes; then
8721  cat >>confdefs.h <<_ACEOF
8722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8723_ACEOF
8724
8725fi
8726
8727done
8728
8729  CPPFLAGS=$cppflags_save
8730fi
8731
8732
8733if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8734    cppflags_save=$CPPFLAGS
8735  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8736
8737
8738for ac_header in X11/xpm.h X11/Sunkeysym.h
8739do
8740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8741if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742  echo "$as_me:$LINENO: checking for $ac_header" >&5
8743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8744if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745  echo $ECHO_N "(cached) $ECHO_C" >&6
8746fi
8747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8749else
8750  # Is the header compilable?
8751echo "$as_me:$LINENO: checking $ac_header usability" >&5
8752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8753cat >conftest.$ac_ext <<_ACEOF
8754/* confdefs.h.  */
8755_ACEOF
8756cat confdefs.h >>conftest.$ac_ext
8757cat >>conftest.$ac_ext <<_ACEOF
8758/* end confdefs.h.  */
8759$ac_includes_default
8760#include <$ac_header>
8761_ACEOF
8762rm -f conftest.$ac_objext
8763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764  (eval $ac_compile) 2>conftest.er1
8765  ac_status=$?
8766  grep -v '^ *+' conftest.er1 >conftest.err
8767  rm -f conftest.er1
8768  cat conftest.err >&5
8769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770  (exit $ac_status); } &&
8771	 { ac_try='test -z "$ac_c_werror_flag"
8772			 || test ! -s conftest.err'
8773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774  (eval $ac_try) 2>&5
8775  ac_status=$?
8776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777  (exit $ac_status); }; } &&
8778	 { ac_try='test -s conftest.$ac_objext'
8779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780  (eval $ac_try) 2>&5
8781  ac_status=$?
8782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783  (exit $ac_status); }; }; then
8784  ac_header_compiler=yes
8785else
8786  echo "$as_me: failed program was:" >&5
8787sed 's/^/| /' conftest.$ac_ext >&5
8788
8789ac_header_compiler=no
8790fi
8791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8792echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8793echo "${ECHO_T}$ac_header_compiler" >&6
8794
8795# Is the header present?
8796echo "$as_me:$LINENO: checking $ac_header presence" >&5
8797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8798cat >conftest.$ac_ext <<_ACEOF
8799/* confdefs.h.  */
8800_ACEOF
8801cat confdefs.h >>conftest.$ac_ext
8802cat >>conftest.$ac_ext <<_ACEOF
8803/* end confdefs.h.  */
8804#include <$ac_header>
8805_ACEOF
8806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8807  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8808  ac_status=$?
8809  grep -v '^ *+' conftest.er1 >conftest.err
8810  rm -f conftest.er1
8811  cat conftest.err >&5
8812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813  (exit $ac_status); } >/dev/null; then
8814  if test -s conftest.err; then
8815    ac_cpp_err=$ac_c_preproc_warn_flag
8816    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8817  else
8818    ac_cpp_err=
8819  fi
8820else
8821  ac_cpp_err=yes
8822fi
8823if test -z "$ac_cpp_err"; then
8824  ac_header_preproc=yes
8825else
8826  echo "$as_me: failed program was:" >&5
8827sed 's/^/| /' conftest.$ac_ext >&5
8828
8829  ac_header_preproc=no
8830fi
8831rm -f conftest.err conftest.$ac_ext
8832echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8833echo "${ECHO_T}$ac_header_preproc" >&6
8834
8835# So?  What about this header?
8836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8837  yes:no: )
8838    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8839echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8840    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8841echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8842    ac_header_preproc=yes
8843    ;;
8844  no:yes:* )
8845    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8846echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8847    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8848echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8849    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8850echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8851    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8852echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8853    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8854echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8855    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8856echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8857    (
8858      cat <<\_ASBOX
8859## ------------------------------------------ ##
8860## Report this to the AC_PACKAGE_NAME lists.  ##
8861## ------------------------------------------ ##
8862_ASBOX
8863    ) |
8864      sed "s/^/$as_me: WARNING:     /" >&2
8865    ;;
8866esac
8867echo "$as_me:$LINENO: checking for $ac_header" >&5
8868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8869if eval "test \"\${$as_ac_Header+set}\" = set"; then
8870  echo $ECHO_N "(cached) $ECHO_C" >&6
8871else
8872  eval "$as_ac_Header=\$ac_header_preproc"
8873fi
8874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8876
8877fi
8878if test `eval echo '${'$as_ac_Header'}'` = yes; then
8879  cat >>confdefs.h <<_ACEOF
8880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8881_ACEOF
8882
8883fi
8884
8885done
8886
8887
8888    if test ! "$enable_xim" = "no"; then
8889    echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8890echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8891    cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h.  */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h.  */
8897#include <X11/Xlib.h>
8898_ACEOF
8899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8900  $EGREP "XIMText" >/dev/null 2>&1; then
8901  echo "$as_me:$LINENO: result: yes" >&5
8902echo "${ECHO_T}yes" >&6
8903else
8904  echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8905echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
8906fi
8907rm -f conftest*
8908
8909  fi
8910  CPPFLAGS=$cppflags_save
8911
8912    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8913		-a "x$GUITYPE" != "xNONE" ; then
8914    echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8915echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
8916    enable_xim="yes"
8917  fi
8918fi
8919
8920if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8921  cppflags_save=$CPPFLAGS
8922  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8923  echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8924echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8925  cat >conftest.$ac_ext <<_ACEOF
8926/* confdefs.h.  */
8927_ACEOF
8928cat confdefs.h >>conftest.$ac_ext
8929cat >>conftest.$ac_ext <<_ACEOF
8930/* end confdefs.h.  */
8931
8932#include <X11/Intrinsic.h>
8933#include <X11/Xmu/Editres.h>
8934int
8935main ()
8936{
8937int i; i = 0;
8938  ;
8939  return 0;
8940}
8941_ACEOF
8942rm -f conftest.$ac_objext
8943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8944  (eval $ac_compile) 2>conftest.er1
8945  ac_status=$?
8946  grep -v '^ *+' conftest.er1 >conftest.err
8947  rm -f conftest.er1
8948  cat conftest.err >&5
8949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950  (exit $ac_status); } &&
8951	 { ac_try='test -z "$ac_c_werror_flag"
8952			 || test ! -s conftest.err'
8953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954  (eval $ac_try) 2>&5
8955  ac_status=$?
8956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957  (exit $ac_status); }; } &&
8958	 { ac_try='test -s conftest.$ac_objext'
8959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960  (eval $ac_try) 2>&5
8961  ac_status=$?
8962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963  (exit $ac_status); }; }; then
8964  echo "$as_me:$LINENO: result: yes" >&5
8965echo "${ECHO_T}yes" >&6
8966		      cat >>confdefs.h <<\_ACEOF
8967#define HAVE_X11_XMU_EDITRES_H 1
8968_ACEOF
8969
8970else
8971  echo "$as_me: failed program was:" >&5
8972sed 's/^/| /' conftest.$ac_ext >&5
8973
8974echo "$as_me:$LINENO: result: no" >&5
8975echo "${ECHO_T}no" >&6
8976fi
8977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8978  CPPFLAGS=$cppflags_save
8979fi
8980
8981if test -z "$SKIP_MOTIF"; then
8982  cppflags_save=$CPPFLAGS
8983  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8984
8985
8986
8987
8988
8989
8990
8991for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8992		   Xm/UnhighlightT.h Xm/Notebook.h
8993do
8994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8995if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996  echo "$as_me:$LINENO: checking for $ac_header" >&5
8997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8998if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999  echo $ECHO_N "(cached) $ECHO_C" >&6
9000fi
9001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9003else
9004  # Is the header compilable?
9005echo "$as_me:$LINENO: checking $ac_header usability" >&5
9006echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9007cat >conftest.$ac_ext <<_ACEOF
9008/* confdefs.h.  */
9009_ACEOF
9010cat confdefs.h >>conftest.$ac_ext
9011cat >>conftest.$ac_ext <<_ACEOF
9012/* end confdefs.h.  */
9013$ac_includes_default
9014#include <$ac_header>
9015_ACEOF
9016rm -f conftest.$ac_objext
9017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9018  (eval $ac_compile) 2>conftest.er1
9019  ac_status=$?
9020  grep -v '^ *+' conftest.er1 >conftest.err
9021  rm -f conftest.er1
9022  cat conftest.err >&5
9023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024  (exit $ac_status); } &&
9025	 { ac_try='test -z "$ac_c_werror_flag"
9026			 || test ! -s conftest.err'
9027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028  (eval $ac_try) 2>&5
9029  ac_status=$?
9030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031  (exit $ac_status); }; } &&
9032	 { ac_try='test -s conftest.$ac_objext'
9033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034  (eval $ac_try) 2>&5
9035  ac_status=$?
9036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037  (exit $ac_status); }; }; then
9038  ac_header_compiler=yes
9039else
9040  echo "$as_me: failed program was:" >&5
9041sed 's/^/| /' conftest.$ac_ext >&5
9042
9043ac_header_compiler=no
9044fi
9045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9046echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9047echo "${ECHO_T}$ac_header_compiler" >&6
9048
9049# Is the header present?
9050echo "$as_me:$LINENO: checking $ac_header presence" >&5
9051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9052cat >conftest.$ac_ext <<_ACEOF
9053/* confdefs.h.  */
9054_ACEOF
9055cat confdefs.h >>conftest.$ac_ext
9056cat >>conftest.$ac_ext <<_ACEOF
9057/* end confdefs.h.  */
9058#include <$ac_header>
9059_ACEOF
9060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9061  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9062  ac_status=$?
9063  grep -v '^ *+' conftest.er1 >conftest.err
9064  rm -f conftest.er1
9065  cat conftest.err >&5
9066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067  (exit $ac_status); } >/dev/null; then
9068  if test -s conftest.err; then
9069    ac_cpp_err=$ac_c_preproc_warn_flag
9070    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9071  else
9072    ac_cpp_err=
9073  fi
9074else
9075  ac_cpp_err=yes
9076fi
9077if test -z "$ac_cpp_err"; then
9078  ac_header_preproc=yes
9079else
9080  echo "$as_me: failed program was:" >&5
9081sed 's/^/| /' conftest.$ac_ext >&5
9082
9083  ac_header_preproc=no
9084fi
9085rm -f conftest.err conftest.$ac_ext
9086echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9087echo "${ECHO_T}$ac_header_preproc" >&6
9088
9089# So?  What about this header?
9090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9091  yes:no: )
9092    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9094    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9095echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9096    ac_header_preproc=yes
9097    ;;
9098  no:yes:* )
9099    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9101    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9102echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9103    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9104echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9105    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9106echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9107    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9109    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9110echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9111    (
9112      cat <<\_ASBOX
9113## ------------------------------------------ ##
9114## Report this to the AC_PACKAGE_NAME lists.  ##
9115## ------------------------------------------ ##
9116_ASBOX
9117    ) |
9118      sed "s/^/$as_me: WARNING:     /" >&2
9119    ;;
9120esac
9121echo "$as_me:$LINENO: checking for $ac_header" >&5
9122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9123if eval "test \"\${$as_ac_Header+set}\" = set"; then
9124  echo $ECHO_N "(cached) $ECHO_C" >&6
9125else
9126  eval "$as_ac_Header=\$ac_header_preproc"
9127fi
9128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9129echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9130
9131fi
9132if test `eval echo '${'$as_ac_Header'}'` = yes; then
9133  cat >>confdefs.h <<_ACEOF
9134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9135_ACEOF
9136
9137fi
9138
9139done
9140
9141
9142  if test $ac_cv_header_Xm_XpmP_h = yes; then
9143        echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9144echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9145    cat >conftest.$ac_ext <<_ACEOF
9146/* confdefs.h.  */
9147_ACEOF
9148cat confdefs.h >>conftest.$ac_ext
9149cat >>conftest.$ac_ext <<_ACEOF
9150/* end confdefs.h.  */
9151#include <Xm/XpmP.h>
9152int
9153main ()
9154{
9155XpmAttributes_21 attr;
9156  ;
9157  return 0;
9158}
9159_ACEOF
9160rm -f conftest.$ac_objext
9161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9162  (eval $ac_compile) 2>conftest.er1
9163  ac_status=$?
9164  grep -v '^ *+' conftest.er1 >conftest.err
9165  rm -f conftest.er1
9166  cat conftest.err >&5
9167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168  (exit $ac_status); } &&
9169	 { ac_try='test -z "$ac_c_werror_flag"
9170			 || test ! -s conftest.err'
9171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172  (eval $ac_try) 2>&5
9173  ac_status=$?
9174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175  (exit $ac_status); }; } &&
9176	 { ac_try='test -s conftest.$ac_objext'
9177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178  (eval $ac_try) 2>&5
9179  ac_status=$?
9180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181  (exit $ac_status); }; }; then
9182  echo "$as_me:$LINENO: result: yes" >&5
9183echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9184#define XPMATTRIBUTES_TYPE XpmAttributes_21
9185_ACEOF
9186
9187else
9188  echo "$as_me: failed program was:" >&5
9189sed 's/^/| /' conftest.$ac_ext >&5
9190
9191echo "$as_me:$LINENO: result: no" >&5
9192echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
9193#define XPMATTRIBUTES_TYPE XpmAttributes
9194_ACEOF
9195
9196
9197fi
9198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9199  else
9200    cat >>confdefs.h <<\_ACEOF
9201#define XPMATTRIBUTES_TYPE XpmAttributes
9202_ACEOF
9203
9204  fi
9205  CPPFLAGS=$cppflags_save
9206fi
9207
9208if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
9209  echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9210echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
9211  enable_xim="no"
9212fi
9213if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
9214  echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9215echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
9216  enable_fontset="no"
9217fi
9218if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
9219  echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9220echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
9221  enable_fontset="no"
9222fi
9223
9224if test -z "$SKIP_PHOTON"; then
9225  GUITYPE=PHOTONGUI
9226fi
9227
9228
9229
9230
9231
9232
9233if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
9234  { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9235echo "$as_me: error: cannot use workshop without Motif" >&2;}
9236   { (exit 1); exit 1; }; }
9237fi
9238
9239if test "$enable_xim" = "yes"; then
9240  cat >>confdefs.h <<\_ACEOF
9241#define FEAT_XIM 1
9242_ACEOF
9243
9244fi
9245if test "$enable_fontset" = "yes"; then
9246  cat >>confdefs.h <<\_ACEOF
9247#define FEAT_XFONTSET 1
9248_ACEOF
9249
9250fi
9251
9252
9253
9254
9255if test "$enable_hangulinput" = "yes"; then
9256  if test "x$GUITYPE" = "xNONE"; then
9257    echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9258echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
9259    enable_hangulinput=no
9260  else
9261    cat >>confdefs.h <<\_ACEOF
9262#define FEAT_HANGULIN 1
9263_ACEOF
9264
9265    HANGULIN_SRC=hangulin.c
9266
9267    HANGULIN_OBJ=objects/hangulin.o
9268
9269  fi
9270fi
9271
9272
9273echo "$as_me:$LINENO: checking quality of toupper" >&5
9274echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
9275if test "$cross_compiling" = yes; then
9276  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9277echo "$as_me: error: failed to compile test program" >&2;}
9278   { (exit 1); exit 1; }; }
9279else
9280  cat >conftest.$ac_ext <<_ACEOF
9281/* confdefs.h.  */
9282_ACEOF
9283cat confdefs.h >>conftest.$ac_ext
9284cat >>conftest.$ac_ext <<_ACEOF
9285/* end confdefs.h.  */
9286#include <ctype.h>
9287main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
9288_ACEOF
9289rm -f conftest$ac_exeext
9290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291  (eval $ac_link) 2>&5
9292  ac_status=$?
9293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296  (eval $ac_try) 2>&5
9297  ac_status=$?
9298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299  (exit $ac_status); }; }; then
9300  cat >>confdefs.h <<\_ACEOF
9301#define BROKEN_TOUPPER 1
9302_ACEOF
9303 echo "$as_me:$LINENO: result: bad" >&5
9304echo "${ECHO_T}bad" >&6
9305else
9306  echo "$as_me: program exited with status $ac_status" >&5
9307echo "$as_me: failed program was:" >&5
9308sed 's/^/| /' conftest.$ac_ext >&5
9309
9310( exit $ac_status )
9311echo "$as_me:$LINENO: result: good" >&5
9312echo "${ECHO_T}good" >&6
9313fi
9314rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9315fi
9316
9317echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9318echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9319cat >conftest.$ac_ext <<_ACEOF
9320/* confdefs.h.  */
9321_ACEOF
9322cat confdefs.h >>conftest.$ac_ext
9323cat >>conftest.$ac_ext <<_ACEOF
9324/* end confdefs.h.  */
9325
9326int
9327main ()
9328{
9329printf("(" __DATE__ " " __TIME__ ")");
9330  ;
9331  return 0;
9332}
9333_ACEOF
9334rm -f conftest.$ac_objext
9335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9336  (eval $ac_compile) 2>conftest.er1
9337  ac_status=$?
9338  grep -v '^ *+' conftest.er1 >conftest.err
9339  rm -f conftest.er1
9340  cat conftest.err >&5
9341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342  (exit $ac_status); } &&
9343	 { ac_try='test -z "$ac_c_werror_flag"
9344			 || test ! -s conftest.err'
9345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346  (eval $ac_try) 2>&5
9347  ac_status=$?
9348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349  (exit $ac_status); }; } &&
9350	 { ac_try='test -s conftest.$ac_objext'
9351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352  (eval $ac_try) 2>&5
9353  ac_status=$?
9354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355  (exit $ac_status); }; }; then
9356  echo "$as_me:$LINENO: result: yes" >&5
9357echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9358#define HAVE_DATE_TIME 1
9359_ACEOF
9360
9361else
9362  echo "$as_me: failed program was:" >&5
9363sed 's/^/| /' conftest.$ac_ext >&5
9364
9365echo "$as_me:$LINENO: result: no" >&5
9366echo "${ECHO_T}no" >&6
9367fi
9368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9369
9370if test "${ac_cv_header_elf_h+set}" = set; then
9371  echo "$as_me:$LINENO: checking for elf.h" >&5
9372echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9373if test "${ac_cv_header_elf_h+set}" = set; then
9374  echo $ECHO_N "(cached) $ECHO_C" >&6
9375fi
9376echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9377echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9378else
9379  # Is the header compilable?
9380echo "$as_me:$LINENO: checking elf.h usability" >&5
9381echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9382cat >conftest.$ac_ext <<_ACEOF
9383/* confdefs.h.  */
9384_ACEOF
9385cat confdefs.h >>conftest.$ac_ext
9386cat >>conftest.$ac_ext <<_ACEOF
9387/* end confdefs.h.  */
9388$ac_includes_default
9389#include <elf.h>
9390_ACEOF
9391rm -f conftest.$ac_objext
9392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9393  (eval $ac_compile) 2>conftest.er1
9394  ac_status=$?
9395  grep -v '^ *+' conftest.er1 >conftest.err
9396  rm -f conftest.er1
9397  cat conftest.err >&5
9398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399  (exit $ac_status); } &&
9400	 { ac_try='test -z "$ac_c_werror_flag"
9401			 || test ! -s conftest.err'
9402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403  (eval $ac_try) 2>&5
9404  ac_status=$?
9405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406  (exit $ac_status); }; } &&
9407	 { ac_try='test -s conftest.$ac_objext'
9408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409  (eval $ac_try) 2>&5
9410  ac_status=$?
9411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412  (exit $ac_status); }; }; then
9413  ac_header_compiler=yes
9414else
9415  echo "$as_me: failed program was:" >&5
9416sed 's/^/| /' conftest.$ac_ext >&5
9417
9418ac_header_compiler=no
9419fi
9420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9422echo "${ECHO_T}$ac_header_compiler" >&6
9423
9424# Is the header present?
9425echo "$as_me:$LINENO: checking elf.h presence" >&5
9426echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9427cat >conftest.$ac_ext <<_ACEOF
9428/* confdefs.h.  */
9429_ACEOF
9430cat confdefs.h >>conftest.$ac_ext
9431cat >>conftest.$ac_ext <<_ACEOF
9432/* end confdefs.h.  */
9433#include <elf.h>
9434_ACEOF
9435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9436  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9437  ac_status=$?
9438  grep -v '^ *+' conftest.er1 >conftest.err
9439  rm -f conftest.er1
9440  cat conftest.err >&5
9441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442  (exit $ac_status); } >/dev/null; then
9443  if test -s conftest.err; then
9444    ac_cpp_err=$ac_c_preproc_warn_flag
9445    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9446  else
9447    ac_cpp_err=
9448  fi
9449else
9450  ac_cpp_err=yes
9451fi
9452if test -z "$ac_cpp_err"; then
9453  ac_header_preproc=yes
9454else
9455  echo "$as_me: failed program was:" >&5
9456sed 's/^/| /' conftest.$ac_ext >&5
9457
9458  ac_header_preproc=no
9459fi
9460rm -f conftest.err conftest.$ac_ext
9461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9462echo "${ECHO_T}$ac_header_preproc" >&6
9463
9464# So?  What about this header?
9465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9466  yes:no: )
9467    { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9468echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9469    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9470echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9471    ac_header_preproc=yes
9472    ;;
9473  no:yes:* )
9474    { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9475echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9476    { echo "$as_me:$LINENO: WARNING: elf.h:     check for missing prerequisite headers?" >&5
9477echo "$as_me: WARNING: elf.h:     check for missing prerequisite headers?" >&2;}
9478    { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9479echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9480    { echo "$as_me:$LINENO: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&5
9481echo "$as_me: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9482    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9483echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9484    { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9485echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9486    (
9487      cat <<\_ASBOX
9488## ------------------------------------------ ##
9489## Report this to the AC_PACKAGE_NAME lists.  ##
9490## ------------------------------------------ ##
9491_ASBOX
9492    ) |
9493      sed "s/^/$as_me: WARNING:     /" >&2
9494    ;;
9495esac
9496echo "$as_me:$LINENO: checking for elf.h" >&5
9497echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9498if test "${ac_cv_header_elf_h+set}" = set; then
9499  echo $ECHO_N "(cached) $ECHO_C" >&6
9500else
9501  ac_cv_header_elf_h=$ac_header_preproc
9502fi
9503echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9504echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9505
9506fi
9507if test $ac_cv_header_elf_h = yes; then
9508  HAS_ELF=1
9509fi
9510
9511
9512if test "$HAS_ELF" = 1; then
9513
9514echo "$as_me:$LINENO: checking for main in -lelf" >&5
9515echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9516if test "${ac_cv_lib_elf_main+set}" = set; then
9517  echo $ECHO_N "(cached) $ECHO_C" >&6
9518else
9519  ac_check_lib_save_LIBS=$LIBS
9520LIBS="-lelf  $LIBS"
9521cat >conftest.$ac_ext <<_ACEOF
9522/* confdefs.h.  */
9523_ACEOF
9524cat confdefs.h >>conftest.$ac_ext
9525cat >>conftest.$ac_ext <<_ACEOF
9526/* end confdefs.h.  */
9527
9528
9529int
9530main ()
9531{
9532main ();
9533  ;
9534  return 0;
9535}
9536_ACEOF
9537rm -f conftest.$ac_objext conftest$ac_exeext
9538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539  (eval $ac_link) 2>conftest.er1
9540  ac_status=$?
9541  grep -v '^ *+' conftest.er1 >conftest.err
9542  rm -f conftest.er1
9543  cat conftest.err >&5
9544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545  (exit $ac_status); } &&
9546	 { ac_try='test -z "$ac_c_werror_flag"
9547			 || test ! -s conftest.err'
9548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549  (eval $ac_try) 2>&5
9550  ac_status=$?
9551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552  (exit $ac_status); }; } &&
9553	 { ac_try='test -s conftest$ac_exeext'
9554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555  (eval $ac_try) 2>&5
9556  ac_status=$?
9557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558  (exit $ac_status); }; }; then
9559  ac_cv_lib_elf_main=yes
9560else
9561  echo "$as_me: failed program was:" >&5
9562sed 's/^/| /' conftest.$ac_ext >&5
9563
9564ac_cv_lib_elf_main=no
9565fi
9566rm -f conftest.err conftest.$ac_objext \
9567      conftest$ac_exeext conftest.$ac_ext
9568LIBS=$ac_check_lib_save_LIBS
9569fi
9570echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9571echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9572if test $ac_cv_lib_elf_main = yes; then
9573  cat >>confdefs.h <<_ACEOF
9574#define HAVE_LIBELF 1
9575_ACEOF
9576
9577  LIBS="-lelf $LIBS"
9578
9579fi
9580
9581fi
9582
9583
9584
9585
9586
9587
9588ac_header_dirent=no
9589for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9590  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9591echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9592echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9593if eval "test \"\${$as_ac_Header+set}\" = set"; then
9594  echo $ECHO_N "(cached) $ECHO_C" >&6
9595else
9596  cat >conftest.$ac_ext <<_ACEOF
9597/* confdefs.h.  */
9598_ACEOF
9599cat confdefs.h >>conftest.$ac_ext
9600cat >>conftest.$ac_ext <<_ACEOF
9601/* end confdefs.h.  */
9602#include <sys/types.h>
9603#include <$ac_hdr>
9604
9605int
9606main ()
9607{
9608if ((DIR *) 0)
9609return 0;
9610  ;
9611  return 0;
9612}
9613_ACEOF
9614rm -f conftest.$ac_objext
9615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9616  (eval $ac_compile) 2>conftest.er1
9617  ac_status=$?
9618  grep -v '^ *+' conftest.er1 >conftest.err
9619  rm -f conftest.er1
9620  cat conftest.err >&5
9621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622  (exit $ac_status); } &&
9623	 { ac_try='test -z "$ac_c_werror_flag"
9624			 || test ! -s conftest.err'
9625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626  (eval $ac_try) 2>&5
9627  ac_status=$?
9628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629  (exit $ac_status); }; } &&
9630	 { ac_try='test -s conftest.$ac_objext'
9631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632  (eval $ac_try) 2>&5
9633  ac_status=$?
9634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635  (exit $ac_status); }; }; then
9636  eval "$as_ac_Header=yes"
9637else
9638  echo "$as_me: failed program was:" >&5
9639sed 's/^/| /' conftest.$ac_ext >&5
9640
9641eval "$as_ac_Header=no"
9642fi
9643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9644fi
9645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9647if test `eval echo '${'$as_ac_Header'}'` = yes; then
9648  cat >>confdefs.h <<_ACEOF
9649#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9650_ACEOF
9651
9652ac_header_dirent=$ac_hdr; break
9653fi
9654
9655done
9656# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9657if test $ac_header_dirent = dirent.h; then
9658  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9659echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9660if test "${ac_cv_search_opendir+set}" = set; then
9661  echo $ECHO_N "(cached) $ECHO_C" >&6
9662else
9663  ac_func_search_save_LIBS=$LIBS
9664ac_cv_search_opendir=no
9665cat >conftest.$ac_ext <<_ACEOF
9666/* confdefs.h.  */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h.  */
9671
9672/* Override any gcc2 internal prototype to avoid an error.  */
9673#ifdef __cplusplus
9674extern "C"
9675#endif
9676/* We use char because int might match the return type of a gcc2
9677   builtin and then its argument prototype would still apply.  */
9678char opendir ();
9679int
9680main ()
9681{
9682opendir ();
9683  ;
9684  return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext conftest$ac_exeext
9688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689  (eval $ac_link) 2>conftest.er1
9690  ac_status=$?
9691  grep -v '^ *+' conftest.er1 >conftest.err
9692  rm -f conftest.er1
9693  cat conftest.err >&5
9694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695  (exit $ac_status); } &&
9696	 { ac_try='test -z "$ac_c_werror_flag"
9697			 || test ! -s conftest.err'
9698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699  (eval $ac_try) 2>&5
9700  ac_status=$?
9701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702  (exit $ac_status); }; } &&
9703	 { ac_try='test -s conftest$ac_exeext'
9704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705  (eval $ac_try) 2>&5
9706  ac_status=$?
9707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708  (exit $ac_status); }; }; then
9709  ac_cv_search_opendir="none required"
9710else
9711  echo "$as_me: failed program was:" >&5
9712sed 's/^/| /' conftest.$ac_ext >&5
9713
9714fi
9715rm -f conftest.err conftest.$ac_objext \
9716      conftest$ac_exeext conftest.$ac_ext
9717if test "$ac_cv_search_opendir" = no; then
9718  for ac_lib in dir; do
9719    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9720    cat >conftest.$ac_ext <<_ACEOF
9721/* confdefs.h.  */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h.  */
9726
9727/* Override any gcc2 internal prototype to avoid an error.  */
9728#ifdef __cplusplus
9729extern "C"
9730#endif
9731/* We use char because int might match the return type of a gcc2
9732   builtin and then its argument prototype would still apply.  */
9733char opendir ();
9734int
9735main ()
9736{
9737opendir ();
9738  ;
9739  return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
9743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744  (eval $ac_link) 2>conftest.er1
9745  ac_status=$?
9746  grep -v '^ *+' conftest.er1 >conftest.err
9747  rm -f conftest.er1
9748  cat conftest.err >&5
9749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750  (exit $ac_status); } &&
9751	 { ac_try='test -z "$ac_c_werror_flag"
9752			 || test ! -s conftest.err'
9753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754  (eval $ac_try) 2>&5
9755  ac_status=$?
9756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757  (exit $ac_status); }; } &&
9758	 { ac_try='test -s conftest$ac_exeext'
9759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760  (eval $ac_try) 2>&5
9761  ac_status=$?
9762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763  (exit $ac_status); }; }; then
9764  ac_cv_search_opendir="-l$ac_lib"
9765break
9766else
9767  echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
9769
9770fi
9771rm -f conftest.err conftest.$ac_objext \
9772      conftest$ac_exeext conftest.$ac_ext
9773  done
9774fi
9775LIBS=$ac_func_search_save_LIBS
9776fi
9777echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9778echo "${ECHO_T}$ac_cv_search_opendir" >&6
9779if test "$ac_cv_search_opendir" != no; then
9780  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9781
9782fi
9783
9784else
9785  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9786echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9787if test "${ac_cv_search_opendir+set}" = set; then
9788  echo $ECHO_N "(cached) $ECHO_C" >&6
9789else
9790  ac_func_search_save_LIBS=$LIBS
9791ac_cv_search_opendir=no
9792cat >conftest.$ac_ext <<_ACEOF
9793/* confdefs.h.  */
9794_ACEOF
9795cat confdefs.h >>conftest.$ac_ext
9796cat >>conftest.$ac_ext <<_ACEOF
9797/* end confdefs.h.  */
9798
9799/* Override any gcc2 internal prototype to avoid an error.  */
9800#ifdef __cplusplus
9801extern "C"
9802#endif
9803/* We use char because int might match the return type of a gcc2
9804   builtin and then its argument prototype would still apply.  */
9805char opendir ();
9806int
9807main ()
9808{
9809opendir ();
9810  ;
9811  return 0;
9812}
9813_ACEOF
9814rm -f conftest.$ac_objext conftest$ac_exeext
9815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9816  (eval $ac_link) 2>conftest.er1
9817  ac_status=$?
9818  grep -v '^ *+' conftest.er1 >conftest.err
9819  rm -f conftest.er1
9820  cat conftest.err >&5
9821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822  (exit $ac_status); } &&
9823	 { ac_try='test -z "$ac_c_werror_flag"
9824			 || test ! -s conftest.err'
9825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826  (eval $ac_try) 2>&5
9827  ac_status=$?
9828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829  (exit $ac_status); }; } &&
9830	 { ac_try='test -s conftest$ac_exeext'
9831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832  (eval $ac_try) 2>&5
9833  ac_status=$?
9834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835  (exit $ac_status); }; }; then
9836  ac_cv_search_opendir="none required"
9837else
9838  echo "$as_me: failed program was:" >&5
9839sed 's/^/| /' conftest.$ac_ext >&5
9840
9841fi
9842rm -f conftest.err conftest.$ac_objext \
9843      conftest$ac_exeext conftest.$ac_ext
9844if test "$ac_cv_search_opendir" = no; then
9845  for ac_lib in x; do
9846    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9847    cat >conftest.$ac_ext <<_ACEOF
9848/* confdefs.h.  */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h.  */
9853
9854/* Override any gcc2 internal prototype to avoid an error.  */
9855#ifdef __cplusplus
9856extern "C"
9857#endif
9858/* We use char because int might match the return type of a gcc2
9859   builtin and then its argument prototype would still apply.  */
9860char opendir ();
9861int
9862main ()
9863{
9864opendir ();
9865  ;
9866  return 0;
9867}
9868_ACEOF
9869rm -f conftest.$ac_objext conftest$ac_exeext
9870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871  (eval $ac_link) 2>conftest.er1
9872  ac_status=$?
9873  grep -v '^ *+' conftest.er1 >conftest.err
9874  rm -f conftest.er1
9875  cat conftest.err >&5
9876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877  (exit $ac_status); } &&
9878	 { ac_try='test -z "$ac_c_werror_flag"
9879			 || test ! -s conftest.err'
9880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881  (eval $ac_try) 2>&5
9882  ac_status=$?
9883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884  (exit $ac_status); }; } &&
9885	 { ac_try='test -s conftest$ac_exeext'
9886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887  (eval $ac_try) 2>&5
9888  ac_status=$?
9889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890  (exit $ac_status); }; }; then
9891  ac_cv_search_opendir="-l$ac_lib"
9892break
9893else
9894  echo "$as_me: failed program was:" >&5
9895sed 's/^/| /' conftest.$ac_ext >&5
9896
9897fi
9898rm -f conftest.err conftest.$ac_objext \
9899      conftest$ac_exeext conftest.$ac_ext
9900  done
9901fi
9902LIBS=$ac_func_search_save_LIBS
9903fi
9904echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9905echo "${ECHO_T}$ac_cv_search_opendir" >&6
9906if test "$ac_cv_search_opendir" != no; then
9907  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9908
9909fi
9910
9911fi
9912
9913
9914echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9915echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9916if test "${ac_cv_header_stdc+set}" = set; then
9917  echo $ECHO_N "(cached) $ECHO_C" >&6
9918else
9919  cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h.  */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h.  */
9925#include <stdlib.h>
9926#include <stdarg.h>
9927#include <string.h>
9928#include <float.h>
9929
9930int
9931main ()
9932{
9933
9934  ;
9935  return 0;
9936}
9937_ACEOF
9938rm -f conftest.$ac_objext
9939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9940  (eval $ac_compile) 2>conftest.er1
9941  ac_status=$?
9942  grep -v '^ *+' conftest.er1 >conftest.err
9943  rm -f conftest.er1
9944  cat conftest.err >&5
9945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946  (exit $ac_status); } &&
9947	 { ac_try='test -z "$ac_c_werror_flag"
9948			 || test ! -s conftest.err'
9949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950  (eval $ac_try) 2>&5
9951  ac_status=$?
9952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953  (exit $ac_status); }; } &&
9954	 { ac_try='test -s conftest.$ac_objext'
9955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956  (eval $ac_try) 2>&5
9957  ac_status=$?
9958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959  (exit $ac_status); }; }; then
9960  ac_cv_header_stdc=yes
9961else
9962  echo "$as_me: failed program was:" >&5
9963sed 's/^/| /' conftest.$ac_ext >&5
9964
9965ac_cv_header_stdc=no
9966fi
9967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9968
9969if test $ac_cv_header_stdc = yes; then
9970  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9971  cat >conftest.$ac_ext <<_ACEOF
9972/* confdefs.h.  */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h.  */
9977#include <string.h>
9978
9979_ACEOF
9980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9981  $EGREP "memchr" >/dev/null 2>&1; then
9982  :
9983else
9984  ac_cv_header_stdc=no
9985fi
9986rm -f conftest*
9987
9988fi
9989
9990if test $ac_cv_header_stdc = yes; then
9991  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9992  cat >conftest.$ac_ext <<_ACEOF
9993/* confdefs.h.  */
9994_ACEOF
9995cat confdefs.h >>conftest.$ac_ext
9996cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h.  */
9998#include <stdlib.h>
9999
10000_ACEOF
10001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10002  $EGREP "free" >/dev/null 2>&1; then
10003  :
10004else
10005  ac_cv_header_stdc=no
10006fi
10007rm -f conftest*
10008
10009fi
10010
10011if test $ac_cv_header_stdc = yes; then
10012  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10013  if test "$cross_compiling" = yes; then
10014  :
10015else
10016  cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h.  */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h.  */
10022#include <ctype.h>
10023#if ((' ' & 0x0FF) == 0x020)
10024# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10025# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10026#else
10027# define ISLOWER(c) \
10028		   (('a' <= (c) && (c) <= 'i') \
10029		     || ('j' <= (c) && (c) <= 'r') \
10030		     || ('s' <= (c) && (c) <= 'z'))
10031# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10032#endif
10033
10034#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10035int
10036main ()
10037{
10038  int i;
10039  for (i = 0; i < 256; i++)
10040    if (XOR (islower (i), ISLOWER (i))
10041	|| toupper (i) != TOUPPER (i))
10042      exit(2);
10043  exit (0);
10044}
10045_ACEOF
10046rm -f conftest$ac_exeext
10047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048  (eval $ac_link) 2>&5
10049  ac_status=$?
10050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053  (eval $ac_try) 2>&5
10054  ac_status=$?
10055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056  (exit $ac_status); }; }; then
10057  :
10058else
10059  echo "$as_me: program exited with status $ac_status" >&5
10060echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
10063( exit $ac_status )
10064ac_cv_header_stdc=no
10065fi
10066rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10067fi
10068fi
10069fi
10070echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10071echo "${ECHO_T}$ac_cv_header_stdc" >&6
10072if test $ac_cv_header_stdc = yes; then
10073
10074cat >>confdefs.h <<\_ACEOF
10075#define STDC_HEADERS 1
10076_ACEOF
10077
10078fi
10079
10080echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10081echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10082if test "${ac_cv_header_sys_wait_h+set}" = set; then
10083  echo $ECHO_N "(cached) $ECHO_C" >&6
10084else
10085  cat >conftest.$ac_ext <<_ACEOF
10086/* confdefs.h.  */
10087_ACEOF
10088cat confdefs.h >>conftest.$ac_ext
10089cat >>conftest.$ac_ext <<_ACEOF
10090/* end confdefs.h.  */
10091#include <sys/types.h>
10092#include <sys/wait.h>
10093#ifndef WEXITSTATUS
10094# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10095#endif
10096#ifndef WIFEXITED
10097# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10098#endif
10099
10100int
10101main ()
10102{
10103  int s;
10104  wait (&s);
10105  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10106  ;
10107  return 0;
10108}
10109_ACEOF
10110rm -f conftest.$ac_objext
10111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10112  (eval $ac_compile) 2>conftest.er1
10113  ac_status=$?
10114  grep -v '^ *+' conftest.er1 >conftest.err
10115  rm -f conftest.er1
10116  cat conftest.err >&5
10117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118  (exit $ac_status); } &&
10119	 { ac_try='test -z "$ac_c_werror_flag"
10120			 || test ! -s conftest.err'
10121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122  (eval $ac_try) 2>&5
10123  ac_status=$?
10124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125  (exit $ac_status); }; } &&
10126	 { ac_try='test -s conftest.$ac_objext'
10127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128  (eval $ac_try) 2>&5
10129  ac_status=$?
10130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131  (exit $ac_status); }; }; then
10132  ac_cv_header_sys_wait_h=yes
10133else
10134  echo "$as_me: failed program was:" >&5
10135sed 's/^/| /' conftest.$ac_ext >&5
10136
10137ac_cv_header_sys_wait_h=no
10138fi
10139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10140fi
10141echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10142echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10143if test $ac_cv_header_sys_wait_h = yes; then
10144
10145cat >>confdefs.h <<\_ACEOF
10146#define HAVE_SYS_WAIT_H 1
10147_ACEOF
10148
10149fi
10150
10151
10152if test $ac_cv_header_sys_wait_h = no; then
10153  echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10154echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10155  cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h.  */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h.  */
10161#include <sys/wait.h>
10162int
10163main ()
10164{
10165union wait xx, yy; xx = yy
10166  ;
10167  return 0;
10168}
10169_ACEOF
10170rm -f conftest.$ac_objext
10171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172  (eval $ac_compile) 2>conftest.er1
10173  ac_status=$?
10174  grep -v '^ *+' conftest.er1 >conftest.err
10175  rm -f conftest.er1
10176  cat conftest.err >&5
10177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178  (exit $ac_status); } &&
10179	 { ac_try='test -z "$ac_c_werror_flag"
10180			 || test ! -s conftest.err'
10181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182  (eval $ac_try) 2>&5
10183  ac_status=$?
10184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185  (exit $ac_status); }; } &&
10186	 { ac_try='test -s conftest.$ac_objext'
10187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188  (eval $ac_try) 2>&5
10189  ac_status=$?
10190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191  (exit $ac_status); }; }; then
10192  echo "$as_me:$LINENO: result: yes" >&5
10193echo "${ECHO_T}yes" >&6
10194			cat >>confdefs.h <<\_ACEOF
10195#define HAVE_SYS_WAIT_H 1
10196_ACEOF
10197
10198			cat >>confdefs.h <<\_ACEOF
10199#define HAVE_UNION_WAIT 1
10200_ACEOF
10201
10202else
10203  echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206echo "$as_me:$LINENO: result: no" >&5
10207echo "${ECHO_T}no" >&6
10208fi
10209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10210fi
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
10251
10252for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10253	termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10254	iconv.h langinfo.h unistd.h stropts.h errno.h \
10255	sys/resource.h sys/systeminfo.h locale.h \
10256	sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10257	poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10258	libgen.h util/debug.h util/msg18n.h frame.h \
10259	sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10260do
10261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10262if eval "test \"\${$as_ac_Header+set}\" = set"; then
10263  echo "$as_me:$LINENO: checking for $ac_header" >&5
10264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10265if eval "test \"\${$as_ac_Header+set}\" = set"; then
10266  echo $ECHO_N "(cached) $ECHO_C" >&6
10267fi
10268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10270else
10271  # Is the header compilable?
10272echo "$as_me:$LINENO: checking $ac_header usability" >&5
10273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10274cat >conftest.$ac_ext <<_ACEOF
10275/* confdefs.h.  */
10276_ACEOF
10277cat confdefs.h >>conftest.$ac_ext
10278cat >>conftest.$ac_ext <<_ACEOF
10279/* end confdefs.h.  */
10280$ac_includes_default
10281#include <$ac_header>
10282_ACEOF
10283rm -f conftest.$ac_objext
10284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285  (eval $ac_compile) 2>conftest.er1
10286  ac_status=$?
10287  grep -v '^ *+' conftest.er1 >conftest.err
10288  rm -f conftest.er1
10289  cat conftest.err >&5
10290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291  (exit $ac_status); } &&
10292	 { ac_try='test -z "$ac_c_werror_flag"
10293			 || test ! -s conftest.err'
10294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295  (eval $ac_try) 2>&5
10296  ac_status=$?
10297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298  (exit $ac_status); }; } &&
10299	 { ac_try='test -s conftest.$ac_objext'
10300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301  (eval $ac_try) 2>&5
10302  ac_status=$?
10303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304  (exit $ac_status); }; }; then
10305  ac_header_compiler=yes
10306else
10307  echo "$as_me: failed program was:" >&5
10308sed 's/^/| /' conftest.$ac_ext >&5
10309
10310ac_header_compiler=no
10311fi
10312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314echo "${ECHO_T}$ac_header_compiler" >&6
10315
10316# Is the header present?
10317echo "$as_me:$LINENO: checking $ac_header presence" >&5
10318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10319cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h.  */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h.  */
10325#include <$ac_header>
10326_ACEOF
10327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10328  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10329  ac_status=$?
10330  grep -v '^ *+' conftest.er1 >conftest.err
10331  rm -f conftest.er1
10332  cat conftest.err >&5
10333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334  (exit $ac_status); } >/dev/null; then
10335  if test -s conftest.err; then
10336    ac_cpp_err=$ac_c_preproc_warn_flag
10337    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10338  else
10339    ac_cpp_err=
10340  fi
10341else
10342  ac_cpp_err=yes
10343fi
10344if test -z "$ac_cpp_err"; then
10345  ac_header_preproc=yes
10346else
10347  echo "$as_me: failed program was:" >&5
10348sed 's/^/| /' conftest.$ac_ext >&5
10349
10350  ac_header_preproc=no
10351fi
10352rm -f conftest.err conftest.$ac_ext
10353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10354echo "${ECHO_T}$ac_header_preproc" >&6
10355
10356# So?  What about this header?
10357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10358  yes:no: )
10359    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10361    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10363    ac_header_preproc=yes
10364    ;;
10365  no:yes:* )
10366    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10368    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10369echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10370    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10372    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10373echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10374    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10376    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10378    (
10379      cat <<\_ASBOX
10380## ------------------------------------------ ##
10381## Report this to the AC_PACKAGE_NAME lists.  ##
10382## ------------------------------------------ ##
10383_ASBOX
10384    ) |
10385      sed "s/^/$as_me: WARNING:     /" >&2
10386    ;;
10387esac
10388echo "$as_me:$LINENO: checking for $ac_header" >&5
10389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10390if eval "test \"\${$as_ac_Header+set}\" = set"; then
10391  echo $ECHO_N "(cached) $ECHO_C" >&6
10392else
10393  eval "$as_ac_Header=\$ac_header_preproc"
10394fi
10395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10397
10398fi
10399if test `eval echo '${'$as_ac_Header'}'` = yes; then
10400  cat >>confdefs.h <<_ACEOF
10401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10402_ACEOF
10403
10404fi
10405
10406done
10407
10408
10409echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10410echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10411cat >conftest.$ac_ext <<_ACEOF
10412/* confdefs.h.  */
10413_ACEOF
10414cat confdefs.h >>conftest.$ac_ext
10415cat >>conftest.$ac_ext <<_ACEOF
10416/* end confdefs.h.  */
10417
10418#include <pthread.h>
10419#include <pthread_np.h>
10420int
10421main ()
10422{
10423int i; i = 0;
10424  ;
10425  return 0;
10426}
10427_ACEOF
10428rm -f conftest.$ac_objext
10429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430  (eval $ac_compile) 2>conftest.er1
10431  ac_status=$?
10432  grep -v '^ *+' conftest.er1 >conftest.err
10433  rm -f conftest.er1
10434  cat conftest.err >&5
10435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436  (exit $ac_status); } &&
10437	 { ac_try='test -z "$ac_c_werror_flag"
10438			 || test ! -s conftest.err'
10439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440  (eval $ac_try) 2>&5
10441  ac_status=$?
10442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443  (exit $ac_status); }; } &&
10444	 { ac_try='test -s conftest.$ac_objext'
10445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446  (eval $ac_try) 2>&5
10447  ac_status=$?
10448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449  (exit $ac_status); }; }; then
10450  echo "$as_me:$LINENO: result: yes" >&5
10451echo "${ECHO_T}yes" >&6
10452		      cat >>confdefs.h <<\_ACEOF
10453#define HAVE_PTHREAD_NP_H 1
10454_ACEOF
10455
10456else
10457  echo "$as_me: failed program was:" >&5
10458sed 's/^/| /' conftest.$ac_ext >&5
10459
10460echo "$as_me:$LINENO: result: no" >&5
10461echo "${ECHO_T}no" >&6
10462fi
10463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10464
10465
10466for ac_header in strings.h
10467do
10468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10469if eval "test \"\${$as_ac_Header+set}\" = set"; then
10470  echo "$as_me:$LINENO: checking for $ac_header" >&5
10471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10472if eval "test \"\${$as_ac_Header+set}\" = set"; then
10473  echo $ECHO_N "(cached) $ECHO_C" >&6
10474fi
10475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10477else
10478  # Is the header compilable?
10479echo "$as_me:$LINENO: checking $ac_header usability" >&5
10480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10481cat >conftest.$ac_ext <<_ACEOF
10482/* confdefs.h.  */
10483_ACEOF
10484cat confdefs.h >>conftest.$ac_ext
10485cat >>conftest.$ac_ext <<_ACEOF
10486/* end confdefs.h.  */
10487$ac_includes_default
10488#include <$ac_header>
10489_ACEOF
10490rm -f conftest.$ac_objext
10491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10492  (eval $ac_compile) 2>conftest.er1
10493  ac_status=$?
10494  grep -v '^ *+' conftest.er1 >conftest.err
10495  rm -f conftest.er1
10496  cat conftest.err >&5
10497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498  (exit $ac_status); } &&
10499	 { ac_try='test -z "$ac_c_werror_flag"
10500			 || test ! -s conftest.err'
10501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502  (eval $ac_try) 2>&5
10503  ac_status=$?
10504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505  (exit $ac_status); }; } &&
10506	 { ac_try='test -s conftest.$ac_objext'
10507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508  (eval $ac_try) 2>&5
10509  ac_status=$?
10510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511  (exit $ac_status); }; }; then
10512  ac_header_compiler=yes
10513else
10514  echo "$as_me: failed program was:" >&5
10515sed 's/^/| /' conftest.$ac_ext >&5
10516
10517ac_header_compiler=no
10518fi
10519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10520echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10521echo "${ECHO_T}$ac_header_compiler" >&6
10522
10523# Is the header present?
10524echo "$as_me:$LINENO: checking $ac_header presence" >&5
10525echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10526cat >conftest.$ac_ext <<_ACEOF
10527/* confdefs.h.  */
10528_ACEOF
10529cat confdefs.h >>conftest.$ac_ext
10530cat >>conftest.$ac_ext <<_ACEOF
10531/* end confdefs.h.  */
10532#include <$ac_header>
10533_ACEOF
10534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10535  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10536  ac_status=$?
10537  grep -v '^ *+' conftest.er1 >conftest.err
10538  rm -f conftest.er1
10539  cat conftest.err >&5
10540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541  (exit $ac_status); } >/dev/null; then
10542  if test -s conftest.err; then
10543    ac_cpp_err=$ac_c_preproc_warn_flag
10544    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10545  else
10546    ac_cpp_err=
10547  fi
10548else
10549  ac_cpp_err=yes
10550fi
10551if test -z "$ac_cpp_err"; then
10552  ac_header_preproc=yes
10553else
10554  echo "$as_me: failed program was:" >&5
10555sed 's/^/| /' conftest.$ac_ext >&5
10556
10557  ac_header_preproc=no
10558fi
10559rm -f conftest.err conftest.$ac_ext
10560echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10561echo "${ECHO_T}$ac_header_preproc" >&6
10562
10563# So?  What about this header?
10564case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10565  yes:no: )
10566    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10567echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10568    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10569echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10570    ac_header_preproc=yes
10571    ;;
10572  no:yes:* )
10573    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10574echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10575    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10576echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10577    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10578echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10579    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10580echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10581    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10583    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10584echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10585    (
10586      cat <<\_ASBOX
10587## ------------------------------------------ ##
10588## Report this to the AC_PACKAGE_NAME lists.  ##
10589## ------------------------------------------ ##
10590_ASBOX
10591    ) |
10592      sed "s/^/$as_me: WARNING:     /" >&2
10593    ;;
10594esac
10595echo "$as_me:$LINENO: checking for $ac_header" >&5
10596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10597if eval "test \"\${$as_ac_Header+set}\" = set"; then
10598  echo $ECHO_N "(cached) $ECHO_C" >&6
10599else
10600  eval "$as_ac_Header=\$ac_header_preproc"
10601fi
10602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10604
10605fi
10606if test `eval echo '${'$as_ac_Header'}'` = yes; then
10607  cat >>confdefs.h <<_ACEOF
10608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10609_ACEOF
10610
10611fi
10612
10613done
10614
10615if test "x$MACOSX" = "xyes"; then
10616    cat >>confdefs.h <<\_ACEOF
10617#define NO_STRINGS_WITH_STRING_H 1
10618_ACEOF
10619
10620else
10621
10622echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10623echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
10624cppflags_save=$CPPFLAGS
10625CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10626cat >conftest.$ac_ext <<_ACEOF
10627/* confdefs.h.  */
10628_ACEOF
10629cat confdefs.h >>conftest.$ac_ext
10630cat >>conftest.$ac_ext <<_ACEOF
10631/* end confdefs.h.  */
10632
10633#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10634# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
10635			/* but don't do it on AIX 5.1 (Uribarri) */
10636#endif
10637#ifdef HAVE_XM_XM_H
10638# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
10639#endif
10640#ifdef HAVE_STRING_H
10641# include <string.h>
10642#endif
10643#if defined(HAVE_STRINGS_H)
10644# include <strings.h>
10645#endif
10646
10647int
10648main ()
10649{
10650int i; i = 0;
10651  ;
10652  return 0;
10653}
10654_ACEOF
10655rm -f conftest.$ac_objext
10656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657  (eval $ac_compile) 2>conftest.er1
10658  ac_status=$?
10659  grep -v '^ *+' conftest.er1 >conftest.err
10660  rm -f conftest.er1
10661  cat conftest.err >&5
10662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663  (exit $ac_status); } &&
10664	 { ac_try='test -z "$ac_c_werror_flag"
10665			 || test ! -s conftest.err'
10666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667  (eval $ac_try) 2>&5
10668  ac_status=$?
10669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670  (exit $ac_status); }; } &&
10671	 { ac_try='test -s conftest.$ac_objext'
10672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673  (eval $ac_try) 2>&5
10674  ac_status=$?
10675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676  (exit $ac_status); }; }; then
10677  echo "$as_me:$LINENO: result: yes" >&5
10678echo "${ECHO_T}yes" >&6
10679else
10680  echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682
10683cat >>confdefs.h <<\_ACEOF
10684#define NO_STRINGS_WITH_STRING_H 1
10685_ACEOF
10686
10687		echo "$as_me:$LINENO: result: no" >&5
10688echo "${ECHO_T}no" >&6
10689fi
10690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10691CPPFLAGS=$cppflags_save
10692fi
10693
10694if test $ac_cv_c_compiler_gnu = yes; then
10695    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10696echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10697if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10698  echo $ECHO_N "(cached) $ECHO_C" >&6
10699else
10700    ac_pattern="Autoconf.*'x'"
10701  cat >conftest.$ac_ext <<_ACEOF
10702/* confdefs.h.  */
10703_ACEOF
10704cat confdefs.h >>conftest.$ac_ext
10705cat >>conftest.$ac_ext <<_ACEOF
10706/* end confdefs.h.  */
10707#include <sgtty.h>
10708Autoconf TIOCGETP
10709_ACEOF
10710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10711  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10712  ac_cv_prog_gcc_traditional=yes
10713else
10714  ac_cv_prog_gcc_traditional=no
10715fi
10716rm -f conftest*
10717
10718
10719  if test $ac_cv_prog_gcc_traditional = no; then
10720    cat >conftest.$ac_ext <<_ACEOF
10721/* confdefs.h.  */
10722_ACEOF
10723cat confdefs.h >>conftest.$ac_ext
10724cat >>conftest.$ac_ext <<_ACEOF
10725/* end confdefs.h.  */
10726#include <termio.h>
10727Autoconf TCGETA
10728_ACEOF
10729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10730  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10731  ac_cv_prog_gcc_traditional=yes
10732fi
10733rm -f conftest*
10734
10735  fi
10736fi
10737echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10738echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10739  if test $ac_cv_prog_gcc_traditional = yes; then
10740    CC="$CC -traditional"
10741  fi
10742fi
10743
10744echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10745echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10746if test "${ac_cv_c_const+set}" = set; then
10747  echo $ECHO_N "(cached) $ECHO_C" >&6
10748else
10749  cat >conftest.$ac_ext <<_ACEOF
10750/* confdefs.h.  */
10751_ACEOF
10752cat confdefs.h >>conftest.$ac_ext
10753cat >>conftest.$ac_ext <<_ACEOF
10754/* end confdefs.h.  */
10755
10756int
10757main ()
10758{
10759/* FIXME: Include the comments suggested by Paul. */
10760#ifndef __cplusplus
10761  /* Ultrix mips cc rejects this.  */
10762  typedef int charset[2];
10763  const charset x;
10764  /* SunOS 4.1.1 cc rejects this.  */
10765  char const *const *ccp;
10766  char **p;
10767  /* NEC SVR4.0.2 mips cc rejects this.  */
10768  struct point {int x, y;};
10769  static struct point const zero = {0,0};
10770  /* AIX XL C 1.02.0.0 rejects this.
10771     It does not let you subtract one const X* pointer from another in
10772     an arm of an if-expression whose if-part is not a constant
10773     expression */
10774  const char *g = "string";
10775  ccp = &g + (g ? g-g : 0);
10776  /* HPUX 7.0 cc rejects these. */
10777  ++ccp;
10778  p = (char**) ccp;
10779  ccp = (char const *const *) p;
10780  { /* SCO 3.2v4 cc rejects this.  */
10781    char *t;
10782    char const *s = 0 ? (char *) 0 : (char const *) 0;
10783
10784    *t++ = 0;
10785  }
10786  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10787    int x[] = {25, 17};
10788    const int *foo = &x[0];
10789    ++foo;
10790  }
10791  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10792    typedef const int *iptr;
10793    iptr p = 0;
10794    ++p;
10795  }
10796  { /* AIX XL C 1.02.0.0 rejects this saying
10797       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10798    struct s { int j; const int *ap[3]; };
10799    struct s *b; b->j = 5;
10800  }
10801  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10802    const int foo = 10;
10803  }
10804#endif
10805
10806  ;
10807  return 0;
10808}
10809_ACEOF
10810rm -f conftest.$ac_objext
10811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812  (eval $ac_compile) 2>conftest.er1
10813  ac_status=$?
10814  grep -v '^ *+' conftest.er1 >conftest.err
10815  rm -f conftest.er1
10816  cat conftest.err >&5
10817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818  (exit $ac_status); } &&
10819	 { ac_try='test -z "$ac_c_werror_flag"
10820			 || test ! -s conftest.err'
10821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822  (eval $ac_try) 2>&5
10823  ac_status=$?
10824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825  (exit $ac_status); }; } &&
10826	 { ac_try='test -s conftest.$ac_objext'
10827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828  (eval $ac_try) 2>&5
10829  ac_status=$?
10830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831  (exit $ac_status); }; }; then
10832  ac_cv_c_const=yes
10833else
10834  echo "$as_me: failed program was:" >&5
10835sed 's/^/| /' conftest.$ac_ext >&5
10836
10837ac_cv_c_const=no
10838fi
10839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10840fi
10841echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10842echo "${ECHO_T}$ac_cv_c_const" >&6
10843if test $ac_cv_c_const = no; then
10844
10845cat >>confdefs.h <<\_ACEOF
10846#define const
10847_ACEOF
10848
10849fi
10850
10851echo "$as_me:$LINENO: checking for mode_t" >&5
10852echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10853if test "${ac_cv_type_mode_t+set}" = set; then
10854  echo $ECHO_N "(cached) $ECHO_C" >&6
10855else
10856  cat >conftest.$ac_ext <<_ACEOF
10857/* confdefs.h.  */
10858_ACEOF
10859cat confdefs.h >>conftest.$ac_ext
10860cat >>conftest.$ac_ext <<_ACEOF
10861/* end confdefs.h.  */
10862$ac_includes_default
10863int
10864main ()
10865{
10866if ((mode_t *) 0)
10867  return 0;
10868if (sizeof (mode_t))
10869  return 0;
10870  ;
10871  return 0;
10872}
10873_ACEOF
10874rm -f conftest.$ac_objext
10875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876  (eval $ac_compile) 2>conftest.er1
10877  ac_status=$?
10878  grep -v '^ *+' conftest.er1 >conftest.err
10879  rm -f conftest.er1
10880  cat conftest.err >&5
10881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882  (exit $ac_status); } &&
10883	 { ac_try='test -z "$ac_c_werror_flag"
10884			 || test ! -s conftest.err'
10885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886  (eval $ac_try) 2>&5
10887  ac_status=$?
10888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889  (exit $ac_status); }; } &&
10890	 { ac_try='test -s conftest.$ac_objext'
10891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892  (eval $ac_try) 2>&5
10893  ac_status=$?
10894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895  (exit $ac_status); }; }; then
10896  ac_cv_type_mode_t=yes
10897else
10898  echo "$as_me: failed program was:" >&5
10899sed 's/^/| /' conftest.$ac_ext >&5
10900
10901ac_cv_type_mode_t=no
10902fi
10903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10904fi
10905echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10906echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10907if test $ac_cv_type_mode_t = yes; then
10908  :
10909else
10910
10911cat >>confdefs.h <<_ACEOF
10912#define mode_t int
10913_ACEOF
10914
10915fi
10916
10917echo "$as_me:$LINENO: checking for off_t" >&5
10918echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10919if test "${ac_cv_type_off_t+set}" = set; then
10920  echo $ECHO_N "(cached) $ECHO_C" >&6
10921else
10922  cat >conftest.$ac_ext <<_ACEOF
10923/* confdefs.h.  */
10924_ACEOF
10925cat confdefs.h >>conftest.$ac_ext
10926cat >>conftest.$ac_ext <<_ACEOF
10927/* end confdefs.h.  */
10928$ac_includes_default
10929int
10930main ()
10931{
10932if ((off_t *) 0)
10933  return 0;
10934if (sizeof (off_t))
10935  return 0;
10936  ;
10937  return 0;
10938}
10939_ACEOF
10940rm -f conftest.$ac_objext
10941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942  (eval $ac_compile) 2>conftest.er1
10943  ac_status=$?
10944  grep -v '^ *+' conftest.er1 >conftest.err
10945  rm -f conftest.er1
10946  cat conftest.err >&5
10947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948  (exit $ac_status); } &&
10949	 { ac_try='test -z "$ac_c_werror_flag"
10950			 || test ! -s conftest.err'
10951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952  (eval $ac_try) 2>&5
10953  ac_status=$?
10954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955  (exit $ac_status); }; } &&
10956	 { ac_try='test -s conftest.$ac_objext'
10957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958  (eval $ac_try) 2>&5
10959  ac_status=$?
10960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961  (exit $ac_status); }; }; then
10962  ac_cv_type_off_t=yes
10963else
10964  echo "$as_me: failed program was:" >&5
10965sed 's/^/| /' conftest.$ac_ext >&5
10966
10967ac_cv_type_off_t=no
10968fi
10969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10970fi
10971echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10972echo "${ECHO_T}$ac_cv_type_off_t" >&6
10973if test $ac_cv_type_off_t = yes; then
10974  :
10975else
10976
10977cat >>confdefs.h <<_ACEOF
10978#define off_t long
10979_ACEOF
10980
10981fi
10982
10983echo "$as_me:$LINENO: checking for pid_t" >&5
10984echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10985if test "${ac_cv_type_pid_t+set}" = set; then
10986  echo $ECHO_N "(cached) $ECHO_C" >&6
10987else
10988  cat >conftest.$ac_ext <<_ACEOF
10989/* confdefs.h.  */
10990_ACEOF
10991cat confdefs.h >>conftest.$ac_ext
10992cat >>conftest.$ac_ext <<_ACEOF
10993/* end confdefs.h.  */
10994$ac_includes_default
10995int
10996main ()
10997{
10998if ((pid_t *) 0)
10999  return 0;
11000if (sizeof (pid_t))
11001  return 0;
11002  ;
11003  return 0;
11004}
11005_ACEOF
11006rm -f conftest.$ac_objext
11007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008  (eval $ac_compile) 2>conftest.er1
11009  ac_status=$?
11010  grep -v '^ *+' conftest.er1 >conftest.err
11011  rm -f conftest.er1
11012  cat conftest.err >&5
11013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014  (exit $ac_status); } &&
11015	 { ac_try='test -z "$ac_c_werror_flag"
11016			 || test ! -s conftest.err'
11017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018  (eval $ac_try) 2>&5
11019  ac_status=$?
11020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021  (exit $ac_status); }; } &&
11022	 { ac_try='test -s conftest.$ac_objext'
11023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024  (eval $ac_try) 2>&5
11025  ac_status=$?
11026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027  (exit $ac_status); }; }; then
11028  ac_cv_type_pid_t=yes
11029else
11030  echo "$as_me: failed program was:" >&5
11031sed 's/^/| /' conftest.$ac_ext >&5
11032
11033ac_cv_type_pid_t=no
11034fi
11035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11036fi
11037echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11038echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11039if test $ac_cv_type_pid_t = yes; then
11040  :
11041else
11042
11043cat >>confdefs.h <<_ACEOF
11044#define pid_t int
11045_ACEOF
11046
11047fi
11048
11049echo "$as_me:$LINENO: checking for size_t" >&5
11050echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11051if test "${ac_cv_type_size_t+set}" = set; then
11052  echo $ECHO_N "(cached) $ECHO_C" >&6
11053else
11054  cat >conftest.$ac_ext <<_ACEOF
11055/* confdefs.h.  */
11056_ACEOF
11057cat confdefs.h >>conftest.$ac_ext
11058cat >>conftest.$ac_ext <<_ACEOF
11059/* end confdefs.h.  */
11060$ac_includes_default
11061int
11062main ()
11063{
11064if ((size_t *) 0)
11065  return 0;
11066if (sizeof (size_t))
11067  return 0;
11068  ;
11069  return 0;
11070}
11071_ACEOF
11072rm -f conftest.$ac_objext
11073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11074  (eval $ac_compile) 2>conftest.er1
11075  ac_status=$?
11076  grep -v '^ *+' conftest.er1 >conftest.err
11077  rm -f conftest.er1
11078  cat conftest.err >&5
11079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080  (exit $ac_status); } &&
11081	 { ac_try='test -z "$ac_c_werror_flag"
11082			 || test ! -s conftest.err'
11083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084  (eval $ac_try) 2>&5
11085  ac_status=$?
11086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087  (exit $ac_status); }; } &&
11088	 { ac_try='test -s conftest.$ac_objext'
11089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090  (eval $ac_try) 2>&5
11091  ac_status=$?
11092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093  (exit $ac_status); }; }; then
11094  ac_cv_type_size_t=yes
11095else
11096  echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
11099ac_cv_type_size_t=no
11100fi
11101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11102fi
11103echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11104echo "${ECHO_T}$ac_cv_type_size_t" >&6
11105if test $ac_cv_type_size_t = yes; then
11106  :
11107else
11108
11109cat >>confdefs.h <<_ACEOF
11110#define size_t unsigned
11111_ACEOF
11112
11113fi
11114
11115echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11116echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11117if test "${ac_cv_type_uid_t+set}" = set; then
11118  echo $ECHO_N "(cached) $ECHO_C" >&6
11119else
11120  cat >conftest.$ac_ext <<_ACEOF
11121/* confdefs.h.  */
11122_ACEOF
11123cat confdefs.h >>conftest.$ac_ext
11124cat >>conftest.$ac_ext <<_ACEOF
11125/* end confdefs.h.  */
11126#include <sys/types.h>
11127
11128_ACEOF
11129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11130  $EGREP "uid_t" >/dev/null 2>&1; then
11131  ac_cv_type_uid_t=yes
11132else
11133  ac_cv_type_uid_t=no
11134fi
11135rm -f conftest*
11136
11137fi
11138echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11139echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11140if test $ac_cv_type_uid_t = no; then
11141
11142cat >>confdefs.h <<\_ACEOF
11143#define uid_t int
11144_ACEOF
11145
11146
11147cat >>confdefs.h <<\_ACEOF
11148#define gid_t int
11149_ACEOF
11150
11151fi
11152
11153echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11154echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11155if test "${ac_cv_header_time+set}" = set; then
11156  echo $ECHO_N "(cached) $ECHO_C" >&6
11157else
11158  cat >conftest.$ac_ext <<_ACEOF
11159/* confdefs.h.  */
11160_ACEOF
11161cat confdefs.h >>conftest.$ac_ext
11162cat >>conftest.$ac_ext <<_ACEOF
11163/* end confdefs.h.  */
11164#include <sys/types.h>
11165#include <sys/time.h>
11166#include <time.h>
11167
11168int
11169main ()
11170{
11171if ((struct tm *) 0)
11172return 0;
11173  ;
11174  return 0;
11175}
11176_ACEOF
11177rm -f conftest.$ac_objext
11178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11179  (eval $ac_compile) 2>conftest.er1
11180  ac_status=$?
11181  grep -v '^ *+' conftest.er1 >conftest.err
11182  rm -f conftest.er1
11183  cat conftest.err >&5
11184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185  (exit $ac_status); } &&
11186	 { ac_try='test -z "$ac_c_werror_flag"
11187			 || test ! -s conftest.err'
11188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189  (eval $ac_try) 2>&5
11190  ac_status=$?
11191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192  (exit $ac_status); }; } &&
11193	 { ac_try='test -s conftest.$ac_objext'
11194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195  (eval $ac_try) 2>&5
11196  ac_status=$?
11197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198  (exit $ac_status); }; }; then
11199  ac_cv_header_time=yes
11200else
11201  echo "$as_me: failed program was:" >&5
11202sed 's/^/| /' conftest.$ac_ext >&5
11203
11204ac_cv_header_time=no
11205fi
11206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11207fi
11208echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11209echo "${ECHO_T}$ac_cv_header_time" >&6
11210if test $ac_cv_header_time = yes; then
11211
11212cat >>confdefs.h <<\_ACEOF
11213#define TIME_WITH_SYS_TIME 1
11214_ACEOF
11215
11216fi
11217
11218echo "$as_me:$LINENO: checking for ino_t" >&5
11219echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11220if test "${ac_cv_type_ino_t+set}" = set; then
11221  echo $ECHO_N "(cached) $ECHO_C" >&6
11222else
11223  cat >conftest.$ac_ext <<_ACEOF
11224/* confdefs.h.  */
11225_ACEOF
11226cat confdefs.h >>conftest.$ac_ext
11227cat >>conftest.$ac_ext <<_ACEOF
11228/* end confdefs.h.  */
11229$ac_includes_default
11230int
11231main ()
11232{
11233if ((ino_t *) 0)
11234  return 0;
11235if (sizeof (ino_t))
11236  return 0;
11237  ;
11238  return 0;
11239}
11240_ACEOF
11241rm -f conftest.$ac_objext
11242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11243  (eval $ac_compile) 2>conftest.er1
11244  ac_status=$?
11245  grep -v '^ *+' conftest.er1 >conftest.err
11246  rm -f conftest.er1
11247  cat conftest.err >&5
11248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249  (exit $ac_status); } &&
11250	 { ac_try='test -z "$ac_c_werror_flag"
11251			 || test ! -s conftest.err'
11252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253  (eval $ac_try) 2>&5
11254  ac_status=$?
11255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256  (exit $ac_status); }; } &&
11257	 { ac_try='test -s conftest.$ac_objext'
11258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259  (eval $ac_try) 2>&5
11260  ac_status=$?
11261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262  (exit $ac_status); }; }; then
11263  ac_cv_type_ino_t=yes
11264else
11265  echo "$as_me: failed program was:" >&5
11266sed 's/^/| /' conftest.$ac_ext >&5
11267
11268ac_cv_type_ino_t=no
11269fi
11270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11271fi
11272echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11273echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11274if test $ac_cv_type_ino_t = yes; then
11275  :
11276else
11277
11278cat >>confdefs.h <<_ACEOF
11279#define ino_t long
11280_ACEOF
11281
11282fi
11283
11284echo "$as_me:$LINENO: checking for dev_t" >&5
11285echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11286if test "${ac_cv_type_dev_t+set}" = set; then
11287  echo $ECHO_N "(cached) $ECHO_C" >&6
11288else
11289  cat >conftest.$ac_ext <<_ACEOF
11290/* confdefs.h.  */
11291_ACEOF
11292cat confdefs.h >>conftest.$ac_ext
11293cat >>conftest.$ac_ext <<_ACEOF
11294/* end confdefs.h.  */
11295$ac_includes_default
11296int
11297main ()
11298{
11299if ((dev_t *) 0)
11300  return 0;
11301if (sizeof (dev_t))
11302  return 0;
11303  ;
11304  return 0;
11305}
11306_ACEOF
11307rm -f conftest.$ac_objext
11308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11309  (eval $ac_compile) 2>conftest.er1
11310  ac_status=$?
11311  grep -v '^ *+' conftest.er1 >conftest.err
11312  rm -f conftest.er1
11313  cat conftest.err >&5
11314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315  (exit $ac_status); } &&
11316	 { ac_try='test -z "$ac_c_werror_flag"
11317			 || test ! -s conftest.err'
11318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319  (eval $ac_try) 2>&5
11320  ac_status=$?
11321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322  (exit $ac_status); }; } &&
11323	 { ac_try='test -s conftest.$ac_objext'
11324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325  (eval $ac_try) 2>&5
11326  ac_status=$?
11327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328  (exit $ac_status); }; }; then
11329  ac_cv_type_dev_t=yes
11330else
11331  echo "$as_me: failed program was:" >&5
11332sed 's/^/| /' conftest.$ac_ext >&5
11333
11334ac_cv_type_dev_t=no
11335fi
11336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11337fi
11338echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11339echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11340if test $ac_cv_type_dev_t = yes; then
11341  :
11342else
11343
11344cat >>confdefs.h <<_ACEOF
11345#define dev_t unsigned
11346_ACEOF
11347
11348fi
11349
11350
11351echo "$as_me:$LINENO: checking for rlim_t" >&5
11352echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11353if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11354  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11355echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11356else
11357  cat >conftest.$ac_ext <<_ACEOF
11358/* confdefs.h.  */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h.  */
11363
11364#include <sys/types.h>
11365#if STDC_HEADERS
11366#include <stdlib.h>
11367#include <stddef.h>
11368#endif
11369#ifdef HAVE_SYS_RESOURCE_H
11370#include <sys/resource.h>
11371#endif
11372
11373_ACEOF
11374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11375  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11376  ac_cv_type_rlim_t=yes
11377else
11378  ac_cv_type_rlim_t=no
11379fi
11380rm -f conftest*
11381
11382	  echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11383echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
11384fi
11385if test $ac_cv_type_rlim_t = no; then
11386  cat >> confdefs.h <<\EOF
11387#define rlim_t unsigned long
11388EOF
11389fi
11390
11391echo "$as_me:$LINENO: checking for stack_t" >&5
11392echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11393if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11394  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11395echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
11396else
11397  cat >conftest.$ac_ext <<_ACEOF
11398/* confdefs.h.  */
11399_ACEOF
11400cat confdefs.h >>conftest.$ac_ext
11401cat >>conftest.$ac_ext <<_ACEOF
11402/* end confdefs.h.  */
11403
11404#include <sys/types.h>
11405#if STDC_HEADERS
11406#include <stdlib.h>
11407#include <stddef.h>
11408#endif
11409#include <signal.h>
11410
11411_ACEOF
11412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11413  $EGREP "stack_t" >/dev/null 2>&1; then
11414  ac_cv_type_stack_t=yes
11415else
11416  ac_cv_type_stack_t=no
11417fi
11418rm -f conftest*
11419
11420	  echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11421echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11422fi
11423if test $ac_cv_type_stack_t = no; then
11424  cat >> confdefs.h <<\EOF
11425#define stack_t struct sigaltstack
11426EOF
11427fi
11428
11429echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11430echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11431cat >conftest.$ac_ext <<_ACEOF
11432/* confdefs.h.  */
11433_ACEOF
11434cat confdefs.h >>conftest.$ac_ext
11435cat >>conftest.$ac_ext <<_ACEOF
11436/* end confdefs.h.  */
11437
11438#include <sys/types.h>
11439#if STDC_HEADERS
11440#include <stdlib.h>
11441#include <stddef.h>
11442#endif
11443#include <signal.h>
11444#include "confdefs.h"
11445
11446int
11447main ()
11448{
11449stack_t sigstk; sigstk.ss_base = 0;
11450  ;
11451  return 0;
11452}
11453_ACEOF
11454rm -f conftest.$ac_objext
11455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11456  (eval $ac_compile) 2>conftest.er1
11457  ac_status=$?
11458  grep -v '^ *+' conftest.er1 >conftest.err
11459  rm -f conftest.er1
11460  cat conftest.err >&5
11461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462  (exit $ac_status); } &&
11463	 { ac_try='test -z "$ac_c_werror_flag"
11464			 || test ! -s conftest.err'
11465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466  (eval $ac_try) 2>&5
11467  ac_status=$?
11468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469  (exit $ac_status); }; } &&
11470	 { ac_try='test -s conftest.$ac_objext'
11471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472  (eval $ac_try) 2>&5
11473  ac_status=$?
11474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475  (exit $ac_status); }; }; then
11476  echo "$as_me:$LINENO: result: yes" >&5
11477echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11478#define HAVE_SS_BASE 1
11479_ACEOF
11480
11481else
11482  echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
11485echo "$as_me:$LINENO: result: no" >&5
11486echo "${ECHO_T}no" >&6
11487fi
11488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11489
11490olibs="$LIBS"
11491echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11492echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11493
11494# Check whether --with-tlib or --without-tlib was given.
11495if test "${with_tlib+set}" = set; then
11496  withval="$with_tlib"
11497
11498fi;
11499if test -n "$with_tlib"; then
11500  echo "$as_me:$LINENO: result: $with_tlib" >&5
11501echo "${ECHO_T}$with_tlib" >&6
11502  LIBS="$LIBS -l$with_tlib"
11503  echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11504echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11505  cat >conftest.$ac_ext <<_ACEOF
11506/* confdefs.h.  */
11507_ACEOF
11508cat confdefs.h >>conftest.$ac_ext
11509cat >>conftest.$ac_ext <<_ACEOF
11510/* end confdefs.h.  */
11511
11512int
11513main ()
11514{
11515
11516  ;
11517  return 0;
11518}
11519_ACEOF
11520rm -f conftest.$ac_objext conftest$ac_exeext
11521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11522  (eval $ac_link) 2>conftest.er1
11523  ac_status=$?
11524  grep -v '^ *+' conftest.er1 >conftest.err
11525  rm -f conftest.er1
11526  cat conftest.err >&5
11527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528  (exit $ac_status); } &&
11529	 { ac_try='test -z "$ac_c_werror_flag"
11530			 || test ! -s conftest.err'
11531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532  (eval $ac_try) 2>&5
11533  ac_status=$?
11534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535  (exit $ac_status); }; } &&
11536	 { ac_try='test -s conftest$ac_exeext'
11537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538  (eval $ac_try) 2>&5
11539  ac_status=$?
11540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541  (exit $ac_status); }; }; then
11542  echo "$as_me:$LINENO: result: OK" >&5
11543echo "${ECHO_T}OK" >&6
11544else
11545  echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548{ { echo "$as_me:$LINENO: error: FAILED" >&5
11549echo "$as_me: error: FAILED" >&2;}
11550   { (exit 1); exit 1; }; }
11551fi
11552rm -f conftest.err conftest.$ac_objext \
11553      conftest$ac_exeext conftest.$ac_ext
11554    olibs="$LIBS"
11555else
11556  echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11557echo "${ECHO_T}empty: automatic terminal library selection" >&6
11558              case "`uname -s 2>/dev/null`" in
11559	OSF1|SCO_SV)	tlibs="ncurses curses termlib termcap";;
11560	*)	tlibs="ncurses termlib termcap curses";;
11561  esac
11562  for libname in $tlibs; do
11563
11564as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11565echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11566echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11567if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11568  echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570  ac_check_lib_save_LIBS=$LIBS
11571LIBS="-l${libname}  $LIBS"
11572cat >conftest.$ac_ext <<_ACEOF
11573/* confdefs.h.  */
11574_ACEOF
11575cat confdefs.h >>conftest.$ac_ext
11576cat >>conftest.$ac_ext <<_ACEOF
11577/* end confdefs.h.  */
11578
11579/* Override any gcc2 internal prototype to avoid an error.  */
11580#ifdef __cplusplus
11581extern "C"
11582#endif
11583/* We use char because int might match the return type of a gcc2
11584   builtin and then its argument prototype would still apply.  */
11585char tgetent ();
11586int
11587main ()
11588{
11589tgetent ();
11590  ;
11591  return 0;
11592}
11593_ACEOF
11594rm -f conftest.$ac_objext conftest$ac_exeext
11595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11596  (eval $ac_link) 2>conftest.er1
11597  ac_status=$?
11598  grep -v '^ *+' conftest.er1 >conftest.err
11599  rm -f conftest.er1
11600  cat conftest.err >&5
11601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602  (exit $ac_status); } &&
11603	 { ac_try='test -z "$ac_c_werror_flag"
11604			 || test ! -s conftest.err'
11605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606  (eval $ac_try) 2>&5
11607  ac_status=$?
11608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609  (exit $ac_status); }; } &&
11610	 { ac_try='test -s conftest$ac_exeext'
11611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612  (eval $ac_try) 2>&5
11613  ac_status=$?
11614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615  (exit $ac_status); }; }; then
11616  eval "$as_ac_Lib=yes"
11617else
11618  echo "$as_me: failed program was:" >&5
11619sed 's/^/| /' conftest.$ac_ext >&5
11620
11621eval "$as_ac_Lib=no"
11622fi
11623rm -f conftest.err conftest.$ac_objext \
11624      conftest$ac_exeext conftest.$ac_ext
11625LIBS=$ac_check_lib_save_LIBS
11626fi
11627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11628echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11629if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11630  cat >>confdefs.h <<_ACEOF
11631#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11632_ACEOF
11633
11634  LIBS="-l${libname} $LIBS"
11635
11636fi
11637
11638    if test "x$olibs" != "x$LIBS"; then
11639                        if test "$cross_compiling" = yes; then
11640  res="FAIL"
11641else
11642  cat >conftest.$ac_ext <<_ACEOF
11643/* confdefs.h.  */
11644_ACEOF
11645cat confdefs.h >>conftest.$ac_ext
11646cat >>conftest.$ac_ext <<_ACEOF
11647/* end confdefs.h.  */
11648
11649#ifdef HAVE_TERMCAP_H
11650# include <termcap.h>
11651#endif
11652main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11653_ACEOF
11654rm -f conftest$ac_exeext
11655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656  (eval $ac_link) 2>&5
11657  ac_status=$?
11658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661  (eval $ac_try) 2>&5
11662  ac_status=$?
11663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664  (exit $ac_status); }; }; then
11665  res="OK"
11666else
11667  echo "$as_me: program exited with status $ac_status" >&5
11668echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
11670
11671( exit $ac_status )
11672res="FAIL"
11673fi
11674rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11675fi
11676      if test "$res" = "OK"; then
11677	break
11678      fi
11679      echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11680echo "${ECHO_T}$libname library is not usable" >&6
11681      LIBS="$olibs"
11682    fi
11683  done
11684  if test "x$olibs" = "x$LIBS"; then
11685    echo "$as_me:$LINENO: result: no terminal library found" >&5
11686echo "${ECHO_T}no terminal library found" >&6
11687  fi
11688fi
11689
11690if test "x$olibs" = "x$LIBS"; then
11691  echo "$as_me:$LINENO: checking for tgetent()" >&5
11692echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11693  cat >conftest.$ac_ext <<_ACEOF
11694/* confdefs.h.  */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h.  */
11699
11700int
11701main ()
11702{
11703char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11704  ;
11705  return 0;
11706}
11707_ACEOF
11708rm -f conftest.$ac_objext conftest$ac_exeext
11709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11710  (eval $ac_link) 2>conftest.er1
11711  ac_status=$?
11712  grep -v '^ *+' conftest.er1 >conftest.err
11713  rm -f conftest.er1
11714  cat conftest.err >&5
11715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716  (exit $ac_status); } &&
11717	 { ac_try='test -z "$ac_c_werror_flag"
11718			 || test ! -s conftest.err'
11719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720  (eval $ac_try) 2>&5
11721  ac_status=$?
11722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723  (exit $ac_status); }; } &&
11724	 { ac_try='test -s conftest$ac_exeext'
11725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726  (eval $ac_try) 2>&5
11727  ac_status=$?
11728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729  (exit $ac_status); }; }; then
11730  echo "$as_me:$LINENO: result: yes" >&5
11731echo "${ECHO_T}yes" >&6
11732else
11733  echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736{ { echo "$as_me:$LINENO: error: NOT FOUND!
11737      You need to install a terminal library; for example ncurses.
11738      Or specify the name of the library with --with-tlib." >&5
11739echo "$as_me: error: NOT FOUND!
11740      You need to install a terminal library; for example ncurses.
11741      Or specify the name of the library with --with-tlib." >&2;}
11742   { (exit 1); exit 1; }; }
11743fi
11744rm -f conftest.err conftest.$ac_objext \
11745      conftest$ac_exeext conftest.$ac_ext
11746fi
11747
11748echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11749echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
11750if test "$cross_compiling" = yes; then
11751  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11752echo "$as_me: error: failed to compile test program." >&2;}
11753   { (exit 1); exit 1; }; }
11754else
11755  cat >conftest.$ac_ext <<_ACEOF
11756/* confdefs.h.  */
11757_ACEOF
11758cat confdefs.h >>conftest.$ac_ext
11759cat >>conftest.$ac_ext <<_ACEOF
11760/* end confdefs.h.  */
11761
11762#ifdef HAVE_TERMCAP_H
11763# include <termcap.h>
11764#endif
11765main()
11766{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11767_ACEOF
11768rm -f conftest$ac_exeext
11769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770  (eval $ac_link) 2>&5
11771  ac_status=$?
11772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775  (eval $ac_try) 2>&5
11776  ac_status=$?
11777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778  (exit $ac_status); }; }; then
11779  echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11780echo "${ECHO_T}no -- we are in termcap land" >&6
11781else
11782  echo "$as_me: program exited with status $ac_status" >&5
11783echo "$as_me: failed program was:" >&5
11784sed 's/^/| /' conftest.$ac_ext >&5
11785
11786( exit $ac_status )
11787echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11788echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
11789#define TERMINFO 1
11790_ACEOF
11791
11792fi
11793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11794fi
11795
11796if test "x$olibs" != "x$LIBS"; then
11797  echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11798echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
11799  if test "$cross_compiling" = yes; then
11800  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11801echo "$as_me: error: failed to compile test program." >&2;}
11802   { (exit 1); exit 1; }; }
11803else
11804  cat >conftest.$ac_ext <<_ACEOF
11805/* confdefs.h.  */
11806_ACEOF
11807cat confdefs.h >>conftest.$ac_ext
11808cat >>conftest.$ac_ext <<_ACEOF
11809/* end confdefs.h.  */
11810
11811#ifdef HAVE_TERMCAP_H
11812# include <termcap.h>
11813#endif
11814main()
11815{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
11816_ACEOF
11817rm -f conftest$ac_exeext
11818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819  (eval $ac_link) 2>&5
11820  ac_status=$?
11821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824  (eval $ac_try) 2>&5
11825  ac_status=$?
11826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827  (exit $ac_status); }; }; then
11828  echo "$as_me:$LINENO: result: zero" >&5
11829echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
11830#define TGETENT_ZERO_ERR 0
11831_ACEOF
11832
11833else
11834  echo "$as_me: program exited with status $ac_status" >&5
11835echo "$as_me: failed program was:" >&5
11836sed 's/^/| /' conftest.$ac_ext >&5
11837
11838( exit $ac_status )
11839echo "$as_me:$LINENO: result: non-zero" >&5
11840echo "${ECHO_T}non-zero" >&6
11841fi
11842rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11843fi
11844fi
11845
11846echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11847echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11848cat >conftest.$ac_ext <<_ACEOF
11849/* confdefs.h.  */
11850_ACEOF
11851cat confdefs.h >>conftest.$ac_ext
11852cat >>conftest.$ac_ext <<_ACEOF
11853/* end confdefs.h.  */
11854
11855#ifdef HAVE_TERMCAP_H
11856# include <termcap.h>
11857#endif
11858
11859int
11860main ()
11861{
11862ospeed = 20000
11863  ;
11864  return 0;
11865}
11866_ACEOF
11867rm -f conftest.$ac_objext conftest$ac_exeext
11868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11869  (eval $ac_link) 2>conftest.er1
11870  ac_status=$?
11871  grep -v '^ *+' conftest.er1 >conftest.err
11872  rm -f conftest.er1
11873  cat conftest.err >&5
11874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875  (exit $ac_status); } &&
11876	 { ac_try='test -z "$ac_c_werror_flag"
11877			 || test ! -s conftest.err'
11878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879  (eval $ac_try) 2>&5
11880  ac_status=$?
11881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882  (exit $ac_status); }; } &&
11883	 { ac_try='test -s conftest$ac_exeext'
11884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885  (eval $ac_try) 2>&5
11886  ac_status=$?
11887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888  (exit $ac_status); }; }; then
11889  echo "$as_me:$LINENO: result: yes" >&5
11890echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11891#define HAVE_OSPEED 1
11892_ACEOF
11893
11894else
11895  echo "$as_me: failed program was:" >&5
11896sed 's/^/| /' conftest.$ac_ext >&5
11897
11898echo "$as_me:$LINENO: result: no" >&5
11899echo "${ECHO_T}no" >&6
11900	echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11901echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11902	cat >conftest.$ac_ext <<_ACEOF
11903/* confdefs.h.  */
11904_ACEOF
11905cat confdefs.h >>conftest.$ac_ext
11906cat >>conftest.$ac_ext <<_ACEOF
11907/* end confdefs.h.  */
11908
11909#ifdef HAVE_TERMCAP_H
11910# include <termcap.h>
11911#endif
11912extern short ospeed;
11913
11914int
11915main ()
11916{
11917ospeed = 20000
11918  ;
11919  return 0;
11920}
11921_ACEOF
11922rm -f conftest.$ac_objext conftest$ac_exeext
11923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924  (eval $ac_link) 2>conftest.er1
11925  ac_status=$?
11926  grep -v '^ *+' conftest.er1 >conftest.err
11927  rm -f conftest.er1
11928  cat conftest.err >&5
11929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930  (exit $ac_status); } &&
11931	 { ac_try='test -z "$ac_c_werror_flag"
11932			 || test ! -s conftest.err'
11933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934  (eval $ac_try) 2>&5
11935  ac_status=$?
11936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937  (exit $ac_status); }; } &&
11938	 { ac_try='test -s conftest$ac_exeext'
11939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940  (eval $ac_try) 2>&5
11941  ac_status=$?
11942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943  (exit $ac_status); }; }; then
11944  echo "$as_me:$LINENO: result: yes" >&5
11945echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11946#define OSPEED_EXTERN 1
11947_ACEOF
11948
11949else
11950  echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952
11953echo "$as_me:$LINENO: result: no" >&5
11954echo "${ECHO_T}no" >&6
11955fi
11956rm -f conftest.err conftest.$ac_objext \
11957      conftest$ac_exeext conftest.$ac_ext
11958
11959fi
11960rm -f conftest.err conftest.$ac_objext \
11961      conftest$ac_exeext conftest.$ac_ext
11962
11963echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11964echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11965cat >conftest.$ac_ext <<_ACEOF
11966/* confdefs.h.  */
11967_ACEOF
11968cat confdefs.h >>conftest.$ac_ext
11969cat >>conftest.$ac_ext <<_ACEOF
11970/* end confdefs.h.  */
11971
11972#ifdef HAVE_TERMCAP_H
11973# include <termcap.h>
11974#endif
11975
11976int
11977main ()
11978{
11979if (UP == 0 && BC == 0) PC = 1
11980  ;
11981  return 0;
11982}
11983_ACEOF
11984rm -f conftest.$ac_objext conftest$ac_exeext
11985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11986  (eval $ac_link) 2>conftest.er1
11987  ac_status=$?
11988  grep -v '^ *+' conftest.er1 >conftest.err
11989  rm -f conftest.er1
11990  cat conftest.err >&5
11991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992  (exit $ac_status); } &&
11993	 { ac_try='test -z "$ac_c_werror_flag"
11994			 || test ! -s conftest.err'
11995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996  (eval $ac_try) 2>&5
11997  ac_status=$?
11998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999  (exit $ac_status); }; } &&
12000	 { ac_try='test -s conftest$ac_exeext'
12001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002  (eval $ac_try) 2>&5
12003  ac_status=$?
12004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005  (exit $ac_status); }; }; then
12006  echo "$as_me:$LINENO: result: yes" >&5
12007echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12008#define HAVE_UP_BC_PC 1
12009_ACEOF
12010
12011else
12012  echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
12015echo "$as_me:$LINENO: result: no" >&5
12016echo "${ECHO_T}no" >&6
12017	echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12018echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12019	cat >conftest.$ac_ext <<_ACEOF
12020/* confdefs.h.  */
12021_ACEOF
12022cat confdefs.h >>conftest.$ac_ext
12023cat >>conftest.$ac_ext <<_ACEOF
12024/* end confdefs.h.  */
12025
12026#ifdef HAVE_TERMCAP_H
12027# include <termcap.h>
12028#endif
12029extern char *UP, *BC, PC;
12030
12031int
12032main ()
12033{
12034if (UP == 0 && BC == 0) PC = 1
12035  ;
12036  return 0;
12037}
12038_ACEOF
12039rm -f conftest.$ac_objext conftest$ac_exeext
12040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12041  (eval $ac_link) 2>conftest.er1
12042  ac_status=$?
12043  grep -v '^ *+' conftest.er1 >conftest.err
12044  rm -f conftest.er1
12045  cat conftest.err >&5
12046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047  (exit $ac_status); } &&
12048	 { ac_try='test -z "$ac_c_werror_flag"
12049			 || test ! -s conftest.err'
12050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051  (eval $ac_try) 2>&5
12052  ac_status=$?
12053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054  (exit $ac_status); }; } &&
12055	 { ac_try='test -s conftest$ac_exeext'
12056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057  (eval $ac_try) 2>&5
12058  ac_status=$?
12059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060  (exit $ac_status); }; }; then
12061  echo "$as_me:$LINENO: result: yes" >&5
12062echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12063#define UP_BC_PC_EXTERN 1
12064_ACEOF
12065
12066else
12067  echo "$as_me: failed program was:" >&5
12068sed 's/^/| /' conftest.$ac_ext >&5
12069
12070echo "$as_me:$LINENO: result: no" >&5
12071echo "${ECHO_T}no" >&6
12072fi
12073rm -f conftest.err conftest.$ac_objext \
12074      conftest$ac_exeext conftest.$ac_ext
12075
12076fi
12077rm -f conftest.err conftest.$ac_objext \
12078      conftest$ac_exeext conftest.$ac_ext
12079
12080echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12081echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12082cat >conftest.$ac_ext <<_ACEOF
12083/* confdefs.h.  */
12084_ACEOF
12085cat confdefs.h >>conftest.$ac_ext
12086cat >>conftest.$ac_ext <<_ACEOF
12087/* end confdefs.h.  */
12088
12089#ifdef HAVE_TERMCAP_H
12090# include <termcap.h>
12091#endif
12092
12093int
12094main ()
12095{
12096extern int xx(); tputs("test", 1, (outfuntype)xx)
12097  ;
12098  return 0;
12099}
12100_ACEOF
12101rm -f conftest.$ac_objext
12102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103  (eval $ac_compile) 2>conftest.er1
12104  ac_status=$?
12105  grep -v '^ *+' conftest.er1 >conftest.err
12106  rm -f conftest.er1
12107  cat conftest.err >&5
12108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109  (exit $ac_status); } &&
12110	 { ac_try='test -z "$ac_c_werror_flag"
12111			 || test ! -s conftest.err'
12112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113  (eval $ac_try) 2>&5
12114  ac_status=$?
12115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116  (exit $ac_status); }; } &&
12117	 { ac_try='test -s conftest.$ac_objext'
12118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119  (eval $ac_try) 2>&5
12120  ac_status=$?
12121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122  (exit $ac_status); }; }; then
12123  echo "$as_me:$LINENO: result: yes" >&5
12124echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12125#define HAVE_OUTFUNTYPE 1
12126_ACEOF
12127
12128else
12129  echo "$as_me: failed program was:" >&5
12130sed 's/^/| /' conftest.$ac_ext >&5
12131
12132echo "$as_me:$LINENO: result: no" >&5
12133echo "${ECHO_T}no" >&6
12134fi
12135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12136
12137echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12138echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12139cat >conftest.$ac_ext <<_ACEOF
12140/* confdefs.h.  */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h.  */
12145
12146#include <sys/types.h>
12147#include <sys/time.h>
12148#include <sys/select.h>
12149int
12150main ()
12151{
12152
12153  ;
12154  return 0;
12155}
12156_ACEOF
12157rm -f conftest.$ac_objext
12158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12159  (eval $ac_compile) 2>conftest.er1
12160  ac_status=$?
12161  grep -v '^ *+' conftest.er1 >conftest.err
12162  rm -f conftest.er1
12163  cat conftest.err >&5
12164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165  (exit $ac_status); } &&
12166	 { ac_try='test -z "$ac_c_werror_flag"
12167			 || test ! -s conftest.err'
12168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169  (eval $ac_try) 2>&5
12170  ac_status=$?
12171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172  (exit $ac_status); }; } &&
12173	 { ac_try='test -s conftest.$ac_objext'
12174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175  (eval $ac_try) 2>&5
12176  ac_status=$?
12177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178  (exit $ac_status); }; }; then
12179  echo "$as_me:$LINENO: result: yes" >&5
12180echo "${ECHO_T}yes" >&6
12181			cat >>confdefs.h <<\_ACEOF
12182#define SYS_SELECT_WITH_SYS_TIME 1
12183_ACEOF
12184
12185else
12186  echo "$as_me: failed program was:" >&5
12187sed 's/^/| /' conftest.$ac_ext >&5
12188
12189echo "$as_me:$LINENO: result: no" >&5
12190echo "${ECHO_T}no" >&6
12191fi
12192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12193
12194
12195echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12196echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12197if test -r /dev/ptc; then
12198  cat >>confdefs.h <<\_ACEOF
12199#define HAVE_DEV_PTC 1
12200_ACEOF
12201
12202  echo "$as_me:$LINENO: result: yes" >&5
12203echo "${ECHO_T}yes" >&6
12204else
12205  echo "$as_me:$LINENO: result: no" >&5
12206echo "${ECHO_T}no" >&6
12207fi
12208
12209echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12210echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
12211if test -c /dev/ptmx ; then
12212  cat >conftest.$ac_ext <<_ACEOF
12213/* confdefs.h.  */
12214_ACEOF
12215cat confdefs.h >>conftest.$ac_ext
12216cat >>conftest.$ac_ext <<_ACEOF
12217/* end confdefs.h.  */
12218
12219int
12220main ()
12221{
12222ptsname(0);grantpt(0);unlockpt(0);
12223  ;
12224  return 0;
12225}
12226_ACEOF
12227rm -f conftest.$ac_objext conftest$ac_exeext
12228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12229  (eval $ac_link) 2>conftest.er1
12230  ac_status=$?
12231  grep -v '^ *+' conftest.er1 >conftest.err
12232  rm -f conftest.er1
12233  cat conftest.err >&5
12234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235  (exit $ac_status); } &&
12236	 { ac_try='test -z "$ac_c_werror_flag"
12237			 || test ! -s conftest.err'
12238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239  (eval $ac_try) 2>&5
12240  ac_status=$?
12241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242  (exit $ac_status); }; } &&
12243	 { ac_try='test -s conftest$ac_exeext'
12244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245  (eval $ac_try) 2>&5
12246  ac_status=$?
12247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248  (exit $ac_status); }; }; then
12249  echo "$as_me:$LINENO: result: yes" >&5
12250echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12251#define HAVE_SVR4_PTYS 1
12252_ACEOF
12253
12254else
12255  echo "$as_me: failed program was:" >&5
12256sed 's/^/| /' conftest.$ac_ext >&5
12257
12258echo "$as_me:$LINENO: result: no" >&5
12259echo "${ECHO_T}no" >&6
12260fi
12261rm -f conftest.err conftest.$ac_objext \
12262      conftest$ac_exeext conftest.$ac_ext
12263else
12264  echo "$as_me:$LINENO: result: no" >&5
12265echo "${ECHO_T}no" >&6
12266fi
12267
12268echo "$as_me:$LINENO: checking for ptyranges" >&5
12269echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
12270if test -d /dev/ptym ; then
12271  pdir='/dev/ptym'
12272else
12273  pdir='/dev'
12274fi
12275cat >conftest.$ac_ext <<_ACEOF
12276/* confdefs.h.  */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h.  */
12281#ifdef M_UNIX
12282   yes;
12283#endif
12284
12285_ACEOF
12286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12287  $EGREP "yes" >/dev/null 2>&1; then
12288  ptys=`echo /dev/ptyp??`
12289else
12290  ptys=`echo $pdir/pty??`
12291fi
12292rm -f conftest*
12293
12294if test "$ptys" != "$pdir/pty??" ; then
12295  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12296  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12297  cat >>confdefs.h <<_ACEOF
12298#define PTYRANGE0 "$p0"
12299_ACEOF
12300
12301  cat >>confdefs.h <<_ACEOF
12302#define PTYRANGE1 "$p1"
12303_ACEOF
12304
12305  echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12306echo "${ECHO_T}$p0 / $p1" >&6
12307else
12308  echo "$as_me:$LINENO: result: don't know" >&5
12309echo "${ECHO_T}don't know" >&6
12310fi
12311
12312echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12313echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
12314rm -f conftest_grp
12315if test "$cross_compiling" = yes; then
12316  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12317echo "$as_me: error: failed to compile test program" >&2;}
12318   { (exit 1); exit 1; }; }
12319else
12320  cat >conftest.$ac_ext <<_ACEOF
12321/* confdefs.h.  */
12322_ACEOF
12323cat confdefs.h >>conftest.$ac_ext
12324cat >>conftest.$ac_ext <<_ACEOF
12325/* end confdefs.h.  */
12326
12327#include <sys/types.h>
12328#include <sys/stat.h>
12329#include <stdio.h>
12330main()
12331{
12332  struct stat sb;
12333  char *x,*ttyname();
12334  int om, m;
12335  FILE *fp;
12336
12337  if (!(x = ttyname(0))) exit(1);
12338  if (stat(x, &sb)) exit(1);
12339  om = sb.st_mode;
12340  if (om & 002) exit(0);
12341  m = system("mesg y");
12342  if (m == -1 || m == 127) exit(1);
12343  if (stat(x, &sb)) exit(1);
12344  m = sb.st_mode;
12345  if (chmod(x, om)) exit(1);
12346  if (m & 002) exit(0);
12347  if (sb.st_gid == getgid()) exit(1);
12348  if (!(fp=fopen("conftest_grp", "w")))
12349    exit(1);
12350  fprintf(fp, "%d\n", sb.st_gid);
12351  fclose(fp);
12352  exit(0);
12353}
12354
12355_ACEOF
12356rm -f conftest$ac_exeext
12357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358  (eval $ac_link) 2>&5
12359  ac_status=$?
12360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363  (eval $ac_try) 2>&5
12364  ac_status=$?
12365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366  (exit $ac_status); }; }; then
12367
12368    if test -f conftest_grp; then
12369	ptygrp=`cat conftest_grp`
12370	echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12371echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12372	cat >>confdefs.h <<\_ACEOF
12373#define PTYMODE 0620
12374_ACEOF
12375
12376	cat >>confdefs.h <<_ACEOF
12377#define PTYGROUP $ptygrp
12378_ACEOF
12379
12380    else
12381	echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12382echo "${ECHO_T}ptys are world accessable" >&6
12383    fi
12384
12385else
12386  echo "$as_me: program exited with status $ac_status" >&5
12387echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
12390( exit $ac_status )
12391echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12392echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12393fi
12394rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12395fi
12396rm -f conftest_grp
12397
12398
12399echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12400echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12401if test "${ac_cv_type_signal+set}" = set; then
12402  echo $ECHO_N "(cached) $ECHO_C" >&6
12403else
12404  cat >conftest.$ac_ext <<_ACEOF
12405/* confdefs.h.  */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
12409/* end confdefs.h.  */
12410#include <sys/types.h>
12411#include <signal.h>
12412#ifdef signal
12413# undef signal
12414#endif
12415#ifdef __cplusplus
12416extern "C" void (*signal (int, void (*)(int)))(int);
12417#else
12418void (*signal ()) ();
12419#endif
12420
12421int
12422main ()
12423{
12424int i;
12425  ;
12426  return 0;
12427}
12428_ACEOF
12429rm -f conftest.$ac_objext
12430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12431  (eval $ac_compile) 2>conftest.er1
12432  ac_status=$?
12433  grep -v '^ *+' conftest.er1 >conftest.err
12434  rm -f conftest.er1
12435  cat conftest.err >&5
12436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437  (exit $ac_status); } &&
12438	 { ac_try='test -z "$ac_c_werror_flag"
12439			 || test ! -s conftest.err'
12440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441  (eval $ac_try) 2>&5
12442  ac_status=$?
12443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444  (exit $ac_status); }; } &&
12445	 { ac_try='test -s conftest.$ac_objext'
12446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447  (eval $ac_try) 2>&5
12448  ac_status=$?
12449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450  (exit $ac_status); }; }; then
12451  ac_cv_type_signal=void
12452else
12453  echo "$as_me: failed program was:" >&5
12454sed 's/^/| /' conftest.$ac_ext >&5
12455
12456ac_cv_type_signal=int
12457fi
12458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12459fi
12460echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12461echo "${ECHO_T}$ac_cv_type_signal" >&6
12462
12463cat >>confdefs.h <<_ACEOF
12464#define RETSIGTYPE $ac_cv_type_signal
12465_ACEOF
12466
12467
12468
12469if test $ac_cv_type_signal = void; then
12470  cat >>confdefs.h <<\_ACEOF
12471#define SIGRETURN return
12472_ACEOF
12473
12474else
12475  cat >>confdefs.h <<\_ACEOF
12476#define SIGRETURN return 0
12477_ACEOF
12478
12479fi
12480
12481echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12482echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12483cat >conftest.$ac_ext <<_ACEOF
12484/* confdefs.h.  */
12485_ACEOF
12486cat confdefs.h >>conftest.$ac_ext
12487cat >>conftest.$ac_ext <<_ACEOF
12488/* end confdefs.h.  */
12489
12490#include <signal.h>
12491test_sig()
12492{
12493    struct sigcontext *scont;
12494    scont = (struct sigcontext *)0;
12495    return 1;
12496}
12497int
12498main ()
12499{
12500
12501  ;
12502  return 0;
12503}
12504_ACEOF
12505rm -f conftest.$ac_objext
12506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507  (eval $ac_compile) 2>conftest.er1
12508  ac_status=$?
12509  grep -v '^ *+' conftest.er1 >conftest.err
12510  rm -f conftest.er1
12511  cat conftest.err >&5
12512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513  (exit $ac_status); } &&
12514	 { ac_try='test -z "$ac_c_werror_flag"
12515			 || test ! -s conftest.err'
12516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517  (eval $ac_try) 2>&5
12518  ac_status=$?
12519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520  (exit $ac_status); }; } &&
12521	 { ac_try='test -s conftest.$ac_objext'
12522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523  (eval $ac_try) 2>&5
12524  ac_status=$?
12525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526  (exit $ac_status); }; }; then
12527  echo "$as_me:$LINENO: result: yes" >&5
12528echo "${ECHO_T}yes" >&6
12529		cat >>confdefs.h <<\_ACEOF
12530#define HAVE_SIGCONTEXT 1
12531_ACEOF
12532
12533else
12534  echo "$as_me: failed program was:" >&5
12535sed 's/^/| /' conftest.$ac_ext >&5
12536
12537echo "$as_me:$LINENO: result: no" >&5
12538echo "${ECHO_T}no" >&6
12539fi
12540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12541
12542echo "$as_me:$LINENO: checking getcwd implementation" >&5
12543echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
12544if test "$cross_compiling" = yes; then
12545  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12546echo "$as_me: error: failed to compile test program" >&2;}
12547   { (exit 1); exit 1; }; }
12548else
12549  cat >conftest.$ac_ext <<_ACEOF
12550/* confdefs.h.  */
12551_ACEOF
12552cat confdefs.h >>conftest.$ac_ext
12553cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h.  */
12555
12556char *dagger[] = { "IFS=pwd", 0 };
12557main()
12558{
12559  char buffer[500];
12560  extern char **environ;
12561  environ = dagger;
12562  return getcwd(buffer, 500) ? 0 : 1;
12563}
12564_ACEOF
12565rm -f conftest$ac_exeext
12566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567  (eval $ac_link) 2>&5
12568  ac_status=$?
12569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572  (eval $ac_try) 2>&5
12573  ac_status=$?
12574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575  (exit $ac_status); }; }; then
12576  echo "$as_me:$LINENO: result: it is usable" >&5
12577echo "${ECHO_T}it is usable" >&6
12578else
12579  echo "$as_me: program exited with status $ac_status" >&5
12580echo "$as_me: failed program was:" >&5
12581sed 's/^/| /' conftest.$ac_ext >&5
12582
12583( exit $ac_status )
12584echo "$as_me:$LINENO: result: it stinks" >&5
12585echo "${ECHO_T}it stinks" >&6
12586		cat >>confdefs.h <<\_ACEOF
12587#define BAD_GETCWD 1
12588_ACEOF
12589
12590fi
12591rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12592fi
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
12639
12640for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12641	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12642	memset nanosleep opendir putenv qsort readlink select setenv \
12643	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12644	sigvec strcasecmp strerror strftime stricmp strncasecmp \
12645	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12646	usleep utime utimes
12647do
12648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12649echo "$as_me:$LINENO: checking for $ac_func" >&5
12650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12651if eval "test \"\${$as_ac_var+set}\" = set"; then
12652  echo $ECHO_N "(cached) $ECHO_C" >&6
12653else
12654  cat >conftest.$ac_ext <<_ACEOF
12655/* confdefs.h.  */
12656_ACEOF
12657cat confdefs.h >>conftest.$ac_ext
12658cat >>conftest.$ac_ext <<_ACEOF
12659/* end confdefs.h.  */
12660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12661   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12662#define $ac_func innocuous_$ac_func
12663
12664/* System header to define __stub macros and hopefully few prototypes,
12665    which can conflict with char $ac_func (); below.
12666    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667    <limits.h> exists even on freestanding compilers.  */
12668
12669#ifdef __STDC__
12670# include <limits.h>
12671#else
12672# include <assert.h>
12673#endif
12674
12675#undef $ac_func
12676
12677/* Override any gcc2 internal prototype to avoid an error.  */
12678#ifdef __cplusplus
12679extern "C"
12680{
12681#endif
12682/* We use char because int might match the return type of a gcc2
12683   builtin and then its argument prototype would still apply.  */
12684char $ac_func ();
12685/* The GNU C library defines this for functions which it implements
12686    to always fail with ENOSYS.  Some functions are actually named
12687    something starting with __ and the normal name is an alias.  */
12688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12689choke me
12690#else
12691char (*f) () = $ac_func;
12692#endif
12693#ifdef __cplusplus
12694}
12695#endif
12696
12697int
12698main ()
12699{
12700return f != $ac_func;
12701  ;
12702  return 0;
12703}
12704_ACEOF
12705rm -f conftest.$ac_objext conftest$ac_exeext
12706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707  (eval $ac_link) 2>conftest.er1
12708  ac_status=$?
12709  grep -v '^ *+' conftest.er1 >conftest.err
12710  rm -f conftest.er1
12711  cat conftest.err >&5
12712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713  (exit $ac_status); } &&
12714	 { ac_try='test -z "$ac_c_werror_flag"
12715			 || test ! -s conftest.err'
12716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717  (eval $ac_try) 2>&5
12718  ac_status=$?
12719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720  (exit $ac_status); }; } &&
12721	 { ac_try='test -s conftest$ac_exeext'
12722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723  (eval $ac_try) 2>&5
12724  ac_status=$?
12725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726  (exit $ac_status); }; }; then
12727  eval "$as_ac_var=yes"
12728else
12729  echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
12732eval "$as_ac_var=no"
12733fi
12734rm -f conftest.err conftest.$ac_objext \
12735      conftest$ac_exeext conftest.$ac_ext
12736fi
12737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12738echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12739if test `eval echo '${'$as_ac_var'}'` = yes; then
12740  cat >>confdefs.h <<_ACEOF
12741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12742_ACEOF
12743
12744fi
12745done
12746
12747
12748echo "$as_me:$LINENO: checking for st_blksize" >&5
12749echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12750cat >conftest.$ac_ext <<_ACEOF
12751/* confdefs.h.  */
12752_ACEOF
12753cat confdefs.h >>conftest.$ac_ext
12754cat >>conftest.$ac_ext <<_ACEOF
12755/* end confdefs.h.  */
12756#include <sys/types.h>
12757#include <sys/stat.h>
12758int
12759main ()
12760{
12761	struct stat st;
12762	int n;
12763
12764	stat("/", &st);
12765	n = (int)st.st_blksize;
12766  ;
12767  return 0;
12768}
12769_ACEOF
12770rm -f conftest.$ac_objext
12771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12772  (eval $ac_compile) 2>conftest.er1
12773  ac_status=$?
12774  grep -v '^ *+' conftest.er1 >conftest.err
12775  rm -f conftest.er1
12776  cat conftest.err >&5
12777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778  (exit $ac_status); } &&
12779	 { ac_try='test -z "$ac_c_werror_flag"
12780			 || test ! -s conftest.err'
12781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782  (eval $ac_try) 2>&5
12783  ac_status=$?
12784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785  (exit $ac_status); }; } &&
12786	 { ac_try='test -s conftest.$ac_objext'
12787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788  (eval $ac_try) 2>&5
12789  ac_status=$?
12790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791  (exit $ac_status); }; }; then
12792  echo "$as_me:$LINENO: result: yes" >&5
12793echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12794#define HAVE_ST_BLKSIZE 1
12795_ACEOF
12796
12797else
12798  echo "$as_me: failed program was:" >&5
12799sed 's/^/| /' conftest.$ac_ext >&5
12800
12801echo "$as_me:$LINENO: result: no" >&5
12802echo "${ECHO_T}no" >&6
12803fi
12804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12805
12806echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12807echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
12808if test "$cross_compiling" = yes; then
12809  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12810echo "$as_me: error: failed to compile test program" >&2;}
12811   { (exit 1); exit 1; }; }
12812else
12813  cat >conftest.$ac_ext <<_ACEOF
12814/* confdefs.h.  */
12815_ACEOF
12816cat confdefs.h >>conftest.$ac_ext
12817cat >>conftest.$ac_ext <<_ACEOF
12818/* end confdefs.h.  */
12819#include <sys/types.h>
12820#include <sys/stat.h>
12821main() {struct stat st;  exit(stat("configure/", &st) != 0); }
12822_ACEOF
12823rm -f conftest$ac_exeext
12824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12825  (eval $ac_link) 2>&5
12826  ac_status=$?
12827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830  (eval $ac_try) 2>&5
12831  ac_status=$?
12832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833  (exit $ac_status); }; }; then
12834  echo "$as_me:$LINENO: result: yes" >&5
12835echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12836#define STAT_IGNORES_SLASH 1
12837_ACEOF
12838
12839else
12840  echo "$as_me: program exited with status $ac_status" >&5
12841echo "$as_me: failed program was:" >&5
12842sed 's/^/| /' conftest.$ac_ext >&5
12843
12844( exit $ac_status )
12845echo "$as_me:$LINENO: result: no" >&5
12846echo "${ECHO_T}no" >&6
12847fi
12848rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12849fi
12850
12851echo "$as_me:$LINENO: checking for iconv_open()" >&5
12852echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
12853save_LIBS="$LIBS"
12854LIBS="$LIBS -liconv"
12855cat >conftest.$ac_ext <<_ACEOF
12856/* confdefs.h.  */
12857_ACEOF
12858cat confdefs.h >>conftest.$ac_ext
12859cat >>conftest.$ac_ext <<_ACEOF
12860/* end confdefs.h.  */
12861
12862#ifdef HAVE_ICONV_H
12863# include <iconv.h>
12864#endif
12865
12866int
12867main ()
12868{
12869iconv_open("fr", "to");
12870  ;
12871  return 0;
12872}
12873_ACEOF
12874rm -f conftest.$ac_objext conftest$ac_exeext
12875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876  (eval $ac_link) 2>conftest.er1
12877  ac_status=$?
12878  grep -v '^ *+' conftest.er1 >conftest.err
12879  rm -f conftest.er1
12880  cat conftest.err >&5
12881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882  (exit $ac_status); } &&
12883	 { ac_try='test -z "$ac_c_werror_flag"
12884			 || test ! -s conftest.err'
12885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886  (eval $ac_try) 2>&5
12887  ac_status=$?
12888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889  (exit $ac_status); }; } &&
12890	 { ac_try='test -s conftest$ac_exeext'
12891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892  (eval $ac_try) 2>&5
12893  ac_status=$?
12894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895  (exit $ac_status); }; }; then
12896  echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12897echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
12898#define HAVE_ICONV 1
12899_ACEOF
12900
12901else
12902  echo "$as_me: failed program was:" >&5
12903sed 's/^/| /' conftest.$ac_ext >&5
12904
12905LIBS="$save_LIBS"
12906    cat >conftest.$ac_ext <<_ACEOF
12907/* confdefs.h.  */
12908_ACEOF
12909cat confdefs.h >>conftest.$ac_ext
12910cat >>conftest.$ac_ext <<_ACEOF
12911/* end confdefs.h.  */
12912
12913#ifdef HAVE_ICONV_H
12914# include <iconv.h>
12915#endif
12916
12917int
12918main ()
12919{
12920iconv_open("fr", "to");
12921  ;
12922  return 0;
12923}
12924_ACEOF
12925rm -f conftest.$ac_objext conftest$ac_exeext
12926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12927  (eval $ac_link) 2>conftest.er1
12928  ac_status=$?
12929  grep -v '^ *+' conftest.er1 >conftest.err
12930  rm -f conftest.er1
12931  cat conftest.err >&5
12932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933  (exit $ac_status); } &&
12934	 { ac_try='test -z "$ac_c_werror_flag"
12935			 || test ! -s conftest.err'
12936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937  (eval $ac_try) 2>&5
12938  ac_status=$?
12939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940  (exit $ac_status); }; } &&
12941	 { ac_try='test -s conftest$ac_exeext'
12942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943  (eval $ac_try) 2>&5
12944  ac_status=$?
12945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946  (exit $ac_status); }; }; then
12947  echo "$as_me:$LINENO: result: yes" >&5
12948echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12949#define HAVE_ICONV 1
12950_ACEOF
12951
12952else
12953  echo "$as_me: failed program was:" >&5
12954sed 's/^/| /' conftest.$ac_ext >&5
12955
12956echo "$as_me:$LINENO: result: no" >&5
12957echo "${ECHO_T}no" >&6
12958fi
12959rm -f conftest.err conftest.$ac_objext \
12960      conftest$ac_exeext conftest.$ac_ext
12961fi
12962rm -f conftest.err conftest.$ac_objext \
12963      conftest$ac_exeext conftest.$ac_ext
12964
12965
12966echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12967echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12968cat >conftest.$ac_ext <<_ACEOF
12969/* confdefs.h.  */
12970_ACEOF
12971cat confdefs.h >>conftest.$ac_ext
12972cat >>conftest.$ac_ext <<_ACEOF
12973/* end confdefs.h.  */
12974
12975#ifdef HAVE_LANGINFO_H
12976# include <langinfo.h>
12977#endif
12978
12979int
12980main ()
12981{
12982char *cs = nl_langinfo(CODESET);
12983  ;
12984  return 0;
12985}
12986_ACEOF
12987rm -f conftest.$ac_objext conftest$ac_exeext
12988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989  (eval $ac_link) 2>conftest.er1
12990  ac_status=$?
12991  grep -v '^ *+' conftest.er1 >conftest.err
12992  rm -f conftest.er1
12993  cat conftest.err >&5
12994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995  (exit $ac_status); } &&
12996	 { ac_try='test -z "$ac_c_werror_flag"
12997			 || test ! -s conftest.err'
12998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999  (eval $ac_try) 2>&5
13000  ac_status=$?
13001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002  (exit $ac_status); }; } &&
13003	 { ac_try='test -s conftest$ac_exeext'
13004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005  (eval $ac_try) 2>&5
13006  ac_status=$?
13007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008  (exit $ac_status); }; }; then
13009  echo "$as_me:$LINENO: result: yes" >&5
13010echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13011#define HAVE_NL_LANGINFO_CODESET 1
13012_ACEOF
13013
13014else
13015  echo "$as_me: failed program was:" >&5
13016sed 's/^/| /' conftest.$ac_ext >&5
13017
13018echo "$as_me:$LINENO: result: no" >&5
13019echo "${ECHO_T}no" >&6
13020fi
13021rm -f conftest.err conftest.$ac_objext \
13022      conftest$ac_exeext conftest.$ac_ext
13023
13024echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13025echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
13026# Check whether --enable-acl or --disable-acl was given.
13027if test "${enable_acl+set}" = set; then
13028  enableval="$enable_acl"
13029
13030else
13031  enable_acl="yes"
13032fi;
13033if test "$enable_acl" = "yes"; then
13034echo "$as_me:$LINENO: result: no" >&5
13035echo "${ECHO_T}no" >&6
13036echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13037echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13038if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13039  echo $ECHO_N "(cached) $ECHO_C" >&6
13040else
13041  ac_check_lib_save_LIBS=$LIBS
13042LIBS="-lposix1e  $LIBS"
13043cat >conftest.$ac_ext <<_ACEOF
13044/* confdefs.h.  */
13045_ACEOF
13046cat confdefs.h >>conftest.$ac_ext
13047cat >>conftest.$ac_ext <<_ACEOF
13048/* end confdefs.h.  */
13049
13050/* Override any gcc2 internal prototype to avoid an error.  */
13051#ifdef __cplusplus
13052extern "C"
13053#endif
13054/* We use char because int might match the return type of a gcc2
13055   builtin and then its argument prototype would still apply.  */
13056char acl_get_file ();
13057int
13058main ()
13059{
13060acl_get_file ();
13061  ;
13062  return 0;
13063}
13064_ACEOF
13065rm -f conftest.$ac_objext conftest$ac_exeext
13066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067  (eval $ac_link) 2>conftest.er1
13068  ac_status=$?
13069  grep -v '^ *+' conftest.er1 >conftest.err
13070  rm -f conftest.er1
13071  cat conftest.err >&5
13072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073  (exit $ac_status); } &&
13074	 { ac_try='test -z "$ac_c_werror_flag"
13075			 || test ! -s conftest.err'
13076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077  (eval $ac_try) 2>&5
13078  ac_status=$?
13079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080  (exit $ac_status); }; } &&
13081	 { ac_try='test -s conftest$ac_exeext'
13082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083  (eval $ac_try) 2>&5
13084  ac_status=$?
13085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086  (exit $ac_status); }; }; then
13087  ac_cv_lib_posix1e_acl_get_file=yes
13088else
13089  echo "$as_me: failed program was:" >&5
13090sed 's/^/| /' conftest.$ac_ext >&5
13091
13092ac_cv_lib_posix1e_acl_get_file=no
13093fi
13094rm -f conftest.err conftest.$ac_objext \
13095      conftest$ac_exeext conftest.$ac_ext
13096LIBS=$ac_check_lib_save_LIBS
13097fi
13098echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13099echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13100if test $ac_cv_lib_posix1e_acl_get_file = yes; then
13101  LIBS="$LIBS -lposix1e"
13102else
13103  echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13104echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13105if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13106  echo $ECHO_N "(cached) $ECHO_C" >&6
13107else
13108  ac_check_lib_save_LIBS=$LIBS
13109LIBS="-lacl  $LIBS"
13110cat >conftest.$ac_ext <<_ACEOF
13111/* confdefs.h.  */
13112_ACEOF
13113cat confdefs.h >>conftest.$ac_ext
13114cat >>conftest.$ac_ext <<_ACEOF
13115/* end confdefs.h.  */
13116
13117/* Override any gcc2 internal prototype to avoid an error.  */
13118#ifdef __cplusplus
13119extern "C"
13120#endif
13121/* We use char because int might match the return type of a gcc2
13122   builtin and then its argument prototype would still apply.  */
13123char acl_get_file ();
13124int
13125main ()
13126{
13127acl_get_file ();
13128  ;
13129  return 0;
13130}
13131_ACEOF
13132rm -f conftest.$ac_objext conftest$ac_exeext
13133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13134  (eval $ac_link) 2>conftest.er1
13135  ac_status=$?
13136  grep -v '^ *+' conftest.er1 >conftest.err
13137  rm -f conftest.er1
13138  cat conftest.err >&5
13139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140  (exit $ac_status); } &&
13141	 { ac_try='test -z "$ac_c_werror_flag"
13142			 || test ! -s conftest.err'
13143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144  (eval $ac_try) 2>&5
13145  ac_status=$?
13146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147  (exit $ac_status); }; } &&
13148	 { ac_try='test -s conftest$ac_exeext'
13149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150  (eval $ac_try) 2>&5
13151  ac_status=$?
13152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153  (exit $ac_status); }; }; then
13154  ac_cv_lib_acl_acl_get_file=yes
13155else
13156  echo "$as_me: failed program was:" >&5
13157sed 's/^/| /' conftest.$ac_ext >&5
13158
13159ac_cv_lib_acl_acl_get_file=no
13160fi
13161rm -f conftest.err conftest.$ac_objext \
13162      conftest$ac_exeext conftest.$ac_ext
13163LIBS=$ac_check_lib_save_LIBS
13164fi
13165echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13166echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13167if test $ac_cv_lib_acl_acl_get_file = yes; then
13168  LIBS="$LIBS -lacl"
13169		  echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13170echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13171if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13172  echo $ECHO_N "(cached) $ECHO_C" >&6
13173else
13174  ac_check_lib_save_LIBS=$LIBS
13175LIBS="-lattr  $LIBS"
13176cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h.  */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h.  */
13182
13183/* Override any gcc2 internal prototype to avoid an error.  */
13184#ifdef __cplusplus
13185extern "C"
13186#endif
13187/* We use char because int might match the return type of a gcc2
13188   builtin and then its argument prototype would still apply.  */
13189char fgetxattr ();
13190int
13191main ()
13192{
13193fgetxattr ();
13194  ;
13195  return 0;
13196}
13197_ACEOF
13198rm -f conftest.$ac_objext conftest$ac_exeext
13199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13200  (eval $ac_link) 2>conftest.er1
13201  ac_status=$?
13202  grep -v '^ *+' conftest.er1 >conftest.err
13203  rm -f conftest.er1
13204  cat conftest.err >&5
13205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206  (exit $ac_status); } &&
13207	 { ac_try='test -z "$ac_c_werror_flag"
13208			 || test ! -s conftest.err'
13209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210  (eval $ac_try) 2>&5
13211  ac_status=$?
13212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213  (exit $ac_status); }; } &&
13214	 { ac_try='test -s conftest$ac_exeext'
13215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216  (eval $ac_try) 2>&5
13217  ac_status=$?
13218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219  (exit $ac_status); }; }; then
13220  ac_cv_lib_attr_fgetxattr=yes
13221else
13222  echo "$as_me: failed program was:" >&5
13223sed 's/^/| /' conftest.$ac_ext >&5
13224
13225ac_cv_lib_attr_fgetxattr=no
13226fi
13227rm -f conftest.err conftest.$ac_objext \
13228      conftest$ac_exeext conftest.$ac_ext
13229LIBS=$ac_check_lib_save_LIBS
13230fi
13231echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13232echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13233if test $ac_cv_lib_attr_fgetxattr = yes; then
13234  LIBS="$LIBS -lattr"
13235fi
13236
13237fi
13238
13239fi
13240
13241
13242echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13243echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13244cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h.  */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h.  */
13250
13251#include <sys/types.h>
13252#ifdef HAVE_SYS_ACL_H
13253# include <sys/acl.h>
13254#endif
13255acl_t acl;
13256int
13257main ()
13258{
13259acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13260	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13261	acl_free(acl);
13262  ;
13263  return 0;
13264}
13265_ACEOF
13266rm -f conftest.$ac_objext conftest$ac_exeext
13267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268  (eval $ac_link) 2>conftest.er1
13269  ac_status=$?
13270  grep -v '^ *+' conftest.er1 >conftest.err
13271  rm -f conftest.er1
13272  cat conftest.err >&5
13273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274  (exit $ac_status); } &&
13275	 { ac_try='test -z "$ac_c_werror_flag"
13276			 || test ! -s conftest.err'
13277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278  (eval $ac_try) 2>&5
13279  ac_status=$?
13280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281  (exit $ac_status); }; } &&
13282	 { ac_try='test -s conftest$ac_exeext'
13283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284  (eval $ac_try) 2>&5
13285  ac_status=$?
13286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287  (exit $ac_status); }; }; then
13288  echo "$as_me:$LINENO: result: yes" >&5
13289echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13290#define HAVE_POSIX_ACL 1
13291_ACEOF
13292
13293else
13294  echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
13297echo "$as_me:$LINENO: result: no" >&5
13298echo "${ECHO_T}no" >&6
13299fi
13300rm -f conftest.err conftest.$ac_objext \
13301      conftest$ac_exeext conftest.$ac_ext
13302
13303echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13304echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13305cat >conftest.$ac_ext <<_ACEOF
13306/* confdefs.h.  */
13307_ACEOF
13308cat confdefs.h >>conftest.$ac_ext
13309cat >>conftest.$ac_ext <<_ACEOF
13310/* end confdefs.h.  */
13311
13312#ifdef HAVE_SYS_ACL_H
13313# include <sys/acl.h>
13314#endif
13315int
13316main ()
13317{
13318acl("foo", GETACLCNT, 0, NULL);
13319
13320  ;
13321  return 0;
13322}
13323_ACEOF
13324rm -f conftest.$ac_objext conftest$ac_exeext
13325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13326  (eval $ac_link) 2>conftest.er1
13327  ac_status=$?
13328  grep -v '^ *+' conftest.er1 >conftest.err
13329  rm -f conftest.er1
13330  cat conftest.err >&5
13331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332  (exit $ac_status); } &&
13333	 { ac_try='test -z "$ac_c_werror_flag"
13334			 || test ! -s conftest.err'
13335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336  (eval $ac_try) 2>&5
13337  ac_status=$?
13338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339  (exit $ac_status); }; } &&
13340	 { ac_try='test -s conftest$ac_exeext'
13341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342  (eval $ac_try) 2>&5
13343  ac_status=$?
13344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345  (exit $ac_status); }; }; then
13346  echo "$as_me:$LINENO: result: yes" >&5
13347echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13348#define HAVE_SOLARIS_ACL 1
13349_ACEOF
13350
13351else
13352  echo "$as_me: failed program was:" >&5
13353sed 's/^/| /' conftest.$ac_ext >&5
13354
13355echo "$as_me:$LINENO: result: no" >&5
13356echo "${ECHO_T}no" >&6
13357fi
13358rm -f conftest.err conftest.$ac_objext \
13359      conftest$ac_exeext conftest.$ac_ext
13360
13361echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13362echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13363cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h.  */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h.  */
13369
13370#ifdef HAVE_SYS_ACL_H
13371# include <sys/acl.h>
13372#endif
13373#ifdef HAVE_SYS_ACCESS_H
13374# include <sys/access.h>
13375#endif
13376#define _ALL_SOURCE
13377
13378#include <sys/stat.h>
13379
13380int aclsize;
13381struct acl *aclent;
13382int
13383main ()
13384{
13385aclsize = sizeof(struct acl);
13386	aclent = (void *)malloc(aclsize);
13387	statacl("foo", STX_NORMAL, aclent, aclsize);
13388
13389  ;
13390  return 0;
13391}
13392_ACEOF
13393rm -f conftest.$ac_objext conftest$ac_exeext
13394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13395  (eval $ac_link) 2>conftest.er1
13396  ac_status=$?
13397  grep -v '^ *+' conftest.er1 >conftest.err
13398  rm -f conftest.er1
13399  cat conftest.err >&5
13400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401  (exit $ac_status); } &&
13402	 { ac_try='test -z "$ac_c_werror_flag"
13403			 || test ! -s conftest.err'
13404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405  (eval $ac_try) 2>&5
13406  ac_status=$?
13407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408  (exit $ac_status); }; } &&
13409	 { ac_try='test -s conftest$ac_exeext'
13410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411  (eval $ac_try) 2>&5
13412  ac_status=$?
13413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414  (exit $ac_status); }; }; then
13415  echo "$as_me:$LINENO: result: yes" >&5
13416echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13417#define HAVE_AIX_ACL 1
13418_ACEOF
13419
13420else
13421  echo "$as_me: failed program was:" >&5
13422sed 's/^/| /' conftest.$ac_ext >&5
13423
13424echo "$as_me:$LINENO: result: no" >&5
13425echo "${ECHO_T}no" >&6
13426fi
13427rm -f conftest.err conftest.$ac_objext \
13428      conftest$ac_exeext conftest.$ac_ext
13429else
13430  echo "$as_me:$LINENO: result: yes" >&5
13431echo "${ECHO_T}yes" >&6
13432fi
13433
13434echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13435echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
13436# Check whether --enable-gpm or --disable-gpm was given.
13437if test "${enable_gpm+set}" = set; then
13438  enableval="$enable_gpm"
13439
13440else
13441  enable_gpm="yes"
13442fi;
13443
13444if test "$enable_gpm" = "yes"; then
13445  echo "$as_me:$LINENO: result: no" >&5
13446echo "${ECHO_T}no" >&6
13447    echo "$as_me:$LINENO: checking for gpm" >&5
13448echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13449if test "${vi_cv_have_gpm+set}" = set; then
13450  echo $ECHO_N "(cached) $ECHO_C" >&6
13451else
13452  olibs="$LIBS" ; LIBS="-lgpm"
13453	cat >conftest.$ac_ext <<_ACEOF
13454/* confdefs.h.  */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
13458/* end confdefs.h.  */
13459#include <gpm.h>
13460	    #include <linux/keyboard.h>
13461int
13462main ()
13463{
13464Gpm_GetLibVersion(NULL);
13465  ;
13466  return 0;
13467}
13468_ACEOF
13469rm -f conftest.$ac_objext conftest$ac_exeext
13470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13471  (eval $ac_link) 2>conftest.er1
13472  ac_status=$?
13473  grep -v '^ *+' conftest.er1 >conftest.err
13474  rm -f conftest.er1
13475  cat conftest.err >&5
13476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477  (exit $ac_status); } &&
13478	 { ac_try='test -z "$ac_c_werror_flag"
13479			 || test ! -s conftest.err'
13480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481  (eval $ac_try) 2>&5
13482  ac_status=$?
13483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484  (exit $ac_status); }; } &&
13485	 { ac_try='test -s conftest$ac_exeext'
13486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487  (eval $ac_try) 2>&5
13488  ac_status=$?
13489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490  (exit $ac_status); }; }; then
13491  	    	    vi_cv_have_gpm=yes
13492else
13493  echo "$as_me: failed program was:" >&5
13494sed 's/^/| /' conftest.$ac_ext >&5
13495
13496vi_cv_have_gpm=no
13497fi
13498rm -f conftest.err conftest.$ac_objext \
13499      conftest$ac_exeext conftest.$ac_ext
13500	LIBS="$olibs"
13501
13502fi
13503echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13504echo "${ECHO_T}$vi_cv_have_gpm" >&6
13505  if test $vi_cv_have_gpm = yes; then
13506    LIBS="$LIBS -lgpm"
13507    cat >>confdefs.h <<\_ACEOF
13508#define HAVE_GPM 1
13509_ACEOF
13510
13511  fi
13512else
13513  echo "$as_me:$LINENO: result: yes" >&5
13514echo "${ECHO_T}yes" >&6
13515fi
13516
13517echo "$as_me:$LINENO: checking for rename" >&5
13518echo $ECHO_N "checking for rename... $ECHO_C" >&6
13519cat >conftest.$ac_ext <<_ACEOF
13520/* confdefs.h.  */
13521_ACEOF
13522cat confdefs.h >>conftest.$ac_ext
13523cat >>conftest.$ac_ext <<_ACEOF
13524/* end confdefs.h.  */
13525#include <stdio.h>
13526int
13527main ()
13528{
13529rename("this", "that")
13530  ;
13531  return 0;
13532}
13533_ACEOF
13534rm -f conftest.$ac_objext conftest$ac_exeext
13535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13536  (eval $ac_link) 2>conftest.er1
13537  ac_status=$?
13538  grep -v '^ *+' conftest.er1 >conftest.err
13539  rm -f conftest.er1
13540  cat conftest.err >&5
13541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542  (exit $ac_status); } &&
13543	 { ac_try='test -z "$ac_c_werror_flag"
13544			 || test ! -s conftest.err'
13545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546  (eval $ac_try) 2>&5
13547  ac_status=$?
13548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549  (exit $ac_status); }; } &&
13550	 { ac_try='test -s conftest$ac_exeext'
13551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552  (eval $ac_try) 2>&5
13553  ac_status=$?
13554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555  (exit $ac_status); }; }; then
13556  echo "$as_me:$LINENO: result: yes" >&5
13557echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13558#define HAVE_RENAME 1
13559_ACEOF
13560
13561else
13562  echo "$as_me: failed program was:" >&5
13563sed 's/^/| /' conftest.$ac_ext >&5
13564
13565echo "$as_me:$LINENO: result: no" >&5
13566echo "${ECHO_T}no" >&6
13567fi
13568rm -f conftest.err conftest.$ac_objext \
13569      conftest$ac_exeext conftest.$ac_ext
13570
13571echo "$as_me:$LINENO: checking for sysctl" >&5
13572echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13573cat >conftest.$ac_ext <<_ACEOF
13574/* confdefs.h.  */
13575_ACEOF
13576cat confdefs.h >>conftest.$ac_ext
13577cat >>conftest.$ac_ext <<_ACEOF
13578/* end confdefs.h.  */
13579#include <sys/types.h>
13580#include <sys/sysctl.h>
13581int
13582main ()
13583{
13584	int mib[2], r;
13585	size_t len;
13586
13587	mib[0] = CTL_HW;
13588	mib[1] = HW_USERMEM;
13589	len = sizeof(r);
13590	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13591
13592  ;
13593  return 0;
13594}
13595_ACEOF
13596rm -f conftest.$ac_objext
13597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598  (eval $ac_compile) 2>conftest.er1
13599  ac_status=$?
13600  grep -v '^ *+' conftest.er1 >conftest.err
13601  rm -f conftest.er1
13602  cat conftest.err >&5
13603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604  (exit $ac_status); } &&
13605	 { ac_try='test -z "$ac_c_werror_flag"
13606			 || test ! -s conftest.err'
13607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608  (eval $ac_try) 2>&5
13609  ac_status=$?
13610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611  (exit $ac_status); }; } &&
13612	 { ac_try='test -s conftest.$ac_objext'
13613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614  (eval $ac_try) 2>&5
13615  ac_status=$?
13616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617  (exit $ac_status); }; }; then
13618  echo "$as_me:$LINENO: result: yes" >&5
13619echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13620#define HAVE_SYSCTL 1
13621_ACEOF
13622
13623else
13624  echo "$as_me: failed program was:" >&5
13625sed 's/^/| /' conftest.$ac_ext >&5
13626
13627echo "$as_me:$LINENO: result: not usable" >&5
13628echo "${ECHO_T}not usable" >&6
13629fi
13630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13631
13632echo "$as_me:$LINENO: checking for sysinfo" >&5
13633echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13634cat >conftest.$ac_ext <<_ACEOF
13635/* confdefs.h.  */
13636_ACEOF
13637cat confdefs.h >>conftest.$ac_ext
13638cat >>conftest.$ac_ext <<_ACEOF
13639/* end confdefs.h.  */
13640#include <sys/types.h>
13641#include <sys/sysinfo.h>
13642int
13643main ()
13644{
13645	struct sysinfo sinfo;
13646	int t;
13647
13648	(void)sysinfo(&sinfo);
13649	t = sinfo.totalram;
13650
13651  ;
13652  return 0;
13653}
13654_ACEOF
13655rm -f conftest.$ac_objext
13656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657  (eval $ac_compile) 2>conftest.er1
13658  ac_status=$?
13659  grep -v '^ *+' conftest.er1 >conftest.err
13660  rm -f conftest.er1
13661  cat conftest.err >&5
13662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663  (exit $ac_status); } &&
13664	 { ac_try='test -z "$ac_c_werror_flag"
13665			 || test ! -s conftest.err'
13666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667  (eval $ac_try) 2>&5
13668  ac_status=$?
13669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670  (exit $ac_status); }; } &&
13671	 { ac_try='test -s conftest.$ac_objext'
13672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673  (eval $ac_try) 2>&5
13674  ac_status=$?
13675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676  (exit $ac_status); }; }; then
13677  echo "$as_me:$LINENO: result: yes" >&5
13678echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13679#define HAVE_SYSINFO 1
13680_ACEOF
13681
13682else
13683  echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
13685
13686echo "$as_me:$LINENO: result: not usable" >&5
13687echo "${ECHO_T}not usable" >&6
13688fi
13689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13690
13691echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
13692echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6
13693cat >conftest.$ac_ext <<_ACEOF
13694/* confdefs.h.  */
13695_ACEOF
13696cat confdefs.h >>conftest.$ac_ext
13697cat >>conftest.$ac_ext <<_ACEOF
13698/* end confdefs.h.  */
13699#include <sys/types.h>
13700#include <sys/sysinfo.h>
13701int
13702main ()
13703{
13704	struct sysinfo sinfo;
13705 	sinfo.mem_unit = 1;
13706
13707  ;
13708  return 0;
13709}
13710_ACEOF
13711rm -f conftest.$ac_objext
13712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13713  (eval $ac_compile) 2>conftest.er1
13714  ac_status=$?
13715  grep -v '^ *+' conftest.er1 >conftest.err
13716  rm -f conftest.er1
13717  cat conftest.err >&5
13718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719  (exit $ac_status); } &&
13720	 { ac_try='test -z "$ac_c_werror_flag"
13721			 || test ! -s conftest.err'
13722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723  (eval $ac_try) 2>&5
13724  ac_status=$?
13725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726  (exit $ac_status); }; } &&
13727	 { ac_try='test -s conftest.$ac_objext'
13728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729  (eval $ac_try) 2>&5
13730  ac_status=$?
13731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732  (exit $ac_status); }; }; then
13733  echo "$as_me:$LINENO: result: yes" >&5
13734echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13735#define HAVE_SYSINFO_MEM_UNIT 1
13736_ACEOF
13737
13738else
13739  echo "$as_me: failed program was:" >&5
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
13742echo "$as_me:$LINENO: result: no" >&5
13743echo "${ECHO_T}no" >&6
13744fi
13745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13746
13747echo "$as_me:$LINENO: checking for sysconf" >&5
13748echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13749cat >conftest.$ac_ext <<_ACEOF
13750/* confdefs.h.  */
13751_ACEOF
13752cat confdefs.h >>conftest.$ac_ext
13753cat >>conftest.$ac_ext <<_ACEOF
13754/* end confdefs.h.  */
13755#include <unistd.h>
13756int
13757main ()
13758{
13759	(void)sysconf(_SC_PAGESIZE);
13760	(void)sysconf(_SC_PHYS_PAGES);
13761
13762  ;
13763  return 0;
13764}
13765_ACEOF
13766rm -f conftest.$ac_objext
13767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768  (eval $ac_compile) 2>conftest.er1
13769  ac_status=$?
13770  grep -v '^ *+' conftest.er1 >conftest.err
13771  rm -f conftest.er1
13772  cat conftest.err >&5
13773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774  (exit $ac_status); } &&
13775	 { ac_try='test -z "$ac_c_werror_flag"
13776			 || test ! -s conftest.err'
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); }; } &&
13782	 { ac_try='test -s conftest.$ac_objext'
13783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784  (eval $ac_try) 2>&5
13785  ac_status=$?
13786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787  (exit $ac_status); }; }; then
13788  echo "$as_me:$LINENO: result: yes" >&5
13789echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13790#define HAVE_SYSCONF 1
13791_ACEOF
13792
13793else
13794  echo "$as_me: failed program was:" >&5
13795sed 's/^/| /' conftest.$ac_ext >&5
13796
13797echo "$as_me:$LINENO: result: not usable" >&5
13798echo "${ECHO_T}not usable" >&6
13799fi
13800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13801
13802
13803echo "$as_me:$LINENO: checking size of int" >&5
13804echo $ECHO_N "checking size of int... $ECHO_C" >&6
13805if test "${ac_cv_sizeof_int+set}" = set; then
13806  echo $ECHO_N "(cached) $ECHO_C" >&6
13807else
13808  if test "$cross_compiling" = yes; then
13809  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13810echo "$as_me: error: failed to compile test program" >&2;}
13811   { (exit 1); exit 1; }; }
13812else
13813  cat >conftest.$ac_ext <<_ACEOF
13814/* confdefs.h.  */
13815_ACEOF
13816cat confdefs.h >>conftest.$ac_ext
13817cat >>conftest.$ac_ext <<_ACEOF
13818/* end confdefs.h.  */
13819#include <stdio.h>
13820		main()
13821		{
13822		  FILE *f=fopen("conftestval", "w");
13823		  if (!f) exit(1);
13824		  fprintf(f, "%d\n", (int)sizeof(int));
13825		  exit(0);
13826		}
13827_ACEOF
13828rm -f conftest$ac_exeext
13829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13830  (eval $ac_link) 2>&5
13831  ac_status=$?
13832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835  (eval $ac_try) 2>&5
13836  ac_status=$?
13837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838  (exit $ac_status); }; }; then
13839  ac_cv_sizeof_int=`cat conftestval`
13840else
13841  echo "$as_me: program exited with status $ac_status" >&5
13842echo "$as_me: failed program was:" >&5
13843sed 's/^/| /' conftest.$ac_ext >&5
13844
13845( exit $ac_status )
13846ac_cv_sizeof_int=0
13847fi
13848rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13849fi
13850fi
13851
13852echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13853echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13854cat >>confdefs.h <<_ACEOF
13855#define SIZEOF_INT $ac_cv_sizeof_int
13856_ACEOF
13857
13858
13859echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13860echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
13861bcopy_test_prog='
13862main() {
13863  char buf[10];
13864  strcpy(buf, "abcdefghi");
13865  mch_memmove(buf, buf + 2, 3);
13866  if (strncmp(buf, "ababcf", 6))
13867    exit(1);
13868  strcpy(buf, "abcdefghi");
13869  mch_memmove(buf + 2, buf, 3);
13870  if (strncmp(buf, "cdedef", 6))
13871    exit(1);
13872  exit(0); /* libc version works properly.  */
13873}'
13874
13875
13876if test "$cross_compiling" = yes; then
13877  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13878echo "$as_me: error: failed to compile test program" >&2;}
13879   { (exit 1); exit 1; }; }
13880else
13881  cat >conftest.$ac_ext <<_ACEOF
13882/* confdefs.h.  */
13883_ACEOF
13884cat confdefs.h >>conftest.$ac_ext
13885cat >>conftest.$ac_ext <<_ACEOF
13886/* end confdefs.h.  */
13887#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
13888_ACEOF
13889rm -f conftest$ac_exeext
13890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13891  (eval $ac_link) 2>&5
13892  ac_status=$?
13893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896  (eval $ac_try) 2>&5
13897  ac_status=$?
13898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899  (exit $ac_status); }; }; then
13900  cat >>confdefs.h <<\_ACEOF
13901#define USEMEMMOVE 1
13902_ACEOF
13903 echo "$as_me:$LINENO: result: memmove does" >&5
13904echo "${ECHO_T}memmove does" >&6
13905else
13906  echo "$as_me: program exited with status $ac_status" >&5
13907echo "$as_me: failed program was:" >&5
13908sed 's/^/| /' conftest.$ac_ext >&5
13909
13910( exit $ac_status )
13911if test "$cross_compiling" = yes; then
13912  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13913echo "$as_me: error: failed to compile test program" >&2;}
13914   { (exit 1); exit 1; }; }
13915else
13916  cat >conftest.$ac_ext <<_ACEOF
13917/* confdefs.h.  */
13918_ACEOF
13919cat confdefs.h >>conftest.$ac_ext
13920cat >>conftest.$ac_ext <<_ACEOF
13921/* end confdefs.h.  */
13922#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
13923_ACEOF
13924rm -f conftest$ac_exeext
13925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13926  (eval $ac_link) 2>&5
13927  ac_status=$?
13928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931  (eval $ac_try) 2>&5
13932  ac_status=$?
13933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934  (exit $ac_status); }; }; then
13935  cat >>confdefs.h <<\_ACEOF
13936#define USEBCOPY 1
13937_ACEOF
13938 echo "$as_me:$LINENO: result: bcopy does" >&5
13939echo "${ECHO_T}bcopy does" >&6
13940else
13941  echo "$as_me: program exited with status $ac_status" >&5
13942echo "$as_me: failed program was:" >&5
13943sed 's/^/| /' conftest.$ac_ext >&5
13944
13945( exit $ac_status )
13946if test "$cross_compiling" = yes; then
13947  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13948echo "$as_me: error: failed to compile test program" >&2;}
13949   { (exit 1); exit 1; }; }
13950else
13951  cat >conftest.$ac_ext <<_ACEOF
13952/* confdefs.h.  */
13953_ACEOF
13954cat confdefs.h >>conftest.$ac_ext
13955cat >>conftest.$ac_ext <<_ACEOF
13956/* end confdefs.h.  */
13957#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
13958_ACEOF
13959rm -f conftest$ac_exeext
13960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961  (eval $ac_link) 2>&5
13962  ac_status=$?
13963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966  (eval $ac_try) 2>&5
13967  ac_status=$?
13968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969  (exit $ac_status); }; }; then
13970  cat >>confdefs.h <<\_ACEOF
13971#define USEMEMCPY 1
13972_ACEOF
13973 echo "$as_me:$LINENO: result: memcpy does" >&5
13974echo "${ECHO_T}memcpy does" >&6
13975else
13976  echo "$as_me: program exited with status $ac_status" >&5
13977echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980( exit $ac_status )
13981echo "$as_me:$LINENO: result: no" >&5
13982echo "${ECHO_T}no" >&6
13983fi
13984rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13985fi
13986fi
13987rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13988fi
13989fi
13990rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13991fi
13992
13993
13994if test "$enable_multibyte" = "yes"; then
13995  cflags_save=$CFLAGS
13996  ldflags_save=$LDFLAGS
13997  if test -n "$x_includes" ; then
13998    CFLAGS="$CFLAGS -I$x_includes"
13999    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
14000    echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
14001echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
14002    cat >conftest.$ac_ext <<_ACEOF
14003/* confdefs.h.  */
14004_ACEOF
14005cat confdefs.h >>conftest.$ac_ext
14006cat >>conftest.$ac_ext <<_ACEOF
14007/* end confdefs.h.  */
14008#include <X11/Xlocale.h>
14009int
14010main ()
14011{
14012
14013  ;
14014  return 0;
14015}
14016_ACEOF
14017rm -f conftest.$ac_objext
14018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019  (eval $ac_compile) 2>conftest.er1
14020  ac_status=$?
14021  grep -v '^ *+' conftest.er1 >conftest.err
14022  rm -f conftest.er1
14023  cat conftest.err >&5
14024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025  (exit $ac_status); } &&
14026	 { ac_try='test -z "$ac_c_werror_flag"
14027			 || test ! -s conftest.err'
14028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029  (eval $ac_try) 2>&5
14030  ac_status=$?
14031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032  (exit $ac_status); }; } &&
14033	 { ac_try='test -s conftest.$ac_objext'
14034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035  (eval $ac_try) 2>&5
14036  ac_status=$?
14037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038  (exit $ac_status); }; }; then
14039  cat >conftest.$ac_ext <<_ACEOF
14040/* confdefs.h.  */
14041_ACEOF
14042cat confdefs.h >>conftest.$ac_ext
14043cat >>conftest.$ac_ext <<_ACEOF
14044/* end confdefs.h.  */
14045
14046/* Override any gcc2 internal prototype to avoid an error.  */
14047#ifdef __cplusplus
14048extern "C"
14049#endif
14050/* We use char because int might match the return type of a gcc2
14051   builtin and then its argument prototype would still apply.  */
14052char _Xsetlocale ();
14053int
14054main ()
14055{
14056_Xsetlocale ();
14057  ;
14058  return 0;
14059}
14060_ACEOF
14061rm -f conftest.$ac_objext conftest$ac_exeext
14062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063  (eval $ac_link) 2>conftest.er1
14064  ac_status=$?
14065  grep -v '^ *+' conftest.er1 >conftest.err
14066  rm -f conftest.er1
14067  cat conftest.err >&5
14068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069  (exit $ac_status); } &&
14070	 { ac_try='test -z "$ac_c_werror_flag"
14071			 || test ! -s conftest.err'
14072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073  (eval $ac_try) 2>&5
14074  ac_status=$?
14075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076  (exit $ac_status); }; } &&
14077	 { ac_try='test -s conftest$ac_exeext'
14078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079  (eval $ac_try) 2>&5
14080  ac_status=$?
14081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082  (exit $ac_status); }; }; then
14083  echo "$as_me:$LINENO: result: yes" >&5
14084echo "${ECHO_T}yes" >&6
14085		cat >>confdefs.h <<\_ACEOF
14086#define X_LOCALE 1
14087_ACEOF
14088
14089else
14090  echo "$as_me: failed program was:" >&5
14091sed 's/^/| /' conftest.$ac_ext >&5
14092
14093echo "$as_me:$LINENO: result: no" >&5
14094echo "${ECHO_T}no" >&6
14095fi
14096rm -f conftest.err conftest.$ac_objext \
14097      conftest$ac_exeext conftest.$ac_ext
14098else
14099  echo "$as_me: failed program was:" >&5
14100sed 's/^/| /' conftest.$ac_ext >&5
14101
14102echo "$as_me:$LINENO: result: no" >&5
14103echo "${ECHO_T}no" >&6
14104fi
14105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14106  fi
14107  CFLAGS=$cflags_save
14108  LDFLAGS=$ldflags_save
14109fi
14110
14111echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14112echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14113if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14114  echo $ECHO_N "(cached) $ECHO_C" >&6
14115else
14116  ac_check_lib_save_LIBS=$LIBS
14117LIBS="-lxpg4  $LIBS"
14118cat >conftest.$ac_ext <<_ACEOF
14119/* confdefs.h.  */
14120_ACEOF
14121cat confdefs.h >>conftest.$ac_ext
14122cat >>conftest.$ac_ext <<_ACEOF
14123/* end confdefs.h.  */
14124
14125/* Override any gcc2 internal prototype to avoid an error.  */
14126#ifdef __cplusplus
14127extern "C"
14128#endif
14129/* We use char because int might match the return type of a gcc2
14130   builtin and then its argument prototype would still apply.  */
14131char _xpg4_setrunelocale ();
14132int
14133main ()
14134{
14135_xpg4_setrunelocale ();
14136  ;
14137  return 0;
14138}
14139_ACEOF
14140rm -f conftest.$ac_objext conftest$ac_exeext
14141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14142  (eval $ac_link) 2>conftest.er1
14143  ac_status=$?
14144  grep -v '^ *+' conftest.er1 >conftest.err
14145  rm -f conftest.er1
14146  cat conftest.err >&5
14147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148  (exit $ac_status); } &&
14149	 { ac_try='test -z "$ac_c_werror_flag"
14150			 || test ! -s conftest.err'
14151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152  (eval $ac_try) 2>&5
14153  ac_status=$?
14154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155  (exit $ac_status); }; } &&
14156	 { ac_try='test -s conftest$ac_exeext'
14157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158  (eval $ac_try) 2>&5
14159  ac_status=$?
14160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161  (exit $ac_status); }; }; then
14162  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14163else
14164  echo "$as_me: failed program was:" >&5
14165sed 's/^/| /' conftest.$ac_ext >&5
14166
14167ac_cv_lib_xpg4__xpg4_setrunelocale=no
14168fi
14169rm -f conftest.err conftest.$ac_objext \
14170      conftest$ac_exeext conftest.$ac_ext
14171LIBS=$ac_check_lib_save_LIBS
14172fi
14173echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14174echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14175if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
14176  LIBS="$LIBS -lxpg4"
14177fi
14178
14179
14180echo "$as_me:$LINENO: checking how to create tags" >&5
14181echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
14182test -f tags && mv tags tags.save
14183if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14184  TAGPRG="ctags -I INIT+ --fields=+S"
14185else
14186  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14187  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14188  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14189  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14190  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14191  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14192  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14193fi
14194test -f tags.save && mv tags.save tags
14195echo "$as_me:$LINENO: result: $TAGPRG" >&5
14196echo "${ECHO_T}$TAGPRG" >&6
14197
14198echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14199echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
14200MANDEF="man"
14201(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14202echo "$as_me:$LINENO: result: $MANDEF" >&5
14203echo "${ECHO_T}$MANDEF" >&6
14204if test "$MANDEF" = "man -s"; then
14205  cat >>confdefs.h <<\_ACEOF
14206#define USEMAN_S 1
14207_ACEOF
14208
14209fi
14210
14211echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14212echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
14213# Check whether --enable-nls or --disable-nls was given.
14214if test "${enable_nls+set}" = set; then
14215  enableval="$enable_nls"
14216
14217else
14218  enable_nls="yes"
14219fi;
14220
14221if test "$enable_nls" = "yes"; then
14222  echo "$as_me:$LINENO: result: no" >&5
14223echo "${ECHO_T}no" >&6
14224
14225  INSTALL_LANGS=install-languages
14226
14227  INSTALL_TOOL_LANGS=install-tool-languages
14228
14229
14230  # Extract the first word of "msgfmt", so it can be a program name with args.
14231set dummy msgfmt; ac_word=$2
14232echo "$as_me:$LINENO: checking for $ac_word" >&5
14233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14234if test "${ac_cv_prog_MSGFMT+set}" = set; then
14235  echo $ECHO_N "(cached) $ECHO_C" >&6
14236else
14237  if test -n "$MSGFMT"; then
14238  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14239else
14240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14241for as_dir in $PATH
14242do
14243  IFS=$as_save_IFS
14244  test -z "$as_dir" && as_dir=.
14245  for ac_exec_ext in '' $ac_executable_extensions; do
14246  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14247    ac_cv_prog_MSGFMT="msgfmt"
14248    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14249    break 2
14250  fi
14251done
14252done
14253
14254fi
14255fi
14256MSGFMT=$ac_cv_prog_MSGFMT
14257if test -n "$MSGFMT"; then
14258  echo "$as_me:$LINENO: result: $MSGFMT" >&5
14259echo "${ECHO_T}$MSGFMT" >&6
14260else
14261  echo "$as_me:$LINENO: result: no" >&5
14262echo "${ECHO_T}no" >&6
14263fi
14264
14265  echo "$as_me:$LINENO: checking for NLS" >&5
14266echo $ECHO_N "checking for NLS... $ECHO_C" >&6
14267  if test -f po/Makefile; then
14268    have_gettext="no"
14269    if test -n "$MSGFMT"; then
14270      cat >conftest.$ac_ext <<_ACEOF
14271/* confdefs.h.  */
14272_ACEOF
14273cat confdefs.h >>conftest.$ac_ext
14274cat >>conftest.$ac_ext <<_ACEOF
14275/* end confdefs.h.  */
14276#include <libintl.h>
14277int
14278main ()
14279{
14280gettext("Test");
14281  ;
14282  return 0;
14283}
14284_ACEOF
14285rm -f conftest.$ac_objext conftest$ac_exeext
14286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14287  (eval $ac_link) 2>conftest.er1
14288  ac_status=$?
14289  grep -v '^ *+' conftest.er1 >conftest.err
14290  rm -f conftest.er1
14291  cat conftest.err >&5
14292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293  (exit $ac_status); } &&
14294	 { ac_try='test -z "$ac_c_werror_flag"
14295			 || test ! -s conftest.err'
14296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297  (eval $ac_try) 2>&5
14298  ac_status=$?
14299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300  (exit $ac_status); }; } &&
14301	 { ac_try='test -s conftest$ac_exeext'
14302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303  (eval $ac_try) 2>&5
14304  ac_status=$?
14305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306  (exit $ac_status); }; }; then
14307  echo "$as_me:$LINENO: result: gettext() works" >&5
14308echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
14309else
14310  echo "$as_me: failed program was:" >&5
14311sed 's/^/| /' conftest.$ac_ext >&5
14312
14313olibs=$LIBS
14314	  LIBS="$LIBS -lintl"
14315	  cat >conftest.$ac_ext <<_ACEOF
14316/* confdefs.h.  */
14317_ACEOF
14318cat confdefs.h >>conftest.$ac_ext
14319cat >>conftest.$ac_ext <<_ACEOF
14320/* end confdefs.h.  */
14321#include <libintl.h>
14322int
14323main ()
14324{
14325gettext("Test");
14326  ;
14327  return 0;
14328}
14329_ACEOF
14330rm -f conftest.$ac_objext conftest$ac_exeext
14331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14332  (eval $ac_link) 2>conftest.er1
14333  ac_status=$?
14334  grep -v '^ *+' conftest.er1 >conftest.err
14335  rm -f conftest.er1
14336  cat conftest.err >&5
14337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338  (exit $ac_status); } &&
14339	 { ac_try='test -z "$ac_c_werror_flag"
14340			 || test ! -s conftest.err'
14341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342  (eval $ac_try) 2>&5
14343  ac_status=$?
14344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345  (exit $ac_status); }; } &&
14346	 { ac_try='test -s conftest$ac_exeext'
14347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348  (eval $ac_try) 2>&5
14349  ac_status=$?
14350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351  (exit $ac_status); }; }; then
14352  echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14353echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
14354else
14355  echo "$as_me: failed program was:" >&5
14356sed 's/^/| /' conftest.$ac_ext >&5
14357
14358echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14359echo "${ECHO_T}gettext() doesn't work" >&6;
14360	      LIBS=$olibs
14361fi
14362rm -f conftest.err conftest.$ac_objext \
14363      conftest$ac_exeext conftest.$ac_ext
14364fi
14365rm -f conftest.err conftest.$ac_objext \
14366      conftest$ac_exeext conftest.$ac_ext
14367    else
14368      echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14369echo "${ECHO_T}msgfmt not found - disabled" >&6;
14370    fi
14371    if test $have_gettext = "yes"; then
14372      cat >>confdefs.h <<\_ACEOF
14373#define HAVE_GETTEXT 1
14374_ACEOF
14375
14376      MAKEMO=yes
14377
14378
14379for ac_func in bind_textdomain_codeset
14380do
14381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14382echo "$as_me:$LINENO: checking for $ac_func" >&5
14383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14384if eval "test \"\${$as_ac_var+set}\" = set"; then
14385  echo $ECHO_N "(cached) $ECHO_C" >&6
14386else
14387  cat >conftest.$ac_ext <<_ACEOF
14388/* confdefs.h.  */
14389_ACEOF
14390cat confdefs.h >>conftest.$ac_ext
14391cat >>conftest.$ac_ext <<_ACEOF
14392/* end confdefs.h.  */
14393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14394   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14395#define $ac_func innocuous_$ac_func
14396
14397/* System header to define __stub macros and hopefully few prototypes,
14398    which can conflict with char $ac_func (); below.
14399    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14400    <limits.h> exists even on freestanding compilers.  */
14401
14402#ifdef __STDC__
14403# include <limits.h>
14404#else
14405# include <assert.h>
14406#endif
14407
14408#undef $ac_func
14409
14410/* Override any gcc2 internal prototype to avoid an error.  */
14411#ifdef __cplusplus
14412extern "C"
14413{
14414#endif
14415/* We use char because int might match the return type of a gcc2
14416   builtin and then its argument prototype would still apply.  */
14417char $ac_func ();
14418/* The GNU C library defines this for functions which it implements
14419    to always fail with ENOSYS.  Some functions are actually named
14420    something starting with __ and the normal name is an alias.  */
14421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14422choke me
14423#else
14424char (*f) () = $ac_func;
14425#endif
14426#ifdef __cplusplus
14427}
14428#endif
14429
14430int
14431main ()
14432{
14433return f != $ac_func;
14434  ;
14435  return 0;
14436}
14437_ACEOF
14438rm -f conftest.$ac_objext conftest$ac_exeext
14439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14440  (eval $ac_link) 2>conftest.er1
14441  ac_status=$?
14442  grep -v '^ *+' conftest.er1 >conftest.err
14443  rm -f conftest.er1
14444  cat conftest.err >&5
14445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446  (exit $ac_status); } &&
14447	 { ac_try='test -z "$ac_c_werror_flag"
14448			 || test ! -s conftest.err'
14449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450  (eval $ac_try) 2>&5
14451  ac_status=$?
14452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453  (exit $ac_status); }; } &&
14454	 { ac_try='test -s conftest$ac_exeext'
14455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456  (eval $ac_try) 2>&5
14457  ac_status=$?
14458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459  (exit $ac_status); }; }; then
14460  eval "$as_ac_var=yes"
14461else
14462  echo "$as_me: failed program was:" >&5
14463sed 's/^/| /' conftest.$ac_ext >&5
14464
14465eval "$as_ac_var=no"
14466fi
14467rm -f conftest.err conftest.$ac_objext \
14468      conftest$ac_exeext conftest.$ac_ext
14469fi
14470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14472if test `eval echo '${'$as_ac_var'}'` = yes; then
14473  cat >>confdefs.h <<_ACEOF
14474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14475_ACEOF
14476
14477fi
14478done
14479
14480            echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14481echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14482      cat >conftest.$ac_ext <<_ACEOF
14483/* confdefs.h.  */
14484_ACEOF
14485cat confdefs.h >>conftest.$ac_ext
14486cat >>conftest.$ac_ext <<_ACEOF
14487/* end confdefs.h.  */
14488#include <libintl.h>
14489		extern int _nl_msg_cat_cntr;
14490int
14491main ()
14492{
14493++_nl_msg_cat_cntr;
14494  ;
14495  return 0;
14496}
14497_ACEOF
14498rm -f conftest.$ac_objext conftest$ac_exeext
14499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14500  (eval $ac_link) 2>conftest.er1
14501  ac_status=$?
14502  grep -v '^ *+' conftest.er1 >conftest.err
14503  rm -f conftest.er1
14504  cat conftest.err >&5
14505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506  (exit $ac_status); } &&
14507	 { ac_try='test -z "$ac_c_werror_flag"
14508			 || test ! -s conftest.err'
14509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510  (eval $ac_try) 2>&5
14511  ac_status=$?
14512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513  (exit $ac_status); }; } &&
14514	 { ac_try='test -s conftest$ac_exeext'
14515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516  (eval $ac_try) 2>&5
14517  ac_status=$?
14518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519  (exit $ac_status); }; }; then
14520  echo "$as_me:$LINENO: result: yes" >&5
14521echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
14522#define HAVE_NL_MSG_CAT_CNTR 1
14523_ACEOF
14524
14525else
14526  echo "$as_me: failed program was:" >&5
14527sed 's/^/| /' conftest.$ac_ext >&5
14528
14529echo "$as_me:$LINENO: result: no" >&5
14530echo "${ECHO_T}no" >&6
14531fi
14532rm -f conftest.err conftest.$ac_objext \
14533      conftest$ac_exeext conftest.$ac_ext
14534    fi
14535  else
14536    echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14537echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
14538  fi
14539else
14540  echo "$as_me:$LINENO: result: yes" >&5
14541echo "${ECHO_T}yes" >&6
14542fi
14543
14544if test "${ac_cv_header_dlfcn_h+set}" = set; then
14545  echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14546echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14547if test "${ac_cv_header_dlfcn_h+set}" = set; then
14548  echo $ECHO_N "(cached) $ECHO_C" >&6
14549fi
14550echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14551echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14552else
14553  # Is the header compilable?
14554echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14555echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14556cat >conftest.$ac_ext <<_ACEOF
14557/* confdefs.h.  */
14558_ACEOF
14559cat confdefs.h >>conftest.$ac_ext
14560cat >>conftest.$ac_ext <<_ACEOF
14561/* end confdefs.h.  */
14562$ac_includes_default
14563#include <dlfcn.h>
14564_ACEOF
14565rm -f conftest.$ac_objext
14566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567  (eval $ac_compile) 2>conftest.er1
14568  ac_status=$?
14569  grep -v '^ *+' conftest.er1 >conftest.err
14570  rm -f conftest.er1
14571  cat conftest.err >&5
14572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573  (exit $ac_status); } &&
14574	 { ac_try='test -z "$ac_c_werror_flag"
14575			 || test ! -s conftest.err'
14576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577  (eval $ac_try) 2>&5
14578  ac_status=$?
14579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580  (exit $ac_status); }; } &&
14581	 { ac_try='test -s conftest.$ac_objext'
14582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583  (eval $ac_try) 2>&5
14584  ac_status=$?
14585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586  (exit $ac_status); }; }; then
14587  ac_header_compiler=yes
14588else
14589  echo "$as_me: failed program was:" >&5
14590sed 's/^/| /' conftest.$ac_ext >&5
14591
14592ac_header_compiler=no
14593fi
14594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14595echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14596echo "${ECHO_T}$ac_header_compiler" >&6
14597
14598# Is the header present?
14599echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14600echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14601cat >conftest.$ac_ext <<_ACEOF
14602/* confdefs.h.  */
14603_ACEOF
14604cat confdefs.h >>conftest.$ac_ext
14605cat >>conftest.$ac_ext <<_ACEOF
14606/* end confdefs.h.  */
14607#include <dlfcn.h>
14608_ACEOF
14609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14610  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14611  ac_status=$?
14612  grep -v '^ *+' conftest.er1 >conftest.err
14613  rm -f conftest.er1
14614  cat conftest.err >&5
14615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616  (exit $ac_status); } >/dev/null; then
14617  if test -s conftest.err; then
14618    ac_cpp_err=$ac_c_preproc_warn_flag
14619    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14620  else
14621    ac_cpp_err=
14622  fi
14623else
14624  ac_cpp_err=yes
14625fi
14626if test -z "$ac_cpp_err"; then
14627  ac_header_preproc=yes
14628else
14629  echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
14632  ac_header_preproc=no
14633fi
14634rm -f conftest.err conftest.$ac_ext
14635echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14636echo "${ECHO_T}$ac_header_preproc" >&6
14637
14638# So?  What about this header?
14639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14640  yes:no: )
14641    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14642echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14643    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14644echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14645    ac_header_preproc=yes
14646    ;;
14647  no:yes:* )
14648    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14649echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14650    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
14651echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
14652    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14653echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14654    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
14655echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14656    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14657echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14658    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14659echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14660    (
14661      cat <<\_ASBOX
14662## ------------------------------------------ ##
14663## Report this to the AC_PACKAGE_NAME lists.  ##
14664## ------------------------------------------ ##
14665_ASBOX
14666    ) |
14667      sed "s/^/$as_me: WARNING:     /" >&2
14668    ;;
14669esac
14670echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14671echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14672if test "${ac_cv_header_dlfcn_h+set}" = set; then
14673  echo $ECHO_N "(cached) $ECHO_C" >&6
14674else
14675  ac_cv_header_dlfcn_h=$ac_header_preproc
14676fi
14677echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14678echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14679
14680fi
14681if test $ac_cv_header_dlfcn_h = yes; then
14682  DLL=dlfcn.h
14683else
14684  if test "${ac_cv_header_dl_h+set}" = set; then
14685  echo "$as_me:$LINENO: checking for dl.h" >&5
14686echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14687if test "${ac_cv_header_dl_h+set}" = set; then
14688  echo $ECHO_N "(cached) $ECHO_C" >&6
14689fi
14690echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14691echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14692else
14693  # Is the header compilable?
14694echo "$as_me:$LINENO: checking dl.h usability" >&5
14695echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14696cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h.  */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h.  */
14702$ac_includes_default
14703#include <dl.h>
14704_ACEOF
14705rm -f conftest.$ac_objext
14706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14707  (eval $ac_compile) 2>conftest.er1
14708  ac_status=$?
14709  grep -v '^ *+' conftest.er1 >conftest.err
14710  rm -f conftest.er1
14711  cat conftest.err >&5
14712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713  (exit $ac_status); } &&
14714	 { ac_try='test -z "$ac_c_werror_flag"
14715			 || test ! -s conftest.err'
14716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717  (eval $ac_try) 2>&5
14718  ac_status=$?
14719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720  (exit $ac_status); }; } &&
14721	 { ac_try='test -s conftest.$ac_objext'
14722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723  (eval $ac_try) 2>&5
14724  ac_status=$?
14725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726  (exit $ac_status); }; }; then
14727  ac_header_compiler=yes
14728else
14729  echo "$as_me: failed program was:" >&5
14730sed 's/^/| /' conftest.$ac_ext >&5
14731
14732ac_header_compiler=no
14733fi
14734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14735echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14736echo "${ECHO_T}$ac_header_compiler" >&6
14737
14738# Is the header present?
14739echo "$as_me:$LINENO: checking dl.h presence" >&5
14740echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14741cat >conftest.$ac_ext <<_ACEOF
14742/* confdefs.h.  */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h.  */
14747#include <dl.h>
14748_ACEOF
14749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14750  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14751  ac_status=$?
14752  grep -v '^ *+' conftest.er1 >conftest.err
14753  rm -f conftest.er1
14754  cat conftest.err >&5
14755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756  (exit $ac_status); } >/dev/null; then
14757  if test -s conftest.err; then
14758    ac_cpp_err=$ac_c_preproc_warn_flag
14759    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14760  else
14761    ac_cpp_err=
14762  fi
14763else
14764  ac_cpp_err=yes
14765fi
14766if test -z "$ac_cpp_err"; then
14767  ac_header_preproc=yes
14768else
14769  echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
14772  ac_header_preproc=no
14773fi
14774rm -f conftest.err conftest.$ac_ext
14775echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14776echo "${ECHO_T}$ac_header_preproc" >&6
14777
14778# So?  What about this header?
14779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14780  yes:no: )
14781    { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14782echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14783    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14784echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14785    ac_header_preproc=yes
14786    ;;
14787  no:yes:* )
14788    { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14789echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14790    { echo "$as_me:$LINENO: WARNING: dl.h:     check for missing prerequisite headers?" >&5
14791echo "$as_me: WARNING: dl.h:     check for missing prerequisite headers?" >&2;}
14792    { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14793echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14794    { echo "$as_me:$LINENO: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&5
14795echo "$as_me: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14796    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14797echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14798    { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14799echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14800    (
14801      cat <<\_ASBOX
14802## ------------------------------------------ ##
14803## Report this to the AC_PACKAGE_NAME lists.  ##
14804## ------------------------------------------ ##
14805_ASBOX
14806    ) |
14807      sed "s/^/$as_me: WARNING:     /" >&2
14808    ;;
14809esac
14810echo "$as_me:$LINENO: checking for dl.h" >&5
14811echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14812if test "${ac_cv_header_dl_h+set}" = set; then
14813  echo $ECHO_N "(cached) $ECHO_C" >&6
14814else
14815  ac_cv_header_dl_h=$ac_header_preproc
14816fi
14817echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14818echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14819
14820fi
14821if test $ac_cv_header_dl_h = yes; then
14822  DLL=dl.h
14823fi
14824
14825
14826fi
14827
14828
14829if test x${DLL} = xdlfcn.h; then
14830
14831cat >>confdefs.h <<\_ACEOF
14832#define HAVE_DLFCN_H 1
14833_ACEOF
14834
14835  echo "$as_me:$LINENO: checking for dlopen()" >&5
14836echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
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	      echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14891echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
14892	      olibs=$LIBS
14893	      LIBS="$LIBS -ldl"
14894	      cat >conftest.$ac_ext <<_ACEOF
14895/* confdefs.h.  */
14896_ACEOF
14897cat confdefs.h >>conftest.$ac_ext
14898cat >>conftest.$ac_ext <<_ACEOF
14899/* end confdefs.h.  */
14900
14901int
14902main ()
14903{
14904
14905				extern void* dlopen();
14906				dlopen();
14907
14908  ;
14909  return 0;
14910}
14911_ACEOF
14912rm -f conftest.$ac_objext conftest$ac_exeext
14913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14914  (eval $ac_link) 2>conftest.er1
14915  ac_status=$?
14916  grep -v '^ *+' conftest.er1 >conftest.err
14917  rm -f conftest.er1
14918  cat conftest.err >&5
14919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920  (exit $ac_status); } &&
14921	 { ac_try='test -z "$ac_c_werror_flag"
14922			 || test ! -s conftest.err'
14923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924  (eval $ac_try) 2>&5
14925  ac_status=$?
14926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927  (exit $ac_status); }; } &&
14928	 { ac_try='test -s conftest$ac_exeext'
14929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930  (eval $ac_try) 2>&5
14931  ac_status=$?
14932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933  (exit $ac_status); }; }; then
14934  echo "$as_me:$LINENO: result: yes" >&5
14935echo "${ECHO_T}yes" >&6;
14936
14937cat >>confdefs.h <<\_ACEOF
14938#define HAVE_DLOPEN 1
14939_ACEOF
14940
14941else
14942  echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945echo "$as_me:$LINENO: result: no" >&5
14946echo "${ECHO_T}no" >&6;
14947			  LIBS=$olibs
14948fi
14949rm -f conftest.err conftest.$ac_objext \
14950      conftest$ac_exeext conftest.$ac_ext
14951fi
14952rm -f conftest.err conftest.$ac_objext \
14953      conftest$ac_exeext conftest.$ac_ext
14954      echo "$as_me:$LINENO: checking for dlsym()" >&5
14955echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
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	      echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
15010echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
15011	      olibs=$LIBS
15012	      LIBS="$LIBS -ldl"
15013	      cat >conftest.$ac_ext <<_ACEOF
15014/* confdefs.h.  */
15015_ACEOF
15016cat confdefs.h >>conftest.$ac_ext
15017cat >>conftest.$ac_ext <<_ACEOF
15018/* end confdefs.h.  */
15019
15020int
15021main ()
15022{
15023
15024				extern void* dlsym();
15025				dlsym();
15026
15027  ;
15028  return 0;
15029}
15030_ACEOF
15031rm -f conftest.$ac_objext conftest$ac_exeext
15032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033  (eval $ac_link) 2>conftest.er1
15034  ac_status=$?
15035  grep -v '^ *+' conftest.er1 >conftest.err
15036  rm -f conftest.er1
15037  cat conftest.err >&5
15038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039  (exit $ac_status); } &&
15040	 { ac_try='test -z "$ac_c_werror_flag"
15041			 || test ! -s conftest.err'
15042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043  (eval $ac_try) 2>&5
15044  ac_status=$?
15045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046  (exit $ac_status); }; } &&
15047	 { ac_try='test -s conftest$ac_exeext'
15048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049  (eval $ac_try) 2>&5
15050  ac_status=$?
15051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052  (exit $ac_status); }; }; then
15053  echo "$as_me:$LINENO: result: yes" >&5
15054echo "${ECHO_T}yes" >&6;
15055
15056cat >>confdefs.h <<\_ACEOF
15057#define HAVE_DLSYM 1
15058_ACEOF
15059
15060else
15061  echo "$as_me: failed program was:" >&5
15062sed 's/^/| /' conftest.$ac_ext >&5
15063
15064echo "$as_me:$LINENO: result: no" >&5
15065echo "${ECHO_T}no" >&6;
15066			  LIBS=$olibs
15067fi
15068rm -f conftest.err conftest.$ac_objext \
15069      conftest$ac_exeext conftest.$ac_ext
15070fi
15071rm -f conftest.err conftest.$ac_objext \
15072      conftest$ac_exeext conftest.$ac_ext
15073elif test x${DLL} = xdl.h; then
15074
15075cat >>confdefs.h <<\_ACEOF
15076#define HAVE_DL_H 1
15077_ACEOF
15078
15079  echo "$as_me:$LINENO: checking for shl_load()" >&5
15080echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
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	  echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15135echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
15136	  olibs=$LIBS
15137	  LIBS="$LIBS -ldld"
15138	  cat >conftest.$ac_ext <<_ACEOF
15139/* confdefs.h.  */
15140_ACEOF
15141cat confdefs.h >>conftest.$ac_ext
15142cat >>conftest.$ac_ext <<_ACEOF
15143/* end confdefs.h.  */
15144
15145int
15146main ()
15147{
15148
15149			extern void* shl_load();
15150			shl_load();
15151
15152  ;
15153  return 0;
15154}
15155_ACEOF
15156rm -f conftest.$ac_objext conftest$ac_exeext
15157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15158  (eval $ac_link) 2>conftest.er1
15159  ac_status=$?
15160  grep -v '^ *+' conftest.er1 >conftest.err
15161  rm -f conftest.er1
15162  cat conftest.err >&5
15163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164  (exit $ac_status); } &&
15165	 { ac_try='test -z "$ac_c_werror_flag"
15166			 || test ! -s conftest.err'
15167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168  (eval $ac_try) 2>&5
15169  ac_status=$?
15170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171  (exit $ac_status); }; } &&
15172	 { ac_try='test -s conftest$ac_exeext'
15173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174  (eval $ac_try) 2>&5
15175  ac_status=$?
15176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177  (exit $ac_status); }; }; then
15178  echo "$as_me:$LINENO: result: yes" >&5
15179echo "${ECHO_T}yes" >&6;
15180
15181cat >>confdefs.h <<\_ACEOF
15182#define HAVE_SHL_LOAD 1
15183_ACEOF
15184
15185else
15186  echo "$as_me: failed program was:" >&5
15187sed 's/^/| /' conftest.$ac_ext >&5
15188
15189echo "$as_me:$LINENO: result: no" >&5
15190echo "${ECHO_T}no" >&6;
15191		  LIBS=$olibs
15192fi
15193rm -f conftest.err conftest.$ac_objext \
15194      conftest$ac_exeext conftest.$ac_ext
15195fi
15196rm -f conftest.err conftest.$ac_objext \
15197      conftest$ac_exeext conftest.$ac_ext
15198fi
15199
15200for ac_header in setjmp.h
15201do
15202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15203if eval "test \"\${$as_ac_Header+set}\" = set"; then
15204  echo "$as_me:$LINENO: checking for $ac_header" >&5
15205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15206if eval "test \"\${$as_ac_Header+set}\" = set"; then
15207  echo $ECHO_N "(cached) $ECHO_C" >&6
15208fi
15209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15211else
15212  # Is the header compilable?
15213echo "$as_me:$LINENO: checking $ac_header usability" >&5
15214echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15215cat >conftest.$ac_ext <<_ACEOF
15216/* confdefs.h.  */
15217_ACEOF
15218cat confdefs.h >>conftest.$ac_ext
15219cat >>conftest.$ac_ext <<_ACEOF
15220/* end confdefs.h.  */
15221$ac_includes_default
15222#include <$ac_header>
15223_ACEOF
15224rm -f conftest.$ac_objext
15225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15226  (eval $ac_compile) 2>conftest.er1
15227  ac_status=$?
15228  grep -v '^ *+' conftest.er1 >conftest.err
15229  rm -f conftest.er1
15230  cat conftest.err >&5
15231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232  (exit $ac_status); } &&
15233	 { ac_try='test -z "$ac_c_werror_flag"
15234			 || test ! -s conftest.err'
15235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236  (eval $ac_try) 2>&5
15237  ac_status=$?
15238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239  (exit $ac_status); }; } &&
15240	 { ac_try='test -s conftest.$ac_objext'
15241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242  (eval $ac_try) 2>&5
15243  ac_status=$?
15244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245  (exit $ac_status); }; }; then
15246  ac_header_compiler=yes
15247else
15248  echo "$as_me: failed program was:" >&5
15249sed 's/^/| /' conftest.$ac_ext >&5
15250
15251ac_header_compiler=no
15252fi
15253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15254echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15255echo "${ECHO_T}$ac_header_compiler" >&6
15256
15257# Is the header present?
15258echo "$as_me:$LINENO: checking $ac_header presence" >&5
15259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15260cat >conftest.$ac_ext <<_ACEOF
15261/* confdefs.h.  */
15262_ACEOF
15263cat confdefs.h >>conftest.$ac_ext
15264cat >>conftest.$ac_ext <<_ACEOF
15265/* end confdefs.h.  */
15266#include <$ac_header>
15267_ACEOF
15268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15269  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15270  ac_status=$?
15271  grep -v '^ *+' conftest.er1 >conftest.err
15272  rm -f conftest.er1
15273  cat conftest.err >&5
15274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275  (exit $ac_status); } >/dev/null; then
15276  if test -s conftest.err; then
15277    ac_cpp_err=$ac_c_preproc_warn_flag
15278    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15279  else
15280    ac_cpp_err=
15281  fi
15282else
15283  ac_cpp_err=yes
15284fi
15285if test -z "$ac_cpp_err"; then
15286  ac_header_preproc=yes
15287else
15288  echo "$as_me: failed program was:" >&5
15289sed 's/^/| /' conftest.$ac_ext >&5
15290
15291  ac_header_preproc=no
15292fi
15293rm -f conftest.err conftest.$ac_ext
15294echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15295echo "${ECHO_T}$ac_header_preproc" >&6
15296
15297# So?  What about this header?
15298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15299  yes:no: )
15300    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15301echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15302    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15303echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15304    ac_header_preproc=yes
15305    ;;
15306  no:yes:* )
15307    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15308echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15309    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15310echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15311    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15312echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15313    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15314echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15315    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15316echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15317    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15318echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15319    (
15320      cat <<\_ASBOX
15321## ------------------------------------------ ##
15322## Report this to the AC_PACKAGE_NAME lists.  ##
15323## ------------------------------------------ ##
15324_ASBOX
15325    ) |
15326      sed "s/^/$as_me: WARNING:     /" >&2
15327    ;;
15328esac
15329echo "$as_me:$LINENO: checking for $ac_header" >&5
15330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15331if eval "test \"\${$as_ac_Header+set}\" = set"; then
15332  echo $ECHO_N "(cached) $ECHO_C" >&6
15333else
15334  eval "$as_ac_Header=\$ac_header_preproc"
15335fi
15336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15338
15339fi
15340if test `eval echo '${'$as_ac_Header'}'` = yes; then
15341  cat >>confdefs.h <<_ACEOF
15342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15343_ACEOF
15344
15345fi
15346
15347done
15348
15349
15350if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15351    if echo $LIBS | grep -e '-ldl' >/dev/null; then
15352    LIBS=`echo $LIBS | sed s/-ldl//`
15353    PERL_LIBS="$PERL_LIBS -ldl"
15354  fi
15355fi
15356
15357if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15358	&& test "x$GUITYPE" != "xCARBONGUI"; then
15359  echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15360echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
15361    if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
15362	|| test "x$features" = "xhuge"; then
15363    LIBS="$LIBS -framework Carbon"
15364    echo "$as_me:$LINENO: result: yes" >&5
15365echo "${ECHO_T}yes" >&6
15366  else
15367    echo "$as_me:$LINENO: result: no" >&5
15368echo "${ECHO_T}no" >&6
15369  fi
15370fi
15371if test "x$MACARCH" = "xboth"; then
15372  LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15373fi
15374
15375echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15376echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
15377DEPEND_CFLAGS_FILTER=
15378if test "$GCC" = yes; then
15379  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
15380  if test "$gccmajor" -gt "2"; then
15381    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15382  fi
15383fi
15384if test "$DEPEND_CFLAGS_FILTER" = ""; then
15385  echo "$as_me:$LINENO: result: no" >&5
15386echo "${ECHO_T}no" >&6
15387else
15388  echo "$as_me:$LINENO: result: yes" >&5
15389echo "${ECHO_T}yes" >&6
15390fi
15391
15392
15393          ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15394cat >confcache <<\_ACEOF
15395# This file is a shell script that caches the results of configure
15396# tests run on this system so they can be shared between configure
15397# scripts and configure runs, see configure's option --config-cache.
15398# It is not useful on other systems.  If it contains results you don't
15399# want to keep, you may remove or edit it.
15400#
15401# config.status only pays attention to the cache file if you give it
15402# the --recheck option to rerun configure.
15403#
15404# `ac_cv_env_foo' variables (set or unset) will be overridden when
15405# loading this file, other *unset* `ac_cv_foo' will be assigned the
15406# following values.
15407
15408_ACEOF
15409
15410# The following way of writing the cache mishandles newlines in values,
15411# but we know of no workaround that is simple, portable, and efficient.
15412# So, don't put newlines in cache variables' values.
15413# Ultrix sh set writes to stderr and can't be redirected directly,
15414# and sets the high bit in the cache file unless we assign to the vars.
15415{
15416  (set) 2>&1 |
15417    case `(ac_space=' '; set | grep ac_space) 2>&1` in
15418    *ac_space=\ *)
15419      # `set' does not quote correctly, so add quotes (double-quote
15420      # substitution turns \\\\ into \\, and sed turns \\ into \).
15421      sed -n \
15422	"s/'/'\\\\''/g;
15423	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15424      ;;
15425    *)
15426      # `set' quotes correctly as required by POSIX, so do not add quotes.
15427      sed -n \
15428	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15429      ;;
15430    esac;
15431} |
15432  sed '
15433     t clear
15434     : clear
15435     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15436     t end
15437     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15438     : end' >>confcache
15439if diff $cache_file confcache >/dev/null 2>&1; then :; else
15440  if test -w $cache_file; then
15441    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15442    cat confcache >$cache_file
15443  else
15444    echo "not updating unwritable cache $cache_file"
15445  fi
15446fi
15447rm -f confcache
15448
15449test "x$prefix" = xNONE && prefix=$ac_default_prefix
15450# Let make expand exec_prefix.
15451test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15452
15453# VPATH may cause trouble with some makes, so we remove $(srcdir),
15454# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15455# trailing colons and then remove the whole line if VPATH becomes empty
15456# (actually we leave an empty line to preserve line numbers).
15457if test "x$srcdir" = x.; then
15458  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15459s/:*\$(srcdir):*/:/;
15460s/:*\${srcdir}:*/:/;
15461s/:*@srcdir@:*/:/;
15462s/^\([^=]*=[	 ]*\):*/\1/;
15463s/:*$//;
15464s/^[^=]*=[	 ]*$//;
15465}'
15466fi
15467
15468DEFS=-DHAVE_CONFIG_H
15469
15470ac_libobjs=
15471ac_ltlibobjs=
15472for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15473  # 1. Remove the extension, and $U if already installed.
15474  ac_i=`echo "$ac_i" |
15475	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15476  # 2. Add them.
15477  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15478  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15479done
15480LIBOBJS=$ac_libobjs
15481
15482LTLIBOBJS=$ac_ltlibobjs
15483
15484
15485
15486: ${CONFIG_STATUS=./config.status}
15487ac_clean_files_save=$ac_clean_files
15488ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15489{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15490echo "$as_me: creating $CONFIG_STATUS" >&6;}
15491cat >$CONFIG_STATUS <<_ACEOF
15492#! $SHELL
15493# Generated by $as_me.
15494# Run this file to recreate the current configuration.
15495# Compiler output produced by configure, useful for debugging
15496# configure, is in config.log if it exists.
15497
15498debug=false
15499ac_cs_recheck=false
15500ac_cs_silent=false
15501SHELL=\${CONFIG_SHELL-$SHELL}
15502_ACEOF
15503
15504cat >>$CONFIG_STATUS <<\_ACEOF
15505## --------------------- ##
15506## M4sh Initialization.  ##
15507## --------------------- ##
15508
15509# Be Bourne compatible
15510if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15511  emulate sh
15512  NULLCMD=:
15513  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15514  # is contrary to our usage.  Disable this feature.
15515  alias -g '${1+"$@"}'='"$@"'
15516elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15517  set -o posix
15518fi
15519DUALCASE=1; export DUALCASE # for MKS sh
15520
15521# Support unset when possible.
15522if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15523  as_unset=unset
15524else
15525  as_unset=false
15526fi
15527
15528
15529# Work around bugs in pre-3.0 UWIN ksh.
15530$as_unset ENV MAIL MAILPATH
15531PS1='$ '
15532PS2='> '
15533PS4='+ '
15534
15535# NLS nuisances.
15536for as_var in \
15537  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15538  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15539  LC_TELEPHONE LC_TIME
15540do
15541  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15542    eval $as_var=C; export $as_var
15543  else
15544    $as_unset $as_var
15545  fi
15546done
15547
15548# Required to use basename.
15549if expr a : '\(a\)' >/dev/null 2>&1; then
15550  as_expr=expr
15551else
15552  as_expr=false
15553fi
15554
15555if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15556  as_basename=basename
15557else
15558  as_basename=false
15559fi
15560
15561
15562# Name of the executable.
15563as_me=`$as_basename "$0" ||
15564$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15565	 X"$0" : 'X\(//\)$' \| \
15566	 X"$0" : 'X\(/\)$' \| \
15567	 .     : '\(.\)' 2>/dev/null ||
15568echo X/"$0" |
15569    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15570  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
15571  	  /^X\/\(\/\).*/{ s//\1/; q; }
15572  	  s/.*/./; q'`
15573
15574
15575# PATH needs CR, and LINENO needs CR and PATH.
15576# Avoid depending upon Character Ranges.
15577as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15578as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15579as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15580as_cr_digits='0123456789'
15581as_cr_alnum=$as_cr_Letters$as_cr_digits
15582
15583# The user is always right.
15584if test "${PATH_SEPARATOR+set}" != set; then
15585  echo "#! /bin/sh" >conf$$.sh
15586  echo  "exit 0"   >>conf$$.sh
15587  chmod +x conf$$.sh
15588  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15589    PATH_SEPARATOR=';'
15590  else
15591    PATH_SEPARATOR=:
15592  fi
15593  rm -f conf$$.sh
15594fi
15595
15596
15597  as_lineno_1=$LINENO
15598  as_lineno_2=$LINENO
15599  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15600  test "x$as_lineno_1" != "x$as_lineno_2" &&
15601  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15602  # Find who we are.  Look in the path if we contain no path at all
15603  # relative or not.
15604  case $0 in
15605    *[\\/]* ) as_myself=$0 ;;
15606    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15607for as_dir in $PATH
15608do
15609  IFS=$as_save_IFS
15610  test -z "$as_dir" && as_dir=.
15611  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15612done
15613
15614       ;;
15615  esac
15616  # We did not find ourselves, most probably we were run as `sh COMMAND'
15617  # in which case we are not to be found in the path.
15618  if test "x$as_myself" = x; then
15619    as_myself=$0
15620  fi
15621  if test ! -f "$as_myself"; then
15622    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15623echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15624   { (exit 1); exit 1; }; }
15625  fi
15626  case $CONFIG_SHELL in
15627  '')
15628    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15629for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15630do
15631  IFS=$as_save_IFS
15632  test -z "$as_dir" && as_dir=.
15633  for as_base in sh bash ksh sh5; do
15634	 case $as_dir in
15635	 /*)
15636	   if ("$as_dir/$as_base" -c '
15637  as_lineno_1=$LINENO
15638  as_lineno_2=$LINENO
15639  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15640  test "x$as_lineno_1" != "x$as_lineno_2" &&
15641  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15642	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15643	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15644	     CONFIG_SHELL=$as_dir/$as_base
15645	     export CONFIG_SHELL
15646	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15647	   fi;;
15648	 esac
15649       done
15650done
15651;;
15652  esac
15653
15654  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15655  # uniformly replaced by the line number.  The first 'sed' inserts a
15656  # line-number line before each line; the second 'sed' does the real
15657  # work.  The second script uses 'N' to pair each line-number line
15658  # with the numbered line, and appends trailing '-' during
15659  # substitution so that $LINENO is not a special case at line end.
15660  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15661  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15662  sed '=' <$as_myself |
15663    sed '
15664      N
15665      s,$,-,
15666      : loop
15667      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15668      t loop
15669      s,-$,,
15670      s,^['$as_cr_digits']*\n,,
15671    ' >$as_me.lineno &&
15672  chmod +x $as_me.lineno ||
15673    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15674echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15675   { (exit 1); exit 1; }; }
15676
15677  # Don't try to exec as it changes $[0], causing all sort of problems
15678  # (the dirname of $[0] is not the place where we might find the
15679  # original and so on.  Autoconf is especially sensible to this).
15680  . ./$as_me.lineno
15681  # Exit status is that of the last command.
15682  exit
15683}
15684
15685
15686case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15687  *c*,-n*) ECHO_N= ECHO_C='
15688' ECHO_T='	' ;;
15689  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15690  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15691esac
15692
15693if expr a : '\(a\)' >/dev/null 2>&1; then
15694  as_expr=expr
15695else
15696  as_expr=false
15697fi
15698
15699rm -f conf$$ conf$$.exe conf$$.file
15700echo >conf$$.file
15701if ln -s conf$$.file conf$$ 2>/dev/null; then
15702  # We could just check for DJGPP; but this test a) works b) is more generic
15703  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15704  if test -f conf$$.exe; then
15705    # Don't use ln at all; we don't have any links
15706    as_ln_s='cp -p'
15707  else
15708    as_ln_s='ln -s'
15709  fi
15710elif ln conf$$.file conf$$ 2>/dev/null; then
15711  as_ln_s=ln
15712else
15713  as_ln_s='cp -p'
15714fi
15715rm -f conf$$ conf$$.exe conf$$.file
15716
15717if mkdir -p . 2>/dev/null; then
15718  as_mkdir_p=:
15719else
15720  test -d ./-p && rmdir ./-p
15721  as_mkdir_p=false
15722fi
15723
15724as_executable_p="test -f"
15725
15726# Sed expression to map a string onto a valid CPP name.
15727as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15728
15729# Sed expression to map a string onto a valid variable name.
15730as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15731
15732
15733# IFS
15734# We need space, tab and new line, in precisely that order.
15735as_nl='
15736'
15737IFS=" 	$as_nl"
15738
15739# CDPATH.
15740$as_unset CDPATH
15741
15742exec 6>&1
15743
15744# Open the log real soon, to keep \$[0] and so on meaningful, and to
15745# report actual input values of CONFIG_FILES etc. instead of their
15746# values after options handling.  Logging --version etc. is OK.
15747exec 5>>auto/config.log
15748{
15749  echo
15750  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15751## Running $as_me. ##
15752_ASBOX
15753} >&5
15754cat >&5 <<_CSEOF
15755
15756This file was extended by $as_me, which was
15757generated by GNU Autoconf 2.59.  Invocation command line was
15758
15759  CONFIG_FILES    = $CONFIG_FILES
15760  CONFIG_HEADERS  = $CONFIG_HEADERS
15761  CONFIG_LINKS    = $CONFIG_LINKS
15762  CONFIG_COMMANDS = $CONFIG_COMMANDS
15763  $ $0 $@
15764
15765_CSEOF
15766echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15767echo >&5
15768_ACEOF
15769
15770# Files that config.status was made for.
15771if test -n "$ac_config_files"; then
15772  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15773fi
15774
15775if test -n "$ac_config_headers"; then
15776  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15777fi
15778
15779if test -n "$ac_config_links"; then
15780  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15781fi
15782
15783if test -n "$ac_config_commands"; then
15784  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15785fi
15786
15787cat >>$CONFIG_STATUS <<\_ACEOF
15788
15789ac_cs_usage="\
15790\`$as_me' instantiates files from templates according to the
15791current configuration.
15792
15793Usage: $0 [OPTIONS] [FILE]...
15794
15795  -h, --help       print this help, then exit
15796  -V, --version    print version number, then exit
15797  -q, --quiet      do not print progress messages
15798  -d, --debug      don't remove temporary files
15799      --recheck    update $as_me by reconfiguring in the same conditions
15800  --file=FILE[:TEMPLATE]
15801		   instantiate the configuration file FILE
15802  --header=FILE[:TEMPLATE]
15803		   instantiate the configuration header FILE
15804
15805Configuration files:
15806$config_files
15807
15808Configuration headers:
15809$config_headers
15810
15811Report bugs to <[email protected]>."
15812_ACEOF
15813
15814cat >>$CONFIG_STATUS <<_ACEOF
15815ac_cs_version="\\
15816config.status
15817configured by $0, generated by GNU Autoconf 2.59,
15818  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15819
15820Copyright (C) 2003 Free Software Foundation, Inc.
15821This config.status script is free software; the Free Software Foundation
15822gives unlimited permission to copy, distribute and modify it."
15823srcdir=$srcdir
15824_ACEOF
15825
15826cat >>$CONFIG_STATUS <<\_ACEOF
15827# If no file are specified by the user, then we need to provide default
15828# value.  By we need to know if files were specified by the user.
15829ac_need_defaults=:
15830while test $# != 0
15831do
15832  case $1 in
15833  --*=*)
15834    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15835    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15836    ac_shift=:
15837    ;;
15838  -*)
15839    ac_option=$1
15840    ac_optarg=$2
15841    ac_shift=shift
15842    ;;
15843  *) # This is not an option, so the user has probably given explicit
15844     # arguments.
15845     ac_option=$1
15846     ac_need_defaults=false;;
15847  esac
15848
15849  case $ac_option in
15850  # Handling of the options.
15851_ACEOF
15852cat >>$CONFIG_STATUS <<\_ACEOF
15853  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15854    ac_cs_recheck=: ;;
15855  --version | --vers* | -V )
15856    echo "$ac_cs_version"; exit 0 ;;
15857  --he | --h)
15858    # Conflict between --help and --header
15859    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15860Try \`$0 --help' for more information." >&5
15861echo "$as_me: error: ambiguous option: $1
15862Try \`$0 --help' for more information." >&2;}
15863   { (exit 1); exit 1; }; };;
15864  --help | --hel | -h )
15865    echo "$ac_cs_usage"; exit 0 ;;
15866  --debug | --d* | -d )
15867    debug=: ;;
15868  --file | --fil | --fi | --f )
15869    $ac_shift
15870    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15871    ac_need_defaults=false;;
15872  --header | --heade | --head | --hea )
15873    $ac_shift
15874    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15875    ac_need_defaults=false;;
15876  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15877  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15878    ac_cs_silent=: ;;
15879
15880  # This is an error.
15881  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15882Try \`$0 --help' for more information." >&5
15883echo "$as_me: error: unrecognized option: $1
15884Try \`$0 --help' for more information." >&2;}
15885   { (exit 1); exit 1; }; } ;;
15886
15887  *) ac_config_targets="$ac_config_targets $1" ;;
15888
15889  esac
15890  shift
15891done
15892
15893ac_configure_extra_args=
15894
15895if $ac_cs_silent; then
15896  exec 6>/dev/null
15897  ac_configure_extra_args="$ac_configure_extra_args --silent"
15898fi
15899
15900_ACEOF
15901cat >>$CONFIG_STATUS <<_ACEOF
15902if \$ac_cs_recheck; then
15903  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15904  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15905fi
15906
15907_ACEOF
15908
15909
15910
15911
15912
15913cat >>$CONFIG_STATUS <<\_ACEOF
15914for ac_config_target in $ac_config_targets
15915do
15916  case "$ac_config_target" in
15917  # Handling of arguments.
15918  "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15919  "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15920  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15921echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15922   { (exit 1); exit 1; }; };;
15923  esac
15924done
15925
15926# If the user did not use the arguments to specify the items to instantiate,
15927# then the envvar interface is used.  Set only those that are not.
15928# We use the long form for the default assignment because of an extremely
15929# bizarre bug on SunOS 4.1.3.
15930if $ac_need_defaults; then
15931  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15932  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15933fi
15934
15935# Have a temporary directory for convenience.  Make it in the build tree
15936# simply because there is no reason to put it here, and in addition,
15937# creating and moving files from /tmp can sometimes cause problems.
15938# Create a temporary directory, and hook for its removal unless debugging.
15939$debug ||
15940{
15941  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15942  trap '{ (exit 1); exit 1; }' 1 2 13 15
15943}
15944
15945# Create a (secure) tmp directory for tmp files.
15946
15947{
15948  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15949  test -n "$tmp" && test -d "$tmp"
15950}  ||
15951{
15952  tmp=./confstat$$-$RANDOM
15953  (umask 077 && mkdir $tmp)
15954} ||
15955{
15956   echo "$me: cannot create a temporary directory in ." >&2
15957   { (exit 1); exit 1; }
15958}
15959
15960_ACEOF
15961
15962cat >>$CONFIG_STATUS <<_ACEOF
15963
15964#
15965# CONFIG_FILES section.
15966#
15967
15968# No need to generate the scripts if there are no CONFIG_FILES.
15969# This happens for instance when ./config.status config.h
15970if test -n "\$CONFIG_FILES"; then
15971  # Protect against being on the right side of a sed subst in config.status.
15972  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15973   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15974s,@SHELL@,$SHELL,;t t
15975s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15976s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15977s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15978s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15979s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15980s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15981s,@exec_prefix@,$exec_prefix,;t t
15982s,@prefix@,$prefix,;t t
15983s,@program_transform_name@,$program_transform_name,;t t
15984s,@bindir@,$bindir,;t t
15985s,@sbindir@,$sbindir,;t t
15986s,@libexecdir@,$libexecdir,;t t
15987s,@datadir@,$datadir,;t t
15988s,@sysconfdir@,$sysconfdir,;t t
15989s,@sharedstatedir@,$sharedstatedir,;t t
15990s,@localstatedir@,$localstatedir,;t t
15991s,@libdir@,$libdir,;t t
15992s,@includedir@,$includedir,;t t
15993s,@oldincludedir@,$oldincludedir,;t t
15994s,@infodir@,$infodir,;t t
15995s,@mandir@,$mandir,;t t
15996s,@build_alias@,$build_alias,;t t
15997s,@host_alias@,$host_alias,;t t
15998s,@target_alias@,$target_alias,;t t
15999s,@DEFS@,$DEFS,;t t
16000s,@ECHO_C@,$ECHO_C,;t t
16001s,@ECHO_N@,$ECHO_N,;t t
16002s,@ECHO_T@,$ECHO_T,;t t
16003s,@LIBS@,$LIBS,;t t
16004s,@SET_MAKE@,$SET_MAKE,;t t
16005s,@CC@,$CC,;t t
16006s,@CFLAGS@,$CFLAGS,;t t
16007s,@LDFLAGS@,$LDFLAGS,;t t
16008s,@CPPFLAGS@,$CPPFLAGS,;t t
16009s,@ac_ct_CC@,$ac_ct_CC,;t t
16010s,@EXEEXT@,$EXEEXT,;t t
16011s,@OBJEXT@,$OBJEXT,;t t
16012s,@CPP@,$CPP,;t t
16013s,@EGREP@,$EGREP,;t t
16014s,@AWK@,$AWK,;t t
16015s,@STRIP@,$STRIP,;t t
16016s,@CPP_MM@,$CPP_MM,;t t
16017s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
16018s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
16019s,@VIMNAME@,$VIMNAME,;t t
16020s,@EXNAME@,$EXNAME,;t t
16021s,@VIEWNAME@,$VIEWNAME,;t t
16022s,@line_break@,$line_break,;t t
16023s,@dovimdiff@,$dovimdiff,;t t
16024s,@dogvimdiff@,$dogvimdiff,;t t
16025s,@compiledby@,$compiledby,;t t
16026s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
16027s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
16028s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
16029s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
16030s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
16031s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
16032s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
16033s,@vi_cv_perllib@,$vi_cv_perllib,;t t
16034s,@shrpenv@,$shrpenv,;t t
16035s,@PERL_SRC@,$PERL_SRC,;t t
16036s,@PERL_OBJ@,$PERL_OBJ,;t t
16037s,@PERL_PRO@,$PERL_PRO,;t t
16038s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
16039s,@PERL_LIBS@,$PERL_LIBS,;t t
16040s,@vi_cv_path_python@,$vi_cv_path_python,;t t
16041s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
16042s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
16043s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
16044s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
16045s,@PYTHON_SRC@,$PYTHON_SRC,;t t
16046s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
16047s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
16048s,@TCL_SRC@,$TCL_SRC,;t t
16049s,@TCL_OBJ@,$TCL_OBJ,;t t
16050s,@TCL_PRO@,$TCL_PRO,;t t
16051s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
16052s,@TCL_LIBS@,$TCL_LIBS,;t t
16053s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
16054s,@RUBY_SRC@,$RUBY_SRC,;t t
16055s,@RUBY_OBJ@,$RUBY_OBJ,;t t
16056s,@RUBY_PRO@,$RUBY_PRO,;t t
16057s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16058s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16059s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16060s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16061s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16062s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16063s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16064s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16065s,@xmkmfpath@,$xmkmfpath,;t t
16066s,@X_CFLAGS@,$X_CFLAGS,;t t
16067s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16068s,@X_LIBS@,$X_LIBS,;t t
16069s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16070s,@X_LIB@,$X_LIB,;t t
16071s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16072s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16073s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16074s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16075s,@GTK_LIBS@,$GTK_LIBS,;t t
16076s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16077s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16078s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16079s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16080s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16081s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16082s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16083s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16084s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16085s,@GUITYPE@,$GUITYPE,;t t
16086s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16087s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16088s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16089s,@TAGPRG@,$TAGPRG,;t t
16090s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16091s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
16092s,@MSGFMT@,$MSGFMT,;t t
16093s,@MAKEMO@,$MAKEMO,;t t
16094s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
16095s,@LIBOBJS@,$LIBOBJS,;t t
16096s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16097CEOF
16098
16099_ACEOF
16100
16101  cat >>$CONFIG_STATUS <<\_ACEOF
16102  # Split the substitutions into bite-sized pieces for seds with
16103  # small command number limits, like on Digital OSF/1 and HP-UX.
16104  ac_max_sed_lines=48
16105  ac_sed_frag=1 # Number of current file.
16106  ac_beg=1 # First line for current file.
16107  ac_end=$ac_max_sed_lines # Line after last line for current file.
16108  ac_more_lines=:
16109  ac_sed_cmds=
16110  while $ac_more_lines; do
16111    if test $ac_beg -gt 1; then
16112      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16113    else
16114      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16115    fi
16116    if test ! -s $tmp/subs.frag; then
16117      ac_more_lines=false
16118    else
16119      # The purpose of the label and of the branching condition is to
16120      # speed up the sed processing (if there are no `@' at all, there
16121      # is no need to browse any of the substitutions).
16122      # These are the two extra sed commands mentioned above.
16123      (echo ':t
16124  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16125      if test -z "$ac_sed_cmds"; then
16126	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16127      else
16128	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16129      fi
16130      ac_sed_frag=`expr $ac_sed_frag + 1`
16131      ac_beg=$ac_end
16132      ac_end=`expr $ac_end + $ac_max_sed_lines`
16133    fi
16134  done
16135  if test -z "$ac_sed_cmds"; then
16136    ac_sed_cmds=cat
16137  fi
16138fi # test -n "$CONFIG_FILES"
16139
16140_ACEOF
16141cat >>$CONFIG_STATUS <<\_ACEOF
16142for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16143  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16144  case $ac_file in
16145  - | *:- | *:-:* ) # input from stdin
16146	cat >$tmp/stdin
16147	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16148	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16149  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16150	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16151  * )   ac_file_in=$ac_file.in ;;
16152  esac
16153
16154  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16155  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16156$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16157	 X"$ac_file" : 'X\(//\)[^/]' \| \
16158	 X"$ac_file" : 'X\(//\)$' \| \
16159	 X"$ac_file" : 'X\(/\)' \| \
16160	 .     : '\(.\)' 2>/dev/null ||
16161echo X"$ac_file" |
16162    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16163  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16164  	  /^X\(\/\/\)$/{ s//\1/; q; }
16165  	  /^X\(\/\).*/{ s//\1/; q; }
16166  	  s/.*/./; q'`
16167  { if $as_mkdir_p; then
16168    mkdir -p "$ac_dir"
16169  else
16170    as_dir="$ac_dir"
16171    as_dirs=
16172    while test ! -d "$as_dir"; do
16173      as_dirs="$as_dir $as_dirs"
16174      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16175$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16176	 X"$as_dir" : 'X\(//\)[^/]' \| \
16177	 X"$as_dir" : 'X\(//\)$' \| \
16178	 X"$as_dir" : 'X\(/\)' \| \
16179	 .     : '\(.\)' 2>/dev/null ||
16180echo X"$as_dir" |
16181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16182  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16183  	  /^X\(\/\/\)$/{ s//\1/; q; }
16184  	  /^X\(\/\).*/{ s//\1/; q; }
16185  	  s/.*/./; q'`
16186    done
16187    test ! -n "$as_dirs" || mkdir $as_dirs
16188  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16189echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16190   { (exit 1); exit 1; }; }; }
16191
16192  ac_builddir=.
16193
16194if test "$ac_dir" != .; then
16195  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16196  # A "../" for each directory in $ac_dir_suffix.
16197  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16198else
16199  ac_dir_suffix= ac_top_builddir=
16200fi
16201
16202case $srcdir in
16203  .)  # No --srcdir option.  We are building in place.
16204    ac_srcdir=.
16205    if test -z "$ac_top_builddir"; then
16206       ac_top_srcdir=.
16207    else
16208       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16209    fi ;;
16210  [\\/]* | ?:[\\/]* )  # Absolute path.
16211    ac_srcdir=$srcdir$ac_dir_suffix;
16212    ac_top_srcdir=$srcdir ;;
16213  *) # Relative path.
16214    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16215    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16216esac
16217
16218# Do not use `cd foo && pwd` to compute absolute paths, because
16219# the directories may not exist.
16220case `pwd` in
16221.) ac_abs_builddir="$ac_dir";;
16222*)
16223  case "$ac_dir" in
16224  .) ac_abs_builddir=`pwd`;;
16225  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16226  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16227  esac;;
16228esac
16229case $ac_abs_builddir in
16230.) ac_abs_top_builddir=${ac_top_builddir}.;;
16231*)
16232  case ${ac_top_builddir}. in
16233  .) ac_abs_top_builddir=$ac_abs_builddir;;
16234  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16235  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16236  esac;;
16237esac
16238case $ac_abs_builddir in
16239.) ac_abs_srcdir=$ac_srcdir;;
16240*)
16241  case $ac_srcdir in
16242  .) ac_abs_srcdir=$ac_abs_builddir;;
16243  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16244  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16245  esac;;
16246esac
16247case $ac_abs_builddir in
16248.) ac_abs_top_srcdir=$ac_top_srcdir;;
16249*)
16250  case $ac_top_srcdir in
16251  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16252  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16253  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16254  esac;;
16255esac
16256
16257
16258
16259  if test x"$ac_file" != x-; then
16260    { echo "$as_me:$LINENO: creating $ac_file" >&5
16261echo "$as_me: creating $ac_file" >&6;}
16262    rm -f "$ac_file"
16263  fi
16264  # Let's still pretend it is `configure' which instantiates (i.e., don't
16265  # use $as_me), people would be surprised to read:
16266  #    /* config.h.  Generated by config.status.  */
16267  if test x"$ac_file" = x-; then
16268    configure_input=
16269  else
16270    configure_input="$ac_file.  "
16271  fi
16272  configure_input=$configure_input"Generated from `echo $ac_file_in |
16273				     sed 's,.*/,,'` by configure."
16274
16275  # First look for the input files in the build tree, otherwise in the
16276  # src tree.
16277  ac_file_inputs=`IFS=:
16278    for f in $ac_file_in; do
16279      case $f in
16280      -) echo $tmp/stdin ;;
16281      [\\/$]*)
16282	 # Absolute (can't be DOS-style, as IFS=:)
16283	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16284echo "$as_me: error: cannot find input file: $f" >&2;}
16285   { (exit 1); exit 1; }; }
16286	 echo "$f";;
16287      *) # Relative
16288	 if test -f "$f"; then
16289	   # Build tree
16290	   echo "$f"
16291	 elif test -f "$srcdir/$f"; then
16292	   # Source tree
16293	   echo "$srcdir/$f"
16294	 else
16295	   # /dev/null tree
16296	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16297echo "$as_me: error: cannot find input file: $f" >&2;}
16298   { (exit 1); exit 1; }; }
16299	 fi;;
16300      esac
16301    done` || { (exit 1); exit 1; }
16302_ACEOF
16303cat >>$CONFIG_STATUS <<_ACEOF
16304  sed "$ac_vpsub
16305$extrasub
16306_ACEOF
16307cat >>$CONFIG_STATUS <<\_ACEOF
16308:t
16309/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16310s,@configure_input@,$configure_input,;t t
16311s,@srcdir@,$ac_srcdir,;t t
16312s,@abs_srcdir@,$ac_abs_srcdir,;t t
16313s,@top_srcdir@,$ac_top_srcdir,;t t
16314s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16315s,@builddir@,$ac_builddir,;t t
16316s,@abs_builddir@,$ac_abs_builddir,;t t
16317s,@top_builddir@,$ac_top_builddir,;t t
16318s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16319" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16320  rm -f $tmp/stdin
16321  if test x"$ac_file" != x-; then
16322    mv $tmp/out $ac_file
16323  else
16324    cat $tmp/out
16325    rm -f $tmp/out
16326  fi
16327
16328done
16329_ACEOF
16330cat >>$CONFIG_STATUS <<\_ACEOF
16331
16332#
16333# CONFIG_HEADER section.
16334#
16335
16336# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16337# NAME is the cpp macro being defined and VALUE is the value it is being given.
16338#
16339# ac_d sets the value in "#define NAME VALUE" lines.
16340ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
16341ac_dB='[	 ].*$,\1#\2'
16342ac_dC=' '
16343ac_dD=',;t'
16344# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16345ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
16346ac_uB='$,\1#\2define\3'
16347ac_uC=' '
16348ac_uD=',;t'
16349
16350for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16351  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16352  case $ac_file in
16353  - | *:- | *:-:* ) # input from stdin
16354	cat >$tmp/stdin
16355	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16356	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16357  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16358	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16359  * )   ac_file_in=$ac_file.in ;;
16360  esac
16361
16362  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16363echo "$as_me: creating $ac_file" >&6;}
16364
16365  # First look for the input files in the build tree, otherwise in the
16366  # src tree.
16367  ac_file_inputs=`IFS=:
16368    for f in $ac_file_in; do
16369      case $f in
16370      -) echo $tmp/stdin ;;
16371      [\\/$]*)
16372	 # Absolute (can't be DOS-style, as IFS=:)
16373	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16374echo "$as_me: error: cannot find input file: $f" >&2;}
16375   { (exit 1); exit 1; }; }
16376	 # Do quote $f, to prevent DOS paths from being IFS'd.
16377	 echo "$f";;
16378      *) # Relative
16379	 if test -f "$f"; then
16380	   # Build tree
16381	   echo "$f"
16382	 elif test -f "$srcdir/$f"; then
16383	   # Source tree
16384	   echo "$srcdir/$f"
16385	 else
16386	   # /dev/null tree
16387	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16388echo "$as_me: error: cannot find input file: $f" >&2;}
16389   { (exit 1); exit 1; }; }
16390	 fi;;
16391      esac
16392    done` || { (exit 1); exit 1; }
16393  # Remove the trailing spaces.
16394  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
16395
16396_ACEOF
16397
16398# Transform confdefs.h into two sed scripts, `conftest.defines' and
16399# `conftest.undefs', that substitutes the proper values into
16400# config.h.in to produce config.h.  The first handles `#define'
16401# templates, and the second `#undef' templates.
16402# And first: Protect against being on the right side of a sed subst in
16403# config.status.  Protect against being in an unquoted here document
16404# in config.status.
16405rm -f conftest.defines conftest.undefs
16406# Using a here document instead of a string reduces the quoting nightmare.
16407# Putting comments in sed scripts is not portable.
16408#
16409# `end' is used to avoid that the second main sed command (meant for
16410# 0-ary CPP macros) applies to n-ary macro definitions.
16411# See the Autoconf documentation for `clear'.
16412cat >confdef2sed.sed <<\_ACEOF
16413s/[\\&,]/\\&/g
16414s,[\\$`],\\&,g
16415t clear
16416: clear
16417s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16418t end
16419s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16420: end
16421_ACEOF
16422# If some macros were called several times there might be several times
16423# the same #defines, which is useless.  Nevertheless, we may not want to
16424# sort them, since we want the *last* AC-DEFINE to be honored.
16425uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16426sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16427rm -f confdef2sed.sed
16428
16429# This sed command replaces #undef with comments.  This is necessary, for
16430# example, in the case of _POSIX_SOURCE, which is predefined and required
16431# on some systems where configure will not decide to define it.
16432cat >>conftest.undefs <<\_ACEOF
16433s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16434_ACEOF
16435
16436# Break up conftest.defines because some shells have a limit on the size
16437# of here documents, and old seds have small limits too (100 cmds).
16438echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16439echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16440echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16441echo '  :' >>$CONFIG_STATUS
16442rm -f conftest.tail
16443while grep . conftest.defines >/dev/null
16444do
16445  # Write a limited-size here document to $tmp/defines.sed.
16446  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16447  # Speed up: don't consider the non `#define' lines.
16448  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
16449  # Work around the forget-to-reset-the-flag bug.
16450  echo 't clr' >>$CONFIG_STATUS
16451  echo ': clr' >>$CONFIG_STATUS
16452  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16453  echo 'CEOF
16454  sed -f $tmp/defines.sed $tmp/in >$tmp/out
16455  rm -f $tmp/in
16456  mv $tmp/out $tmp/in
16457' >>$CONFIG_STATUS
16458  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16459  rm -f conftest.defines
16460  mv conftest.tail conftest.defines
16461done
16462rm -f conftest.defines
16463echo '  fi # grep' >>$CONFIG_STATUS
16464echo >>$CONFIG_STATUS
16465
16466# Break up conftest.undefs because some shells have a limit on the size
16467# of here documents, and old seds have small limits too (100 cmds).
16468echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16469rm -f conftest.tail
16470while grep . conftest.undefs >/dev/null
16471do
16472  # Write a limited-size here document to $tmp/undefs.sed.
16473  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16474  # Speed up: don't consider the non `#undef'
16475  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
16476  # Work around the forget-to-reset-the-flag bug.
16477  echo 't clr' >>$CONFIG_STATUS
16478  echo ': clr' >>$CONFIG_STATUS
16479  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16480  echo 'CEOF
16481  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16482  rm -f $tmp/in
16483  mv $tmp/out $tmp/in
16484' >>$CONFIG_STATUS
16485  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16486  rm -f conftest.undefs
16487  mv conftest.tail conftest.undefs
16488done
16489rm -f conftest.undefs
16490
16491cat >>$CONFIG_STATUS <<\_ACEOF
16492  # Let's still pretend it is `configure' which instantiates (i.e., don't
16493  # use $as_me), people would be surprised to read:
16494  #    /* config.h.  Generated by config.status.  */
16495  if test x"$ac_file" = x-; then
16496    echo "/* Generated by configure.  */" >$tmp/config.h
16497  else
16498    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16499  fi
16500  cat $tmp/in >>$tmp/config.h
16501  rm -f $tmp/in
16502  if test x"$ac_file" != x-; then
16503    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16504      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16505echo "$as_me: $ac_file is unchanged" >&6;}
16506    else
16507      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16508$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16509	 X"$ac_file" : 'X\(//\)[^/]' \| \
16510	 X"$ac_file" : 'X\(//\)$' \| \
16511	 X"$ac_file" : 'X\(/\)' \| \
16512	 .     : '\(.\)' 2>/dev/null ||
16513echo X"$ac_file" |
16514    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16515  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16516  	  /^X\(\/\/\)$/{ s//\1/; q; }
16517  	  /^X\(\/\).*/{ s//\1/; q; }
16518  	  s/.*/./; q'`
16519      { if $as_mkdir_p; then
16520    mkdir -p "$ac_dir"
16521  else
16522    as_dir="$ac_dir"
16523    as_dirs=
16524    while test ! -d "$as_dir"; do
16525      as_dirs="$as_dir $as_dirs"
16526      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16527$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16528	 X"$as_dir" : 'X\(//\)[^/]' \| \
16529	 X"$as_dir" : 'X\(//\)$' \| \
16530	 X"$as_dir" : 'X\(/\)' \| \
16531	 .     : '\(.\)' 2>/dev/null ||
16532echo X"$as_dir" |
16533    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16534  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16535  	  /^X\(\/\/\)$/{ s//\1/; q; }
16536  	  /^X\(\/\).*/{ s//\1/; q; }
16537  	  s/.*/./; q'`
16538    done
16539    test ! -n "$as_dirs" || mkdir $as_dirs
16540  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16541echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16542   { (exit 1); exit 1; }; }; }
16543
16544      rm -f $ac_file
16545      mv $tmp/config.h $ac_file
16546    fi
16547  else
16548    cat $tmp/config.h
16549    rm -f $tmp/config.h
16550  fi
16551done
16552_ACEOF
16553
16554cat >>$CONFIG_STATUS <<\_ACEOF
16555
16556{ (exit 0); exit 0; }
16557_ACEOF
16558chmod +x $CONFIG_STATUS
16559ac_clean_files=$ac_clean_files_save
16560
16561
16562# configure is writing to config.log, and then calls config.status.
16563# config.status does its own redirection, appending to config.log.
16564# Unfortunately, on DOS this fails, as config.log is still kept open
16565# by configure, so config.status won't be able to write to it; its
16566# output is simply discarded.  So we exec the FD to /dev/null,
16567# effectively closing config.log, so it can be properly (re)opened and
16568# appended to by config.status.  When coming back to configure, we
16569# need to make the FD available again.
16570if test "$no_create" != yes; then
16571  ac_cs_success=:
16572  ac_config_status_args=
16573  test "$silent" = yes &&
16574    ac_config_status_args="$ac_config_status_args --quiet"
16575  exec 5>/dev/null
16576  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16577  exec 5>>auto/config.log
16578  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16579  # would make configure fail if this is the last instruction.
16580  $ac_cs_success || { (exit 1); exit 1; }
16581fi
16582
16583
16584